mirror of
https://gitee.com/winc-link/hummingbird.git
synced 2025-04-22 01:12:41 +00:00
3 lines
7.3 MiB
3 lines
7.3 MiB
/*! For license information please see main.4ec9d86b.js.LICENSE.txt */
|
|
!function(){var e={16599:function(e,t,n){var i;self.MonacoEnvironment=(i={editorWorkerService:"editor.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var r=n.p,o=(r?r.replace(/\/$/,"")+"/":"")+i[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(o)){var a=String(window.location),s=a.substr(0,a.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(o.substring(0,s.length)!==s){/^(\/\/)/.test(o)&&(o=window.location.protocol+o);var l=new Blob(["/*"+t+'*/importScripts("'+o+'");'],{type:"application/javascript"});return URL.createObjectURL(l)}}return o}}),n(54962),n(1791),n(56816),n(79240),n(45716),n(17094),n(28485),n(89977),n(75580),n(970),n(6893),n(55693),n(15389),n(45627),n(74361),n(52330),n(34464),n(22155),n(74166),n(42259),n(43869),n(52348),n(34403),n(49474),n(34775),n(80613),n(11366),n(36262),n(52791),n(51088),n(22939),n(47372),n(98361),n(56653),n(47226),n(93161),n(15157),n(94355),n(86854),n(46948),n(44356),n(26034),n(55553),n(3565),n(10102),n(44152),n(4327),n(99249),n(87629),n(16420),n(36373),n(6981),n(23957),n(94075),n(12548),n(54796),n(69321),n(95483),e.exports=n(6014),n(88082),n(9435),n(59852),n(64104)},82469:function(e,t){"use strict";var n=function(){function e(){this._events={}}return e.prototype.on=function(e,t,n){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!n}),this},e.prototype.once=function(e,t){return this.on(e,t,!0)},e.prototype.emit=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this._events[e]||[],o=this._events["*"]||[],a=function(i){for(var r=i.length,o=0;o<r;o++)if(i[o]){var a=i[o],s=a.callback;a.once&&(i.splice(o,1),0===i.length&&delete t._events[e],r--,o--),s.apply(t,n)}};a(r),a(o)},e.prototype.off=function(e,t){if(e)if(t){for(var n=this._events[e]||[],i=n.length,r=0;r<i;r++)n[r].callback===t&&(n.splice(r,1),i--,r--);0===n.length&&delete this._events[e]}else delete this._events[e];else this._events={};return this},e.prototype.getEvents=function(){return this._events},e}();t.Z=n},49753:function(e,t,n){"use strict";var i=n(29388),r=n(82469),o=n(52489),a=function(e){function t(t){var n=e.call(this)||this;n.destroyed=!1;var i=n.getDefaultCfg();return n.cfg=(0,o.CD)(i,t),n}return(0,i.ZT)(t,e),t.prototype.getDefaultCfg=function(){return{}},t.prototype.get=function(e){return this.cfg[e]},t.prototype.set=function(e,t){this.cfg[e]=t},t.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},t}(r.Z);t.Z=a},71692:function(e,t,n){"use strict";n.d(t,{Z:function(){return Fe}});var i,r,o=n(29388),a=n(59761),s=n(36277),l=n(52489),c=n(53415),u=0,d=0,h=0,f=0,p=0,g=0,v="object"===typeof performance&&performance.now?performance:Date,m="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function y(){return p||(m(_),p=v.now()+g)}function _(){p=0}function b(){this._call=this._time=this._next=null}function C(e,t,n){var i=new b;return i.restart(e,t,n),i}function S(){p=(f=v.now())+g,u=d=0;try{!function(){y(),++u;for(var e,t=i;t;)(e=p-t._time)>=0&&t._call.call(null,e),t=t._next;--u}()}finally{u=0,function(){var e,t,n=i,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:i=t);r=e,k(o)}(),p=0}}function w(){var e=v.now(),t=e-f;t>1e3&&(g-=t,f=e)}function k(e){u||(d&&(d=clearTimeout(d)),e-p>24?(e<1/0&&(d=setTimeout(S,e-v.now()-g)),h&&(h=clearInterval(h))):(h||(f=v.now(),h=setInterval(w,1e3)),u=1,m(S)))}function x(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function E(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function T(){}b.prototype=C.prototype={constructor:b,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?y():+n)+(null==t?0:+t),this._next||r===this||(r?r._next=this:i=this,r=this),this._call=e,this._time=n,k()},stop:function(){this._call&&(this._call=null,this._time=1/0,k())}};var N=.7,I=1/N,D="\\s*([+-]?\\d+)\\s*",L="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",O="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",R=/^#([0-9a-f]{3,8})$/,A=new RegExp("^rgb\\(".concat(D,",").concat(D,",").concat(D,"\\)$")),M=new RegExp("^rgb\\(".concat(O,",").concat(O,",").concat(O,"\\)$")),P=new RegExp("^rgba\\(".concat(D,",").concat(D,",").concat(D,",").concat(L,"\\)$")),Z=new RegExp("^rgba\\(".concat(O,",").concat(O,",").concat(O,",").concat(L,"\\)$")),F=new RegExp("^hsl\\(".concat(L,",").concat(O,",").concat(O,"\\)$")),B=new RegExp("^hsla\\(".concat(L,",").concat(O,",").concat(O,",").concat(L,"\\)$")),H={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function z(){return this.rgb().formatHex()}function j(){return this.rgb().formatRgb()}function V(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=R.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?W(t):3===n?new Y(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?U(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?U(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=A.exec(e))?new Y(t[1],t[2],t[3],1):(t=M.exec(e))?new Y(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=P.exec(e))?U(t[1],t[2],t[3],t[4]):(t=Z.exec(e))?U(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=F.exec(e))?ee(t[1],t[2]/100,t[3]/100,1):(t=B.exec(e))?ee(t[1],t[2]/100,t[3]/100,t[4]):H.hasOwnProperty(e)?W(H[e]):"transparent"===e?new Y(NaN,NaN,NaN,0):null}function W(e){return new Y(e>>16&255,e>>8&255,255&e,1)}function U(e,t,n,i){return i<=0&&(e=t=n=NaN),new Y(e,t,n,i)}function G(e){return e instanceof T||(e=V(e)),e?new Y((e=e.rgb()).r,e.g,e.b,e.opacity):new Y}function K(e,t,n,i){return 1===arguments.length?G(e):new Y(e,t,n,null==i?1:i)}function Y(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function q(){return"#".concat(J(this.r)).concat(J(this.g)).concat(J(this.b))}function $(){var e=X(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(Q(this.r),", ").concat(Q(this.g),", ").concat(Q(this.b)).concat(1===e?")":", ".concat(e,")"))}function X(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Q(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function J(e){return((e=Q(e))<16?"0":"")+e.toString(16)}function ee(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ne(e,t,n,i)}function te(e){if(e instanceof ne)return new ne(e.h,e.s,e.l,e.opacity);if(e instanceof T||(e=V(e)),!e)return new ne;if(e instanceof ne)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),o=Math.max(t,n,i),a=NaN,s=o-r,l=(o+r)/2;return s?(a=t===o?(n-i)/s+6*(n<i):n===o?(i-t)/s+2:(t-n)/s+4,s/=l<.5?o+r:2-o-r,a*=60):s=l>0&&l<1?0:a,new ne(a,s,l,e.opacity)}function ne(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function ie(e){return(e=(e||0)%360)<0?e+360:e}function re(e){return Math.max(0,Math.min(1,e||0))}function oe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function ae(e,t,n,i,r){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*i+a*r)/6}x(T,V,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:z,formatHex:z,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return te(this).formatHsl()},formatRgb:j,toString:j}),x(Y,K,E(T,{brighter:function(e){return e=null==e?I:Math.pow(I,e),new Y(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?N:Math.pow(N,e),new Y(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},clamp:function(){return new Y(Q(this.r),Q(this.g),Q(this.b),X(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:q,formatHex:q,formatHex8:function(){return"#".concat(J(this.r)).concat(J(this.g)).concat(J(this.b)).concat(J(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:$,toString:$})),x(ne,(function(e,t,n,i){return 1===arguments.length?te(e):new ne(e,t,n,null==i?1:i)}),E(T,{brighter:function(e){return e=null==e?I:Math.pow(I,e),new ne(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?N:Math.pow(N,e),new ne(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,r=2*n-i;return new Y(oe(e>=240?e-240:e+120,r,i),oe(e,r,i),oe(e<120?e+240:e-120,r,i),this.opacity)},clamp:function(){return new ne(ie(this.h),re(this.s),re(this.l),X(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=X(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(ie(this.h),", ").concat(100*re(this.s),"%, ").concat(100*re(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}));var se=function(e){return function(){return e}};function le(e,t){return function(n){return e+n*t}}function ce(e){return 1===(e=+e)?ue:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):se(isNaN(t)?n:t)}}function ue(e,t){var n=t-e;return n?le(e,n):se(isNaN(e)?t:e)}var de=function e(t){var n=ce(t);function i(e,t){var i=n((e=K(e)).r,(t=K(t)).r),r=n(e.g,t.g),o=n(e.b,t.b),a=ue(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=r(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function he(e){return function(t){var n,i,r=t.length,o=new Array(r),a=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=K(t[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=e(o),a=e(a),s=e(s),i.opacity=1,function(e){return i.r=o(e),i.g=a(e),i.b=s(e),i+""}}}he((function(e){var t=e.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),r=e[i],o=e[i+1],a=i>0?e[i-1]:2*r-o,s=i<t-1?e[i+2]:2*o-r;return ae((n-i/t)*t,a,r,o,s)}})),he((function(e){var t=e.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*t),r=e[(i+t-1)%t],o=e[i%t],a=e[(i+1)%t],s=e[(i+2)%t];return ae((n-i/t)*t,r,o,a,s)}}));function fe(e,t){t||(t=[]);var n,i=e?Math.min(t.length,e.length):0,r=t.slice();return function(o){for(n=0;n<i;++n)r[n]=e[n]*(1-o)+t[n]*o;return r}}function pe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ge(e,t){var n,i=t?t.length:0,r=e?Math.min(i,e.length):0,o=new Array(r),a=new Array(i);for(n=0;n<r;++n)o[n]=Se(e[n],t[n]);for(;n<i;++n)a[n]=t[n];return function(e){for(n=0;n<r;++n)a[n]=o[n](e);return a}}function ve(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function me(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ye(e,t){var n,i={},r={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?i[n]=Se(e[n],t[n]):r[n]=t[n];return function(e){for(n in i)r[n]=i[n](e);return r}}var _e=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,be=new RegExp(_e.source,"g");function Ce(e,t){var n,i,r,o=_e.lastIndex=be.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=_e.exec(e))&&(i=be.exec(t));)(r=i.index)>o&&(r=t.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:me(n,i)})),o=be.lastIndex;return o<t.length&&(r=t.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,i=0;i<t;++i)s[(n=l[i]).i]=n.x(e);return s.join("")})}function Se(e,t){var n,i=typeof t;return null==t||"boolean"===i?se(t):("number"===i?me:"string"===i?(n=V(t))?(t=n,de):Ce:t instanceof V?de:t instanceof Date?ve:pe(t)?fe:Array.isArray(t)?ge:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?ye:me)(e,t)}var we=n(73169),ke=n(31607),xe=[1,0,0,0,1,0,0,0,1];function Ee(e,t,n){var i,r=t.startTime;if(n<r+t.delay||t._paused)return!1;var o=t.duration,a=t.easing,s=(0,we._)(a);if(n=n-r-t.delay,t.repeat)i=s(i=n%o/o);else{if(!((i=n/o)<1))return t.onFrame?e.attr(t.onFrame(1)):e.attr(t.toAttrs),!0;i=s(i)}if(t.onFrame){var l=t.onFrame(i);e.attr(l)}else!function(e,t,n){var i={},r=t.fromAttrs,o=t.toAttrs;if(!e.destroyed){var a,s,l,u;for(var d in o)if(!(0,c.Xy)(r[d],o[d]))if("path"===d){var h=o[d],f=r[d];h.length>f.length?(h=ke.parsePathString(o[d]),f=ke.parsePathString(r[d]),f=ke.fillPathByDiff(f,h),f=ke.formatPath(f,h),t.fromAttrs.path=f,t.toAttrs.path=h):t.pathFormatted||(h=ke.parsePathString(o[d]),f=ke.parsePathString(r[d]),f=ke.formatPath(f,h),t.fromAttrs.path=f,t.toAttrs.path=h,t.pathFormatted=!0),i[d]=[];for(var p=0;p<h.length;p++){for(var g=h[p],v=f[p],m=[],y=0;y<g.length;y++)(0,c.hj)(g[y])&&v&&(0,c.hj)(v[y])?(a=Se(v[y],g[y]),m.push(a(n))):m.push(g[y]);i[d].push(m)}}else if("matrix"===d){var _=(l=r[d]||xe,(pe(u=o[d]||xe)?fe:ge)(l,u))(n);i[d]=_}else["fill","stroke","fillStyle","strokeStyle"].includes(d)&&(s=o[d],/^[r,R,L,l]{1}[\s]*\(/.test(s))?i[d]=o[d]:(0,c.mf)(o[d])||(a=Se(r[d],o[d]),i[d]=a(n));e.attr(i)}}(e,t,i);return!1}var Te=function(){function e(e){this.animators=[],this.current=0,this.timer=null,this.canvas=e}return e.prototype.initTimer=function(){var e,t,n,i=this;this.timer=C((function(r){if(i.current=r,i.animators.length>0){for(var o=i.animators.length-1;o>=0;o--)if((e=i.animators[o]).destroyed)i.removeAnimator(o);else{if(!e.isAnimatePaused())for(var a=(t=e.get("animations")).length-1;a>=0;a--)n=t[a],Ee(e,n,r)&&(t.splice(a,1),!1,n.callback&&n.callback());0===t.length&&i.removeAnimator(o)}i.canvas.get("autoDraw")||i.canvas.draw()}}))},e.prototype.addAnimator=function(e){this.animators.push(e)},e.prototype.removeAnimator=function(e){this.animators.splice(e,1)},e.prototype.isAnimating=function(){return!!this.animators.length},e.prototype.stop=function(){this.timer&&this.timer.stop()},e.prototype.stopAllAnimations=function(e){void 0===e&&(e=!0),this.animators.forEach((function(t){t.stopAnimate(e)})),this.animators=[],this.canvas.draw()},e.prototype.getTime=function(){return this.current},e}(),Ne=Te,Ie=n(19168),De=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Le(e,t,n){n.name=t,n.target=e,n.currentTarget=e,n.delegateTarget=e,e.emit(t,n)}function Oe(e,t,n){if(n.bubbles){var i=void 0,r=!1;if("mouseenter"===t?(i=n.fromShape,r=!0):"mouseleave"===t&&(r=!0,i=n.toShape),e.isCanvas()&&r)return;if(i&&(0,l.UY)(e,i))return void(n.bubbles=!1);n.name=t,n.currentTarget=e,n.delegateTarget=e,e.emit(t,n)}}var Re=function(){function e(e){var t=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(e){var n=e.type;t._triggerEvent(n,e)},this._onDocumentMove=function(e){if(t.canvas.get("el")!==e.target&&(t.dragging||t.currentShape)){var n=t._getPointInfo(e);t.dragging&&t._emitEvent("drag",e,n,t.draggingShape)}},this._onDocumentMouseUp=function(e){if(t.canvas.get("el")!==e.target&&t.dragging){var n=t._getPointInfo(e);t.draggingShape&&t._emitEvent("drop",e,n,null),t._emitEvent("dragend",e,n,t.draggingShape),t._afterDrag(t.draggingShape,n,e)}},this.canvas=e.canvas}return e.prototype.init=function(){this._bindEvents()},e.prototype._bindEvents=function(){var e=this,t=this.canvas.get("el");(0,l.S6)(De,(function(n){t.addEventListener(n,e._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._clearEvents=function(){var e=this,t=this.canvas.get("el");(0,l.S6)(De,(function(n){t.removeEventListener(n,e._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._getEventObj=function(e,t,n,i,r,o){var a=new Ie.Z(e,t);return a.fromShape=r,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(i),a},e.prototype._getShape=function(e,t){return this.canvas.getShape(e.x,e.y,t)},e.prototype._getPointInfo=function(e){var t=this.canvas,n=t.getClientByEvent(e),i=t.getPointByEvent(e);return{x:i.x,y:i.y,clientX:n.x,clientY:n.y}},e.prototype._triggerEvent=function(e,t){var n=this._getPointInfo(t),i=this._getShape(n,t),r=this["_on"+e],o=!1;if(r)r.call(this,n,i,t);else{var a=this.currentShape;"mouseenter"===e||"dragenter"===e||"mouseover"===e?(this._emitEvent(e,t,n,null,null,i),i&&this._emitEvent(e,t,n,i,null,i),"mouseenter"===e&&this.draggingShape&&this._emitEvent("dragenter",t,n,null)):"mouseleave"===e||"dragleave"===e||"mouseout"===e?(o=!0,a&&this._emitEvent(e,t,n,a,a,null),this._emitEvent(e,t,n,null,a,null),"mouseleave"===e&&this.draggingShape&&this._emitEvent("dragleave",t,n,null)):this._emitEvent(e,t,n,i,null,null)}if(o||(this.currentShape=i),i&&!i.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=i.attr("cursor")||s.get("cursor")}},e.prototype._onmousedown=function(e,t,n){0===n.button&&(this.mousedownShape=t,this.mousedownPoint=e,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,e,t,null,null)},e.prototype._emitMouseoverEvents=function(e,t,n,i){var r=this.canvas.get("el");n!==i&&(n&&(this._emitEvent("mouseout",e,t,n,n,i),this._emitEvent("mouseleave",e,t,n,n,i),i&&!i.get("destroyed")||(r.style.cursor=this.canvas.get("cursor"))),i&&(this._emitEvent("mouseover",e,t,i,n,i),this._emitEvent("mouseenter",e,t,i,n,i)))},e.prototype._emitDragoverEvents=function(e,t,n,i,r){i?(i!==n&&(n&&this._emitEvent("dragleave",e,t,n,n,i),this._emitEvent("dragenter",e,t,i,n,i)),r||this._emitEvent("dragover",e,t,i)):n&&this._emitEvent("dragleave",e,t,n,n,i),r&&this._emitEvent("dragover",e,t,i)},e.prototype._afterDrag=function(e,t,n){e&&(e.set("capture",!0),this.draggingShape=null),this.dragging=!1;var i=this._getShape(t,n);i!==e&&this._emitMouseoverEvents(n,t,e,i),this.currentShape=i},e.prototype._onmouseup=function(e,t,n){if(0===n.button){var i=this.draggingShape;this.dragging?(i&&this._emitEvent("drop",n,e,t),this._emitEvent("dragend",n,e,i),this._afterDrag(i,e,n)):(this._emitEvent("mouseup",n,e,t),t===this.mousedownShape&&this._emitEvent("click",n,e,t),this.mousedownShape=null,this.mousedownPoint=null)}},e.prototype._ondragover=function(e,t,n){n.preventDefault();var i=this.currentShape;this._emitDragoverEvents(n,e,i,t,!0)},e.prototype._onmousemove=function(e,t,n){var i=this.canvas,r=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,e,r,t,!1),this._emitEvent("drag",n,e,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,l=n.timeStamp-this.mousedownTimeStamp,c=a.clientX-e.clientX,u=a.clientY-e.clientY;l>120||c*c+u*u>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,e,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&i.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,e,r,t),this._emitEvent("mousemove",n,e,t)):(this._emitMouseoverEvents(n,e,r,t),this._emitEvent("mousemove",n,e,t))}else this._emitMouseoverEvents(n,e,r,t),this._emitEvent("mousemove",n,e,t)}},e.prototype._emitEvent=function(e,t,n,i,r,o){var a=this._getEventObj(e,t,n,i,r,o);if(i){a.shape=i,Le(i,e,a);for(var s=i.getParent();s;)s.emitDelegation(e,a),a.propagationStopped||Oe(s,e,a),a.propagationPath.push(s),s=s.getParent()}else{Le(this.canvas,e,a)}},e.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},e}(),Ae=Re,Me=(0,a.qY)(),Pe=Me&&"firefox"===Me.name,Ze=function(e){function t(t){var n=e.call(this,t)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,o.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.cursor="default",t.supportCSSTransform=!1,t},t.prototype.initContainer=function(){var e=this.get("container");(0,l.HD)(e)&&(e=document.getElementById(e),this.set("container",e))},t.prototype.initDom=function(){var e=this.createDom();this.set("el",e),this.get("container").appendChild(e),this.setDOMSize(this.get("width"),this.get("height"))},t.prototype.initEvents=function(){var e=new Ae({canvas:this});e.init(),this.set("eventController",e)},t.prototype.initTimeline=function(){var e=new Ne(this);this.set("timeline",e)},t.prototype.setDOMSize=function(e,t){var n=this.get("el");l.jU&&(n.style.width=e+"px",n.style.height=t+"px")},t.prototype.changeSize=function(e,t){this.setDOMSize(e,t),this.set("width",e),this.set("height",t),this.onCanvasChange("changeSize")},t.prototype.getRenderer=function(){return this.get("renderer")},t.prototype.getCursor=function(){return this.get("cursor")},t.prototype.setCursor=function(e){this.set("cursor",e);var t=this.get("el");l.jU&&t&&(t.style.cursor=e)},t.prototype.getPointByEvent=function(e){if(this.get("supportCSSTransform")){if(Pe&&!(0,l.kK)(e.layerX)&&e.layerX!==e.offsetX)return{x:e.layerX,y:e.layerY};if(!(0,l.kK)(e.offsetX))return{x:e.offsetX,y:e.offsetY}}var t=this.getClientByEvent(e),n=t.x,i=t.y;return this.getPointByClient(n,i)},t.prototype.getClientByEvent=function(e){var t=e;return e.touches&&(t="touchend"===e.type?e.changedTouches[0]:e.touches[0]),{x:t.clientX,y:t.clientY}},t.prototype.getPointByClient=function(e,t){var n=this.get("el").getBoundingClientRect();return{x:e-n.left,y:t-n.top}},t.prototype.getClientByPoint=function(e,t){var n=this.get("el").getBoundingClientRect();return{x:e+n.left,y:t+n.top}},t.prototype.draw=function(){},t.prototype.removeDom=function(){var e=this.get("el");e.parentNode.removeChild(e)},t.prototype.clearEvents=function(){this.get("eventController").destroy()},t.prototype.isCanvas=function(){return!0},t.prototype.getParent=function(){return null},t.prototype.destroy=function(){var t=this.get("timeline");this.get("destroyed")||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),e.prototype.destroy.call(this))},t}(s.Z),Fe=Ze},36277:function(e,t,n){"use strict";var i=n(29388),r=n(53415),o=n(25597),a=n(52489),s={};function l(e,t){if(e.set("canvas",t),e.isGroup()){var n=e.get("children");n.length&&n.forEach((function(e){l(e,t)}))}}function c(e,t){if(e.set("timeline",t),e.isGroup()){var n=e.get("children");n.length&&n.forEach((function(e){c(e,t)}))}}var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.ZT)(t,e),t.prototype.isCanvas=function(){return!1},t.prototype.getBBox=function(){var e=1/0,t=-1/0,n=1/0,i=-1/0,o=[],s=[],l=this.getChildren().filter((function(e){return e.get("visible")&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)}));return l.length>0?((0,a.S6)(l,(function(e){var t=e.getBBox();o.push(t.minX,t.maxX),s.push(t.minY,t.maxY)})),e=(0,r.VV)(o),t=(0,r.Fp)(o),n=(0,r.VV)(s),i=(0,r.Fp)(s)):(e=0,t=0,n=0,i=0),{x:e,y:n,minX:e,minY:n,maxX:t,maxY:i,width:t-e,height:i-n}},t.prototype.getCanvasBBox=function(){var e=1/0,t=-1/0,n=1/0,i=-1/0,o=[],s=[],l=this.getChildren().filter((function(e){return e.get("visible")&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)}));return l.length>0?((0,a.S6)(l,(function(e){var t=e.getCanvasBBox();o.push(t.minX,t.maxX),s.push(t.minY,t.maxY)})),e=(0,r.VV)(o),t=(0,r.Fp)(o),n=(0,r.VV)(s),i=(0,r.Fp)(s)):(e=0,t=0,n=0,i=0),{x:e,y:n,minX:e,minY:n,maxX:t,maxY:i,width:t-e,height:i-n}},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.children=[],t},t.prototype.onAttrChange=function(t,n,i){if(e.prototype.onAttrChange.call(this,t,n,i),"matrix"===t){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},t.prototype.applyMatrix=function(t){var n=this.getTotalMatrix();e.prototype.applyMatrix.call(this,t);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},t.prototype._applyChildrenMarix=function(e){var t=this.getChildren();(0,a.S6)(t,(function(t){t.applyMatrix(e)}))},t.prototype.addShape=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0],i=e[1];(0,a.Kn)(n)?i=n:i.type=n;var r=s[i.type];r||(r=(0,a.jC)(i.type),s[i.type]=r);var o=this.getShapeBase(),l=new o[r](i);return this.add(l),l},t.prototype.addGroup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,i=e[0],r=e[1];if((0,a.mf)(i))n=new i(r||{parent:this});else{var o=i||{},s=this.getGroupBase();n=new s(o)}return this.add(n),n},t.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},t.prototype.getShape=function(e,t,n){if(!(0,a.pP)(this))return null;var i,r=this.getChildren();if(this.isCanvas())i=this._findShape(r,e,t,n);else{var o=[e,t,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(i=this._findShape(r,o[0],o[1],n))}return i},t.prototype._findShape=function(e,t,n,i){for(var r=null,o=e.length-1;o>=0;o--){var s=e[o];if((0,a.pP)(s)&&(s.isGroup()?r=s.getShape(t,n,i):s.isHit(t,n)&&(r=s)),r)break}return r},t.prototype.add=function(e){var t=this.getCanvas(),n=this.getChildren(),i=this.get("timeline"),r=e.getParent();r&&function(e,t,n){void 0===n&&(n=!0),n?t.destroy():(t.set("parent",null),t.set("canvas",null)),(0,a.As)(e.getChildren(),t)}(r,e,!1),e.set("parent",this),t&&l(e,t),i&&c(e,i),n.push(e),e.onCanvasChange("add"),this._applyElementMatrix(e)},t.prototype._applyElementMatrix=function(e){var t=this.getTotalMatrix();t&&e.applyMatrix(t)},t.prototype.getChildren=function(){return this.get("children")},t.prototype.sort=function(){var e,t=this.getChildren();(0,a.S6)(t,(function(e,t){return e._INDEX=t,e})),t.sort((e=function(e,t){return e.get("zIndex")-t.get("zIndex")},function(t,n){var i=e(t,n);return 0===i?t._INDEX-n._INDEX:i})),this.onCanvasChange("sort")},t.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var e=this.getChildren(),t=e.length-1;t>=0;t--)e[t].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},t.prototype.destroy=function(){this.get("destroyed")||(this.clear(),e.prototype.destroy.call(this))},t.prototype.getFirst=function(){return this.getChildByIndex(0)},t.prototype.getLast=function(){var e=this.getChildren();return this.getChildByIndex(e.length-1)},t.prototype.getChildByIndex=function(e){return this.getChildren()[e]},t.prototype.getCount=function(){return this.getChildren().length},t.prototype.contain=function(e){return this.getChildren().indexOf(e)>-1},t.prototype.removeChild=function(e,t){void 0===t&&(t=!0),this.contain(e)&&e.remove(t)},t.prototype.findAll=function(e){var t=[],n=this.getChildren();return(0,a.S6)(n,(function(n){e(n)&&t.push(n),n.isGroup()&&(t=t.concat(n.findAll(e)))})),t},t.prototype.find=function(e){var t=null,n=this.getChildren();return(0,a.S6)(n,(function(n){if(e(n)?t=n:n.isGroup()&&(t=n.find(e)),t)return!1})),t},t.prototype.findById=function(e){return this.find((function(t){return t.get("id")===e}))},t.prototype.findByClassName=function(e){return this.find((function(t){return t.get("className")===e}))},t.prototype.findAllByName=function(e){return this.findAll((function(t){return t.get("name")===e}))},t}(o.Z);t.Z=u},25597:function(e,t,n){"use strict";var i=n(29388),r=n(53415),o=n(36403),a=n(52489),s=n(65313),l=n(49753),c=o.vs,u="matrix",d=["zIndex","capture","visible","type"],h=["repeat"];function f(e,t){var n={},i=t.attrs;for(var r in e)n[r]=i[r];return n}function p(e,t){var n={},i=t.attr();return(0,r.S6)(e,(function(e,t){-1!==h.indexOf(t)||(0,r.Xy)(i[t],e)||(n[t]=e)})),n}function g(e,t){if(t.onFrame)return e;var n=t.startTime,i=t.delay,o=t.duration,a=Object.prototype.hasOwnProperty;return(0,r.S6)(e,(function(e){n+i<e.startTime+e.delay+e.duration&&o>e.delay&&(0,r.S6)(t.toAttrs,(function(t,n){a.call(e.toAttrs,n)&&(delete e.toAttrs[n],delete e.fromAttrs[n])}))})),e}var v=function(e){function t(t){var n=e.call(this,t)||this;n.attrs={};var i=n.getDefaultAttrs();return(0,r.CD)(i,t.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return(0,i.ZT)(t,e),t.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},t.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},t.prototype.onCanvasChange=function(e){},t.prototype.initAttrs=function(e){},t.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},t.prototype.isGroup=function(){return!1},t.prototype.getParent=function(){return this.get("parent")},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.attr=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t[0],o=t[1];if(!i)return this.attrs;if((0,r.Kn)(i)){for(var a in i)this.setAttr(a,i[a]);return this.afterAttrsChange(i),this}return 2===t.length?(this.setAttr(i,o),this.afterAttrsChange(((e={})[i]=o,e)),this):this.attrs[i]},t.prototype.isClipped=function(e,t){var n=this.getClip();return n&&!n.isHit(e,t)},t.prototype.setAttr=function(e,t){var n=this.attrs[e];n!==t&&(this.attrs[e]=t,this.onAttrChange(e,t,n))},t.prototype.onAttrChange=function(e,t,n){"matrix"===e&&this.set("totalMatrix",null)},t.prototype.afterAttrsChange=function(e){if(this.cfg.isClipShape){var t=this.cfg.applyTo;t&&t.onCanvasChange("clip")}else this.onCanvasChange("attr")},t.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},t.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},t.prototype.setZIndex=function(e){this.set("zIndex",e);var t=this.getParent();return t&&t.sort(),this},t.prototype.toFront=function(){var e=this.getParent();if(e){var t=e.getChildren(),n=(this.get("el"),t.indexOf(this));t.splice(n,1),t.push(this),this.onCanvasChange("zIndex")}},t.prototype.toBack=function(){var e=this.getParent();if(e){var t=e.getChildren(),n=(this.get("el"),t.indexOf(this));t.splice(n,1),t.unshift(this),this.onCanvasChange("zIndex")}},t.prototype.remove=function(e){void 0===e&&(e=!0);var t=this.getParent();t?((0,a.As)(t.getChildren(),this),t.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),e&&this.destroy()},t.prototype.resetMatrix=function(){this.attr(u,this.getDefaultMatrix()),this.onCanvasChange("matrix")},t.prototype.getMatrix=function(){return this.attr(u)},t.prototype.setMatrix=function(e){this.attr(u,e),this.onCanvasChange("matrix")},t.prototype.getTotalMatrix=function(){var e=this.cfg.totalMatrix;if(!e){var t=this.attr("matrix"),n=this.cfg.parentMatrix;e=n&&t?(0,s.xq)(n,t):t||n,this.set("totalMatrix",e)}return e},t.prototype.applyMatrix=function(e){var t=this.attr("matrix"),n=null;n=e&&t?(0,s.xq)(e,t):t||e,this.set("totalMatrix",n),this.set("parentMatrix",e)},t.prototype.getDefaultMatrix=function(){return null},t.prototype.applyToMatrix=function(e){var t=this.attr("matrix");return t?(0,s.rG)(t,e):e},t.prototype.invertFromMatrix=function(e){var t=this.attr("matrix");if(t){var n=(0,s.U_)(t);if(n)return(0,s.rG)(n,e)}return e},t.prototype.setClip=function(e){var t=this.getCanvas(),n=null;if(e){var i=this.getShapeBase()[(0,r.jC)(e.type)];i&&(n=new i({type:e.type,isClipShape:!0,applyTo:this,attrs:e.attrs,canvas:t}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},t.prototype.getClip=function(){var e=this.cfg.clipShape;return e||null},t.prototype.clone=function(){var e=this,t=this.attrs,n={};(0,r.S6)(t,(function(e,i){(0,r.kJ)(t[i])?n[i]=function(e){for(var t=[],n=0;n<e.length;n++)(0,r.kJ)(e[n])?t.push([].concat(e[n])):t.push(e[n]);return t}(t[i]):n[i]=t[i]}));var i=new(0,this.constructor)({attrs:n});return(0,r.S6)(d,(function(t){i.set(t,e.get(t))})),i},t.prototype.destroy=function(){this.destroyed||(this.attrs={},e.prototype.destroy.call(this))},t.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},t.prototype.animate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var i=this.get("animations")||[];n.timer||n.initTimer();var o,a,s,l,c,u=e[0],d=e[1],h=e[2],v=void 0===h?"easeLinear":h,m=e[3],y=void 0===m?r.ZT:m,_=e[4],b=void 0===_?0:_;(0,r.mf)(u)?(o=u,u={}):(0,r.Kn)(u)&&u.onFrame&&(o=u.onFrame,a=u.repeat),(0,r.Kn)(d)?(d=(c=d).duration,v=c.easing||"easeLinear",b=c.delay||0,a=c.repeat||a||!1,y=c.callback||r.ZT,s=c.pauseCallback||r.ZT,l=c.resumeCallback||r.ZT):((0,r.hj)(y)&&(b=y,y=null),(0,r.mf)(v)?(y=v,v="easeLinear"):v=v||"easeLinear");var C=p(u,this),S={fromAttrs:f(C,this),toAttrs:C,duration:d,easing:v,repeat:a,callback:y,pauseCallback:s,resumeCallback:l,delay:b,startTime:n.getTime(),id:(0,r.EL)(),onFrame:o,pathFormatted:!1};i.length>0?i=g(i,S):n.addAnimator(this),i.push(S),this.set("animations",i),this.set("_pause",{isPaused:!1})}},t.prototype.stopAnimate=function(e){var t=this;void 0===e&&(e=!0);var n=this.get("animations");(0,r.S6)(n,(function(n){e&&(n.onFrame?t.attr(n.onFrame(1)):t.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},t.prototype.pauseAnimate=function(){var e=this.get("timeline"),t=this.get("animations"),n=e.getTime();return(0,r.S6)(t,(function(e){e._paused=!0,e._pauseTime=n,e.pauseCallback&&e.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},t.prototype.resumeAnimate=function(){var e=this.get("timeline").getTime(),t=this.get("animations"),n=this.get("_pause").pauseTime;return(0,r.S6)(t,(function(t){t.startTime=t.startTime+(e-n),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",t),this},t.prototype.emitDelegation=function(e,t){var n,i=this,o=t.propagationPath;this.getEvents();"mouseenter"===e?n=t.fromShape:"mouseleave"===e&&(n=t.toShape);for(var s=function(e){var s=o[e],c=s.get("name");if(c){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&(0,a.UY)(s,n))return"break";(0,r.kJ)(c)?(0,r.S6)(c,(function(e){i.emitDelegateEvent(s,e,t)})):l.emitDelegateEvent(s,c,t)}},l=this,c=0;c<o.length;c++){if("break"===s(c))break}},t.prototype.emitDelegateEvent=function(e,t,n){var i=this.getEvents(),r=t+":"+n.type;(i[r]||i["*"])&&(n.name=r,n.currentTarget=e,n.delegateTarget=this,n.delegateObject=e.get("delegateObject"),this.emit(r,n))},t.prototype.translate=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.getMatrix(),i=c(n,[["t",e,t]]);return this.setMatrix(i),this},t.prototype.move=function(e,t){var n=this.attr("x")||0,i=this.attr("y")||0;return this.translate(e-n,t-i),this},t.prototype.moveTo=function(e,t){return this.move(e,t)},t.prototype.scale=function(e,t){var n=this.getMatrix(),i=c(n,[["s",e,t||e]]);return this.setMatrix(i),this},t.prototype.rotate=function(e){var t=this.getMatrix(),n=c(t,[["r",e]]);return this.setMatrix(n),this},t.prototype.rotateAtStart=function(e){var t=this.attr(),n=t.x,i=t.y,r=this.getMatrix(),o=c(r,[["t",-n,-i],["r",e],["t",n,i]]);return this.setMatrix(o),this},t.prototype.rotateAtPoint=function(e,t,n){var i=this.getMatrix(),r=c(i,[["t",-e,-t],["r",n],["t",e,t]]);return this.setMatrix(r),this},t}(l.Z);t.Z=v},99157:function(e,t,n){"use strict";var i=n(29388),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.ZT)(t,e),t.prototype.isGroup=function(){return!0},t.prototype.isEntityGroup=function(){return!1},t.prototype.clone=function(){for(var t=e.prototype.clone.call(this),n=this.getChildren(),i=0;i<n.length;i++){var r=n[i];t.add(r.clone())}return t},t}(n(36277).Z);t.Z=r},75403:function(e,t,n){"use strict";var i=n(29388),r=n(25597),o=n(65313),a=function(e){function t(t){return e.call(this,t)||this}return(0,i.ZT)(t,e),t.prototype._isInBBox=function(e,t){var n=this.getBBox();return n.minX<=e&&n.maxX>=e&&n.minY<=t&&n.maxY>=t},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},t.prototype.getBBox=function(){var e=this.cfg.bbox;return e||(e=this.calculateBBox(),this.set("bbox",e)),e},t.prototype.getCanvasBBox=function(){var e=this.cfg.canvasBBox;return e||(e=this.calculateCanvasBBox(),this.set("canvasBBox",e)),e},t.prototype.applyMatrix=function(t){e.prototype.applyMatrix.call(this,t),this.set("canvasBBox",null)},t.prototype.calculateCanvasBBox=function(){var e=this.getBBox(),t=this.getTotalMatrix(),n=e.minX,i=e.minY,r=e.maxX,a=e.maxY;if(t){var s=(0,o.rG)(t,[e.minX,e.minY]),l=(0,o.rG)(t,[e.maxX,e.minY]),c=(0,o.rG)(t,[e.minX,e.maxY]),u=(0,o.rG)(t,[e.maxX,e.maxY]);n=Math.min(s[0],l[0],c[0],u[0]),r=Math.max(s[0],l[0],c[0],u[0]),i=Math.min(s[1],l[1],c[1],u[1]),a=Math.max(s[1],l[1],c[1],u[1])}var d=this.attrs;if(d.shadowColor){var h=d.shadowBlur,f=void 0===h?0:h,p=d.shadowOffsetX,g=void 0===p?0:p,v=d.shadowOffsetY,m=void 0===v?0:v,y=n-f+g,_=r+f+g,b=i-f+m,C=a+f+m;n=Math.min(n,y),r=Math.max(r,_),i=Math.min(i,b),a=Math.max(a,C)}return{x:n,y:i,minX:n,minY:i,maxX:r,maxY:a,width:r-n,height:a-i}},t.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},t.prototype.isClipShape=function(){return this.get("isClipShape")},t.prototype.isInShape=function(e,t){return!1},t.prototype.isOnlyHitBox=function(){return!1},t.prototype.isHit=function(e,t){var n=this.get("startArrowShape"),i=this.get("endArrowShape"),r=[e,t,1],o=(r=this.invertFromMatrix(r))[0],a=r[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(i&&i.isHit(o,a))return!0}return!1},t}(r.Z);t.Z=a},73169:function(e,t,n){"use strict";n.d(t,{_:function(){return H},C:function(){return z}});var i={};function r(e){return+e}function o(e){return e*e}function a(e){return e*(2-e)}function s(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function l(e){return e*e*e}function c(e){return--e*e*e+1}function u(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}n.r(i),n.d(i,{easeBack:function(){return A},easeBackIn:function(){return O},easeBackInOut:function(){return A},easeBackOut:function(){return R},easeBounce:function(){return I},easeBounceIn:function(){return N},easeBounceInOut:function(){return D},easeBounceOut:function(){return I},easeCircle:function(){return x},easeCircleIn:function(){return w},easeCircleInOut:function(){return x},easeCircleOut:function(){return k},easeCubic:function(){return u},easeCubicIn:function(){return l},easeCubicInOut:function(){return u},easeCubicOut:function(){return c},easeElastic:function(){return Z},easeElasticIn:function(){return P},easeElasticInOut:function(){return F},easeElasticOut:function(){return Z},easeExp:function(){return S},easeExpIn:function(){return b},easeExpInOut:function(){return S},easeExpOut:function(){return C},easeLinear:function(){return r},easePoly:function(){return f},easePolyIn:function(){return d},easePolyInOut:function(){return f},easePolyOut:function(){return h},easeQuad:function(){return s},easeQuadIn:function(){return o},easeQuadInOut:function(){return s},easeQuadOut:function(){return a},easeSin:function(){return y},easeSinIn:function(){return v},easeSinInOut:function(){return y},easeSinOut:function(){return m}});var d=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),h=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),f=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),p=Math.PI,g=p/2;function v(e){return 1===+e?1:1-Math.cos(e*g)}function m(e){return Math.sin(e*g)}function y(e){return(1-Math.cos(p*e))/2}function _(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function b(e){return _(1-+e)}function C(e){return 1-_(e)}function S(e){return((e*=2)<=1?_(1-e):2-_(e-1))/2}function w(e){return 1-Math.sqrt(1-e*e)}function k(e){return Math.sqrt(1- --e*e)}function x(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var E=4/11,T=7.5625;function N(e){return 1-I(1-e)}function I(e){return(e=+e)<E?T*e*e:e<.7272727272727273?T*(e-=.5454545454545454)*e+.75:e<.9090909090909091?T*(e-=.8181818181818182)*e+.9375:T*(e-=.9545454545454546)*e+.984375}function D(e){return((e*=2)<=1?1-I(1-e):I(e-1)+1)/2}var L=1.70158,O=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(L),R=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(L),A=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(L),M=2*Math.PI,P=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=M);function r(e){return t*_(- --e)*Math.sin((i-e)/n)}return r.amplitude=function(t){return e(t,n*M)},r.period=function(n){return e(t,n)},r}(1,.3),Z=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=M);function r(e){return 1-t*_(e=+e)*Math.sin((e+i)/n)}return r.amplitude=function(t){return e(t,n*M)},r.period=function(n){return e(t,n)},r}(1,.3),F=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=M);function r(e){return((e=2*e-1)<0?t*_(-e)*Math.sin((i-e)/n):2-t*_(e)*Math.sin((i+e)/n))/2}return r.amplitude=function(t){return e(t,n*M)},r.period=function(n){return e(t,n)},r}(1,.3),B={};function H(e){return B[e.toLowerCase()]||i[e]}function z(e,t){B[e.toLowerCase()]=t}},73230:function(e,t,n){"use strict";n.d(t,{b:function(){return o},W:function(){return r}});var i=new Map;function r(e,t){i.set(e,t)}function o(e){return i.get(e)}function a(e){var t=e.attr();return{x:t.x,y:t.y,width:t.width,height:t.height}}function s(e){var t=e.attr(),n=t.x,i=t.y,r=t.r;return{x:n-r,y:i-r,width:2*r,height:2*r}}var l=n(41622);function c(e,t){return e&&t?{minX:Math.min(e.minX,t.minX),minY:Math.min(e.minY,t.minY),maxX:Math.max(e.maxX,t.maxX),maxY:Math.max(e.maxY,t.maxY)}:e||t}function u(e,t){var n=e.get("startArrowShape"),i=e.get("endArrowShape");return n&&(t=c(t,n.getCanvasBBox())),i&&(t=c(t,i.getCanvasBBox())),t}var d=n(19341);var h=n(53415),f=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,p=/[^\s\,]+/gi;var g=function(e){var t=e||[];return(0,h.kJ)(t)?t:(0,h.HD)(t)?(t=t.match(f),(0,h.S6)(t,(function(e,n){if((e=e.match(p))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}(0,h.S6)(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0};var v="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029";new RegExp("([a-z])["+v+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+v+"]*,?["+v+"]*)+)","ig"),new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+v+"]*,?["+v+"]*","ig");Math.PI;function m(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function y(e,t){return m(e)*m(t)?(e[0]*t[0]+e[1]*t[1])/(m(e)*m(t)):1}function _(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(y(e,t))}function b(e,t){return e[0]===t[0]&&e[1]===t[1]}function C(e,t){var n=t[1],i=t[2],r=(0,h.wQ)((0,h.c$)(t[3]),2*Math.PI),o=t[4],a=t[5],s=e[0],l=e[1],c=t[6],u=t[7],d=Math.cos(r)*(s-c)/2+Math.sin(r)*(l-u)/2,f=-1*Math.sin(r)*(s-c)/2+Math.cos(r)*(l-u)/2,p=d*d/(n*n)+f*f/(i*i);p>1&&(n*=Math.sqrt(p),i*=Math.sqrt(p));var g=n*n*(f*f)+i*i*(d*d),v=g?Math.sqrt((n*n*(i*i)-g)/g):1;o===a&&(v*=-1),isNaN(v)&&(v=0);var m=i?v*n*f/i:0,C=n?v*-i*d/n:0,S=(s+c)/2+Math.cos(r)*m-Math.sin(r)*C,w=(l+u)/2+Math.sin(r)*m+Math.cos(r)*C,k=[(d-m)/n,(f-C)/i],x=[(-1*d-m)/n,(-1*f-C)/i],E=_([1,0],k),T=_(k,x);return y(k,x)<=-1&&(T=Math.PI),y(k,x)>=1&&(T=0),0===a&&T>0&&(T-=2*Math.PI),1===a&&T<0&&(T+=2*Math.PI),{cx:S,cy:w,rx:b(e,[c,u])?0:n,ry:b(e,[c,u])?0:i,startAngle:E,endAngle:E+T,xRotation:r,arcFlag:o,sweepFlag:a}}function S(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function w(e,t){var n=e.prePoint,i=e.currentPoint,r=e.nextPoint,o=Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2),a=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2),s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),l=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!l||0===Math.sin(l)||(0,h.vQ)(l,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(r[1]-i[1],r[0]-i[0])),u=Math.abs(Math.atan2(r[0]-i[0],r[1]-i[1]));return c=c>Math.PI/2?Math.PI-c:c,u=u>Math.PI/2?Math.PI-u:u,{xExtra:Math.cos(l/2-c)*(t/2*(1/Math.sin(l/2)))-t/2||0,yExtra:Math.cos(u-l/2)*(t/2*(1/Math.sin(l/2)))-t/2||0}}r("rect",a),r("image",a),r("circle",s),r("marker",s),r("polyline",(function(e){for(var t=e.attr().points,n=[],i=[],r=0;r<t.length;r++){var o=t[r];n.push(o[0]),i.push(o[1])}var a=l.Zr.getBBoxByArray(n,i),s=a.x,c=a.y,d={minX:s,minY:c,maxX:s+a.width,maxY:c+a.height};return{x:(d=u(e,d)).minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}})),r("polygon",(function(e){for(var t=e.attr().points,n=[],i=[],r=0;r<t.length;r++){var o=t[r];n.push(o[0]),i.push(o[1])}return l.Zr.getBBoxByArray(n,i)})),r("text",(function(e){var t=e.attr(),n=t.x,i=t.y,r=t.text,o=t.fontSize,a=t.lineHeight,s=t.font;s||(s=(0,d.$O)(t));var l,c=(0,d.mY)(r,s);if(c){var u=t.textAlign,h=t.textBaseline,f=(0,d.FE)(r,o,a),p={x:n,y:i-f};u&&("end"===u||"right"===u?p.x-=c:"center"===u&&(p.x-=c/2)),h&&("top"===h?p.y+=f:"middle"===h&&(p.y+=f/2)),l={x:p.x,y:p.y,width:c,height:f}}else l={x:n,y:i,width:0,height:0};return l})),r("path",(function(e){var t=e.attr(),n=t.path,i=t.stroke?t.lineWidth:0,r=e.get("segments")||function(e){for(var t=[],n=null,i=null,r=null,o=0,a=(e=g(e)).length,s=0;s<a;s++){var l=e[s];i=e[s+1];var c=l[0],u={command:c,prePoint:n,params:l,startTangent:null,endTangent:null};switch(c){case"M":r=[l[1],l[2]],o=s;break;case"A":var d=C(n,l);u.arcParams=d}if("Z"===c)n=r,i=e[o+1];else{var h=l.length;n=[l[h-2],l[h-1]]}i&&"Z"===i[0]&&(i=e[o],t[o]&&(t[o].prePoint=n)),u.currentPoint=n,t[o]&&b(n,t[o].currentPoint)&&(t[o].prePoint=u.prePoint);var f=i?[i[i.length-2],i[i.length-1]]:null;u.nextPoint=f;var p=u.prePoint;if(["L","H","V"].includes(c))u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]];else if("Q"===c){var v=[l[1],l[2]];u.startTangent=[p[0]-v[0],p[1]-v[1]],u.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===c)v=S((_=t[s-1]).currentPoint,p),"Q"===_.command?(u.command="Q",u.startTangent=[p[0]-v[0],p[1]-v[1]],u.endTangent=[n[0]-v[0],n[1]-v[1]]):(u.command="TL",u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]]);else if("C"===c){var m=[l[1],l[2]],y=[l[3],l[4]];u.startTangent=[p[0]-m[0],p[1]-m[1]],u.endTangent=[n[0]-y[0],n[1]-y[1]],0===u.startTangent[0]&&0===u.startTangent[1]&&(u.startTangent=[m[0]-y[0],m[1]-y[1]]),0===u.endTangent[0]&&0===u.endTangent[1]&&(u.endTangent=[y[0]-m[0],y[1]-m[1]])}else if("S"===c){var _;m=S((_=t[s-1]).currentPoint,p),y=[l[1],l[2]],"C"===_.command?(u.command="C",u.startTangent=[p[0]-m[0],p[1]-m[1]],u.endTangent=[n[0]-y[0],n[1]-y[1]]):(u.command="SQ",u.startTangent=[p[0]-y[0],p[1]-y[1]],u.endTangent=[n[0]-y[0],n[1]-y[1]])}else if("A"===c){var w=.001,k=u.arcParams||{},x=k.cx,E=void 0===x?0:x,T=k.cy,N=void 0===T?0:T,I=k.rx,D=void 0===I?0:I,L=k.ry,O=void 0===L?0:L,R=k.sweepFlag,A=void 0===R?0:R,M=k.startAngle,P=void 0===M?0:M,Z=k.endAngle,F=void 0===Z?0:Z;0===A&&(w*=-1);var B=D*Math.cos(P-w)+E,H=O*Math.sin(P-w)+N;u.startTangent=[B-r[0],H-r[1]];var z=D*Math.cos(P+F+w)+E,j=O*Math.sin(P+F-w)+N;u.endTangent=[p[0]-z,p[1]-j]}t.push(u)}return t}(n),o=function(e,t){for(var n=[],i=[],r=[],o=0;o<e.length;o++){var a=(m=e[o]).currentPoint,s=m.params,c=m.prePoint,u=void 0;switch(m.command){case"Q":u=l.lD.box(c[0],c[1],s[1],s[2],s[3],s[4]);break;case"C":u=l.Ll.box(c[0],c[1],s[1],s[2],s[3],s[4],s[5],s[6]);break;case"A":var d=m.arcParams;u=l.wN.box(d.cx,d.cy,d.rx,d.ry,d.xRotation,d.startAngle,d.endAngle);break;default:n.push(a[0]),i.push(a[1])}u&&(m.box=u,n.push(u.x,u.x+u.width),i.push(u.y,u.y+u.height)),t&&("L"===m.command||"M"===m.command)&&m.prePoint&&m.nextPoint&&r.push(m)}n=n.filter((function(e){return!Number.isNaN(e)&&e!==1/0&&e!==-1/0})),i=i.filter((function(e){return!Number.isNaN(e)&&e!==1/0&&e!==-1/0}));var f=(0,h.VV)(n),p=(0,h.VV)(i),g=(0,h.Fp)(n),v=(0,h.Fp)(i);if(0===r.length)return{x:f,y:p,width:g-f,height:v-p};for(o=0;o<r.length;o++){var m;(a=(m=r[o]).currentPoint)[0]===f?f-=w(m,t).xExtra:a[0]===g&&(g+=w(m,t).xExtra),a[1]===p?p-=w(m,t).yExtra:a[1]===v&&(v+=w(m,t).yExtra)}return{x:f,y:p,width:g-f,height:v-p}}(r,i),a=o.x,s=o.y,c={minX:a,minY:s,maxX:a+o.width,maxY:s+o.height};return{x:(c=u(e,c)).minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY}})),r("line",(function(e){var t=e.attr(),n=t.x1,i=t.y1,r=t.x2,o=t.y2,a={minX:Math.min(n,r),maxX:Math.max(n,r),minY:Math.min(i,o),maxY:Math.max(i,o)};return{x:(a=u(e,a)).minX,y:a.minY,width:a.maxX-a.minX,height:a.maxY-a.minY}})),r("ellipse",(function(e){var t=e.attr(),n=t.x,i=t.y,r=t.rx,o=t.ry;return{x:n-r,y:i-o,width:2*r,height:2*o}}))},19168:function(e,t){"use strict";var n=function(){function e(e,t){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=e,this.name=e,this.originalEvent=t,this.timeStamp=t.timeStamp}return e.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e.prototype.toString=function(){return"[Event (type="+this.type+")]"},e.prototype.save=function(){},e.prototype.restore=function(){},e}();t.Z=n},34494:function(e,t,n){"use strict";n.r(t),n.d(t,{AbstractCanvas:function(){return u.Z},AbstractGroup:function(){return d.Z},AbstractShape:function(){return h.Z},Base:function(){return c.Z},Event:function(){return l.Z},PathUtil:function(){return i},assembleFont:function(){return p.$O},getBBoxMethod:function(){return f.b},getOffScreenContext:function(){return m.L},getTextHeight:function(){return p.FE},invert:function(){return v.U_},isAllowCapture:function(){return g.pP},multiplyVec2:function(){return v.rG},registerBBox:function(){return f.W},registerEasing:function(){return y.C},version:function(){return _}});var i=n(31607),r=n(86135),o={};for(var a in r)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(a)<0&&(o[a]=function(e){return r[e]}.bind(0,a));n.d(t,o);var s=n(468);o={};for(var a in s)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(a)<0&&(o[a]=function(e){return s[e]}.bind(0,a));n.d(t,o);var l=n(19168),c=n(49753),u=n(71692),d=n(99157),h=n(75403),f=n(73230),p=n(19341),g=n(52489),v=n(65313),m=n(43841),y=n(73169),_="0.5.11"},468:function(){},86135:function(){},65313:function(e,t,n){"use strict";function i(e,t){var n=[],i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=e[8],h=t[0],f=t[1],p=t[2],g=t[3],v=t[4],m=t[5],y=t[6],_=t[7],b=t[8];return n[0]=h*i+f*a+p*c,n[1]=h*r+f*s+p*u,n[2]=h*o+f*l+p*d,n[3]=g*i+v*a+m*c,n[4]=g*r+v*s+m*u,n[5]=g*o+v*l+m*d,n[6]=y*i+_*a+b*c,n[7]=y*r+_*s+b*u,n[8]=y*o+_*l+b*d,n}function r(e,t){var n=[],i=t[0],r=t[1];return n[0]=e[0]*i+e[3]*r+e[6],n[1]=e[1]*i+e[4]*r+e[7],n}function o(e){var t=[],n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=u*a-s*c,h=-u*o+s*l,f=c*o-a*l,p=n*d+i*h+r*f;return p?(p=1/p,t[0]=d*p,t[1]=(-u*i+r*c)*p,t[2]=(s*i-r*a)*p,t[3]=h*p,t[4]=(u*n-r*l)*p,t[5]=(-s*n+r*o)*p,t[6]=f*p,t[7]=(-c*n+i*l)*p,t[8]=(a*n-i*o)*p,t):null}n.d(t,{U_:function(){return o},rG:function(){return r},xq:function(){return i}})},43841:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var i=null;function r(){if(!i){var e=document.createElement("canvas");e.width=1,e.height=1,i=e.getContext("2d")}return i}},31607:function(e,t,n){"use strict";n.r(t),n.d(t,{catmullRomToBezier:function(){return l},fillPath:function(){return D},fillPathByDiff:function(){return R},formatPath:function(){return P},intersection:function(){return T},parsePathArray:function(){return v},parsePathString:function(){return s},pathToAbsolute:function(){return u},pathToCurve:function(){return p},rectPath:function(){return S}});var i=n(53415),r="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",o=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),s=function(e){if(!e)return null;if((0,i.kJ)(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(e).replace(o,(function(i,r,o){var s=[],l=r.toLowerCase();if(o.replace(a,(function(e,t){t&&s.push(+t)})),"m"===l&&s.length>2&&(n.push([r].concat(s.splice(0,2))),l="l",r="m"===r?"l":"L"),"o"===l&&1===s.length&&n.push([r,s[0]]),"r"===l)n.push([r].concat(s));else for(;s.length>=t[l]&&(n.push([r].concat(s.splice(0,t[l]))),t[l]););return e})),n},l=function(e,t){for(var n=[],i=0,r=e.length;r-2*!t>i;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?r-4===i?o[3]={x:+e[0],y:+e[1]}:r-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[r-2],y:+e[r-1]}:r-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},c=function(e,t,n,i,r){var o=[];if(null===r&&null===i&&(i=n),e=+e,t=+t,n=+n,i=+i,null!==r){var a=Math.PI/180,s=e+n*Math.cos(-i*a),l=e+n*Math.cos(-r*a);o=[["M",s,t+n*Math.sin(-i*a)],["A",n,n,0,+(r-i>180),0,l,t+n*Math.sin(-r*a)]]}else o=[["M",e,t],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return o},u=function(e){if(!(e=s(e))||!e.length)return[["M",0,0]];var t,n,i=[],r=0,o=0,a=0,u=0,d=0;"M"===e[0][0]&&(a=r=+e[0][1],u=o=+e[0][2],d++,i[0]=["M",r,o]);for(var h=3===e.length&&"M"===e[0][0]&&"R"===e[1][0].toUpperCase()&&"Z"===e[2][0].toUpperCase(),f=void 0,p=void 0,g=d,v=e.length;g<v;g++){if(i.push(f=[]),(t=(p=e[g])[0])!==t.toUpperCase())switch(f[0]=t.toUpperCase(),f[0]){case"A":f[1]=p[1],f[2]=p[2],f[3]=p[3],f[4]=p[4],f[5]=p[5],f[6]=+p[6]+r,f[7]=+p[7]+o;break;case"V":f[1]=+p[1]+o;break;case"H":f[1]=+p[1]+r;break;case"R":for(var m=2,y=(n=[r,o].concat(p.slice(1))).length;m<y;m++)n[m]=+n[m]+r,n[++m]=+n[m]+o;i.pop(),i=i.concat(l(n,h));break;case"O":i.pop(),(n=c(r,o,p[1],p[2])).push(n[0]),i=i.concat(n);break;case"U":i.pop(),i=i.concat(c(r,o,p[1],p[2],p[3])),f=["U"].concat(i[i.length-1].slice(-2));break;case"M":a=+p[1]+r,u=+p[2]+o;break;default:for(m=1,y=p.length;m<y;m++)f[m]=+p[m]+(m%2?r:o)}else if("R"===t)n=[r,o].concat(p.slice(1)),i.pop(),i=i.concat(l(n,h)),f=["R"].concat(p.slice(-2));else if("O"===t)i.pop(),(n=c(r,o,p[1],p[2])).push(n[0]),i=i.concat(n);else if("U"===t)i.pop(),i=i.concat(c(r,o,p[1],p[2],p[3])),f=["U"].concat(i[i.length-1].slice(-2));else for(var _=0,b=p.length;_<b;_++)f[_]=p[_];if("O"!==(t=t.toUpperCase()))switch(f[0]){case"Z":r=+a,o=+u;break;case"H":r=f[1];break;case"V":o=f[1];break;case"M":a=f[f.length-2],u=f[f.length-1];break;default:r=f[f.length-2],o=f[f.length-1]}}return i},d=function(e,t,n,i){return[e,t,n,i,n,i]},h=function(e,t,n,i,r,o){var a=1/3,s=2/3;return[a*e+s*n,a*t+s*i,a*r+s*n,a*o+s*i,r,o]},f=function e(t,n,i,r,o,a,s,l,c,u){i===r&&(i+=1);var d,h,f,p,g,v=120*Math.PI/180,m=Math.PI/180*(+o||0),y=[],_=function(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}};if(u)h=u[0],f=u[1],p=u[2],g=u[3];else{t=(d=_(t,n,-m)).x,n=d.y,l=(d=_(l,c,-m)).x,c=d.y,t===l&&n===c&&(l+=1,c+=1);var b=(t-l)/2,C=(n-c)/2,S=b*b/(i*i)+C*C/(r*r);S>1&&(i*=S=Math.sqrt(S),r*=S);var w=i*i,k=r*r,x=(a===s?-1:1)*Math.sqrt(Math.abs((w*k-w*C*C-k*b*b)/(w*C*C+k*b*b)));p=x*i*C/r+(t+l)/2,g=x*-r*b/i+(n+c)/2,h=Math.asin(((n-g)/r).toFixed(9)),f=Math.asin(((c-g)/r).toFixed(9)),h=t<p?Math.PI-h:h,f=l<p?Math.PI-f:f,h<0&&(h=2*Math.PI+h),f<0&&(f=2*Math.PI+f),s&&h>f&&(h-=2*Math.PI),!s&&f>h&&(f-=2*Math.PI)}var E=f-h;if(Math.abs(E)>v){var T=f,N=l,I=c;f=h+v*(s&&f>h?1:-1),y=e(l=p+i*Math.cos(f),c=g+r*Math.sin(f),i,r,o,0,s,N,I,[f,T,p,g])}E=f-h;var D=Math.cos(h),L=Math.sin(h),O=Math.cos(f),R=Math.sin(f),A=Math.tan(E/4),M=4/3*i*A,P=4/3*r*A,Z=[t,n],F=[t+M*L,n-P*D],B=[l+M*R,c-P*O],H=[l,c];if(F[0]=2*Z[0]-F[0],F[1]=2*Z[1]-F[1],u)return[F,B,H].concat(y);for(var z=[],j=0,V=(y=[F,B,H].concat(y).join().split(",")).length;j<V;j++)z[j]=j%2?_(y[j-1],y[j],m).y:_(y[j],y[j+1],m).x;return z},p=function(e,t){var n,i=u(e),r=t&&u(t),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],l=[],c="",p="",g=function(e,t,n){var i,r;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"].concat(f.apply(0,[t.x,t.y].concat(e.slice(1))));break;case"S":"C"===n||"S"===n?(i=2*t.x-t.bx,r=2*t.y-t.by):(i=t.x,r=t.y),e=["C",i,r].concat(e.slice(1));break;case"T":"Q"===n||"T"===n?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=["C"].concat(h(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"].concat(h(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"].concat(d(t.x,t.y,e[1],e[2]));break;case"H":e=["C"].concat(d(t.x,t.y,e[1],t.y));break;case"V":e=["C"].concat(d(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"].concat(d(t.x,t.y,t.X,t.Y))}return e},v=function(e,t){if(e[t].length>7){e[t].shift();for(var o=e[t];o.length;)s[t]="A",r&&(l[t]="A"),e.splice(t++,0,["C"].concat(o.splice(0,6)));e.splice(t,1),n=Math.max(i.length,r&&r.length||0)}},m=function(e,t,o,a,s){e&&t&&"M"===e[s][0]&&"M"!==t[s][0]&&(t.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=e[s][1],o.y=e[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var y=0;y<n;y++){i[y]&&(c=i[y][0]),"C"!==c&&(s[y]=c,y&&(p=s[y-1])),i[y]=g(i[y],o,p),"A"!==s[y]&&"C"===c&&(s[y]="C"),v(i,y),r&&(r[y]&&(c=r[y][0]),"C"!==c&&(l[y]=c,y&&(p=l[y-1])),r[y]=g(r[y],a,p),"A"!==l[y]&&"C"===c&&(l[y]="C"),v(r,y)),m(i,r,o,a,y),m(r,i,a,o,y);var _=i[y],b=r&&r[y],C=_.length,S=r&&b.length;o.x=_[C-2],o.y=_[C-1],o.bx=parseFloat(_[C-4])||o.x,o.by=parseFloat(_[C-3])||o.y,a.bx=r&&(parseFloat(b[S-4])||a.x),a.by=r&&(parseFloat(b[S-3])||a.y),a.x=r&&b[S-2],a.y=r&&b[S-1]}return r?[i,r]:i},g=/,?([a-z]),?/gi,v=function(e){return e.join(",").replace(g,"$1")},m=function(e,t,n,i,r){return e*(e*(-3*t+9*n-9*i+3*r)+6*t-12*n+6*i)-3*t+3*n},y=function(e,t,n,i,r,o,a,s,l){null===l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,f=0;f<12;f++){var p=c*u[f]+c,g=m(p,e,n,r,a),v=m(p,t,i,o,s),y=g*g+v*v;h+=d[f]*Math.sqrt(y)}return c*h},_=function(e,t,n,i,r,o,a,s){for(var l,c,u,d,h=[],f=[[],[]],p=0;p<2;++p)if(0===p?(c=6*e-12*n+6*r,l=-3*e+9*n-9*r+3*a,u=3*n-3*e):(c=6*t-12*i+6*o,l=-3*t+9*i-9*o+3*s,u=3*i-3*t),Math.abs(l)<1e-12){if(Math.abs(c)<1e-12)continue;(d=-u/c)>0&&d<1&&h.push(d)}else{var g=c*c-4*u*l,v=Math.sqrt(g);if(!(g<0)){var m=(-c+v)/(2*l);m>0&&m<1&&h.push(m);var y=(-c-v)/(2*l);y>0&&y<1&&h.push(y)}}for(var _,b=h.length,C=b;b--;)_=1-(d=h[b]),f[0][b]=_*_*_*e+3*_*_*d*n+3*_*d*d*r+d*d*d*a,f[1][b]=_*_*_*t+3*_*_*d*i+3*_*d*d*o+d*d*d*s;return f[0][C]=e,f[1][C]=t,f[0][C+1]=a,f[1][C+1]=s,f[0].length=f[1].length=C+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},b=function(e,t,n,i,r,o,a,s){if(!(Math.max(e,n)<Math.min(r,a)||Math.min(e,n)>Math.max(r,a)||Math.max(t,i)<Math.min(o,s)||Math.min(t,i)>Math.max(o,s))){var l=(e-n)*(o-s)-(t-i)*(r-a);if(l){var c=((e*i-t*n)*(r-a)-(e-n)*(r*s-o*a))/l,u=((e*i-t*n)*(o-s)-(t-i)*(r*s-o*a))/l,d=+c.toFixed(2),h=+u.toFixed(2);if(!(d<+Math.min(e,n).toFixed(2)||d>+Math.max(e,n).toFixed(2)||d<+Math.min(r,a).toFixed(2)||d>+Math.max(r,a).toFixed(2)||h<+Math.min(t,i).toFixed(2)||h>+Math.max(t,i).toFixed(2)||h<+Math.min(o,s).toFixed(2)||h>+Math.max(o,s).toFixed(2)))return{x:c,y:u}}}},C=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},S=function(e,t,n,i,r){if(r)return[["M",+e+ +r,t],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]];var o=[["M",e,t],["l",n,0],["l",0,i],["l",-n,0],["z"]];return o.parsePathArray=v,o},w=function(e,t,n,i){return null===e&&(e=t=n=i=0),null===t&&(t=e.y,n=e.width,i=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:i,h:i,x2:e+n,y2:t+i,cx:e+n/2,cy:t+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:S(e,t,n,i),vb:[e,t,n,i].join(" ")}},k=function(e,t,n,r,o,a,s,l){(0,i.kJ)(e)||(e=[e,t,n,r,o,a,s,l]);var c=_.apply(null,e);return w(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},x=function(e,t,n,i,r,o,a,s,l){var c=1-l,u=Math.pow(c,3),d=Math.pow(c,2),h=l*l,f=h*l,p=e+2*l*(n-e)+h*(r-2*n+e),g=t+2*l*(i-t)+h*(o-2*i+t),v=n+2*l*(r-n)+h*(a-2*r+n),m=i+2*l*(o-i)+h*(s-2*o+i);return{x:u*e+3*d*l*n+3*c*l*l*r+f*a,y:u*t+3*d*l*i+3*c*l*l*o+f*s,m:{x:p,y:g},n:{x:v,y:m},start:{x:c*e+l*n,y:c*t+l*i},end:{x:c*r+l*a,y:c*o+l*s},alpha:90-180*Math.atan2(p-v,g-m)/Math.PI}},E=function(e,t,n){if(!function(e,t){return e=w(e),t=w(t),C(t,e.x,e.y)||C(t,e.x2,e.y)||C(t,e.x,e.y2)||C(t,e.x2,e.y2)||C(e,t.x,t.y)||C(e,t.x2,t.y)||C(e,t.x,t.y2)||C(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)}(k(e),k(t)))return n?0:[];for(var i=~~(y.apply(0,e)/8),r=~~(y.apply(0,t)/8),o=[],a=[],s={},l=n?0:[],c=0;c<i+1;c++){var u=x.apply(0,e.concat(c/i));o.push({x:u.x,y:u.y,t:c/i})}for(c=0;c<r+1;c++){u=x.apply(0,t.concat(c/r));a.push({x:u.x,y:u.y,t:c/r})}for(c=0;c<i;c++)for(var d=0;d<r;d++){var h=o[c],f=o[c+1],p=a[d],g=a[d+1],v=Math.abs(f.x-h.x)<.001?"y":"x",m=Math.abs(g.x-p.x)<.001?"y":"x",_=b(h.x,h.y,f.x,f.y,p.x,p.y,g.x,g.y);if(_){if(s[_.x.toFixed(4)]===_.y.toFixed(4))continue;s[_.x.toFixed(4)]=_.y.toFixed(4);var S=h.t+Math.abs((_[v]-h[v])/(f[v]-h[v]))*(f.t-h.t),E=p.t+Math.abs((_[m]-p[m])/(g[m]-p[m]))*(g.t-p.t);S>=0&&S<=1&&E>=0&&E<=1&&(n?l+=1:l.push({x:_.x,y:_.y,t1:S,t2:E}))}}return l},T=function(e,t){return function(e,t,n){var i,r,o,a,s,l,c,u,d,h;e=p(e),t=p(t);for(var f=n?0:[],g=0,v=e.length;g<v;g++){var m=e[g];if("M"===m[0])i=s=m[1],r=l=m[2];else{"C"===m[0]?(d=[i,r].concat(m.slice(1)),i=d[6],r=d[7]):(d=[i,r,i,r,s,l,s,l],i=s,r=l);for(var y=0,_=t.length;y<_;y++){var b=t[y];if("M"===b[0])o=c=b[1],a=u=b[2];else{"C"===b[0]?(h=[o,a].concat(b.slice(1)),o=h[6],a=h[7]):(h=[o,a,o,a,c,u,c,u],o=c,a=u);var C=E(d,h,n);if(n)f+=C;else{for(var S=0,w=C.length;S<w;S++)C[S].segment1=g,C[S].segment2=y,C[S].bez1=d,C[S].bez2=h;f=f.concat(C)}}}}}return f}(e,t)};function N(e,t){var n=[],i=[];return e.length&&function e(t,r){if(1===t.length)n.push(t[0]),i.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&i.push(t[a+1]),o[a]=[(1-r)*t[a][0]+r*t[a+1][0],(1-r)*t[a][1]+r*t[a+1][1]];e(o,r)}}(e,t),{left:n,right:i.reverse()}}var I=function(e,t,n){if(1===n)return[[].concat(e)];var i=[];if("L"===t[0]||"C"===t[0]||"Q"===t[0])i=i.concat(function(e,t,n){var i=[[e[1],e[2]]];n=n||2;var r=[];"A"===t[0]?(i.push(t[6]),i.push(t[7])):"C"===t[0]?(i.push([t[1],t[2]]),i.push([t[3],t[4]]),i.push([t[5],t[6]])):"S"===t[0]||"Q"===t[0]?(i.push([t[1],t[2]]),i.push([t[3],t[4]])):i.push([t[1],t[2]]);for(var o=i,a=1/n,s=0;s<n-1;s++){var l=N(o,a/(1-a*s));r.push(l.left),o=l.right}return r.push(o),r.map((function(e){var t=[];return 4===e.length&&(t.push("C"),t=t.concat(e[2])),e.length>=3&&(3===e.length&&t.push("Q"),t=t.concat(e[1])),2===e.length&&t.push("L"),t.concat(e[e.length-1])}))}(e,t,n));else{var r=[].concat(e);"M"===r[0]&&(r[0]="L");for(var o=0;o<=n-1;o++)i.push(r)}return i},D=function(e,t){if(1===e.length)return e;var n=e.length-1,i=t.length-1,r=n/i,o=[];if(1===e.length&&"M"===e[0][0]){for(var a=0;a<i-n;a++)e.push(e[0]);return e}for(a=0;a<i;a++){var s=Math.floor(r*a);o[s]=(o[s]||0)+1}var l=o.reduce((function(t,i,r){return r===n?t.concat(e[n]):t.concat(I(e[r],e[r+1],i))}),[]);return l.unshift(e[0]),"Z"!==t[i]&&"z"!==t[i]||l.push("Z"),l},L=function(e,t){if(e.length!==t.length)return!1;var n=!0;return(0,i.S6)(e,(function(e,i){if(e!==t[i])return n=!1,!1})),n};function O(e,t,n){var i=null,r=n;return t<r&&(r=t,i="add"),e<r&&(r=e,i="del"),{type:i,min:r}}var R=function(e,t){var n=function(e,t){var n,i,r=e.length,o=t.length,a=0;if(0===r||0===o)return null;for(var s=[],l=0;l<=r;l++)s[l]=[],s[l][0]={min:l};for(var c=0;c<=o;c++)s[0][c]={min:c};for(l=1;l<=r;l++)for(n=e[l-1],c=1;c<=o;c++){i=t[c-1],a=L(n,i)?0:1;var u=s[l-1][c].min+1,d=s[l][c-1].min+1,h=s[l-1][c-1].min+a;s[l][c]=O(u,d,h)}return s}(e,t),i=e.length,r=t.length,o=[],a=1,s=1;if(n[i][r].min!==i){for(var l=1;l<=i;l++){var c=n[l][l].min;s=l;for(var u=a;u<=r;u++)n[l][u].min<c&&(c=n[l][u].min,s=u);a=s,n[l][a].type&&o.push({index:l-1,type:n[l][a].type})}for(l=o.length-1;l>=0;l--)a=o[l].index,"add"===o[l].type?e.splice(a,0,[].concat(e[a])):e.splice(a,1)}var d=r-(i=e.length);if(i<r)for(l=0;l<d;l++)"z"===e[i-1][0]||"Z"===e[i-1][0]?e.splice(i-2,0,e[i-2]):e.push(e[i-1]),i+=1;return e};function A(e,t,n){for(var i,r=[].concat(e),o=1/(n+1),a=M(t)[0],s=1;s<=n;s++)o*=s,0===(i=Math.floor(e.length*o))?r.unshift([a[0]*o+e[i][0]*(1-o),a[1]*o+e[i][1]*(1-o)]):r.splice(i,0,[a[0]*o+e[i][0]*(1-o),a[1]*o+e[i][1]*(1-o)]);return r}function M(e){var t=[];switch(e[0]){case"M":case"L":case"T":t.push([e[1],e[2]]);break;case"A":t.push([e[6],e[7]]);break;case"Q":case"S":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"C":t.push([e[5],e[6]]),t.push([e[1],e[2]]),t.push([e[3],e[4]]);break;case"H":case"V":t.push([e[1],e[1]])}return t}var P=function(e,t){if(e.length<=1)return e;for(var n,i=0;i<t.length;i++)if(e[i][0]!==t[i][0])switch(n=M(e[i]),t[i][0]){case"M":e[i]=["M"].concat(n[0]);break;case"L":e[i]=["L"].concat(n[0]);break;case"A":e[i]=[].concat(t[i]),e[i][6]=n[0][0],e[i][7]=n[0][1];break;case"Q":if(n.length<2){if(!(i>0)){e[i]=t[i];break}n=A(n,e[i-1],1)}e[i]=["Q"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;case"T":e[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){e[i]=t[i];break}n=A(n,e[i-1],2)}e[i]=["C"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;case"S":if(n.length<2){if(!(i>0)){e[i]=t[i];break}n=A(n,e[i-1],1)}e[i]=["S"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;default:e[i]=t[i]}return e}},19341:function(e,t,n){"use strict";n.d(t,{$O:function(){return s},FE:function(){return o},mY:function(){return a}});var i=n(52489),r=n(43841);function o(e,t,n){var r=1;if((0,i.HD)(e)&&(r=e.split("\n").length),r>1){var o=function(e,t){return t?t-e:.14*e}(t,n);return t*r+o*(r-1)}return t}function a(e,t){var n=(0,r.L)(),o=0;if((0,i.kK)(e)||""===e)return o;if(n.save(),n.font=t,(0,i.HD)(e)&&e.includes("\n")){var a=e.split("\n");(0,i.S6)(a,(function(e){var t=n.measureText(e).width;o<t&&(o=t)}))}else o=n.measureText(e).width;return n.restore(),o}function s(e){var t=e.fontSize,n=e.fontFamily,i=e.fontWeight;return[e.fontStyle,e.fontVariant,i,t+"px",n].join(" ").trim()}},52489:function(e,t,n){"use strict";n.d(t,{As:function(){return r},CD:function(){return i.CD},HD:function(){return i.HD},Kn:function(){return i.Kn},S6:function(){return i.S6},UY:function(){return a},jC:function(){return i.jC},jU:function(){return o},kK:function(){return i.UM},mf:function(){return i.mf},pP:function(){return s}});var i=n(53415);function r(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}var o="undefined"!==typeof window&&"undefined"!==typeof window.document;function a(e,t){if(e.isCanvas())return!0;for(var n=t.getParent(),i=!1;n;){if(n===e){i=!0;break}n=n.getParent()}return i}function s(e){return e.cfg.visible&&e.cfg.capture}},41622:function(e,t,n){"use strict";n.d(t,{wN:function(){return L},Ll:function(){return k},x1:function(){return d},aH:function(){return Z},lD:function(){return y},Zr:function(){return i}});var i={};n.r(i),n.d(i,{distance:function(){return o},getBBoxByArray:function(){return s},getBBoxRange:function(){return l},isNumberEqual:function(){return a},piMod:function(){return c}});var r=n(53415);function o(e,t,n,i){var r=e-n,o=t-i;return Math.sqrt(r*r+o*o)}function a(e,t){return Math.abs(e-t)<.001}function s(e,t){var n=(0,r.VV)(e),i=(0,r.VV)(t);return{x:n,y:i,width:(0,r.Fp)(e)-n,height:(0,r.Fp)(t)-i}}function l(e,t,n,i){return{minX:(0,r.VV)([e,n]),maxX:(0,r.Fp)([e,n]),minY:(0,r.VV)([t,i]),maxY:(0,r.Fp)([t,i])}}function c(e){return(e+2*Math.PI)%(2*Math.PI)}var u=n(99874),d={box:function(e,t,n,i){return s([e,n],[t,i])},length:function(e,t,n,i){return o(e,t,n,i)},pointAt:function(e,t,n,i,r){return{x:(1-r)*e+r*n,y:(1-r)*t+r*i}},pointDistance:function(e,t,n,i,r,a){var s=(n-e)*(r-e)+(i-t)*(a-t);return s<0?o(e,t,r,a):s>(n-e)*(n-e)+(i-t)*(i-t)?o(n,i,r,a):this.pointToLine(e,t,n,i,r,a)},pointToLine:function(e,t,n,i,r,o){var a=[n-e,i-t];if(u.I6(a,[0,0]))return Math.sqrt((r-e)*(r-e)+(o-t)*(o-t));var s=[-a[1],a[0]];u.Fv(s,s);var l=[r-e,o-t];return Math.abs(u.AK(l,s))},tangentAngle:function(e,t,n,i){return Math.atan2(i-t,n-e)}};function h(e,t,n,i,r,a){var s,l=1/0,c=[n,i],u=20;a&&a>200&&(u=a/10);for(var d=1/u,h=d/10,f=0;f<=u;f++){var p=f*d,g=[r.apply(null,e.concat([p])),r.apply(null,t.concat([p]))];(_=o(c[0],c[1],g[0],g[1]))<l&&(s=p,l=_)}if(0===s)return{x:e[0],y:t[0]};if(1===s){var v=e.length;return{x:e[v-1],y:t[v-1]}}l=1/0;for(f=0;f<32&&!(h<1e-4);f++){var m=s-h,y=s+h,_=(g=[r.apply(null,e.concat([m])),r.apply(null,t.concat([m]))],o(c[0],c[1],g[0],g[1]));if(m>=0&&_<l)s=m,l=_;else{var b=[r.apply(null,e.concat([y])),r.apply(null,t.concat([y]))],C=o(c[0],c[1],b[0],b[1]);y<=1&&C<l?(s=y,l=C):h*=.5}}return{x:r.apply(null,e.concat([s])),y:r.apply(null,t.concat([s]))}}function f(e,t,n,i){var r=1-i;return r*r*e+2*i*r*t+i*i*n}function p(e,t,n){var i=e+n-2*t;if(a(i,0))return[.5];var r=(e-t)/i;return r<=1&&r>=0?[r]:[]}function g(e,t,n,i){return 2*(1-i)*(t-e)+2*i*(n-t)}function v(e,t,n,i,r,o,a){var s=f(e,n,r,a),l=f(t,i,o,a),c=d.pointAt(e,t,n,i,a),u=d.pointAt(n,i,r,o,a);return[[e,t,c.x,c.y,s,l],[s,l,u.x,u.y,r,o]]}function m(e,t,n,i,r,a,s){if(0===s)return(o(e,t,n,i)+o(n,i,r,a)+o(e,t,r,a))/2;var l=v(e,t,n,i,r,a,.5),c=l[0],u=l[1];return c.push(s-1),u.push(s-1),m.apply(null,c)+m.apply(null,u)}var y={box:function(e,t,n,i,r,o){var a=p(e,n,r)[0],l=p(t,i,o)[0],c=[e,r],u=[t,o];return void 0!==a&&c.push(f(e,n,r,a)),void 0!==l&&u.push(f(t,i,o,l)),s(c,u)},length:function(e,t,n,i,r,o){return m(e,t,n,i,r,o,3)},nearestPoint:function(e,t,n,i,r,o,a,s){return h([e,n,r],[t,i,o],a,s,f)},pointDistance:function(e,t,n,i,r,a,s,l){var c=this.nearestPoint(e,t,n,i,r,a,s,l);return o(c.x,c.y,s,l)},interpolationAt:f,pointAt:function(e,t,n,i,r,o,a){return{x:f(e,n,r,a),y:f(t,i,o,a)}},divide:function(e,t,n,i,r,o,a){return v(e,t,n,i,r,o,a)},tangentAngle:function(e,t,n,i,r,o,a){var s=g(e,n,r,a),l=g(t,i,o,a);return c(Math.atan2(l,s))}};function _(e,t,n,i,r){var o=1-r;return o*o*o*e+3*t*r*o*o+3*n*r*r*o+i*r*r*r}function b(e,t,n,i,r){var o=1-r;return 3*(o*o*(t-e)+2*o*r*(n-t)+r*r*(i-n))}function C(e,t,n,i){var r,o,s,l=-3*e+9*t-9*n+3*i,c=6*e-12*t+6*n,u=3*t-3*e,d=[];if(a(l,0))a(c,0)||(r=-u/c)>=0&&r<=1&&d.push(r);else{var h=c*c-4*l*u;a(h,0)?d.push(-c/(2*l)):h>0&&(o=(-c-(s=Math.sqrt(h)))/(2*l),(r=(-c+s)/(2*l))>=0&&r<=1&&d.push(r),o>=0&&o<=1&&d.push(o))}return d}function S(e,t,n,i,r,o,a,s,l){var c=_(e,n,r,a,l),u=_(t,i,o,s,l),h=d.pointAt(e,t,n,i,l),f=d.pointAt(n,i,r,o,l),p=d.pointAt(r,o,a,s,l),g=d.pointAt(h.x,h.y,f.x,f.y,l),v=d.pointAt(f.x,f.y,p.x,p.y,l);return[[e,t,h.x,h.y,g.x,g.y,c,u],[c,u,v.x,v.y,p.x,p.y,a,s]]}function w(e,t,n,i,r,a,s,l,c){if(0===c)return function(e,t){for(var n=0,i=e.length,r=0;r<i;r++)n+=o(e[r],t[r],e[(r+1)%i],t[(r+1)%i]);return n/2}([e,n,r,s],[t,i,a,l]);var u=S(e,t,n,i,r,a,s,l,.5),d=u[0],h=u[1];return d.push(c-1),h.push(c-1),w.apply(null,d)+w.apply(null,h)}var k={extrema:C,box:function(e,t,n,i,r,o,a,l){for(var c=[e,a],u=[t,l],d=C(e,n,r,a),h=C(t,i,o,l),f=0;f<d.length;f++)c.push(_(e,n,r,a,d[f]));for(f=0;f<h.length;f++)u.push(_(t,i,o,l,h[f]));return s(c,u)},length:function(e,t,n,i,r,o,a,s){return w(e,t,n,i,r,o,a,s,3)},nearestPoint:function(e,t,n,i,r,o,a,s,l,c,u){return h([e,n,r,a],[t,i,o,s],l,c,_,u)},pointDistance:function(e,t,n,i,r,a,s,l,c,u,d){var h=this.nearestPoint(e,t,n,i,r,a,s,l,c,u,d);return o(h.x,h.y,c,u)},interpolationAt:_,pointAt:function(e,t,n,i,r,o,a,s,l){return{x:_(e,n,r,a,l),y:_(t,i,o,s,l)}},divide:function(e,t,n,i,r,o,a,s,l){return S(e,t,n,i,r,o,a,s,l)},tangentAngle:function(e,t,n,i,r,o,a,s,l){var u=b(e,n,r,a,l),d=b(t,i,o,s,l);return c(Math.atan2(d,u))}};function x(e,t){var n=Math.abs(e);return t>0?n:-1*n}var E=function(e,t,n,i,r,o){var a=n,s=i;if(0===a||0===s)return{x:e,y:t};for(var l,c,u=r-e,d=o-t,h=Math.abs(u),f=Math.abs(d),p=a*a,g=s*s,v=Math.PI/4,m=0;m<4;m++){l=a*Math.cos(v),c=s*Math.sin(v);var y=(p-g)*Math.pow(Math.cos(v),3)/a,_=(g-p)*Math.pow(Math.sin(v),3)/s,b=l-y,C=c-_,S=h-y,w=f-_,k=Math.hypot(C,b),E=Math.hypot(w,S);v+=k*Math.asin((b*w-C*S)/(k*E))/Math.sqrt(p+g-l*l-c*c),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:e+x(l,u),y:t+x(c,d)}};function T(e,t,n,i,r,o){return n*Math.cos(r)*Math.cos(o)-i*Math.sin(r)*Math.sin(o)+e}function N(e,t,n,i,r,o){return n*Math.sin(r)*Math.cos(o)+i*Math.cos(r)*Math.sin(o)+t}function I(e,t,n){return{x:e*Math.cos(n),y:t*Math.sin(n)}}function D(e,t,n){var i=Math.cos(n),r=Math.sin(n);return[e*i-t*r,e*r+t*i]}var L={box:function(e,t,n,i,r,o,a){for(var s=function(e,t,n){return Math.atan(-t/e*Math.tan(n))}(n,i,r),l=1/0,c=-1/0,u=[o,a],d=2*-Math.PI;d<=2*Math.PI;d+=Math.PI){var h=s+d;o<a?o<h&&h<a&&u.push(h):a<h&&h<o&&u.push(h)}for(d=0;d<u.length;d++){var f=T(e,0,n,i,r,u[d]);f<l&&(l=f),f>c&&(c=f)}var p=function(e,t,n){return Math.atan(t/(e*Math.tan(n)))}(n,i,r),g=1/0,v=-1/0,m=[o,a];for(d=2*-Math.PI;d<=2*Math.PI;d+=Math.PI){var y=p+d;o<a?o<y&&y<a&&m.push(y):a<y&&y<o&&m.push(y)}for(d=0;d<m.length;d++){var _=N(0,t,n,i,r,m[d]);_<g&&(g=_),_>v&&(v=_)}return{x:l,y:g,width:c-l,height:v-g}},length:function(e,t,n,i,r,o,a){},nearestPoint:function(e,t,n,i,r,o,a,s,l){var c=D(s-e,l-t,-r),u=c[0],d=c[1],h=E(0,0,n,i,u,d),f=function(e,t,n,i){return(Math.atan2(i*e,n*t)+2*Math.PI)%(2*Math.PI)}(n,i,h.x,h.y);f<o?h=I(n,i,o):f>a&&(h=I(n,i,a));var p=D(h.x,h.y,r);return{x:p[0]+e,y:p[1]+t}},pointDistance:function(e,t,n,i,r,a,s,l,c){var u=this.nearestPoint(e,t,n,i,l,c);return o(u.x,u.y,l,c)},pointAt:function(e,t,n,i,r,o,a,s){var l=(a-o)*s+o;return{x:T(e,0,n,i,r,l),y:N(0,t,n,i,r,l)}},tangentAngle:function(e,t,n,i,r,o,a,s){var l=(a-o)*s+o,u=function(e,t,n,i,r,o,a,s){return-1*n*Math.cos(r)*Math.sin(s)-i*Math.sin(r)*Math.cos(s)}(0,0,n,i,r,0,0,l),d=function(e,t,n,i,r,o,a,s){return-1*n*Math.sin(r)*Math.sin(s)+i*Math.cos(r)*Math.cos(s)}(0,0,n,i,r,0,0,l);return c(Math.atan2(d,u))}};function O(e){for(var t=0,n=[],i=0;i<e.length-1;i++){var r=e[i],a=e[i+1],s=o(r[0],r[1],a[0],a[1]),l={from:r,to:a,length:s};n.push(l),t+=s}return{segments:n,totalLength:t}}function R(e){if(e.length<2)return 0;for(var t=0,n=0;n<e.length-1;n++){var i=e[n],r=e[n+1];t+=o(i[0],i[1],r[0],r[1])}return t}function A(e,t){if(t>1||t<0||e.length<2)return null;var n=O(e),i=n.segments,r=n.totalLength;if(0===r)return{x:e[0][0],y:e[0][1]};for(var o=0,a=null,s=0;s<i.length;s++){var l=i[s],c=l.from,u=l.to,h=l.length/r;if(t>=o&&t<=o+h){var f=(t-o)/h;a=d.pointAt(c[0],c[1],u[0],u[1],f);break}o+=h}return a}function M(e,t){if(t>1||t<0||e.length<2)return 0;for(var n=O(e),i=n.segments,r=n.totalLength,o=0,a=0,s=0;s<i.length;s++){var l=i[s],c=l.from,u=l.to,d=l.length/r;if(t>=o&&t<=o+d){a=Math.atan2(u[1]-c[1],u[0]-c[0]);break}o+=d}return a}function P(e,t,n){for(var i=1/0,r=0;r<e.length-1;r++){var o=e[r],a=e[r+1],s=d.pointDistance(o[0],o[1],a[0],a[1],t,n);s<i&&(i=s)}return i}var Z={box:function(e){for(var t=[],n=[],i=0;i<e.length;i++){var r=e[i];t.push(r[0]),n.push(r[1])}return s(t,n)},length:function(e){return R(e)},pointAt:function(e,t){return A(e,t)},pointDistance:function(e,t,n){return P(e,t,n)},tangentAngle:function(e,t){return M(e,t)}}},36403:function(e,t,n){"use strict";n.d(t,{Dg:function(){return c},lh:function(){return s},m$:function(){return o},vs:function(){return l},zu:function(){return a}});var i=n(5742),r=n(99874);function o(e,t,n){var r=[0,0,0,0,0,0,0,0,0];return i.vc(r,n),i.Jp(e,r,t)}function a(e,t,n){var r=[0,0,0,0,0,0,0,0,0];return i.Us(r,n),i.Jp(e,r,t)}function s(e,t,n){var r=[0,0,0,0,0,0,0,0,0];return i.xJ(r,n),i.Jp(e,r,t)}function l(e,t){for(var n,r,l,c=e?[].concat(e):[1,0,0,0,1,0,0,0,1],u=0,d=t.length;u<d;u++){var h=t[u];switch(h[0]){case"t":o(c,c,[h[1],h[2]]);break;case"s":s(c,c,[h[1],h[2]]);break;case"r":a(c,c,h[1]);break;case"m":n=c,r=c,l=h[1],i.Jp(n,l,r)}}return c}function c(e,t,n){var i=r.EU(e,t),o=function(e,t){return e[0]*t[1]-t[0]*e[1]}(e,t)>=0;return n?o?2*Math.PI-i:i:o?i:2*Math.PI-i}},53415:function(e,t,n){"use strict";n.d(t,{Ct:function(){return We},f0:function(){return Ne},uZ:function(){return j},VS:function(){return pe},d9:function(){return ge},FX:function(){return r},Ds:function(){return ve},b$:function(){return _e},e5:function(){return a},S6:function(){return f},yW:function(){return P},hX:function(){return o},sE:function(){return y},cx:function(){return _},Wx:function(){return b},ri:function(){return V},xH:function(){return C},U5:function(){return X},U2:function(){return Ie},Lo:function(){return Ve},rx:function(){return k},ru:function(){return z},vM:function(){return B},Ms:function(){return H},wH:function(){return Q},YM:function(){return A},q9:function(){return r},cq:function(){return be},kJ:function(){return d},jn:function(){return ae},J_:function(){return se},kK:function(){return he},xb:function(){return Se},Xy:function(){return we},mf:function(){return c},BD:function(){return g},UM:function(){return u},Ft:function(){return le},hj:function(){return W},vQ:function(){return U},Kn:function(){return h},PO:function(){return m},HD:function(){return D},P9:function(){return l},o8:function(){return de},XP:function(){return p},Z$:function(){return M},vl:function(){return te},UI:function(){return ke},Q8:function(){return Ee},Fp:function(){return S},UT:function(){return G},HP:function(){return me},VV:function(){return w},F:function(){return K},CD:function(){return Ne},wQ:function(){return Y},ZT:function(){return Fe},CE:function(){return Re},ei:function(){return Oe},u4:function(){return N},Od:function(){return I},U7:function(){return fe},t8:function(){return De},dp:function(){return Be},G:function(){return Z},MR:function(){return L},ng:function(){return ne},P2:function(){return Ae},qo:function(){return Me},c$:function(){return $},BB:function(){return ee},jj:function(){return O},EL:function(){return Ze},jC:function(){return ie},VO:function(){return J},I:function(){return R}});var i=function(e){return null!==e&&"function"!==typeof e&&isFinite(e.length)},r=function(e,t){return!!i(e)&&e.indexOf(t)>-1},o=function(e,t){if(!i(e))return e;for(var n=[],r=0;r<e.length;r++){var o=e[r];t(o,r)&&n.push(o)}return n},a=function(e,t){return void 0===t&&(t=[]),o(e,(function(e){return!r(t,e)}))},s={}.toString,l=function(e,t){return s.call(e)==="[object "+t+"]"},c=function(e){return l(e,"Function")},u=function(e){return null===e||void 0===e},d=function(e){return Array.isArray?Array.isArray(e):l(e,"Array")},h=function(e){var t=typeof e;return null!==e&&"object"===t||"function"===t};var f=function(e,t){if(e)if(d(e))for(var n=0,i=e.length;n<i&&!1!==t(e[n],n);n++);else if(h(e))for(var r in e)if(e.hasOwnProperty(r)&&!1===t(e[r],r))break},p=Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];return f(e,(function(n,i){c(e)&&"prototype"===i||t.push(i)})),t};var g=function(e,t){var n=p(t),i=n.length;if(u(e))return!i;for(var r=0;r<i;r+=1){var o=n[r];if(t[o]!==e[o]||!(o in e))return!1}return!0},v=function(e){return"object"===typeof e&&null!==e},m=function(e){if(!v(e)||!l(e,"Object"))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t};var y=function(e,t){if(!d(e))return null;var n;if(c(t)&&(n=t),m(t)&&(n=function(e){return g(e,t)}),n)for(var i=0;i<e.length;i+=1)if(n(e[i]))return e[i];return null};var _=function(e,t,n){void 0===n&&(n=0);for(var i=n;i<e.length;i++)if(t(e[i],i))return i;return-1},b=function(e,t){for(var n=null,i=0;i<e.length;i++){var r=e[i][t];if(!u(r)){n=d(r)?r[0]:r;break}}return n},C=function(e){if(!d(e))return[];for(var t=[],n=0;n<e.length;n++)t=t.concat(e[n]);return t},S=function(e){if(d(e))return e.reduce((function(e,t){return Math.max(e,t)}),e[0])},w=function(e){if(d(e))return e.reduce((function(e,t){return Math.min(e,t)}),e[0])},k=function(e){var t=e.filter((function(e){return!isNaN(e)}));if(!t.length)return{min:0,max:0};if(d(e[0])){for(var n=[],i=0;i<e.length;i++)n=n.concat(e[i]);t=n}var r=S(t);return{min:w(t),max:r}},x=Array.prototype,E=(x.splice,x.indexOf,Array.prototype.splice),T=function(e,t){if(!i(e))return[];for(var n=e?t.length:0,r=n-1;n--;){var o=void 0,a=t[n];n!==r&&a===o||(o=a,E.call(e,a,1))}return e},N=function(e,t,n){if(!d(e)&&!m(e))return e;var i=n;return f(e,(function(e,n){i=t(i,e,n)})),i},I=function(e,t){var n=[];if(!i(e))return n;for(var r=-1,o=[],a=e.length;++r<a;){var s=e[r];t(s,r,e)&&(n.push(s),o.push(r))}return T(e,o),n},D=function(e){return l(e,"String")};var L=function(e,t){var n;if(c(t))n=function(e,n){return t(e)-t(n)};else{var i=[];D(t)?i.push(t):d(t)&&(i=t),n=function(e,t){for(var n=0;n<i.length;n+=1){var r=i[n];if(e[r]>t[r])return 1;if(e[r]<t[r])return-1}return 0}}return e.sort(n),e};function O(e,t){void 0===t&&(t=new Map);var n=[];if(Array.isArray(e))for(var i=0,r=e.length;i<r;i++){var o=e[i];t.has(o)||(n.push(o),t.set(o,!0))}return n}var R=function(e,t){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r][t];if(!u(o)){d(o)||(o=[o]);for(var a=0;a<o.length;a++){var s=o[a];i[s]||(n.push(s),i[s]=!0)}}}return n};function A(e){if(i(e))return e[0]}function M(e){if(i(e)){return e[e.length-1]}}var P=function(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0},Z=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n))return!0;return!1},F=Object.prototype.hasOwnProperty;var B=function(e,t){if(!t||!d(e))return{};for(var n,i={},r=c(t)?t:function(e){return e[t]},o=0;o<e.length;o++){var a=e[o];n=r(a),F.call(i,n)?i[n].push(a):i[n]=[a]}return i};function H(e,t){if(!t)return{0:e};if(!c(t)){var n=d(t)?t:t.replace(/\s+/g,"").split("*");t=function(e){for(var t="_",i=0,r=n.length;i<r;i++)t+=e[n[i]]&&e[n[i]].toString();return t}}return B(e,t)}var z=function(e,t){if(!t)return[e];var n=H(e,t),i=[];for(var r in n)i.push(n[r]);return i};var j=function(e,t,n){return e<t?t:e>n?n:e},V=function(e,t){var n=t.toString(),i=n.indexOf(".");if(-1===i)return Math.round(e);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(e.toFixed(r))},W=function(e){return l(e,"Number")};Number.isInteger&&Number.isInteger;function U(e,t,n){return void 0===n&&(n=1e-5),Math.abs(e-t)<n}var G=function(e,t){if(d(e)){for(var n,i=-1/0,r=0;r<e.length;r++){var o=e[r],a=c(t)?t(o):o[t];a>i&&(n=o,i=a)}return n}},K=function(e,t){if(d(e)){for(var n,i=1/0,r=0;r<e.length;r++){var o=e[r],a=c(t)?t(o):o[t];a<i&&(n=o,i=a)}return n}},Y=function(e,t){return(e%t+t)%t},q=(Math.PI,parseInt,Math.PI/180),$=function(e){return q*e},X=f,Q=function(e,t){return e.hasOwnProperty(t)},J=Object.values?function(e){return Object.values(e)}:function(e){var t=[];return f(e,(function(n,i){c(e)&&"prototype"===i||t.push(n)})),t},ee=function(e){return u(e)?"":e.toString()},te=function(e){return ee(e).toLowerCase()};var ne=function(e,t){return e&&t?e.replace(/\\?\{([^{}]+)\}/g,(function(e,n){return"\\"===e.charAt(0)?e.slice(1):void 0===t[n]?"":t[n]})):e},ie=function(e){var t=ee(e);return t.charAt(0).toUpperCase()+t.substring(1)},re={}.toString,oe=function(e){return re.call(e).replace(/^\[object /,"").replace(/]$/,"")},ae=function(e){return l(e,"Boolean")},se=function(e){return l(e,"Date")};var le=function(e){return null===e},ce=Object.prototype,ue=function(e){var t=e&&e.constructor;return e===("function"===typeof t&&t.prototype||ce)},de=function(e){return void 0===e},he=function(e){return e instanceof Element||e instanceof HTMLDocument};function fe(e){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return setTimeout(e,16)})(e)}function pe(e){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(e)}var ge=function e(t){if("object"!==typeof t||null===t)return t;var n;if(d(t)){n=[];for(var i=0,r=t.length;i<r;i++)"object"===typeof t[i]&&null!=t[i]?n[i]=e(t[i]):n[i]=t[i]}else for(var o in n={},t)"object"===typeof t[o]&&null!=t[o]?n[o]=e(t[o]):n[o]=t[o];return n};var ve=function(e,t,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||e.apply(r,o)},s=n&&!i;clearTimeout(i),i=setTimeout(a,t),s&&e.apply(r,o)}},me=function(e,t){if(!c(e))throw new TypeError("Expected a function");var n=function n(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=t?t.apply(this,i):i[0],a=n.cache;if(a.has(o))return a.get(o);var s=e.apply(this,i);return a.set(o,s),s};return n.cache=new Map,n};function ye(e,t,n,i){for(var r in n=n||0,i=i||5,t)if(t.hasOwnProperty(r)){var o=t[r];null!==o&&m(o)?(m(e[r])||(e[r]={}),n<i?ye(e[r],o,n+1,i):e[r]=t[r]):d(o)?(e[r]=[],e[r]=e[r].concat(o)):void 0!==o&&(e[r]=o)}}var _e=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i+=1)ye(e,t[i]);return e},be=function(e,t){if(!i(e))return-1;var n=Array.prototype.indexOf;if(n)return n.call(e,t);for(var r=-1,o=0;o<e.length;o++)if(e[o]===t){r=o;break}return r},Ce=Object.prototype.hasOwnProperty;var Se=function(e){if(u(e))return!0;if(i(e))return!e.length;var t=oe(e);if("Map"===t||"Set"===t)return!e.size;if(ue(e))return!Object.keys(e).length;for(var n in e)if(Ce.call(e,n))return!1;return!0},we=function e(t,n){if(t===n)return!0;if(!t||!n)return!1;if(D(t)||D(n))return!1;if(i(t)||i(n)){if(t.length!==n.length)return!1;for(var r=!0,o=0;o<t.length&&(r=e(t[o],n[o]));o++);return r}if(v(t)||v(n)){var a=Object.keys(t),s=Object.keys(n);if(a.length!==s.length)return!1;for(r=!0,o=0;o<a.length&&(r=e(t[a[o]],n[a[o]]));o++);return r}return!1},ke=function(e,t){if(!i(e))return e;for(var n=[],r=0;r<e.length;r++){var o=e[r];n.push(t(o,r))}return n},xe=function(e){return e},Ee=function(e,t){void 0===t&&(t=xe);var n={};return h(e)&&!u(e)&&Object.keys(e).forEach((function(i){n[i]=t(e[i],i)})),n};function Te(e,t){for(var n in t)t.hasOwnProperty(n)&&"constructor"!==n&&void 0!==t[n]&&(e[n]=t[n])}function Ne(e,t,n,i){return t&&Te(e,t),n&&Te(e,n),i&&Te(e,i),e}var Ie=function(e,t,n){for(var i=0,r=D(t)?t.split("."):t;e&&i<r.length;)e=e[r[i++]];return void 0===e||i<r.length?n:e},De=function(e,t,n){var i=e,r=D(t)?t.split("."):t;return r.forEach((function(e,t){t<r.length-1?(h(i[e])||(i[e]=W(r[t+1])?[]:{}),i=i[e]):i[e]=n})),e},Le=Object.prototype.hasOwnProperty,Oe=function(e,t){if(null===e||!m(e))return{};var n={};return f(t,(function(t){Le.call(e,t)&&(n[t]=e[t])})),n},Re=function(e,t){return N(e,(function(e,n,i){return t.includes(i)||(e[i]=n),e}),{})},Ae=function(e,t,n){var i,r,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),i=null,a=e.apply(r,o),i||(r=o=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var u=t-(c-s);return r=this,o=arguments,u<=0||u>t?(i&&(clearTimeout(i),i=null),s=c,a=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(i),s=0,i=r=o=null},c},Me=function(e){return i(e)?Array.prototype.slice.call(e):[]},Pe={},Ze=function(e){return Pe[e=e||"g"]?Pe[e]+=1:Pe[e]=1,e+Pe[e]},Fe=function(){};function Be(e){return u(e)?0:i(e)?e.length:Object.keys(e).length}var He,ze=n(29388),je=me((function(e,t){void 0===t&&(t={});var n=t.fontSize,i=t.fontFamily,r=t.fontWeight,o=t.fontStyle,a=t.fontVariant;return He||(He=document.createElement("canvas").getContext("2d")),He.font=[o,a,r,n+"px",i].join(" "),He.measureText(D(e)?e:"").width}),(function(e,t){return void 0===t&&(t={}),(0,ze.pr)([e],J(t)).join("")})),Ve=function(e,t,n,i){void 0===i&&(i="...");var r,o,a=je(i,n),s=D(e)?e:ee(e),l=t,c=[];if(je(e,n)<=t)return e;for(;r=s.substr(0,16),!((o=je(r,n))+a>l&&o>l);)if(c.push(r),l-=o,!(s=s.substr(16)))return c.join("");for(;r=s.substr(0,1),!((o=je(r,n))+a>l);)if(c.push(r),l-=o,!(s=s.substr(1)))return c.join("");return""+c.join("")+i},We=function(){function e(){this.map={}}return e.prototype.has=function(e){return void 0!==this.map[e]},e.prototype.get=function(e,t){var n=this.map[e];return void 0===n?t:n},e.prototype.set=function(e,t){this.map[e]=t},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(e){delete this.map[e]},e.prototype.size=function(){return Object.keys(this.map).length},e}()},47472:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},44037:function(e,t,n){"use strict";var i=n(52506),r=n(19722),o=r(i("String.prototype.indexOf"));e.exports=function(e,t){var n=i(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?r(n):n}},19722:function(e,t,n){"use strict";var i=n(33350),r=n(52506),o=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||i.call(a,o),l=r("%Object.getOwnPropertyDescriptor%",!0),c=r("%Object.defineProperty%",!0),u=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch(h){c=null}e.exports=function(e){var t=s(i,a,arguments);if(l&&c){var n=l(t,"length");n.configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))})}return t};var d=function(){return s(i,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},81694:function(e,t){var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)i.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},76998:function(e,t,n){"use strict";var i=n(42458),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=i(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(i){if(i.stopPropagation(),t.format)if(i.preventDefault(),"undefined"===typeof i.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=r[t.format]||r.default;window.clipboardData.setData(o,e)}else i.clipboardData.clearData(),i.clipboardData.setData(t.format,e);t.onCopy&&(i.preventDefault(),t.onCopy(i.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},57046:function(e,t){!function(e){"use strict";function t(e,t){return n(e)||i(e,t)||r()}function n(e){if(Array.isArray(e))return e}function i(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(l){r=!0,o=l}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(e,t,n,i){e=e.filter((function(e,i){var r=t(e,i),o=n(e,i);return null!=r&&isFinite(r)&&null!=o&&isFinite(o)})),i&&e.sort((function(e,n){return t(e)-t(n)}));for(var r,o,a,s=e.length,l=new Float64Array(s),c=new Float64Array(s),u=0,d=0,h=0;h<s;)a=e[h],l[h]=r=+t(a,h,e),c[h]=o=+n(a,h,e),u+=(r-u)/++h,d+=(o-d)/h;for(var f=0;f<s;++f)l[f]-=u,c[f]-=d;return[l,c,u,d]}function a(e,t,n,i){for(var r=0,o=0,a=e.length;o<a;o++){var s=e[o],l=+t(s,o,e),c=+n(s,o,e);null!=l&&isFinite(l)&&null!=c&&isFinite(c)&&i(l,c,r++)}}function s(e,t,n,i,r){var o=0,s=0;return a(e,t,n,(function(e,t){var n=t-r(e),a=t-i;o+=n*n,s+=a*a})),1-o/s}function l(e){return 180*Math.atan2(e[1][1]-e[0][1],e[1][0]-e[0][0])/Math.PI}function c(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}function u(e,t,n){for(var i=Math.log(t-e)*Math.LOG10E+1|0,r=1*Math.pow(10,-i/2-1),o=1e4,a=[u(e),u(t)],s=0;d(a)&&s<o;);return a;function u(e){return[e,n(e)]}function d(e){s++;for(var t=e.length,n=!1,i=0;i<t-1;i++){var o=e[i],a=c([o,e[i+1]]),d=u(a[0]),h=l([o,a]),f=l([o,d]);Math.abs(h-f)>r&&(e.splice(i+1,0,d),n=!0)}return n}}function d(e,t,n,i){var r=i-e*e,o=Math.abs(r)<1e-24?0:(n-e*t)/r;return[t-o*e,o]}function h(){var e,n=function(e){return e[0]},i=function(e){return e[1]};function r(r){var o=0,l=0,c=0,h=0,f=0,p=0,g=e?+e[0]:1/0,v=e?+e[1]:-1/0;a(r,n,i,(function(t,n){var i=Math.log(n),r=t*n;++o,l+=(n-l)/o,h+=(r-h)/o,p+=(t*r-p)/o,c+=(n*i-c)/o,f+=(r*i-f)/o,e||(t<g&&(g=t),t>v&&(v=t))}));var m=t(d(h/l,c/l,f/l,p/l),2),y=m[0],_=m[1];y=Math.exp(y);var b=function(e){return y*Math.exp(_*e)},C=u(g,v,b);return C.a=y,C.b=_,C.predict=b,C.rSquared=s(r,n,i,l,b),C}return r.domain=function(t){return arguments.length?(e=t,r):e},r.x=function(e){return arguments.length?(n=e,r):n},r.y=function(e){return arguments.length?(i=e,r):i},r}function f(){var e,n=function(e){return e[0]},i=function(e){return e[1]};function r(r){var o=0,l=0,c=0,u=0,h=0,f=e?+e[0]:1/0,p=e?+e[1]:-1/0;a(r,n,i,(function(t,n){++o,l+=(t-l)/o,c+=(n-c)/o,u+=(t*n-u)/o,h+=(t*t-h)/o,e||(t<f&&(f=t),t>p&&(p=t))}));var g=t(d(l,c,u,h),2),v=g[0],m=g[1],y=function(e){return m*e+v},_=[[f,y(f)],[p,y(p)]];return _.a=m,_.b=v,_.predict=y,_.rSquared=s(r,n,i,c,y),_}return r.domain=function(t){return arguments.length?(e=t,r):e},r.x=function(e){return arguments.length?(n=e,r):n},r.y=function(e){return arguments.length?(i=e,r):i},r}function p(e){e.sort((function(e,t){return e-t}));var t=e.length/2;return t%1===0?(e[t-1]+e[t])/2:e[Math.floor(t)]}var g=2,v=1e-12;function m(){var e=function(e){return e[0]},n=function(e){return e[1]},i=.3;function r(r){for(var a=t(o(r,e,n,!0),4),s=a[0],l=a[1],c=a[2],u=a[3],h=s.length,f=Math.max(2,~~(i*h)),m=new Float64Array(h),C=new Float64Array(h),S=new Float64Array(h).fill(1),w=-1;++w<=g;){for(var k=[0,f-1],x=0;x<h;++x){for(var E=s[x],T=k[0],N=k[1],I=E-s[T]>s[N]-E?T:N,D=0,L=0,O=0,R=0,A=0,M=1/Math.abs(s[I]-E||1),P=T;P<=N;++P){var Z=s[P],F=l[P],B=y(Math.abs(E-Z)*M)*S[P],H=Z*B;D+=B,L+=H,O+=F*B,R+=F*H,A+=Z*H}var z=t(d(L/D,O/D,R/D,A/D),2),j=z[0],V=z[1];m[x]=j+V*E,C[x]=Math.abs(l[x]-m[x]),_(s,x+1,k)}if(w===g)break;var W=p(C);if(Math.abs(W)<v)break;for(var U,G,K=0;K<h;++K)U=C[K]/(6*W),S[K]=U>=1?v:(G=1-U*U)*G}return b(s,m,c,u)}return r.bandwidth=function(e){return arguments.length?(i=e,r):i},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(e){return arguments.length?(n=e,r):n},r}function y(e){return(e=1-e*e*e)*e*e}function _(e,t,n){var i=e[t],r=n[0],o=n[1]+1;if(!(o>=e.length))for(;t>r&&e[o]-i<=i-e[r];)n[0]=++r,n[1]=o,++o}function b(e,t,n,i){for(var r,o=e.length,a=[],s=0,l=0,c=[];s<o;++s)r=e[s]+n,c[0]===r?c[1]+=(t[s]-c[1])/++l:(l=0,c[1]+=i,c=[r,t[s]],a.push(c));return c[1]+=i,a}function C(){var e,n=function(e){return e[0]},i=function(e){return e[1]},r=Math.E;function o(o){var l=0,c=0,h=0,f=0,p=0,g=e?+e[0]:1/0,v=e?+e[1]:-1/0,m=Math.log(r);a(o,n,i,(function(t,n){var i=Math.log(t)/m;++l,c+=(i-c)/l,h+=(n-h)/l,f+=(i*n-f)/l,p+=(i*i-p)/l,e||(t<g&&(g=t),t>v&&(v=t))}));var y=t(d(c,h,f,p),2),_=y[0],b=y[1],C=function(e){return b*Math.log(e)/m+_},S=u(g,v,C);return S.a=b,S.b=_,S.predict=C,S.rSquared=s(o,n,i,h,C),S}return o.domain=function(t){return arguments.length?(e=t,o):e},o.x=function(e){return arguments.length?(n=e,o):n},o.y=function(e){return arguments.length?(i=e,o):i},o.base=function(e){return arguments.length?(r=e,o):r},o}function S(){var e,n=function(e){return e[0]},i=function(e){return e[1]};function r(r){var l,c,d,h,f=t(o(r,n,i),4),p=f[0],g=f[1],v=f[2],m=f[3],y=p.length,_=0,b=0,C=0,S=0,w=0;for(l=0;l<y;)c=p[l],d=g[l++],_+=((h=c*c)-_)/l,b+=(h*c-b)/l,C+=(h*h-C)/l,S+=(c*d-S)/l,w+=(h*d-w)/l;var k=0,x=0,E=e?+e[0]:1/0,T=e?+e[1]:-1/0;a(r,n,i,(function(t,n){x++,k+=(n-k)/x,e||(t<E&&(E=t),t>T&&(T=t))}));var N=C-_*_,I=_*N-b*b,D=(w*_-S*b)/I,L=(S*N-w*b)/I,O=-D*_,R=function(e){return D*(e-=v)*e+L*e+O+m},A=u(E,T,R);return A.a=D,A.b=L-2*D*v,A.c=O-L*v+D*v*v+m,A.predict=R,A.rSquared=s(r,n,i,k,R),A}return r.domain=function(t){return arguments.length?(e=t,r):e},r.x=function(e){return arguments.length?(n=e,r):n},r.y=function(e){return arguments.length?(i=e,r):i},r}function w(){var e,n=function(e){return e[0]},i=function(e){return e[1]},r=3;function l(l){if(1===r){var c=f().x(n).y(i).domain(e)(l);return c.coefficients=[c.b,c.a],delete c.a,delete c.b,c}if(2===r){var d=S().x(n).y(i).domain(e)(l);return d.coefficients=[d.c,d.b,d.a],delete d.a,delete d.b,delete d.c,d}var h,p,g,v,m,y=t(o(l,n,i),4),_=y[0],b=y[1],C=y[2],w=y[3],E=_.length,T=[],N=[],I=r+1,D=0,L=0,O=e?+e[0]:1/0,R=e?+e[1]:-1/0;for(a(l,n,i,(function(t,n){++L,D+=(n-D)/L,e||(t<O&&(O=t),t>R&&(R=t))})),h=0;h<I;++h){for(g=0,v=0;g<E;++g)v+=Math.pow(_[g],h)*b[g];for(T.push(v),m=new Float64Array(I),p=0;p<I;++p){for(g=0,v=0;g<E;++g)v+=Math.pow(_[g],h+p);m[p]=v}N.push(m)}N.push(T);var A=x(N),M=function(e){e-=C;var t=w+A[0]+A[1]*e+A[2]*e*e;for(h=3;h<I;++h)t+=A[h]*Math.pow(e,h);return t},P=u(O,R,M);return P.coefficients=k(I,A,-C,w),P.predict=M,P.rSquared=s(l,n,i,D,M),P}return l.domain=function(t){return arguments.length?(e=t,l):e},l.x=function(e){return arguments.length?(n=e,l):n},l.y=function(e){return arguments.length?(i=e,l):i},l.order=function(e){return arguments.length?(r=e,l):r},l}function k(e,t,n,i){var r,o,a,s,l=Array(e);for(r=0;r<e;++r)l[r]=0;for(r=e-1;r>=0;--r)for(a=t[r],s=1,l[r]+=a,o=1;o<=r;++o)s*=(r+1-o)/o,l[r-o]+=a*Math.pow(n,o)*s;return l[0]+=i,l}function x(e){var t,n,i,r,o,a=e.length-1,s=[];for(t=0;t<a;++t){for(r=t,n=t+1;n<a;++n)Math.abs(e[t][n])>Math.abs(e[t][r])&&(r=n);for(i=t;i<a+1;++i)o=e[i][t],e[i][t]=e[i][r],e[i][r]=o;for(n=t+1;n<a;++n)for(i=a;i>=t;i--)e[i][n]-=e[i][t]*e[t][n]/e[t][t]}for(n=a-1;n>=0;--n){for(o=0,i=n+1;i<a;++i)o+=e[i][n]*s[i];s[n]=(e[a][n]-o)/e[n][n]}return s}function E(){var e,n=function(e){return e[0]},i=function(e){return e[1]};function r(r){var o=0,l=0,c=0,h=0,f=0,p=0,g=e?+e[0]:1/0,v=e?+e[1]:-1/0;a(r,n,i,(function(t,n){var i=Math.log(t),r=Math.log(n);++o,l+=(i-l)/o,c+=(r-c)/o,h+=(i*r-h)/o,f+=(i*i-f)/o,p+=(n-p)/o,e||(t<g&&(g=t),t>v&&(v=t))}));var m=t(d(l,c,h,f),2),y=m[0],_=m[1];y=Math.exp(y);var b=function(e){return y*Math.pow(e,_)},C=u(g,v,b);return C.a=y,C.b=_,C.predict=b,C.rSquared=s(r,n,i,p,b),C}return r.domain=function(t){return arguments.length?(e=t,r):e},r.x=function(e){return arguments.length?(n=e,r):n},r.y=function(e){return arguments.length?(i=e,r):i},r}e.regressionExp=h,e.regressionLinear=f,e.regressionLoess=m,e.regressionLog=C,e.regressionPoly=w,e.regressionPow=E,e.regressionQuad=S,Object.defineProperty(e,"__esModule",{value:!0})}(t)},97892:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,i="millisecond",r="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},y={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+m(i,2,"0")+":"+m(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(i,c),o=n-r<0,a=t.clone().add(i+(o?-1:1),c);return+(-(i+(n-r)/(o?r-a:a-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:h,h:a,m:o,s:r,ms:i,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},_="en",b={};b[_]=v;var C=function(e){return e instanceof x},S=function e(t,n,i){var r;if(!t)return _;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(r=o),n&&(b[o]=n,r=o);var a=t.split("-");if(!r&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,r=s}return!i&&r&&(_=r),r||!i&&_},w=function(e,t){if(C(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},k=y;k.l=S,k.i=C,k.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function v(e){this.$L=S(e.locale,null,!0),this.parse(e)}var m=v.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(p);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return k},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return w(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<w(e)},m.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,i=!!k.u(t)||t,u=k.p(e),f=function(e,t){var r=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return i?r:r.endOf(s)},p=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,v=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return i?f(1,0):f(31,11);case c:return i?f(1,v):f(0,v+1);case l:var _=this.$locale().weekStart||0,b=(g<_?g+7:g)-_;return f(i?m-b:m+(6-b),v);case s:case h:return p(y+"Hours",0);case a:return p(y+"Minutes",1);case o:return p(y+"Seconds",2);case r:return p(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var n,l=k.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[s]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[r]=u+"Seconds",n[i]=u+"Milliseconds",n)[l],p=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var g=this.clone().set(h,1);g.$d[f](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[k.p(e)]()},m.add=function(i,u){var h,f=this;i=Number(i);var p=k.p(u),g=function(e){var t=w(f);return k.w(t.date(t.date()+Math.round(e*i)),f)};if(p===c)return this.set(c,this.$M+i);if(p===d)return this.set(d,this.$y+i);if(p===s)return g(1);if(p===l)return g(7);var v=(h={},h[o]=t,h[a]=n,h[r]=e,h)[p]||1,m=this.$d.getTime()+i*v;return k.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var i=e||"YYYY-MM-DDTHH:mm:ssZ",r=k.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=function(e,n,r,o){return e&&(e[n]||e(t,i))||r[n].slice(0,o)},d=function(e){return k.s(o%12||12,e,"0")},h=n.meridiem||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:k.s(s+1,2,"0"),MMM:u(n.monthsShort,s,c,3),MMMM:u(c,s),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,l,2),ddd:u(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:k.s(o,2,"0"),h:d(1),hh:d(2),a:h(o,a,!0),A:h(o,a,!1),m:String(a),mm:k.s(a,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:r};return i.replace(g,(function(e,t){return t||p[e]||r.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(i,h,f){var p,g=k.p(h),v=w(i),m=(v.utcOffset()-this.utcOffset())*t,y=this-v,_=k.m(this,v);return _=(p={},p[d]=_/12,p[c]=_,p[u]=_/3,p[l]=(y-m)/6048e5,p[s]=(y-m)/864e5,p[a]=y/n,p[o]=y/t,p[r]=y/e,p)[g]||y,f?_:k.a(_)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return b[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=S(e,t,!0);return i&&(n.$L=i),n},m.clone=function(){return k.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},v}(),E=x.prototype;return w.prototype=E,[["$ms",i],["$s",r],["$m",o],["$H",a],["$W",s],["$M",c],["$y",d],["$D",h]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,x,w),e.$i=!0),w},w.locale=S,w.isDayjs=C,w.unix=function(e){return w(1e3*e)},w.en=b[_],w.Ls=b,w.p={},w}()},77490:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),i={name:"zh-cn",weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){return"W"===t?e+"\u5468":e+"\u65e5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524d",s:"\u51e0\u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},meridiem:function(e,t){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1100?"\u4e0a\u5348":n<1300?"\u4e2d\u5348":n<1800?"\u4e0b\u5348":"\u665a\u4e0a"}};return n.default.locale(i,null,!0),i}(n(97892))},70776:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,i=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return i.bind(this)(e);var r=this.$utils(),o=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return i.bind(this)(o)}}}()},18808:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,i=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,o={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,i=o.meridiem;if(i){for(var r=1;r<=24;r+=1)if(e.indexOf(i(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[r,function(e){this.afternoon=u(e,!1)}],a:[r,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,s("seconds")],ss:[i,s("seconds")],m:[i,s("minutes")],mm:[i,s("minutes")],H:[i,s("hours")],h:[i,s("hours")],HH:[i,s("hours")],hh:[i,s("hours")],D:[i,s("day")],DD:[n,s("day")],Do:[r,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var i=1;i<=31;i+=1)t(i).replace(/\[|\]/g,"")===e&&(this.day=i)}],M:[i,s("month")],MM:[n,s("month")],MMM:[r,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function h(n){var i,r;i=n,r=o&&o.formats;for(var a=(n=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,i){var o=i&&i.toUpperCase();return n||r[i]||e[i]||r[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],u=d[c],h=u&&u[0],f=u&&u[1];a[l]=f?{regex:h,parser:f}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,i=0;n<s;n+=1){var r=a[n];if("string"==typeof r)i+=r.length;else{var o=r.regex,l=r.parser,c=e.slice(i),u=o.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var i=t.prototype,r=i.parse;i.parse=function(e){var t=e.date,i=e.utc,a=e.args;this.$u=i;var s=a[1];if("string"==typeof s){var l=!0===a[2],c=!0===a[3],u=l||c,d=a[2];c&&(d=a[2]),o=this.$locale(),!l&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=h(t)(e),r=i.year,o=i.month,a=i.day,s=i.hours,l=i.minutes,c=i.seconds,u=i.milliseconds,d=i.zone,f=new Date,p=a||(r||o?1:f.getDate()),g=r||f.getFullYear(),v=0;r&&!o||(v=o>0?o-1:f.getMonth());var m=s||0,y=l||0,_=c||0,b=u||0;return d?new Date(Date.UTC(g,v,p,m,y,_,b+60*d.offset*1e3)):n?new Date(Date.UTC(g,v,p,m,y,_,b)):new Date(g,v,p,m,y,_,b)}catch(e){return new Date("")}}(t,s,i),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var f=s.length,p=1;p<=f;p+=1){a[1]=s[p-1];var g=n.apply(this,a);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}p===f&&(this.$d=new Date(""))}else r.call(this,e)}}}()},93666:function(e){e.exports=function(){"use strict";var e,t,n=1e3,i=6e4,r=36e5,o=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,l=2592e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:l,days:o,hours:r,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof y},h=function(e,t,n){return new y(e,n,t.$l)},f=function(e){return t.p(e)+"s"},p=function(e){return e<0},g=function(e){return p(e)?Math.ceil(e):Math.floor(e)},v=function(e){return Math.abs(e)},m=function(e,t){return e?p(e)?{negative:!0,format:""+v(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},y=function(){function p(e,t,n){var i=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return h(e*u[f(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){i.$d[f(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var r=e.match(c);if(r){var o=r.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var v=p.prototype;return v.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},v.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/s),e%=s,this.$d.months=g(e/l),e%=l,this.$d.days=g(e/o),e%=o,this.$d.hours=g(e/r),e%=r,this.$d.minutes=g(e/i),e%=i,this.$d.seconds=g(e/n),e%=n,this.$d.milliseconds=e},v.toISOString=function(){var e=m(this.$d.years,"Y"),t=m(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=m(n,"D"),r=m(this.$d.hours,"H"),o=m(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3);var s=m(a,"S"),l=e.negative||t.negative||i.negative||r.negative||o.negative||s.negative,c=r.format||o.format||s.format?"T":"",u=(l?"-":"")+"P"+e.format+t.format+i.format+c+r.format+o.format+s.format;return"P"===u||"-P"===u?"P0D":u},v.toJSON=function(){return this.toISOString()},v.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",i={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(a,(function(e,t){return t||String(i[e])}))},v.as=function(e){return this.$ms/u[f(e)]},v.get=function(e){var t=this.$ms,n=f(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?g(t/u[n]):this.$d[n],0===t?0:t},v.add=function(e,t,n){var i;return i=t?e*u[f(t)]:d(e)?e.$ms:h(e,this).$ms,h(this.$ms+i*(n?-1:1),this)},v.subtract=function(e,t){return this.add(e,t,!0)},v.locale=function(e){var t=this.clone();return t.$l=e,t},v.clone=function(){return h(this.$ms,this)},v.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},v.milliseconds=function(){return this.get("milliseconds")},v.asMilliseconds=function(){return this.as("milliseconds")},v.seconds=function(){return this.get("seconds")},v.asSeconds=function(){return this.as("seconds")},v.minutes=function(){return this.get("minutes")},v.asMinutes=function(){return this.as("minutes")},v.hours=function(){return this.get("hours")},v.asHours=function(){return this.as("hours")},v.days=function(){return this.get("days")},v.asDays=function(){return this.as("days")},v.weeks=function(){return this.get("weeks")},v.asWeeks=function(){return this.as("weeks")},v.months=function(){return this.get("months")},v.asMonths=function(){return this.as("months")},v.years=function(){return this.get("years")},v.asYears=function(){return this.as("years")},p}();return function(n,i,r){e=r,t=r().$utils(),r.duration=function(e,t){var n=r.locale();return h(e,{$l:n},t)},r.isDuration=d;var o=i.prototype.add,a=i.prototype.subtract;i.prototype.add=function(e,t){return d(e)&&(e=e.asMilliseconds()),o.bind(this)(e,t)},i.prototype.subtract=function(e,t){return d(e)&&(e=e.asMilliseconds()),a.bind(this)(e,t)}}}()},86930:function(e){e.exports=function(){"use strict";var e="day";return function(t,n,i){var r=function(t){return t.add(4-t.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return r(this).year()},o.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,o,a,s=r(this),l=(n=this.isoWeekYear(),a=4-(o=(this.$u?i.utc:i)().year(n).startOf("year")).isoWeekday(),o.isoWeekday()>4&&(a+=7),o.add(a,e));return s.diff(l,"week")+1},o.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=o.startOf;o.startOf=function(e,t){var n=this.$utils(),i=!!n.u(t)||t;return"isoweek"===n.p(e)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}}}()},14036:function(e){e.exports=function(){"use strict";return function(e,t,n){var i=t.prototype,r=function(e){return e&&(e.indexOf?e:e.s)},o=function(e,t,n,i,o){var a=e.name?e:e.$locale(),s=r(a[t]),l=r(a[n]),c=s||l.map((function(e){return e.slice(0,i)}));if(!o)return c;var u=a.weekStart;return c.map((function(e,t){return c[(t+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):o(e,"months")},monthsShort:function(t){return t?t.format("MMM"):o(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):o(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):o(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):o(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return o(a(),"months")},n.monthsShort=function(){return o(a(),"monthsShort","months",3)},n.weekdays=function(e){return o(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return o(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return o(a(),"weekdaysMin","weekdays",2,e)}}}()},45645:function(e){e.exports=function(){"use strict";var e="month",t="quarter";return function(n,i){var r=i.prototype;r.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var o=r.add;r.add=function(n,i){return n=Number(n),this.$utils().p(i)===t?this.add(3*n,e):o.bind(this)(n,i)};var a=r.startOf;r.startOf=function(n,i){var r=this.$utils(),o=!!r.u(i)||i;if(r.p(n)===t){var s=this.quarter()-1;return o?this.month(3*s).startOf(e).startOf("day"):this.month(3*s+2).endOf(e).endOf("day")}return a.bind(this)(n,i)}}}()},40130:function(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var i=t.prototype,r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,r){return i.fromToBase(e,t,n,r)}n.en.relativeTime=r,i.fromToBase=function(t,i,o,a,s){for(var l,c,u,d=o.$locale().relativeTime||r,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=h.length,p=0;p<f;p+=1){var g=h[p];g.d&&(l=a?n(t).diff(o,g.d,!0):o.diff(t,g.d,!0));var v=(e.rounding||Math.round)(Math.abs(l));if(u=l>0,v<=g.r||!g.r){v<=1&&p>0&&(g=h[p-1]);var m=d[g.l];s&&(v=s(""+v)),c="string"==typeof m?m.replace("%d",v):m(v,i,g.l,u);break}}if(i)return c;var y=u?d.future:d.past;return"function"==typeof y?y(c):y.replace("%s",c)},i.to=function(e,t){return o(e,t,this,!0)},i.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?n.utc():n()};i.toNow=function(e){return this.to(a(this),e)},i.fromNow=function(e){return this.from(a(this),e)}}}()},39216:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,i,r){var o=i.prototype;o.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var i=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=r(this).startOf(t).add(1,t).date(i),a=r(this).endOf(e);if(o.isBefore(a))return 1}var s=r(this).startOf(t).date(i).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?r(this).startOf("week").week():Math.ceil(l)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},34834:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},54334:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,i=(n<t?n+7:n)-t;return this.$utils().u(e)?i:this.subtract(i,"day").add(e,"day")}}}()},59761:function(e,t,n){"use strict";n.d(t,{qY:function(){return h}});var i=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},r=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},o=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},a=function(e,t,n,i){this.name=e,this.version=t,this.os=n,this.bot=i,this.type="bot-device"},s=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},l=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],d=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function h(e){return e?p(e):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!==typeof navigator?p(navigator.userAgent):"undefined"!==typeof process&&process.version?new o(process.version.slice(1)):null}function f(e){return""!==e&&u.reduce((function(t,n){var i=n[0],r=n[1];if(t)return t;var o=r.exec(e);return!!o&&[i,o]}),!1)}function p(e){var t=f(e);if(!t)return null;var n=t[0],o=t[1];if("searchbot"===n)return new s;var l=o[1]&&o[1].split(".").join("_").split("_").slice(0,3);l?l.length<3&&(l=i(i([],l,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(3-l.length),!0)):l=[];var u=l.join("."),h=function(e){for(var t=0,n=d.length;t<n;t++){var i=d[t],r=i[0];if(i[1].exec(e))return r}return null}(e),p=c.exec(e);return p&&p[1]?new a(n,u,h,p[1]):new r(n,u,h)}},57867:function(e,t,n){"use strict";var i=n(4707),r=o(Error);function o(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=i.apply(null,arguments)),new e(t)}}e.exports=r,r.eval=o(EvalError),r.range=o(RangeError),r.reference=o(ReferenceError),r.syntax=o(SyntaxError),r.type=o(TypeError),r.uri=o(URIError),r.create=o},59698:function(e,t){!function(e){"use strict";function t(e,t,n,i){var r=(i=i||{}).maxIterations||100,o=i.tolerance||1e-10,a=e(t),s=e(n),l=n-t;if(a*s>0)throw"Initial bisect points must have opposite signs";if(0===a)return t;if(0===s)return n;for(var c=0;c<r;++c){var u=t+(l/=2),d=e(u);if(d*a>=0&&(t=u),Math.abs(l)<o||0===d)return u}return t+l}function n(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function i(e,t){return n(e).map((function(){return n(t)}))}function r(e,t){for(var n=0,i=0;i<e.length;++i)n+=e[i]*t[i];return n}function o(e){return Math.sqrt(r(e,e))}function a(e,t,n){for(var i=0;i<t.length;++i)e[i]=t[i]*n}function s(e,t,n,i,r){for(var o=0;o<e.length;++o)e[o]=t*n[o]+i*r[o]}function l(e,t,n){var i,r=(n=n||{}).maxIterations||200*t.length,o=n.nonZeroDelta||1.05,a=n.zeroDelta||.001,l=n.minErrorDelta||1e-6,c=n.minErrorDelta||1e-5,u=void 0!==n.rho?n.rho:1,d=void 0!==n.chi?n.chi:2,h=void 0!==n.psi?n.psi:-.5,f=void 0!==n.sigma?n.sigma:.5,p=t.length,g=new Array(p+1);g[0]=t,g[0].fx=e(t),g[0].id=0;for(var v=0;v<p;++v){var m=t.slice();m[v]=m[v]?m[v]*o:a,g[v+1]=m,g[v+1].fx=e(m),g[v+1].id=v+1}function y(e){for(var t=0;t<e.length;t++)g[p][t]=e[t];g[p].fx=e.fx}for(var _=function(e,t){return e.fx-t.fx},b=t.slice(),C=t.slice(),S=t.slice(),w=t.slice(),k=0;k<r;++k){if(g.sort(_),n.history){var x=g.map((function(e){var t=e.slice();return t.fx=e.fx,t.id=e.id,t}));x.sort((function(e,t){return e.id-t.id})),n.history.push({x:g[0].slice(),fx:g[0].fx,simplex:x})}for(i=0,v=0;v<p;++v)i=Math.max(i,Math.abs(g[0][v]-g[1][v]));if(Math.abs(g[0].fx-g[p].fx)<l&&i<c)break;for(v=0;v<p;++v){b[v]=0;for(var E=0;E<p;++E)b[v]+=g[E][v];b[v]/=p}var T=g[p];if(s(C,1+u,b,-u,T),C.fx=e(C),C.fx<g[0].fx)s(w,1+d,b,-d,T),w.fx=e(w),w.fx<C.fx?y(w):y(C);else if(C.fx>=g[p-1].fx){var N=!1;if(C.fx>T.fx?(s(S,1+h,b,-h,T),S.fx=e(S),S.fx<T.fx?y(S):N=!0):(s(S,1-h*u,b,h*u,T),S.fx=e(S),S.fx<C.fx?y(S):N=!0),N){if(f>=1)break;for(v=1;v<g.length;++v)s(g[v],1-f,g[0],f,g[v]),g[v].fx=e(g[v])}}else y(C)}return g.sort(_),{fx:g[0].fx,x:g[0]}}function c(e,t,n,i,o,a,l){var c=n.fx,u=r(n.fxprime,t),d=c,h=c,f=u,p=0;function g(h,p,g){for(var v=0;v<16;++v)if(o=(h+p)/2,s(i.x,1,n.x,o,t),d=i.fx=e(i.x,i.fxprime),f=r(i.fxprime,t),d>c+a*o*u||d>=g)p=o;else{if(Math.abs(f)<=-l*u)return o;f*(p-h)>=0&&(p=h),h=o,g=d}return 0}o=o||1,a=a||1e-6,l=l||.1;for(var v=0;v<10;++v){if(s(i.x,1,n.x,o,t),d=i.fx=e(i.x,i.fxprime),f=r(i.fxprime,t),d>c+a*o*u||v&&d>=h)return g(p,o,h);if(Math.abs(f)<=-l*u)return o;if(f>=0)return g(o,p,d);h=d,p=o,o*=2}return o}function u(e,t,n){var i,l,u,d={x:t.slice(),fx:0,fxprime:t.slice()},h={x:t.slice(),fx:0,fxprime:t.slice()},f=t.slice(),p=1;u=(n=n||{}).maxIterations||20*t.length,d.fx=e(d.x,d.fxprime),a(i=d.fxprime.slice(),d.fxprime,-1);for(var g=0;g<u;++g){if(p=c(e,i,d,h,p),n.history&&n.history.push({x:d.x.slice(),fx:d.fx,fxprime:d.fxprime.slice(),alpha:p}),p){s(f,1,h.fxprime,-1,d.fxprime);var v=r(d.fxprime,d.fxprime);s(i,Math.max(0,r(f,h.fxprime)/v),i,-1,h.fxprime),l=d,d=h,h=l}else a(i,d.fxprime,-1);if(o(d.fxprime)<=1e-5)break}return n.history&&n.history.push({x:d.x.slice(),fx:d.fx,fxprime:d.fxprime.slice(),alpha:p}),d}function d(e,t,n){for(var i=(n=n||{}).maxIterations||100*t.length,r=n.learnRate||.001,a={x:t.slice(),fx:0,fxprime:t.slice()},l=0;l<i&&(a.fx=e(a.x,a.fxprime),n.history&&n.history.push({x:a.x.slice(),fx:a.fx,fxprime:a.fxprime.slice()}),s(a.x,1,a.x,-r,a.fxprime),!(o(a.fxprime)<=1e-5));++l);return a}function h(e,t,n){n=n||{};var i,r={x:t.slice(),fx:0,fxprime:t.slice()},s={x:t.slice(),fx:0,fxprime:t.slice()},l=n.maxIterations||100*t.length,u=n.learnRate||1,d=t.slice(),h=n.c1||.001,f=n.c2||.1,p=[];if(n.history){var g=e;e=function(e,t){return p.push(e.slice()),g(e,t)}}r.fx=e(r.x,r.fxprime);for(var v=0;v<l&&(a(d,r.fxprime,-1),u=c(e,d,r,s,u,h,f),n.history&&(n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),functionCalls:p,learnRate:u,alpha:u}),p=[]),i=r,r=s,s=i,!(0===u||o(r.fxprime)<1e-5));++v);return r}e.bisect=t,e.nelderMead=l,e.conjugateGradient=u,e.gradientDescent=d,e.gradientDescentLineSearch=h,e.zeros=n,e.zerosM=i,e.norm2=o,e.weightedSum=s,e.scale=a}(t)},4707:function(e){!function(){var t;function n(e){for(var t,n,i,r,o=1,a=[].slice.call(arguments),s=0,l=e.length,c="",u=!1,d=!1,h=function(){return a[o++]},f=function(){for(var n="";/\d/.test(e[s]);)n+=e[s++],t=e[s];return n.length>0?parseInt(n):null};s<l;++s)if(t=e[s],u)switch(u=!1,"."==t?(d=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(d=!0,t=e[s+=2]):d=!0,r=f(),t){case"b":c+=parseInt(h(),10).toString(2);break;case"c":c+="string"===typeof(n=h())||n instanceof String?n:String.fromCharCode(parseInt(n,10));break;case"d":c+=parseInt(h(),10);break;case"f":i=String(parseFloat(h()).toFixed(r||6)),c+=d?i:i.replace(/^0/,"");break;case"j":c+=JSON.stringify(h());break;case"o":c+="0"+parseInt(h(),10).toString(8);break;case"s":c+=h();break;case"x":c+="0x"+parseInt(h(),10).toString(16);break;case"X":c+="0x"+parseInt(h(),10).toString(16).toUpperCase();break;default:c+=t}else"%"===t?u=!0:c+=t;return c}(t=e.exports=n).format=n,t.vsprintf=function(e,t){return n.apply(null,[e].concat(t))},"undefined"!==typeof console&&"function"===typeof console.log&&(t.printf=function(){console.log(n.apply(null,arguments))})}()},30222:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,i=Object.prototype.toString,r="[object Function]";e.exports=function(e){var o=this;if("function"!==typeof o||i.call(o)!==r)throw new TypeError(t+o);for(var a,s=n.call(arguments,1),l=function(){if(this instanceof a){var t=o.apply(this,s.concat(n.call(arguments)));return Object(t)===t?t:this}return o.apply(e,s.concat(n.call(arguments)))},c=Math.max(0,o.length-s.length),u=[],d=0;d<c;d++)u.push("$"+d);if(a=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(l),o.prototype){var h=function(){};h.prototype=o.prototype,a.prototype=new h,h.prototype=null}return a}},33350:function(e,t,n){"use strict";var i=n(30222);e.exports=Function.prototype.bind||i},52506:function(e,t,n){"use strict";var i,r=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(I){l=null}var c=function(){throw new a},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(t){return c}}}():c,d=n(80697)(),h=Object.getPrototypeOf||function(e){return e.__proto__},f={},p="undefined"===typeof Uint8Array?i:h(Uint8Array),g={"%AggregateError%":"undefined"===typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":d?h([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"===typeof Atomics?i:Atomics,"%BigInt%":"undefined"===typeof BigInt?i:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"===typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?h(h([][Symbol.iterator]())):i,"%JSON%":"object"===typeof JSON?JSON:i,"%Map%":"undefined"===typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&d?h((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?i:Promise,"%Proxy%":"undefined"===typeof Proxy?i:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&d?h((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?h(""[Symbol.iterator]()):i,"%Symbol%":d?Symbol:i,"%SyntaxError%":r,"%ThrowTypeError%":u,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?i:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?i:WeakSet},v=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&(n=h(r.prototype))}return g[t]=n,n},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(33350),_=n(58316),b=y.call(Function.call,Array.prototype.concat),C=y.call(Function.apply,Array.prototype.splice),S=y.call(Function.call,String.prototype.replace),w=y.call(Function.call,String.prototype.slice),k=y.call(Function.call,RegExp.prototype.exec),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,T=function(e){var t=w(e,0,1),n=w(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return S(e,x,(function(e,t,n,r){i[i.length]=n?S(r,E,"$1"):t||e})),i},N=function(e,t){var n,i=e;if(_(m,i)&&(i="%"+(n=m[i])[0]+"%"),_(g,i)){var o=g[i];if(o===f&&(o=v(i)),"undefined"===typeof o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:o}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=T(e),i=n.length>0?n[0]:"",o=N("%"+i+"%",t),s=o.name,c=o.value,u=!1,d=o.alias;d&&(i=d[0],C(n,b([0,1],d)));for(var h=1,f=!0;h<n.length;h+=1){var p=n[h],v=w(p,0,1),m=w(p,-1);if(('"'===v||"'"===v||"`"===v||'"'===m||"'"===m||"`"===m)&&v!==m)throw new r("property names with quotes must have matching quotes");if("constructor"!==p&&f||(u=!0),_(g,s="%"+(i+="."+p)+"%"))c=g[s];else if(null!=c){if(!(p in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&h+1>=n.length){var y=l(c,p);c=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:c[p]}else f=_(c,p),c=c[p];f&&!u&&(g[s]=c)}}return c}},50907:function(e,t,n){"use strict";n.d(t,{WT:function(){return i}});var i="undefined"!==typeof Float32Array?Float32Array:Array;Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)})},5742:function(e,t,n){"use strict";function i(e,t){var n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=u*a-s*c,h=-u*o+s*l,f=c*o-a*l,p=n*d+i*h+r*f;return p?(p=1/p,e[0]=d*p,e[1]=(-u*i+r*c)*p,e[2]=(s*i-r*a)*p,e[3]=h*p,e[4]=(u*n-r*l)*p,e[5]=(-s*n+r*o)*p,e[6]=f*p,e[7]=(-c*n+i*l)*p,e[8]=(a*n-i*o)*p,e):null}function r(e,t,n){var i=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],h=n[0],f=n[1],p=n[2],g=n[3],v=n[4],m=n[5],y=n[6],_=n[7],b=n[8];return e[0]=h*i+f*a+p*c,e[1]=h*r+f*s+p*u,e[2]=h*o+f*l+p*d,e[3]=g*i+v*a+m*c,e[4]=g*r+v*s+m*u,e[5]=g*o+v*l+m*d,e[6]=y*i+_*a+b*c,e[7]=y*r+_*s+b*u,e[8]=y*o+_*l+b*d,e}function o(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function a(e,t){var n=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=n,e[2]=0,e[3]=-n,e[4]=i,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function s(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}n.d(t,{Jp:function(){return r},U_:function(){return i},Us:function(){return a},vc:function(){return o},xJ:function(){return s}})},99874:function(e,t,n){"use strict";n.d(t,{$X:function(){return o},AK:function(){return h},EU:function(){return p},Fp:function(){return s},Fv:function(){return d},I6:function(){return g},IH:function(){return r},TE:function(){return c},VV:function(){return a},bA:function(){return l},kE:function(){return u},kK:function(){return f},lu:function(){return v}});var i=n(50907);function r(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function o(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function a(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function s(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}function l(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function c(e,t){var n=t[0]-e[0],i=t[1]-e[1];return Math.hypot(n,i)}function u(e){var t=e[0],n=e[1];return Math.hypot(t,n)}function d(e,t){var n=t[0],i=t[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r)),e[0]=t[0]*r,e[1]=t[1]*r,e}function h(e,t){return e[0]*t[0]+e[1]*t[1]}function f(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[3]*r+n[6],e[1]=n[1]*i+n[4]*r+n[7],e}function p(e,t){var n=e[0],i=e[1],r=t[0],o=t[1],a=Math.sqrt(n*n+i*i)*Math.sqrt(r*r+o*o),s=a&&(n*r+i*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function g(e,t){return e[0]===t[0]&&e[1]===t[1]}var v=o;!function(){var e=function(){var e=new i.WT(2);return i.WT!=Float32Array&&(e[0]=0,e[1]=0),e}()}()},80697:function(e,t,n){"use strict";var i="undefined"!==typeof Symbol&&Symbol,r=n(63297);e.exports=function(){return"function"===typeof i&&("function"===typeof Symbol&&("symbol"===typeof i("foo")&&("symbol"===typeof Symbol("bar")&&r())))}},63297:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},58316:function(e,t,n){"use strict";var i=n(33350);e.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},60478:function(e,t,n){var i=n(27424).default,r=n(861).default,o=n(61655).default,a=n(26389).default,s=n(56690).default,l=n(89728).default;function c(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];"object"!=typeof n||Object.isFrozen(n)||c(n)})),e}var u=c,d=c;u.default=d;var h=function(){"use strict";function e(t){s(this,e),void 0===t.data&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}return l(e,[{key:"ignoreMatch",value:function(){this.isMatchIgnored=!0}}]),e}();function f(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function p(e){var t=Object.create(null);for(var n in e)t[n]=e[n];for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.forEach((function(e){for(var n in e)t[n]=e[n]})),t}var g=function(e){return!!e.kind},v=function(){"use strict";function e(t,n){s(this,e),this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}return l(e,[{key:"addText",value:function(e){this.buffer+=f(e)}},{key:"openNode",value:function(e){if(g(e)){var t=e.kind;e.sublanguage||(t="".concat(this.classPrefix).concat(t)),this.span(t)}}},{key:"closeNode",value:function(e){g(e)&&(this.buffer+="</span>")}},{key:"value",value:function(){return this.buffer}},{key:"span",value:function(e){this.buffer+='<span class="'.concat(e,'">')}}]),e}(),m=function(e){"use strict";o(n,e);var t=a(n);function n(e){var i;return s(this,n),(i=t.call(this)).options=e,i}return l(n,[{key:"addKeyword",value:function(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}},{key:"addText",value:function(e){""!==e&&this.add(e)}},{key:"addSublanguage",value:function(e,t){var n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}},{key:"toHTML",value:function(){return new v(this,this.options).value()}},{key:"finalize",value:function(){return!0}}]),n}(function(){"use strict";function e(){s(this,e),this.rootNode={children:[]},this.stack=[this.rootNode]}return l(e,[{key:"top",get:function(){return this.stack[this.stack.length-1]}},{key:"root",get:function(){return this.rootNode}},{key:"add",value:function(e){this.top.children.push(e)}},{key:"openNode",value:function(e){var t={kind:e,children:[]};this.add(t),this.stack.push(t)}},{key:"closeNode",value:function(){if(this.stack.length>1)return this.stack.pop()}},{key:"closeAllNodes",value:function(){for(;this.closeNode(););}},{key:"toJSON",value:function(){return JSON.stringify(this.rootNode,null,4)}},{key:"walk",value:function(e){return this.constructor._walk(e,this.rootNode)}}],[{key:"_walk",value:function(e,t){var n=this;return"string"===typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((function(t){return n._walk(e,t)})),e.closeNode(t)),e}},{key:"_collapse",value:function(t){"string"!==typeof t&&t.children&&(t.children.every((function(e){return"string"===typeof e}))?t.children=[t.children.join("")]:t.children.forEach((function(t){e._collapse(t)})))}}]),e}());function y(e){return e?"string"===typeof e?e:e.source:null}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.map((function(e){return y(e)})).join("");return i}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i="("+t.map((function(e){return y(e)})).join("|")+")";return i}var C=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;var S="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",k="\\b\\d+(\\.\\d+)?",x="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",E="\\b(0b[01]+)",T={begin:"\\\\[\\s\\S]",relevance:0},N={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[T]},I={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[T]},D={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},L=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=p({className:"comment",begin:e,end:t,contains:[]},n);return i.contains.push(D),i.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),i},O=L("//","$"),R=L("/\\*","\\*/"),A=L("#","$"),M={className:"number",begin:k,relevance:0},P={className:"number",begin:x,relevance:0},Z={className:"number",begin:E,relevance:0},F={className:"number",begin:k+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},B={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[T,{begin:/\[/,end:/\]/,relevance:0,contains:[T]}]}]},H={className:"title",begin:S,relevance:0},z={className:"title",begin:w,relevance:0},j={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},V=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:S,UNDERSCORE_IDENT_RE:w,NUMBER_RE:k,C_NUMBER_RE:x,BINARY_NUMBER_RE:E,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),p({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":function(e,t){0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:T,APOS_STRING_MODE:N,QUOTE_STRING_MODE:I,PHRASAL_WORDS_MODE:D,COMMENT:L,C_LINE_COMMENT_MODE:O,C_BLOCK_COMMENT_MODE:R,HASH_COMMENT_MODE:A,NUMBER_MODE:M,C_NUMBER_MODE:P,BINARY_NUMBER_MODE:Z,CSS_NUMBER_MODE:F,REGEXP_MODE:B,TITLE_MODE:H,UNDERSCORE_TITLE_MODE:z,METHOD_GUARD:j,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":function(e,t){t.data._beginMatch=e[1]},"on:end":function(e,t){t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function W(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function U(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=W,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function G(e,t){Array.isArray(e.illegal)&&(e.illegal=b.apply(void 0,r(e.illegal)))}function K(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Y(e,t){void 0===e.relevance&&(e.relevance=1)}var q=["of","and","for","in","not","or","if","then","parent","list","value"],$="keyword";function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$,i={};return"string"===typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach((function(n){Object.assign(i,X(e[n],t,n))})),i;function r(e,n){t&&(n=n.map((function(e){return e.toLowerCase()}))),n.forEach((function(t){var n=t.split("|");i[n[0]]=[e,Q(n[0],n[1])]}))}}function Q(e,t){return t?Number(t):function(e){return q.includes(e.toLowerCase())}(e)?0:1}function J(e,t){t.plugins;function n(t,n){return new RegExp(y(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}var o=function(){"use strict";function e(){s(this,e),this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}return l(e,[{key:"addRule",value:function(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}},{key:"compile",value:function(){0===this.regexes.length&&(this.exec=function(){return null});var e=this.regexes.map((function(e){return e[1]}));this.matcherRe=n(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"|",n=0;return e.map((function(e){for(var t=n+=1,i=y(e),r="";i.length>0;){var o=C.exec(i);if(!o){r+=i;break}r+=i.substring(0,o.index),i=i.substring(o.index+o[0].length),"\\"===o[0][0]&&o[1]?r+="\\"+String(Number(o[1])+t):(r+=o[0],"("===o[0]&&n++)}return r})).map((function(e){return"(".concat(e,")")})).join(t)}(e),!0),this.lastIndex=0}},{key:"exec",value:function(e){this.matcherRe.lastIndex=this.lastIndex;var t=this.matcherRe.exec(e);if(!t)return null;var n=t.findIndex((function(e,t){return t>0&&void 0!==e})),i=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,i)}}]),e}(),a=function(){"use strict";function e(){s(this,e),this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}return l(e,[{key:"getMatcher",value:function(e){if(this.multiRegexes[e])return this.multiRegexes[e];var t=new o;return this.rules.slice(e).forEach((function(e){var n=i(e,2),r=n[0],o=n[1];return t.addRule(r,o)})),t.compile(),this.multiRegexes[e]=t,t}},{key:"resumingScanAtSamePosition",value:function(){return 0!==this.regexIndex}},{key:"considerAll",value:function(){this.regexIndex=0}},{key:"addRule",value:function(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}},{key:"exec",value:function(e){var t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;var n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{var i=this.getMatcher(0);i.lastIndex=this.lastIndex+1,n=i.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}]),e}();if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=p(e.classNameAliases||{}),function t(i,o){var s,l=i;if(i.isCompiled)return l;[K].forEach((function(e){return e(i,o)})),e.compilerExtensions.forEach((function(e){return e(i,o)})),i.__beforeBegin=null,[U,G,Y].forEach((function(e){return e(i,o)})),i.isCompiled=!0;var c=null;if("object"===typeof i.keywords&&(c=i.keywords.$pattern,delete i.keywords.$pattern),i.keywords&&(i.keywords=X(i.keywords,e.case_insensitive)),i.lexemes&&c)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return c=c||i.lexemes||/\w+/,l.keywordPatternRe=n(c,!0),o&&(i.begin||(i.begin=/\B|\b/),l.beginRe=n(i.begin),i.endSameAsBegin&&(i.end=i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(l.endRe=n(i.end)),l.terminatorEnd=y(i.end)||"",i.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(i.end?"|":"")+o.terminatorEnd)),i.illegal&&(l.illegalRe=n(i.illegal)),i.contains||(i.contains=[]),i.contains=(s=[]).concat.apply(s,r(i.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return p(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(ee(e))return p(e,{starts:e.starts?p(e.starts):null});if(Object.isFrozen(e))return p(e);return e}("self"===e?i:e)})))),i.contains.forEach((function(e){t(e,l)})),i.starts&&t(i.starts,o),l.matcher=function(e){var t=new a;return e.contains.forEach((function(e){return t.addRule(e.begin,{rule:e,type:"begin"})})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(l),l}(e)}function ee(e){return!!e&&(e.endsWithParent||ee(e.starts))}function te(e){var t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className:function(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted:function(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn('The language "'.concat(this.language,'" you specified could not be found.')),this.unknownLanguage=!0,f(this.code);var t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect:function(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:function(){return!0}},render:function(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install:function(e){e.component("highlightjs",t)}}}}var ne={"after:highlightElement":function(e){var t=e.el,n=e.result,i=e.text,r=re(t);if(r.length){var o=document.createElement("div");o.innerHTML=n.value,n.value=function(e,t,n){var i=0,r="",o=[];function a(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function s(e){function t(e){return" "+e.nodeName+'="'+f(e.value)+'"'}r+="<"+ie(e)+[].map.call(e.attributes,t).join("")+">"}function l(e){r+="</"+ie(e)+">"}function c(e){("start"===e.event?s:l)(e.node)}for(;e.length||t.length;){var u=a();if(r+=f(n.substring(i,u[0].offset)),i=u[0].offset,u===e){o.reverse().forEach(l);do{c(u.splice(0,1)[0]),u=a()}while(u===e&&u.length&&u[0].offset===i);o.reverse().forEach(s)}else"start"===u[0].event?o.push(u[0].node):o.pop(),c(u.splice(0,1)[0])}return r+f(n.substr(i))}(r,re(o),i)}}};function ie(e){return e.nodeName.toLowerCase()}function re(e){var t=[];return function e(n,i){for(var r=n.firstChild;r;r=r.nextSibling)3===r.nodeType?i+=r.nodeValue.length:1===r.nodeType&&(t.push({event:"start",offset:i,node:r}),i=e(r,i),ie(r).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:r}));return i}(e,0),t}var oe={},ae=function(e){console.error(e)},se=function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(t=console).log.apply(t,["WARN: ".concat(e)].concat(i))},le=function(e,t){oe["".concat(e,"/").concat(t)]||(console.log("Deprecated as of ".concat(e,". ").concat(t)),oe["".concat(e,"/").concat(t)]=!0)},ce=f,ue=p,de=Symbol("nomatch"),he=function(e){var t=Object.create(null),n=Object.create(null),r=[],o=!0,a=/(^(<[^>]+>|\t|)+|\n)/gm,s="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]},c={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:m};function d(e){return c.noHighlightRe.test(e)}function f(e,t,n,i){var r="",o="";"object"===typeof t?(r=e,n=t.ignoreIllegals,o=t.language,i=void 0):(le("10.7.0","highlight(lang, code, ...args) has been deprecated."),le("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),o=e,r=t);var a={code:r,language:o};E("before:highlight",a);var s=a.result?a.result:p(a.language,a.code,n,i);return s.code=a.code,E("after:highlight",s),s}function p(e,n,a,l){function u(e,t){var n=S.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function d(){null!=E.subLanguage?function(){if(""!==I){var e=null;if("string"===typeof E.subLanguage){if(!t[E.subLanguage])return void N.addText(I);e=p(E.subLanguage,I,!0,T[E.subLanguage]),T[E.subLanguage]=e.top}else e=g(I,E.subLanguage.length?E.subLanguage:null);E.relevance>0&&(D+=e.relevance),N.addSublanguage(e.emitter,e.language)}}():function(){if(E.keywords){var e=0;E.keywordPatternRe.lastIndex=0;for(var t=E.keywordPatternRe.exec(I),n="";t;){n+=I.substring(e,t.index);var r=u(E,t);if(r){var o=i(r,2),a=o[0],s=o[1];if(N.addText(n),n="",D+=s,a.startsWith("_"))n+=t[0];else{var l=S.classNameAliases[a]||a;N.addKeyword(t[0],l)}}else n+=t[0];e=E.keywordPatternRe.lastIndex,t=E.keywordPatternRe.exec(I)}n+=I.substr(e),N.addText(n)}else N.addText(I)}(),I=""}function f(e){return e.className&&N.openNode(S.classNameAliases[e.className]||e.className),E=Object.create(e,{parent:{value:E}})}function v(e,t,n){var i=function(e,t){var n=e&&e.exec(t);return n&&0===n.index}(e.endRe,n);if(i){if(e["on:end"]){var r=new h(e);e["on:end"](t,r),r.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,t,n)}function m(e){return 0===E.matcher.regexIndex?(I+=e[0],1):(R=!0,0)}function y(e){for(var t=e[0],n=e.rule,i=new h(n),r=0,o=[n.__beforeBegin,n["on:begin"]];r<o.length;r++){var a=o[r];if(a&&(a(e,i),i.isMatchIgnored))return m(t)}return n&&n.endSameAsBegin&&(n.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?I+=t:(n.excludeBegin&&(I+=t),d(),n.returnBegin||n.excludeBegin||(I=t)),f(n),n.returnBegin?0:t.length}function _(e){var t=e[0],i=n.substr(e.index),r=v(E,e,i);if(!r)return de;var o=E;o.skip?I+=t:(o.returnEnd||o.excludeEnd||(I+=t),d(),o.excludeEnd&&(I=t));do{E.className&&N.closeNode(),E.skip||E.subLanguage||(D+=E.relevance),E=E.parent}while(E!==r.parent);return r.starts&&(r.endSameAsBegin&&(r.starts.endRe=r.endRe),f(r.starts)),o.returnEnd?0:t.length}var b={};function C(t,i){var r=i&&i[0];if(I+=t,null==r)return d(),0;if("begin"===b.type&&"end"===i.type&&b.index===i.index&&""===r){if(I+=n.slice(i.index,i.index+1),!o){var s=new Error("0 width match regex");throw s.languageName=e,s.badRule=b.rule,s}return 1}if(b=i,"begin"===i.type)return y(i);if("illegal"===i.type&&!a){var l=new Error('Illegal lexeme "'+r+'" for mode "'+(E.className||"<unnamed>")+'"');throw l.mode=E,l}if("end"===i.type){var c=_(i);if(c!==de)return c}if("illegal"===i.type&&""===r)return 1;if(O>1e5&&O>3*i.index)throw new Error("potential infinite loop, way more iterations than matches");return I+=r,r.length}var S=w(e);if(!S)throw ae(s.replace("{}",e)),new Error('Unknown language: "'+e+'"');var k=J(S,{plugins:r}),x="",E=l||k,T={},N=new c.__emitter(c);!function(){for(var e=[],t=E;t!==S;t=t.parent)t.className&&e.unshift(t.className);e.forEach((function(e){return N.openNode(e)}))}();var I="",D=0,L=0,O=0,R=!1;try{for(E.matcher.considerAll();;){O++,R?R=!1:E.matcher.considerAll(),E.matcher.lastIndex=L;var A=E.matcher.exec(n);if(!A)break;var M=C(n.substring(L,A.index),A);L=A.index+M}return C(n.substr(L)),N.closeAllNodes(),N.finalize(),x=N.toHTML(),{relevance:Math.floor(D),value:x,language:e,illegal:!1,emitter:N,top:E}}catch(P){if(P.message&&P.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:P.message,context:n.slice(L-100,L+100),mode:P.mode},sofar:x,relevance:0,value:ce(n),emitter:N};if(o)return{illegal:!1,relevance:0,value:ce(n),emitter:N,language:e,top:E,errorRaised:P};throw P}}function g(e,n){n=n||c.languages||Object.keys(t);var r=function(e){var t={relevance:0,emitter:new c.__emitter(c),value:ce(e),illegal:!1,top:l};return t.emitter.addText(e),t}(e),o=n.filter(w).filter(x).map((function(t){return p(t,e,!1)}));o.unshift(r);var a=o.sort((function(e,t){if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(w(e.language).supersetOf===t.language)return 1;if(w(t.language).supersetOf===e.language)return-1}return 0})),s=i(a,2),u=s[0],d=s[1],h=u;return h.second_best=d,h}var v={"before:highlightElement":function(e){var t=e.el;c.useBR&&(t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":function(e){var t=e.result;c.useBR&&(t.value=t.value.replace(/\n/g,"<br>"))}},y=/^(<[^>]+>|\t)+/gm,_={"after:highlightElement":function(e){var t=e.result;c.tabReplace&&(t.value=t.value.replace(y,(function(e){return e.replace(/\t/g,c.tabReplace)})))}};function b(e){var t=function(e){var t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";var n=c.languageDetectRe.exec(t);if(n){var i=w(n[1]);return i||(se(s.replace("{}",n[1])),se("Falling back to no-highlight mode for this block.",e)),i?n[1]:"no-highlight"}return t.split(/\s+/).find((function(e){return d(e)||w(e)}))}(e);if(!d(t)){E("before:highlightElement",{el:e,language:t});var i=e.textContent,r=t?f(i,{language:t,ignoreIllegals:!0}):g(i);E("after:highlightElement",{el:e,result:r,text:i}),e.innerHTML=r.value,function(e,t,i){var r=t?n[t]:i;e.classList.add("hljs"),r&&e.classList.add(r)}(e,t,r.language),e.result={language:r.language,re:r.relevance,relavance:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance,relavance:r.second_best.relevance})}}var C=!1;function S(){"loading"!==document.readyState?document.querySelectorAll("pre code").forEach(b):C=!0}function w(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function k(e,t){var i=t.languageName;"string"===typeof e&&(e=[e]),e.forEach((function(e){n[e.toLowerCase()]=i}))}function x(e){var t=w(e);return t&&!t.disableAutodetect}function E(e,t){var n=e;r.forEach((function(e){e[n]&&e[n](t)}))}for(var T in"undefined"!==typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){C&&S()}),!1),Object.assign(e,{highlight:f,highlightAuto:g,highlightAll:S,fixMarkup:function(e){return le("10.2.0","fixMarkup will be removed entirely in v11.0"),le("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,c.tabReplace||c.useBR?t.replace(a,(function(e){return"\n"===e?c.useBR?"<br>":e:c.tabReplace?e.replace(/\t/g,c.tabReplace):e})):t;var t},highlightElement:b,highlightBlock:function(e){return le("10.7.0","highlightBlock will be removed entirely in v12.0"),le("10.7.0","Please use highlightElement now."),b(e)},configure:function(e){e.useBR&&(le("10.3.0","'useBR' will be removed entirely in v11.0"),le("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),c=ue(c,e)},initHighlighting:function e(){e.called||(e.called=!0,le("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(b))},initHighlightingOnLoad:function(){le("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),C=!0},registerLanguage:function(n,i){var r=null;try{r=i(e)}catch(a){if(ae("Language definition for '{}' could not be registered.".replace("{}",n)),!o)throw a;ae(a),r=l}r.name||(r.name=n),t[n]=r,r.rawDefinition=i.bind(null,e),r.aliases&&k(r.aliases,{languageName:n})},unregisterLanguage:function(e){delete t[e];for(var i=0,r=Object.keys(n);i<r.length;i++){var o=r[i];n[o]===e&&delete n[o]}},listLanguages:function(){return Object.keys(t)},getLanguage:w,registerAliases:k,requireLanguage:function(e){le("10.4.0","requireLanguage will be removed entirely in v11."),le("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");var t=w(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:x,inherit:ue,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=function(t){e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=function(t){e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),r.push(e)},vuePlugin:te(e).VuePlugin}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString="10.7.3",V)"object"===typeof V[T]&&u(V[T]);return Object.assign(e,V),e.addPlugin(v),e.addPlugin(ne),e.addPlugin(_),e}({});e.exports=he},66078:function(e){e.exports=function(e){var t="[A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_][A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_0-9]+",n="\u0434\u0430\u043b\u0435\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0434\u043b\u044f \u0435\u0441\u043b\u0438 \u0438 \u0438\u0437 \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u0438\u043d\u0430\u0447\u0435\u0435\u0441\u043b\u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043e\u043d\u0435\u0446\u0435\u0441\u043b\u0438 \u043a\u043e\u043d\u0435\u0446\u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043a\u043e\u043d\u0435\u0446\u0446\u0438\u043a\u043b\u0430 \u043d\u0435 \u043d\u043e\u0432\u044b\u0439 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043f\u0435\u0440\u0435\u043c \u043f\u043e \u043f\u043e\u043a\u0430 \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0442\u043e\u0433\u0434\u0430 \u0446\u0438\u043a\u043b \u044d\u043a\u0441\u043f\u043e\u0440\u0442 ",i="null \u0438\u0441\u0442\u0438\u043d\u0430 \u043b\u043e\u0436\u044c \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e",r=e.inherit(e.NUMBER_MODE),o={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},a={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},s=e.inherit(e.C_LINE_COMMENT_MODE);return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:n,built_in:"\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0440\u043e\u043a \u0441\u0438\u043c\u0432\u043e\u043b\u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u0438 ansitooem oemtoansi \u0432\u0432\u0435\u0441\u0442\u0438\u0432\u0438\u0434\u0441\u0443\u0431\u043a\u043e\u043d\u0442\u043e \u0432\u0432\u0435\u0441\u0442\u0438\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0432\u0432\u0435\u0441\u0442\u0438\u043f\u0435\u0440\u0438\u043e\u0434 \u0432\u0432\u0435\u0441\u0442\u0438\u043f\u043b\u0430\u043d\u0441\u0447\u0435\u0442\u043e\u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439\u043f\u043b\u0430\u043d\u0441\u0447\u0435\u0442\u043e\u0432 \u0434\u0430\u0442\u0430\u0433\u043e\u0434 \u0434\u0430\u0442\u0430\u043c\u0435\u0441\u044f\u0446 \u0434\u0430\u0442\u0430\u0447\u0438\u0441\u043b\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0432\u0441\u0442\u0440\u043e\u043a\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0438\u0437\u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438\u0431 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043a\u043e\u0434\u0441\u0438\u043c\u0432 \u043a\u043e\u043d\u0433\u043e\u0434\u0430 \u043a\u043e\u043d\u0435\u0446\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u0431\u0438 \u043a\u043e\u043d\u0435\u0446\u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u0433\u043e\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u0431\u0438 \u043a\u043e\u043d\u0435\u0446\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u043a\u043e\u043d\u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430 \u043a\u043e\u043d\u043c\u0435\u0441\u044f\u0446\u0430 \u043a\u043e\u043d\u043d\u0435\u0434\u0435\u043b\u0438 \u043b\u043e\u0433 \u043b\u043e\u043310 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u0441\u0443\u0431\u043a\u043e\u043d\u0442\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043d\u0430\u0431\u043e\u0440\u0430\u043f\u0440\u0430\u0432 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c\u0432\u0438\u0434 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c\u0441\u0447\u0435\u0442 \u043d\u0430\u0439\u0442\u0438\u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430\u0447\u0430\u043b\u043e\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u0431\u0438 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u043d\u0430\u0447\u0433\u043e\u0434\u0430 \u043d\u0430\u0447\u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430 \u043d\u0430\u0447\u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0447\u043d\u0435\u0434\u0435\u043b\u0438 \u043d\u043e\u043c\u0435\u0440\u0434\u043d\u044f\u0433\u043e\u0434\u0430 \u043d\u043e\u043c\u0435\u0440\u0434\u043d\u044f\u043d\u0435\u0434\u0435\u043b\u0438 \u043d\u043e\u043c\u0435\u0440\u043d\u0435\u0434\u0435\u043b\u0438\u0433\u043e\u0434\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439\u0436\u0443\u0440\u043d\u0430\u043b\u0440\u0430\u0441\u0447\u0435\u0442\u043e\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439\u043f\u043b\u0430\u043d\u0441\u0447\u0435\u0442\u043e\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439\u044f\u0437\u044b\u043a \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c\u043e\u043a\u043d\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043f\u0435\u0440\u0438\u043e\u0434\u0441\u0442\u0440 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0434\u0430\u0442\u0443\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043e\u0442\u0431\u043e\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043f\u043e\u0437\u0438\u0446\u0438\u044e\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043f\u0443\u0441\u0442\u043e\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0442\u0430 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430\u0432\u0442\u043e\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u044c \u043f\u0443\u0441\u0442\u043e\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u043f\u043e\u0437\u0438\u0446\u0438\u044e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b\u043d\u0430 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b\u043f\u043e \u0441\u0438\u043c\u0432 \u0441\u043e\u0437\u0434\u0430\u0442\u044c\u043e\u0431\u044a\u0435\u043a\u0442 \u0441\u0442\u0430\u0442\u0443\u0441\u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0441\u0442\u0440\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u0441\u0442\u0440\u043e\u043a \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u043f\u043e\u0437\u0438\u0446\u0438\u044e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0441\u0447\u0435\u0442\u043f\u043e\u043a\u043e\u0434\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0435\u0432\u0440\u0435\u043c\u044f \u0442\u0438\u043f\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0441\u0442\u0440 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0442\u0430\u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0442\u0430\u043f\u043e \u0444\u0438\u043a\u0441\u0448\u0430\u0431\u043b\u043e\u043d \u0448\u0430\u0431\u043b\u043e\u043d acos asin atan base64\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 base64\u0441\u0442\u0440\u043e\u043a\u0430 cos exp log log10 pow sin sqrt tan xml\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 xml\u0441\u0442\u0440\u043e\u043a\u0430 xml\u0442\u0438\u043f xml\u0442\u0438\u043f\u0437\u043d\u0447 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435\u043e\u043a\u043d\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c\u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0443\u043b\u0435\u0432\u043e \u0432\u0432\u0435\u0441\u0442\u0438\u0434\u0430\u0442\u0443 \u0432\u0432\u0435\u0441\u0442\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0432\u0435\u0441\u0442\u0438\u0441\u0442\u0440\u043e\u043a\u0443 \u0432\u0432\u0435\u0441\u0442\u0438\u0447\u0438\u0441\u043b\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u0447\u0442\u0435\u043d\u0438\u044fxml \u0432\u043e\u043f\u0440\u043e\u0441 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u0433 \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0436\u0443\u0440\u043d\u0430\u043b\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443\u043f\u0440\u0430\u0432\u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0433\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0435\u0444\u043e\u0440\u043c\u044b\u0432\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u0442\u0430 \u0434\u0435\u043d\u044c \u0434\u0435\u043d\u044c\u0433\u043e\u0434\u0430 \u0434\u0435\u043d\u044c\u043d\u0435\u0434\u0435\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u043c\u0435\u0441\u044f\u0446 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0434\u0430\u043d\u043d\u044b\u0435\u0434\u043b\u044f\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0440\u0430\u0431\u043e\u0442\u0443\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c\u0440\u0430\u0431\u043e\u0442\u0443\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0432\u043d\u0435\u0448\u043d\u044e\u044e\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0437\u0430\u043a\u0440\u044b\u0442\u044c\u0441\u043f\u0440\u0430\u0432\u043a\u0443 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044cjson \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044cxml \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0434\u0430\u0442\u0443json \u0437\u0430\u043f\u0438\u0441\u044c\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c\u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0432\u0434\u0430\u043d\u043d\u044b\u0435\u0444\u043e\u0440\u043c\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0432\u0441\u0442\u0440\u043e\u043a\u0443\u0432\u043d\u0443\u0442\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0432\u0444\u0430\u0439\u043b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0438\u0437\u0441\u0442\u0440\u043e\u043a\u0438\u0432\u043d\u0443\u0442\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0438\u0437\u0444\u0430\u0439\u043b\u0430 \u0438\u0437xml\u0442\u0438\u043f\u0430 \u0438\u043c\u043f\u043e\u0440\u0442\u043c\u043e\u0434\u0435\u043b\u0438xdto \u0438\u043c\u044f\u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 \u0438\u043c\u044f\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f\u043e\u0431\u043e\u0448\u0438\u0431\u043a\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445\u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u0442\u0440\u043e\u043a\u0443 \u043a\u043e\u0434\u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043a\u043e\u0434\u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043a\u043e\u043d\u0435\u0446\u0433\u043e\u0434\u0430 \u043a\u043e\u043d\u0435\u0446\u0434\u043d\u044f \u043a\u043e\u043d\u0435\u0446\u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430 \u043a\u043e\u043d\u0435\u0446\u043c\u0435\u0441\u044f\u0446\u0430 \u043a\u043e\u043d\u0435\u0446\u043c\u0438\u043d\u0443\u0442\u044b \u043a\u043e\u043d\u0435\u0446\u043d\u0435\u0434\u0435\u043b\u0438 \u043a\u043e\u043d\u0435\u0446\u0447\u0430\u0441\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0431\u0430\u0437\u044b\u0434\u0430\u043d\u043d\u044b\u0445\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0430\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0430 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0434\u0430\u043d\u043d\u044b\u0435\u0444\u043e\u0440\u043c\u044b \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0444\u0430\u0439\u043b \u043a\u0440\u0430\u0442\u043a\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043e\u0448\u0438\u0431\u043a\u0438 \u043b\u0435\u0432 \u043c\u0430\u043a\u0441 \u043c\u0435\u0441\u0442\u043d\u043e\u0435\u0432\u0440\u0435\u043c\u044f \u043c\u0435\u0441\u044f\u0446 \u043c\u0438\u043d \u043c\u0438\u043d\u0443\u0442\u0430 \u043c\u043e\u043d\u043e\u043f\u043e\u043b\u044c\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c \u043d\u0430\u0439\u0442\u0438 \u043d\u0430\u0439\u0442\u0438\u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435\u0441\u0438\u043c\u0432\u043e\u043b\u044bxml \u043d\u0430\u0439\u0442\u0438\u043e\u043a\u043d\u043e\u043f\u043e\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0441\u0441\u044b\u043b\u043a\u0435 \u043d\u0430\u0439\u0442\u0438\u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0435\u043d\u0430\u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0439\u0442\u0438\u043f\u043e\u0441\u0441\u044b\u043b\u043a\u0430\u043c \u043d\u0430\u0439\u0442\u0438\u0444\u0430\u0439\u043b\u044b \u043d\u0430\u0447\u0430\u043b\u043e\u0433\u043e\u0434\u0430 \u043d\u0430\u0447\u0430\u043b\u043e\u0434\u043d\u044f \u043d\u0430\u0447\u0430\u043b\u043e\u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430 \u043d\u0430\u0447\u0430\u043b\u043e\u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0447\u0430\u043b\u043e\u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0447\u0430\u043b\u043e\u043d\u0435\u0434\u0435\u043b\u0438 \u043d\u0430\u0447\u0430\u043b\u043e\u0447\u0430\u0441\u0430 \u043d\u0430\u0447\u0430\u0442\u044c\u0437\u0430\u043f\u0440\u043e\u0441\u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430\u0447\u0430\u0442\u044c\u0437\u0430\u043f\u0443\u0441\u043a\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0447\u0430\u0442\u044c\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u0432\u043d\u0435\u0448\u043d\u0435\u0439\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u0438\u0441\u043a\u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445\u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0447\u0430\u0442\u044c\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445\u0438\u0437\u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0447\u0430\u0442\u044c\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u043d\u0430\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u043d\u0430\u0447\u0430\u0442\u044c\u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435\u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0447\u0430\u0442\u044c\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443\u0432\u043d\u0435\u0448\u043d\u0435\u0439\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043d\u0430\u0447\u0430\u0442\u044c\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439 \u043d\u0430\u0447\u0430\u0442\u044c\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043d\u0435\u0434\u0435\u043b\u044f\u0433\u043e\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043d\u043e\u043c\u0435\u0440\u0441\u0435\u0430\u043d\u0441\u0430\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043d\u043e\u043c\u0435\u0440\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043d\u0440\u0435\u0433 \u043d\u0441\u0442\u0440 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044e\u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c\u0444\u0430\u0439\u043b\u044b \u043e\u043a\u0440 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043e\u0448\u0438\u0431\u043a\u0438 \u043e\u043f\u043e\u0432\u0435\u0441\u0442\u0438\u0442\u044c \u043e\u043f\u043e\u0432\u0435\u0441\u0442\u0438\u0442\u044c\u043e\u0431\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044c\u0438\u043d\u0434\u0435\u043a\u0441\u0441\u043f\u0440\u0430\u0432\u043a\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044c\u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u0441\u043f\u0440\u0430\u0432\u043a\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044c\u0441\u043f\u0440\u0430\u0432\u043a\u0443 \u043e\u0442\u043a\u0440\u044b\u0442\u044c\u0444\u043e\u0440\u043c\u0443 \u043e\u0442\u043a\u0440\u044b\u0442\u044c\u0444\u043e\u0440\u043c\u0443\u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c\u0436\u0443\u0440\u043d\u0430\u043b\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043f\u0435\u0440\u0435\u0439\u0442\u0438\u043f\u043e\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0441\u0441\u044b\u043b\u043a\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c\u0444\u0430\u0439\u043b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0432\u043d\u0435\u0448\u043d\u044e\u044e\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0432\u0432\u043e\u0434\u0434\u0430\u0442\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0432\u0432\u043e\u0434\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0432\u0432\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0432\u0432\u043e\u0434\u0447\u0438\u0441\u043b\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0432\u043e\u043f\u0440\u043e\u0441 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e\u043e\u0431\u043e\u0448\u0438\u0431\u043a\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u043d\u0430\u043a\u0430\u0440\u0442\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u043d\u043e\u0435\u0438\u043c\u044f\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044ccom\u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044cxml\u0442\u0438\u043f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0430\u0434\u0440\u0435\u0441\u043f\u043e\u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443\u0441\u0435\u0430\u043d\u0441\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f\u0441\u043f\u044f\u0449\u0435\u0433\u043e\u0441\u0435\u0430\u043d\u0441\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u0437\u0430\u0441\u044b\u043f\u0430\u043d\u0438\u044f\u043f\u0430\u0441\u0441\u0438\u0432\u043d\u043e\u0433\u043e\u0441\u0435\u0430\u043d\u0441\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0434\u0430\u043d\u043d\u044b\u0435\u0432\u044b\u0431\u043e\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435\u043a\u043e\u0434\u044b\u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435\u0447\u0430\u0441\u043e\u0432\u044b\u0435\u043f\u043e\u044f\u0441\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043e\u0442\u0431\u043e\u0440\u0430\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u0437\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u043c\u044f\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e\u0444\u0430\u0439\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u043c\u044f\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e\u044d\u043a\u0440\u0430\u043d\u043e\u0432\u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043a\u0440\u0430\u0442\u043a\u0438\u0439\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043c\u0430\u043a\u0435\u0442\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043c\u0430\u0441\u043a\u0443\u0432\u0441\u0435\u0444\u0430\u0439\u043b\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043c\u0430\u0441\u043a\u0443\u0432\u0441\u0435\u0444\u0430\u0439\u043b\u044b\u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043c\u0430\u0441\u043a\u0443\u0432\u0441\u0435\u0444\u0430\u0439\u043b\u044b\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043f\u043e\u0430\u0434\u0440\u0435\u0441\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e\u0434\u043b\u0438\u043d\u0443\u043f\u0430\u0440\u043e\u043b\u0435\u0439\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e\u0441\u0441\u044b\u043b\u043a\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e\u0441\u0441\u044b\u043b\u043a\u0443\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\u0431\u0430\u0437\u044b\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u0431\u0449\u0438\u0439\u043c\u0430\u043a\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u0431\u0449\u0443\u044e\u0444\u043e\u0440\u043c\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u043a\u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e\u043e\u0442\u043c\u0435\u0442\u043a\u0443\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e\u0440\u0435\u0436\u0438\u043c\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445\u043e\u043f\u0446\u0438\u0439\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043f\u043e\u043b\u043d\u043e\u0435\u0438\u043c\u044f\u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445\u0441\u0441\u044b\u043b\u043e\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443\u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438\u043f\u0430\u0440\u043e\u043b\u0435\u0439\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\u043f\u0443\u0442\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\u043f\u0443\u0442\u0438\u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\u043f\u0443\u0442\u0438\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0435\u0430\u043d\u0441\u044b\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435\u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0438\u0444\u043e\u0440\u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u043e\u0441\u0442\u0430\u0432\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430odata \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f\u0431\u0430\u0437\u044b\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0442\u0435\u043a\u0443\u0449\u0438\u0439\u0441\u0435\u0430\u043d\u0441\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0444\u0430\u0439\u043b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0444\u0430\u0439\u043b\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0444\u043e\u0440\u043c\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e\u043e\u043f\u0446\u0438\u044e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e\u043e\u043f\u0446\u0438\u044e\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0447\u0430\u0441\u043e\u0432\u043e\u0439\u043f\u043e\u044f\u0441\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438\u043e\u0441 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c\u0432\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c\u0444\u0430\u0439\u043b \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c\u0444\u0430\u0439\u043b\u044b \u043f\u0440\u0430\u0432 \u043f\u0440\u0430\u0432\u043e\u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043a\u043e\u0434\u0430\u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0430\u0432\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0447\u0430\u0441\u043e\u0432\u043e\u0433\u043e\u043f\u043e\u044f\u0441\u0430 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0442\u0438\u0442\u044c\u0440\u0430\u0431\u043e\u0442\u0443\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c\u0432\u044b\u0437\u043e\u0432 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044cjson \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044cxml \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c\u0434\u0430\u0442\u0443json \u043f\u0443\u0441\u0442\u0430\u044f\u0441\u0442\u0440\u043e\u043a\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0434\u0430\u043d\u043d\u044b\u0435\u0434\u043b\u044f\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c\u0444\u0430\u0439\u043b \u0440\u0430\u0437\u043e\u0440\u0432\u0430\u0442\u044c\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u0441\u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u0442\u0440\u043e\u043a\u0443 \u0440\u043e\u043b\u044c\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0430 \u0441\u0438\u0433\u043d\u0430\u043b \u0441\u0438\u043c\u0432\u043e\u043b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0436\u0443\u0440\u043d\u0430\u043b\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u043b\u0435\u0442\u043d\u0435\u0433\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c\u0431\u0443\u0444\u0435\u0440\u044b\u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0437\u0434\u0430\u0442\u044c\u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0441\u043e\u0437\u0434\u0430\u0442\u044c\u0444\u0430\u0431\u0440\u0438\u043a\u0443xdto \u0441\u043e\u043a\u0440\u043b \u0441\u043e\u043a\u0440\u043b\u043f \u0441\u043e\u043a\u0440\u043f \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434 \u0441\u0442\u0440\u0434\u043b\u0438\u043d\u0430 \u0441\u0442\u0440\u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f\u043d\u0430 \u0441\u0442\u0440\u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0440\u043d\u0430\u0439\u0442\u0438 \u0441\u0442\u0440\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f\u0441 \u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u0442\u0440\u043e\u043a\u0430\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u0441\u0442\u0440\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u0442\u0440\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0441\u0442\u0440\u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0441\u0442\u0440\u0447\u0438\u0441\u043b\u043e\u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0439 \u0441\u0442\u0440\u0447\u0438\u0441\u043b\u043e\u0441\u0442\u0440\u043e\u043a \u0441\u0442\u0440\u0448\u0430\u0431\u043b\u043e\u043d \u0442\u0435\u043a\u0443\u0449\u0430\u044f\u0434\u0430\u0442\u0430 \u0442\u0435\u043a\u0443\u0449\u0430\u044f\u0434\u0430\u0442\u0430\u0441\u0435\u0430\u043d\u0441\u0430 \u0442\u0435\u043a\u0443\u0449\u0430\u044f\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0430\u044f\u0434\u0430\u0442\u0430 \u0442\u0435\u043a\u0443\u0449\u0430\u044f\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0430\u044f\u0434\u0430\u0442\u0430\u0432\u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445 \u0442\u0435\u043a\u0443\u0449\u0438\u0439\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0439\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e\u0448\u0440\u0438\u0444\u0442\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0439\u043a\u043e\u0434\u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0435\u043a\u0443\u0449\u0438\u0439\u0440\u0435\u0436\u0438\u043c\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439\u044f\u0437\u044b\u043a \u0442\u0435\u043a\u0443\u0449\u0438\u0439\u044f\u0437\u044b\u043a\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0442\u0438\u043f \u0442\u0438\u043f\u0437\u043d\u0447 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f\u0430\u043a\u0442\u0438\u0432\u043d\u0430 \u0442\u0440\u0435\u0433 \u0443\u0434\u0430\u043b\u0438\u0442\u044c\u0434\u0430\u043d\u043d\u044b\u0435\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u0443\u0434\u0430\u043b\u0438\u0442\u044c\u0438\u0437\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0443\u0434\u0430\u043b\u0438\u0442\u044c\u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0443\u0434\u0430\u043b\u0438\u0442\u044c\u0444\u0430\u0439\u043b\u044b \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0435\u0432\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c\u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443\u0441\u0435\u0430\u043d\u0441\u043e\u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0432\u043d\u0435\u0448\u043d\u044e\u044e\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f\u0441\u043f\u044f\u0449\u0435\u0433\u043e\u0441\u0435\u0430\u043d\u0441\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u0437\u0430\u0441\u044b\u043f\u0430\u043d\u0438\u044f\u043f\u0430\u0441\u0441\u0438\u0432\u043d\u043e\u0433\u043e\u0441\u0435\u0430\u043d\u0441\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043a\u0440\u0430\u0442\u043a\u0438\u0439\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e\u0434\u043b\u0438\u043d\u0443\u043f\u0430\u0440\u043e\u043b\u0435\u0439\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043c\u043e\u043d\u043e\u043f\u043e\u043b\u044c\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e\u0440\u0435\u0436\u0438\u043c\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445\u043e\u043f\u0446\u0438\u0439\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443\u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438\u043f\u0430\u0440\u043e\u043b\u0435\u0439\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u0441\u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c\u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435\u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0438\u0444\u043e\u0440\u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u043e\u0441\u0442\u0430\u0432\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430odata \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0447\u0430\u0441\u043e\u0432\u043e\u0439\u043f\u043e\u044f\u0441\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0447\u0430\u0441\u043e\u0432\u043e\u0439\u043f\u043e\u044f\u0441\u0441\u0435\u0430\u043d\u0441\u0430 \u0444\u043e\u0440\u043c\u0430\u0442 \u0446\u0435\u043b \u0447\u0430\u0441 \u0447\u0430\u0441\u043e\u0432\u043e\u0439\u043f\u043e\u044f\u0441 \u0447\u0430\u0441\u043e\u0432\u043e\u0439\u043f\u043e\u044f\u0441\u0441\u0435\u0430\u043d\u0441\u0430 \u0447\u0438\u0441\u043b\u043e \u0447\u0438\u0441\u043b\u043e\u043f\u0440\u043e\u043f\u0438\u0441\u044c\u044e \u044d\u0442\u043e\u0430\u0434\u0440\u0435\u0441\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 ws\u0441\u0441\u044b\u043b\u043a\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0430\u043a\u0435\u0442\u043e\u0432\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u0441\u0442\u0438\u043b\u0435\u0439 \u0431\u0438\u0437\u043d\u0435\u0441\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0432\u043d\u0435\u0448\u043d\u0438\u0435\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043d\u0435\u0448\u043d\u0438\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0435\u043e\u0442\u0447\u0435\u0442\u044b \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435\u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0433\u043b\u0430\u0432\u043d\u044b\u0439\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0433\u043b\u0430\u0432\u043d\u044b\u0439\u0441\u0442\u0438\u043b\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0436\u0443\u0440\u043d\u0430\u043b\u044b\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f\u043e\u0431\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0440\u0430\u0431\u043e\u0447\u0435\u0439\u0434\u0430\u0442\u044b \u0438\u0441\u0442\u043e\u0440\u0438\u044f\u0440\u0430\u0431\u043e\u0442\u044b\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0438\u043e\u0442\u0431\u043e\u0440\u0430 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0440\u0435\u043a\u043b\u0430\u043c\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e\u0442\u0447\u0435\u0442\u044b \u043f\u0430\u043d\u0435\u043b\u044c\u0437\u0430\u0434\u0430\u0447\u043e\u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0441\u0435\u0430\u043d\u0441\u0430 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u043d\u044b\u0432\u0438\u0434\u043e\u0432\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u043f\u043b\u0430\u043d\u044b\u0432\u0438\u0434\u043e\u0432\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u043f\u043b\u0430\u043d\u044b\u043e\u0431\u043c\u0435\u043d\u0430 \u043f\u043b\u0430\u043d\u044b\u0441\u0447\u0435\u0442\u043e\u0432 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439\u043f\u043e\u0438\u0441\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445\u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0440\u0430\u0431\u043e\u0447\u0430\u044f\u0434\u0430\u0442\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b\u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b\u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b\u0441\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u0440\u0435\u0433\u043b\u0430\u043c\u0435\u043d\u0442\u043d\u044b\u0435\u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440xdto \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u0433\u0435\u043e\u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0430 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0440\u0435\u043a\u043b\u0430\u043c\u044b \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043f\u043e\u0447\u0442\u044b \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438 \u0444\u0430\u0431\u0440\u0438\u043a\u0430xdto \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435\u043f\u043e\u0442\u043e\u043a\u0438 \u0444\u043e\u043d\u043e\u0432\u044b\u0435\u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432\u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u0434\u0430\u043d\u043d\u044b\u0445\u0444\u043e\u0440\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043e\u0431\u0449\u0438\u0445\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445\u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a ",class:"web\u0446\u0432\u0435\u0442\u0430 windows\u0446\u0432\u0435\u0442\u0430 windows\u0448\u0440\u0438\u0444\u0442\u044b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0440\u0430\u043c\u043a\u0438\u0441\u0442\u0438\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0446\u0432\u0435\u0442\u0430\u0441\u0442\u0438\u043b\u044f \u0448\u0440\u0438\u0444\u0442\u044b\u0441\u0442\u0438\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u0434\u0430\u043d\u043d\u044b\u0445\u0444\u043e\u0440\u043c\u044b\u0432\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0430\u0432\u0442\u043e\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044f\u0432\u0444\u043e\u0440\u043c\u0435 \u0430\u0432\u0442\u043e\u0440\u0430\u0437\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435\u0441\u0435\u0440\u0438\u0439 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u0438\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u0432\u044b\u0441\u043e\u0442\u043e\u0439\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f\u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430\u0444\u043e\u0440\u043c\u044b \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432\u0438\u0434\u0433\u0440\u0443\u043f\u043f\u044b\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0434\u0434\u0435\u043a\u043e\u0440\u0430\u0446\u0438\u0438\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0434\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0434\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0438\u0434\u043a\u043d\u043e\u043f\u043a\u0438\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0434\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044f \u0432\u0438\u0434\u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439\u043a\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435 \u0432\u0438\u0434\u043f\u043e\u043b\u044f\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0434\u0444\u043b\u0430\u0436\u043a\u0430 \u0432\u043b\u0438\u044f\u043d\u0438\u0435\u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043d\u0430\u043f\u0443\u0437\u044b\u0440\u0435\u043a\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0430\u043a\u043e\u043b\u043e\u043d\u043e\u043a \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0430\u043f\u043e\u0434\u0447\u0438\u043d\u0435\u043d\u043d\u044b\u0445\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u0444\u043e\u0440\u043c\u044b \u0433\u0440\u0443\u043f\u043f\u044b\u0438\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043c\u0435\u0436\u0434\u0443\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438\u0444\u043e\u0440\u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043f\u043e\u043b\u043e\u0441\u044b\u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0442\u043e\u0447\u043a\u0438\u0431\u0438\u0440\u0436\u0435\u0432\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0438\u0441\u0442\u043e\u0440\u0438\u044f\u0432\u044b\u0431\u043e\u0440\u0430\u043f\u0440\u0438\u0432\u0432\u043e\u0434\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u043e\u0441\u0438\u0442\u043e\u0447\u0435\u043a\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043f\u0443\u0437\u044b\u0440\u044c\u043a\u0430\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u0433\u0440\u0443\u043f\u043f\u044b\u043a\u043e\u043c\u0430\u043d\u0434 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0441\u0435\u0440\u0438\u0439 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0434\u0435\u0440\u0435\u0432\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0441\u043f\u0438\u0441\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u0442\u0435\u043a\u0441\u0442\u0430\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u0434\u0435\u043d\u0434\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u043c\u0435\u0442\u043e\u043a\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u043c\u0435\u0442\u043e\u043a\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0444\u043e\u0440\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0432\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0432\u043b\u0435\u0433\u0435\u043d\u0434\u0435\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0433\u0440\u0443\u043f\u043f\u044b\u043a\u043d\u043e\u043f\u043e\u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0448\u043a\u0430\u043b\u044b\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0438\u0437\u043c\u0435\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b\u0433\u0430\u043d\u0442\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043a\u043d\u043e\u043f\u043a\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043a\u043d\u043e\u043f\u043a\u0438\u0432\u044b\u0431\u043e\u0440\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0439\u0444\u043e\u0440\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0439\u0433\u0440\u0443\u043f\u043f\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u043f\u0443\u0437\u044b\u0440\u044c\u043a\u043e\u0432\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043f\u0430\u043d\u0435\u043b\u0438\u043f\u043e\u0438\u0441\u043a\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f\u043f\u0440\u0438\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438\u043f\u043e\u043b\u043e\u0441\u044b\u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0444\u043e\u0440\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0442\u0435\u043a\u0441\u0442\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b\u0433\u0430\u043d\u0442\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043e\u0431\u044b\u0447\u043d\u043e\u0439\u0433\u0440\u0443\u043f\u043f\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0444\u0438\u0433\u0443\u0440\u044b\u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u0430\u043b\u0438\u0442\u0440\u0430\u0446\u0432\u0435\u0442\u043e\u0432\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0439\u0433\u0440\u0443\u043f\u043f\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430\u0434\u0435\u043d\u0434\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b\u0433\u0430\u043d\u0442\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e\u0438\u0441\u043a\u0432\u0442\u0430\u0431\u043b\u0438\u0446\u0435\u043f\u0440\u0438\u0432\u0432\u043e\u0434\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0444\u043e\u0440\u043c\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438\u043a\u043d\u043e\u043f\u043a\u0438\u0444\u043e\u0440\u043c\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439\u043f\u0430\u043d\u0435\u043b\u0438\u0444\u043e\u0440\u043c\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439\u043f\u0430\u043d\u0435\u043b\u0438\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0444\u043e\u0440\u043c\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043e\u043f\u043e\u0440\u043d\u043e\u0439\u0442\u043e\u0447\u043a\u0438\u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439\u043a\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439\u0448\u043a\u0430\u043b\u044b\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u0438\u0437\u043c\u0435\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0441\u0442\u0440\u043e\u043a\u0438\u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u0435\u043a\u0441\u0442\u0430\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439\u043b\u0438\u043d\u0438\u0438 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043f\u043e\u0438\u0441\u043a\u043e\u043c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0448\u043a\u0430\u043b\u044b\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0442\u043e\u0447\u0435\u043a\u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439\u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e\u0440\u044f\u0434\u043e\u043a\u0441\u0435\u0440\u0438\u0439\u0432\u043b\u0435\u0433\u0435\u043d\u0434\u0435\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u0430\u0437\u043c\u0435\u0440\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0448\u043a\u0430\u043b\u044b\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u043d\u0438\u0435\u043f\u043e\u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b\u0433\u0430\u043d\u0442\u0430 \u0440\u0435\u0436\u0438\u043c\u0430\u0432\u0442\u043e\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0432\u0432\u043e\u0434\u0430\u0441\u0442\u0440\u043e\u043a\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0440\u0435\u0436\u0438\u043c\u0432\u044b\u0431\u043e\u0440\u0430\u043d\u0435\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0434\u0430\u0442\u044b \u0440\u0435\u0436\u0438\u043c\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0441\u0442\u0440\u043e\u043a\u0438\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0440\u0435\u0436\u0438\u043c\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0440\u0435\u0436\u0438\u043c\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0440\u0435\u0436\u0438\u043c\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0434\u0438\u0430\u043b\u043e\u0433\u0430\u043f\u0435\u0447\u0430\u0442\u0438 \u0440\u0435\u0436\u0438\u043c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0440\u0435\u0436\u0438\u043c\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0440\u0435\u0436\u0438\u043c\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e\u043e\u043a\u043d\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f\u043e\u043a\u043d\u0430\u0444\u043e\u0440\u043c\u044b \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u0441\u0435\u0440\u0438\u0438 \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438\u0441\u0435\u0442\u043a\u0438\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0440\u0435\u0436\u0438\u043c\u043f\u043e\u043b\u0443\u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u0438\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u0435\u0436\u0438\u043c\u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u0435\u0436\u0438\u043c\u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u043d\u0430\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0440\u0435\u0436\u0438\u043c\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u043a\u043e\u043b\u043e\u043d\u043a\u0438 \u0440\u0435\u0436\u0438\u043c\u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u044f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u0435\u0436\u0438\u043c\u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u044f\u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0440\u0435\u0436\u0438\u043c\u0441\u043f\u0438\u0441\u043a\u0430\u0437\u0430\u0434\u0430\u0447 \u0441\u043a\u0432\u043e\u0437\u043d\u043e\u0435\u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u0434\u0430\u043d\u043d\u044b\u0445\u0444\u043e\u0440\u043c\u044b\u0432\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u0442\u0435\u043a\u0441\u0442\u0430\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0448\u043a\u0430\u043b\u044b\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044e\u0449\u0435\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f\u0433\u0440\u0443\u043f\u043f\u0430\u043a\u043e\u043c\u0430\u043d\u0434 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u0442\u0438\u043b\u044c\u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0442\u0438\u043f\u0430\u043f\u043f\u0440\u043e\u043a\u0441\u0438\u043c\u0430\u0446\u0438\u0438\u043b\u0438\u043d\u0438\u0438\u0442\u0440\u0435\u043d\u0434\u0430\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u0435\u0434\u0438\u043d\u0438\u0446\u044b\u0448\u043a\u0430\u043b\u044b\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0442\u0438\u043f\u0438\u043c\u043f\u043e\u0440\u0442\u0430\u0441\u0435\u0440\u0438\u0439\u0441\u043b\u043e\u044f\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043b\u0438\u043d\u0438\u0438\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043b\u0438\u043d\u0438\u0438\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u043c\u0430\u0440\u043a\u0435\u0440\u0430\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043c\u0430\u0440\u043a\u0435\u0440\u0430\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u043e\u0431\u043b\u0430\u0441\u0442\u0438\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0441\u0435\u0440\u0438\u0438\u0441\u043b\u043e\u044f\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0442\u043e\u0447\u0435\u0447\u043d\u043e\u0433\u043e\u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0448\u043a\u0430\u043b\u044b\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u0435\u0433\u0435\u043d\u0434\u044b\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043f\u043e\u0438\u0441\u043a\u0430\u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043f\u0440\u043e\u0435\u043a\u0446\u0438\u0438\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u0442\u0438\u043f\u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432\u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u0442\u0438\u043f\u0440\u0430\u043c\u043a\u0438\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u0441\u0432\u044f\u0437\u0438\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b\u0433\u0430\u043d\u0442\u0430 \u0442\u0438\u043f\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u043f\u043e\u0441\u0435\u0440\u0438\u044f\u043c\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0442\u043e\u0447\u0435\u043a\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439\u043b\u0438\u043d\u0438\u0438 \u0442\u0438\u043f\u0441\u0442\u043e\u0440\u043e\u043d\u044b\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u0444\u043e\u0440\u043c\u044b\u043e\u0442\u0447\u0435\u0442\u0430 \u0442\u0438\u043f\u0448\u043a\u0430\u043b\u044b\u0440\u0430\u0434\u0430\u0440\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0444\u0430\u043a\u0442\u043e\u0440\u043b\u0438\u043d\u0438\u0438\u0442\u0440\u0435\u043d\u0434\u0430\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0444\u0438\u0433\u0443\u0440\u0430\u043a\u043d\u043e\u043f\u043a\u0438 \u0444\u0438\u0433\u0443\u0440\u044b\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u044f\u0432\u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0434\u043d\u044f\u0448\u043a\u0430\u043b\u044b\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0448\u0438\u0440\u0438\u043d\u0430\u043f\u043e\u0434\u0447\u0438\u043d\u0435\u043d\u043d\u044b\u0445\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0434\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f\u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u0438 \u0432\u0438\u0434\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f\u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0432\u0438\u0434\u0441\u0447\u0435\u0442\u0430 \u0432\u0438\u0434\u0442\u043e\u0447\u043a\u0438\u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430\u0431\u0438\u0437\u043d\u0435\u0441\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0430\u0433\u0440\u0435\u0433\u0430\u0442\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0433\u0440\u0443\u043f\u043f\u0438\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0440\u0435\u0436\u0438\u043c\u0430\u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0441\u0440\u0435\u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u0430\u0433\u0440\u0435\u0433\u0430\u0442\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0430\u0432\u0442\u043e\u0432\u0440\u0435\u043c\u044f \u0440\u0435\u0436\u0438\u043c\u0437\u0430\u043f\u0438\u0441\u0438\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0440\u0435\u0436\u0438\u043c\u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0430\u0432\u0442\u043e\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439\u043d\u043e\u043c\u0435\u0440\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0438\u0442\u043e\u0433\u043e\u0432\u043a\u043e\u043b\u043e\u043d\u043e\u043a\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0438\u0442\u043e\u0433\u043e\u0432\u0441\u0442\u0440\u043e\u043a\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u0435\u043a\u0441\u0442\u0430\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0447\u0442\u0435\u043d\u0438\u044f\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u0434\u0432\u0443\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0439\u043f\u0435\u0447\u0430\u0442\u0438 \u0442\u0438\u043f\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043e\u0431\u043b\u0430\u0441\u0442\u0438\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043a\u0443\u0440\u0441\u043e\u0440\u043e\u0432\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043b\u0438\u043d\u0438\u0438\u0440\u0438\u0441\u0443\u043d\u043a\u0430\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043b\u0438\u043d\u0438\u0438\u044f\u0447\u0435\u0439\u043a\u0438\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043b\u0438\u043d\u0438\u0439\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0442\u0438\u043f\u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0442\u0435\u043a\u0441\u0442\u0430\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u0440\u0438\u0441\u0443\u043d\u043a\u0430\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u0443\u0437\u043e\u0440\u0430\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u0444\u0430\u0439\u043b\u0430\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u043f\u0435\u0447\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u0438\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u0442\u0438\u043f\u0444\u0430\u0439\u043b\u0430\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u043e\u0431\u0445\u043e\u0434\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0438\u043f\u0437\u0430\u043f\u0438\u0441\u0438\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432\u0438\u0434\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044f\u043e\u0442\u0447\u0435\u0442\u0430 \u0442\u0438\u043f\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u0442\u0438\u043f\u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044f\u043e\u0442\u0447\u0435\u0442\u0430 \u0442\u0438\u043f\u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0438\u0442\u043e\u0433\u043e\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u043a\u0444\u0430\u0439\u043b\u0443 \u0440\u0435\u0436\u0438\u043c\u0434\u0438\u0430\u043b\u043e\u0433\u0430\u0432\u044b\u0431\u043e\u0440\u0430\u0444\u0430\u0439\u043b\u0430 \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f\u0444\u0430\u0439\u043b\u0430 \u0442\u0438\u043f\u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044f\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432\u0438\u0434\u0434\u0430\u043d\u043d\u044b\u0445\u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043c\u0435\u0442\u043e\u0434\u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0438\u043f\u0435\u0434\u0438\u043d\u0438\u0446\u044b\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u0432\u0440\u0435\u043c\u0435\u043d\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u0442\u0430\u0431\u043b\u0438\u0446\u044b\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0445\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u0438\u0441\u043a\u0430\u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0439 \u0442\u0438\u043f\u043a\u043e\u043b\u043e\u043d\u043a\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u0434\u0435\u0440\u0435\u0432\u043e\u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0442\u0438\u043f\u043a\u043e\u043b\u043e\u043d\u043a\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0438\u043f\u043a\u043e\u043b\u043e\u043d\u043a\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043e\u0431\u0449\u0430\u044f\u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0442\u0438\u043f\u043a\u043e\u043b\u043e\u043d\u043a\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u0438\u0441\u043a\u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0439 \u0442\u0438\u043f\u043a\u043e\u043b\u043e\u043d\u043a\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u0438\u0441\u043a\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439 \u0442\u0438\u043f\u043a\u043e\u043b\u043e\u043d\u043a\u0438\u043c\u043e\u0434\u0435\u043b\u0438\u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0430 \u0442\u0438\u043f\u043c\u0435\u0440\u044b\u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0442\u0441\u0435\u0447\u0435\u043d\u0438\u044f\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0438 \u0442\u0438\u043f\u043f\u043e\u043b\u044f\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0438\u0432\u0430\u043d\u0438\u044f\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0438\u0432\u0430\u043d\u0438\u044f\u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f\u0434\u0435\u0440\u0435\u0432\u0430\u0440\u0435\u0448\u0435\u043d\u0438\u0439 ws\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442xpathxs \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0437\u0430\u043f\u0438\u0441\u0438\u0434\u0430\u0442\u044bjson \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e\u0442\u0438\u043f\u0430xs \u0432\u0438\u0434\u0433\u0440\u0443\u043f\u043f\u044b\u043c\u043e\u0434\u0435\u043b\u0438xs \u0432\u0438\u0434\u0444\u0430\u0441\u0435\u0442\u0430xdto \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044fdom \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e\u0442\u0438\u043f\u0430xs \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e\u0442\u0438\u043f\u0430xs \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u0441\u0445\u0435\u043c\u044bxs \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u0435\u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438xs \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u0433\u0440\u0443\u043f\u043f\u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438xs \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430xs \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u0438xs \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0438\u043c\u0435\u043dxs \u043c\u0435\u0442\u043e\u0434\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044fxs \u043c\u043e\u0434\u0435\u043b\u044c\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043exs \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0442\u0438\u043f\u0430xml \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435\u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438xs \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u043f\u0440\u043e\u0431\u0435\u043b\u044c\u043d\u044b\u0445\u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432xs \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043exs \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044fxs \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u043e\u0442\u0431\u043e\u0440\u0430\u0443\u0437\u043b\u043e\u0432dom \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0441\u0442\u0440\u043e\u043ajson \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u0432\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435dom \u043f\u0440\u043e\u0431\u0435\u043b\u044c\u043d\u044b\u0435\u0441\u0438\u043c\u0432\u043e\u043b\u044bxml \u0442\u0438\u043f\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430xml \u0442\u0438\u043f\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044fjson \u0442\u0438\u043f\u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043exml \u0442\u0438\u043f\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044bxs \u0442\u0438\u043f\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438xml \u0442\u0438\u043f\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430domxpath \u0442\u0438\u043f\u0443\u0437\u043b\u0430dom \u0442\u0438\u043f\u0443\u0437\u043b\u0430xml \u0444\u043e\u0440\u043c\u0430xml \u0444\u043e\u0440\u043c\u0430\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044fxs \u0444\u043e\u0440\u043c\u0430\u0442\u0434\u0430\u0442\u044bjson \u044d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432json \u0432\u0438\u0434\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0438\u0442\u043e\u0433\u043e\u0432\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043f\u043e\u043b\u0435\u0439\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043f\u043e\u043b\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0441\u043a\u043e\u0433\u043e\u043e\u0441\u0442\u0430\u0442\u043a\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0432\u044b\u0432\u043e\u0434\u0430\u0442\u0435\u043a\u0441\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0433\u0440\u0443\u043f\u043f\u044b\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u043e\u0442\u0431\u043e\u0440\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u043f\u043e\u043b\u0435\u0439\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043c\u0430\u043a\u0435\u0442\u0430\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043c\u0430\u043a\u0435\u0442\u0430\u043e\u0431\u043b\u0430\u0441\u0442\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0441\u0442\u0430\u0442\u043a\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0442\u0435\u043a\u0441\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0441\u0432\u044f\u0437\u0438\u043d\u0430\u0431\u043e\u0440\u043e\u0432\u0434\u0430\u043d\u043d\u044b\u0445\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043b\u0435\u0433\u0435\u043d\u0434\u044b\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043e\u0442\u0431\u043e\u0440\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0430\u0432\u0442\u043e\u043f\u043e\u0437\u0438\u0446\u0438\u044f\u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432\u0432\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0433\u043e\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u0436\u043d\u043e\u0441\u0442\u044c\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u0442\u0435\u043a\u0441\u0442\u0430\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e\u0432\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u043d\u0435ascii\u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0442\u0435\u043a\u0441\u0442\u0430\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u044b \u0441\u0442\u0430\u0442\u0443\u0441\u0440\u0430\u0437\u0431\u043e\u0440\u0430\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438\u0437\u0430\u043f\u0438\u0441\u0438\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438\u0437\u0430\u043f\u0438\u0441\u0438\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0443\u0440\u043e\u0432\u0435\u043d\u044c\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0440\u0435\u0436\u0438\u043c\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0440\u0435\u0436\u0438\u043c\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0442\u0438\u043f\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430\u0438\u043c\u0435\u043d\u0444\u0430\u0439\u043b\u043e\u0432\u0432zip\u0444\u0430\u0439\u043b\u0435 \u043c\u0435\u0442\u043e\u0434\u0441\u0436\u0430\u0442\u0438\u044fzip \u043c\u0435\u0442\u043e\u0434\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044fzip \u0440\u0435\u0436\u0438\u043c\u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043f\u0443\u0442\u0435\u0439\u0444\u0430\u0439\u043b\u043e\u0432zip \u0440\u0435\u0436\u0438\u043c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438\u043f\u043e\u0434\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432zip \u0440\u0435\u0436\u0438\u043c\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f\u043f\u0443\u0442\u0435\u0439zip \u0443\u0440\u043e\u0432\u0435\u043d\u044c\u0441\u0436\u0430\u0442\u0438\u044fzip \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0435\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430\u043a\u0441\u0442\u0440\u043e\u043a\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u0432\u043f\u043e\u0442\u043e\u043a\u0435 \u043f\u043e\u0440\u044f\u0434\u043e\u043a\u0431\u0430\u0439\u0442\u043e\u0432 \u0440\u0435\u0436\u0438\u043c\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445\u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u0444\u043e\u043d\u043e\u0432\u043e\u0433\u043e\u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0430\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0433\u043e\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044fftp \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u043e\u0440\u044f\u0434\u043a\u0430\u0441\u0445\u0435\u043c\u044b\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0438\u043f\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u043c\u0438\u0441\u0445\u0435\u043c\u044b\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0438\u043f\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u0439\u0442\u043e\u0447\u043a\u0438\u0441\u0445\u0435\u043c\u044b\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0438\u043f\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0441\u0445\u0435\u043c\u044b\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0438\u043f\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0439\u0442\u0430\u0431\u043b\u0438\u0446\u044b\u0441\u0445\u0435\u043c\u044b\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0438\u043f\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0441\u0445\u0435\u043c\u044b\u0437\u0430\u043f\u0440\u043e\u0441\u0430 http\u043c\u0435\u0442\u043e\u0434 \u0430\u0432\u0442\u043e\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043e\u0431\u0449\u0435\u0433\u043e\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0430\u0432\u0442\u043e\u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043d\u043e\u043c\u0435\u0440\u0430\u0437\u0430\u0434\u0430\u0447\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u043a\u0430 \u0432\u0438\u0434\u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u0432\u0438\u0434\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0442\u0430\u0431\u043b\u0438\u0446\u044b\u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u044c\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0439\u043f\u0440\u0438\u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0431\u0430\u0437\u044b\u043f\u043b\u0430\u043d\u0430\u0432\u0438\u0434\u043e\u0432\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e\u0432\u044b\u0431\u043e\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043e\u0431\u0449\u0435\u0433\u043e\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043f\u043e\u0434\u0447\u0438\u043d\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e\u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445\u043e\u0431\u0449\u0435\u0433\u043e\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0435\u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0432\u0438\u0434\u0430\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0432\u0438\u0434\u0430\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0437\u0430\u0434\u0430\u0447\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u043b\u0430\u043d\u0430\u043e\u0431\u043c\u0435\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0441\u0447\u0435\u0442\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u0433\u0440\u0430\u043d\u0438\u0446\u044b\u043f\u0440\u0438\u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u043d\u043e\u043c\u0435\u0440\u0430\u0431\u0438\u0437\u043d\u0435\u0441\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u043d\u043e\u043c\u0435\u0440\u0430\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0441\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0445\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439\u043f\u043e\u0438\u0441\u043a\u043f\u0440\u0438\u0432\u0432\u043e\u0434\u0435\u043f\u043e\u0441\u0442\u0440\u043e\u043a\u0435 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c\u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438\u043e\u0431\u0449\u0435\u0433\u043e\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0434\u0430\u043d\u043d\u044b\u0445\u043e\u0431\u0449\u0435\u0433\u043e\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\u043e\u0431\u0449\u0435\u0433\u043e\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0440\u0435\u0436\u0438\u043c\u0430\u0432\u0442\u043e\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438\u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0440\u0435\u0436\u0438\u043c\u0437\u0430\u043f\u0438\u0441\u0438\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 \u0440\u0435\u0436\u0438\u043c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0436\u0438\u043c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0445\u0432\u044b\u0437\u043e\u0432\u043e\u0432\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b\u0438\u0432\u043d\u0435\u0448\u043d\u0438\u0445\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0440\u0435\u0436\u0438\u043c\u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0441\u0435\u0430\u043d\u0441\u043e\u0432 \u0440\u0435\u0436\u0438\u043c\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f\u0434\u0430\u043d\u043d\u044b\u0445\u0432\u044b\u0431\u043e\u0440\u0430\u043f\u0440\u0438\u0432\u0432\u043e\u0434\u0435\u043f\u043e\u0441\u0442\u0440\u043e\u043a\u0435 \u0440\u0435\u0436\u0438\u043c\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0440\u0435\u0436\u0438\u043c\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0440\u0435\u0436\u0438\u043c\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0435\u0440\u0438\u0438\u043a\u043e\u0434\u043e\u0432\u043f\u043b\u0430\u043d\u0430\u0432\u0438\u0434\u043e\u0432\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u0441\u0435\u0440\u0438\u0438\u043a\u043e\u0434\u043e\u0432\u043f\u043b\u0430\u043d\u0430\u0441\u0447\u0435\u0442\u043e\u0432 \u0441\u0435\u0440\u0438\u0438\u043a\u043e\u0434\u043e\u0432\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043f\u0440\u0438\u0432\u0432\u043e\u0434\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u043f\u043e\u0438\u0441\u043a\u0430\u0441\u0442\u0440\u043e\u043a\u0438\u043f\u0440\u0438\u0432\u0432\u043e\u0434\u0435\u043f\u043e\u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u0434\u0430\u043d\u043d\u044b\u0445\u0442\u0430\u0431\u043b\u0438\u0446\u044b\u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043a\u043e\u0434\u0430\u043f\u043b\u0430\u043d\u0430\u0432\u0438\u0434\u043e\u0432\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0442\u0438\u043f\u043a\u043e\u0434\u0430\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0442\u0438\u043f\u043c\u0430\u043a\u0435\u0442\u0430 \u0442\u0438\u043f\u043d\u043e\u043c\u0435\u0440\u0430\u0431\u0438\u0437\u043d\u0435\u0441\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0442\u0438\u043f\u043d\u043e\u043c\u0435\u0440\u0430\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043d\u043e\u043c\u0435\u0440\u0430\u0437\u0430\u0434\u0430\u0447\u0438 \u0442\u0438\u043f\u0444\u043e\u0440\u043c\u044b \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0439 \u0432\u0430\u0436\u043d\u043e\u0441\u0442\u044c\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430\u0444\u043e\u0440\u043c\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e\u0448\u0440\u0438\u0444\u0442\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439\u0434\u0430\u0442\u044b\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0438\u0434\u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0432\u0438\u0434\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0432\u0438\u0434\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e\u043f\u043e\u0438\u0441\u043a\u0430 \u0432\u0438\u0434\u0440\u0430\u043c\u043a\u0438 \u0432\u0438\u0434\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0446\u0432\u0435\u0442\u0430 \u0432\u0438\u0434\u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0448\u0440\u0438\u0444\u0442\u0430 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u0430\u044f\u0434\u043b\u0438\u043d\u0430 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439\u0437\u043d\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435byteordermark \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e\u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043a\u043b\u0430\u0432\u0438\u0448\u0430 \u043a\u043e\u0434\u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430\u0434\u0438\u0430\u043b\u043e\u0433\u0430 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430xbase \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430\u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0438\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043f\u0430\u043d\u0435\u043b\u0438\u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0434\u0438\u0430\u043b\u043e\u0433\u0430\u0432\u043e\u043f\u0440\u043e\u0441 \u0440\u0435\u0436\u0438\u043c\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f\u0444\u043e\u0440\u043c\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e\u043f\u043e\u0438\u0441\u043a\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\u0431\u0430\u0437\u044b\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u0432\u044b\u0431\u043e\u0440\u0430\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430windows \u0441\u043f\u043e\u0441\u043e\u0431\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0432\u043d\u0435\u0448\u043d\u0435\u0439\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0442\u0438\u043f\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0442\u0438\u043f\u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u043a\u043b\u0430\u0432\u0438\u0448\u0438enter \u0442\u0438\u043f\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438\u043e\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\u0431\u0430\u0437\u044b\u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0440\u043e\u0432\u0435\u043d\u044c\u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 \u0445\u0435\u0448\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0447\u0430\u0441\u0442\u0438\u0434\u0430\u0442\u044b",type:"com\u043e\u0431\u044a\u0435\u043a\u0442 ftp\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 http\u0437\u0430\u043f\u0440\u043e\u0441 http\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0442\u0432\u0435\u0442 http\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 ws\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f ws\u043f\u0440\u043e\u043a\u0441\u0438 xbase \u0430\u043d\u0430\u043b\u0438\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044fxs \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0443\u0444\u0435\u0440\u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435xs \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445\u0447\u0438\u0441\u0435\u043b \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0430\u044f\u0441\u0445\u0435\u043c\u0430 \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435\u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0430\u044f\u0441\u0445\u0435\u043c\u0430 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u043e\u0434\u0435\u043b\u0438xs \u0434\u0430\u043d\u043d\u044b\u0435\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u0435\u043d\u0434\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430\u0433\u0430\u043d\u0442\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0432\u044b\u0431\u043e\u0440\u0430\u0444\u0430\u0439\u043b\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0432\u044b\u0431\u043e\u0440\u0430\u0446\u0432\u0435\u0442\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0432\u044b\u0431\u043e\u0440\u0430\u0448\u0440\u0438\u0444\u0442\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044f\u0440\u0435\u0433\u043b\u0430\u043c\u0435\u043d\u0442\u043d\u043e\u0433\u043e\u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0434\u0438\u0430\u043b\u043e\u0433\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442dom \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442html \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044fxs \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0435\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u044cdom \u0437\u0430\u043f\u0438\u0441\u044cfastinfoset \u0437\u0430\u043f\u0438\u0441\u044chtml \u0437\u0430\u043f\u0438\u0441\u044cjson \u0437\u0430\u043f\u0438\u0441\u044cxml \u0437\u0430\u043f\u0438\u0441\u044czip\u0444\u0430\u0439\u043b\u0430 \u0437\u0430\u043f\u0438\u0441\u044c\u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u044c\u0442\u0435\u043a\u0441\u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u044c\u0443\u0437\u043b\u043e\u0432dom \u0437\u0430\u043f\u0440\u043e\u0441 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0435\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435openssl \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043f\u043e\u043b\u0435\u0439\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435\u0442\u0435\u043a\u0441\u0442\u0430 \u0438\u043c\u043f\u043e\u0440\u0442xs \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u0430 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0435\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439\u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u0440\u043e\u043a\u0441\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f\u0434\u043b\u044f\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044fxs \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430xs \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0442\u0435\u0440\u0430\u0442\u043e\u0440\u0443\u0437\u043b\u043e\u0432dom \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b\u0434\u0430\u0442\u044b \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b\u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b\u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b\u0447\u0438\u0441\u043b\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a\u043c\u0430\u043a\u0435\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043c\u0430\u043a\u0435\u0442\u0430\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0444\u043e\u0440\u043c\u0430\u0442\u043d\u043e\u0439\u0441\u0442\u0440\u043e\u043a\u0438 \u043b\u0438\u043d\u0438\u044f \u043c\u0430\u043a\u0435\u0442\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u043a\u0435\u0442\u043e\u0431\u043b\u0430\u0441\u0442\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u043a\u0435\u0442\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u0441\u043a\u0430xs \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043d\u0430\u0431\u043e\u0440\u0441\u0445\u0435\u043cxml \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438json \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0431\u0445\u043e\u0434\u0434\u0435\u0440\u0435\u0432\u0430dom \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430xs \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043d\u043e\u0442\u0430\u0446\u0438\u0438xs \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430xs \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0434\u043e\u0441\u0442\u0443\u043f\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043e\u0442\u043a\u0430\u0437\u0432\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e\u0444\u0430\u0439\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u0442\u0438\u043f\u043e\u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0433\u0440\u0443\u043f\u043f\u044b\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432xs \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0433\u0440\u0443\u043f\u043f\u044b\u043c\u043e\u0434\u0435\u043b\u0438xs \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u0438xs \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e\u0442\u0438\u043f\u0430xs \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e\u0442\u0438\u043f\u0430xs \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0442\u0438\u043f\u0430\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430dom \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044fxpathxs \u043e\u0442\u0431\u043e\u0440\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u044b\u0445\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0432\u044b\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0437\u0430\u043f\u0438\u0441\u0438json \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0437\u0430\u043f\u0438\u0441\u0438xml \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0447\u0442\u0435\u043d\u0438\u044fxml \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435xs \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u043f\u043e\u043b\u0435\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044cdom \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u043e\u0442\u0447\u0435\u0442\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u043e\u0442\u0447\u0435\u0442\u0430\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u0441\u0445\u0435\u043cxml \u043f\u043e\u0442\u043e\u043a \u043f\u043e\u0442\u043e\u043a\u0432\u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u0447\u0442\u0430 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0435\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435xsl \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043a\u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443xml \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0432\u044b\u0432\u043e\u0434\u0430\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445\u0432\u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0432\u044b\u0432\u043e\u0434\u0430\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445\u0432\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u044b\u0439\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0438\u043c\u0435\u043ddom \u0440\u0430\u043c\u043a\u0430 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u0440\u0435\u0433\u043b\u0430\u043c\u0435\u043d\u0442\u043d\u043e\u0433\u043e\u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0435\u0438\u043c\u044fxml \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0447\u0442\u0435\u043d\u0438\u044f\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0432\u043e\u0434\u043d\u0430\u044f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0432\u044f\u0437\u044c\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u0432\u044f\u0437\u044c\u043f\u043e\u0442\u0438\u043f\u0443 \u0441\u0432\u044f\u0437\u044c\u043f\u043e\u0442\u0438\u043f\u0443\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440xdto \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043a\u043b\u0438\u0435\u043d\u0442\u0430windows \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u0444\u0430\u0439\u043b \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b\u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0438\u0445\u0446\u0435\u043d\u0442\u0440\u043e\u0432windows \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b\u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0438\u0445\u0446\u0435\u043d\u0442\u0440\u043e\u0432\u0444\u0430\u0439\u043b \u0441\u0436\u0430\u0442\u0438\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435\u043a\u043b\u0430\u0432\u0438\u0448 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f\u0434\u0430\u0442\u0430\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439\u043f\u0435\u0440\u0438\u043e\u0434 \u0441\u0445\u0435\u043c\u0430xml \u0441\u0445\u0435\u043c\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0447\u043d\u044b\u0439\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0435\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0434\u0430\u043d\u043d\u044b\u0445xml \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0444\u0430\u0431\u0440\u0438\u043a\u0430xdto \u0444\u0430\u0439\u043b \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439\u043f\u043e\u0442\u043e\u043a \u0444\u0430\u0441\u0435\u0442\u0434\u043b\u0438\u043d\u044bxs \u0444\u0430\u0441\u0435\u0442\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430\u0440\u0430\u0437\u0440\u044f\u0434\u043e\u0432\u0434\u0440\u043e\u0431\u043d\u043e\u0439\u0447\u0430\u0441\u0442\u0438xs \u0444\u0430\u0441\u0435\u0442\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e\u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044fxs \u0444\u0430\u0441\u0435\u0442\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e\u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044fxs \u0444\u0430\u0441\u0435\u0442\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439\u0434\u043b\u0438\u043d\u044bxs \u0444\u0430\u0441\u0435\u0442\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e\u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044fxs \u0444\u0430\u0441\u0435\u0442\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e\u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044fxs \u0444\u0430\u0441\u0435\u0442\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439\u0434\u043b\u0438\u043d\u044bxs \u0444\u0430\u0441\u0435\u0442\u043e\u0431\u0440\u0430\u0437\u0446\u0430xs \u0444\u0430\u0441\u0435\u0442\u043e\u0431\u0449\u0435\u0433\u043e\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430\u0440\u0430\u0437\u0440\u044f\u0434\u043e\u0432xs \u0444\u0430\u0441\u0435\u0442\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044fxs \u0444\u0430\u0441\u0435\u0442\u043f\u0440\u043e\u0431\u0435\u043b\u044c\u043d\u044b\u0445\u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432xs \u0444\u0438\u043b\u044c\u0442\u0440\u0443\u0437\u043b\u043e\u0432dom \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f\u0441\u0442\u0440\u043e\u043a\u0430 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442xs \u0445\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0446\u0432\u0435\u0442 \u0447\u0442\u0435\u043d\u0438\u0435fastinfoset \u0447\u0442\u0435\u043d\u0438\u0435html \u0447\u0442\u0435\u043d\u0438\u0435json \u0447\u0442\u0435\u043d\u0438\u0435xml \u0447\u0442\u0435\u043d\u0438\u0435zip\u0444\u0430\u0439\u043b\u0430 \u0447\u0442\u0435\u043d\u0438\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0442\u0435\u043d\u0438\u0435\u0442\u0435\u043a\u0441\u0442\u0430 \u0447\u0442\u0435\u043d\u0438\u0435\u0443\u0437\u043b\u043e\u0432dom \u0448\u0440\u0438\u0444\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 comsafearray \u0434\u0435\u0440\u0435\u0432\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u043f\u0438\u0441\u043e\u043a\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u043c\u0430\u0441\u0441\u0438\u0432 ",literal:i},contains:[{className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,"meta-keyword":n+"\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0438\u0437\u0444\u0430\u0439\u043b\u0430 \u0432\u0435\u0431\u043a\u043b\u0438\u0435\u043d\u0442 \u0432\u043c\u0435\u0441\u0442\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0435\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442 \u043a\u043e\u043d\u0435\u0446\u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043a\u043b\u0438\u0435\u043d\u0442 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u043d\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0435\u043d\u0430\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0435\u043d\u0430\u0441\u0435\u0440\u0432\u0435\u0440\u0435\u0431\u0435\u0437\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0430\u0441\u0435\u0440\u0432\u0435\u0440\u0435\u0431\u0435\u0437\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u043f\u043e\u0441\u043b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 \u0442\u043e\u043b\u0441\u0442\u044b\u0439\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0431\u044b\u0447\u043d\u043e\u0435\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u043e\u043b\u0441\u0442\u044b\u0439\u043a\u043b\u0438\u0435\u043d\u0442\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0435\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u043e\u043d\u043a\u0438\u0439\u043a\u043b\u0438\u0435\u043d\u0442 "},contains:[s]},{className:"function",variants:[{begin:"\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430|\u0444\u0443\u043d\u043a\u0446\u0438\u044f",end:"\\)",keywords:"\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f"},{begin:"\u043a\u043e\u043d\u0435\u0446\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b|\u043a\u043e\u043d\u0435\u0446\u0444\u0443\u043d\u043a\u0446\u0438\u0438",keywords:"\u043a\u043e\u043d\u0435\u0446\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u043a\u043e\u043d\u0435\u0446\u0444\u0443\u043d\u043a\u0446\u0438\u0438"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"\u0437\u043d\u0430\u0447",literal:i},contains:[r,o,a]},s]},e.inherit(e.TITLE_MODE,{begin:t})]},s,{className:"symbol",begin:"~",end:";|:",excludeEnd:!0},r,o,a]}}},21290:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t={ruleDeclaration:/^[a-zA-Z][a-zA-Z0-9-]*/,unexpectedChars:/[!@#$^&',?+~`|:]/},i=e.COMMENT(/;/,/$/),r={className:"attribute",begin:n(t.ruleDeclaration,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:t.unexpectedChars,keywords:["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],contains:[r,i,{className:"symbol",begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},{className:"symbol",begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},{className:"symbol",begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},{className:"symbol",begin:/%[si]/},e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}},15187:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}function i(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r="("+n.map((function(e){return t(e)})).join("|")+")";return r}e.exports=function(e){var t=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:n(/"/,i.apply(void 0,t)),end:/"/,keywords:t,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}},24235:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t={className:"rest_arg",begin:/[.]{3}/,end:/[a-zA-Z_$][a-zA-Z0-9_$]*/,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:"as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",literal:"true false null undefined"},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"class",beginKeywords:"package",end:/\{/,contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.TITLE_MODE]},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{"meta-keyword":"import include"}},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t]},{begin:n(/:\s*/,/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/)}]},e.METHOD_GUARD],illegal:/#/}}},98985:function(e){e.exports=function(e){var t="[A-Za-z](_?[A-Za-z0-9.])*",n="[]\\{\\}%#'\"",i=e.COMMENT("--","$"),r={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:n,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:t,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:"abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",literal:"True False"},contains:[i,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:"\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",relevance:0},{className:"symbol",begin:"'"+t},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:n},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[i,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:n},r,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:n}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:n},r]}}},26591:function(e){e.exports=function(e){var t={className:"built_in",begin:"\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)"},n={className:"symbol",begin:"[a-zA-Z0-9_]+@"},i={className:"keyword",begin:"<",end:">",contains:[t,n]};return t.contains=[i],n.contains=[i],{name:"AngelScript",aliases:["asc"],keywords:"for in|0 break continue while do|0 return if else case switch namespace is cast or and xor not get|0 in inout|10 out override set|0 private public const default|0 final shared external mixin|10 enum typedef funcdef this super import from interface abstract|0 try catch protected explicit property",illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,n,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}},81957:function(e){e.exports=function(e){var t={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[t,{className:"number",begin:/:\d{1,5}/},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",{className:"number",begin:/[$%]\d+/}]},t,{className:"number",begin:/\d+/},e.QUOTE_STRING_MODE]}}],illegal:/\S/}}},23965:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}function i(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r="("+n.map((function(e){return t(e)})).join("|")+")";return r}e.exports=function(e){var t=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,t]},o=e.COMMENT(/--/,/$/),a=[o,e.COMMENT(/\(\*/,/\*\)/,{contains:["self",o]}),e.HASH_COMMENT_MODE];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},contains:[t,e.C_NUMBER_MODE,{className:"built_in",begin:n(/\b/,i.apply(void 0,[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/]),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:n(/\b/,i.apply(void 0,[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/]),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,r]}].concat(a),illegal:/\/\/|->|=>|\[\[/}}},6158:function(e){e.exports=function(e){var t="[A-Za-z_][0-9A-Za-z_]*",n={keyword:"if for while var new function do return void else break",literal:"BackSlash DoubleQuote false ForwardSlash Infinity NaN NewLine null PI SingleQuote Tab TextFormatting true undefined",built_in:"Abs Acos Angle Attachments Area AreaGeodetic Asin Atan Atan2 Average Bearing Boolean Buffer BufferGeodetic Ceil Centroid Clip Console Constrain Contains Cos Count Crosses Cut Date DateAdd DateDiff Day Decode DefaultValue Dictionary Difference Disjoint Distance DistanceGeodetic Distinct DomainCode DomainName Equals Exp Extent Feature FeatureSet FeatureSetByAssociation FeatureSetById FeatureSetByPortalItem FeatureSetByRelationshipName FeatureSetByTitle FeatureSetByUrl Filter First Floor Geometry GroupBy Guid HasKey Hour IIf IndexOf Intersection Intersects IsEmpty IsNan IsSelfIntersecting Length LengthGeodetic Log Max Mean Millisecond Min Minute Month MultiPartToSinglePart Multipoint NextSequenceValue Now Number OrderBy Overlaps Point Polygon Polyline Portal Pow Random Relate Reverse RingIsClockWise Round Second SetGeometry Sin Sort Sqrt Stdev Sum SymmetricDifference Tan Text Timestamp Today ToLocal Top Touches ToUTC TrackCurrentTime TrackGeometryWindow TrackIndex TrackStartTime TrackWindow TypeOf Union UrlEncode Variance Weekday When Within Year "},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},r={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},o={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,r]};r.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,i,e.REGEXP_MODE];var a=r.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},i,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:a}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:a}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}},47108:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(e){return i("(",e,")?")}function i(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t="boolean byte word String",r="KeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD ",o="setup loop runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put",a="DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW",s=function(e){var t,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",s="(decltype\\(auto\\)|"+n(a)+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",l={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:n(a)+e.IDENT_RE,relevance:0},f=n(a)+e.IDENT_RE+"\\s*\\(",p={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},g={className:"function.dispatch",relevance:0,keywords:p,begin:i(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,e.IDENT_RE,(t=/\s*\(/,i("(?=",t,")")))},v=[g,d,l,r,e.C_BLOCK_COMMENT_MODE,u,c],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:p,contains:v.concat([{begin:/\(/,end:/\)/,keywords:p,contains:v.concat(["self"]),relevance:0}]),relevance:0},y={className:"function",begin:"("+s+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:p,relevance:0},{begin:f,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,c,u,l,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,c,u,l]}]},l,r,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(m,y,g,v,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:p,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:p},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:p}}}(e),l=s.keywords;return l.keyword+=" "+t,l.literal+=" "+a,l.built_in+=" "+r,l._+=" "+o,s.name="Arduino",s.aliases=["ino"],s.supersetOf="cpp",s}},32436:function(e){e.exports=function(e){var t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}},66513:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:n(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],i=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:n(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}];return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ \t].+?([ \t]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},{className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"},{className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10}].concat([{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],t,i,[{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},{begin:"^'{3,}[ \\t]*$",relevance:10},{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}])}}},18830:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance",i="get set args call";return{name:"AspectJ",keywords:t,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:t+" "+i,excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:n(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:t,illegal:/["\[\]]/,contains:[{begin:n(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:t+" "+i,relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:t,excludeEnd:!0,contains:[{begin:n(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:t,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}},3189:function(e){e.exports=function(e){var t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}},93501:function(e){e.exports=function(e){var t={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},n={begin:"\\$[A-z0-9_]+"},i={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},r={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",built_in:"Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",literal:"True False And Null Not Or Default"},contains:[t,n,i,r,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"]},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[i,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},i,t]},{className:"symbol",begin:"@[A-z0-9_]+"},{className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[n,i,r]}]}]}}},92204:function(e){e.exports=function(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}},75014:function(e){e.exports=function(e){return{name:"Awk",keywords:{keyword:"BEGIN END if else while do for in break continue delete next nextfile function func exit|10"},contains:[{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}},85957:function(e){e.exports=function(e){return{name:"X++",aliases:["x++"],keywords:{keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:":",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]}]}}},6734:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]};Object.assign(t,{className:"variable",variants:[{begin:n(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});var r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,r]};r.contains.push(a);var s={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t]},l=e.SHEBANG({binary:"(".concat(["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|"),")"),relevance:10}),c={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[l,e.SHEBANG(),c,s,e.HASH_COMMENT_MODE,o,a,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},t]}}},41782:function(e){e.exports=function(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:"ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO HEX$ IF THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE WEND WIDTH WINDOW WRITE XOR"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}},58683:function(e){e.exports=function(e){return{name:"Backus\u2013Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}},39532:function(e){e.exports=function(e){var t={className:"literal",begin:/[+-]/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT("[^\\[\\]\\.,\\+\\-<> \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|--)/,contains:[t]},t]}}},16670:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(e){return i("(",e,")?")}function i(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t,r,o=function(e){var t,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",s="(decltype\\(auto\\)|"+n(a)+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",l={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:n(a)+e.IDENT_RE,relevance:0},f=n(a)+e.IDENT_RE+"\\s*\\(",p={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},g={className:"function.dispatch",relevance:0,keywords:p,begin:i(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,e.IDENT_RE,(t=/\s*\(/,i("(?=",t,")")))},v=[g,d,l,r,e.C_BLOCK_COMMENT_MODE,u,c],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:p,contains:v.concat([{begin:/\(/,end:/\)/,keywords:p,contains:v.concat(["self"]),relevance:0}]),relevance:0},y={className:"function",begin:"("+s+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:p,relevance:0},{begin:f,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,c,u,l,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,c,u,l]}]},l,r,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(m,y,g,v,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:p,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:p},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:p}}}(e);return o.disableAutodetect=!0,o.aliases=[],e.getLanguage("c")||(t=o.aliases).push.apply(t,["c","h"]),e.getLanguage("cpp")||(r=o.aliases).push.apply(r,["cc","c++","h++","hpp","hh","hxx","cxx"]),o}},7133:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(e){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.map((function(e){return t(e)})).join("")}("(",e,")?")}e.exports=function(e){var t=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",o="(decltype\\(auto\\)|"+n(r)+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",a={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},s={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},t,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:n(r)+e.IDENT_RE,relevance:0},d=n(r)+e.IDENT_RE+"\\s*\\(",h={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},f=[c,a,t,e.C_BLOCK_COMMENT_MODE,l,s],p={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:h,contains:f.concat([{begin:/\(/,end:/\)/,keywords:h,contains:f.concat(["self"]),relevance:0}]),relevance:0},g={className:"function",begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:h,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:h,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,s,l,a,{begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,s,l,a]}]},a,t,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:h,disableAutodetect:!0,illegal:"</",contains:[].concat(p,g,f,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:h,contains:["self",a]},{begin:e.IDENT_RE+"::",keywords:h},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,strings:s,keywords:h}}}},85546:function(e){e.exports=function(e){var t="div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},r={className:"string",begin:/(#\d+)+/},o={className:"function",beginKeywords:"procedure",end:/[:;]/,keywords:"procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[i,r]}].concat(n)},a={className:"class",begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",returnBegin:!0,contains:[e.TITLE_MODE,o]};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:t,literal:"false true"},illegal:/\/\*/,contains:[i,r,{className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},{className:"string",begin:'"',end:'"'},e.NUMBER_MODE,a,o]}}},84052:function(e){e.exports=function(e){return{name:"Cap\u2019n Proto",aliases:["capnp"],keywords:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},{className:"class",beginKeywords:"struct enum",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"class",beginKeywords:"interface",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]}]}}},87263:function(e){e.exports=function(e){var t="assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty",n={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},i=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[n]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return n.contains=i,{name:"Ceylon",keywords:{keyword:t+" shared abstract formal default actual variable late native deprecated final sealed annotation suppressWarnings small",meta:"doc by license see throws tagged"},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(i)}}},3270:function(e){e.exports=function(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:"if let in with where case of class instance otherwise implementation definition system module from import qualified as special code inline foreign export ccall stdcall generic derive infix infixl infixr",built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}},77217:function(e){e.exports=function(e){return{name:"Clojure REPL",contains:[{className:"meta",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}},27672:function(e){e.exports=function(e){var t="a-zA-Z_\\-!.?+*=<>&#'",n="["+t+"]["+t+"0-9/;:]*",i="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",r={$pattern:n,"builtin-name":i+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},o={begin:n,relevance:0},a={className:"number",begin:"[-+]?\\d+(\\.\\d+)?",relevance:0},s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b(true|false|nil)\b/},u={begin:"[\\[\\{]",end:"[\\]\\}]"},d={className:"comment",begin:"\\^"+n},h=e.COMMENT("\\^\\{","\\}"),f={className:"symbol",begin:"[:]{1,2}"+n},p={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},v={keywords:r,className:"name",begin:n,relevance:0,starts:g},m=[p,s,d,h,l,f,u,a,c,o],y={beginKeywords:i,lexemes:n,end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(m)};return p.contains=[e.COMMENT("comment",""),y,v,g],g.contains=m,u.contains=m,h.contains=[u],{name:"Clojure",aliases:["clj"],illegal:/\S/,contains:[p,s,d,h,l,f,u,a,c]}}},59469:function(e){e.exports=function(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}},84585:function(e){var t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],i=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);e.exports=function(e){var r,o={keyword:t.concat(["then","unless","until","loop","by","when","and","or","is","isnt","not"]).filter((r=["var","const","let","function","static"],function(e){return!r.includes(e)})),literal:n.concat(["yes","no","on","off"]),built_in:i.concat(["npm","print"])},a="[A-Za-z$_][0-9A-Za-z$_]*",s={className:"subst",begin:/#\{/,end:/\}/,keywords:o},l=[e.BINARY_NUMBER_MODE,e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[s,e.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+a},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];s.contains=l;var c=e.inherit(e.TITLE_MODE,{begin:a}),u="(\\(.*\\)\\s*)?\\B[-=]>",d={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:o,contains:["self"].concat(l)}]};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:o,illegal:/\/\*/,contains:l.concat([e.COMMENT("###","###"),e.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+a+"\\s*=\\s*"+u,end:"[-=]>",returnBegin:!0,contains:[c,d]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:u,end:"[-=]>",returnBegin:!0,contains:[d]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[c]},c]},{begin:a+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},90741:function(e){e.exports=function(e){return{name:"Coq",keywords:{keyword:"_|0 as at cofix else end exists exists2 fix for forall fun if IF in let match mod Prop return Set then Type using where with Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture Conjectures Constant constr Constraint Constructors Context Corollary CreateHintDb Cut Declare Defined Definition Delimit Dependencies Dependent Derive Drop eauto End Equality Eval Example Existential Existentials Existing Export exporting Extern Extract Extraction Fact Field Fields File Fixpoint Focus for From Function Functional Generalizable Global Goal Grab Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident Identity If Immediate Implicit Import Include Inductive Infix Info Initial Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation Obligations Opaque Open Optimize Options Parameter Parameters Parametric Path Paths pattern Polymorphic Preterm Print Printing Program Projections Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused Unfold Universe Universes Unset Unshelve using Variable Variables Variant Verbose Visibility where with",built_in:"abstract absurd admit after apply as assert assumption at auto autorewrite autounfold before bottom btauto by case case_eq cbn cbv change classical_left classical_right clear clearbody cofix compare compute congruence constr_eq constructor contradict contradiction cut cutrewrite cycle decide decompose dependent destruct destruction dintuition discriminate discrR do double dtauto eapply eassumption eauto ecase econstructor edestruct ediscriminate eelim eexact eexists einduction einjection eleft elim elimtype enough equality erewrite eright esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail field field_simplify field_simplify_eq first firstorder fix fold fourier functional generalize generalizing gfail give_up has_evar hnf idtac in induction injection instantiate intro intro_pattern intros intuition inversion inversion_clear is_evar is_var lapply lazy left lia lra move native_compute nia nsatz omega once pattern pose progress proof psatz quote record red refine reflexivity remember rename repeat replace revert revgoals rewrite rewrite_strat right ring ring_simplify rtauto set setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve specialize split split_Rabs split_Rmult stepl stepr subst sum swap symmetry tactic tauto time timeout top transitivity trivial try tryif unfold unify until using vm_compute with"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}},53979:function(e){e.exports=function(e){return{name:"Cach\xe9 Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}},84709:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(e){return i("(",e,")?")}function i(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",s="(decltype\\(auto\\)|"+n(a)+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",l={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:n(a)+e.IDENT_RE,relevance:0},f=n(a)+e.IDENT_RE+"\\s*\\(",p={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},g={className:"function.dispatch",relevance:0,keywords:p,begin:i(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,e.IDENT_RE,(t=/\s*\(/,i("(?=",t,")")))},v=[g,d,l,r,e.C_BLOCK_COMMENT_MODE,u,c],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:p,contains:v.concat([{begin:/\(/,end:/\)/,keywords:p,contains:v.concat(["self"]),relevance:0}]),relevance:0},y={className:"function",begin:"("+s+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:p,relevance:0},{begin:f,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,c,u,l,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,c,u,l]}]},l,r,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(m,y,g,v,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:p,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:p},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:p}}}},10815:function(e){e.exports=function(e){var t="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:"primitive rsc_template",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+t.split(" ").join("|")+")\\s+",keywords:t,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}},31843:function(e){e.exports=function(e){var t="(_?[ui](8|16|32|64|128))?",n="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",i="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",r={$pattern:"[a-zA-Z_]\\w*[!?=]?",keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},o={className:"subst",begin:/#\{/,end:/\}/,keywords:r},a={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:r};function s(e,t){var n=[{begin:e,end:t}];return n[0].contains=n,n}var l={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:s("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:s("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:s(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:s("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},c={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:s("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:s("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:s(/\{/,/\}/)},{begin:"%q<",end:">",contains:s("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},u={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},d=[a,l,c,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:"%r\\(",end:"\\)",contains:s("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:s("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:s(/\{/,/\}/)},{begin:"%r<",end:">",contains:s("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},u,{className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"})]},e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:i}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:i})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:i})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[l,{begin:n}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?(_?f(32|64))?(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return o.contains=d,a.contains=d.slice(1),{name:"Crystal",aliases:["cr"],keywords:r,contains:d}}},16385:function(e){e.exports=function(e){var t={keyword:["abstract","as","base","break","case","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]),built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],literal:["default","false","null","true"]},n=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),i={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},r={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},o=e.inherit(r,{illegal:/\n/}),a={className:"subst",begin:/\{/,end:/\}/,keywords:t},s=e.inherit(a,{illegal:/\n/}),l={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,s]},c={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},a]},u=e.inherit(c,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},s]});a.contains=[c,l,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE],s.contains=[u,l,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];var d={variants:[c,l,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h={begin:"<",end:">",contains:[{beginKeywords:"in out"},n]},f=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",p={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},d,i,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},n,h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[n,h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"meta-string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+f+"\\s+)+"+e.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:t,contains:[{beginKeywords:["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"].join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,h],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0,contains:[d,i,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},p]}}},45343:function(e){e.exports=function(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}},48575:function(e){var t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],r=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function a(e){return e?"string"===typeof e?e:e.source:null}function s(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return a(e)})).join("")}("(?=",e,")")}e.exports=function(e){var a=function(e){return{IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}}(e),l=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[e.C_BLOCK_COMMENT_MODE,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/},e.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:"::("+r.join("|")+")"}]},{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:":",end:"[;}]",contains:[a.HEXCOLOR,a.IMPORTANT,e.CSS_NUMBER_MODE].concat(l,[{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},{className:"built_in",begin:/[\w-]+(?=\()/}])},{begin:s(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:n.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"}].concat(l,[e.CSS_NUMBER_MODE])}]},{className:"selector-tag",begin:"\\b("+t.join("|")+")\\b"}]}}},33128:function(e){e.exports=function(e){var t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},n="((0|[1-9][\\d_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))",i="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",r={className:"number",begin:"\\b"+n+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},o={className:"number",begin:"\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|"+n+"(i|[fF]i|Li))",relevance:0},a={className:"string",begin:"'("+i+"|.)",end:"'",illegal:"."},s={className:"string",begin:'"',contains:[{begin:i,relevance:0}],end:'"[cwd]?'},l=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l,{className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},s,{className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},{className:"string",begin:"`",end:"`[cwd]?"},{className:"string",begin:'q"\\{',end:'\\}"'},o,r,a,{className:"meta",begin:"^#!",end:"$",relevance:5},{className:"meta",begin:"#(line)",end:"$",relevance:5},{className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"}]}}},75142:function(e){e.exports=function(e){var t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},i={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[e.C_NUMBER_MODE,i];var r=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=r.map((function(e){return"".concat(e,"?")}));return{name:"Dart",keywords:{keyword:"abstract as assert async await break case catch class const continue covariant default deferred do dynamic else enum export extends extension external factory false final finally for Function get hide if implements import in inferface is late library mixin new null on operator part required rethrow return set show static super switch sync this throw true try typedef var void while with yield",built_in:r.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}},86088:function(e){e.exports=function(e){var t="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure absolute reintroduce operator as is abstract alias assembler bitpacked break continue cppdecl cvar enumerator experimental platform deprecated unimplemented dynamic export far16 forward generic helper implements interrupt iochecks local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat specialize strict unaligned varargs ",n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},r={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"string",begin:/(#\d+)+/},a={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},s={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[r,o,i].concat(n)},i].concat(n)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[r,o,e.NUMBER_MODE,{className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},a,s,i].concat(n)}}},69682:function(e){e.exports=function(e){return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^--- +\d+,\d+ +----$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/^index/,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/},{begin:/^diff --git/,end:/$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}},95547:function(e){e.exports=function(e){var t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}}},1868:function(e){e.exports=function(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:{keyword:"IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}},71715:function(e){e.exports=function(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:"from maintainer expose env arg user onbuild stopsignal",contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}},58030:function(e){e.exports=function(e){var t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"if else goto for in do call exit not exist errorlevel defined equ neq lss leq gtr geq",built_in:"prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux shift cd dir echo setlocal endlocal set pause copy append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color comp compact convert date dir diskcomp diskcopy doskey erase fs find findstr format ftype graftabl help keyb label md mkdir mode more move path pause print popd pushd promt rd recover rem rename replace restore rmdir shift sort start subst time title tree type ver verify vol ping net ipconfig taskkill xcopy ren del"},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),t]},{className:"number",begin:"\\b\\d+",relevance:0},t]}}},87572:function(e){e.exports=function(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}},28829:function(e){e.exports=function(e){var t={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},n={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},i={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[e.inherit(t,{className:"meta-string"}),{className:"meta-string",begin:"<",end:">",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r={className:"variable",begin:/&[a-z\d_]*\b/},o={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},a={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},s={className:"params",begin:"<",end:">",contains:[n,r]},l={className:"class",begin:/[a-zA-Z_][a-zA-Z\d_@]*\s\{/,end:/[{;=]/,returnBegin:!0,excludeEnd:!0};return{name:"Device Tree",keywords:"",contains:[{className:"class",begin:"/\\s*\\{",end:/\};/,relevance:10,contains:[r,o,a,l,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t]},r,o,a,l,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,i,{begin:e.IDENT_RE+"::",keywords:""}]}}},8378:function(e){e.exports=function(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}},41755:function(e){e.exports=function(e){var t=e.COMMENT(/\(\*/,/\*\)/);return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,{className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}}},60718:function(e){e.exports=function(e){var t="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",n={$pattern:t,keyword:"and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote require import with|0"},i={className:"subst",begin:/#\{/,end:/\}/,keywords:n},r={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[1-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},o={className:"string",begin:"~[a-z](?=[/|([{<\"'])",contains:[{endsParent:!0,contains:[{contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]}]}]},a={className:"string",begin:"~[A-Z](?=[/|([{<\"'])",contains:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]},s={className:"string",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},l={className:"function",beginKeywords:"def defp defmacro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:t,endsParent:!0})]},c=e.inherit(l,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),u=[s,a,o,e.HASH_COMMENT_MODE,c,l,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[s,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:"symbol",begin:t+":(?!:)",relevance:0},r,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"},{begin:"->"},{begin:"("+e.RE_STARTERS_RE+")\\s*",contains:[e.HASH_COMMENT_MODE,{begin:/\/: (?=\d+\s*[,\]])/,relevance:0,contains:[r]},{className:"regexp",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}],relevance:0}];return i.contains=u,{name:"Elixir",keywords:n,contains:u}}},79280:function(e){e.exports=function(e){var t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]};return{name:"Elm",keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,i,{begin:/\{/,end:/\}/,contains:i.contains},t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},{className:"string",begin:"'\\\\?.",end:"'",illegal:"."},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}},91879:function(e){e.exports=function(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}},45217:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:n(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}},51160:function(e){e.exports=function(e){var t="[a-z'][a-zA-Z0-9_']*",n="("+t+":"+t+"|"+t+")",i={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},r=e.COMMENT("%","$"),o={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+t+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},u={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},d={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},h={beginKeywords:"fun receive if try case",end:"end",keywords:i};h.contains=[r,a,e.inherit(e.APOS_STRING_MODE,{className:""}),h,s,e.QUOTE_STRING_MODE,o,l,c,u,d];var f=[r,a,h,s,e.QUOTE_STRING_MODE,o,l,c,u,d];s.contains[1].contains=f,l.contains=f,d.contains[1].contains=f;var p={className:"params",begin:"\\(",end:"\\)",contains:f};return{name:"Erlang",aliases:["erl"],keywords:i,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[p,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:i,contains:f}},r,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"].map((function(e){return"".concat(e,"|1.5")})).join(" ")},contains:[p]},o,e.QUOTE_STRING_MODE,d,c,u,l,{begin:/\.$/}]}}},92680:function(e){e.exports=function(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:"ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST"},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}},13960:function(e){e.exports=function(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}},86985:function(e){e.exports=function(e){var t={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{literal:"true false",keyword:"case class def else enum if impl import in lat rel index let match namespace switch type yield with"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},{className:"string",variants:[{begin:'"',end:'"'}]},t,e.C_NUMBER_MODE]}}},28563:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,r=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:n(/\b\d+/,/\.(\d*)/,r,i)},{begin:n(/\b\d+/,r,i)},{begin:n(/\.\d+/,r,i)}],relevance:0},a={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{literal:".False. .True.",keyword:"kind do concurrent local shared while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then block endblock endassociate public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure impure integer real character complex logical codimension dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image sync change team co_broadcast co_max co_min co_sum co_reduce"},illegal:/\/\*/,contains:[{className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},a,{begin:/^C\s*=(?!=)/,relevance:0},t,o]}}},59333:function(e){e.exports=function(e){var t={begin:"<",end:">",contains:[e.inherit(e.TITLE_MODE,{begin:/'[a-zA-Z0-9_]+/})]};return{name:"F#",aliases:["fs"],keywords:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",illegal:/\/\*/,contains:[{className:"keyword",begin:/\b(yield|return|let|do)!/},{className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:'"""',end:'"""'},e.COMMENT("\\(\\*(\\s)","\\*\\)",{contains:["self"]}),{className:"class",beginKeywords:"type",end:"\\(|=|$",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE,t]},{className:"meta",begin:"\\[<",end:">\\]",relevance:10},{className:"symbol",begin:"\\B('[A-Za-z])\\b",contains:[e.BACKSLASH_ESCAPE]},e.C_LINE_COMMENT_MODE,e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),e.C_NUMBER_MODE]}}},3907:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t,i={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},r={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},o={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},a={begin:"/",end:"/",keywords:i,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},s=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,l={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[o,a,{className:"comment",begin:n(s,(t=n(/[ ]+/,s),n("(",t,")*"))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:i,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"meta-keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,l]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[l]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},r]},e.C_NUMBER_MODE,r]}}},16301:function(e){e.exports=function(e){var t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},n=e.COMMENT("@","@"),i={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[{className:"meta-string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},r={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},o=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,r]}],a={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},s=function(t,i,r){var s=e.inherit({className:"function",beginKeywords:t,end:i,excludeEnd:!0,contains:[].concat(o)},r||{});return s.contains.push(a),s.contains.push(e.C_NUMBER_MODE),s.contains.push(e.C_BLOCK_COMMENT_MODE),s.contains.push(n),s},l={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},u={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},l,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},d={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,l,u,c,"self"]};return u.contains.push(d),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,c,i,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s("proc keyword",";"),s("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,d]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},u,r]}}},77285:function(e){e.exports=function(e){var t={$pattern:"[A-Z_][A-Z0-9_.]*",keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},n=e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE}),i=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),n,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[n],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:t,contains:[{className:"meta",begin:"%"},{className:"meta",begin:"([O])([0-9]+)"}].concat(i)}}},72274:function(e){e.exports=function(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}},27216:function(e){e.exports=function(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}},776:function(e){e.exports=function(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:"begin end if then else while do for break continue with until repeat exit and or xor not return mod div switch case default var globalvar enum function constructor delete #macro #region #endregion",built_in:"is_real is_string is_array is_undefined is_int32 is_int64 is_ptr is_vec3 is_vec4 is_matrix is_bool is_method is_struct is_infinity is_nan is_numeric typeof variable_global_exists variable_global_get variable_global_set variable_instance_exists variable_instance_get variable_instance_set variable_instance_get_names variable_struct_exists variable_struct_get variable_struct_get_names variable_struct_names_count variable_struct_remove variable_struct_set array_delete array_insert array_length array_length_1d array_length_2d array_height_2d array_equals array_create array_copy array_pop array_push array_resize array_sort random random_range irandom irandom_range random_set_seed random_get_seed randomize randomise choose abs round floor ceil sign frac sqrt sqr exp ln log2 log10 sin cos tan arcsin arccos arctan arctan2 dsin dcos dtan darcsin darccos darctan darctan2 degtorad radtodeg power logn min max mean median clamp lerp dot_product dot_product_3d dot_product_normalised dot_product_3d_normalised dot_product_normalized dot_product_3d_normalized math_set_epsilon math_get_epsilon angle_difference point_distance_3d point_distance point_direction lengthdir_x lengthdir_y real string int64 ptr string_format chr ansi_char ord string_length string_byte_length string_pos string_copy string_char_at string_ord_at string_byte_at string_set_byte_at string_delete string_insert string_lower string_upper string_repeat string_letters string_digits string_lettersdigits string_replace string_replace_all string_count string_hash_to_newline clipboard_has_text clipboard_set_text clipboard_get_text date_current_datetime date_create_datetime date_valid_datetime date_inc_year date_inc_month date_inc_week date_inc_day date_inc_hour date_inc_minute date_inc_second date_get_year date_get_month date_get_week date_get_day date_get_hour date_get_minute date_get_second date_get_weekday date_get_day_of_year date_get_hour_of_year date_get_minute_of_year date_get_second_of_year date_year_span date_month_span date_week_span date_day_span date_hour_span date_minute_span date_second_span date_compare_datetime date_compare_date date_compare_time date_date_of date_time_of date_datetime_string date_date_string date_time_string date_days_in_month date_days_in_year date_leap_year date_is_today date_set_timezone date_get_timezone game_set_speed game_get_speed motion_set motion_add place_free place_empty place_meeting place_snapped move_random move_snap move_towards_point move_contact_solid move_contact_all move_outside_solid move_outside_all move_bounce_solid move_bounce_all move_wrap distance_to_point distance_to_object position_empty position_meeting path_start path_end mp_linear_step mp_potential_step mp_linear_step_object mp_potential_step_object mp_potential_settings mp_linear_path mp_potential_path mp_linear_path_object mp_potential_path_object mp_grid_create mp_grid_destroy mp_grid_clear_all mp_grid_clear_cell mp_grid_clear_rectangle mp_grid_add_cell mp_grid_get_cell mp_grid_add_rectangle mp_grid_add_instances mp_grid_path mp_grid_draw mp_grid_to_ds_grid collision_point collision_rectangle collision_circle collision_ellipse collision_line collision_point_list collision_rectangle_list collision_circle_list collision_ellipse_list collision_line_list instance_position_list instance_place_list point_in_rectangle point_in_triangle point_in_circle rectangle_in_rectangle rectangle_in_triangle rectangle_in_circle instance_find instance_exists instance_number instance_position instance_nearest instance_furthest instance_place instance_create_depth instance_create_layer instance_copy instance_change instance_destroy position_destroy position_change instance_id_get instance_deactivate_all instance_deactivate_object instance_deactivate_region instance_activate_all instance_activate_object instance_activate_region room_goto room_goto_previous room_goto_next room_previous room_next room_restart game_end game_restart game_load game_save game_save_buffer game_load_buffer event_perform event_user event_perform_object event_inherited show_debug_message show_debug_overlay debug_event debug_get_callstack alarm_get alarm_set font_texture_page_size keyboard_set_map keyboard_get_map keyboard_unset_map keyboard_check keyboard_check_pressed keyboard_check_released keyboard_check_direct keyboard_get_numlock keyboard_set_numlock keyboard_key_press keyboard_key_release keyboard_clear io_clear mouse_check_button mouse_check_button_pressed mouse_check_button_released mouse_wheel_up mouse_wheel_down mouse_clear draw_self draw_sprite draw_sprite_pos draw_sprite_ext draw_sprite_stretched draw_sprite_stretched_ext draw_sprite_tiled draw_sprite_tiled_ext draw_sprite_part draw_sprite_part_ext draw_sprite_general draw_clear draw_clear_alpha draw_point draw_line draw_line_width draw_rectangle draw_roundrect draw_roundrect_ext draw_triangle draw_circle draw_ellipse draw_set_circle_precision draw_arrow draw_button draw_path draw_healthbar draw_getpixel draw_getpixel_ext draw_set_colour draw_set_color draw_set_alpha draw_get_colour draw_get_color draw_get_alpha merge_colour make_colour_rgb make_colour_hsv colour_get_red colour_get_green colour_get_blue colour_get_hue colour_get_saturation colour_get_value merge_color make_color_rgb make_color_hsv color_get_red color_get_green color_get_blue color_get_hue color_get_saturation color_get_value merge_color screen_save screen_save_part draw_set_font draw_set_halign draw_set_valign draw_text draw_text_ext string_width string_height string_width_ext string_height_ext draw_text_transformed draw_text_ext_transformed draw_text_colour draw_text_ext_colour draw_text_transformed_colour draw_text_ext_transformed_colour draw_text_color draw_text_ext_color draw_text_transformed_color draw_text_ext_transformed_color draw_point_colour draw_line_colour draw_line_width_colour draw_rectangle_colour draw_roundrect_colour draw_roundrect_colour_ext draw_triangle_colour draw_circle_colour draw_ellipse_colour draw_point_color draw_line_color draw_line_width_color draw_rectangle_color draw_roundrect_color draw_roundrect_color_ext draw_triangle_color draw_circle_color draw_ellipse_color draw_primitive_begin draw_vertex draw_vertex_colour draw_vertex_color draw_primitive_end sprite_get_uvs font_get_uvs sprite_get_texture font_get_texture texture_get_width texture_get_height texture_get_uvs draw_primitive_begin_texture draw_vertex_texture draw_vertex_texture_colour draw_vertex_texture_color texture_global_scale surface_create surface_create_ext surface_resize surface_free surface_exists surface_get_width surface_get_height surface_get_texture surface_set_target surface_set_target_ext surface_reset_target surface_depth_disable surface_get_depth_disable draw_surface draw_surface_stretched draw_surface_tiled draw_surface_part draw_surface_ext draw_surface_stretched_ext draw_surface_tiled_ext draw_surface_part_ext draw_surface_general surface_getpixel surface_getpixel_ext surface_save surface_save_part surface_copy surface_copy_part application_surface_draw_enable application_get_position application_surface_enable application_surface_is_enabled display_get_width display_get_height display_get_orientation display_get_gui_width display_get_gui_height display_reset display_mouse_get_x display_mouse_get_y display_mouse_set display_set_ui_visibility window_set_fullscreen window_get_fullscreen window_set_caption window_set_min_width window_set_max_width window_set_min_height window_set_max_height window_get_visible_rects window_get_caption window_set_cursor window_get_cursor window_set_colour window_get_colour window_set_color window_get_color window_set_position window_set_size window_set_rectangle window_center window_get_x window_get_y window_get_width window_get_height window_mouse_get_x window_mouse_get_y window_mouse_set window_view_mouse_get_x window_view_mouse_get_y window_views_mouse_get_x window_views_mouse_get_y audio_listener_position audio_listener_velocity audio_listener_orientation audio_emitter_position audio_emitter_create audio_emitter_free audio_emitter_exists audio_emitter_pitch audio_emitter_velocity audio_emitter_falloff audio_emitter_gain audio_play_sound audio_play_sound_on audio_play_sound_at audio_stop_sound audio_resume_music audio_music_is_playing audio_resume_sound audio_pause_sound audio_pause_music audio_channel_num audio_sound_length audio_get_type audio_falloff_set_model audio_play_music audio_stop_music audio_master_gain audio_music_gain audio_sound_gain audio_sound_pitch audio_stop_all audio_resume_all audio_pause_all audio_is_playing audio_is_paused audio_exists audio_sound_set_track_position audio_sound_get_track_position audio_emitter_get_gain audio_emitter_get_pitch audio_emitter_get_x audio_emitter_get_y audio_emitter_get_z audio_emitter_get_vx audio_emitter_get_vy audio_emitter_get_vz audio_listener_set_position audio_listener_set_velocity audio_listener_set_orientation audio_listener_get_data audio_set_master_gain audio_get_master_gain audio_sound_get_gain audio_sound_get_pitch audio_get_name audio_sound_set_track_position audio_sound_get_track_position audio_create_stream audio_destroy_stream audio_create_sync_group audio_destroy_sync_group audio_play_in_sync_group audio_start_sync_group audio_stop_sync_group audio_pause_sync_group audio_resume_sync_group audio_sync_group_get_track_pos audio_sync_group_debug audio_sync_group_is_playing audio_debug audio_group_load audio_group_unload audio_group_is_loaded audio_group_load_progress audio_group_name audio_group_stop_all audio_group_set_gain audio_create_buffer_sound audio_free_buffer_sound audio_create_play_queue audio_free_play_queue audio_queue_sound audio_get_recorder_count audio_get_recorder_info audio_start_recording audio_stop_recording audio_sound_get_listener_mask audio_emitter_get_listener_mask audio_get_listener_mask audio_sound_set_listener_mask audio_emitter_set_listener_mask audio_set_listener_mask audio_get_listener_count audio_get_listener_info audio_system show_message show_message_async clickable_add clickable_add_ext clickable_change clickable_change_ext clickable_delete clickable_exists clickable_set_style show_question show_question_async get_integer get_string get_integer_async get_string_async get_login_async get_open_filename get_save_filename get_open_filename_ext get_save_filename_ext show_error highscore_clear highscore_add highscore_value highscore_name draw_highscore sprite_exists sprite_get_name sprite_get_number sprite_get_width sprite_get_height sprite_get_xoffset sprite_get_yoffset sprite_get_bbox_left sprite_get_bbox_right sprite_get_bbox_top sprite_get_bbox_bottom sprite_save sprite_save_strip sprite_set_cache_size sprite_set_cache_size_ext sprite_get_tpe sprite_prefetch sprite_prefetch_multi sprite_flush sprite_flush_multi sprite_set_speed sprite_get_speed_type sprite_get_speed font_exists font_get_name font_get_fontname font_get_bold font_get_italic font_get_first font_get_last font_get_size font_set_cache_size path_exists path_get_name path_get_length path_get_time path_get_kind path_get_closed path_get_precision path_get_number path_get_point_x path_get_point_y path_get_point_speed path_get_x path_get_y path_get_speed script_exists script_get_name timeline_add timeline_delete timeline_clear timeline_exists timeline_get_name timeline_moment_clear timeline_moment_add_script timeline_size timeline_max_moment object_exists object_get_name object_get_sprite object_get_solid object_get_visible object_get_persistent object_get_mask object_get_parent object_get_physics object_is_ancestor room_exists room_get_name sprite_set_offset sprite_duplicate sprite_assign sprite_merge sprite_add sprite_replace sprite_create_from_surface sprite_add_from_surface sprite_delete sprite_set_alpha_from_sprite sprite_collision_mask font_add_enable_aa font_add_get_enable_aa font_add font_add_sprite font_add_sprite_ext font_replace font_replace_sprite font_replace_sprite_ext font_delete path_set_kind path_set_closed path_set_precision path_add path_assign path_duplicate path_append path_delete path_add_point path_insert_point path_change_point path_delete_point path_clear_points path_reverse path_mirror path_flip path_rotate path_rescale path_shift script_execute object_set_sprite object_set_solid object_set_visible object_set_persistent object_set_mask room_set_width room_set_height room_set_persistent room_set_background_colour room_set_background_color room_set_view room_set_viewport room_get_viewport room_set_view_enabled room_add room_duplicate room_assign room_instance_add room_instance_clear room_get_camera room_set_camera asset_get_index asset_get_type file_text_open_from_string file_text_open_read file_text_open_write file_text_open_append file_text_close file_text_write_string file_text_write_real file_text_writeln file_text_read_string file_text_read_real file_text_readln file_text_eof file_text_eoln file_exists file_delete file_rename file_copy directory_exists directory_create directory_destroy file_find_first file_find_next file_find_close file_attributes filename_name filename_path filename_dir filename_drive filename_ext filename_change_ext file_bin_open file_bin_rewrite file_bin_close file_bin_position file_bin_size file_bin_seek file_bin_write_byte file_bin_read_byte parameter_count parameter_string environment_get_variable ini_open_from_string ini_open ini_close ini_read_string ini_read_real ini_write_string ini_write_real ini_key_exists ini_section_exists ini_key_delete ini_section_delete ds_set_precision ds_exists ds_stack_create ds_stack_destroy ds_stack_clear ds_stack_copy ds_stack_size ds_stack_empty ds_stack_push ds_stack_pop ds_stack_top ds_stack_write ds_stack_read ds_queue_create ds_queue_destroy ds_queue_clear ds_queue_copy ds_queue_size ds_queue_empty ds_queue_enqueue ds_queue_dequeue ds_queue_head ds_queue_tail ds_queue_write ds_queue_read ds_list_create ds_list_destroy ds_list_clear ds_list_copy ds_list_size ds_list_empty ds_list_add ds_list_insert ds_list_replace ds_list_delete ds_list_find_index ds_list_find_value ds_list_mark_as_list ds_list_mark_as_map ds_list_sort ds_list_shuffle ds_list_write ds_list_read ds_list_set ds_map_create ds_map_destroy ds_map_clear ds_map_copy ds_map_size ds_map_empty ds_map_add ds_map_add_list ds_map_add_map ds_map_replace ds_map_replace_map ds_map_replace_list ds_map_delete ds_map_exists ds_map_find_value ds_map_find_previous ds_map_find_next ds_map_find_first ds_map_find_last ds_map_write ds_map_read ds_map_secure_save ds_map_secure_load ds_map_secure_load_buffer ds_map_secure_save_buffer ds_map_set ds_priority_create ds_priority_destroy ds_priority_clear ds_priority_copy ds_priority_size ds_priority_empty ds_priority_add ds_priority_change_priority ds_priority_find_priority ds_priority_delete_value ds_priority_delete_min ds_priority_find_min ds_priority_delete_max ds_priority_find_max ds_priority_write ds_priority_read ds_grid_create ds_grid_destroy ds_grid_copy ds_grid_resize ds_grid_width ds_grid_height ds_grid_clear ds_grid_set ds_grid_add ds_grid_multiply ds_grid_set_region ds_grid_add_region ds_grid_multiply_region ds_grid_set_disk ds_grid_add_disk ds_grid_multiply_disk ds_grid_set_grid_region ds_grid_add_grid_region ds_grid_multiply_grid_region ds_grid_get ds_grid_get_sum ds_grid_get_max ds_grid_get_min ds_grid_get_mean ds_grid_get_disk_sum ds_grid_get_disk_min ds_grid_get_disk_max ds_grid_get_disk_mean ds_grid_value_exists ds_grid_value_x ds_grid_value_y ds_grid_value_disk_exists ds_grid_value_disk_x ds_grid_value_disk_y ds_grid_shuffle ds_grid_write ds_grid_read ds_grid_sort ds_grid_set ds_grid_get effect_create_below effect_create_above effect_clear part_type_create part_type_destroy part_type_exists part_type_clear part_type_shape part_type_sprite part_type_size part_type_scale part_type_orientation part_type_life part_type_step part_type_death part_type_speed part_type_direction part_type_gravity part_type_colour1 part_type_colour2 part_type_colour3 part_type_colour_mix part_type_colour_rgb part_type_colour_hsv part_type_color1 part_type_color2 part_type_color3 part_type_color_mix part_type_color_rgb part_type_color_hsv part_type_alpha1 part_type_alpha2 part_type_alpha3 part_type_blend part_system_create part_system_create_layer part_system_destroy part_system_exists part_system_clear part_system_draw_order part_system_depth part_system_position part_system_automatic_update part_system_automatic_draw part_system_update part_system_drawit part_system_get_layer part_system_layer part_particles_create part_particles_create_colour part_particles_create_color part_particles_clear part_particles_count part_emitter_create part_emitter_destroy part_emitter_destroy_all part_emitter_exists part_emitter_clear part_emitter_region part_emitter_burst part_emitter_stream external_call external_define external_free window_handle window_device matrix_get matrix_set matrix_build_identity matrix_build matrix_build_lookat matrix_build_projection_ortho matrix_build_projection_perspective matrix_build_projection_perspective_fov matrix_multiply matrix_transform_vertex matrix_stack_push matrix_stack_pop matrix_stack_multiply matrix_stack_set matrix_stack_clear matrix_stack_top matrix_stack_is_empty browser_input_capture os_get_config os_get_info os_get_language os_get_region os_lock_orientation display_get_dpi_x display_get_dpi_y display_set_gui_size display_set_gui_maximise display_set_gui_maximize device_mouse_dbclick_enable display_set_timing_method display_get_timing_method display_set_sleep_margin display_get_sleep_margin virtual_key_add virtual_key_hide virtual_key_delete virtual_key_show draw_enable_drawevent draw_enable_swf_aa draw_set_swf_aa_level draw_get_swf_aa_level draw_texture_flush draw_flush gpu_set_blendenable gpu_set_ztestenable gpu_set_zfunc gpu_set_zwriteenable gpu_set_lightingenable gpu_set_fog gpu_set_cullmode gpu_set_blendmode gpu_set_blendmode_ext gpu_set_blendmode_ext_sepalpha gpu_set_colorwriteenable gpu_set_colourwriteenable gpu_set_alphatestenable gpu_set_alphatestref gpu_set_alphatestfunc gpu_set_texfilter gpu_set_texfilter_ext gpu_set_texrepeat gpu_set_texrepeat_ext gpu_set_tex_filter gpu_set_tex_filter_ext gpu_set_tex_repeat gpu_set_tex_repeat_ext gpu_set_tex_mip_filter gpu_set_tex_mip_filter_ext gpu_set_tex_mip_bias gpu_set_tex_mip_bias_ext gpu_set_tex_min_mip gpu_set_tex_min_mip_ext gpu_set_tex_max_mip gpu_set_tex_max_mip_ext gpu_set_tex_max_aniso gpu_set_tex_max_aniso_ext gpu_set_tex_mip_enable gpu_set_tex_mip_enable_ext gpu_get_blendenable gpu_get_ztestenable gpu_get_zfunc gpu_get_zwriteenable gpu_get_lightingenable gpu_get_fog gpu_get_cullmode gpu_get_blendmode gpu_get_blendmode_ext gpu_get_blendmode_ext_sepalpha gpu_get_blendmode_src gpu_get_blendmode_dest gpu_get_blendmode_srcalpha gpu_get_blendmode_destalpha gpu_get_colorwriteenable gpu_get_colourwriteenable gpu_get_alphatestenable gpu_get_alphatestref gpu_get_alphatestfunc gpu_get_texfilter gpu_get_texfilter_ext gpu_get_texrepeat gpu_get_texrepeat_ext gpu_get_tex_filter gpu_get_tex_filter_ext gpu_get_tex_repeat gpu_get_tex_repeat_ext gpu_get_tex_mip_filter gpu_get_tex_mip_filter_ext gpu_get_tex_mip_bias gpu_get_tex_mip_bias_ext gpu_get_tex_min_mip gpu_get_tex_min_mip_ext gpu_get_tex_max_mip gpu_get_tex_max_mip_ext gpu_get_tex_max_aniso gpu_get_tex_max_aniso_ext gpu_get_tex_mip_enable gpu_get_tex_mip_enable_ext gpu_push_state gpu_pop_state gpu_get_state gpu_set_state draw_light_define_ambient draw_light_define_direction draw_light_define_point draw_light_enable draw_set_lighting draw_light_get_ambient draw_light_get draw_get_lighting shop_leave_rating url_get_domain url_open url_open_ext url_open_full get_timer achievement_login achievement_logout achievement_post achievement_increment achievement_post_score achievement_available achievement_show_achievements achievement_show_leaderboards achievement_load_friends achievement_load_leaderboard achievement_send_challenge achievement_load_progress achievement_reset achievement_login_status achievement_get_pic achievement_show_challenge_notifications achievement_get_challenges achievement_event achievement_show achievement_get_info cloud_file_save cloud_string_save cloud_synchronise ads_enable ads_disable ads_setup ads_engagement_launch ads_engagement_available ads_engagement_active ads_event ads_event_preload ads_set_reward_callback ads_get_display_height ads_get_display_width ads_move ads_interstitial_available ads_interstitial_display device_get_tilt_x device_get_tilt_y device_get_tilt_z device_is_keypad_open device_mouse_check_button device_mouse_check_button_pressed device_mouse_check_button_released device_mouse_x device_mouse_y device_mouse_raw_x device_mouse_raw_y device_mouse_x_to_gui device_mouse_y_to_gui iap_activate iap_status iap_enumerate_products iap_restore_all iap_acquire iap_consume iap_product_details iap_purchase_details facebook_init facebook_login facebook_status facebook_graph_request facebook_dialog facebook_logout facebook_launch_offerwall facebook_post_message facebook_send_invite facebook_user_id facebook_accesstoken facebook_check_permission facebook_request_read_permissions facebook_request_publish_permissions gamepad_is_supported gamepad_get_device_count gamepad_is_connected gamepad_get_description gamepad_get_button_threshold gamepad_set_button_threshold gamepad_get_axis_deadzone gamepad_set_axis_deadzone gamepad_button_count gamepad_button_check gamepad_button_check_pressed gamepad_button_check_released gamepad_button_value gamepad_axis_count gamepad_axis_value gamepad_set_vibration gamepad_set_colour gamepad_set_color os_is_paused window_has_focus code_is_compiled http_get http_get_file http_post_string http_request json_encode json_decode zip_unzip load_csv base64_encode base64_decode md5_string_unicode md5_string_utf8 md5_file os_is_network_connected sha1_string_unicode sha1_string_utf8 sha1_file os_powersave_enable analytics_event analytics_event_ext win8_livetile_tile_notification win8_livetile_tile_clear win8_livetile_badge_notification win8_livetile_badge_clear win8_livetile_queue_enable win8_secondarytile_pin win8_secondarytile_badge_notification win8_secondarytile_delete win8_livetile_notification_begin win8_livetile_notification_secondary_begin win8_livetile_notification_expiry win8_livetile_notification_tag win8_livetile_notification_text_add win8_livetile_notification_image_add win8_livetile_notification_end win8_appbar_enable win8_appbar_add_element win8_appbar_remove_element win8_settingscharm_add_entry win8_settingscharm_add_html_entry win8_settingscharm_add_xaml_entry win8_settingscharm_set_xaml_property win8_settingscharm_get_xaml_property win8_settingscharm_remove_entry win8_share_image win8_share_screenshot win8_share_file win8_share_url win8_share_text win8_search_enable win8_search_disable win8_search_add_suggestions win8_device_touchscreen_available win8_license_initialize_sandbox win8_license_trial_version winphone_license_trial_version winphone_tile_title winphone_tile_count winphone_tile_back_title winphone_tile_back_content winphone_tile_back_content_wide winphone_tile_front_image winphone_tile_front_image_small winphone_tile_front_image_wide winphone_tile_back_image winphone_tile_back_image_wide winphone_tile_background_colour winphone_tile_background_color winphone_tile_icon_image winphone_tile_small_icon_image winphone_tile_wide_content winphone_tile_cycle_images winphone_tile_small_background_image physics_world_create physics_world_gravity physics_world_update_speed physics_world_update_iterations physics_world_draw_debug physics_pause_enable physics_fixture_create physics_fixture_set_kinematic physics_fixture_set_density physics_fixture_set_awake physics_fixture_set_restitution physics_fixture_set_friction physics_fixture_set_collision_group physics_fixture_set_sensor physics_fixture_set_linear_damping physics_fixture_set_angular_damping physics_fixture_set_circle_shape physics_fixture_set_box_shape physics_fixture_set_edge_shape physics_fixture_set_polygon_shape physics_fixture_set_chain_shape physics_fixture_add_point physics_fixture_bind physics_fixture_bind_ext physics_fixture_delete physics_apply_force physics_apply_impulse physics_apply_angular_impulse physics_apply_local_force physics_apply_local_impulse physics_apply_torque physics_mass_properties physics_draw_debug physics_test_overlap physics_remove_fixture physics_set_friction physics_set_density physics_set_restitution physics_get_friction physics_get_density physics_get_restitution physics_joint_distance_create physics_joint_rope_create physics_joint_revolute_create physics_joint_prismatic_create physics_joint_pulley_create physics_joint_wheel_create physics_joint_weld_create physics_joint_friction_create physics_joint_gear_create physics_joint_enable_motor physics_joint_get_value physics_joint_set_value physics_joint_delete physics_particle_create physics_particle_delete physics_particle_delete_region_circle physics_particle_delete_region_box physics_particle_delete_region_poly physics_particle_set_flags physics_particle_set_category_flags physics_particle_draw physics_particle_draw_ext physics_particle_count physics_particle_get_data physics_particle_get_data_particle physics_particle_group_begin physics_particle_group_circle physics_particle_group_box physics_particle_group_polygon physics_particle_group_add_point physics_particle_group_end physics_particle_group_join physics_particle_group_delete physics_particle_group_count physics_particle_group_get_data physics_particle_group_get_mass physics_particle_group_get_inertia physics_particle_group_get_centre_x physics_particle_group_get_centre_y physics_particle_group_get_vel_x physics_particle_group_get_vel_y physics_particle_group_get_ang_vel physics_particle_group_get_x physics_particle_group_get_y physics_particle_group_get_angle physics_particle_set_group_flags physics_particle_get_group_flags physics_particle_get_max_count physics_particle_get_radius physics_particle_get_density physics_particle_get_damping physics_particle_get_gravity_scale physics_particle_set_max_count physics_particle_set_radius physics_particle_set_density physics_particle_set_damping physics_particle_set_gravity_scale network_create_socket network_create_socket_ext network_create_server network_create_server_raw network_connect network_connect_raw network_send_packet network_send_raw network_send_broadcast network_send_udp network_send_udp_raw network_set_timeout network_set_config network_resolve network_destroy buffer_create buffer_write buffer_read buffer_seek buffer_get_surface buffer_set_surface buffer_delete buffer_exists buffer_get_type buffer_get_alignment buffer_poke buffer_peek buffer_save buffer_save_ext buffer_load buffer_load_ext buffer_load_partial buffer_copy buffer_fill buffer_get_size buffer_tell buffer_resize buffer_md5 buffer_sha1 buffer_base64_encode buffer_base64_decode buffer_base64_decode_ext buffer_sizeof buffer_get_address buffer_create_from_vertex_buffer buffer_create_from_vertex_buffer_ext buffer_copy_from_vertex_buffer buffer_async_group_begin buffer_async_group_option buffer_async_group_end buffer_load_async buffer_save_async gml_release_mode gml_pragma steam_activate_overlay steam_is_overlay_enabled steam_is_overlay_activated steam_get_persona_name steam_initialised steam_is_cloud_enabled_for_app steam_is_cloud_enabled_for_account steam_file_persisted steam_get_quota_total steam_get_quota_free steam_file_write steam_file_write_file steam_file_read steam_file_delete steam_file_exists steam_file_size steam_file_share steam_is_screenshot_requested steam_send_screenshot steam_is_user_logged_on steam_get_user_steam_id steam_user_owns_dlc steam_user_installed_dlc steam_set_achievement steam_get_achievement steam_clear_achievement steam_set_stat_int steam_set_stat_float steam_set_stat_avg_rate steam_get_stat_int steam_get_stat_float steam_get_stat_avg_rate steam_reset_all_stats steam_reset_all_stats_achievements steam_stats_ready steam_create_leaderboard steam_upload_score steam_upload_score_ext steam_download_scores_around_user steam_download_scores steam_download_friends_scores steam_upload_score_buffer steam_upload_score_buffer_ext steam_current_game_language steam_available_languages steam_activate_overlay_browser steam_activate_overlay_user steam_activate_overlay_store steam_get_user_persona_name steam_get_app_id steam_get_user_account_id steam_ugc_download steam_ugc_create_item steam_ugc_start_item_update steam_ugc_set_item_title steam_ugc_set_item_description steam_ugc_set_item_visibility steam_ugc_set_item_tags steam_ugc_set_item_content steam_ugc_set_item_preview steam_ugc_submit_item_update steam_ugc_get_item_update_progress steam_ugc_subscribe_item steam_ugc_unsubscribe_item steam_ugc_num_subscribed_items steam_ugc_get_subscribed_items steam_ugc_get_item_install_info steam_ugc_get_item_update_info steam_ugc_request_item_details steam_ugc_create_query_user steam_ugc_create_query_user_ex steam_ugc_create_query_all steam_ugc_create_query_all_ex steam_ugc_query_set_cloud_filename_filter steam_ugc_query_set_match_any_tag steam_ugc_query_set_search_text steam_ugc_query_set_ranked_by_trend_days steam_ugc_query_add_required_tag steam_ugc_query_add_excluded_tag steam_ugc_query_set_return_long_description steam_ugc_query_set_return_total_only steam_ugc_query_set_allow_cached_response steam_ugc_send_query shader_set shader_get_name shader_reset shader_current shader_is_compiled shader_get_sampler_index shader_get_uniform shader_set_uniform_i shader_set_uniform_i_array shader_set_uniform_f shader_set_uniform_f_array shader_set_uniform_matrix shader_set_uniform_matrix_array shader_enable_corner_id texture_set_stage texture_get_texel_width texture_get_texel_height shaders_are_supported vertex_format_begin vertex_format_end vertex_format_delete vertex_format_add_position vertex_format_add_position_3d vertex_format_add_colour vertex_format_add_color vertex_format_add_normal vertex_format_add_texcoord vertex_format_add_textcoord vertex_format_add_custom vertex_create_buffer vertex_create_buffer_ext vertex_delete_buffer vertex_begin vertex_end vertex_position vertex_position_3d vertex_colour vertex_color vertex_argb vertex_texcoord vertex_normal vertex_float1 vertex_float2 vertex_float3 vertex_float4 vertex_ubyte4 vertex_submit vertex_freeze vertex_get_number vertex_get_buffer_size vertex_create_buffer_from_buffer vertex_create_buffer_from_buffer_ext push_local_notification push_get_first_local_notification push_get_next_local_notification push_cancel_local_notification skeleton_animation_set skeleton_animation_get skeleton_animation_mix skeleton_animation_set_ext skeleton_animation_get_ext skeleton_animation_get_duration skeleton_animation_get_frames skeleton_animation_clear skeleton_skin_set skeleton_skin_get skeleton_attachment_set skeleton_attachment_get skeleton_attachment_create skeleton_collision_draw_set skeleton_bone_data_get skeleton_bone_data_set skeleton_bone_state_get skeleton_bone_state_set skeleton_get_minmax skeleton_get_num_bounds skeleton_get_bounds skeleton_animation_get_frame skeleton_animation_set_frame draw_skeleton draw_skeleton_time draw_skeleton_instance draw_skeleton_collision skeleton_animation_list skeleton_skin_list skeleton_slot_data layer_get_id layer_get_id_at_depth layer_get_depth layer_create layer_destroy layer_destroy_instances layer_add_instance layer_has_instance layer_set_visible layer_get_visible layer_exists layer_x layer_y layer_get_x layer_get_y layer_hspeed layer_vspeed layer_get_hspeed layer_get_vspeed layer_script_begin layer_script_end layer_shader layer_get_script_begin layer_get_script_end layer_get_shader layer_set_target_room layer_get_target_room layer_reset_target_room layer_get_all layer_get_all_elements layer_get_name layer_depth layer_get_element_layer layer_get_element_type layer_element_move layer_force_draw_depth layer_is_draw_depth_forced layer_get_forced_depth layer_background_get_id layer_background_exists layer_background_create layer_background_destroy layer_background_visible layer_background_change layer_background_sprite layer_background_htiled layer_background_vtiled layer_background_stretch layer_background_yscale layer_background_xscale layer_background_blend layer_background_alpha layer_background_index layer_background_speed layer_background_get_visible layer_background_get_sprite layer_background_get_htiled layer_background_get_vtiled layer_background_get_stretch layer_background_get_yscale layer_background_get_xscale layer_background_get_blend layer_background_get_alpha layer_background_get_index layer_background_get_speed layer_sprite_get_id layer_sprite_exists layer_sprite_create layer_sprite_destroy layer_sprite_change layer_sprite_index layer_sprite_speed layer_sprite_xscale layer_sprite_yscale layer_sprite_angle layer_sprite_blend layer_sprite_alpha layer_sprite_x layer_sprite_y layer_sprite_get_sprite layer_sprite_get_index layer_sprite_get_speed layer_sprite_get_xscale layer_sprite_get_yscale layer_sprite_get_angle layer_sprite_get_blend layer_sprite_get_alpha layer_sprite_get_x layer_sprite_get_y layer_tilemap_get_id layer_tilemap_exists layer_tilemap_create layer_tilemap_destroy tilemap_tileset tilemap_x tilemap_y tilemap_set tilemap_set_at_pixel tilemap_get_tileset tilemap_get_tile_width tilemap_get_tile_height tilemap_get_width tilemap_get_height tilemap_get_x tilemap_get_y tilemap_get tilemap_get_at_pixel tilemap_get_cell_x_at_pixel tilemap_get_cell_y_at_pixel tilemap_clear draw_tilemap draw_tile tilemap_set_global_mask tilemap_get_global_mask tilemap_set_mask tilemap_get_mask tilemap_get_frame tile_set_empty tile_set_index tile_set_flip tile_set_mirror tile_set_rotate tile_get_empty tile_get_index tile_get_flip tile_get_mirror tile_get_rotate layer_tile_exists layer_tile_create layer_tile_destroy layer_tile_change layer_tile_xscale layer_tile_yscale layer_tile_blend layer_tile_alpha layer_tile_x layer_tile_y layer_tile_region layer_tile_visible layer_tile_get_sprite layer_tile_get_xscale layer_tile_get_yscale layer_tile_get_blend layer_tile_get_alpha layer_tile_get_x layer_tile_get_y layer_tile_get_region layer_tile_get_visible layer_instance_get_instance instance_activate_layer instance_deactivate_layer camera_create camera_create_view camera_destroy camera_apply camera_get_active camera_get_default camera_set_default camera_set_view_mat camera_set_proj_mat camera_set_update_script camera_set_begin_script camera_set_end_script camera_set_view_pos camera_set_view_size camera_set_view_speed camera_set_view_border camera_set_view_angle camera_set_view_target camera_get_view_mat camera_get_proj_mat camera_get_update_script camera_get_begin_script camera_get_end_script camera_get_view_x camera_get_view_y camera_get_view_width camera_get_view_height camera_get_view_speed_x camera_get_view_speed_y camera_get_view_border_x camera_get_view_border_y camera_get_view_angle camera_get_view_target view_get_camera view_get_visible view_get_xport view_get_yport view_get_wport view_get_hport view_get_surface_id view_set_camera view_set_visible view_set_xport view_set_yport view_set_wport view_set_hport view_set_surface_id gesture_drag_time gesture_drag_distance gesture_flick_speed gesture_double_tap_time gesture_double_tap_distance gesture_pinch_distance gesture_pinch_angle_towards gesture_pinch_angle_away gesture_rotate_time gesture_rotate_angle gesture_tap_count gesture_get_drag_time gesture_get_drag_distance gesture_get_flick_speed gesture_get_double_tap_time gesture_get_double_tap_distance gesture_get_pinch_distance gesture_get_pinch_angle_towards gesture_get_pinch_angle_away gesture_get_rotate_time gesture_get_rotate_angle gesture_get_tap_count keyboard_virtual_show keyboard_virtual_hide keyboard_virtual_status keyboard_virtual_height",literal:"self other all noone global local undefined pointer_invalid pointer_null path_action_stop path_action_restart path_action_continue path_action_reverse true false pi GM_build_date GM_version GM_runtime_version timezone_local timezone_utc gamespeed_fps gamespeed_microseconds ev_create ev_destroy ev_step ev_alarm ev_keyboard ev_mouse ev_collision ev_other ev_draw ev_draw_begin ev_draw_end ev_draw_pre ev_draw_post ev_keypress ev_keyrelease ev_trigger ev_left_button ev_right_button ev_middle_button ev_no_button ev_left_press ev_right_press ev_middle_press ev_left_release ev_right_release ev_middle_release ev_mouse_enter ev_mouse_leave ev_mouse_wheel_up ev_mouse_wheel_down ev_global_left_button ev_global_right_button ev_global_middle_button ev_global_left_press ev_global_right_press ev_global_middle_press ev_global_left_release ev_global_right_release ev_global_middle_release ev_joystick1_left ev_joystick1_right ev_joystick1_up ev_joystick1_down ev_joystick1_button1 ev_joystick1_button2 ev_joystick1_button3 ev_joystick1_button4 ev_joystick1_button5 ev_joystick1_button6 ev_joystick1_button7 ev_joystick1_button8 ev_joystick2_left ev_joystick2_right ev_joystick2_up ev_joystick2_down ev_joystick2_button1 ev_joystick2_button2 ev_joystick2_button3 ev_joystick2_button4 ev_joystick2_button5 ev_joystick2_button6 ev_joystick2_button7 ev_joystick2_button8 ev_outside ev_boundary ev_game_start ev_game_end ev_room_start ev_room_end ev_no_more_lives ev_animation_end ev_end_of_path ev_no_more_health ev_close_button ev_user0 ev_user1 ev_user2 ev_user3 ev_user4 ev_user5 ev_user6 ev_user7 ev_user8 ev_user9 ev_user10 ev_user11 ev_user12 ev_user13 ev_user14 ev_user15 ev_step_normal ev_step_begin ev_step_end ev_gui ev_gui_begin ev_gui_end ev_cleanup ev_gesture ev_gesture_tap ev_gesture_double_tap ev_gesture_drag_start ev_gesture_dragging ev_gesture_drag_end ev_gesture_flick ev_gesture_pinch_start ev_gesture_pinch_in ev_gesture_pinch_out ev_gesture_pinch_end ev_gesture_rotate_start ev_gesture_rotating ev_gesture_rotate_end ev_global_gesture_tap ev_global_gesture_double_tap ev_global_gesture_drag_start ev_global_gesture_dragging ev_global_gesture_drag_end ev_global_gesture_flick ev_global_gesture_pinch_start ev_global_gesture_pinch_in ev_global_gesture_pinch_out ev_global_gesture_pinch_end ev_global_gesture_rotate_start ev_global_gesture_rotating ev_global_gesture_rotate_end vk_nokey vk_anykey vk_enter vk_return vk_shift vk_control vk_alt vk_escape vk_space vk_backspace vk_tab vk_pause vk_printscreen vk_left vk_right vk_up vk_down vk_home vk_end vk_delete vk_insert vk_pageup vk_pagedown vk_f1 vk_f2 vk_f3 vk_f4 vk_f5 vk_f6 vk_f7 vk_f8 vk_f9 vk_f10 vk_f11 vk_f12 vk_numpad0 vk_numpad1 vk_numpad2 vk_numpad3 vk_numpad4 vk_numpad5 vk_numpad6 vk_numpad7 vk_numpad8 vk_numpad9 vk_divide vk_multiply vk_subtract vk_add vk_decimal vk_lshift vk_lcontrol vk_lalt vk_rshift vk_rcontrol vk_ralt mb_any mb_none mb_left mb_right mb_middle c_aqua c_black c_blue c_dkgray c_fuchsia c_gray c_green c_lime c_ltgray c_maroon c_navy c_olive c_purple c_red c_silver c_teal c_white c_yellow c_orange fa_left fa_center fa_right fa_top fa_middle fa_bottom pr_pointlist pr_linelist pr_linestrip pr_trianglelist pr_trianglestrip pr_trianglefan bm_complex bm_normal bm_add bm_max bm_subtract bm_zero bm_one bm_src_colour bm_inv_src_colour bm_src_color bm_inv_src_color bm_src_alpha bm_inv_src_alpha bm_dest_alpha bm_inv_dest_alpha bm_dest_colour bm_inv_dest_colour bm_dest_color bm_inv_dest_color bm_src_alpha_sat tf_point tf_linear tf_anisotropic mip_off mip_on mip_markedonly audio_falloff_none audio_falloff_inverse_distance audio_falloff_inverse_distance_clamped audio_falloff_linear_distance audio_falloff_linear_distance_clamped audio_falloff_exponent_distance audio_falloff_exponent_distance_clamped audio_old_system audio_new_system audio_mono audio_stereo audio_3d cr_default cr_none cr_arrow cr_cross cr_beam cr_size_nesw cr_size_ns cr_size_nwse cr_size_we cr_uparrow cr_hourglass cr_drag cr_appstart cr_handpoint cr_size_all spritespeed_framespersecond spritespeed_framespergameframe asset_object asset_unknown asset_sprite asset_sound asset_room asset_path asset_script asset_font asset_timeline asset_tiles asset_shader fa_readonly fa_hidden fa_sysfile fa_volumeid fa_directory fa_archive ds_type_map ds_type_list ds_type_stack ds_type_queue ds_type_grid ds_type_priority ef_explosion ef_ring ef_ellipse ef_firework ef_smoke ef_smokeup ef_star ef_spark ef_flare ef_cloud ef_rain ef_snow pt_shape_pixel pt_shape_disk pt_shape_square pt_shape_line pt_shape_star pt_shape_circle pt_shape_ring pt_shape_sphere pt_shape_flare pt_shape_spark pt_shape_explosion pt_shape_cloud pt_shape_smoke pt_shape_snow ps_distr_linear ps_distr_gaussian ps_distr_invgaussian ps_shape_rectangle ps_shape_ellipse ps_shape_diamond ps_shape_line ty_real ty_string dll_cdecl dll_stdcall matrix_view matrix_projection matrix_world os_win32 os_windows os_macosx os_ios os_android os_symbian os_linux os_unknown os_winphone os_tizen os_win8native os_wiiu os_3ds os_psvita os_bb10 os_ps4 os_xboxone os_ps3 os_xbox360 os_uwp os_tvos os_switch browser_not_a_browser browser_unknown browser_ie browser_firefox browser_chrome browser_safari browser_safari_mobile browser_opera browser_tizen browser_edge browser_windows_store browser_ie_mobile device_ios_unknown device_ios_iphone device_ios_iphone_retina device_ios_ipad device_ios_ipad_retina device_ios_iphone5 device_ios_iphone6 device_ios_iphone6plus device_emulator device_tablet display_landscape display_landscape_flipped display_portrait display_portrait_flipped tm_sleep tm_countvsyncs of_challenge_win of_challen ge_lose of_challenge_tie leaderboard_type_number leaderboard_type_time_mins_secs cmpfunc_never cmpfunc_less cmpfunc_equal cmpfunc_lessequal cmpfunc_greater cmpfunc_notequal cmpfunc_greaterequal cmpfunc_always cull_noculling cull_clockwise cull_counterclockwise lighttype_dir lighttype_point iap_ev_storeload iap_ev_product iap_ev_purchase iap_ev_consume iap_ev_restore iap_storeload_ok iap_storeload_failed iap_status_uninitialised iap_status_unavailable iap_status_loading iap_status_available iap_status_processing iap_status_restoring iap_failed iap_unavailable iap_available iap_purchased iap_canceled iap_refunded fb_login_default fb_login_fallback_to_webview fb_login_no_fallback_to_webview fb_login_forcing_webview fb_login_use_system_account fb_login_forcing_safari phy_joint_anchor_1_x phy_joint_anchor_1_y phy_joint_anchor_2_x phy_joint_anchor_2_y phy_joint_reaction_force_x phy_joint_reaction_force_y phy_joint_reaction_torque phy_joint_motor_speed phy_joint_angle phy_joint_motor_torque phy_joint_max_motor_torque phy_joint_translation phy_joint_speed phy_joint_motor_force phy_joint_max_motor_force phy_joint_length_1 phy_joint_length_2 phy_joint_damping_ratio phy_joint_frequency phy_joint_lower_angle_limit phy_joint_upper_angle_limit phy_joint_angle_limits phy_joint_max_length phy_joint_max_torque phy_joint_max_force phy_debug_render_aabb phy_debug_render_collision_pairs phy_debug_render_coms phy_debug_render_core_shapes phy_debug_render_joints phy_debug_render_obb phy_debug_render_shapes phy_particle_flag_water phy_particle_flag_zombie phy_particle_flag_wall phy_particle_flag_spring phy_particle_flag_elastic phy_particle_flag_viscous phy_particle_flag_powder phy_particle_flag_tensile phy_particle_flag_colourmixing phy_particle_flag_colormixing phy_particle_group_flag_solid phy_particle_group_flag_rigid phy_particle_data_flag_typeflags phy_particle_data_flag_position phy_particle_data_flag_velocity phy_particle_data_flag_colour phy_particle_data_flag_color phy_particle_data_flag_category achievement_our_info achievement_friends_info achievement_leaderboard_info achievement_achievement_info achievement_filter_all_players achievement_filter_friends_only achievement_filter_favorites_only achievement_type_achievement_challenge achievement_type_score_challenge achievement_pic_loaded achievement_show_ui achievement_show_profile achievement_show_leaderboard achievement_show_achievement achievement_show_bank achievement_show_friend_picker achievement_show_purchase_prompt network_socket_tcp network_socket_udp network_socket_bluetooth network_type_connect network_type_disconnect network_type_data network_type_non_blocking_connect network_config_connect_timeout network_config_use_non_blocking_socket network_config_enable_reliable_udp network_config_disable_reliable_udp buffer_fixed buffer_grow buffer_wrap buffer_fast buffer_vbuffer buffer_network buffer_u8 buffer_s8 buffer_u16 buffer_s16 buffer_u32 buffer_s32 buffer_u64 buffer_f16 buffer_f32 buffer_f64 buffer_bool buffer_text buffer_string buffer_surface_copy buffer_seek_start buffer_seek_relative buffer_seek_end buffer_generalerror buffer_outofspace buffer_outofbounds buffer_invalidtype text_type button_type input_type ANSI_CHARSET DEFAULT_CHARSET EASTEUROPE_CHARSET RUSSIAN_CHARSET SYMBOL_CHARSET SHIFTJIS_CHARSET HANGEUL_CHARSET GB2312_CHARSET CHINESEBIG5_CHARSET JOHAB_CHARSET HEBREW_CHARSET ARABIC_CHARSET GREEK_CHARSET TURKISH_CHARSET VIETNAMESE_CHARSET THAI_CHARSET MAC_CHARSET BALTIC_CHARSET OEM_CHARSET gp_face1 gp_face2 gp_face3 gp_face4 gp_shoulderl gp_shoulderr gp_shoulderlb gp_shoulderrb gp_select gp_start gp_stickl gp_stickr gp_padu gp_padd gp_padl gp_padr gp_axislh gp_axislv gp_axisrh gp_axisrv ov_friends ov_community ov_players ov_settings ov_gamegroup ov_achievements lb_sort_none lb_sort_ascending lb_sort_descending lb_disp_none lb_disp_numeric lb_disp_time_sec lb_disp_time_ms ugc_result_success ugc_filetype_community ugc_filetype_microtrans ugc_visibility_public ugc_visibility_friends_only ugc_visibility_private ugc_query_RankedByVote ugc_query_RankedByPublicationDate ugc_query_AcceptedForGameRankedByAcceptanceDate ugc_query_RankedByTrend ugc_query_FavoritedByFriendsRankedByPublicationDate ugc_query_CreatedByFriendsRankedByPublicationDate ugc_query_RankedByNumTimesReported ugc_query_CreatedByFollowedUsersRankedByPublicationDate ugc_query_NotYetRated ugc_query_RankedByTotalVotesAsc ugc_query_RankedByVotesUp ugc_query_RankedByTextSearch ugc_sortorder_CreationOrderDesc ugc_sortorder_CreationOrderAsc ugc_sortorder_TitleAsc ugc_sortorder_LastUpdatedDesc ugc_sortorder_SubscriptionDateDesc ugc_sortorder_VoteScoreDesc ugc_sortorder_ForModeration ugc_list_Published ugc_list_VotedOn ugc_list_VotedUp ugc_list_VotedDown ugc_list_WillVoteLater ugc_list_Favorited ugc_list_Subscribed ugc_list_UsedOrPlayed ugc_list_Followed ugc_match_Items ugc_match_Items_Mtx ugc_match_Items_ReadyToUse ugc_match_Collections ugc_match_Artwork ugc_match_Videos ugc_match_Screenshots ugc_match_AllGuides ugc_match_WebGuides ugc_match_IntegratedGuides ugc_match_UsableInGame ugc_match_ControllerBindings vertex_usage_position vertex_usage_colour vertex_usage_color vertex_usage_normal vertex_usage_texcoord vertex_usage_textcoord vertex_usage_blendweight vertex_usage_blendindices vertex_usage_psize vertex_usage_tangent vertex_usage_binormal vertex_usage_fog vertex_usage_depth vertex_usage_sample vertex_type_float1 vertex_type_float2 vertex_type_float3 vertex_type_float4 vertex_type_colour vertex_type_color vertex_type_ubyte4 layerelementtype_undefined layerelementtype_background layerelementtype_instance layerelementtype_oldtilemap layerelementtype_sprite layerelementtype_tilemap layerelementtype_particlesystem layerelementtype_tile tile_rotate tile_flip tile_mirror tile_index_mask kbv_type_default kbv_type_ascii kbv_type_url kbv_type_email kbv_type_numbers kbv_type_phone kbv_type_phone_name kbv_returnkey_default kbv_returnkey_go kbv_returnkey_google kbv_returnkey_join kbv_returnkey_next kbv_returnkey_route kbv_returnkey_search kbv_returnkey_send kbv_returnkey_yahoo kbv_returnkey_done kbv_returnkey_continue kbv_returnkey_emergency kbv_autocapitalize_none kbv_autocapitalize_words kbv_autocapitalize_sentences kbv_autocapitalize_characters",symbol:"argument_relative argument argument0 argument1 argument2 argument3 argument4 argument5 argument6 argument7 argument8 argument9 argument10 argument11 argument12 argument13 argument14 argument15 argument_count x|0 y|0 xprevious yprevious xstart ystart hspeed vspeed direction speed friction gravity gravity_direction path_index path_position path_positionprevious path_speed path_scale path_orientation path_endaction object_index id solid persistent mask_index instance_count instance_id room_speed fps fps_real current_time current_year current_month current_day current_weekday current_hour current_minute current_second alarm timeline_index timeline_position timeline_speed timeline_running timeline_loop room room_first room_last room_width room_height room_caption room_persistent score lives health show_score show_lives show_health caption_score caption_lives caption_health event_type event_number event_object event_action application_surface gamemaker_pro gamemaker_registered gamemaker_version error_occurred error_last debug_mode keyboard_key keyboard_lastkey keyboard_lastchar keyboard_string mouse_x mouse_y mouse_button mouse_lastbutton cursor_sprite visible sprite_index sprite_width sprite_height sprite_xoffset sprite_yoffset image_number image_index image_speed depth image_xscale image_yscale image_angle image_alpha image_blend bbox_left bbox_right bbox_top bbox_bottom layer background_colour background_showcolour background_color background_showcolor view_enabled view_current view_visible view_xview view_yview view_wview view_hview view_xport view_yport view_wport view_hport view_angle view_hborder view_vborder view_hspeed view_vspeed view_object view_surface_id view_camera game_id game_display_name game_project_name game_save_id working_directory temp_directory program_directory browser_width browser_height os_type os_device os_browser os_version display_aa async_load delta_time webgl_enabled event_data iap_data phy_rotation phy_position_x phy_position_y phy_angular_velocity phy_linear_velocity_x phy_linear_velocity_y phy_speed_x phy_speed_y phy_speed phy_angular_damping phy_linear_damping phy_bullet phy_fixed_rotation phy_active phy_mass phy_inertia phy_com_x phy_com_y phy_dynamic phy_kinematic phy_sleeping phy_collision_points phy_collision_x phy_collision_y phy_col_normal_x phy_col_normal_y phy_position_xprevious phy_position_yprevious"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},75196:function(e){e.exports=function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{name:"Go",aliases:["golang"],keywords:t,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,illegal:/["']/}]}]}}},98305:function(e){e.exports=function(e){return{name:"Golo",keywords:{keyword:"println readln print import module function local return let var while for foreach times in case when match with break continue augment augmentation each find filter reduce if then else otherwise try catch finally raise throw orIfNull DynamicObject|10 DynamicVariable struct Observable map set vector list array",literal:"true false null"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}},85909:function(e){e.exports=function(e){return{name:"Gradle",case_insensitive:!0,keywords:{keyword:"task project allprojects subprojects artifacts buildscript configurations dependencies repositories sourceSets description delete from into include exclude source classpath destinationDir includes options sourceCompatibility targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant def abstract break case catch continue default do else extends final finally for if implements instanceof native new private protected public return static switch synchronized throw throws transient try volatile while strictfp package import false null super this true antlrtask checkstyle codenarc copy boolean byte char class double float int interface long short void compile runTime file fileTree abs any append asList asWritable call collect compareTo count div dump each eachByte eachFile eachLine every find findAll flatten getAt getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter newReader newWriter next plus pop power previous print println push putAt read readBytes readLines reverse reverseEach round size sort splitEachLine step subMap times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader withStream withWriter withWriterAppend write writeLine"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}},88018:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(e){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.map((function(e){return t(e)})).join("")}("(?=",e,")")}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.variants=e,t}e.exports=function(e){var t="[A-Za-z0-9_$]+",r=i([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),o={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},a=i([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),s=i([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:"string"});return{name:"Groovy",keywords:{built_in:"this super",literal:"true false null",keyword:"byte short char int long boolean float double void def as in assert trait abstract static volatile transient public private protected synchronized final class interface enum if else for while switch case break default continue throw throws try catch finally implements extends new import package return instanceof"},contains:[e.SHEBANG({binary:"groovy",relevance:10}),r,s,o,a,{className:"class",beginKeywords:"class interface trait enum",end:/\{/,illegal:":",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:t+"[ \t]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[r,s,o,a,"self"]},{className:"symbol",begin:"^[ \t]*"+n(t+":"),excludeBegin:!0,end:t+":",relevance:0}],illegal:/#|<\//}}},2160:function(e){e.exports=function(e){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",!1,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",starts:{end:"\\n",subLanguage:"ruby"}},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,starts:{end:/\}/,subLanguage:"ruby"}}]}}},12778:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var i={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r=/\[\]|\[[^\]]+\]/,o=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,a=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return"("+n.map((function(e){return t(e)})).join("|")+")"}(/""|"[^"]+"/,/''|'[^']+'/,r,o),s=n(n("(",/\.|\.\/|\//,")?"),a,function(e){return n("(",e,")*")}(n(/(\.|\/)/,a))),l=n("(",r,"|",o,")(?==)"),c={begin:s,lexemes:/[\w.\/]+/},u=e.inherit(c,{keywords:{literal:["true","false","undefined","null"]}}),d={begin:/\(/,end:/\)/},h={className:"attr",begin:l,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,u,d]}}},f={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},h,u,d],returnEnd:!0},p=e.inherit(c,{className:"name",keywords:i,starts:e.inherit(f,{end:/\)/})});d.contains=[p];var g=e.inherit(c,{keywords:i,className:"name",starts:e.inherit(f,{end:/\}\}/})}),v=e.inherit(c,{keywords:i,className:"name"}),m=e.inherit(c,{className:"name",keywords:i,starts:e.inherit(f,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[g],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[v]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[g]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[v]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[m]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[m]}]}}},48862:function(e){e.exports=function(e){var t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"meta",begin:/\{-#/,end:/#-\}/},i={className:"meta",begin:"^#",end:"$"},r={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},o={begin:"\\(",end:"\\)",illegal:'"',contains:[n,i,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),t]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[o,t],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[o,t],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[r,o,t]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[n,r,o,{begin:/\{/,end:/\}/,contains:o.contains},t]},{beginKeywords:"default",end:"$",contains:[r,o,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[r,e.QUOTE_STRING_MODE,t]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},n,i,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,r,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}]}}},76174:function(e){e.exports=function(e){return{name:"Haxe",aliases:["hx"],keywords:{keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"},{className:"subst",begin:"\\$",end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@:",end:"$"},{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end error"}},{className:"type",begin:":[ \t]*",end:"[^A-Za-z0-9_ \t\\->]",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:":[ \t]*",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"new *",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"class",beginKeywords:"enum",end:"\\{",contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"abstract",end:"[\\{$]",contains:[{className:"type",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"from +",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"to +",end:"\\W",excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"class",begin:"\\b(class|interface) +",end:"[\\{$]",excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:"\\b(extends|implements) +",keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"function",beginKeywords:"function",end:"\\(",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE]}],illegal:/<\//}}},55765:function(e){e.exports=function(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}},65627:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}function i(e){var i={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r=/\[\]|\[[^\]]+\]/,o=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,a=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return"("+n.map((function(e){return t(e)})).join("|")+")"}(/""|"[^"]+"/,/''|'[^']+'/,r,o),s=n(n("(",/\.|\.\/|\//,")?"),a,function(e){return n("(",e,")*")}(n(/(\.|\/)/,a))),l=n("(",r,"|",o,")(?==)"),c={begin:s,lexemes:/[\w.\/]+/},u=e.inherit(c,{keywords:{literal:["true","false","undefined","null"]}}),d={begin:/\(/,end:/\)/},h={className:"attr",begin:l,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,u,d]}}},f={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},h,u,d],returnEnd:!0},p=e.inherit(c,{className:"name",keywords:i,starts:e.inherit(f,{end:/\)/})});d.contains=[p];var g=e.inherit(c,{keywords:i,className:"name",starts:e.inherit(f,{end:/\}\}/})}),v=e.inherit(c,{keywords:i,className:"name"}),m=e.inherit(c,{className:"name",keywords:i,starts:e.inherit(f,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[g],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[v]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[g]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[v]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[m]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[m]}]}}e.exports=function(e){var t=i(e);return t.name="HTMLbars",e.getLanguage("handlebars")&&(t.disableAutodetect=!0),t}},87053:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t="HTTP/(2|1\\.[01])",i={className:"attribute",begin:n("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},r=[i,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+t+" \\d{3})",end:/$/,contains:[{className:"meta",begin:t},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:r}},{begin:"(?=^[A-Z]+ (.*?) "+t+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:t},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:r}},e.inherit(i,{relevance:0})]}}},35219:function(e){e.exports=function(e){var t="a-zA-Z_\\-!.?+*=<>&#'",n="["+t+"]["+t+"0-9/;:]*",i={$pattern:n,"builtin-name":"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},r={begin:n,relevance:0},o={className:"number",begin:"[-+]?\\d+(\\.\\d+)?",relevance:0},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(";","$",{relevance:0}),l={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},c={begin:"[\\[\\{]",end:"[\\]\\}]"},u={className:"comment",begin:"\\^"+n},d=e.COMMENT("\\^\\{","\\}"),h={className:"symbol",begin:"[:]{1,2}"+n},f={begin:"\\(",end:"\\)"},p={endsWithParent:!0,relevance:0},g={className:"name",relevance:0,keywords:i,begin:n,starts:p},v=[f,a,u,d,s,h,c,o,l,r];return f.contains=[e.COMMENT("comment",""),g,p],p.contains=v,c.contains=v,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),f,a,u,d,s,h,c,o,l]}}},91510:function(e){e.exports=function(e){return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:"\\[",end:"\\]"}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:"\\[",end:"\\]",contains:["self"]}]}}},92839:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var i={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];var o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[r,a,o,s,i,"self"],relevance:0},c=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return"("+n.map((function(e){return t(e)})).join("|")+")"}(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:n(c,"(\\s*\\.\\s*",c,")*",n("(?=",/\s*=\s*[^#\s]/,")")),className:"attr",starts:{end:/$/,contains:[r,l,a,o,s,i]}}]}}},86411:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,r={className:"number",variants:[{begin:n(/\b\d+/,/\.(\d*)/,i,t)},{begin:n(/\b\d+/,i,t)},{begin:n(/\.\d+/,i,t)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),r]}}},472:function(e){e.exports=function(e){var t="[A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_!][A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_0-9]*",n={className:"number",begin:e.NUMBER_RE,relevance:0},i={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},r={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},o={variants:[{className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,r]},{className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,r]}]},a={$pattern:t,keyword:"and \u0438 else \u0438\u043d\u0430\u0447\u0435 endexcept endfinally endforeach \u043a\u043e\u043d\u0435\u0446\u0432\u0441\u0435 endif \u043a\u043e\u043d\u0435\u0446\u0435\u0441\u043b\u0438 endwhile \u043a\u043e\u043d\u0435\u0446\u043f\u043e\u043a\u0430 except exitfor finally foreach \u0432\u0441\u0435 if \u0435\u0441\u043b\u0438 in \u0432 not \u043d\u0435 or \u0438\u043b\u0438 try while \u043f\u043e\u043a\u0430 ",built_in:"SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE smHidden smMaximized smMinimized smNormal wmNo wmYes COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STAT\u0415 SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID RESULT_VAR_NAME RESULT_VAR_NAME_ENG AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ISBL_SYNTAX NO_SYNTAX XML_SYNTAX WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP atUser atGroup atRole aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty apBegin apEnd alLeft alRight asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways cirCommon cirRevoked ctSignature ctEncode ctSignatureEncode clbUnchecked clbChecked clbGrayed ceISB ceAlways ceNever ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob cfInternal cfDisplay ciUnspecified ciWrite ciRead ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton cctDate cctInteger cctNumeric cctPick cctReference cctString cctText cltInternal cltPrimary cltGUI dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange dssEdit dssInsert dssBrowse dssInActive dftDate dftShortDate dftDateTime dftTimeStamp dotDays dotHours dotMinutes dotSeconds dtkndLocal dtkndUTC arNone arView arEdit arFull ddaView ddaEdit emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ecotFile ecotProcess eaGet eaCopy eaCreate eaCreateStandardRoute edltAll edltNothing edltQuery essmText essmCard esvtLast esvtLastActive esvtSpecified edsfExecutive edsfArchive edstSQLServer edstFile edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile vsDefault vsDesign vsActive vsObsolete etNone etCertificate etPassword etCertificatePassword ecException ecWarning ecInformation estAll estApprovingOnly evtLast evtLastActive evtQuery fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch grhAuto grhX1 grhX2 grhX3 hltText hltRTF hltHTML iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG im8bGrayscale im24bRGB im1bMonochrome itBMP itJPEG itWMF itPNG ikhInformation ikhWarning ikhError ikhNoIcon icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler isShow isHide isByUserSettings jkJob jkNotice jkControlJob jtInner jtLeft jtRight jtFull jtCross lbpAbove lbpBelow lbpLeft lbpRight eltPerConnection eltPerUser sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac sfsItalic sfsStrikeout sfsNormal ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom vtEqual vtGreaterOrEqual vtLessOrEqual vtRange rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth rdWindow rdFile rdPrinter rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument reOnChange reOnChangeValues ttGlobal ttLocal ttUser ttSystem ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal smSelect smLike smCard stNone stAuthenticating stApproving sctString sctStream sstAnsiSort sstNaturalSort svtEqual svtContain soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown tarAbortByUser tarAbortByWorkflowException tvtAllWords tvtExactPhrase tvtAnyWord usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected btAnd btDetailAnd btOr btNotOr btOnly vmView vmSelect vmNavigation vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection wfatPrevious wfatNext wfatCancel wfatFinish wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 wfetQueryParameter wfetText wfetDelimiter wfetLabel wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal waAll waPerformers waManual wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection wiLow wiNormal wiHigh wrtSoft wrtHard wsInit wsRunning wsDone wsControlled wsAborted wsContinued wtmFull wtmFromCurrent wtmOnlyCurrent ",class:"AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work \u0412\u044b\u0437\u043e\u0432\u0421\u043f\u043e\u0441\u043e\u0431 \u0418\u043c\u044f\u041e\u0442\u0447\u0435\u0442\u0430 \u0420\u0435\u043a\u0432\u0417\u043d\u0430\u0447 ",literal:"null true false nil "},s={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:a,relevance:0},l={className:"type",begin:":[ \\t]*("+"IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ".trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},c={className:"variable",keywords:a,begin:t,relevance:0,contains:[l,s]},u="[A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_][A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_0-9]*\\(";return{name:"ISBL",case_insensitive:!0,keywords:a,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:u,end:"\\)$",returnBegin:!0,keywords:a,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:t,built_in:"AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory \u0410\u043d\u0430\u043b\u0438\u0437 \u0411\u0430\u0437\u0430\u0414\u0430\u043d\u043d\u044b\u0445 \u0411\u043b\u043e\u043a\u0415\u0441\u0442\u044c \u0411\u043b\u043e\u043a\u0415\u0441\u0442\u044c\u0420\u0430\u0441\u0448 \u0411\u043b\u043e\u043a\u0418\u043d\u0444\u043e \u0411\u043b\u043e\u043a\u0421\u043d\u044f\u0442\u044c \u0411\u043b\u043e\u043a\u0421\u043d\u044f\u0442\u044c\u0420\u0430\u0441\u0448 \u0411\u043b\u043e\u043a\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0412\u0432\u043e\u0434 \u0412\u0432\u043e\u0434\u041c\u0435\u043d\u044e \u0412\u0435\u0434\u0421 \u0412\u0435\u0434\u0421\u043f\u0440 \u0412\u0435\u0440\u0445\u043d\u044f\u044f\u0413\u0440\u0430\u043d\u0438\u0446\u0430\u041c\u0430\u0441\u0441\u0438\u0432\u0430 \u0412\u043d\u0435\u0448\u041f\u0440\u043e\u0433\u0440 \u0412\u043e\u0441\u0441\u0442 \u0412\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f\u041f\u0430\u043f\u043a\u0430 \u0412\u0440\u0435\u043c\u044f \u0412\u044b\u0431\u043e\u0440SQL \u0412\u044b\u0431\u0440\u0430\u0442\u044c\u0417\u0430\u043f\u0438\u0441\u044c \u0412\u044b\u0434\u0435\u043b\u0438\u0442\u044c\u0421\u0442\u0440 \u0412\u044b\u0437\u0432\u0430\u0442\u044c \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0412\u044b\u043f\u041f\u0440\u043e\u0433\u0440 \u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439\u0424\u0430\u0439\u043b \u0413\u0440\u0443\u043f\u043f\u0430\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0414\u0430\u0442\u0430\u0412\u0440\u0435\u043c\u044f\u0421\u0435\u0440\u0432 \u0414\u0435\u043d\u044c\u041d\u0435\u0434\u0435\u043b\u0438 \u0414\u0438\u0430\u043b\u043e\u0433\u0414\u0430\u041d\u0435\u0442 \u0414\u043b\u0438\u043d\u0430\u0421\u0442\u0440 \u0414\u043e\u0431\u041f\u043e\u0434\u0441\u0442\u0440 \u0415\u041f\u0443\u0441\u0442\u043e \u0415\u0441\u043b\u0438\u0422\u043e \u0415\u0427\u0438\u0441\u043b\u043e \u0417\u0430\u043c\u041f\u043e\u0434\u0441\u0442\u0440 \u0417\u0430\u043f\u0438\u0441\u044c\u0421\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0417\u043d\u0430\u0447\u041f\u043e\u043b\u044f\u0421\u043f\u0440 \u0418\u0414\u0422\u0438\u043f\u0421\u043f\u0440 \u0418\u0437\u0432\u043b\u0435\u0447\u044c\u0414\u0438\u0441\u043a \u0418\u0437\u0432\u043b\u0435\u0447\u044c\u0418\u043c\u044f\u0424\u0430\u0439\u043b\u0430 \u0418\u0437\u0432\u043b\u0435\u0447\u044c\u041f\u0443\u0442\u044c \u0418\u0437\u0432\u043b\u0435\u0447\u044c\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0418\u0437\u043c\u0414\u0430\u0442 \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0420\u0430\u0437\u043c\u0435\u0440\u041c\u0430\u0441\u0441\u0438\u0432\u0430 \u0418\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439\u041c\u0430\u0441\u0441\u0438\u0432\u0430 \u0418\u043c\u044f\u041e\u0440\u0433 \u0418\u043c\u044f\u041f\u043e\u043b\u044f\u0421\u043f\u0440 \u0418\u043d\u0434\u0435\u043a\u0441 \u0418\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0418\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0418\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0428\u0430\u0433 \u0418\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439\u0420\u0435\u0436\u0438\u043c \u0418\u0442\u043e\u0433\u0422\u0431\u043b\u0421\u043f\u0440 \u041a\u043e\u0434\u0412\u0438\u0434\u0412\u0435\u0434\u0421\u043f\u0440 \u041a\u043e\u0434\u0412\u0438\u0434\u0421\u043f\u0440\u041f\u043e\u0418\u0414 \u041a\u043e\u0434\u041f\u043eAnalit \u041a\u043e\u0434\u0421\u0438\u043c\u0432\u043e\u043b\u0430 \u041a\u043e\u0434\u0421\u043f\u0440 \u041a\u043e\u043b\u041f\u043e\u0434\u0441\u0442\u0440 \u041a\u043e\u043b\u041f\u0440\u043e\u043f \u041a\u043e\u043d\u041c\u0435\u0441 \u041a\u043e\u043d\u0441\u0442 \u041a\u043e\u043d\u0441\u0442\u0415\u0441\u0442\u044c \u041a\u043e\u043d\u0441\u0442\u0417\u043d\u0430\u0447 \u041a\u043e\u043d\u0422\u0440\u0430\u043d \u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0424\u0430\u0439\u043b \u041a\u043e\u043f\u0438\u044f\u0421\u0442\u0440 \u041a\u041f\u0435\u0440\u0438\u043e\u0434 \u041a\u0421\u0442\u0440\u0422\u0431\u043b\u0421\u043f\u0440 \u041c\u0430\u043a\u0441 \u041c\u0430\u043a\u0441\u0421\u0442\u0440\u0422\u0431\u043b\u0421\u043f\u0440 \u041c\u0430\u0441\u0441\u0438\u0432 \u041c\u0435\u043d\u044e \u041c\u0435\u043d\u044e\u0420\u0430\u0441\u0448 \u041c\u0438\u043d \u041d\u0430\u0431\u043e\u0440\u0414\u0430\u043d\u043d\u044b\u0445\u041d\u0430\u0439\u0442\u0438\u0420\u0430\u0441\u0448 \u041d\u0430\u0438\u043c\u0412\u0438\u0434\u0421\u043f\u0440 \u041d\u0430\u0438\u043c\u041f\u043eAnalit \u041d\u0430\u0438\u043c\u0421\u043f\u0440 \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u044b\u0421\u0442\u0440\u043e\u043a \u041d\u0430\u0447\u041c\u0435\u0441 \u041d\u0430\u0447\u0422\u0440\u0430\u043d \u041d\u0438\u0436\u043d\u044f\u044f\u0413\u0440\u0430\u043d\u0438\u0446\u0430\u041c\u0430\u0441\u0441\u0438\u0432\u0430 \u041d\u043e\u043c\u0435\u0440\u0421\u043f\u0440 \u041d\u041f\u0435\u0440\u0438\u043e\u0434 \u041e\u043a\u043d\u043e \u041e\u043a\u0440 \u041e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u041e\u0442\u043b\u0418\u043d\u0444\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u041e\u0442\u043b\u0418\u043d\u0444\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u041e\u0442\u0447\u0435\u0442 \u041e\u0442\u0447\u0435\u0442\u0410\u043d\u0430\u043b \u041e\u0442\u0447\u0435\u0442\u0418\u043d\u0442 \u041f\u0430\u043f\u043a\u0430\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u041f\u0430\u0443\u0437\u0430 \u041f\u0412\u044b\u0431\u043e\u0440SQL \u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c\u0424\u0430\u0439\u043b \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c\u0424\u0430\u0439\u043b \u041f\u043e\u0434\u0441\u0442\u0440 \u041f\u043e\u0438\u0441\u043a\u041f\u043e\u0434\u0441\u0442\u0440 \u041f\u043e\u0438\u0441\u043a\u0421\u0442\u0440 \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0418\u0414\u0422\u0430\u0431\u043b\u0438\u0446\u044b \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0418\u0414 \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0418\u043c\u044f \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0421\u0442\u0430\u0442\u0443\u0441 \u041f\u0440\u0435\u0440\u0432\u0430\u0442\u044c \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0417\u043d\u0430\u0447 \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c\u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0420\u0430\u0437\u0431\u0421\u0442\u0440 \u0420\u0430\u0437\u043d\u0412\u0440\u0435\u043c\u044f \u0420\u0430\u0437\u043d\u0414\u0430\u0442 \u0420\u0430\u0437\u043d\u0414\u0430\u0442\u0430\u0412\u0440\u0435\u043c\u044f \u0420\u0430\u0437\u043d\u0420\u0430\u0431\u0412\u0440\u0435\u043c\u044f \u0420\u0435\u0433\u0423\u0441\u0442\u0412\u0440\u0435\u043c \u0420\u0435\u0433\u0423\u0441\u0442\u0414\u0430\u0442 \u0420\u0435\u0433\u0423\u0441\u0442\u0427\u0441\u043b \u0420\u0435\u0434\u0422\u0435\u043a\u0441\u0442 \u0420\u0435\u0435\u0441\u0442\u0440\u0417\u0430\u043f\u0438\u0441\u044c \u0420\u0435\u0435\u0441\u0442\u0440\u0421\u043f\u0438\u0441\u043e\u043a\u0418\u043c\u0435\u043d\u041f\u0430\u0440\u0430\u043c \u0420\u0435\u0435\u0441\u0442\u0440\u0427\u0442\u0435\u043d\u0438\u0435 \u0420\u0435\u043a\u0432\u0421\u043f\u0440 \u0420\u0435\u043a\u0432\u0421\u043f\u0440\u041f\u0440 \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0421\u0435\u0439\u0447\u0430\u0441 \u0421\u0435\u0440\u0432\u0435\u0440 \u0421\u0435\u0440\u0432\u0435\u0440\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u0418\u0414 \u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0424\u0430\u0439\u043b\u0421\u0447\u0438\u0442\u0430\u0442\u044c \u0421\u0436\u041f\u0440\u043e\u0431 \u0421\u0438\u043c\u0432\u043e\u043b \u0421\u0438\u0441\u0442\u0435\u043c\u0430\u0414\u0438\u0440\u0435\u043a\u0442\u0443\u043c\u041a\u043e\u0434 \u0421\u0438\u0441\u0442\u0435\u043c\u0430\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0421\u0438\u0441\u0442\u0435\u043c\u0430\u041a\u043e\u0434 \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0414\u0438\u0430\u043b\u043e\u0433 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0414\u0438\u0430\u043b\u043e\u0433\u0412\u044b\u0431\u043e\u0440\u0430\u0418\u0437\u0414\u0432\u0443\u0445\u0421\u043f\u0438\u0441\u043a\u043e\u0432 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0414\u0438\u0430\u043b\u043e\u0433\u0412\u044b\u0431\u043e\u0440\u0430\u041f\u0430\u043f\u043a\u0438 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0414\u0438\u0430\u043b\u043e\u0433\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u044f\u0424\u0430\u0439\u043b\u0430 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0414\u0438\u0430\u043b\u043e\u0433\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f\u0424\u0430\u0439\u043b\u0430 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0417\u0430\u043f\u0440\u043e\u0441 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0418\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u041a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u0421\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u041c\u0430\u0441\u0441\u0438\u0432 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u041d\u0430\u0431\u043e\u0440\u0414\u0430\u043d\u043d\u044b\u0445 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u041e\u0431\u044a\u0435\u043a\u0442 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u041e\u0442\u0447\u0435\u0442 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u041f\u0430\u043f\u043a\u0443 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0421\u043f\u0438\u0441\u043e\u043a \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0421\u043f\u0438\u0441\u043e\u043a\u0421\u0442\u0440\u043e\u043a \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0421\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a \u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0421\u043e\u0437\u0434\u0421\u043f\u0440 \u0421\u043e\u0441\u0442\u0421\u043f\u0440 \u0421\u043e\u0445\u0440 \u0421\u043e\u0445\u0440\u0421\u043f\u0440 \u0421\u043f\u0438\u0441\u043e\u043a\u0421\u0438\u0441\u0442\u0435\u043c \u0421\u043f\u0440 \u0421\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a \u0421\u043f\u0440\u0411\u043b\u043e\u043a\u0415\u0441\u0442\u044c \u0421\u043f\u0440\u0411\u043b\u043e\u043a\u0421\u043d\u044f\u0442\u044c \u0421\u043f\u0440\u0411\u043b\u043e\u043a\u0421\u043d\u044f\u0442\u044c\u0420\u0430\u0441\u0448 \u0421\u043f\u0440\u0411\u043b\u043e\u043a\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0421\u043f\u0440\u0418\u0437\u043c\u041d\u0430\u0431\u0414\u0430\u043d \u0421\u043f\u0440\u041a\u043e\u0434 \u0421\u043f\u0440\u041d\u043e\u043c\u0435\u0440 \u0421\u043f\u0440\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0421\u043f\u0440\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0421\u043f\u0440\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0421\u043f\u0440\u041f\u0430\u0440\u0430\u043c \u0421\u043f\u0440\u041f\u043e\u043b\u0435\u0417\u043d\u0430\u0447 \u0421\u043f\u0440\u041f\u043e\u043b\u0435\u0418\u043c\u044f \u0421\u043f\u0440\u0420\u0435\u043a\u0432 \u0421\u043f\u0440\u0420\u0435\u043a\u0432\u0412\u0432\u0435\u0434\u0417\u043d \u0421\u043f\u0440\u0420\u0435\u043a\u0432\u041d\u043e\u0432\u044b\u0435 \u0421\u043f\u0440\u0420\u0435\u043a\u0432\u041f\u0440 \u0421\u043f\u0440\u0420\u0435\u043a\u0432\u041f\u0440\u0435\u0434\u0417\u043d \u0421\u043f\u0440\u0420\u0435\u043a\u0432\u0420\u0435\u0436\u0438\u043c \u0421\u043f\u0440\u0420\u0435\u043a\u0432\u0422\u0438\u043f\u0422\u0435\u043a\u0441\u0442 \u0421\u043f\u0440\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0421\u043f\u0440\u0421\u043e\u0441\u0442 \u0421\u043f\u0440\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0421\u043f\u0440\u0422\u0431\u043b\u0418\u0442\u043e\u0433 \u0421\u043f\u0440\u0422\u0431\u043b\u0421\u0442\u0440 \u0421\u043f\u0440\u0422\u0431\u043b\u0421\u0442\u0440\u041a\u043e\u043b \u0421\u043f\u0440\u0422\u0431\u043b\u0421\u0442\u0440\u041c\u0430\u043a\u0441 \u0421\u043f\u0440\u0422\u0431\u043b\u0421\u0442\u0440\u041c\u0438\u043d \u0421\u043f\u0440\u0422\u0431\u043b\u0421\u0442\u0440\u041f\u0440\u0435\u0434 \u0421\u043f\u0440\u0422\u0431\u043b\u0421\u0442\u0440\u0421\u043b\u0435\u0434 \u0421\u043f\u0440\u0422\u0431\u043b\u0421\u0442\u0440\u0421\u043e\u0437\u0434 \u0421\u043f\u0440\u0422\u0431\u043b\u0421\u0442\u0440\u0423\u0434 \u0421\u043f\u0440\u0422\u0435\u043a\u041f\u0440\u0435\u0434\u0441\u0442 \u0421\u043f\u0440\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0421\u0440\u0430\u0432\u043d\u0438\u0442\u044c\u0421\u0442\u0440 \u0421\u0442\u0440\u0412\u0435\u0440\u0445\u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0421\u0442\u0440\u041d\u0438\u0436\u043d\u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0421\u0442\u0440\u0422\u0431\u043b\u0421\u043f\u0440 \u0421\u0443\u043c\u041f\u0440\u043e\u043f \u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439\u041f\u0430\u0440\u0430\u043c \u0422\u0435\u043a\u0412\u0435\u0440\u0441\u0438\u044f \u0422\u0435\u043a\u041e\u0440\u0433 \u0422\u043e\u0447\u043d \u0422\u0440\u0430\u043d \u0422\u0440\u0430\u043d\u0441\u043b\u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f \u0423\u0434\u0430\u043b\u0438\u0442\u044c\u0422\u0430\u0431\u043b\u0438\u0446\u0443 \u0423\u0434\u0430\u043b\u0438\u0442\u044c\u0424\u0430\u0439\u043b \u0423\u0434\u0421\u043f\u0440 \u0423\u0434\u0421\u0442\u0440\u0422\u0431\u043b\u0421\u043f\u0440 \u0423\u0441\u0442 \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u0424\u0430\u0439\u043b\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u0421\u0447\u0438\u0442\u0430\u0442\u044c \u0424\u0430\u0439\u043b\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0424\u0430\u0439\u043b\u0412\u0440\u0435\u043c\u044f \u0424\u0430\u0439\u043b\u0412\u0440\u0435\u043c\u044f\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0424\u0430\u0439\u043b\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0424\u0430\u0439\u043b\u0417\u0430\u043d\u044f\u0442 \u0424\u0430\u0439\u043b\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0424\u0430\u0439\u043b\u0418\u0441\u043a\u0430\u0442\u044c \u0424\u0430\u0439\u043b\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0424\u0430\u0439\u043b\u041c\u043e\u0436\u043d\u043e\u0427\u0438\u0442\u0430\u0442\u044c \u0424\u0430\u0439\u043b\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0424\u0430\u0439\u043b\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0424\u0430\u0439\u043b\u041f\u0435\u0440\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0424\u0430\u0439\u043b\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0424\u0430\u0439\u043b\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0424\u0430\u0439\u043b\u0420\u0430\u0437\u043c\u0435\u0440 \u0424\u0430\u0439\u043b\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0424\u0430\u0439\u043b\u0421\u0441\u044b\u043b\u043a\u0430\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0424\u0430\u0439\u043b\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0424\u0430\u0439\u043b\u0421\u0447\u0438\u0442\u0430\u0442\u044c \u0424\u0430\u0439\u043b\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0424\u043c\u0442SQL\u0414\u0430\u0442 \u0424\u043c\u0442\u0414\u0430\u0442 \u0424\u043c\u0442\u0421\u0442\u0440 \u0424\u043c\u0442\u0427\u0441\u043b \u0424\u043e\u0440\u043c\u0430\u0442 \u0426\u041c\u0430\u0441\u0441\u0438\u0432\u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0426\u041d\u0430\u0431\u043e\u0440\u0414\u0430\u043d\u043d\u044b\u0445\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442 \u0426\u041f\u043e\u0434\u0441\u0442\u0440 "},begin:u,end:"\\(",returnBegin:!0,excludeEnd:!0},s,c,i,n,o]},l,s,c,i,n,o]}}},61956:function(e){var t="[0-9](_*[0-9])*",n="\\.(".concat(t,")"),i="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:"(\\b(".concat(t,")((").concat(n,")|\\.)?|(").concat(n,"))")+"[eE][+-]?(".concat(t,")[fFdD]?\\b")},{begin:"\\b(".concat(t,")((").concat(n,")[fFdD]?\\b|\\.([fFdD]\\b)?)")},{begin:"(".concat(n,")[fFdD]?\\b")},{begin:"\\b(".concat(t,")[fFdD]\\b")},{begin:"\\b0[xX]((".concat(i,")\\.?|(").concat(i,")?\\.(").concat(i,"))")+"[pP][+-]?(".concat(t,")[fFdD]?\\b")},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:"\\b0[xX](".concat(i,")[lL]?\\b")},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};e.exports=function(e){var t="[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*",n="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",i={className:"meta",begin:"@"+t,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},o=r;return{name:"Java",aliases:["jsp"],keywords:n,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface enum",end:/[{;=]/,excludeEnd:!0,relevance:1,keywords:"class interface enum",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"class",begin:"record\\s+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0,end:/[{;=]/,keywords:n,contains:[{beginKeywords:"record"},{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:n,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"([\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*(<[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*(\\s*,\\s*[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*)*>)?\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:n,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:n,relevance:0,contains:[i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o,i]}}},45418:function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],i=["true","false","null","undefined","NaN","Infinity"],r=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function o(e){return e?"string"===typeof e?e:e.source:null}function a(e){return s("(?=",e,")")}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.map((function(e){return o(e)})).join("");return i}e.exports=function(e){var o=t,l="<>",c="</>",u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:function(e,t){var n=e[0].length+e.index,i=e.input[n];"<"!==i?">"===i&&(function(e,t){var n=t.after,i="</"+e[0].slice(1);return-1!==e.input.indexOf(i,n)}(e,{after:n})||t.ignoreMatch()):t.ignoreMatch()}},d={$pattern:t,keyword:n,literal:i,built_in:r},h="[0-9](_?[0-9])*",f="\\.(".concat(h,")"),p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:"(\\b(".concat(p,")((").concat(f,")|\\.)?|(").concat(f,"))")+"[eE][+-]?(".concat(h,")\\b")},{begin:"\\b(".concat(p,")\\b((").concat(f,")\\b|\\.)?|(").concat(f,")\\b")},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},m={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,v],subLanguage:"css"}},_={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,v]},b={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},C=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,y,_,g,e.REGEXP_MODE];v.contains=C.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(C)});var S=[].concat(b,v.contains),w=S.concat([{begin:/\(/,end:/\)/,keywords:d,contains:["self"].concat(S)}]),k={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:w};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:w},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,y,_,b,g,{begin:s(/[{,\n]\s*/,a(s(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,o+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:o+a("\\s*:"),relevance:0}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[b,e.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:w}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:l,end:c},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:d,contains:["self",e.inherit(e.TITLE_MODE,{begin:o}),k],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[k,e.inherit(e.TITLE_MODE,{begin:o})]},{variants:[{begin:"\\."+o},{begin:"\\$"+o}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:o}),"self",k]},{begin:"(get|set)\\s+(?="+o+"\\()",end:/\{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:o}),{begin:/\(\)/},k]},{begin:/\$[(.]/}]}}},352:function(e){e.exports=function(e){var t={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"params",begin:/--[\w\-=\/]+/},{className:"function",begin:/:[\w\-.]+/,relevance:0},{className:"string",begin:/\B([\/.])[\w\-.\/=]+/},t]}}},27411:function(e){e.exports=function(e){var t={literal:"true false null"},n=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],i=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],r={end:",",endsWithParent:!0,excludeEnd:!0,contains:i,keywords:t},o={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(r,{begin:/:/})].concat(n),illegal:"\\S"},a={begin:"\\[",end:"\\]",contains:[e.inherit(r)],illegal:"\\S"};return i.push(o,a),n.forEach((function(e){i.push(e)})),{name:"JSON",contains:i,keywords:t,illegal:"\\S"}}},76183:function(e){e.exports=function(e){return{name:"Julia REPL",contains:[{className:"meta",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"},aliases:["jldoctest"]}]}}},91026:function(e){e.exports=function(e){var t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",n={$pattern:t,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","\u03c0","\u212f"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},i={keywords:n,illegal:/<\//},r={className:"subst",begin:/\$\(/,end:/\)/,keywords:n},o={className:"variable",begin:"\\$"+t},a={className:"string",contains:[e.BACKSLASH_ESCAPE,r,o],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},s={className:"string",contains:[e.BACKSLASH_ESCAPE,r,o],begin:"`",end:"`"},l={className:"meta",begin:"@"+t};return i.name="Julia",i.contains=[{className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},a,s,l,{className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]},e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],r.contains=i.contains,i}},93282:function(e){var t="[0-9](_*[0-9])*",n="\\.(".concat(t,")"),i="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:"(\\b(".concat(t,")((").concat(n,")|\\.)?|(").concat(n,"))")+"[eE][+-]?(".concat(t,")[fFdD]?\\b")},{begin:"\\b(".concat(t,")((").concat(n,")[fFdD]?\\b|\\.([fFdD]\\b)?)")},{begin:"(".concat(n,")[fFdD]?\\b")},{begin:"\\b(".concat(t,")[fFdD]\\b")},{begin:"\\b0[xX]((".concat(i,")\\.?|(").concat(i,")?\\.(").concat(i,"))")+"[pP][+-]?(".concat(t,")[fFdD]?\\b")},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:"\\b0[xX](".concat(i,")[lL]?\\b")},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};e.exports=function(e){var t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(a);var s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"meta-string"})]}]},c=r,u=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},h=d;return h.variants[1].contains=[d],d.variants[1].contains=[h],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,u,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,s,l,a,e.C_NUMBER_MODE]},u]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},s,l]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},c]}}},70699:function(e){e.exports=function(e){var t="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",i="\\]|\\?>",r={$pattern:"[a-zA-Z_][\\w.]*|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},o=e.COMMENT("\x3c!--","--\x3e",{relevance:0}),a={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[o]}},s={className:"meta",begin:"\\[/noprocess|"+n},l={className:"symbol",begin:"'[a-zA-Z_][\\w.]*'"},c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$][a-zA-Z_][\\w.]*"},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)[a-zA-Z_][\\w.]*",relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[l]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z_][\\w.]*(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:r,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[o]}},a,s,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:r,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[o]}},a,s].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}}},9941:function(e,t,n){var i=n(861).default;function r(e){return e?"string"===typeof e?e:e.source:null}function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i="("+t.map((function(e){return r(e)})).join("|")+")";return i}e.exports=function(e){var t,n=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],r=[{className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:o.apply(void 0,i(["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map((function(e){return e+"(?![a-zA-Z@:_])"}))))},{endsParent:!0,begin:new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map((function(e){return e+"(?![a-zA-Z:_])"})).join("|"))},{endsParent:!0,variants:n},{endsParent:!0,relevance:0,variants:[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}]}]},{className:"params",relevance:0,begin:/#+\d?/},{variants:n},{className:"built_in",relevance:0,begin:/[$&^_]/},{className:"meta",begin:"% !TeX",end:"$",relevance:10},e.COMMENT("%","$",{relevance:0})],a={begin:/\{/,end:/\}/,relevance:0,contains:["self"].concat(r)},s=e.inherit(a,{relevance:0,endsParent:!0,contains:[a].concat(r)}),l={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[a].concat(r)},c={begin:/\s+/,relevance:0},u=[s],d=[l],h=function(e,t){return{contains:[c],starts:{relevance:0,contains:e,starts:t}}},f=function(e,t){return{begin:"\\\\"+e+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+e},relevance:0,contains:[c],starts:t}},p=function(t,n){return e.inherit({begin:"\\\\begin(?=[ \t]*(\\r?\\n[ \t]*)?\\{"+t+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},h(u,n))},g=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string";return e.END_SAME_AS_BEGIN({className:t,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0})},v=function(e){return{className:"string",end:"(?=\\\\end\\{"+e+"\\})"}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string";return{relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:e,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}},y=[].concat(i(["verb","lstinline"].map((function(e){return f(e,{contains:[g()]})}))),[f("mint",h(u,{contains:[g()]})),f("mintinline",h(u,{contains:[m(),g()]})),f("url",{contains:[m("link"),m("link")]}),f("hyperref",{contains:[m("link")]}),f("href",h(d,{contains:[m("link")]}))],i((t=[]).concat.apply(t,i(["","\\*"].map((function(e){return[p("verbatim"+e,v("verbatim"+e)),p("filecontents"+e,h(u,v("filecontents"+e)))].concat(i(["","B","L"].map((function(t){return p(t+"Verbatim"+e,h(d,v(t+"Verbatim"+e)))}))))}))))),[p("minted",h(d,h(u,v("minted"))))]);return{name:"LaTeX",aliases:["tex"],contains:[].concat(i(y),r)}}},51151:function(e){e.exports=function(e){return{name:"LDIF",contains:[{className:"attribute",begin:"^dn",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0},relevance:10},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0}},{className:"literal",begin:"^-",end:"$"},e.HASH_COMMENT_MODE]}}},97898:function(e){e.exports=function(e){return{name:"Leaf",contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:/ \{/,returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]}}},17515:function(e){var t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],r=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse(),a=i.concat(r);e.exports=function(e){var s=function(e){return{IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}}(e),l=a,c="([\\w-]+|@\\{[\\w-]+\\})",u=[],d=[],h=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},f=function(e,t,n){return{className:e,begin:t,relevance:n}},p={$pattern:/[a-z-]+/,keyword:"and or not only",attribute:n.join(" ")},g={begin:"\\(",end:"\\)",contains:d,keywords:p,relevance:0};d.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h("'"),h('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},s.HEXCOLOR,g,f("variable","@@?[\\w-]+",10),f("variable","@\\{[\\w-]+\\}"),f("built_in","~?`[^`]*?`"),{className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0},s.IMPORTANT);var v=d.concat({begin:/\{/,end:/\}/,contains:u}),m={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(d)},y={begin:c+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:d}}]},_={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:p,returnEnd:!0,contains:d,relevance:0}},b={className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:v}},C={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:c,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m,f("keyword","all\\b"),f("variable","@\\{[\\w-]+\\}"),{begin:"\\b("+t.join("|")+")\\b",className:"selector-tag"},f("selector-tag",c+"%?",0),f("selector-id","#"+c),f("selector-class","\\."+c,0),f("selector-tag","&",0),s.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:"::("+r.join("|")+")"},{begin:"\\(",end:"\\)",contains:v},{begin:"!important"}]},S={begin:"[\\w-]+:(:)?"+"(".concat(l.join("|"),")"),returnBegin:!0,contains:[C]};return u.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_,b,S,y,C),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:u}}},42569:function(e){e.exports=function(e){var t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",i="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",r={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:i,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+i+" +"+i,end:"\\)"}]},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(";","$",{relevance:0}),l={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},u={begin:t,relevance:0},d={begin:n},h={contains:[o,a,l,c,{begin:"\\(",end:"\\)",contains:["self",r,a,o,u]},u],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},f={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},p={begin:"\\(\\s*",end:"\\)"},g={endsWithParent:!0,relevance:0};return p.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:n}]},g],g.contains=[h,f,p,r,o,a,s,l,c,d,u],{name:"Lisp",illegal:/\S/,contains:[o,e.SHEBANG(),r,a,s,h,f,p,u]}}},85261:function(e){e.exports=function(e){var t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],i=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),r=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[r,i],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i].concat(n),illegal:";$|^\\[|^=|&|\\{"}}},84260:function(e){var t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],i=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);e.exports=function(e){var r={keyword:t.concat(["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"]),literal:n.concat(["yes","no","on","off","it","that","void"]),built_in:i.concat(["npm","print"])},o="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",a=e.inherit(e.TITLE_MODE,{begin:o}),s={className:"subst",begin:/#\{/,end:/\}/,keywords:r},l={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:r},c=[e.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,l]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,l]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[s,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+o},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];s.contains=c;var u={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:r,contains:["self"].concat(c)}]};return{name:"LiveScript",aliases:["ls"],keywords:r,illegal:/\/\*/,contains:c.concat([e.COMMENT("\\/\\*","\\*\\/"),e.HASH_COMMENT_MODE,{begin:"(#=>|=>|\\|>>|-?->|!->)"},{className:"function",contains:[a,u],returnBegin:!0,variants:[{begin:"("+o+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+o+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+o+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{begin:o+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},33770:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t=/([-a-zA-Z$._][\w$.-]*)/,i={className:"variable",variants:[{begin:n(/%/,t)},{begin:/%\d+/},{begin:/#\d+/}]},r={className:"title",variants:[{begin:n(/@/,t)},{begin:/@\d+/},{begin:n(/!/,t)},{begin:n(/!\d+/,t)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[{className:"type",begin:/\bi\d+(?=\s|\b)/},e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:/"/,end:/[^\\]"/}]},r,{className:"punctuation",relevance:0,begin:/,/},{className:"operator",relevance:0,begin:/=/},i,{className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},{className:"number",variants:[{begin:/0[xX][a-fA-F0-9]+/},{begin:/-?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0}]}}},4552:function(e){e.exports=function(e){var t={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},n={className:"number",relevance:0,begin:e.C_NUMBER_RE};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[t,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},n,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},{className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"},{className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}},9615:function(e){e.exports=function(e){var t="\\[=*\\[",n="\\]=*\\]",i={begin:t,end:n,contains:["self"]},r=[e.COMMENT("--(?!\\[=*\\[)","$"),e.COMMENT("--\\[=*\\[",n,{contains:[i],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:r.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:r}].concat(r)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[i],relevance:5}])}}},41818:function(e){e.exports=function(e){var t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t]},r={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,i,r,{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,"meta-keyword":".PHONY"}},o]}}},64387:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.+?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},r={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},o={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};r.contains.push(o),o.contains.push(r);var a=[t,i];return r.contains=r.contains.concat(a),o.contains=o.contains.concat(a),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:a=a.concat(r,o)},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:a}]}]},t,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},r,o,{className:"quote",begin:"^>\\s+",contains:a,end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},i,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}},19437:function(e){var t=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Apply","ApplySides","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayQ","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstronomicalData","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomList","AtomQ","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTracks","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","BabyMonsterGroupB","Back","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginFrontEndInteractionPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","Binomial","BinomialDistribution","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockMap","BlockRandom","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CardinalBSplineBasis","CarlemanLinearize","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalData","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","ClosingSaveDialog","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledFunction","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteKaryTree","CompletionsListPacket","Complex","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","ConformAudio","ConformImages","Congruent","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegionBox","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnesWindow","ConoverTest","ConsoleMessage","ConsoleMessagePacket","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","Convergents","ConversionOptions","ConversionRules","ConvertToBitmapPacket","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexPolygonQ","ConvexPolyhedronQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyTag","CopyToClipboard","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePalettePacket","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","Cumulant","CumulantGeneratingFunction","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentlySpeakingPacket","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylindricalDecomposition","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFormatTypeForStyle","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayFlushImagePacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplaySetSizePacket","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DragAndDrop","DrawEdges","DrawFrontFaces","DrawHighlighted","Drop","DropoutLayer","DSolve","DSolveValue","Dt","DualLinearProgramming","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoFunction","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EnableConsolePrintPacket","Enabled","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndFrontEndInteractionPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedProcess","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPostmanTour","FindProcessParameters","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlipView","Floor","FlowPolynomial","FlushPrintOutputPacket","Fold","FoldList","FoldPair","FoldPairList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FractionalBrownianMotionProcess","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceOpacity","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionDomain","FunctionExpand","FunctionInterpolation","FunctionPeriod","FunctionRange","FunctionSpace","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedCell","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoPath","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetBoundingBoxSizePacket","GetContext","GetEnvironment","GetFileName","GetFrontEndOptionsDataPacket","GetLinebreakInformationPacket","GetMenusPacket","GetPageBreakInformationPacket","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","Grad","Gradient","GradientFilter","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphElementData","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","HeaderSize","HeaderStyle","Heads","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","Here","HermiteDecomposition","HermiteH","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IgnoreCase","IgnoreDiacritics","IgnorePunctuation","IgnoreSpellCheck","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImagingDevice","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","Interactive","InteractiveTradingChart","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LibraryDataType","LibraryFunction","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseID","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeContainsQ","MoleculeEquivalentQ","MoleculeGraph","MoleculeModify","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeValue","Moment","Momentary","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborGraph","NearestTo","NebulaData","NeedCurrentFrontEndPackagePacket","NeedCurrentFrontEndSymbolsPacket","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestWhile","NestWhileList","NetAppend","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookCreateReturnObject","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookFindReturnObject","NotebookGet","NotebookGetLayoutInformationPacket","NotebookGetMisspellingsPacket","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookOpenReturnObject","NotebookPath","NotebookPrint","NotebookPut","NotebookPutReturnObject","NotebookRead","NotebookResetGeneratedCells","Notebooks","NotebookSave","NotebookSaveAs","NotebookSelection","NotebookSetupLayoutInformationPacket","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhysicalSystemData","Pi","Pick","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderReplace","Plain","PlanarAngle","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointFigureChart","PointLegend","PointSize","PoissonConsulDistribution","PoissonDistribution","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","Projection","Prolog","PromptForm","ProofObject","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","Quit","Quotient","QuotientRemainder","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomChoice","RandomColor","RandomComplex","RandomEntity","RandomFunction","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecognitionPrior","RecognitionThreshold","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionDifference","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionFillingStyle","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteConnect","RemoteConnectionObject","RemoteFile","RemoteRun","RemoteRunProcess","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetMenusPacket","ResetScheduledTask","ReshapeLayer","Residue","ResizeLayer","Resolve","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RiskAchievementImportance","RiskReductionImportance","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionDuplicateCell","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectionSetStyle","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetBoxFormNamesPacket","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetEvaluationNotebook","SetFileDate","SetFileLoadingContext","SetNotebookStatusLine","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetSpeechParametersPacket","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","SetValue","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SnDispersion","Snippet","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolidAngle","SolidData","SolidRegionQ","Solve","SolveAlways","SolveDelayed","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SpatialGraphDistribution","SpatialMedian","SpatialTransformationLayer","Speak","SpeakerMatchQ","SpeakTextPacket","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","SpellingSuggestionsPacket","Sphere","SphereBox","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripWrapperBoxes","StrokeForm","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTracks","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxBackground","TableViewBoxItemSize","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThompsonGroupTh","Thread","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRules","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","TreeForm","TreeGraph","TreeGraphQ","TreePlot","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValidationLength","ValidationSet","Value","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceTest","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerboseConvertToPostScriptPacket","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","Version","VersionedPreferences","VersionNumber","VertexAdd","VertexCapacity","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoPause","VideoPlay","VideoQ","VideoStop","VideoStream","VideoStreams","VideoTimeSeries","VideoTracks","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$ConditionHold","$ConfiguredKernels","$Context","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultLocalBase","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$PublisherID","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterWolframID","$RequesterWolframUUID","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function n(e){return e?"string"===typeof e?e:e.source:null}function i(e){return r("(",e,")?")}function r(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var r=t.map((function(e){return n(e)})).join("");return r}function o(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var r="("+t.map((function(e){return n(e)})).join("|")+")";return r}e.exports=function(e){var n=o(r(/([2-9]|[1-2]\d|[3][0-5])\^\^/,/(\w*\.\w+|\w+\.\w*|\w+)/),/(\d*\.\d+|\d+\.\d*|\d+)/),a={className:"number",relevance:0,begin:r(n,i(o(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/)),i(/\*\^[+-]?\d+/))},s=/[a-zA-Z$][a-zA-Z0-9$]*/,l=new Set(t),c={variants:[{className:"builtin-symbol",begin:s,"on:begin":function(e,t){l.has(e[0])||t.ignoreMatch()}},{className:"symbol",relevance:0,begin:s}]},u={className:"message-name",relevance:0,begin:r("::",s)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[e.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),{className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},{className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},u,c,{className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},e.QUOTE_STRING_MODE,a,{className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},{className:"brace",relevance:0,begin:/[[\](){}]/}]}}},64658:function(e){e.exports=function(e){var t="('|\\.')+",n={relevance:0,contains:[{begin:t}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:n},{begin:"[a-zA-Z][a-zA-Z_0-9]*('|\\.')+",relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:n},{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:n},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE,{begin:'""'}],starts:n},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}},81060:function(e){e.exports=function(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}},25063:function(e){e.exports=function(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}},21711:function(e){e.exports=function(e){var t=e.COMMENT("%","$"),n=e.inherit(e.APOS_STRING_MODE,{relevance:0}),i=e.inherit(e.QUOTE_STRING_MODE,{relevance:0});return i.contains=i.contains.slice(),i.contains.push({className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0}),{name:"Mercury",aliases:["m","moo"],keywords:{keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|--\x3e"},{begin:"=",relevance:0}]},t,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},e.NUMBER_MODE,n,i,{begin:/:-/},{begin:/\.$/}]}}},18714:function(e){e.exports=function(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}},34138:function(e){e.exports=function(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}},48592:function(e){e.exports=function(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}},17653:function(e){e.exports=function(e){var t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw import",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),{className:"function",beginKeywords:"function method",end:"[(=:]|$",illegal:/\n/,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"$",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{className:"built_in",begin:"\\b(self|super)\\b"},{className:"meta",begin:"\\s*#",end:"$",keywords:{"meta-keyword":"if else elseif endif end then"}},{className:"meta",begin:"^\\s*strict\\b"},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}},35326:function(e){e.exports=function(e){var t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/\}/,keywords:t},r=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];i.contains=r;var o=e.inherit(e.TITLE_MODE,{begin:n}),a="(\\(.*\\)\\s*)?\\B[-=]>",s={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(r)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:r.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+a,end:"[-=]>",returnBegin:!0,contains:[o,s]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:a,end:"[-=]>",returnBegin:!0,contains:[s]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[o]},o]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},24730:function(e){e.exports=function(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,endsWithParent:!0,keywords:{keyword:"all alter analyze and any array as asc begin between binary boolean break bucket build by call case cast cluster collate collection commit connect continue correlate cover create database dataset datastore declare decrement delete derived desc describe distinct do drop each element else end every except exclude execute exists explain fetch first flatten for force from function grant group gsi having if ignore ilike in include increment index infer inline inner insert intersect into is join key keys keyspace known last left let letting like limit lsm map mapping matched materialized merge minus namespace nest not number object offset on option or order outer over parse partition password path pool prepare primary private privilege procedure public raw realm reduce rename return returning revoke right role rollback satisfies schema select self semi set show some start statistics string system then to transaction trigger truncate under union unique unknown unnest unset update upsert use user using validate value valued values via view when where while with within work xor",literal:"true false null missing|5",built_in:"array_agg array_append array_concat array_contains array_count array_distinct array_ifnull array_length array_max array_min array_position array_prepend array_put array_range array_remove array_repeat array_replace array_reverse array_sort array_sum avg count max min sum greatest least ifmissing ifmissingornull ifnull missingif nullif ifinf ifnan ifnanorinf naninf neginfif posinfif clock_millis clock_str date_add_millis date_add_str date_diff_millis date_diff_str date_part_millis date_part_str date_trunc_millis date_trunc_str duration_to_str millis str_to_millis millis_to_str millis_to_utc millis_to_zone_name now_millis now_str str_to_duration str_to_utc str_to_zone_name decode_json encode_json encoded_size poly_length base64 base64_encode base64_decode meta uuid abs acos asin atan atan2 ceil cos degrees e exp ln log floor pi power radians random round sign sin sqrt tan trunc object_length object_names object_pairs object_inner_pairs object_values object_inner_values object_add object_put object_remove object_unwrap regexp_contains regexp_like regexp_position regexp_replace contains initcap length lower ltrim position repeat replace rtrim split substr title trim upper isarray isatom isboolean isnumber isobject isstring type toarray toatom toboolean tonumber toobject tostring"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE],relevance:2},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}},36630:function(e){e.exports=function(e){var t={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/\}/},{begin:/[$@]/+e.UNDERSCORE_IDENT_RE}]},n={endsWithParent:!0,keywords:{$pattern:"[a-z/_]+",literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[t]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},t]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\{/,contains:[{className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|\\{",returnBegin:!0,contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:n}],relevance:0}],illegal:"[^\\s\\}]"}}},29203:function(e){e.exports=function(e){return{name:"Nim",keywords:{keyword:"addr and as asm bind block break case cast const continue converter discard distinct div do elif else end enum except export finally for from func generic if import in include interface is isnot iterator let macro method mixin mod nil not notin object of or out proc ptr raise ref return shl shr static template try tuple type using var when while with without xor yield",literal:"shared guarded stdin stdout stderr result true false",built_in:"int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float float32 float64 bool char string cstring pointer expr stmt void auto any range array openarray varargs seq set clong culong cchar cschar cshort cint csize clonglong cfloat cdouble clongdouble cuchar cushort cuint culonglong cstringarray semistatic"},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}},18373:function(e){e.exports=function(e){var t={keyword:"rec with let in inherit assert if else then",literal:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},n={className:"subst",begin:/\$\{/,end:/\}/,keywords:t},i={className:"string",contains:[n],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},r=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/}]}];return n.contains=r,{name:"Nix",aliases:["nixos"],keywords:t,contains:r}}},98824:function(e){e.exports=function(e){return{name:"Node REPL",contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}},75505:function(e){e.exports=function(e){var t={className:"variable",begin:/\$+\{[\w.:-]+\}/},n={className:"variable",begin:/\$+\w+/,illegal:/\(\)\{\}/},i={className:"variable",begin:/\$+\([\w^.:-]+\)/},r={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[{className:"meta",begin:/\$(\\[nrt]|\$)/},{className:"variable",begin:/\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)/},t,n,i]};return{name:"NSIS",case_insensitive:!1,keywords:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecShellWait ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileWriteUTF16LE FileSeek FileWrite FileWriteByte FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetKnownFolderPath GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfRtlLanguage IfShellVarContextAll IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText Int64Cmp Int64CmpU Int64Fmt IntCmp IntCmpU IntFmt IntOp IntPtrCmp IntPtrCmpU IntPtrOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadAndSetImage LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestLongPathAware ManifestMaxVersionTested ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PEAddResource PEDllCharacteristics PERemoveResource PESubsysVer Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegMultiStr WriteRegNone WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both bottom bzip2 colored components current custom directory false force hide highest ifdiff ifnewer instfiles lastused leave left license listonly lzma nevershow none normal notset off on open print right show silent silentlog smooth textonly top true try un.components un.custom un.directory un.instfiles un.license uninstConfirm user Win10 Win7 Win8 WinVista zlib"},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),{className:"function",beginKeywords:"Function PageEx Section SectionGroup",end:"$"},r,{className:"keyword",begin:/!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|searchparse|searchreplace|system|tempfile|undef|verbose|warning)/},t,n,i,{className:"params",begin:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},{className:"class",begin:/\w+::\w+/},e.NUMBER_MODE]}}},93567:function(e){e.exports=function(e){var t=/[a-zA-Z@][a-zA-Z0-9_]*/,n={$pattern:t,keyword:"@interface @class @protocol @implementation"};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:{$pattern:t,keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},illegal:"</",contains:[{className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+n.keyword.split(" ").join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:n,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}},48036:function(e){e.exports=function(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}},46424:function(e){e.exports=function(e){var t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[{className:"params",begin:"\\(",end:"\\)",contains:["self",n,i,t,{className:"literal",begin:"false|true|PI|undef"}]},e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"meta",keywords:{"meta-keyword":"include use"},begin:"include|use <",end:">"},i,t,{begin:"[*!#%]",relevance:0},r]}}},19727:function(e){e.exports=function(e){var t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},n=e.COMMENT(/\{/,/\}/,{relevance:0}),i=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),r={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},o={className:"string",begin:"(#\\d+)+"},a={className:"function",beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[r,o]},n,i]};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[n,i,e.C_LINE_COMMENT_MODE,r,o,e.NUMBER_MODE,a,{className:"class",begin:"=\\bclass\\b",end:"end;",keywords:t,contains:[r,o,n,i,e.C_LINE_COMMENT_MODE,a]}]}}},7157:function(e){e.exports=function(e){var t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}},45201:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}function i(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r="("+n.map((function(e){return t(e)})).join("|")+")";return r}e.exports=function(e){var t=/[dualxmsipngr]{0,12}/,r={$pattern:/[\w.]+/,keyword:["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"].join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:r},a={begin:/->\{/,end:/\}/},s={variants:[{begin:/\$\d/},{begin:n(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},l=[e.BACKSLASH_ESCAPE,o,s],c=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],u=function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\\1",o="\\1"===r?r:n(r,i);return n(n("(?:",e,")"),i,/(?:\\.|[^\\\/])*?/,o,/(?:\\.|[^\\\/])*?/,r,t)},d=function(e,i,r){return n(n("(?:",e,")"),i,/(?:\\.|[^\\\/])*?/,r,t)},h=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:l,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:u("s|tr|y",i.apply(void 0,c))},{begin:u("s|tr|y","\\(","\\)")},{begin:u("s|tr|y","\\[","\\]")},{begin:u("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",i.apply(void 0,c),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=h,a.contains=h,{name:"Perl",aliases:["pl","pm"],keywords:r,contains:h}}},30450:function(e){e.exports=function(e){return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,{className:"variable",begin:/\$[\w\d#@][\w\d_]*/},{className:"variable",begin:/<(?!\/)/,end:/>/}]}}},49465:function(e){e.exports=function(e){var t=e.COMMENT("--","$"),n="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",r=i.trim().split(" ").map((function(e){return e.split("|")[0]})).join("|"),o="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map((function(e){return e.split("|")[0]})).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],case_insensitive:!0,keywords:{keyword:"ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",built_in:"CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED "},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+o+")\\s*\\("},{begin:"\\.("+r+")\\b"},{begin:"\\b("+r+")\\s+PATH\\b",keywords:{keyword:"PATH",type:i.replace("PATH ","")}},{className:"type",begin:"\\b("+r+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:n,end:n,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:"<<\\s*[a-zA-Z_][a-zA-Z_0-9$]*\\s*>>",relevance:10}]}}},52638:function(e){e.exports=function(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}},33610:function(e){e.exports=function(e){var t={className:"variable",begin:"\\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(?![A-Za-z0-9])(?![$])"},n={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},i={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},r=e.inherit(e.APOS_STRING_MODE,{illegal:null}),o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(i)}),a=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(i)}),s={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[e.inherit(r,{begin:"b'",end:"'"}),e.inherit(o,{begin:'b"',end:'"'}),o,r,a]},l={className:"number",variants:[{begin:"\\b0b[01]+(?:_[01]+)*\\b"},{begin:"\\b0o[0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0x[\\da-f]+(?:_[\\da-f]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:e[+-]?\\d+)?"}],relevance:0},c={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 mixed new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException UnhandledMatchError ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Stringable Throwable Traversable WeakReference WeakMap Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{aliases:["php3","php4","php5","php6","php7","php8"],case_insensitive:!0,keywords:c,contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[n]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),n,{className:"keyword",begin:/\$this\b/},t,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",t,e.C_BLOCK_COMMENT_MODE,s,l]}]},{className:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";",contains:[e.UNDERSCORE_TITLE_MODE]},s,l]}}},37721:function(e){e.exports=function(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}},7524:function(e){e.exports=function(e){return{name:"Pony",keywords:{keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},contains:[{className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},{begin:e.IDENT_RE+"'",relevance:0},{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}},90601:function(e){e.exports=function(e){var t={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},n={begin:"`[\\s\\S]",relevance:0},i={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},r={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[n,i,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},o={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},a=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),s={className:"built_in",variants:[{begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+")}]},l={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},c={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[i]}]},u={begin:/using\s/,end:/$/,returnBegin:!0,contains:[r,o,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},d={variants:[{className:"operator",begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},h={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(t.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},f=[h,a,n,e.NUMBER_MODE,r,o,s,i,{className:"literal",begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0}],p={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",f,{begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return h.contains.unshift(p),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:t,contains:f.concat(l,c,u,d,p)}}},87670:function(e){e.exports=function(e){return{name:"Processing",keywords:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",title:"setup draw",built_in:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},7568:function(e){e.exports=function(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}},90696:function(e){e.exports=function(e){var t={begin:/\(/,end:/\)/,relevance:0},n={begin:/\[/,end:/\]/},i={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},r={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},o=[{begin:/[a-z][A-Za-z0-9_]*/,relevance:0},{className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},t,{begin:/:-/},n,i,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,r,{className:"string",begin:/0'(\\'|.)/},{className:"string",begin:/0'\\s/},e.C_NUMBER_MODE];return t.contains=o,n.contains=o,{name:"Prolog",contains:o.concat([{begin:/\.$/}])}}},44450:function(e){e.exports=function(e){var t="[ \\t\\f]*",n=t+"[:=]"+t,i="[ \\t\\f]+",r="("+n+"|"+"[ \\t\\f]+)",o="([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",s={end:r,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:o+n,relevance:1},{begin:o+i,relevance:0}],contains:[{className:"attr",begin:o,endsParent:!0,relevance:0}],starts:s},{begin:a+r,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:a,endsParent:!0,relevance:0}],starts:s},{className:"attr",relevance:0,begin:a+t+"$"}]}}},18513:function(e){e.exports=function(e){return{name:"Protocol Buffers",keywords:{keyword:"package import option optional required repeated group oneof",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"message enum service",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}},94146:function(e){e.exports=function(e){var t=e.COMMENT("#","$"),n="([A-Za-z_]|::)(\\w|::)*",i=e.inherit(e.TITLE_MODE,{begin:n}),r={className:"variable",begin:"\\$"+n},o={className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[t,r,o,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[i,t]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE},{begin:/\{/,end:/\}/,keywords:{keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},relevance:0,contains:[o,t,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},r]}],relevance:0}]}}},27215:function(e){e.exports=function(e){return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},{className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},{className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"}]}}},42888:function(e){e.exports=function(e){return{aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}},85609:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(e){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.map((function(e){return t(e)})).join("")}("(?=",e,")")}e.exports=function(e){var t={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},i={className:"meta",begin:/^(>>>|\.\.\.) /},r={className:"subst",begin:/\{/,end:/\}/,keywords:t,illegal:/#/},o={begin:/\{\{/,relevance:0},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,i],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,i],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,i,o,r]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,i,o,r]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,o,r]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,r]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},s="[0-9](_?[0-9])*",l="(\\b(".concat(s,"))?\\.(").concat(s,")|\\b(").concat(s,")\\."),c={className:"number",relevance:0,variants:[{begin:"(\\b(".concat(s,")|(").concat(l,"))[eE][+-]?(").concat(s,")[jJ]?\\b")},{begin:"(".concat(l,")[jJ]?")},{begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:"\\b(".concat(s,")[jJ]\\b")}]},u={className:"comment",begin:n(/# type:/),end:/$/,keywords:t,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},d={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:["self",i,c,a,e.HASH_COMMENT_MODE]}]};return r.contains=[a,c,i],{name:"Python",aliases:["py","gyp","ipython"],keywords:t,illegal:/(<\/|->|\?)|=>/,contains:[i,c,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},a,u,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,d,{begin:/->/,endsWithParent:!0,keywords:t}]},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[c,d,a]}]}}},34754:function(e){e.exports=function(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},21687:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t="[a-zA-Z_][a-zA-Z0-9\\._]*",i={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:t,returnEnd:!1}},r={begin:t+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:t,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},o={begin:n(t,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:{keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},{className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},i,r,o],illegal:/#/}}},47191:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/;return{name:"R",illegal:/->/,keywords:{$pattern:t,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},compilerExtensions:[function(e,t){if(e.beforeMatch){if(e.starts)throw new Error("beforeMatch cannot be used with starts");var i=Object.assign({},e);Object.keys(e).forEach((function(t){delete e[t]})),e.begin=n(i.beforeMatch,n("(?=",i.begin,")")),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch}}],contains:[e.COMMENT(/#'/,/$/,{contains:[{className:"doctag",begin:"@examples",starts:{contains:[{begin:/\n/},{begin:/#'\s*(?=@[a-zA-Z]+)/,endsParent:!0},{begin:/#'/,end:/$/,excludeBegin:!0}]}},{className:"doctag",begin:"@param",end:/$/,contains:[{className:"variable",variants:[{begin:t},{begin:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{className:"doctag",begin:/@[a-zA-Z]+/},{className:"meta-keyword",begin:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{className:"number",relevance:0,beforeMatch:/([^a-zA-Z0-9._])/,variants:[{match:/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/},{match:/0[xX][0-9a-fA-F]+([pP][+-]?\d+)?[Li]?/},{match:/(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?[Li]?/}]},{begin:"%",end:"%"},{begin:n(/[a-zA-Z][a-zA-Z_0-9]*/,"\\s+<-\\s+")},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}},78670:function(e){e.exports=function(e){var t="~?[a-z$_][0-9a-zA-Z$_]*",n="`?[A-Z$_][0-9a-zA-Z$_]*",i="("+(["||","++","**","+.","*","/","*.","/.","..."].map((function(e){return e.split("").map((function(e){return"\\"+e})).join("")})).join("|")+"|\\|>|&&|==|===)"),r="\\s+"+i+"\\s+",o={keyword:"and as asr assert begin class constraint do done downto else end exception external for fun function functor if in include inherit initializer land lazy let lor lsl lsr lxor match method mod module mutable new nonrec object of open or private rec sig struct then to try type val virtual when while with",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ",literal:"true false"},a="\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",s={className:"number",relevance:0,variants:[{begin:a},{begin:"\\(-"+a+"\\)"}]},l={className:"operator",relevance:0,begin:i},c=[{className:"identifier",relevance:0,begin:t},l,s],u=[e.QUOTE_STRING_MODE,l,{className:"module",begin:"\\b"+n,returnBegin:!0,end:".",contains:[{className:"identifier",begin:n,relevance:0}]}],d=[{className:"module",begin:"\\b"+n,returnBegin:!0,end:".",relevance:0,contains:[{className:"identifier",begin:n,relevance:0}]}],h={className:"function",relevance:0,keywords:o,variants:[{begin:"\\s(\\(\\.?.*?\\)|"+t+")\\s*=>",end:"\\s*=>",returnBegin:!0,relevance:0,contains:[{className:"params",variants:[{begin:t},{begin:"~?[a-z$_][0-9a-zA-Z$_]*(\\s*:\\s*[a-z$_][0-9a-z$_]*(\\(\\s*('?[a-z$_][0-9a-z$_]*\\s*(,'?[a-z$_][0-9a-z$_]*\\s*)*)?\\))?){0,2}"},{begin:/\(\s*\)/}]}]},{begin:"\\s\\(\\.?[^;\\|]*\\)\\s*=>",end:"\\s=>",returnBegin:!0,relevance:0,contains:[{className:"params",relevance:0,variants:[{begin:t,end:"(,|\\n|\\))",relevance:0,contains:[l,{className:"typing",begin:":",end:"(,|\\n)",returnBegin:!0,relevance:0,contains:d}]}]}]},{begin:"\\(\\.\\s"+t+"\\)\\s*=>"}]};u.push(h);var f={className:"constructor",begin:n+"\\(",end:"\\)",illegal:"\\n",keywords:o,contains:[e.QUOTE_STRING_MODE,l,{className:"params",begin:"\\b"+t}]},p={className:"pattern-match",begin:"\\|",returnBegin:!0,keywords:o,end:"=>",relevance:0,contains:[f,l,{relevance:0,className:"constructor",begin:n}]},g={className:"module-access",keywords:o,returnBegin:!0,variants:[{begin:"\\b("+n+"\\.)+"+t},{begin:"\\b("+n+"\\.)+\\(",end:"\\)",returnBegin:!0,contains:[h,{begin:"\\(",end:"\\)",skip:!0}].concat(u)},{begin:"\\b("+n+"\\.)+\\{",end:/\}/}],contains:u};return d.push(g),{name:"ReasonML",aliases:["re"],keywords:o,illegal:"(:-|:=|\\$\\{|\\+=)",contains:[e.COMMENT("/\\*","\\*/",{illegal:"^(#,\\/\\/)"}),{className:"character",begin:"'(\\\\[^']+|[^'])'",illegal:"\\n",relevance:0},e.QUOTE_STRING_MODE,{className:"literal",begin:"\\(\\)",relevance:0},{className:"literal",begin:"\\[\\|",end:"\\|\\]",relevance:0,contains:c},{className:"literal",begin:"\\[",end:"\\]",relevance:0,contains:c},f,{className:"operator",begin:r,illegal:"--\x3e",relevance:0},s,e.C_LINE_COMMENT_MODE,p,h,{className:"module-def",begin:"\\bmodule\\s+"+t+"\\s+"+n+"\\s+=\\s+\\{",end:/\}/,returnBegin:!0,keywords:o,relevance:0,contains:[{className:"module",relevance:0,begin:n},{begin:/\{/,end:/\}/,skip:!0}].concat(u)},g]}}},75649:function(e){e.exports=function(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}},78624:function(e){e.exports=function(e){var t="[a-zA-Z-_][^\\n{]+\\{",n={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+t,end:/\}/,keywords:"facet",contains:[n,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+t,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",n,e.HASH_COMMENT_MODE]},{begin:"^"+t,end:/\}/,contains:[n,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}},52965:function(e){e.exports=function(e){var t="foreach do while for if from to step else on-error and or not in",n="true false yes no nothing nil null",i={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},o={className:"string",begin:/'/,end:/'/};return{name:"Microtik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:n,keyword:t+" :"+t.split(" ").join(" :")+" :"+"global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime".split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),r,o,i,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[r,o,i,{className:"literal",begin:"\\b("+n.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+"add remove enable disable set get print export edit find run debug error info warning".split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"builtin-name",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+"traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw".split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}},16009:function(e){e.exports=function(e){return{name:"RenderMan RSL",keywords:{keyword:"float color point normal vector matrix while for if do return else break extern continue",built_in:"abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp faceforward filterstep floor format fresnel incident length lightsource log match max min mod noise normalize ntransform opposite option phong pnoise pow printf ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan texture textureinfo trace transform vtransform xcomp ycomp zcomp"},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"surface displacement light volume imager",end:"\\("},{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}},52907:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t,i="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor __FILE__",built_in:"proc lambda",literal:"true false nil"},o={className:"doctag",begin:"@[A-Za-z]+"},a={begin:"#<",end:">"},s=[e.COMMENT("#","$",{contains:[o]}),e.COMMENT("^=begin","^=end",{contains:[o],relevance:10}),e.COMMENT("^__END__","\\n$")],l={className:"subst",begin:/#\{/,end:/\}/,keywords:r},c={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:/<<[-~]?'?(\w+)\n(?:[^\n]*\n)*?\s*\1\b/,returnBegin:!0,contains:[{begin:/<<[-~]?'?/},e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,l]})]}]},u="[0-9](_?[0-9])*",d={className:"number",relevance:0,variants:[{begin:"\\b(".concat("[1-9](_?[0-9])*|0",")(\\.(").concat(u,"))?([eE][+-]?(").concat(u,")|r)?i?\\b")},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},h={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:r},f=[c,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE,relevance:0}]}].concat(s)},{className:"function",begin:n(/def\s+/,(t=i+"\\s*(\\(|;|$)",n("(?=",t,")"))),relevance:0,keywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:i}),h].concat(s)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[c,{begin:i}],relevance:0},d,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,relevance:0,keywords:r},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(a,s),relevance:0}].concat(a,s);l.contains=f,h.contains=f;var p=[{begin:/^\s*=>/,starts:{end:"$",contains:f}},{className:"meta",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",starts:{end:"$",contains:f}}];return s.unshift(a),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:r,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(p).concat(s).concat(f)}}},2731:function(e){e.exports=function(e){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}},24801:function(e){e.exports=function(e){var t="([ui](8|16|32|64|128|size)|f(32|64))?",n="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!";return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",keyword:"abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield",literal:"true false Some None Ok Err",built_in:n},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+t}],relevance:0},{className:"function",beginKeywords:"fn",end:"(\\(|<)",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"meta-string",begin:/"/,end:/"/}]},{className:"class",beginKeywords:"type",end:";",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"\\S"},{className:"class",beginKeywords:"trait enum struct union",end:/\{/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"[\\w\\d]"},{begin:e.IDENT_RE+"::",keywords:{built_in:n}},{begin:"->"}]}}},41621:function(e){e.exports=function(e){return{name:"SAS",case_insensitive:!0,keywords:{literal:"null missing _all_ _automatic_ _character_ _infile_ _n_ _name_ _null_ _numeric_ _user_ _webout_",meta:"do if then else end until while abort array attrib by call cards cards4 catname continue datalines datalines4 delete delim delimiter display dm drop endsas error file filename footnote format goto in infile informat input keep label leave length libname link list lostcard merge missing modify options output out page put redirect remove rename replace retain return select set skip startsas stop title update waitsas where window x systask add and alter as cascade check create delete describe distinct drop foreign from group having index insert into in key like message modify msgtype not null on or order primary references reset restrict select set table unique update validate view where"},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{className:"emphasis",begin:/^\s*datalines|cards.*;/,end:/^\s*;\s*$/},{className:"built_in",begin:"%(bquote|nrbquote|cmpres|qcmpres|compstor|datatyp|display|do|else|end|eval|global|goto|if|index|input|keydef|label|left|length|let|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qcmpres|qleft|qlowcase|qscan|qsubstr|qsysfunc|qtrim|quote|qupcase|scan|str|substr|superq|syscall|sysevalf|sysexec|sysfunc|sysget|syslput|sysprod|sysrc|sysrput|then|to|trim|unquote|until|upcase|verify|while|window)"},{className:"name",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:"[^%](abs|addr|airy|arcos|arsin|atan|attrc|attrn|band|betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|cexist|cinv|close|cnonct|collate|compbl|compound|compress|cos|cosh|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|date|datejul|datepart|datetime|day|dclose|depdb|depdbsl|depdbsl|depsl|depsl|depsyd|depsyd|deptab|deptab|dequote|dhms|dif|digamma|dim|dinfo|dnum|dopen|doptname|doptnum|dread|dropnote|dsname|erf|erfc|exist|exp|fappend|fclose|fcol|fdelete|fetch|fetchobs|fexist|fget|fileexist|filename|fileref|finfo|finv|fipname|fipnamel|fipstate|floor|fnonct|fnote|fopen|foptname|foptnum|fpoint|fpos|fput|fread|frewind|frlen|fsep|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|hbound|hms|hosthelp|hour|ibessel|index|indexc|indexw|input|inputc|inputn|int|intck|intnx|intrr|irr|jbessel|juldate|kurtosis|lag|lbound|left|length|lgamma|libname|libref|log|log10|log2|logpdf|logpmf|logsdf|lowcase|max|mdy|mean|min|minute|mod|month|mopen|mort|n|netpv|nmiss|normal|note|npv|open|ordinal|pathname|pdf|peek|peekc|pmf|point|poisson|poke|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probt|put|putc|putn|qtr|quote|ranbin|rancau|ranexp|rangam|range|rank|rannor|ranpoi|rantbl|rantri|ranuni|repeat|resolve|reverse|rewind|right|round|saving|scan|sdf|second|sign|sin|sinh|skewness|soundex|spedis|sqrt|std|stderr|stfips|stname|stnamel|substr|sum|symget|sysget|sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|tinv|tnonct|today|translate|tranwrd|trigamma|trim|trimn|trunc|uniform|upcase|uss|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vtype|vtypex|weekday|year|yyq|zipfips|zipname|zipnamel|zipstate)[(]"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}},20065:function(e){e.exports=function(e){var t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},n={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[t],relevance:10}]},i={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},r={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},o={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[i]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[i]},r]},a={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[r]};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},i,a,o,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}},46207:function(e){e.exports=function(e){var t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(-|\\+)?\\d+([./]\\d+)?",i={$pattern:t,"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},r={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},o={className:"number",variants:[{begin:n,relevance:0},{begin:"(-|\\+)?\\d+([./]\\d+)?[+\\-](-|\\+)?\\d+([./]\\d+)?i",relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},a=e.QUOTE_STRING_MODE,s=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],l={begin:t,relevance:0},c={className:"symbol",begin:"'"+t},u={endsWithParent:!0,relevance:0},d={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",r,a,o,l,c]}]},h={className:"name",relevance:0,begin:t,keywords:i},f={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[h,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[l]}]},h,u]};return u.contains=[r,o,a,l,c,d,f].concat(s),{name:"Scheme",illegal:/\S/,contains:[e.SHEBANG(),o,a,c,d,f].concat(s)}}},27422:function(e){e.exports=function(e){var t=[e.C_NUMBER_MODE,{className:"string",begin:"'|\"",end:"'|\"",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}}},93785:function(e){var t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],r=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();e.exports=function(e){var a=function(e){return{IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}}(e),s=r,l=i,c="@[a-z-]+",u={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+t.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+l.join("|")+")"},{className:"selector-pseudo",begin:"::("+s.join("|")+")"},u,{begin:/\(/,end:/\)/,contains:[e.CSS_NUMBER_MODE]},{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[u,a.HEXCOLOR,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a.IMPORTANT]},{begin:"@(page|font-face)",lexemes:c,keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:n.join(" ")},contains:[{begin:c,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},u,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a.HEXCOLOR,e.CSS_NUMBER_MODE]}]}}},55789:function(e){e.exports=function(e){return{name:"Shell Session",aliases:["console"],contains:[{className:"meta",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#]/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}},358:function(e){e.exports=function(e){var t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"].join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"].join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:"L[^(;:\n]*;",relevance:0},{begin:"[vp][0-9]+"}]}}},94006:function(e){e.exports=function(e){var t="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},i={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:"self super nil true false thisContext",contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:t+":",relevance:0},e.C_NUMBER_MODE,i,n,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,i]}]}}},25585:function(e){e.exports=function(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}},52287:function(e){e.exports=function(e){var t={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},n={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"define undef ifdef ifndef else endif include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(t,{className:"meta-string"}),{className:"meta-string",begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:"case catch default do else exit exitWith for forEach from if private switch then throw to try waitUntil while with",built_in:"abs accTime acos action actionIDs actionKeys actionKeysImages actionKeysNames actionKeysNamesArray actionName actionParams activateAddons activatedAddons activateKey add3DENConnection add3DENEventHandler add3DENLayer addAction addBackpack addBackpackCargo addBackpackCargoGlobal addBackpackGlobal addCamShake addCuratorAddons addCuratorCameraArea addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler addForce addGoggles addGroupIcon addHandgunItem addHeadgear addItem addItemCargo addItemCargoGlobal addItemPool addItemToBackpack addItemToUniform addItemToVest addLiveStats addMagazine addMagazineAmmoCargo addMagazineCargo addMagazineCargoGlobal addMagazineGlobal addMagazinePool addMagazines addMagazineTurret addMenu addMenuItem addMissionEventHandler addMPEventHandler addMusicEventHandler addOwnedMine addPlayerScores addPrimaryWeaponItem addPublicVariableEventHandler addRating addResources addScore addScoreSide addSecondaryWeaponItem addSwitchableUnit addTeamMember addToRemainsCollector addTorque addUniform addVehicle addVest addWaypoint addWeapon addWeaponCargo addWeaponCargoGlobal addWeaponGlobal addWeaponItem addWeaponPool addWeaponTurret admin agent agents AGLToASL aimedAtTarget aimPos airDensityRTD airplaneThrottle airportSide AISFinishHeal alive all3DENEntities allAirports allControls allCurators allCutLayers allDead allDeadMen allDisplays allGroups allMapMarkers allMines allMissionObjects allow3DMode allowCrewInImmobile allowCuratorLogicIgnoreAreas allowDamage allowDammage allowFileOperations allowFleeing allowGetIn allowSprint allPlayers allSimpleObjects allSites allTurrets allUnits allUnitsUAV allVariables ammo ammoOnPylon and animate animateBay animateDoor animatePylon animateSource animationNames animationPhase animationSourcePhase animationState append apply armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret assignCurator assignedCargo assignedCommander assignedDriver assignedGunner assignedItems assignedTarget assignedTeam assignedVehicle assignedVehicleRole assignItem assignTeam assignToAirport atan atan2 atg ATLToASL attachedObject attachedObjects attachedTo attachObject attachTo attackEnabled backpack backpackCargo backpackContainer backpackItems backpackMagazines backpackSpaceFor behaviour benchmark binocular boundingBox boundingBoxReal boundingCenter breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode call callExtension camCommand camCommit camCommitPrepared camCommitted camConstuctionSetParams camCreate camDestroy cameraEffect cameraEffectEnableHUD cameraInterest cameraOn cameraView campaignConfigFile camPreload camPreloaded camPrepareBank camPrepareDir camPrepareDive camPrepareFocus camPrepareFov camPrepareFovRange camPreparePos camPrepareRelPos camPrepareTarget camSetBank camSetDir camSetDive camSetFocus camSetFov camSetFovRange camSetPos camSetRelPos camSetTarget camTarget camUseNVG canAdd canAddItemToBackpack canAddItemToUniform canAddItemToVest cancelSimpleTaskDestination canFire canMove canSlingLoad canStand canSuspend canTriggerDynamicSimulation canUnloadInCombat canVehicleCargo captive captiveNum cbChecked cbSetChecked ceil channelEnabled cheatsEnabled checkAIFeature checkVisibility className clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal clearMagazinePool clearOverlay clearRadio clearWeaponCargo clearWeaponCargoGlobal clearWeaponPool clientOwner closeDialog closeDisplay closeOverlay collapseObjectTree collect3DENHistory collectiveRTD combatMode commandArtilleryFire commandChat commander commandFire commandFollow commandFSM commandGetOut commandingMenu commandMove commandRadio commandStop commandSuppressiveFire commandTarget commandWatch comment commitOverlay compile compileFinal completedFSM composeText configClasses configFile configHierarchy configName configProperties configSourceAddonList configSourceMod configSourceModList confirmSensorTarget connectTerminalToUAV controlsGroupCtrl copyFromClipboard copyToClipboard copyWaypoints cos count countEnemy countFriendly countSide countType countUnknown create3DENComposition create3DENEntity createAgent createCenter createDialog createDiaryLink createDiaryRecord createDiarySubject createDisplay createGearDialog createGroup createGuardedPoint createLocation createMarker createMarkerLocal createMenu createMine createMissionDisplay createMPCampaignDisplay createSimpleObject createSimpleTask createSite createSoundSource createTask createTeam createTrigger createUnit createVehicle createVehicleCrew createVehicleLocal crew ctAddHeader ctAddRow ctClear ctCurSel ctData ctFindHeaderRows ctFindRowHeader ctHeaderControls ctHeaderCount ctRemoveHeaders ctRemoveRows ctrlActivate ctrlAddEventHandler ctrlAngle ctrlAutoScrollDelay ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone ctrlMapCursor ctrlMapMouseOver ctrlMapScale ctrlMapScreenToWorld ctrlMapWorldToScreen ctrlModel ctrlModelDirAndUp ctrlModelScale ctrlParent ctrlParentControlsGroup ctrlPosition ctrlRemoveAllEventHandlers ctrlRemoveEventHandler ctrlScale ctrlSetActiveColor ctrlSetAngle ctrlSetAutoScrollDelay ctrlSetAutoScrollRewind ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked ctrlSetEventHandler ctrlSetFade ctrlSetFocus ctrlSetFont ctrlSetFontH1 ctrlSetFontH1B ctrlSetFontH2 ctrlSetFontH2B ctrlSetFontH3 ctrlSetFontH3B ctrlSetFontH4 ctrlSetFontH4B ctrlSetFontH5 ctrlSetFontH5B ctrlSetFontH6 ctrlSetFontH6B ctrlSetFontHeight ctrlSetFontHeightH1 ctrlSetFontHeightH2 ctrlSetFontHeightH3 ctrlSetFontHeightH4 ctrlSetFontHeightH5 ctrlSetFontHeightH6 ctrlSetFontHeightSecondary ctrlSetFontP ctrlSetFontPB ctrlSetFontSecondary ctrlSetForegroundColor ctrlSetModel ctrlSetModelDirAndUp ctrlSetModelScale ctrlSetPixelPrecision ctrlSetPosition ctrlSetScale ctrlSetStructuredText ctrlSetText ctrlSetTextColor ctrlSetTooltip ctrlSetTooltipColorBox ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ctrlTextWidth ctrlType ctrlVisible ctRowControls ctRowCount ctSetCurSel ctSetData ctSetHeaderTemplate ctSetRowTemplate ctSetValue ctValue curatorAddons curatorCamera curatorCameraArea curatorCameraAreaCeiling curatorCoef curatorEditableObjects curatorEditingArea curatorEditingAreaType curatorMouseOver curatorPoints curatorRegisteredObjects curatorSelected curatorWaypointCost current3DENOperation currentChannel currentCommand currentMagazine currentMagazineDetail currentMagazineDetailTurret currentMagazineTurret currentMuzzle currentNamespace currentTask currentTasks currentThrowable currentVisionMode currentWaypoint currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorObject cursorTarget customChat customRadio cutFadeOut cutObj cutRsc cutText damage date dateToNumber daytime deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter deleteCollection deleteEditorObject deleteGroup deleteGroupWhenEmpty deleteIdentity deleteLocation deleteMarker deleteMarkerLocal deleteRange deleteResources deleteSite deleteStatus deleteTeam deleteVehicle deleteVehicleCrew deleteWaypoint detach detectedMines diag_activeMissionFSMs diag_activeScripts diag_activeSQFScripts diag_activeSQSScripts diag_captureFrame diag_captureFrameToFile diag_captureSlowFrame diag_codePerformance diag_drawMode diag_enable diag_enabled diag_fps diag_fpsMin diag_frameNo diag_lightNewLoad diag_list diag_log diag_logSlowFrame diag_mergeConfigFile diag_recordTurretLimits diag_setLightNew diag_tickTime diag_toggle dialog diarySubjectExists didJIP didJIPOwner difficulty difficultyEnabled difficultyEnabledRTD difficultyOption direction directSay disableAI disableCollisionWith disableConversation disableDebriefingStats disableMapIndicators disableNVGEquipment disableRemoteSensors disableSerialization disableTIEquipment disableUAVConnectability disableUserInput displayAddEventHandler displayCtrl displayParent displayRemoveAllEventHandlers displayRemoveEventHandler displaySetEventHandler dissolveTeam distance distance2D distanceSqr distributionRegion do3DENAction doArtilleryFire doFire doFollow doFSM doGetOut doMove doorPhase doStop doSuppressiveFire doTarget doWatch drawArrow drawEllipse drawIcon drawIcon3D drawLine drawLine3D drawLink drawLocation drawPolygon drawRectangle drawTriangle driver drop dynamicSimulationDistance dynamicSimulationDistanceCoef dynamicSimulationEnabled dynamicSimulationSystemEnabled echo edit3DENMissionAttributes editObject editorSetEventHandler effectiveCommander emptyPositions enableAI enableAIFeature enableAimPrecision enableAttack enableAudioFeature enableAutoStartUpRTD enableAutoTrimRTD enableCamShake enableCaustics enableChannel enableCollisionWith enableCopilot enableDebriefingStats enableDiagLegend enableDynamicSimulation enableDynamicSimulationSystem enableEndDialog enableEngineArtillery enableEnvironment enableFatigue enableGunLights enableInfoPanelComponent enableIRLasers enableMimics enablePersonTurret enableRadio enableReload enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation enableSimulationGlobal enableStamina enableTeamSwitch enableTraffic enableUAVConnectability enableUAVWaypoints enableVehicleCargo enableVehicleSensor enableWeaponDisassembly endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities environmentEnabled estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack everyContainer exec execEditorScript execFSM execVM exp expectedDestination exportJIPMessages eyeDirection eyePos face faction fadeMusic fadeRadio fadeSound fadeSpeech failMission fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition findEmptyPositionReady findIf findNearestEnemy finishMissionInit finite fire fireAtTarget firstBackpack flag flagAnimationPhase flagOwner flagSide flagTexture fleeing floor flyInHeight flyInHeightASL fog fogForecast fogParams forceAddUniform forcedMap forceEnd forceFlagTexture forceFollowRoad forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange forEachMember forEachMemberAgent forEachMemberTeam forgetTarget format formation formationDirection formationLeader formationMembers formationPosition formationTask formatText formLeader freeLook fromEditor fuel fullCrew gearIDCAmmoCount gearSlotAmmoCount gearSlotData get3DENActionState get3DENAttribute get3DENCamera get3DENConnections get3DENEntity get3DENEntityID get3DENGrid get3DENIconsVisible get3DENLayerEntities get3DENLinesVisible get3DENMissionAttribute get3DENMouseOver get3DENSelected getAimingCoef getAllEnvSoundControllers getAllHitPointsDamage getAllOwnedMines getAllSoundControllers getAmmoCargo getAnimAimPrecision getAnimSpeedCoef getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA getAssignedCuratorLogic getAssignedCuratorUnit getBackpackCargo getBleedingRemaining getBurningValue getCameraViewDirection getCargoIndex getCenterOfMass getClientState getClientStateNumber getCompatiblePylonMagazines getConnectedUAV getContainerMaxLoad getCursorObjectParams getCustomAimCoef getDammage getDescription getDir getDirVisual getDLCAssetsUsage getDLCAssetsUsageByName getDLCs getEditorCamera getEditorMode getEditorObjectScope getElevationOffset getEnvSoundController getFatigue getForcedFlagTexture getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos getMarkerSize getMarkerType getMass getMissionConfig getMissionConfigValue getMissionDLCs getMissionLayerEntities getModelInfo getMousePosition getMusicPlayedTime getNumber getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs getPilotCameraDirection getPilotCameraPosition getPilotCameraRotation getPilotCameraTarget getPlateNumber getPlayerChannel getPlayerScores getPlayerUID getPos getPosASL getPosASLVisual getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getPylonMagazines getRelDir getRelPos getRemoteSensorsDisabled getRepairCargo getResolution getShadowDistance getShotParents getSlingLoad getSoundController getSoundControllerResult getSpeed getStamina getStatValue getSuppression getTerrainGrid getTerrainHeightASL getText getTotalDLCUsageTime getUnitLoadout getUnitTrait getUserMFDText getUserMFDvalue getVariable getVehicleCargo getWeaponCargo getWeaponSway getWingsOrientationRTD getWingsPositionRTD getWPPos glanceAt globalChat globalRadio goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId groupOwner groupRadio groupSelectedUnits groupSelectUnit gunner gusts halt handgunItems handgunMagazine handgunWeapon handsHit hasInterface hasPilotCamera hasWeapon hcAllGroups hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup hcShowBar hcShownBar headgear hideBody hideObject hideObjectGlobal hideSelection hint hintC hintCadet hintSilent hmd hostMission htmlLoad HUDMovementLevels humidity image importAllGroups importance in inArea inAreaArray incapacitatedState inflame inflamed infoPanel infoPanelComponentEnabled infoPanelComponents infoPanels inGameUISetEventHandler inheritsFrom initAmbientLife inPolygon inputAction inRangeOfArtillery insertEditorObject intersect is3DEN is3DENMultiplayer isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest isBleeding isBurning isClass isCollisionLightOn isCopilotEnabled isDamageAllowed isDedicated isDLCAvailable isEngineOn isEqualTo isEqualType isEqualTypeAll isEqualTypeAny isEqualTypeArray isEqualTypeParams isFilePatchingEnabled isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader isGroupDeletedWhenEmpty isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn isKeyActive isKindOf isLaserOn isLightOn isLocalized isManualFire isMarkedForCollection isMultiplayer isMultiplayerSolo isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad isPipEnabled isPlayer isRealTime isRemoteExecuted isRemoteExecutedJIP isServer isShowing3DIcons isSimpleObject isSprintAllowed isStaminaEnabled isSteamMission isStreamFriendlyUIEnabled isText isTouchingGround isTurnedOut isTutHintsEnabled isUAVConnectable isUAVConnected isUIContext isUniformAllowed isVehicleCargo isVehicleRadarOn isVehicleSensorEnabled isWalking isWeaponDeployed isWeaponRested itemCargo items itemsWithMagazines join joinAs joinAsSilent joinSilent joinString kbAddDatabase kbAddDatabaseTargets kbAddTopic kbHasTopic kbReact kbRemoveTopic kbTell kbWasSaid keyImage keyName knowsAbout land landAt landResult language laserTarget lbAdd lbClear lbColor lbColorRight lbCurSel lbData lbDelete lbIsSelected lbPicture lbPictureRight lbSelection lbSetColor lbSetColorRight lbSetCurSel lbSetData lbSetPicture lbSetPictureColor lbSetPictureColorDisabled lbSetPictureColorSelected lbSetPictureRight lbSetPictureRightColor lbSetPictureRightColorDisabled lbSetPictureRightColorSelected lbSetSelectColor lbSetSelectColorRight lbSetSelected lbSetText lbSetTextRight lbSetTooltip lbSetValue lbSize lbSort lbSortByValue lbText lbTextRight lbValue leader leaderboardDeInit leaderboardGetRows leaderboardInit leaderboardRequestRowsFriends leaderboardsRequestUploadScore leaderboardsRequestUploadScoreKeepBest leaderboardState leaveVehicle libraryCredits libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed linearConversion lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith linkItem list listObjects listRemoteTargets listVehicleSensors ln lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbSort lnbSortByValue lnbText lnbValue load loadAbs loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform loadVest local localize locationPosition lock lockCameraTo lockCargo lockDriver locked lockedCargo lockedDriver lockedTurret lockIdentity lockTurret lockWP log logEntities logNetwork logNetworkTerminate lookAt lookAtPos magazineCargo magazines magazinesAllTurrets magazinesAmmo magazinesAmmoCargo magazinesAmmoFull magazinesDetail magazinesDetailBackpack magazinesDetailUniform magazinesDetailVest magazinesTurret magazineTurretAmmo mapAnimAdd mapAnimClear mapAnimCommit mapAnimDone mapCenterOnCamera mapGridPosition markAsFinishedOnSteam markerAlpha markerBrush markerColor markerDir markerPos markerShape markerSize markerText markerType max members menuAction menuAdd menuChecked menuClear menuCollapse menuData menuDelete menuEnable menuEnabled menuExpand menuHover menuPicture menuSetAction menuSetCheck menuSetData menuSetPicture menuSetValue menuShortcut menuShortcutText menuSize menuSort menuText menuURL menuValue min mineActive mineDetectedBy missionConfigFile missionDifficulty missionName missionNamespace missionStart missionVersion mod modelToWorld modelToWorldVisual modelToWorldVisualWorld modelToWorldWorld modParams moonIntensity moonPhase morale move move3DENCamera moveInAny moveInCargo moveInCommander moveInDriver moveInGunner moveInTurret moveObjectToEnd moveOut moveTime moveTo moveToCompleted moveToFailed musicVolume name nameSound nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing nearestObject nearestObjects nearestTerrainObjects nearObjects nearObjectsReady nearRoads nearSupplies nearTargets needReload netId netObjNull newOverlay nextMenuItemIndex nextWeatherChange nMenuItems not numberOfEnginesRTD numberToDate objectCurators objectFromNetId objectParent objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch openCuratorInterface openDLCPage openMap openSteamApp openYoutubeVideo or orderGetIn overcast overcastForecast owner param params parseNumber parseSimpleArray parseText parsingNamespace particlesQuality pickWeaponPool pitch pixelGrid pixelGridBase pixelGridNoUIScale pixelH pixelW playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide playersNumber playGesture playMission playMove playMoveNow playMusic playScriptedMission playSound playSound3D position positionCameraToWorld posScreenToWorld posWorldToScreen ppEffectAdjust ppEffectCommit ppEffectCommitted ppEffectCreate ppEffectDestroy ppEffectEnable ppEffectEnabled ppEffectForceInNVG precision preloadCamera preloadObject preloadSound preloadTitleObj preloadTitleRsc preprocessFile preprocessFileLineNumbers primaryWeapon primaryWeaponItems primaryWeaponMagazine priority processDiaryLink productVersion profileName profileNamespace profileNameSteam progressLoadingScreen progressPosition progressSetPosition publicVariable publicVariableClient publicVariableServer pushBack pushBackUnique putWeaponPool queryItemsPool queryMagazinePool queryWeaponPool rad radioChannelAdd radioChannelCreate radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random rank rankId rating rectangular registeredTasks registerTask reload reloadEnabled remoteControl remoteExec remoteExecCall remoteExecutedOwner remove3DENConnection remove3DENEventHandler remove3DENLayer removeAction removeAll3DENEventHandlers removeAllActions removeAllAssignedItems removeAllContainers removeAllCuratorAddons removeAllCuratorCameraAreas removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems removeAllItemsWithMagazines removeAllMissionEventHandlers removeAllMPEventHandlers removeAllMusicEventHandlers removeAllOwnedMines removeAllPrimaryWeaponItems removeAllWeapons removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea removeCuratorEditableObjects removeCuratorEditingArea removeDrawIcon removeDrawLinks removeEventHandler removeFromRemainsCollector removeGoggles removeGroupIcon removeHandgunItem removeHeadgear removeItem removeItemFromBackpack removeItemFromUniform removeItemFromVest removeItems removeMagazine removeMagazineGlobal removeMagazines removeMagazinesTurret removeMagazineTurret removeMenuItem removeMissionEventHandler removeMPEventHandler removeMusicEventHandler removeOwnedMine removePrimaryWeaponItem removeSecondaryWeaponItem removeSimpleTask removeSwitchableUnit removeTeamMember removeUniform removeVest removeWeapon removeWeaponAttachmentCargo removeWeaponCargo removeWeaponGlobal removeWeaponTurret reportRemoteTarget requiredVersion resetCamShake resetSubgroupDirection resize resources respawnVehicle restartEditorCamera reveal revealMine reverse reversedMouseY roadAt roadsConnectedTo roleDescription ropeAttachedObjects ropeAttachedTo ropeAttachEnabled ropeAttachTo ropeCreate ropeCut ropeDestroy ropeDetach ropeEndPosition ropeLength ropes ropeUnwind ropeUnwound rotorsForcesRTD rotorsRpmRTD round runInitScript safeZoneH safeZoneW safeZoneWAbs safeZoneX safeZoneXAbs safeZoneY save3DENInventory saveGame saveIdentity saveJoysticks saveOverlay saveProfileNamespace saveStatus saveVar savingEnabled say say2D say3D scopeName score scoreSide screenshot screenToWorld scriptDone scriptName scudState secondaryWeapon secondaryWeaponItems secondaryWeaponMagazine select selectBestPlaces selectDiarySubject selectedEditorObjects selectEditorObject selectionNames selectionPosition selectLeader selectMax selectMin selectNoPlayer selectPlayer selectRandom selectRandomWeighted selectWeapon selectWeaponTurret sendAUMessage sendSimpleCommand sendTask sendTaskResult sendUDPMessage serverCommand serverCommandAvailable serverCommandExecutable serverName serverTime set set3DENAttribute set3DENAttributes set3DENGrid set3DENIconsVisible set3DENLayer set3DENLinesVisible set3DENLogicType set3DENMissionAttribute set3DENMissionAttributes set3DENModelsVisible set3DENObjectType set3DENSelected setAccTime setActualCollectiveRTD setAirplaneThrottle setAirportSide setAmmo setAmmoCargo setAmmoOnPylon setAnimSpeedCoef setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour setBleedingRemaining setBrakesRTD setCameraInterest setCamShakeDefParams setCamShakeParams setCamUseTI setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation setConvoySeparation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType setCuratorWaypointCost setCurrentChannel setCurrentTask setCurrentWaypoint setCustomAimCoef setCustomWeightRTD setDamage setDammage setDate setDebriefingText setDefaultCamera setDestination setDetailMapBlendPars setDir setDirection setDrawIcon setDriveOnPath setDropInterval setDynamicSimulationDistance setDynamicSimulationDistanceCoef setEditorMode setEditorObjectScope setEffectCondition setEngineRPMRTD setFace setFaceAnimation setFatigue setFeatureType setFlagAnimationPhase setFlagOwner setFlagSide setFlagTexture setFog setFormation setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo setGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible setGroupId setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage setHorizonParallaxCoef setHUDMovementLevels setIdentity setImportance setInfoPanel setLeader setLightAmbient setLightAttenuation setLightBrightness setLightColor setLightDayLight setLightFlareMaxDistance setLightFlareSize setLightIntensity setLightnings setLightUseFlare setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal setMarkerPos setMarkerPosLocal setMarkerShape setMarkerShapeLocal setMarkerSize setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass setMimic setMousePosition setMusicEffect setMusicEventHandler setName setNameSound setObjectArguments setObjectMaterial setObjectMaterialGlobal setObjectProxy setObjectTexture setObjectTextureGlobal setObjectViewDistance setOvercast setOwner setOxygenRemaining setParticleCircle setParticleClass setParticleFire setParticleParams setParticleRandom setPilotCameraDirection setPilotCameraRotation setPilotCameraTarget setPilotLight setPiPEffect setPitch setPlateNumber setPlayable setPlayerRespawnTime setPos setPosASL setPosASL2 setPosASLW setPosATL setPosition setPosWorld setPylonLoadOut setPylonsPriority setRadioMsg setRain setRainbow setRandomLip setRank setRectangular setRepairCargo setRotorBrakeRTD setShadowDistance setShotParents setSide setSimpleTaskAlwaysVisible setSimpleTaskCustomData setSimpleTaskDescription setSimpleTaskDestination setSimpleTaskTarget setSimpleTaskType setSimulWeatherLayers setSize setSkill setSlingLoad setSoundEffect setSpeaker setSpeech setSpeedMode setStamina setStaminaScheme setStatValue setSuppression setSystemOfUnits setTargetAge setTaskMarkerOffset setTaskResult setTaskState setTerrainGrid setText setTimeMultiplier setTitleEffect setTrafficDensity setTrafficDistance setTrafficGap setTrafficSpeed setTriggerActivation setTriggerArea setTriggerStatements setTriggerText setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility setUnitLoadout setUnitPos setUnitPosWeak setUnitRank setUnitRecoilCoefficient setUnitTrait setUnloadInCombat setUserActionText setUserMFDText setUserMFDvalue setVariable setVectorDir setVectorDirAndUp setVectorUp setVehicleAmmo setVehicleAmmoDef setVehicleArmor setVehicleCargo setVehicleId setVehicleLock setVehiclePosition setVehicleRadar setVehicleReceiveRemoteTargets setVehicleReportOwnPosition setVehicleReportRemoteTargets setVehicleTIPars setVehicleVarName setVelocity setVelocityModelSpace setVelocityTransformation setViewDistance setVisibleIfTreeCollapsed setWantedRPMRTD setWaves setWaypointBehaviour setWaypointCombatMode setWaypointCompletionRadius setWaypointDescription setWaypointForceBehaviour setWaypointFormation setWaypointHousePosition setWaypointLoiterRadius setWaypointLoiterType setWaypointName setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout setWaypointType setWaypointVisible setWeaponReloadingTime setWind setWindDir setWindForce setWindStr setWingForceScaleRTD setWPPos show3DIcons showChat showCinemaBorder showCommandingMenu showCompass showCuratorCompass showGPS showHUD showLegend showMap shownArtilleryComputer shownChat shownCompass shownCuratorCompass showNewEditorObject shownGPS shownHUD shownMap shownPad shownRadio shownScoretable shownUAVFeed shownWarrant shownWatch showPad showRadio showScoretable showSubtitles showUAVFeed showWarrant showWatch showWaypoint showWaypoints side sideChat sideEnemy sideFriendly sideRadio simpleTasks simulationEnabled simulCloudDensity simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime sleep sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed sliderSpeed slingLoadAssistantShown soldierMagazines someAmmo sort soundVolume spawn speaker speed speedMode splitString sqrt squadParams stance startLoadingScreen step stop stopEngineRTD stopped str sunOrMoon supportInfo suppressFor surfaceIsWater surfaceNormal surfaceType swimInDepth switchableUnits switchAction switchCamera switchGesture switchLight switchMove synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd synchronizeObjectsRemove synchronizeTrigger synchronizeWaypoint systemChat systemOfUnits tan targetKnowledge targets targetsAggregate targetsQuery taskAlwaysVisible taskChildren taskCompleted taskCustomData taskDescription taskDestination taskHint taskMarkerOffset taskParent taskResult taskState taskType teamMember teamName teams teamSwitch teamSwitchEnabled teamType terminate terrainIntersect terrainIntersectASL terrainIntersectAtASL text textLog textLogFormat tg time timeMultiplier titleCut titleFadeOut titleObj titleRsc titleText toArray toFixed toLower toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle triggerAttachObject triggerAttachVehicle triggerDynamicSimulation triggerStatements triggerText triggerTimeout triggerTimeoutCurrent triggerType turretLocal turretOwner turretUnit tvAdd tvClear tvCollapse tvCollapseAll tvCount tvCurSel tvData tvDelete tvExpand tvExpandAll tvPicture tvSetColor tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetPictureColorDisabled tvSetPictureColorSelected tvSetPictureRight tvSetPictureRightColor tvSetPictureRightColorDisabled tvSetPictureRightColorSelected tvSetText tvSetTooltip tvSetValue tvSort tvSortByValue tvText tvTooltip tvValue type typeName typeOf UAVControl uiNamespace uiSleep unassignCurator unassignItem unassignTeam unassignVehicle underwater uniform uniformContainer uniformItems uniformMagazines unitAddons unitAimPosition unitAimPositionVisual unitBackpack unitIsUAV unitPos unitReady unitRecoilCoefficient units unitsBelowHeight unlinkItem unlockAchievement unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAISteeringComponent useAudioTimeForMoves userInputDisabled vectorAdd vectorCos vectorCrossProduct vectorDiff vectorDir vectorDirVisual vectorDistance vectorDistanceSqr vectorDotProduct vectorFromTo vectorMagnitude vectorMagnitudeSqr vectorModelToWorld vectorModelToWorldVisual vectorMultiply vectorNormalized vectorUp vectorUpVisual vectorWorldToModel vectorWorldToModelVisual vehicle vehicleCargoEnabled vehicleChat vehicleRadio vehicleReceiveRemoteTargets vehicleReportOwnPosition vehicleReportRemoteTargets vehicles vehicleVarName velocity velocityModelSpace verifySignature vest vestContainer vestItems vestMagazines viewDistance visibleCompass visibleGPS visibleMap visiblePosition visiblePositionASL visibleScoretable visibleWatch waves waypointAttachedObject waypointAttachedVehicle waypointAttachObject waypointAttachVehicle waypointBehaviour waypointCombatMode waypointCompletionRadius waypointDescription waypointForceBehaviour waypointFormation waypointHousePosition waypointLoiterRadius waypointLoiterType waypointName waypointPosition waypoints waypointScript waypointsEnabledUAV waypointShow waypointSpeed waypointStatements waypointTimeout waypointTimeoutCurrent waypointType waypointVisible weaponAccessories weaponAccessoriesCargo weaponCargo weaponDirection weaponInertia weaponLowered weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD WFSideText wind ",literal:"blufor civilian configNull controlNull displayNull east endl false grpNull independent lineBreak locationNull nil objNull opfor pi resistance scriptNull sideAmbientLife sideEmpty sideLogic sideUnknown taskNull teamMemberNull true west"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,{className:"variable",begin:/\b_+[a-zA-Z]\w*/},{className:"title",begin:/[a-zA-Z][a-zA-Z0-9]+_fnc_\w*/},t,n],illegal:/#|^\$ /}}},14467:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}function i(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r="("+n.map((function(e){return t(e)})).join("|")+")";return r}e.exports=function(e){var t=e.COMMENT("--","$"),r=["true","false","unknown"],o=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],a=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],s=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],l=a,c=[].concat(["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update ","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],["add","asc","collation","desc","final","first","last","view"]).filter((function(e){return!a.includes(e)})),u={begin:n(/\b/,i.apply(void 0,l),/\s*\(/),keywords:{built_in:l}};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.exceptions,i=t.when,r=i;return n=n||[],e.map((function(e){return e.match(/\|\d+$/)||n.includes(e)?e:r(e)?"".concat(e,"|0"):e}))}(c,{when:function(e){return e.length<3}}),literal:r,type:o,built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"]},contains:[{begin:i.apply(void 0,s),keywords:{$pattern:/[\w\.]+/,keyword:c.concat(s),literal:r,type:o}},{className:"type",begin:i.apply(void 0,["double precision","large object","with timezone","without timezone"])},u,{className:"variable",begin:/@[a-z0-9]+/},{className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/,contains:[{begin:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}}},20109:function(e){e.exports=function(e){var t=e.COMMENT("--","$");return{name:"SQL (more)",aliases:["mysql","oracle"],disableAutodetect:!0,case_insensitive:!0,illegal:/[<>{}*]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",end:/;/,endsWithParent:!0,keywords:{$pattern:/[\w\.]+/,keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:"`",end:"`"},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]}}},68413:function(e){e.exports=function(e){return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:["functions","model","data","parameters","quantities","transformed","generated"],keyword:["for","in","if","else","while","break","continue","return"].concat(["int","real","vector","ordered","positive_ordered","simplex","unit_vector","row_vector","matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"]).concat(["print","reject","increment_log_prob|10","integrate_ode|10","integrate_ode_rk45|10","integrate_ode_bdf|10","algebra_solver"]),built_in:["Phi","Phi_approx","abs","acos","acosh","algebra_solver","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bernoulli_cdf","bernoulli_lccdf","bernoulli_lcdf","bernoulli_logit_lpmf","bernoulli_logit_rng","bernoulli_lpmf","bernoulli_rng","bessel_first_kind","bessel_second_kind","beta_binomial_cdf","beta_binomial_lccdf","beta_binomial_lcdf","beta_binomial_lpmf","beta_binomial_rng","beta_cdf","beta_lccdf","beta_lcdf","beta_lpdf","beta_rng","binary_log_loss","binomial_cdf","binomial_coefficient_log","binomial_lccdf","binomial_lcdf","binomial_logit_lpmf","binomial_lpmf","binomial_rng","block","categorical_logit_lpmf","categorical_logit_rng","categorical_lpmf","categorical_rng","cauchy_cdf","cauchy_lccdf","cauchy_lcdf","cauchy_lpdf","cauchy_rng","cbrt","ceil","chi_square_cdf","chi_square_lccdf","chi_square_lcdf","chi_square_lpdf","chi_square_rng","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","cos","cosh","cov_exp_quad","crossprod","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","determinant","diag_matrix","diag_post_multiply","diag_pre_multiply","diagonal","digamma","dims","dirichlet_lpdf","dirichlet_rng","distance","dot_product","dot_self","double_exponential_cdf","double_exponential_lccdf","double_exponential_lcdf","double_exponential_lpdf","double_exponential_rng","e","eigenvalues_sym","eigenvectors_sym","erf","erfc","exp","exp2","exp_mod_normal_cdf","exp_mod_normal_lccdf","exp_mod_normal_lcdf","exp_mod_normal_lpdf","exp_mod_normal_rng","expm1","exponential_cdf","exponential_lccdf","exponential_lcdf","exponential_lpdf","exponential_rng","fabs","falling_factorial","fdim","floor","fma","fmax","fmin","fmod","frechet_cdf","frechet_lccdf","frechet_lcdf","frechet_lpdf","frechet_rng","gamma_cdf","gamma_lccdf","gamma_lcdf","gamma_lpdf","gamma_p","gamma_q","gamma_rng","gaussian_dlm_obs_lpdf","get_lp","gumbel_cdf","gumbel_lccdf","gumbel_lcdf","gumbel_lpdf","gumbel_rng","head","hypergeometric_lpmf","hypergeometric_rng","hypot","inc_beta","int_step","integrate_ode","integrate_ode_bdf","integrate_ode_rk45","inv","inv_Phi","inv_chi_square_cdf","inv_chi_square_lccdf","inv_chi_square_lcdf","inv_chi_square_lpdf","inv_chi_square_rng","inv_cloglog","inv_gamma_cdf","inv_gamma_lccdf","inv_gamma_lcdf","inv_gamma_lpdf","inv_gamma_rng","inv_logit","inv_sqrt","inv_square","inv_wishart_lpdf","inv_wishart_rng","inverse","inverse_spd","is_inf","is_nan","lbeta","lchoose","lgamma","lkj_corr_cholesky_lpdf","lkj_corr_cholesky_rng","lkj_corr_lpdf","lkj_corr_rng","lmgamma","lmultiply","log","log10","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log2","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_mix","log_rising_factorial","log_softmax","log_sum_exp","logistic_cdf","logistic_lccdf","logistic_lcdf","logistic_lpdf","logistic_rng","logit","lognormal_cdf","lognormal_lccdf","lognormal_lcdf","lognormal_lpdf","lognormal_rng","machine_precision","matrix_exp","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multi_gp_cholesky_lpdf","multi_gp_lpdf","multi_normal_cholesky_lpdf","multi_normal_cholesky_rng","multi_normal_lpdf","multi_normal_prec_lpdf","multi_normal_rng","multi_student_t_lpdf","multi_student_t_rng","multinomial_lpmf","multinomial_rng","multiply_log","multiply_lower_tri_self_transpose","neg_binomial_2_cdf","neg_binomial_2_lccdf","neg_binomial_2_lcdf","neg_binomial_2_log_lpmf","neg_binomial_2_log_rng","neg_binomial_2_lpmf","neg_binomial_2_rng","neg_binomial_cdf","neg_binomial_lccdf","neg_binomial_lcdf","neg_binomial_lpmf","neg_binomial_rng","negative_infinity","normal_cdf","normal_lccdf","normal_lcdf","normal_lpdf","normal_rng","not_a_number","num_elements","ordered_logistic_lpmf","ordered_logistic_rng","owens_t","pareto_cdf","pareto_lccdf","pareto_lcdf","pareto_lpdf","pareto_rng","pareto_type_2_cdf","pareto_type_2_lccdf","pareto_type_2_lcdf","pareto_type_2_lpdf","pareto_type_2_rng","pi","poisson_cdf","poisson_lccdf","poisson_lcdf","poisson_log_lpmf","poisson_log_rng","poisson_lpmf","poisson_rng","positive_infinity","pow","print","prod","qr_Q","qr_R","quad_form","quad_form_diag","quad_form_sym","rank","rayleigh_cdf","rayleigh_lccdf","rayleigh_lcdf","rayleigh_lpdf","rayleigh_rng","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scaled_inv_chi_square_cdf","scaled_inv_chi_square_lccdf","scaled_inv_chi_square_lcdf","scaled_inv_chi_square_lpdf","scaled_inv_chi_square_rng","sd","segment","sin","singular_values","sinh","size","skew_normal_cdf","skew_normal_lccdf","skew_normal_lcdf","skew_normal_lpdf","skew_normal_rng","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","sqrt2","square","squared_distance","step","student_t_cdf","student_t_lccdf","student_t_lcdf","student_t_lpdf","student_t_rng","sub_col","sub_row","sum","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_cdf","uniform_lccdf","uniform_lcdf","uniform_lpdf","uniform_rng","variance","von_mises_lpdf","von_mises_rng","weibull_cdf","weibull_lccdf","weibull_lcdf","weibull_lpdf","weibull_rng","wiener_lpdf","wishart_lpdf","wishart_rng"]},contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/#/,/$/,{relevance:0,keywords:{"meta-keyword":"include"}}),e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{className:"doctag",begin:/@(return|param)/}]}),{begin:/<\s*lower\s*=/,keywords:"lower"},{begin:/[<,]\s*upper\s*=/,keywords:"upper"},{className:"keyword",begin:/\btarget\s*\+=/,relevance:10},{begin:"~\\s*("+e.IDENT_RE+")\\s*\\(",keywords:["bernoulli","bernoulli_logit","beta","beta_binomial","binomial","binomial_logit","categorical","categorical_logit","cauchy","chi_square","dirichlet","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","lkj_corr","lkj_corr_cholesky","logistic","lognormal","multi_gp","multi_gp_cholesky","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_t","multinomial","neg_binomial","neg_binomial_2","neg_binomial_2_log","normal","ordered_logistic","pareto","pareto_type_2","poisson","poisson_log","rayleigh","scaled_inv_chi_square","skew_normal","student_t","uniform","von_mises","weibull","wiener","wishart"]},{className:"number",variants:[{begin:/\b\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/},{begin:/\.\d+(?:[eE][+-]?\d+)?\b/}],relevance:0},{className:"string",begin:'"',end:'"',relevance:0}]}}},10250:function(e){e.exports=function(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/},{className:"string",variants:[{begin:'`"[^\r\n]*?"\''},{begin:'"[^\r\n"]*"'}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ \t]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}},90716:function(e){e.exports=function(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:"HEADER ENDSEC DATA"},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}},89914:function(e){var t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],r=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();e.exports=function(e){var a=function(e){return{IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}}(e),s={className:"variable",begin:"\\$"+e.IDENT_RE},l="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,(])",className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,(])",className:"selector-id"},{begin:"\\b("+t.join("|")+")"+l,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+i.join("|")+")"+l},{className:"selector-pseudo",begin:"&?::("+r.join("|")+")"+l},a.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:n.join(" ")},contains:[e.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"].join("|")+"))\\b"},s,e.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[a.HEXCOLOR,s,e.APOS_STRING_MODE,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+o.join("|")+")\\b",starts:{end:/;|$/,contains:[a.HEXCOLOR,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a.IMPORTANT],illegal:/\./,relevance:0}}]}}},97972:function(e){e.exports=function(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:"\\[\n(multipart)?",end:"\\]\n"},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}},67689:function(e,t,n){var i=n(74704).default,r=n(861).default;function o(e){return e?"string"===typeof e?e:e.source:null}function a(e){return s("(?=",e,")")}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.map((function(e){return o(e)})).join("");return i}function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i="("+t.map((function(e){return o(e)})).join("|")+")";return i}var c=function(e){return s(/\b/,e,/\w$/.test(e)?/\b/:/\B/)},u=["Protocol","Type"].map(c),d=["init","self"].map(c),h=["Any","Self"],f=["associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],p=["false","nil","true"],g=["assignment","associativity","higherThan","left","lowerThan","none","right"],v=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],m=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],y=l(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),_=l(y,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=s(y,_,"*"),C=l(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),S=l(C,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),w=s(C,S,"*"),k=s(/[A-Z]/,S,"*"),x=["autoclosure",s(/convention\(/,l("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",s(/objc\(/,w,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","testable","UIApplicationMain","unknown","usableFromInline"],E=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];e.exports=function(e){var t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),o=[e.C_LINE_COMMENT_MODE,n],y={className:"keyword",begin:s(/\./,a(l.apply(void 0,r(u).concat(r(d))))),end:l.apply(void 0,r(u).concat(r(d))),excludeBegin:!0},C={match:s(/\./,l.apply(void 0,f)),relevance:0},T=f.filter((function(e){return"string"===typeof e})).concat(["_|0"]),N=f.filter((function(e){return"string"!==typeof e})).concat(h).map(c),I={variants:[{className:"keyword",match:l.apply(void 0,r(N).concat(r(d)))}]},D={$pattern:l(/\b\w+/,/#\w+/),keyword:T.concat(v),literal:p},L=[y,C,I],O=[{match:s(/\./,l.apply(void 0,m)),relevance:0},{className:"built_in",match:s(/\b/,l.apply(void 0,m),/(?=\()/)}],R={match:/->/,relevance:0},A=[R,{className:"operator",relevance:0,variants:[{match:b},{match:"\\.(\\.|".concat(_,")+")}]}],M="([0-9]_*)+",P="([0-9a-fA-F]_*)+",Z={className:"number",relevance:0,variants:[{match:"\\b(".concat(M,")(\\.(").concat(M,"))?")+"([eE][+-]?(".concat(M,"))?\\b")},{match:"\\b0x(".concat(P,")(\\.(").concat(P,"))?")+"([pP][+-]?(".concat(M,"))?\\b")},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{className:"subst",variants:[{match:s(/\\/,e,/[0\\tnr"']/)},{match:s(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{className:"subst",match:s(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{className:"subst",label:"interpol",begin:s(/\\/,e,/\(/),end:/\)/}},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{begin:s(e,/"""/),end:s(/"""/,e),contains:[F(e),B(e),H(e)]}},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{begin:s(e,/"/),end:s(/"/,e),contains:[F(e),H(e)]}},V={className:"string",variants:[z(),z("#"),z("##"),z("###"),j(),j("#"),j("##"),j("###")]},W={match:s(/`/,w,/`/)},U=[W,{className:"variable",match:/\$\d+/},{className:"variable",match:"\\$".concat(S,"+")}],G=[{match:/(@|#)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:E,contains:[].concat(A,[Z,V])}]}},{className:"keyword",match:s(/@/,l.apply(void 0,x))},{className:"meta",match:s(/@/,w)}],K={match:a(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:s(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,S,"+")},{className:"type",match:k,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:s(/\s+&\s+/,a(k)),relevance:0}]},Y={begin:/</,end:/>/,keywords:D,contains:[].concat(o,L,G,[R,K])};K.contains.push(Y);var q,$={begin:/\(/,end:/\)/,relevance:0,keywords:D,contains:["self",{match:s(w,/\s*:/),keywords:"_|0",relevance:0}].concat(o,L,O,A,[Z,V],U,G,[K])},X={beginKeywords:"func",contains:[{className:"title",match:l(W.match,w,b),endsParent:!0,relevance:0},t]},Q={begin:/</,end:/>/,contains:[].concat(o,[K])},J={begin:/\(/,end:/\)/,keywords:D,contains:[{begin:l(a(s(w,/\s*:/)),a(s(w,/\s+/,w,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:w}]}].concat(o,L,A,[Z,V],G,[K,$]),endsParent:!0,illegal:/["']/},ee={className:"function",match:a(/\bfunc\b/),contains:[X,Q,J,t],illegal:[/\[/,/%/]},te={className:"function",match:/\b(subscript|init[?!]?)\s*(?=[<(])/,keywords:{keyword:"subscript init init? init!",$pattern:/\w+[?!]?/},contains:[Q,J,t],illegal:/\[|%/},ne={beginKeywords:"operator",end:e.MATCH_NOTHING_RE,contains:[{className:"title",match:b,endsParent:!0,relevance:0}]},ie={beginKeywords:"precedencegroup",end:e.MATCH_NOTHING_RE,contains:[{className:"title",match:k,relevance:0},{begin:/{/,end:/}/,relevance:0,endsParent:!0,keywords:[].concat(g,p),contains:[K]}]},re=i(V.variants);try{for(re.s();!(q=re.n()).done;){var oe=q.value.contains.find((function(e){return"interpol"===e.label}));oe.keywords=D;var ae=[].concat(L,O,A,[Z,V],U);oe.contains=[].concat(r(ae),[{begin:/\(/,end:/\)/,contains:["self"].concat(r(ae))}])}}catch(se){re.e(se)}finally{re.f()}return{name:"Swift",keywords:D,contains:[].concat(o,[ee,te,{className:"class",beginKeywords:"struct protocol class extension enum",end:"\\{",excludeEnd:!0,keywords:D,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/})].concat(L)},ne,ie,{beginKeywords:"import",end:/$/,contains:[].concat(o),relevance:0}],L,O,A,[Z,V],U,G,[K,$])}}},38073:function(e){e.exports=function(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\(/,end:/\)/,contains:["self",{begin:/\\./}]}],relevance:10},{className:"keyword",begin:/\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,end:/\(/,excludeEnd:!0},{className:"variable",begin:/%[_a-zA-Z0-9:]*/,end:"%"},{className:"symbol",begin:/\\./}]}}},55913:function(e){e.exports=function(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}},97125:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}e.exports=function(e){var t,i=/[a-zA-Z_][a-zA-Z0-9_]*/,r={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:n(/\$/,(t=/::/,n("(",t,")?")),i,"(::",i,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[r]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r]}}},54938:function(e){e.exports=function(e){var t="bool byte i16 i32 i64 double string binary";return{name:"Thrift",keywords:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:t,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",end:">",keywords:t,contains:["self"]}]}}},99115:function(e){e.exports=function(e){var t={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"};return{name:"TP",keywords:{keyword:"ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN SUBSTR FINDSTR VOFFSET PROG ATTR MN POS",literal:"ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET"},contains:[{className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,n]},{className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,n]},{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}},78099:function(e){e.exports=function(e){var t="attribute block constant cycle date dump include max min parent random range source template_from_string",n={beginKeywords:t,keywords:{name:t},relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},i={begin:/\|[A-Za-z_]+:?/,keywords:"abs batch capitalize column convert_encoding date date_modify default escape filter first format inky_to_html inline_css join json_encode keys last length lower map markdown merge nl2br number_format raw reduce replace reverse round slice sort spaceless split striptags title trim upper url_encode",contains:[n]},r="apply autoescape block deprecated do embed extends filter flush for from if import include macro sandbox set use verbatim with";return r=r+" "+r.split(" ").map((function(e){return"end"+e})).join(" "),{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:r,starts:{endsWithParent:!0,contains:[i,n],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",i,n]}]}}},94888:function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],i=["true","false","null","undefined","NaN","Infinity"],r=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function o(e){return e?"string"===typeof e?e:e.source:null}function a(e){return s("(?=",e,")")}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.map((function(e){return o(e)})).join("");return i}e.exports=function(e){var o={$pattern:t,keyword:n.concat(["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"]),literal:i,built_in:r.concat(["any","void","number","boolean","string","object","never","enum"])},l={className:"meta",begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},c=function(e,t,n){var i=e.contains.findIndex((function(e){return e.label===t}));if(-1===i)throw new Error("can not find mode to replace");e.contains.splice(i,1,n)},u=function(e){var o=t,l="<>",c="</>",u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:function(e,t){var n=e[0].length+e.index,i=e.input[n];"<"!==i?">"===i&&(function(e,t){var n=t.after,i="</"+e[0].slice(1);return-1!==e.input.indexOf(i,n)}(e,{after:n})||t.ignoreMatch()):t.ignoreMatch()}},d={$pattern:t,keyword:n,literal:i,built_in:r},h="[0-9](_?[0-9])*",f="\\.(".concat(h,")"),p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:"(\\b(".concat(p,")((").concat(f,")|\\.)?|(").concat(f,"))")+"[eE][+-]?(".concat(h,")\\b")},{begin:"\\b(".concat(p,")\\b((").concat(f,")\\b|\\.)?|(").concat(f,")\\b")},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},m={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,v],subLanguage:"css"}},_={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,v]},b={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},C=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,y,_,g,e.REGEXP_MODE];v.contains=C.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(C)});var S=[].concat(b,v.contains),w=S.concat([{begin:/\(/,end:/\)/,keywords:d,contains:["self"].concat(S)}]),k={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:w};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:w},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,y,_,b,g,{begin:s(/[{,\n]\s*/,a(s(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,o+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:o+a("\\s*:"),relevance:0}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[b,e.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:w}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:l,end:c},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:d,contains:["self",e.inherit(e.TITLE_MODE,{begin:o}),k],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[k,e.inherit(e.TITLE_MODE,{begin:o})]},{variants:[{begin:"\\."+o},{begin:"\\$"+o}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:o}),"self",k]},{begin:"(get|set)\\s+(?="+o+"\\()",end:/\{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:o}),{begin:/\(\)/},k]},{begin:/\$[(.]/}]}}(e);return Object.assign(u.keywords,o),u.exports.PARAMS_CONTAINS.push(l),u.contains=u.contains.concat([l,{beginKeywords:"namespace",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"}]),c(u,"shebang",e.SHEBANG()),c(u,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/}),u.contains.find((function(e){return"function"===e.className})).relevance=0,Object.assign(u,{name:"TypeScript",aliases:["ts","tsx"]}),u}},61936:function(e){e.exports=function(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$",relevance:2}]}}},61608:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}function i(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r="("+n.map((function(e){return t(e)})).join("|")+")";return r}e.exports=function(e){var t=/\d{1,2}\/\d{1,2}\/\d{4}/,r=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,a=/\d{1,2}(:\d{1,2}){1,2}/,s={className:"literal",variants:[{begin:n(/# */,i(r,t),/ *#/)},{begin:n(/# */,a,/ *#/)},{begin:n(/# */,o,/ *#/)},{begin:n(/# */,i(r,t),/ +/,i(o,a),/ *#/)}]},l=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),c=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[{className:"string",begin:/"(""|[^/n])"C\b/},{className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s,{className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},{className:"label",begin:/^\w+:/},l,c,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{"meta-keyword":"const disable else elseif enable end externalsource if region then"},contains:[c]}]}}},81434:function(e){e.exports=function(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}},65827:function(e,t,n){var i=n(861).default;function r(e){return e?"string"===typeof e?e:e.source:null}function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.map((function(e){return r(e)})).join("");return i}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i="("+t.map((function(e){return r(e)})).join("|")+")";return i}e.exports=function(e){var t="lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid split cint sin datepart ltrim sqr time derived eval date formatpercent exp inputbox left ascw chrw regexp cstr err".split(" ");return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],literal:"true false null nothing empty"},illegal:"//",contains:[{begin:o(a.apply(void 0,i(t)),"\\s*\\("),relevance:0,keywords:{built_in:t}},e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}},72683:function(e){e.exports=function(e){return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:{$pattern:/[\w\$]+/,keyword:"accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf|0 bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate|5 genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor",literal:"null",built_in:"$finish $stop $exit $fatal $error $warning $info $realtime $time $printtimescale $bitstoreal $bitstoshortreal $itor $signed $cast $bits $stime $timeformat $realtobits $shortrealtobits $rtoi $unsigned $asserton $assertkill $assertpasson $assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff $assertfailoff $assertvacuousoff $isunbounded $sampled $fell $changed $past_gclk $fell_gclk $changed_gclk $rising_gclk $steady_gclk $coverage_control $coverage_get $coverage_save $set_coverage_db_name $rose $stable $past $rose_gclk $stable_gclk $future_gclk $falling_gclk $changing_gclk $display $coverage_get_max $coverage_merge $get_coverage $load_coverage_db $typename $unpacked_dimensions $left $low $increment $clog2 $ln $log10 $exp $sqrt $pow $floor $ceil $sin $cos $tan $countbits $onehot $isunknown $fatal $warning $dimensions $right $high $size $asin $acos $atan $atan2 $hypot $sinh $cosh $tanh $asinh $acosh $atanh $countones $onehot0 $error $info $random $dist_chi_square $dist_erlang $dist_exponential $dist_normal $dist_poisson $dist_t $dist_uniform $q_initialize $q_remove $q_exam $async$and$array $async$nand$array $async$or$array $async$nor$array $sync$and$array $sync$nand$array $sync$or$array $sync$nor$array $q_add $q_full $psprintf $async$and$plane $async$nand$plane $async$or$plane $async$nor$plane $sync$and$plane $sync$nand$plane $sync$or$plane $sync$nor$plane $system $display $displayb $displayh $displayo $strobe $strobeb $strobeh $strobeo $write $readmemb $readmemh $writememh $value$plusargs $dumpvars $dumpon $dumplimit $dumpports $dumpportson $dumpportslimit $writeb $writeh $writeo $monitor $monitorb $monitorh $monitoro $writememb $dumpfile $dumpoff $dumpall $dumpflush $dumpportsoff $dumpportsall $dumpportsflush $fclose $fdisplay $fdisplayb $fdisplayh $fdisplayo $fstrobe $fstrobeb $fstrobeh $fstrobeo $swrite $swriteb $swriteh $swriteo $fscanf $fread $fseek $fflush $feof $fopen $fwrite $fwriteb $fwriteh $fwriteo $fmonitor $fmonitorb $fmonitorh $fmonitoro $sformat $sformatf $fgetc $ungetc $fgets $sscanf $rewind $ftell $ferror"},contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"\\b((\\d+'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\B(('(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\b([0-9_])+",relevance:0}]},{className:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{className:"meta",begin:"`",end:"$",keywords:{"meta-keyword":"define __FILE__ __LINE__ begin_keywords celldefine default_nettype define else elsif end_keywords endcelldefine endif ifdef ifndef include line nounconnected_drive pragma resetall timescale unconnected_drive undef undefineall"},relevance:0}]}}},9047:function(e){e.exports=function(e){return{name:"VHDL",case_insensitive:!0,keywords:{keyword:"abs access after alias all and architecture array assert assume assume_guarantee attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package parameter port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable view vmode vprop vunit wait when while with xnor xor",built_in:"boolean bit character integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_logic std_logic_vector unsigned signed boolean_vector integer_vector std_ulogic std_ulogic_vector unresolved_unsigned u_unsigned unresolved_signed u_signed real_vector time_vector",literal:"false true note warning error failure line text side width"},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:"\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}},77924:function(e){e.exports=function(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]*/},{className:"function",beginKeywords:"function function!",end:"$",relevance:0,contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}},8966:function(e){e.exports=function(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}},48579:function(e){e.exports=function(e){var t={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:"if then else do while until for loop import with is as where when by data constant integer real text name boolean symbol infix prefix postfix block tree",literal:"true false nil",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts"},n={className:"string",begin:'"',end:'"',illegal:"\\n"},i={beginKeywords:"import",end:"$",keywords:t,contains:[n]},r={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:t}})]};return{name:"XL",aliases:["tao"],keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:"<<",end:">>"},r,i,{className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},e.NUMBER_MODE]}}},31107:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(e){return i("(?=",e,")")}function i(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.map((function(e){return t(e)})).join("");return r}function r(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r="("+n.map((function(e){return t(e)})).join("|")+")";return r}e.exports=function(e){var t=i(/[A-Z_]/,i("(",/[A-Z0-9_.-]*:/,")?"),/[A-Z0-9_.-]*/),o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(a,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"meta-string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[A-Za-z0-9._:-]+/,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,c,l,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,s,c,l]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i(/</,n(i(t,r(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:u}]},{className:"tag",begin:i(/<\//,n(i(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}},5554:function(e){e.exports=function(e){return{name:"XQuery",aliases:["xpath","xq"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:"module schema namespace boundary-space preserve no-preserve strip default collation base-uri ordering context decimal-format decimal-separator copy-namespaces empty-sequence except exponent-separator external grouping-separator inherit no-inherit lax minus-sign per-mille percent schema-attribute schema-element strict unordered zero-digit declare import option function validate variable for at in let where order group by return if then else tumbling sliding window start when only end previous next stable ascending descending allowing empty greatest least some every satisfies switch case typeswitch try catch and or to union intersect instance of treat as castable cast map array delete insert into replace value rename copy modify update",type:"item document-node node attribute document element comment namespace namespace-node processing-instruction text construction xs:anyAtomicType xs:untypedAtomic xs:duration xs:time xs:decimal xs:float xs:double xs:gYearMonth xs:gYear xs:gMonthDay xs:gMonth xs:gDay xs:boolean xs:base64Binary xs:hexBinary xs:anyURI xs:QName xs:NOTATION xs:dateTime xs:dateTimeStamp xs:date xs:string xs:normalizedString xs:token xs:language xs:NMTOKEN xs:Name xs:NCName xs:ID xs:IDREF xs:ENTITY xs:integer xs:nonPositiveInteger xs:negativeInteger xs:long xs:int xs:short xs:byte xs:nonNegativeInteger xs:unisignedLong xs:unsignedInt xs:unsignedShort xs:unsignedByte xs:positiveInteger xs:yearMonthDuration xs:dayTimeDuration",literal:"eq ne lt le gt ge is self:: child:: descendant:: descendant-or-self:: attribute:: following:: following-sibling:: parent:: ancestor:: ancestor-or-self:: preceding:: preceding-sibling:: NaN"},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}},37712:function(e){e.exports=function(e){var t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},r=e.inherit(i,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),o={className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},a={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},s={begin:/\{/,end:/\}/,contains:[a],illegal:"\\n",relevance:0},l={begin:"\\[",end:"\\]",contains:[a],illegal:"\\n",relevance:0},c=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},o,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},s,l,i],u=[].concat(c);return u.pop(),u.push(r),a.contains=u,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:c}}},95772:function(e){e.exports=function(e){var t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n=e.UNDERSCORE_TITLE_MODE,i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},r="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:r,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[n,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:["self",e.C_BLOCK_COMMENT_MODE,t,i]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},n]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[n]},{beginKeywords:"use",end:/;/,contains:[n]},{begin:/=>/},t,i]}}},57381:function(e,t,n){e=n.nmd(e);var i="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[o]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[a]=u["[object Map]"]=u["[object Number]"]=u[s]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,f=d||h||Function("return this")(),p=t&&!t.nodeType&&t,g=p&&e&&!e.nodeType&&e,v=g&&g.exports===p,m=v&&d.process,y=function(){try{var e=g&&g.require&&g.require("util").types;return e||m&&m.binding&&m.binding("util")}catch(t){}}(),_=y&&y.isTypedArray;function b(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var C,S,w=Array.prototype,k=Function.prototype,x=Object.prototype,E=f["__core-js_shared__"],T=k.toString,N=x.hasOwnProperty,I=function(){var e=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),D=x.toString,L=T.call(Object),O=RegExp("^"+T.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=v?f.Buffer:void 0,A=f.Symbol,M=f.Uint8Array,P=R?R.allocUnsafe:void 0,Z=(C=Object.getPrototypeOf,S=Object,function(e){return C(S(e))}),F=Object.create,B=x.propertyIsEnumerable,H=w.splice,z=A?A.toStringTag:void 0,j=function(){try{var e=pe(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),V=R?R.isBuffer:void 0,W=Math.max,U=Date.now,G=pe(f,"Map"),K=pe(Object,"create"),Y=function(){function e(){}return function(t){if(!Ee(t))return{};if(F)return F(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Q(e){var t=this.__data__=new $(e);this.size=t.size}function J(e,t){var n=Ce(e),i=!n&&be(e),r=!n&&!i&&we(e),o=!n&&!i&&!r&&Ne(e),a=n||i||r||o,s=a?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],l=s.length;for(var c in e)!t&&!N.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ge(c,l))||s.push(c);return s}function ee(e,t,n){(void 0!==n&&!_e(e[t],n)||void 0===n&&!(t in e))&&ie(e,t,n)}function te(e,t,n){var i=e[t];N.call(e,t)&&_e(i,n)&&(void 0!==n||t in e)||ie(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(_e(e[n][0],t))return n;return-1}function ie(e,t,n){"__proto__"==t&&j?j(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}q.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},q.prototype.get=function(e){var t=this.__data__;if(K){var n=t[e];return n===i?void 0:n}return N.call(t,e)?t[e]:void 0},q.prototype.has=function(e){var t=this.__data__;return K?void 0!==t[e]:N.call(t,e)},q.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=K&&void 0===t?i:t,this},$.prototype.clear=function(){this.__data__=[],this.size=0},$.prototype.delete=function(e){var t=this.__data__,n=ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():H.call(t,n,1),--this.size,!0)},$.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},$.prototype.has=function(e){return ne(this.__data__,e)>-1},$.prototype.set=function(e,t){var n=this.__data__,i=ne(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(G||$),string:new q}},X.prototype.delete=function(e){var t=fe(this,e).delete(e);return this.size-=t?1:0,t},X.prototype.get=function(e){return fe(this,e).get(e)},X.prototype.has=function(e){return fe(this,e).has(e)},X.prototype.set=function(e,t){var n=fe(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Q.prototype.clear=function(){this.__data__=new $,this.size=0},Q.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Q.prototype.get=function(e){return this.__data__.get(e)},Q.prototype.has=function(e){return this.__data__.has(e)},Q.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $){var i=n.__data__;if(!G||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new X(i)}return n.set(e,t),this.size=n.size,this};var re,oe=function(e,t,n){for(var i=-1,r=Object(e),o=n(e),a=o.length;a--;){var s=o[re?a:++i];if(!1===t(r[s],s,r))break}return e};function ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?function(e){var t=N.call(e,z),n=e[z];try{e[z]=void 0;var i=!0}catch(o){}var r=D.call(e);i&&(t?e[z]=n:delete e[z]);return r}(e):function(e){return D.call(e)}(e)}function se(e){return Te(e)&&ae(e)==o}function le(e){return!(!Ee(e)||function(e){return!!I&&I in e}(e))&&(ke(e)?O:l).test(function(e){if(null!=e){try{return T.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function ce(e){if(!Ee(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ve(e),n=[];for(var i in e)("constructor"!=i||!t&&N.call(e,i))&&n.push(i);return n}function ue(e,t,n,i,r){e!==t&&oe(t,(function(o,a){if(r||(r=new Q),Ee(o))!function(e,t,n,i,r,o,a){var l=me(e,n),c=me(t,n),u=a.get(c);if(u)return void ee(e,n,u);var d=o?o(l,c,n+"",e,t,a):void 0,h=void 0===d;if(h){var f=Ce(c),p=!f&&we(c),g=!f&&!p&&Ne(c);d=c,f||p||g?Ce(l)?d=l:Te(v=l)&&Se(v)?d=function(e,t){var n=-1,i=e.length;t||(t=Array(i));for(;++n<i;)t[n]=e[n];return t}(l):p?(h=!1,d=function(e,t){if(t)return e.slice();var n=e.length,i=P?P(n):new e.constructor(n);return e.copy(i),i}(c,!0)):g?(h=!1,d=function(e,t){var n=t?function(e){var t=new e.constructor(e.byteLength);return new M(t).set(new M(e)),t}(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(c,!0)):d=[]:function(e){if(!Te(e)||ae(e)!=s)return!1;var t=Z(e);if(null===t)return!0;var n=N.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&T.call(n)==L}(c)||be(c)?(d=l,be(l)?d=function(e){return function(e,t,n,i){var r=!n;n||(n={});var o=-1,a=t.length;for(;++o<a;){var s=t[o],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),r?ie(n,s,l):te(n,s,l)}return n}(e,Ie(e))}(l):Ee(l)&&!ke(l)||(d=function(e){return"function"!=typeof e.constructor||ve(e)?{}:Y(Z(e))}(c))):h=!1}var v;h&&(a.set(c,d),r(d,c,i,o,a),a.delete(c));ee(e,n,d)}(e,t,a,n,ue,i,r);else{var l=i?i(me(e,a),o,a+"",e,t,r):void 0;void 0===l&&(l=o),ee(e,a,l)}}),Ie)}function de(e,t){return ye(function(e,t,n){return t=W(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=W(i.length-t,0),a=Array(o);++r<o;)a[r]=i[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=i[r];return s[t]=n(a),b(e,this,s)}}(e,t,Oe),e+"")}var he=j?function(e,t){return j(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Oe;function fe(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function pe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return le(n)?n:void 0}function ge(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&c.test(e))&&e>-1&&e%1==0&&e<t}function ve(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||x)}function me(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var ye=function(e){var t=0,n=0;return function(){var i=U(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(he);function _e(e,t){return e===t||e!==e&&t!==t}var be=se(function(){return arguments}())?se:function(e){return Te(e)&&N.call(e,"callee")&&!B.call(e,"callee")},Ce=Array.isArray;function Se(e){return null!=e&&xe(e.length)&&!ke(e)}var we=V||function(){return!1};function ke(e){if(!Ee(e))return!1;var t=ae(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function xe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Te(e){return null!=e&&"object"==typeof e}var Ne=_?function(e){return function(t){return e(t)}}(_):function(e){return Te(e)&&xe(e.length)&&!!u[ae(e)]};function Ie(e){return Se(e)?J(e,!0):ce(e)}var De,Le=(De=function(e,t,n){ue(e,t,n)},de((function(e,t){var n=-1,i=t.length,r=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(r=De.length>3&&"function"==typeof r?(i--,r):void 0,o&&function(e,t,n){if(!Ee(n))return!1;var i=typeof t;return!!("number"==i?Se(n)&&ge(t,n.length):"string"==i&&t in n)&&_e(n[t],e)}(t[0],t[1],o)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var a=t[n];a&&De(e,a,n,r)}return e})));function Oe(e){return e}e.exports=Le},62232:function(e){var t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,r=/^0o[0-7]+$/i,o=parseInt,a=Object.prototype.toString;function s(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==a.call(e)}(e))return NaN;if(s(e)){var l="function"==typeof e.valueOf?e.valueOf():e;e=s(l)?l+"":l}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var c=i.test(e);return c||r.test(e)?o(e.slice(2),c?2:8):n.test(e)?NaN:+e}},50908:function(e,t,n){var i=n(68136)(n(97009),"DataView");e.exports=i},29676:function(e,t,n){var i=n(85403),r=n(62747),o=n(16037),a=n(94154),s=n(77728);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},38384:function(e,t,n){var i=n(43894),r=n(8699),o=n(64957),a=n(87184),s=n(87109);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},95797:function(e,t,n){var i=n(68136)(n(97009),"Map");e.exports=i},78059:function(e,t,n){var i=n(34086),r=n(9255),o=n(29186),a=n(13423),s=n(73739);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},78319:function(e,t,n){var i=n(68136)(n(97009),"Promise");e.exports=i},23924:function(e,t,n){var i=n(68136)(n(97009),"Set");e.exports=i},20692:function(e,t,n){var i=n(78059),r=n(35774),o=n(41596);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=o,e.exports=a},22854:function(e,t,n){var i=n(38384),r=n(20511),o=n(50835),a=n(90707),s=n(18832),l=n(35077);function c(e){var t=this.__data__=new i(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},87197:function(e,t,n){var i=n(97009).Symbol;e.exports=i},46219:function(e,t,n){var i=n(97009).Uint8Array;e.exports=i},7091:function(e,t,n){var i=n(68136)(n(97009),"WeakMap");e.exports=i},13665:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},4550:function(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}},84903:function(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}},47538:function(e,t,n){var i=n(86478),r=n(34963),o=n(93629),a=n(5174),s=n(26800),l=n(19102),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&r(e),d=!n&&!u&&a(e),h=!n&&!u&&!d&&l(e),f=n||u||d||h,p=f?i(e.length,String):[],g=p.length;for(var v in e)!t&&!c.call(e,v)||f&&("length"==v||d&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||p.push(v);return p}},68950:function(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}},41705:function(e){e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},47897:function(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}},28002:function(e,t,n){var i=n(32526),r=n(29231);e.exports=function(e,t,n){(void 0!==n&&!r(e[t],n)||void 0===n&&!(t in e))&&i(e,t,n)}},18463:function(e,t,n){var i=n(32526),r=n(29231),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&r(a,n)&&(void 0!==n||t in e)||i(e,t,n)}},27112:function(e,t,n){var i=n(29231);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},11855:function(e,t,n){var i=n(64503),r=n(12742);e.exports=function(e,t){return e&&i(t,r(t),e)}},95076:function(e,t,n){var i=n(64503),r=n(73961);e.exports=function(e,t){return e&&i(t,r(t),e)}},32526:function(e,t,n){var i=n(48528);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},31905:function(e,t,n){var i=n(22854),r=n(4550),o=n(18463),a=n(11855),s=n(95076),l=n(94523),c=n(10291),u=n(52455),d=n(57636),h=n(38248),f=n(55341),p=n(88383),g=n(39243),v=n(39759),m=n(40548),y=n(93629),_=n(5174),b=n(60103),C=n(8092),S=n(36995),w=n(12742),k=n(73961),x="[object Arguments]",E="[object Function]",T="[object Object]",N={};N[x]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[T]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[E]=N["[object WeakMap]"]=!1,e.exports=function e(t,n,I,D,L,O){var R,A=1&n,M=2&n,P=4&n;if(I&&(R=L?I(t,D,L,O):I(t)),void 0!==R)return R;if(!C(t))return t;var Z=y(t);if(Z){if(R=g(t),!A)return c(t,R)}else{var F=p(t),B=F==E||"[object GeneratorFunction]"==F;if(_(t))return l(t,A);if(F==T||F==x||B&&!L){if(R=M||B?{}:m(t),!A)return M?d(t,s(R,t)):u(t,a(R,t))}else{if(!N[F])return L?t:{};R=v(t,F,A)}}O||(O=new i);var H=O.get(t);if(H)return H;O.set(t,R),S(t)?t.forEach((function(i){R.add(e(i,n,I,i,t,O))})):b(t)&&t.forEach((function(i,r){R.set(r,e(i,n,I,r,t,O))}));var z=Z?void 0:(P?M?f:h:M?k:w)(t);return r(z||t,(function(i,r){z&&(i=t[r=i]),o(R,r,e(i,n,I,r,t,O))})),R}},65763:function(e,t,n){var i=n(8092),r=Object.create,o=function(){function e(){}return function(t){if(!i(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},87927:function(e,t,n){var i=n(15358),r=n(67056)(i);e.exports=r},85099:function(e,t,n){var i=n(30372)();e.exports=i},15358:function(e,t,n){var i=n(85099),r=n(12742);e.exports=function(e,t){return e&&i(e,t,r)}},98667:function(e,t,n){var i=n(43082),r=n(69793);e.exports=function(e,t){for(var n=0,o=(t=i(t,e)).length;null!=e&&n<o;)e=e[r(t[n++])];return n&&n==o?e:void 0}},61986:function(e,t,n){var i=n(41705),r=n(93629);e.exports=function(e,t,n){var o=t(e);return r(e)?o:i(o,n(e))}},39066:function(e,t,n){var i=n(87197),r=n(81587),o=n(43581),a=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):o(e)}},90529:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},4906:function(e,t,n){var i=n(39066),r=n(43141);e.exports=function(e){return r(e)&&"[object Arguments]"==i(e)}},71848:function(e,t,n){var i=n(93355),r=n(43141);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!==t&&n!==n:i(t,n,o,a,e,s))}},93355:function(e,t,n){var i=n(22854),r=n(15305),o=n(92206),a=n(88078),s=n(88383),l=n(93629),c=n(5174),u=n(19102),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,v,m){var y=l(e),_=l(t),b=y?h:s(e),C=_?h:s(t),S=(b=b==d?f:b)==f,w=(C=C==d?f:C)==f,k=b==C;if(k&&c(e)){if(!c(t))return!1;y=!0,S=!1}if(k&&!S)return m||(m=new i),y||u(e)?r(e,t,n,g,v,m):o(e,t,b,n,g,v,m);if(!(1&n)){var x=S&&p.call(e,"__wrapped__"),E=w&&p.call(t,"__wrapped__");if(x||E){var T=x?e.value():e,N=E?t.value():t;return m||(m=new i),v(T,N,n,g,m)}}return!!k&&(m||(m=new i),a(e,t,n,g,v,m))}},53085:function(e,t,n){var i=n(88383),r=n(43141);e.exports=function(e){return r(e)&&"[object Map]"==i(e)}},8856:function(e,t,n){var i=n(22854),r=n(71848);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],h=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var f=new i;if(o)var p=o(d,h,u,e,t,f);if(!(void 0===p?r(h,d,3,o,f):p))return!1}}return!0}},26703:function(e,t,n){var i=n(74786),r=n(257),o=n(8092),a=n(27907),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||r(e))&&(i(e)?h:s).test(a(e))}},48680:function(e,t,n){var i=n(88383),r=n(43141);e.exports=function(e){return r(e)&&"[object Set]"==i(e)}},68150:function(e,t,n){var i=n(39066),r=n(24635),o=n(43141),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&r(e.length)&&!!a[i(e)]}},56025:function(e,t,n){var i=n(97080),r=n(24322),o=n(2100),a=n(93629),s=n(10038);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?r(e[0],e[1]):i(e):s(e)}},43654:function(e,t,n){var i=n(62936),r=n(75964),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},8664:function(e,t,n){var i=n(8092),r=n(62936),o=n(4221),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return o(e);var t=r(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},53849:function(e,t,n){var i=n(87927),r=n(21473);e.exports=function(e,t){var n=-1,o=r(e)?Array(e.length):[];return i(e,(function(e,i,r){o[++n]=t(e,i,r)})),o}},97080:function(e,t,n){var i=n(8856),r=n(79091),o=n(50284);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}},24322:function(e,t,n){var i=n(71848),r=n(26181),o=n(75658),a=n(25823),s=n(25072),l=n(50284),c=n(69793);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=r(n,e);return void 0===a&&a===t?o(n,e):i(t,a,3)}}},64173:function(e,t,n){var i=n(22854),r=n(28002),o=n(85099),a=n(49216),s=n(8092),l=n(73961),c=n(85906);e.exports=function e(t,n,u,d,h){t!==n&&o(n,(function(o,l){if(h||(h=new i),s(o))a(t,n,l,u,e,d,h);else{var f=d?d(c(t,l),o,l+"",t,n,h):void 0;void 0===f&&(f=o),r(t,l,f)}}),l)}},49216:function(e,t,n){var i=n(28002),r=n(94523),o=n(40613),a=n(10291),s=n(40548),l=n(34963),c=n(93629),u=n(56279),d=n(5174),h=n(74786),f=n(8092),p=n(93977),g=n(19102),v=n(85906),m=n(6576);e.exports=function(e,t,n,y,_,b,C){var S=v(e,n),w=v(t,n),k=C.get(w);if(k)i(e,n,k);else{var x=b?b(S,w,n+"",e,t,C):void 0,E=void 0===x;if(E){var T=c(w),N=!T&&d(w),I=!T&&!N&&g(w);x=w,T||N||I?c(S)?x=S:u(S)?x=a(S):N?(E=!1,x=r(w,!0)):I?(E=!1,x=o(w,!0)):x=[]:p(w)||l(w)?(x=S,l(S)?x=m(S):f(S)&&!h(S)||(x=s(w))):E=!1}E&&(C.set(w,x),_(x,w,y,b,C),C.delete(w)),i(e,n,x)}}},9586:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4084:function(e,t,n){var i=n(98667);e.exports=function(e){return function(t){return i(t,e)}}},58794:function(e,t,n){var i=n(2100),r=n(64262),o=n(79156);e.exports=function(e,t){return o(r(e,t,i),e+"")}},7532:function(e,t,n){var i=n(71547),r=n(48528),o=n(2100),a=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:o;e.exports=a},86478:function(e){e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},2446:function(e,t,n){var i=n(87197),r=n(68950),o=n(93629),a=n(70152),s=i?i.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return r(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},20821:function(e,t,n){var i=n(26050),r=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(r,""):e}},16194:function(e){e.exports=function(e){return function(t){return e(t)}}},60075:function(e){e.exports=function(e,t){return e.has(t)}},43410:function(e,t,n){var i=n(2100);e.exports=function(e){return"function"==typeof e?e:i}},43082:function(e,t,n){var i=n(93629),r=n(25823),o=n(10170),a=n(63518);e.exports=function(e,t){return i(e)?e:r(e,t)?[e]:o(a(e))}},7010:function(e,t,n){var i=n(46219);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},94523:function(e,t,n){e=n.nmd(e);var i=n(97009),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r?i.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=s?s(n):new e.constructor(n);return e.copy(i),i}},61022:function(e,t,n){var i=n(7010);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},18503:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},64720:function(e,t,n){var i=n(87197),r=i?i.prototype:void 0,o=r?r.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},40613:function(e,t,n){var i=n(7010);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},10291:function(e){e.exports=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}},64503:function(e,t,n){var i=n(18463),r=n(32526);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?r(n,c,u):i(n,c,u)}return n}},52455:function(e,t,n){var i=n(64503),r=n(65918);e.exports=function(e,t){return i(e,r(e),t)}},57636:function(e,t,n){var i=n(64503),r=n(38487);e.exports=function(e,t){return i(e,r(e),t)}},65525:function(e,t,n){var i=n(97009)["__core-js_shared__"];e.exports=i},39934:function(e,t,n){var i=n(58794),r=n(3195);e.exports=function(e){return i((function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&r(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++i<o;){var l=n[i];l&&e(t,l,i,a)}return t}))}},67056:function(e,t,n){var i=n(21473);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==r(s[a],a,s););return n}}},30372:function(e){e.exports=function(e){return function(t,n,i){for(var r=-1,o=Object(t),a=i(t),s=a.length;s--;){var l=a[e?s:++r];if(!1===n(o[l],l,o))break}return t}}},48528:function(e,t,n){var i=n(68136),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=r},15305:function(e,t,n){var i=n(20692),r=n(47897),o=n(60075);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,g=!0,v=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++p<u;){var m=e[p],y=t[p];if(a)var _=c?a(y,m,p,t,e,l):a(m,y,p,e,t,l);if(void 0!==_){if(_)continue;g=!1;break}if(v){if(!r(t,(function(e,t){if(!o(v,t)&&(m===e||s(m,e,n,a,l)))return v.push(t)}))){g=!1;break}}else if(m!==y&&!s(m,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},92206:function(e,t,n){var i=n(87197),r=n(46219),o=n(29231),a=n(15305),s=n(90234),l=n(22230),c=i?i.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,i,c,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var p=1&i;if(f||(f=l),e.size!=t.size&&!p)return!1;var g=h.get(e);if(g)return g==t;i|=2,h.set(e,t);var v=a(f(e),f(t),i,c,d,h);return h.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},88078:function(e,t,n){var i=n(38248),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=i(e),u=c.length;if(u!=i(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:r.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var v=l;++d<u;){var m=e[h=c[d]],y=t[h];if(o)var _=l?o(y,m,h,t,e,s):o(m,y,h,e,t,s);if(!(void 0===_?m===y||a(m,y,n,o,s):_)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var b=e.constructor,C=t.constructor;b==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof C&&C instanceof C||(g=!1)}return s.delete(e),s.delete(t),g}},31032:function(e,t,n){var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},38248:function(e,t,n){var i=n(61986),r=n(65918),o=n(12742);e.exports=function(e){return i(e,o,r)}},55341:function(e,t,n){var i=n(61986),r=n(38487),o=n(73961);e.exports=function(e){return i(e,o,r)}},32799:function(e,t,n){var i=n(55964);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},79091:function(e,t,n){var i=n(25072),r=n(12742);e.exports=function(e){for(var t=r(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,i(a)]}return t}},68136:function(e,t,n){var i=n(26703),r=n(30040);e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},31137:function(e,t,n){var i=n(12709)(Object.getPrototypeOf,Object);e.exports=i},81587:function(e,t,n){var i=n(87197),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(l){}var r=a.call(e);return i&&(t?e[s]=n:delete e[s]),r}},65918:function(e,t,n){var i=n(84903),r=n(68174),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),i(a(e),(function(t){return o.call(e,t)})))}:r;e.exports=s},38487:function(e,t,n){var i=n(41705),r=n(31137),o=n(65918),a=n(68174),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,o(e)),e=r(e);return t}:a;e.exports=s},88383:function(e,t,n){var i=n(50908),r=n(95797),o=n(78319),a=n(23924),s=n(7091),l=n(39066),c=n(27907),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",g=c(i),v=c(r),m=c(o),y=c(a),_=c(s),b=l;(i&&b(new i(new ArrayBuffer(1)))!=p||r&&b(new r)!=u||o&&b(o.resolve())!=d||a&&b(new a)!=h||s&&b(new s)!=f)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?c(n):"";if(i)switch(i){case g:return p;case v:return u;case m:return d;case y:return h;case _:return f}return t}),e.exports=b},30040:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},86417:function(e,t,n){var i=n(43082),r=n(34963),o=n(93629),a=n(26800),s=n(24635),l=n(69793);e.exports=function(e,t,n){for(var c=-1,u=(t=i(t,e)).length,d=!1;++c<u;){var h=l(t[c]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(h,u)&&(o(e)||r(e))}},85403:function(e,t,n){var i=n(49620);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},62747:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},16037:function(e,t,n){var i=n(49620),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},94154:function(e,t,n){var i=n(49620),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}},77728:function(e,t,n){var i=n(49620);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},39243:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,i=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i}},39759:function(e,t,n){var i=n(7010),r=n(61022),o=n(18503),a=n(64720),s=n(40613);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return i(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return r(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},40548:function(e,t,n){var i=n(65763),r=n(31137),o=n(62936);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:i(r(e))}},26800:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},3195:function(e,t,n){var i=n(29231),r=n(21473),o=n(26800),a=n(8092);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?r(n)&&o(t,n.length):"string"==s&&t in n)&&i(n[t],e)}},25823:function(e,t,n){var i=n(93629),r=n(70152),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},55964:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},257:function(e,t,n){var i=n(65525),r=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!r&&r in e}},62936:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},25072:function(e,t,n){var i=n(8092);e.exports=function(e){return e===e&&!i(e)}},43894:function(e){e.exports=function(){this.__data__=[],this.size=0}},8699:function(e,t,n){var i=n(27112),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},64957:function(e,t,n){var i=n(27112);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},87184:function(e,t,n){var i=n(27112);e.exports=function(e){return i(this.__data__,e)>-1}},87109:function(e,t,n){var i=n(27112);e.exports=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},34086:function(e,t,n){var i=n(29676),r=n(38384),o=n(95797);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},9255:function(e,t,n){var i=n(32799);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},29186:function(e,t,n){var i=n(32799);e.exports=function(e){return i(this,e).get(e)}},13423:function(e,t,n){var i=n(32799);e.exports=function(e){return i(this,e).has(e)}},73739:function(e,t,n){var i=n(32799);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},90234:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}},50284:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},14634:function(e,t,n){var i=n(49151);e.exports=function(e){var t=i(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},49620:function(e,t,n){var i=n(68136)(Object,"create");e.exports=i},75964:function(e,t,n){var i=n(12709)(Object.keys,Object);e.exports=i},4221:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},49494:function(e,t,n){e=n.nmd(e);var i=n(31032),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&i.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},43581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},12709:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},64262:function(e,t,n){var i=n(13665),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=r(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(l),i(e,this,c)}}},97009:function(e,t,n){var i=n(31032),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();e.exports=o},85906:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},35774:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},41596:function(e){e.exports=function(e){return this.__data__.has(e)}},22230:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},79156:function(e,t,n){var i=n(7532),r=n(83197)(i);e.exports=r},83197:function(e){var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var r=t(),o=16-(r-i);if(i=r,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},20511:function(e,t,n){var i=n(38384);e.exports=function(){this.__data__=new i,this.size=0}},50835:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},90707:function(e){e.exports=function(e){return this.__data__.get(e)}},18832:function(e){e.exports=function(e){return this.__data__.has(e)}},35077:function(e,t,n){var i=n(38384),r=n(95797),o=n(78059);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var a=n.__data__;if(!r||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},10170:function(e,t,n){var i=n(14634),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=i((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,i,r){t.push(i?r.replace(o,"$1"):n||e)})),t}));e.exports=a},69793:function(e,t,n){var i=n(70152);e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},27907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},26050:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},58121:function(e,t,n){var i=n(31905);e.exports=function(e){return i(e,5)}},71547:function(e){e.exports=function(e){return function(){return e}}},48573:function(e,t,n){var i=n(8092),r=n(50072),o=n(42582),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,h,f,p=0,g=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,i=c;return l=c=void 0,p=t,d=e.apply(i,n)}function _(e){return p=e,h=setTimeout(C,t),g?y(e):d}function b(e){var n=e-f;return void 0===f||n>=t||n<0||v&&e-p>=u}function C(){var e=r();if(b(e))return S(e);h=setTimeout(C,function(e){var n=t-(e-f);return v?s(n,u-(e-p)):n}(e))}function S(e){return h=void 0,m&&l?y(e):(l=c=void 0,d)}function w(){var e=r(),n=b(e);if(l=arguments,c=this,f=e,n){if(void 0===h)return _(f);if(v)return clearTimeout(h),h=setTimeout(C,t),y(f)}return void 0===h&&(h=setTimeout(C,t)),d}return t=o(t)||0,i(n)&&(g=!!n.leading,u=(v="maxWait"in n)?a(o(n.maxWait)||0,t):u,m="trailing"in n?!!n.trailing:m),w.cancel=function(){void 0!==h&&clearTimeout(h),p=0,l=f=c=h=void 0},w.flush=function(){return void 0===h?d:S(r())},w}},29430:function(e,t,n){e.exports=n(36514)},29231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},36514:function(e,t,n){var i=n(4550),r=n(87927),o=n(43410),a=n(93629);e.exports=function(e,t){return(a(e)?i:r)(e,o(t))}},14689:function(e,t,n){var i=n(15358),r=n(43410);e.exports=function(e,t){return e&&i(e,r(t))}},26181:function(e,t,n){var i=n(98667);e.exports=function(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}},75658:function(e,t,n){var i=n(90529),r=n(86417);e.exports=function(e,t){return null!=e&&r(e,t,i)}},2100:function(e){e.exports=function(e){return e}},34963:function(e,t,n){var i=n(4906),r=n(43141),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},93629:function(e){var t=Array.isArray;e.exports=t},21473:function(e,t,n){var i=n(74786),r=n(24635);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},56279:function(e,t,n){var i=n(21473),r=n(43141);e.exports=function(e){return r(e)&&i(e)}},5174:function(e,t,n){e=n.nmd(e);var i=n(97009),r=n(49488),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?i.Buffer:void 0,l=(s?s.isBuffer:void 0)||r;e.exports=l},18111:function(e,t,n){var i=n(71848);e.exports=function(e,t){return i(e,t)}},74786:function(e,t,n){var i=n(39066),r=n(8092);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},24635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},60103:function(e,t,n){var i=n(53085),r=n(16194),o=n(49494),a=o&&o.isMap,s=a?r(a):i;e.exports=s},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},43141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},93977:function(e,t,n){var i=n(39066),r=n(31137),o=n(43141),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=i(e))return!1;var t=r(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},36995:function(e,t,n){var i=n(48680),r=n(16194),o=n(49494),a=o&&o.isSet,s=a?r(a):i;e.exports=s},26769:function(e,t,n){var i=n(39066),r=n(93629),o=n(43141);e.exports=function(e){return"string"==typeof e||!r(e)&&o(e)&&"[object String]"==i(e)}},70152:function(e,t,n){var i=n(39066),r=n(43141);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},19102:function(e,t,n){var i=n(68150),r=n(16194),o=n(49494),a=o&&o.isTypedArray,s=a?r(a):i;e.exports=s},12742:function(e,t,n){var i=n(47538),r=n(43654),o=n(21473);e.exports=function(e){return o(e)?i(e):r(e)}},73961:function(e,t,n){var i=n(47538),r=n(8664),o=n(21473);e.exports=function(e){return o(e)?i(e,!0):r(e)}},763:function(e,t,n){var i;e=n.nmd(e),function(){var r,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,h=256,f=1/0,p=9007199254740991,g=NaN,v=4294967295,m=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",h]],y="[object Arguments]",_="[object Array]",b="[object Boolean]",C="[object Date]",S="[object Error]",w="[object Function]",k="[object GeneratorFunction]",x="[object Map]",E="[object Number]",T="[object Object]",N="[object Promise]",I="[object RegExp]",D="[object Set]",L="[object String]",O="[object Symbol]",R="[object WeakMap]",A="[object ArrayBuffer]",M="[object DataView]",P="[object Float32Array]",Z="[object Float64Array]",F="[object Int8Array]",B="[object Int16Array]",H="[object Int32Array]",z="[object Uint8Array]",j="[object Uint8ClampedArray]",V="[object Uint16Array]",W="[object Uint32Array]",U=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,$=RegExp(Y.source),X=RegExp(q.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(re.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,_e=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,Ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,we=/['\n\r\u2028\u2029\\]/g,ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ne="\\ufe0e\\ufe0f",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="['\u2019]",Le="[\\ud800-\\udfff]",Oe="["+Ie+"]",Re="["+ke+"]",Ae="\\d+",Me="[\\u2700-\\u27bf]",Pe="["+Ee+"]",Ze="[^\\ud800-\\udfff"+Ie+Ae+xe+Ee+Te+"]",Fe="\\ud83c[\\udffb-\\udfff]",Be="[^\\ud800-\\udfff]",He="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Te+"]",Ve="(?:"+Pe+"|"+Ze+")",We="(?:"+je+"|"+Ze+")",Ue="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ge="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Re+"|"+Fe+")"+"?",Ye="[\\ufe0e\\ufe0f]?",qe=Ye+Ke+("(?:\\u200d(?:"+[Be,He,ze].join("|")+")"+Ye+Ke+")*"),$e="(?:"+[Me,He,ze].join("|")+")"+qe,Xe="(?:"+[Be+Re+"?",Re,He,ze,Le].join("|")+")",Qe=RegExp(De,"g"),Je=RegExp(Re,"g"),et=RegExp(Fe+"(?="+Fe+")|"+Xe+qe,"g"),tt=RegExp([je+"?"+Pe+"+"+Ue+"(?="+[Oe,je,"$"].join("|")+")",We+"+"+Ge+"(?="+[Oe,je+Ve,"$"].join("|")+")",je+"?"+Ve+"+"+Ue,je+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,$e].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+ke+Ne+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,at={};at[P]=at[Z]=at[F]=at[B]=at[H]=at[z]=at[j]=at[V]=at[W]=!0,at[y]=at[_]=at[A]=at[b]=at[M]=at[C]=at[S]=at[w]=at[x]=at[E]=at[T]=at[I]=at[D]=at[L]=at[R]=!1;var st={};st[y]=st[_]=st[A]=st[M]=st[b]=st[C]=st[P]=st[Z]=st[F]=st[B]=st[H]=st[x]=st[E]=st[T]=st[I]=st[D]=st[L]=st[O]=st[z]=st[j]=st[V]=st[W]=!0,st[S]=st[w]=st[R]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,ft=dt||ht||Function("return this")(),pt=t&&!t.nodeType&&t,gt=pt&&e&&!e.nodeType&&e,vt=gt&>.exports===pt,mt=vt&&dt.process,yt=function(){try{var e=gt&>.require&>.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(t){}}(),_t=yt&&yt.isArrayBuffer,bt=yt&&yt.isDate,Ct=yt&&yt.isMap,St=yt&&yt.isRegExp,wt=yt&&yt.isSet,kt=yt&&yt.isTypedArray;function xt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var a=e[r];t(i,a,n(a),e)}return i}function Tt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Dt(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}function Lt(e,t){return!!(null==e?0:e.length)&&zt(e,t,0)>-1}function Ot(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function Rt(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function At(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Mt(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function Pt(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function Zt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var Ft=Ut("length");function Bt(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function Ht(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function zt(e,t,n){return t===t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):Ht(e,Vt,n)}function jt(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function Vt(e){return e!==e}function Wt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:g}function Ut(e){return function(t){return null==t?r:t[e]}}function Gt(e){return function(t){return null==e?r:e[t]}}function Kt(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function Yt(e,t){for(var n,i=-1,o=e.length;++i<o;){var a=t(e[i]);a!==r&&(n=n===r?a:n+a)}return n}function qt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function $t(e){return e?e.slice(0,gn(e)+1).replace(ae,""):e}function Xt(e){return function(t){return e(t)}}function Qt(e,t){return Rt(t,(function(t){return e[t]}))}function Jt(e,t){return e.has(t)}function en(e,t){for(var n=-1,i=e.length;++n<i&&zt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}var rn=Gt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),on=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+lt[e]}function sn(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[r++]=n)}return o}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return sn(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Ft(e)}function pn(e){return sn(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=Gt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var mn=function e(t){var n=(t=null==t?ft:mn.defaults(ft.Object(),t,mn.pick(ft,rt))).Array,i=t.Date,se=t.Error,ke=t.Function,xe=t.Math,Ee=t.Object,Te=t.RegExp,Ne=t.String,Ie=t.TypeError,De=n.prototype,Le=ke.prototype,Oe=Ee.prototype,Re=t["__core-js_shared__"],Ae=Le.toString,Me=Oe.hasOwnProperty,Pe=0,Ze=function(){var e=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fe=Oe.toString,Be=Ae.call(Ee),He=ft._,ze=Te("^"+Ae.call(Me).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=vt?t.Buffer:r,Ve=t.Symbol,We=t.Uint8Array,Ue=je?je.allocUnsafe:r,Ge=cn(Ee.getPrototypeOf,Ee),Ke=Ee.create,Ye=Oe.propertyIsEnumerable,qe=De.splice,$e=Ve?Ve.isConcatSpreadable:r,Xe=Ve?Ve.iterator:r,et=Ve?Ve.toStringTag:r,nt=function(){try{var e=fo(Ee,"defineProperty");return e({},"",{}),e}catch(t){}}(),lt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,dt=i&&i.now!==ft.Date.now&&i.now,ht=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=xe.ceil,gt=xe.floor,mt=Ee.getOwnPropertySymbols,yt=je?je.isBuffer:r,Ft=t.isFinite,Gt=De.join,yn=cn(Ee.keys,Ee),_n=xe.max,bn=xe.min,Cn=i.now,Sn=t.parseInt,wn=xe.random,kn=De.reverse,xn=fo(t,"DataView"),En=fo(t,"Map"),Tn=fo(t,"Promise"),Nn=fo(t,"Set"),In=fo(t,"WeakMap"),Dn=fo(Ee,"create"),Ln=In&&new In,On={},Rn=Ho(xn),An=Ho(En),Mn=Ho(Tn),Pn=Ho(Nn),Zn=Ho(In),Fn=Ve?Ve.prototype:r,Bn=Fn?Fn.valueOf:r,Hn=Fn?Fn.toString:r;function zn(e){if(is(e)&&!Ga(e)&&!(e instanceof Un)){if(e instanceof Wn)return e;if(Me.call(e,"__wrapped__"))return zo(e)}return new Wn(e)}var jn=function(){function e(){}return function(t){if(!ns(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Vn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new Kn(e);this.size=t.size}function Xn(e,t){var n=Ga(e),i=!n&&Ua(e),r=!n&&!i&&$a(e),o=!n&&!i&&!r&&ds(e),a=n||i||r||o,s=a?qt(e.length,Ne):[],l=s.length;for(var c in e)!t&&!Me.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bo(c,l))||s.push(c);return s}function Qn(e){var t=e.length;return t?e[qi(0,t-1)]:r}function Jn(e,t){return Zo(Dr(e),li(t,0,e.length))}function ei(e){return Zo(Dr(e))}function ti(e,t,n){(n!==r&&!ja(e[t],n)||n===r&&!(t in e))&&ai(e,t,n)}function ni(e,t,n){var i=e[t];Me.call(e,t)&&ja(i,n)&&(n!==r||t in e)||ai(e,t,n)}function ii(e,t){for(var n=e.length;n--;)if(ja(e[n][0],t))return n;return-1}function ri(e,t,n,i){return fi(e,(function(e,r,o){t(i,e,n(e),o)})),i}function oi(e,t){return e&&Lr(t,Rs(t),e)}function ai(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function si(e,t){for(var i=-1,o=t.length,a=n(o),s=null==e;++i<o;)a[i]=s?r:Ns(e,t[i]);return a}function li(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ci(e,t,n,i,o,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=o?n(e,i,o,a):n(e)),s!==r)return s;if(!ns(e))return e;var d=Ga(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Dr(e,s)}else{var h=vo(e),f=h==w||h==k;if($a(e))return kr(e,l);if(h==T||h==y||f&&!o){if(s=c||f?{}:yo(e),!l)return c?function(e,t){return Lr(e,go(e),t)}(e,function(e,t){return e&&Lr(t,As(t),e)}(s,e)):function(e,t){return Lr(e,po(e),t)}(e,oi(s,e))}else{if(!st[h])return o?e:{};s=function(e,t,n){var i=e.constructor;switch(t){case A:return xr(e);case b:case C:return new i(+e);case M:return function(e,t){var n=t?xr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case P:case Z:case F:case B:case H:case z:case j:case V:case W:return Er(e,n);case x:return new i;case E:case L:return new i(e);case I:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new i;case O:return r=e,Bn?Ee(Bn.call(r)):{}}var r}(e,h,l)}}a||(a=new $n);var p=a.get(e);if(p)return p;a.set(e,s),ls(e)?e.forEach((function(i){s.add(ci(i,t,n,i,e,a))})):rs(e)&&e.forEach((function(i,r){s.set(r,ci(i,t,n,r,e,a))}));var g=d?r:(u?c?oo:ro:c?As:Rs)(e);return Tt(g||e,(function(i,r){g&&(i=e[r=i]),ni(s,r,ci(i,t,n,r,e,a))})),s}function ui(e,t,n){var i=n.length;if(null==e)return!i;for(e=Ee(e);i--;){var o=n[i],a=t[o],s=e[o];if(s===r&&!(o in e)||!a(s))return!1}return!0}function di(e,t,n){if("function"!=typeof e)throw new Ie(o);return Ro((function(){e.apply(r,n)}),t)}function hi(e,t,n,i){var r=-1,o=Lt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Rt(t,Xt(n))),i?(o=Ot,a=!1):t.length>=200&&(o=Jt,a=!1,t=new qn(t));e:for(;++r<s;){var u=e[r],d=null==n?u:n(u);if(u=i||0!==u?u:0,a&&d===d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else o(t,d,i)||l.push(u)}return l}zn.templateSettings={escape:Q,evaluate:J,interpolate:ee,variable:"",imports:{_:zn}},zn.prototype=Vn.prototype,zn.prototype.constructor=zn,Wn.prototype=jn(Vn.prototype),Wn.prototype.constructor=Wn,Un.prototype=jn(Vn.prototype),Un.prototype.constructor=Un,Gn.prototype.clear=function(){this.__data__=Dn?Dn(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(Dn){var n=t[e];return n===a?r:n}return Me.call(t,e)?t[e]:r},Gn.prototype.has=function(e){var t=this.__data__;return Dn?t[e]!==r:Me.call(t,e)},Gn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Dn&&t===r?a:t,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=ii(t,e);return!(n<0)&&(n==t.length-1?t.pop():qe.call(t,n,1),--this.size,!0)},Kn.prototype.get=function(e){var t=this.__data__,n=ii(t,e);return n<0?r:t[n][1]},Kn.prototype.has=function(e){return ii(this.__data__,e)>-1},Kn.prototype.set=function(e,t){var n=this.__data__,i=ii(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(En||Kn),string:new Gn}},Yn.prototype.delete=function(e){var t=uo(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return uo(this,e).get(e)},Yn.prototype.has=function(e){return uo(this,e).has(e)},Yn.prototype.set=function(e,t){var n=uo(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,a),this},qn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new Kn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var i=n.__data__;if(!En||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(i)}return n.set(e,t),this.size=n.size,this};var fi=Ar(Ci),pi=Ar(Si,!0);function gi(e,t){var n=!0;return fi(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function vi(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(l===r?s===s&&!us(s):n(s,l)))var l=s,c=a}return c}function mi(e,t){var n=[];return fi(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function yi(e,t,n,i,r){var o=-1,a=e.length;for(n||(n=_o),r||(r=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yi(s,t-1,n,i,r):At(r,s):i||(r[r.length]=s)}return r}var _i=Mr(),bi=Mr(!0);function Ci(e,t){return e&&_i(e,t,Rs)}function Si(e,t){return e&&bi(e,t,Rs)}function wi(e,t){return Dt(t,(function(t){return Ja(e[t])}))}function ki(e,t){for(var n=0,i=(t=br(t,e)).length;null!=e&&n<i;)e=e[Bo(t[n++])];return n&&n==i?e:r}function xi(e,t,n){var i=t(e);return Ga(e)?i:At(i,n(e))}function Ei(e){return null==e?e===r?"[object Undefined]":"[object Null]":et&&et in Ee(e)?function(e){var t=Me.call(e,et),n=e[et];try{e[et]=r;var i=!0}catch(a){}var o=Fe.call(e);i&&(t?e[et]=n:delete e[et]);return o}(e):function(e){return Fe.call(e)}(e)}function Ti(e,t){return e>t}function Ni(e,t){return null!=e&&Me.call(e,t)}function Ii(e,t){return null!=e&&t in Ee(e)}function Di(e,t,i){for(var o=i?Ot:Lt,a=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];l--;){var h=e[l];l&&t&&(h=Rt(h,Xt(t))),u=bn(h.length,u),c[l]=!i&&(t||a>=120&&h.length>=120)?new qn(l&&h):r}h=e[0];var f=-1,p=c[0];e:for(;++f<a&&d.length<u;){var g=h[f],v=t?t(g):g;if(g=i||0!==g?g:0,!(p?Jt(p,v):o(d,v,i))){for(l=s;--l;){var m=c[l];if(!(m?Jt(m,v):o(e[l],v,i)))continue e}p&&p.push(v),d.push(g)}}return d}function Li(e,t,n){var i=null==(e=Io(e,t=br(t,e)))?e:e[Bo(Qo(t))];return null==i?r:xt(i,e,n)}function Oi(e){return is(e)&&Ei(e)==y}function Ri(e,t,n,i,o){return e===t||(null==e||null==t||!is(e)&&!is(t)?e!==e&&t!==t:function(e,t,n,i,o,a){var s=Ga(e),l=Ga(t),c=s?_:vo(e),u=l?_:vo(t),d=(c=c==y?T:c)==T,h=(u=u==y?T:u)==T,f=c==u;if(f&&$a(e)){if(!$a(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new $n),s||ds(e)?no(e,t,n,i,o,a):function(e,t,n,i,r,o,a){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!o(new We(e),new We(t)));case b:case C:case E:return ja(+e,+t);case S:return e.name==t.name&&e.message==t.message;case I:case L:return e==t+"";case x:var s=ln;case D:var l=1&i;if(s||(s=dn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;i|=2,a.set(e,t);var u=no(s(e),s(t),i,r,o,a);return a.delete(e),u;case O:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,c,n,i,o,a);if(!(1&n)){var p=d&&Me.call(e,"__wrapped__"),g=h&&Me.call(t,"__wrapped__");if(p||g){var v=p?e.value():e,m=g?t.value():t;return a||(a=new $n),o(v,m,n,i,a)}}if(!f)return!1;return a||(a=new $n),function(e,t,n,i,o,a){var s=1&n,l=ro(e),c=l.length,u=ro(t).length;if(c!=u&&!s)return!1;var d=c;for(;d--;){var h=l[d];if(!(s?h in t:Me.call(t,h)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var g=!0;a.set(e,t),a.set(t,e);var v=s;for(;++d<c;){var m=e[h=l[d]],y=t[h];if(i)var _=s?i(y,m,h,t,e,a):i(m,y,h,e,t,a);if(!(_===r?m===y||o(m,y,n,i,a):_)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var b=e.constructor,C=t.constructor;b==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof C&&C instanceof C||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,i,o,a)}(e,t,n,i,Ri,o))}function Ai(e,t,n,i){var o=n.length,a=o,s=!i;if(null==e)return!a;for(e=Ee(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=n[o])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===r&&!(c in e))return!1}else{var h=new $n;if(i)var f=i(u,d,c,e,t,h);if(!(f===r?Ri(d,u,3,i,h):f))return!1}}return!0}function Mi(e){return!(!ns(e)||(t=e,Ze&&Ze in t))&&(Ja(e)?ze:ye).test(Ho(e));var t}function Pi(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Ga(e)?ji(e[0],e[1]):zi(e):pl(e)}function Zi(e){if(!xo(e))return yn(e);var t=[];for(var n in Ee(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Fi(e){if(!ns(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=xo(e),n=[];for(var i in e)("constructor"!=i||!t&&Me.call(e,i))&&n.push(i);return n}function Bi(e,t){return e<t}function Hi(e,t){var i=-1,r=Ya(e)?n(e.length):[];return fi(e,(function(e,n,o){r[++i]=t(e,n,o)})),r}function zi(e){var t=ho(e);return 1==t.length&&t[0][2]?To(t[0][0],t[0][1]):function(n){return n===e||Ai(n,e,t)}}function ji(e,t){return So(e)&&Eo(t)?To(Bo(e),t):function(n){var i=Ns(n,e);return i===r&&i===t?Is(n,e):Ri(t,i,3)}}function Vi(e,t,n,i,o){e!==t&&_i(t,(function(a,s){if(o||(o=new $n),ns(a))!function(e,t,n,i,o,a,s){var l=Lo(e,n),c=Lo(t,n),u=s.get(c);if(u)return void ti(e,n,u);var d=a?a(l,c,n+"",e,t,s):r,h=d===r;if(h){var f=Ga(c),p=!f&&$a(c),g=!f&&!p&&ds(c);d=c,f||p||g?Ga(l)?d=l:qa(l)?d=Dr(l):p?(h=!1,d=kr(c,!0)):g?(h=!1,d=Er(c,!0)):d=[]:as(c)||Ua(c)?(d=l,Ua(l)?d=_s(l):ns(l)&&!Ja(l)||(d=yo(c))):h=!1}h&&(s.set(c,d),o(d,c,i,a,s),s.delete(c));ti(e,n,d)}(e,t,s,n,Vi,i,o);else{var l=i?i(Lo(e,s),a,s+"",e,t,o):r;l===r&&(l=a),ti(e,s,l)}}),As)}function Wi(e,t){var n=e.length;if(n)return bo(t+=t<0?n:0,n)?e[t]:r}function Ui(e,t,n){t=t.length?Rt(t,(function(e){return Ga(e)?function(t){return ki(t,1===e.length?e[0]:e)}:e})):[ol];var i=-1;t=Rt(t,Xt(co()));var r=Hi(e,(function(e,n,r){var o=Rt(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,(function(e,t){return function(e,t,n){var i=-1,r=e.criteria,o=t.criteria,a=r.length,s=n.length;for(;++i<a;){var l=Tr(r[i],o[i]);if(l)return i>=s?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gi(e,t,n){for(var i=-1,r=t.length,o={};++i<r;){var a=t[i],s=ki(e,a);n(s,a)&&er(o,br(a,e),s)}return o}function Ki(e,t,n,i){var r=i?jt:zt,o=-1,a=t.length,s=e;for(e===t&&(t=Dr(t)),n&&(s=Rt(e,Xt(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=r(s,u,l,i))>-1;)s!==e&&qe.call(s,l,1),qe.call(e,l,1);return e}function Yi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;bo(r)?qe.call(e,r,1):hr(e,r)}}return e}function qi(e,t){return e+gt(wn()*(t-e+1))}function $i(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Xi(e,t){return Ao(No(e,t,ol),e+"")}function Qi(e){return Qn(js(e))}function Ji(e,t){var n=js(e);return Zo(n,li(t,0,n.length))}function er(e,t,n,i){if(!ns(e))return e;for(var o=-1,a=(t=br(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var c=Bo(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=l[c];(u=i?i(d,c,l):r)===r&&(u=ns(d)?d:bo(t[o+1])?[]:{})}ni(l,c,u),l=l[c]}return e}var tr=Ln?function(e,t){return Ln.set(e,t),e}:ol,nr=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:nl(t),writable:!0})}:ol;function ir(e){return Zo(js(e))}function rr(e,t,i){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(i=i>o?o:i)<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var a=n(o);++r<o;)a[r]=e[r+t];return a}function or(e,t){var n;return fi(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function ar(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t===t&&r<=2147483647){for(;i<r;){var o=i+r>>>1,a=e[o];null!==a&&!us(a)&&(n?a<=t:a<t)?i=o+1:r=o}return r}return sr(e,t,ol,n)}function sr(e,t,n,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!==t,l=null===t,c=us(t),u=t===r;o<a;){var d=gt((o+a)/2),h=n(e[d]),f=h!==r,p=null===h,g=h===h,v=us(h);if(s)var m=i||g;else m=u?g&&(i||f):l?g&&f&&(i||!p):c?g&&f&&!p&&(i||!v):!p&&!v&&(i?h<=t:h<t);m?o=d+1:a=d}return bn(a,4294967294)}function lr(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n],s=t?t(a):a;if(!n||!ja(s,l)){var l=s;o[r++]=0===a?0:a}}return o}function cr(e){return"number"==typeof e?e:us(e)?g:+e}function ur(e){if("string"==typeof e)return e;if(Ga(e))return Rt(e,ur)+"";if(us(e))return Hn?Hn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function dr(e,t,n){var i=-1,r=Lt,o=e.length,a=!0,s=[],l=s;if(n)a=!1,r=Ot;else if(o>=200){var c=t?null:$r(e);if(c)return dn(c);a=!1,r=Jt,l=new qn}else l=t?[]:s;e:for(;++i<o;){var u=e[i],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else r(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function hr(e,t){return null==(e=Io(e,t=br(t,e)))||delete e[Bo(Qo(t))]}function fr(e,t,n,i){return er(e,t,n(ki(e,t)),i)}function pr(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?rr(e,i?0:o,i?o+1:r):rr(e,i?o+1:0,i?r:o)}function gr(e,t){var n=e;return n instanceof Un&&(n=n.value()),Mt(t,(function(e,t){return t.func.apply(t.thisArg,At([e],t.args))}),n)}function vr(e,t,i){var r=e.length;if(r<2)return r?dr(e[0]):[];for(var o=-1,a=n(r);++o<r;)for(var s=e[o],l=-1;++l<r;)l!=o&&(a[o]=hi(a[o]||s,e[l],t,i));return dr(yi(a,1),t,i)}function mr(e,t,n){for(var i=-1,o=e.length,a=t.length,s={};++i<o;){var l=i<a?t[i]:r;n(s,e[i],l)}return s}function yr(e){return qa(e)?e:[]}function _r(e){return"function"==typeof e?e:ol}function br(e,t){return Ga(e)?e:So(e,t)?[e]:Fo(bs(e))}var Cr=Xi;function Sr(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:rr(e,t,n)}var wr=lt||function(e){return ft.clearTimeout(e)};function kr(e,t){if(t)return e.slice();var n=e.length,i=Ue?Ue(n):new e.constructor(n);return e.copy(i),i}function xr(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Er(e,t){var n=t?xr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Tr(e,t){if(e!==t){var n=e!==r,i=null===e,o=e===e,a=us(e),s=t!==r,l=null===t,c=t===t,u=us(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!u&&e<t||u&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}function Nr(e,t,i,r){for(var o=-1,a=e.length,s=i.length,l=-1,c=t.length,u=_n(a-s,0),d=n(c+u),h=!r;++l<c;)d[l]=t[l];for(;++o<s;)(h||o<a)&&(d[i[o]]=e[o]);for(;u--;)d[l++]=e[o++];return d}function Ir(e,t,i,r){for(var o=-1,a=e.length,s=-1,l=i.length,c=-1,u=t.length,d=_n(a-l,0),h=n(d+u),f=!r;++o<d;)h[o]=e[o];for(var p=o;++c<u;)h[p+c]=t[c];for(;++s<l;)(f||o<a)&&(h[p+i[s]]=e[o++]);return h}function Dr(e,t){var i=-1,r=e.length;for(t||(t=n(r));++i<r;)t[i]=e[i];return t}function Lr(e,t,n,i){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=i?i(n[l],e[l],l,n,e):r;c===r&&(c=e[l]),o?ai(n,l,c):ni(n,l,c)}return n}function Or(e,t){return function(n,i){var r=Ga(n)?Et:ri,o=t?t():{};return r(n,e,co(i,2),o)}}function Rr(e){return Xi((function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;for(a=e.length>3&&"function"==typeof a?(o--,a):r,s&&Co(n[0],n[1],s)&&(a=o<3?r:a,o=1),t=Ee(t);++i<o;){var l=n[i];l&&e(t,l,i,a)}return t}))}function Ar(e,t){return function(n,i){if(null==n)return n;if(!Ya(n))return e(n,i);for(var r=n.length,o=t?r:-1,a=Ee(n);(t?o--:++o<r)&&!1!==i(a[o],o,a););return n}}function Mr(e){return function(t,n,i){for(var r=-1,o=Ee(t),a=i(t),s=a.length;s--;){var l=a[e?s:++r];if(!1===n(o[l],l,o))break}return t}}function Pr(e){return function(t){var n=sn(t=bs(t))?pn(t):r,i=n?n[0]:t.charAt(0),o=n?Sr(n,1).join(""):t.slice(1);return i[e]()+o}}function Zr(e){return function(t){return Mt(Js(Us(t).replace(Qe,"")),e,"")}}function Fr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),i=e.apply(n,t);return ns(i)?i:n}}function Br(e){return function(t,n,i){var o=Ee(t);if(!Ya(t)){var a=co(n,3);t=Rs(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,i);return s>-1?o[a?t[s]:s]:r}}function Hr(e){return io((function(t){var n=t.length,i=n,a=Wn.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new Ie(o);if(a&&!l&&"wrapper"==so(s))var l=new Wn([],!0)}for(i=l?i:n;++i<n;){var c=so(s=t[i]),u="wrapper"==c?ao(s):r;l=u&&wo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[so(u[0])].apply(l,u[3]):1==s.length&&wo(s)?l[c]():l.thru(s)}return function(){var e=arguments,i=e[0];if(l&&1==e.length&&Ga(i))return l.plant(i).value();for(var r=0,o=n?t[r].apply(this,e):i;++r<n;)o=t[r].call(this,o);return o}}))}function zr(e,t,i,o,a,s,l,c,u,h){var f=t&d,p=1&t,g=2&t,v=24&t,m=512&t,y=g?r:Fr(e);return function r(){for(var d=arguments.length,_=n(d),b=d;b--;)_[b]=arguments[b];if(v)var C=lo(r),S=nn(_,C);if(o&&(_=Nr(_,o,a,v)),s&&(_=Ir(_,s,l,v)),d-=S,v&&d<h){var w=un(_,C);return Yr(e,t,zr,r.placeholder,i,_,w,c,u,h-d)}var k=p?i:this,x=g?k[e]:e;return d=_.length,c?_=Do(_,c):m&&d>1&&_.reverse(),f&&u<d&&(_.length=u),this&&this!==ft&&this instanceof r&&(x=y||Fr(x)),x.apply(k,_)}}function jr(e,t){return function(n,i){return function(e,t,n,i){return Ci(e,(function(e,r,o){t(i,n(e),r,o)})),i}(n,e,t(i),{})}}function Vr(e,t){return function(n,i){var o;if(n===r&&i===r)return t;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=ur(n),i=ur(i)):(n=cr(n),i=cr(i)),o=e(n,i)}return o}}function Wr(e){return io((function(t){return t=Rt(t,Xt(co())),Xi((function(n){var i=this;return e(t,(function(e){return xt(e,i,n)}))}))}))}function Ur(e,t){var n=(t=t===r?" ":ur(t)).length;if(n<2)return n?$i(t,e):t;var i=$i(t,pt(e/fn(t)));return sn(t)?Sr(pn(i),0,e).join(""):i.slice(0,e)}function Gr(e){return function(t,i,o){return o&&"number"!=typeof o&&Co(t,i,o)&&(i=o=r),t=gs(t),i===r?(i=t,t=0):i=gs(i),function(e,t,i,r){for(var o=-1,a=_n(pt((t-e)/(i||1)),0),s=n(a);a--;)s[r?a:++o]=e,e+=i;return s}(t,i,o=o===r?t<i?1:-1:gs(o),e)}}function Kr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ys(t),n=ys(n)),e(t,n)}}function Yr(e,t,n,i,o,a,s,l,d,h){var f=8&t;t|=f?c:u,4&(t&=~(f?u:c))||(t&=-4);var p=[e,t,o,f?a:r,f?s:r,f?r:a,f?r:s,l,d,h],g=n.apply(r,p);return wo(e)&&Oo(g,p),g.placeholder=i,Mo(g,e,t)}function qr(e){var t=xe[e];return function(e,n){if(e=ys(e),(n=null==n?0:bn(vs(n),292))&&Ft(e)){var i=(bs(e)+"e").split("e");return+((i=(bs(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var $r=Nn&&1/dn(new Nn([,-0]))[1]==f?function(e){return new Nn(e)}:ul;function Xr(e){return function(t){var n=vo(t);return n==x?ln(t):n==D?hn(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qr(e,t,i,a,f,p,g,v){var m=2&t;if(!m&&"function"!=typeof e)throw new Ie(o);var y=a?a.length:0;if(y||(t&=-97,a=f=r),g=g===r?g:_n(vs(g),0),v=v===r?v:vs(v),y-=f?f.length:0,t&u){var _=a,b=f;a=f=r}var C=m?r:ao(e),S=[e,t,i,a,f,_,b,p,g,v];if(C&&function(e,t){var n=e[1],i=t[1],r=n|i,o=r<131,a=i==d&&8==n||i==d&&n==h&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&i&&(e[2]=t[2],r|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Nr(c,l,t[4]):l,e[4]=c?un(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Ir(c,l,t[6]):l,e[6]=c?un(e[5],s):t[6]);(l=t[7])&&(e[7]=l);i&d&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(S,C),e=S[0],t=S[1],i=S[2],a=S[3],f=S[4],!(v=S[9]=S[9]===r?m?0:e.length:_n(S[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||t==l?function(e,t,i){var o=Fr(e);return function a(){for(var s=arguments.length,l=n(s),c=s,u=lo(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:un(l,u);return(s-=d.length)<i?Yr(e,t,zr,a.placeholder,r,l,d,r,r,i-s):xt(this&&this!==ft&&this instanceof a?o:e,this,l)}}(e,t,v):t!=c&&33!=t||f.length?zr.apply(r,S):function(e,t,i,r){var o=1&t,a=Fr(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=r.length,d=n(u+l),h=this&&this!==ft&&this instanceof t?a:e;++c<u;)d[c]=r[c];for(;l--;)d[c++]=arguments[++s];return xt(h,o?i:this,d)}}(e,t,i,a);else var w=function(e,t,n){var i=1&t,r=Fr(e);return function t(){return(this&&this!==ft&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,i);return Mo((C?tr:Oo)(w,S),e,t)}function Jr(e,t,n,i){return e===r||ja(e,Oe[n])&&!Me.call(i,n)?t:e}function eo(e,t,n,i,o,a){return ns(e)&&ns(t)&&(a.set(t,e),Vi(e,t,r,eo,a),a.delete(t)),e}function to(e){return as(e)?r:e}function no(e,t,n,i,o,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=2&n?new qn:r;for(a.set(e,t),a.set(t,e);++h<l;){var g=e[h],v=t[h];if(i)var m=s?i(v,g,h,t,e,a):i(g,v,h,e,t,a);if(m!==r){if(m)continue;f=!1;break}if(p){if(!Zt(t,(function(e,t){if(!Jt(p,t)&&(g===e||o(g,e,n,i,a)))return p.push(t)}))){f=!1;break}}else if(g!==v&&!o(g,v,n,i,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function io(e){return Ao(No(e,r,Ko),e+"")}function ro(e){return xi(e,Rs,po)}function oo(e){return xi(e,As,go)}var ao=Ln?function(e){return Ln.get(e)}:ul;function so(e){for(var t=e.name+"",n=On[t],i=Me.call(On,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function lo(e){return(Me.call(zn,"placeholder")?zn:e).placeholder}function co(){var e=zn.iteratee||al;return e=e===al?Pi:e,arguments.length?e(arguments[0],arguments[1]):e}function uo(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function ho(e){for(var t=Rs(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,Eo(r)]}return t}function fo(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Mi(n)?n:r}var po=mt?function(e){return null==e?[]:(e=Ee(e),Dt(mt(e),(function(t){return Ye.call(e,t)})))}:ml,go=mt?function(e){for(var t=[];e;)At(t,po(e)),e=Ge(e);return t}:ml,vo=Ei;function mo(e,t,n){for(var i=-1,r=(t=br(t,e)).length,o=!1;++i<r;){var a=Bo(t[i]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++i!=r?o:!!(r=null==e?0:e.length)&&ts(r)&&bo(a,r)&&(Ga(e)||Ua(e))}function yo(e){return"function"!=typeof e.constructor||xo(e)?{}:jn(Ge(e))}function _o(e){return Ga(e)||Ua(e)||!!($e&&e&&e[$e])}function bo(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function Co(e,t,n){if(!ns(n))return!1;var i=typeof t;return!!("number"==i?Ya(n)&&bo(t,n.length):"string"==i&&t in n)&&ja(n[t],e)}function So(e,t){if(Ga(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ee(t))}function wo(e){var t=so(e),n=zn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var i=ao(n);return!!i&&e===i[0]}(xn&&vo(new xn(new ArrayBuffer(1)))!=M||En&&vo(new En)!=x||Tn&&vo(Tn.resolve())!=N||Nn&&vo(new Nn)!=D||In&&vo(new In)!=R)&&(vo=function(e){var t=Ei(e),n=t==T?e.constructor:r,i=n?Ho(n):"";if(i)switch(i){case Rn:return M;case An:return x;case Mn:return N;case Pn:return D;case Zn:return R}return t});var ko=Re?Ja:yl;function xo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function Eo(e){return e===e&&!ns(e)}function To(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in Ee(n)))}}function No(e,t,i){return t=_n(t===r?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=_n(r.length-t,0),s=n(a);++o<a;)s[o]=r[t+o];o=-1;for(var l=n(t+1);++o<t;)l[o]=r[o];return l[t]=i(s),xt(e,this,l)}}function Io(e,t){return t.length<2?e:ki(e,rr(t,0,-1))}function Do(e,t){for(var n=e.length,i=bn(t.length,n),o=Dr(e);i--;){var a=t[i];e[i]=bo(a,n)?o[a]:r}return e}function Lo(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Oo=Po(tr),Ro=ht||function(e,t){return ft.setTimeout(e,t)},Ao=Po(nr);function Mo(e,t,n){var i=t+"";return Ao(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Tt(m,(function(n){var i="_."+n[0];t&n[1]&&!Lt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(i),n)))}function Po(e){var t=0,n=0;return function(){var i=Cn(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Zo(e,t){var n=-1,i=e.length,o=i-1;for(t=t===r?i:t;++n<t;){var a=qi(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Fo=function(e){var t=Pa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ie,(function(e,n,i,r){t.push(i?r.replace(fe,"$1"):n||e)})),t}));function Bo(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ho(e){if(null!=e){try{return Ae.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function zo(e){if(e instanceof Un)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Dr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var jo=Xi((function(e,t){return qa(e)?hi(e,yi(t,1,qa,!0)):[]})),Vo=Xi((function(e,t){var n=Qo(t);return qa(n)&&(n=r),qa(e)?hi(e,yi(t,1,qa,!0),co(n,2)):[]})),Wo=Xi((function(e,t){var n=Qo(t);return qa(n)&&(n=r),qa(e)?hi(e,yi(t,1,qa,!0),r,n):[]}));function Uo(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:vs(n);return r<0&&(r=_n(i+r,0)),Ht(e,co(t,3),r)}function Go(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return n!==r&&(o=vs(n),o=n<0?_n(i+o,0):bn(o,i-1)),Ht(e,co(t,3),o,!0)}function Ko(e){return(null==e?0:e.length)?yi(e,1):[]}function Yo(e){return e&&e.length?e[0]:r}var qo=Xi((function(e){var t=Rt(e,yr);return t.length&&t[0]===e[0]?Di(t):[]})),$o=Xi((function(e){var t=Qo(e),n=Rt(e,yr);return t===Qo(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Di(n,co(t,2)):[]})),Xo=Xi((function(e){var t=Qo(e),n=Rt(e,yr);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Di(n,r,t):[]}));function Qo(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Jo=Xi(ea);function ea(e,t){return e&&e.length&&t&&t.length?Ki(e,t):e}var ta=io((function(e,t){var n=null==e?0:e.length,i=si(e,t);return Yi(e,Rt(t,(function(e){return bo(e,n)?+e:e})).sort(Tr)),i}));function na(e){return null==e?e:kn.call(e)}var ia=Xi((function(e){return dr(yi(e,1,qa,!0))})),ra=Xi((function(e){var t=Qo(e);return qa(t)&&(t=r),dr(yi(e,1,qa,!0),co(t,2))})),oa=Xi((function(e){var t=Qo(e);return t="function"==typeof t?t:r,dr(yi(e,1,qa,!0),r,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,(function(e){if(qa(e))return t=_n(e.length,t),!0})),qt(t,(function(t){return Rt(e,Ut(t))}))}function sa(e,t){if(!e||!e.length)return[];var n=aa(e);return null==t?n:Rt(n,(function(e){return xt(t,r,e)}))}var la=Xi((function(e,t){return qa(e)?hi(e,t):[]})),ca=Xi((function(e){return vr(Dt(e,qa))})),ua=Xi((function(e){var t=Qo(e);return qa(t)&&(t=r),vr(Dt(e,qa),co(t,2))})),da=Xi((function(e){var t=Qo(e);return t="function"==typeof t?t:r,vr(Dt(e,qa),r,t)})),ha=Xi(aa);var fa=Xi((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,sa(e,n)}));function pa(e){var t=zn(e);return t.__chain__=!0,t}function ga(e,t){return t(e)}var va=io((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return si(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Un&&bo(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:ga,args:[o],thisArg:r}),new Wn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(o)}));var ma=Or((function(e,t,n){Me.call(e,n)?++e[n]:ai(e,n,1)}));var ya=Br(Uo),_a=Br(Go);function ba(e,t){return(Ga(e)?Tt:fi)(e,co(t,3))}function Ca(e,t){return(Ga(e)?Nt:pi)(e,co(t,3))}var Sa=Or((function(e,t,n){Me.call(e,n)?e[n].push(t):ai(e,n,[t])}));var wa=Xi((function(e,t,i){var r=-1,o="function"==typeof t,a=Ya(e)?n(e.length):[];return fi(e,(function(e){a[++r]=o?xt(t,e,i):Li(e,t,i)})),a})),ka=Or((function(e,t,n){ai(e,n,t)}));function xa(e,t){return(Ga(e)?Rt:Hi)(e,co(t,3))}var Ea=Or((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ta=Xi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Co(e,t[0],t[1])?t=[]:n>2&&Co(t[0],t[1],t[2])&&(t=[t[0]]),Ui(e,yi(t,1),[])})),Na=dt||function(){return ft.Date.now()};function Ia(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Qr(e,d,r,r,r,r,t)}function Da(e,t){var n;if("function"!=typeof t)throw new Ie(o);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var La=Xi((function(e,t,n){var i=1;if(n.length){var r=un(n,lo(La));i|=c}return Qr(e,i,t,n,r)})),Oa=Xi((function(e,t,n){var i=3;if(n.length){var r=un(n,lo(Oa));i|=c}return Qr(t,i,e,n,r)}));function Ra(e,t,n){var i,a,s,l,c,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Ie(o);function g(t){var n=i,o=a;return i=a=r,d=t,l=e.apply(o,n)}function v(e){return d=e,c=Ro(y,t),h?g(e):l}function m(e){var n=e-u;return u===r||n>=t||n<0||f&&e-d>=s}function y(){var e=Na();if(m(e))return _(e);c=Ro(y,function(e){var n=t-(e-u);return f?bn(n,s-(e-d)):n}(e))}function _(e){return c=r,p&&i?g(e):(i=a=r,l)}function b(){var e=Na(),n=m(e);if(i=arguments,a=this,u=e,n){if(c===r)return v(u);if(f)return wr(c),c=Ro(y,t),g(u)}return c===r&&(c=Ro(y,t)),l}return t=ys(t)||0,ns(n)&&(h=!!n.leading,s=(f="maxWait"in n)?_n(ys(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),b.cancel=function(){c!==r&&wr(c),d=0,i=u=a=c=r},b.flush=function(){return c===r?l:_(Na())},b}var Aa=Xi((function(e,t){return di(e,1,t)})),Ma=Xi((function(e,t,n){return di(e,ys(t)||0,n)}));function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(o);var n=function n(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(Pa.Cache||Yn),n}function Za(e){if("function"!=typeof e)throw new Ie(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=Yn;var Fa=Cr((function(e,t){var n=(t=1==t.length&&Ga(t[0])?Rt(t[0],Xt(co())):Rt(yi(t,1),Xt(co()))).length;return Xi((function(i){for(var r=-1,o=bn(i.length,n);++r<o;)i[r]=t[r].call(this,i[r]);return xt(e,this,i)}))})),Ba=Xi((function(e,t){var n=un(t,lo(Ba));return Qr(e,c,r,t,n)})),Ha=Xi((function(e,t){var n=un(t,lo(Ha));return Qr(e,u,r,t,n)})),za=io((function(e,t){return Qr(e,h,r,r,r,t)}));function ja(e,t){return e===t||e!==e&&t!==t}var Va=Kr(Ti),Wa=Kr((function(e,t){return e>=t})),Ua=Oi(function(){return arguments}())?Oi:function(e){return is(e)&&Me.call(e,"callee")&&!Ye.call(e,"callee")},Ga=n.isArray,Ka=_t?Xt(_t):function(e){return is(e)&&Ei(e)==A};function Ya(e){return null!=e&&ts(e.length)&&!Ja(e)}function qa(e){return is(e)&&Ya(e)}var $a=yt||yl,Xa=bt?Xt(bt):function(e){return is(e)&&Ei(e)==C};function Qa(e){if(!is(e))return!1;var t=Ei(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Ja(e){if(!ns(e))return!1;var t=Ei(e);return t==w||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==vs(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function is(e){return null!=e&&"object"==typeof e}var rs=Ct?Xt(Ct):function(e){return is(e)&&vo(e)==x};function os(e){return"number"==typeof e||is(e)&&Ei(e)==E}function as(e){if(!is(e)||Ei(e)!=T)return!1;var t=Ge(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Be}var ss=St?Xt(St):function(e){return is(e)&&Ei(e)==I};var ls=wt?Xt(wt):function(e){return is(e)&&vo(e)==D};function cs(e){return"string"==typeof e||!Ga(e)&&is(e)&&Ei(e)==L}function us(e){return"symbol"==typeof e||is(e)&&Ei(e)==O}var ds=kt?Xt(kt):function(e){return is(e)&&ts(e.length)&&!!at[Ei(e)]};var hs=Kr(Bi),fs=Kr((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Ya(e))return cs(e)?pn(e):Dr(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=vo(e);return(t==x?ln:t==D?dn:js)(e)}function gs(e){return e?(e=ys(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function vs(e){var t=gs(e),n=t%1;return t===t?n?t-n:t:0}function ms(e){return e?li(vs(e),0,v):0}function ys(e){if("number"==typeof e)return e;if(us(e))return g;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$t(e);var n=me.test(e);return n||_e.test(e)?ut(e.slice(2),n?2:8):ve.test(e)?g:+e}function _s(e){return Lr(e,As(e))}function bs(e){return null==e?"":ur(e)}var Cs=Rr((function(e,t){if(xo(t)||Ya(t))Lr(t,Rs(t),e);else for(var n in t)Me.call(t,n)&&ni(e,n,t[n])})),Ss=Rr((function(e,t){Lr(t,As(t),e)})),ws=Rr((function(e,t,n,i){Lr(t,As(t),e,i)})),ks=Rr((function(e,t,n,i){Lr(t,Rs(t),e,i)})),xs=io(si);var Es=Xi((function(e,t){e=Ee(e);var n=-1,i=t.length,o=i>2?t[2]:r;for(o&&Co(t[0],t[1],o)&&(i=1);++n<i;)for(var a=t[n],s=As(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===r||ja(d,Oe[u])&&!Me.call(e,u))&&(e[u]=a[u])}return e})),Ts=Xi((function(e){return e.push(r,eo),xt(Ps,r,e)}));function Ns(e,t,n){var i=null==e?r:ki(e,t);return i===r?n:i}function Is(e,t){return null!=e&&mo(e,t,Ii)}var Ds=jr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),nl(ol)),Ls=jr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]}),co),Os=Xi(Li);function Rs(e){return Ya(e)?Xn(e):Zi(e)}function As(e){return Ya(e)?Xn(e,!0):Fi(e)}var Ms=Rr((function(e,t,n){Vi(e,t,n)})),Ps=Rr((function(e,t,n,i){Vi(e,t,n,i)})),Zs=io((function(e,t){var n={};if(null==e)return n;var i=!1;t=Rt(t,(function(t){return t=br(t,e),i||(i=t.length>1),t})),Lr(e,oo(e),n),i&&(n=ci(n,7,to));for(var r=t.length;r--;)hr(n,t[r]);return n}));var Fs=io((function(e,t){return null==e?{}:function(e,t){return Gi(e,t,(function(t,n){return Is(e,n)}))}(e,t)}));function Bs(e,t){if(null==e)return{};var n=Rt(oo(e),(function(e){return[e]}));return t=co(t),Gi(e,n,(function(e,n){return t(e,n[0])}))}var Hs=Xr(Rs),zs=Xr(As);function js(e){return null==e?[]:Qt(e,Rs(e))}var Vs=Zr((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Qs(bs(e).toLowerCase())}function Us(e){return(e=bs(e))&&e.replace(Ce,rn).replace(Je,"")}var Gs=Zr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ks=Zr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=Pr("toLowerCase");var qs=Zr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var $s=Zr((function(e,t,n){return e+(n?" ":"")+Qs(t)}));var Xs=Zr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Qs=Pr("toUpperCase");function Js(e,t,n){return e=bs(e),(t=n?r:t)===r?function(e){return it.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var el=Xi((function(e,t){try{return xt(e,r,t)}catch(n){return Qa(n)?n:new se(n)}})),tl=io((function(e,t){return Tt(t,(function(t){t=Bo(t),ai(e,t,La(e[t],e))})),e}));function nl(e){return function(){return e}}var il=Hr(),rl=Hr(!0);function ol(e){return e}function al(e){return Pi("function"==typeof e?e:ci(e,1))}var sl=Xi((function(e,t){return function(n){return Li(n,e,t)}})),ll=Xi((function(e,t){return function(n){return Li(e,n,t)}}));function cl(e,t,n){var i=Rs(t),r=wi(t,i);null!=n||ns(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=wi(t,Rs(t)));var o=!(ns(n)&&"chain"in n)||!!n.chain,a=Ja(e);return Tt(r,(function(n){var i=t[n];e[n]=i,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),r=n.__actions__=Dr(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,At([this.value()],arguments))})})),e}function ul(){}var dl=Wr(Rt),hl=Wr(It),fl=Wr(Zt);function pl(e){return So(e)?Ut(Bo(e)):function(e){return function(t){return ki(t,e)}}(e)}var gl=Gr(),vl=Gr(!0);function ml(){return[]}function yl(){return!1}var _l=Vr((function(e,t){return e+t}),0),bl=qr("ceil"),Cl=Vr((function(e,t){return e/t}),1),Sl=qr("floor");var wl=Vr((function(e,t){return e*t}),1),kl=qr("round"),xl=Vr((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Ie(o);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ia,zn.assign=Cs,zn.assignIn=Ss,zn.assignInWith=ws,zn.assignWith=ks,zn.at=xs,zn.before=Da,zn.bind=La,zn.bindAll=tl,zn.bindKey=Oa,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ga(e)?e:[e]},zn.chain=pa,zn.chunk=function(e,t,i){t=(i?Co(e,t,i):t===r)?1:_n(vs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=n(pt(o/t));a<o;)l[s++]=rr(e,a,a+=t);return l},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),i=arguments[0],r=e;r--;)t[r-1]=arguments[r];return At(Ga(i)?Dr(i):[i],yi(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=co();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new Ie(o);return[n(e[0]),e[1]]})):[],Xi((function(n){for(var i=-1;++i<t;){var r=e[i];if(xt(r[0],this,n))return xt(r[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Rs(e);return function(n){return ui(n,e,t)}}(ci(e,1))},zn.constant=nl,zn.countBy=ma,zn.create=function(e,t){var n=jn(e);return null==t?n:oi(n,t)},zn.curry=function e(t,n,i){var o=Qr(t,8,r,r,r,r,r,n=i?r:n);return o.placeholder=e.placeholder,o},zn.curryRight=function e(t,n,i){var o=Qr(t,l,r,r,r,r,r,n=i?r:n);return o.placeholder=e.placeholder,o},zn.debounce=Ra,zn.defaults=Es,zn.defaultsDeep=Ts,zn.defer=Aa,zn.delay=Ma,zn.difference=jo,zn.differenceBy=Vo,zn.differenceWith=Wo,zn.drop=function(e,t,n){var i=null==e?0:e.length;return i?rr(e,(t=n||t===r?1:vs(t))<0?0:t,i):[]},zn.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?rr(e,0,(t=i-(t=n||t===r?1:vs(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?pr(e,co(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?pr(e,co(t,3),!0):[]},zn.fill=function(e,t,n,i){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Co(e,t,n)&&(n=0,i=o),function(e,t,n,i){var o=e.length;for((n=vs(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:vs(i))<0&&(i+=o),i=n>i?0:ms(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},zn.filter=function(e,t){return(Ga(e)?Dt:mi)(e,co(t,3))},zn.flatMap=function(e,t){return yi(xa(e,t),1)},zn.flatMapDeep=function(e,t){return yi(xa(e,t),f)},zn.flatMapDepth=function(e,t,n){return n=n===r?1:vs(n),yi(xa(e,t),n)},zn.flatten=Ko,zn.flattenDeep=function(e){return(null==e?0:e.length)?yi(e,f):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?yi(e,t=t===r?1:vs(t)):[]},zn.flip=function(e){return Qr(e,512)},zn.flow=il,zn.flowRight=rl,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},zn.functions=function(e){return null==e?[]:wi(e,Rs(e))},zn.functionsIn=function(e){return null==e?[]:wi(e,As(e))},zn.groupBy=Sa,zn.initial=function(e){return(null==e?0:e.length)?rr(e,0,-1):[]},zn.intersection=qo,zn.intersectionBy=$o,zn.intersectionWith=Xo,zn.invert=Ds,zn.invertBy=Ls,zn.invokeMap=wa,zn.iteratee=al,zn.keyBy=ka,zn.keys=Rs,zn.keysIn=As,zn.map=xa,zn.mapKeys=function(e,t){var n={};return t=co(t,3),Ci(e,(function(e,i,r){ai(n,t(e,i,r),e)})),n},zn.mapValues=function(e,t){var n={};return t=co(t,3),Ci(e,(function(e,i,r){ai(n,i,t(e,i,r))})),n},zn.matches=function(e){return zi(ci(e,1))},zn.matchesProperty=function(e,t){return ji(e,ci(t,1))},zn.memoize=Pa,zn.merge=Ms,zn.mergeWith=Ps,zn.method=sl,zn.methodOf=ll,zn.mixin=cl,zn.negate=Za,zn.nthArg=function(e){return e=vs(e),Xi((function(t){return Wi(t,e)}))},zn.omit=Zs,zn.omitBy=function(e,t){return Bs(e,Za(co(t)))},zn.once=function(e){return Da(2,e)},zn.orderBy=function(e,t,n,i){return null==e?[]:(Ga(t)||(t=null==t?[]:[t]),Ga(n=i?r:n)||(n=null==n?[]:[n]),Ui(e,t,n))},zn.over=dl,zn.overArgs=Fa,zn.overEvery=hl,zn.overSome=fl,zn.partial=Ba,zn.partialRight=Ha,zn.partition=Ea,zn.pick=Fs,zn.pickBy=Bs,zn.property=pl,zn.propertyOf=function(e){return function(t){return null==e?r:ki(e,t)}},zn.pull=Jo,zn.pullAll=ea,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Ki(e,t,co(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Ki(e,t,r,n):e},zn.pullAt=ta,zn.range=gl,zn.rangeRight=vl,zn.rearg=za,zn.reject=function(e,t){return(Ga(e)?Dt:mi)(e,Za(co(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=co(t,3);++i<o;){var a=e[i];t(a,i,e)&&(n.push(a),r.push(i))}return Yi(e,r),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Ie(o);return Xi(e,t=t===r?t:vs(t))},zn.reverse=na,zn.sampleSize=function(e,t,n){return t=(n?Co(e,t,n):t===r)?1:vs(t),(Ga(e)?Jn:Ji)(e,t)},zn.set=function(e,t,n){return null==e?e:er(e,t,n)},zn.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:er(e,t,n,i)},zn.shuffle=function(e){return(Ga(e)?ei:ir)(e)},zn.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Co(e,t,n)?(t=0,n=i):(t=null==t?0:vs(t),n=n===r?i:vs(n)),rr(e,t,n)):[]},zn.sortBy=Ta,zn.sortedUniq=function(e){return e&&e.length?lr(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?lr(e,co(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&Co(e,t,n)&&(t=n=r),(n=n===r?v:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=ur(t))&&sn(e)?Sr(pn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Ie(o);return t=null==t?0:_n(vs(t),0),Xi((function(n){var i=n[t],r=Sr(n,0,t);return i&&At(r,i),xt(e,this,r)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?rr(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?rr(e,0,(t=n||t===r?1:vs(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?rr(e,(t=i-(t=n||t===r?1:vs(t)))<0?0:t,i):[]},zn.takeRightWhile=function(e,t){return e&&e.length?pr(e,co(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?pr(e,co(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new Ie(o);return ns(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Ra(e,t,{leading:i,maxWait:t,trailing:r})},zn.thru=ga,zn.toArray=ps,zn.toPairs=Hs,zn.toPairsIn=zs,zn.toPath=function(e){return Ga(e)?Rt(e,Bo):us(e)?[e]:Dr(Fo(bs(e)))},zn.toPlainObject=_s,zn.transform=function(e,t,n){var i=Ga(e),r=i||$a(e)||ds(e);if(t=co(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:ns(e)&&Ja(o)?jn(Ge(e)):{}}return(r?Tt:Ci)(e,(function(e,i,r){return t(n,e,i,r)})),n},zn.unary=function(e){return Ia(e,1)},zn.union=ia,zn.unionBy=ra,zn.unionWith=oa,zn.uniq=function(e){return e&&e.length?dr(e):[]},zn.uniqBy=function(e,t){return e&&e.length?dr(e,co(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?dr(e,r,t):[]},zn.unset=function(e,t){return null==e||hr(e,t)},zn.unzip=aa,zn.unzipWith=sa,zn.update=function(e,t,n){return null==e?e:fr(e,t,_r(n))},zn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:fr(e,t,_r(n),i)},zn.values=js,zn.valuesIn=function(e){return null==e?[]:Qt(e,As(e))},zn.without=la,zn.words=Js,zn.wrap=function(e,t){return Ba(_r(t),e)},zn.xor=ca,zn.xorBy=ua,zn.xorWith=da,zn.zip=ha,zn.zipObject=function(e,t){return mr(e||[],t||[],ni)},zn.zipObjectDeep=function(e,t){return mr(e||[],t||[],er)},zn.zipWith=fa,zn.entries=Hs,zn.entriesIn=zs,zn.extend=Ss,zn.extendWith=ws,cl(zn,zn),zn.add=_l,zn.attempt=el,zn.camelCase=Vs,zn.capitalize=Ws,zn.ceil=bl,zn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=ys(n))===n?n:0),t!==r&&(t=(t=ys(t))===t?t:0),li(ys(e),t,n)},zn.clone=function(e){return ci(e,4)},zn.cloneDeep=function(e){return ci(e,5)},zn.cloneDeepWith=function(e,t){return ci(e,5,t="function"==typeof t?t:r)},zn.cloneWith=function(e,t){return ci(e,4,t="function"==typeof t?t:r)},zn.conformsTo=function(e,t){return null==t||ui(e,t,Rs(t))},zn.deburr=Us,zn.defaultTo=function(e,t){return null==e||e!==e?t:e},zn.divide=Cl,zn.endsWith=function(e,t,n){e=bs(e),t=ur(t);var i=e.length,o=n=n===r?i:li(vs(n),0,i);return(n-=t.length)>=0&&e.slice(n,o)==t},zn.eq=ja,zn.escape=function(e){return(e=bs(e))&&X.test(e)?e.replace(q,on):e},zn.escapeRegExp=function(e){return(e=bs(e))&&oe.test(e)?e.replace(re,"\\$&"):e},zn.every=function(e,t,n){var i=Ga(e)?It:gi;return n&&Co(e,t,n)&&(t=r),i(e,co(t,3))},zn.find=ya,zn.findIndex=Uo,zn.findKey=function(e,t){return Bt(e,co(t,3),Ci)},zn.findLast=_a,zn.findLastIndex=Go,zn.findLastKey=function(e,t){return Bt(e,co(t,3),Si)},zn.floor=Sl,zn.forEach=ba,zn.forEachRight=Ca,zn.forIn=function(e,t){return null==e?e:_i(e,co(t,3),As)},zn.forInRight=function(e,t){return null==e?e:bi(e,co(t,3),As)},zn.forOwn=function(e,t){return e&&Ci(e,co(t,3))},zn.forOwnRight=function(e,t){return e&&Si(e,co(t,3))},zn.get=Ns,zn.gt=Va,zn.gte=Wa,zn.has=function(e,t){return null!=e&&mo(e,t,Ni)},zn.hasIn=Is,zn.head=Yo,zn.identity=ol,zn.includes=function(e,t,n,i){e=Ya(e)?e:js(e),n=n&&!i?vs(n):0;var r=e.length;return n<0&&(n=_n(r+n,0)),cs(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&zt(e,t,n)>-1},zn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:vs(n);return r<0&&(r=_n(i+r,0)),zt(e,t,r)},zn.inRange=function(e,t,n){return t=gs(t),n===r?(n=t,t=0):n=gs(n),function(e,t,n){return e>=bn(t,n)&&e<_n(t,n)}(e=ys(e),t,n)},zn.invoke=Os,zn.isArguments=Ua,zn.isArray=Ga,zn.isArrayBuffer=Ka,zn.isArrayLike=Ya,zn.isArrayLikeObject=qa,zn.isBoolean=function(e){return!0===e||!1===e||is(e)&&Ei(e)==b},zn.isBuffer=$a,zn.isDate=Xa,zn.isElement=function(e){return is(e)&&1===e.nodeType&&!as(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(Ga(e)||"string"==typeof e||"function"==typeof e.splice||$a(e)||ds(e)||Ua(e)))return!e.length;var t=vo(e);if(t==x||t==D)return!e.size;if(xo(e))return!Zi(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Ri(e,t)},zn.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?Ri(e,t,r,n):!!i},zn.isError=Qa,zn.isFinite=function(e){return"number"==typeof e&&Ft(e)},zn.isFunction=Ja,zn.isInteger=es,zn.isLength=ts,zn.isMap=rs,zn.isMatch=function(e,t){return e===t||Ai(e,t,ho(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Ai(e,t,ho(t),n)},zn.isNaN=function(e){return os(e)&&e!=+e},zn.isNative=function(e){if(ko(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mi(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=os,zn.isObject=ns,zn.isObjectLike=is,zn.isPlainObject=as,zn.isRegExp=ss,zn.isSafeInteger=function(e){return es(e)&&e>=-9007199254740991&&e<=p},zn.isSet=ls,zn.isString=cs,zn.isSymbol=us,zn.isTypedArray=ds,zn.isUndefined=function(e){return e===r},zn.isWeakMap=function(e){return is(e)&&vo(e)==R},zn.isWeakSet=function(e){return is(e)&&"[object WeakSet]"==Ei(e)},zn.join=function(e,t){return null==e?"":Gt.call(e,t)},zn.kebabCase=Gs,zn.last=Qo,zn.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=vs(n))<0?_n(i+o,0):bn(o,i-1)),t===t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):Ht(e,Vt,o,!0)},zn.lowerCase=Ks,zn.lowerFirst=Ys,zn.lt=hs,zn.lte=fs,zn.max=function(e){return e&&e.length?vi(e,ol,Ti):r},zn.maxBy=function(e,t){return e&&e.length?vi(e,co(t,2),Ti):r},zn.mean=function(e){return Wt(e,ol)},zn.meanBy=function(e,t){return Wt(e,co(t,2))},zn.min=function(e){return e&&e.length?vi(e,ol,Bi):r},zn.minBy=function(e,t){return e&&e.length?vi(e,co(t,2),Bi):r},zn.stubArray=ml,zn.stubFalse=yl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=wl,zn.nth=function(e,t){return e&&e.length?Wi(e,vs(t)):r},zn.noConflict=function(){return ft._===this&&(ft._=He),this},zn.noop=ul,zn.now=Na,zn.pad=function(e,t,n){e=bs(e);var i=(t=vs(t))?fn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Ur(gt(r),n)+e+Ur(pt(r),n)},zn.padEnd=function(e,t,n){e=bs(e);var i=(t=vs(t))?fn(e):0;return t&&i<t?e+Ur(t-i,n):e},zn.padStart=function(e,t,n){e=bs(e);var i=(t=vs(t))?fn(e):0;return t&&i<t?Ur(t-i,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(bs(e).replace(ae,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Co(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=gs(e),t===r?(t=e,e=0):t=gs(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var o=wn();return bn(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return qi(e,t)},zn.reduce=function(e,t,n){var i=Ga(e)?Mt:Kt,r=arguments.length<3;return i(e,co(t,4),n,r,fi)},zn.reduceRight=function(e,t,n){var i=Ga(e)?Pt:Kt,r=arguments.length<3;return i(e,co(t,4),n,r,pi)},zn.repeat=function(e,t,n){return t=(n?Co(e,t,n):t===r)?1:vs(t),$i(bs(e),t)},zn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var i=-1,o=(t=br(t,e)).length;for(o||(o=1,e=r);++i<o;){var a=null==e?r:e[Bo(t[i])];a===r&&(i=o,a=n),e=Ja(a)?a.call(e):a}return e},zn.round=kl,zn.runInContext=e,zn.sample=function(e){return(Ga(e)?Qn:Qi)(e)},zn.size=function(e){if(null==e)return 0;if(Ya(e))return cs(e)?fn(e):e.length;var t=vo(e);return t==x||t==D?e.size:Zi(e).length},zn.snakeCase=qs,zn.some=function(e,t,n){var i=Ga(e)?Zt:or;return n&&Co(e,t,n)&&(t=r),i(e,co(t,3))},zn.sortedIndex=function(e,t){return ar(e,t)},zn.sortedIndexBy=function(e,t,n){return sr(e,t,co(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=ar(e,t);if(i<n&&ja(e[i],t))return i}return-1},zn.sortedLastIndex=function(e,t){return ar(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return sr(e,t,co(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ar(e,t,!0)-1;if(ja(e[n],t))return n}return-1},zn.startCase=$s,zn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:li(vs(n),0,e.length),t=ur(t),e.slice(n,n+t.length)==t},zn.subtract=xl,zn.sum=function(e){return e&&e.length?Yt(e,ol):0},zn.sumBy=function(e,t){return e&&e.length?Yt(e,co(t,2)):0},zn.template=function(e,t,n){var i=zn.templateSettings;n&&Co(e,t,n)&&(t=r),e=bs(e),t=ws({},t,i,Jr);var o,a,s=ws({},t.imports,i.imports,Jr),l=Rs(s),c=Qt(s,l),u=0,d=t.interpolate||Se,h="__p += '",f=Te((t.escape||Se).source+"|"+d.source+"|"+(d===ee?pe:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),p="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ot+"]")+"\n";e.replace(f,(function(t,n,i,r,s,l){return i||(i=r),h+=e.slice(u,l).replace(we,an),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),h+="';\n";var g=Me.call(t,"variable")&&t.variable;if(g){if(he.test(g))throw new se("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(a?h.replace(U,""):h).replace(G,"$1").replace(K,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=el((function(){return ke(l,p+"return "+h).apply(r,c)}));if(v.source=h,Qa(v))throw v;return v},zn.times=function(e,t){if((e=vs(e))<1||e>p)return[];var n=v,i=bn(e,v);t=co(t),e-=v;for(var r=qt(i,t);++n<e;)t(n);return r},zn.toFinite=gs,zn.toInteger=vs,zn.toLength=ms,zn.toLower=function(e){return bs(e).toLowerCase()},zn.toNumber=ys,zn.toSafeInteger=function(e){return e?li(vs(e),-9007199254740991,p):0===e?e:0},zn.toString=bs,zn.toUpper=function(e){return bs(e).toUpperCase()},zn.trim=function(e,t,n){if((e=bs(e))&&(n||t===r))return $t(e);if(!e||!(t=ur(t)))return e;var i=pn(e),o=pn(t);return Sr(i,en(i,o),tn(i,o)+1).join("")},zn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===r))return e.slice(0,gn(e)+1);if(!e||!(t=ur(t)))return e;var i=pn(e);return Sr(i,0,tn(i,pn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===r))return e.replace(ae,"");if(!e||!(t=ur(t)))return e;var i=pn(e);return Sr(i,en(i,pn(t))).join("")},zn.truncate=function(e,t){var n=30,i="...";if(ns(t)){var o="separator"in t?t.separator:o;n="length"in t?vs(t.length):n,i="omission"in t?ur(t.omission):i}var a=(e=bs(e)).length;if(sn(e)){var s=pn(e);a=s.length}if(n>=a)return e;var l=n-fn(i);if(l<1)return i;var c=s?Sr(s,0,l).join(""):e.slice(0,l);if(o===r)return c+i;if(s&&(l+=c.length-l),ss(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Te(o.source,bs(ge.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;c=c.slice(0,h===r?l:h)}}else if(e.indexOf(ur(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+i},zn.unescape=function(e){return(e=bs(e))&&$.test(e)?e.replace(Y,vn):e},zn.uniqueId=function(e){var t=++Pe;return bs(e)+t},zn.upperCase=Xs,zn.upperFirst=Qs,zn.each=ba,zn.eachRight=Ca,zn.first=Yo,cl(zn,function(){var e={};return Ci(zn,(function(t,n){Me.call(zn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),zn.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Tt(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===r?1:_n(vs(n),0);var i=this.__filtered__&&!t?new Un(this):this.clone();return i.__filtered__?i.__takeCount__=bn(n,i.__takeCount__):i.__views__.push({size:bn(n,v),type:e+(i.__dir__<0?"Right":"")}),i},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(ol)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Xi((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Li(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Za(co(e)))},Un.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(v)},Ci(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=zn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof Un,c=s[0],u=l||Ga(t),d=function(e){var t=o.apply(zn,At([e],s));return i&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=a&&!h,g=l&&!f;if(!a&&u){t=g?t:new Un(this);var v=e.apply(t,s);return v.__actions__.push({func:ga,args:[d],thisArg:r}),new Wn(v,h)}return p&&g?e.apply(this,s):(v=this.thru(d),p?i?v.value()[0]:v.value():v)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=De[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Ga(r)?r:[],e)}return this[n]((function(n){return t.apply(Ga(n)?n:[],e)}))}})),Ci(Un.prototype,(function(e,t){var n=zn[t];if(n){var i=n.name+"";Me.call(On,i)||(On[i]=[]),On[i].push({name:t,func:n})}})),On[zr(r,2).name]=[{name:"wrapper",func:r}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Dr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Dr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Dr(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ga(e),i=t<0,r=n?e.length:0,o=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var o=n[i],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=_n(e,t-a)}}return{start:e,end:t}}(0,r,this.__views__),a=o.start,s=o.end,l=s-a,c=i?s:a-1,u=this.__iteratees__,d=u.length,h=0,f=bn(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return gr(e,this.__actions__);var p=[];e:for(;l--&&h<f;){for(var g=-1,v=e[c+=t];++g<d;){var m=u[g],y=m.iteratee,_=m.type,b=y(v);if(2==_)v=b;else if(!b){if(1==_)continue e;break e}}p[h++]=v}return p},zn.prototype.at=va,zn.prototype.chain=function(){return pa(this)},zn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===r&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Vn;){var i=zo(n);i.__index__=0,i.__values__=r,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:ga,args:[na],thisArg:r}),new Wn(t,this.__chain__)}return this.thru(na)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return gr(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Xe&&(zn.prototype[Xe]=function(){return this}),zn}();ft._=mn,(i=function(){return mn}.call(t,n,t,e))===r||(e.exports=i)}.call(this)},72034:function(e,t,n){var i=n(68950),r=n(56025),o=n(53849),a=n(93629);e.exports=function(e,t){return(a(e)?i:o)(e,r(t,3))}},49151:function(e,t,n){var i=n(78059);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(r.Cache||i),n}r.Cache=i,e.exports=r},79286:function(e,t,n){var i=n(64173),r=n(39934)((function(e,t,n){i(e,t,n)}));e.exports=r},50072:function(e,t,n){var i=n(97009);e.exports=function(){return i.Date.now()}},10038:function(e,t,n){var i=n(9586),r=n(4084),o=n(25823),a=n(69793);e.exports=function(e){return o(e)?i(a(e)):r(e)}},68174:function(e){e.exports=function(){return[]}},49488:function(e){e.exports=function(){return!1}},33038:function(e,t,n){var i=n(48573),r=n(8092);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),i(e,t,{leading:o,maxWait:t,trailing:a})}},42582:function(e,t,n){var i=n(20821),r=n(8092),o=n(70152),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},6576:function(e,t,n){var i=n(64503),r=n(73961);e.exports=function(e){return i(e,r(e))}},63518:function(e,t,n){var i=n(2446);e.exports=function(e){return null==e?"":i(e)}},3703:function(e,t,n){"use strict";var i=n(22905);e.exports=i,i.registerLanguage("1c",n(66078)),i.registerLanguage("abnf",n(21290)),i.registerLanguage("accesslog",n(15187)),i.registerLanguage("actionscript",n(24235)),i.registerLanguage("ada",n(98985)),i.registerLanguage("angelscript",n(26591)),i.registerLanguage("apache",n(81957)),i.registerLanguage("applescript",n(23965)),i.registerLanguage("arcade",n(6158)),i.registerLanguage("arduino",n(47108)),i.registerLanguage("armasm",n(32436)),i.registerLanguage("xml",n(31107)),i.registerLanguage("asciidoc",n(66513)),i.registerLanguage("aspectj",n(18830)),i.registerLanguage("autohotkey",n(3189)),i.registerLanguage("autoit",n(93501)),i.registerLanguage("avrasm",n(92204)),i.registerLanguage("awk",n(75014)),i.registerLanguage("axapta",n(85957)),i.registerLanguage("bash",n(6734)),i.registerLanguage("basic",n(41782)),i.registerLanguage("bnf",n(58683)),i.registerLanguage("brainfuck",n(39532)),i.registerLanguage("c-like",n(16670)),i.registerLanguage("c",n(7133)),i.registerLanguage("cal",n(85546)),i.registerLanguage("capnproto",n(84052)),i.registerLanguage("ceylon",n(87263)),i.registerLanguage("clean",n(3270)),i.registerLanguage("clojure",n(27672)),i.registerLanguage("clojure-repl",n(77217)),i.registerLanguage("cmake",n(59469)),i.registerLanguage("coffeescript",n(84585)),i.registerLanguage("coq",n(90741)),i.registerLanguage("cos",n(53979)),i.registerLanguage("cpp",n(84709)),i.registerLanguage("crmsh",n(10815)),i.registerLanguage("crystal",n(31843)),i.registerLanguage("csharp",n(16385)),i.registerLanguage("csp",n(45343)),i.registerLanguage("css",n(48575)),i.registerLanguage("d",n(33128)),i.registerLanguage("markdown",n(64387)),i.registerLanguage("dart",n(75142)),i.registerLanguage("delphi",n(86088)),i.registerLanguage("diff",n(69682)),i.registerLanguage("django",n(95547)),i.registerLanguage("dns",n(1868)),i.registerLanguage("dockerfile",n(71715)),i.registerLanguage("dos",n(58030)),i.registerLanguage("dsconfig",n(87572)),i.registerLanguage("dts",n(28829)),i.registerLanguage("dust",n(8378)),i.registerLanguage("ebnf",n(41755)),i.registerLanguage("elixir",n(60718)),i.registerLanguage("elm",n(79280)),i.registerLanguage("ruby",n(52907)),i.registerLanguage("erb",n(91879)),i.registerLanguage("erlang-repl",n(45217)),i.registerLanguage("erlang",n(51160)),i.registerLanguage("excel",n(92680)),i.registerLanguage("fix",n(13960)),i.registerLanguage("flix",n(86985)),i.registerLanguage("fortran",n(28563)),i.registerLanguage("fsharp",n(59333)),i.registerLanguage("gams",n(3907)),i.registerLanguage("gauss",n(16301)),i.registerLanguage("gcode",n(77285)),i.registerLanguage("gherkin",n(72274)),i.registerLanguage("glsl",n(27216)),i.registerLanguage("gml",n(776)),i.registerLanguage("go",n(75196)),i.registerLanguage("golo",n(98305)),i.registerLanguage("gradle",n(85909)),i.registerLanguage("groovy",n(88018)),i.registerLanguage("haml",n(2160)),i.registerLanguage("handlebars",n(12778)),i.registerLanguage("haskell",n(48862)),i.registerLanguage("haxe",n(76174)),i.registerLanguage("hsp",n(55765)),i.registerLanguage("htmlbars",n(65627)),i.registerLanguage("http",n(87053)),i.registerLanguage("hy",n(35219)),i.registerLanguage("inform7",n(91510)),i.registerLanguage("ini",n(92839)),i.registerLanguage("irpf90",n(86411)),i.registerLanguage("isbl",n(472)),i.registerLanguage("java",n(61956)),i.registerLanguage("javascript",n(45418)),i.registerLanguage("jboss-cli",n(352)),i.registerLanguage("json",n(27411)),i.registerLanguage("julia",n(91026)),i.registerLanguage("julia-repl",n(76183)),i.registerLanguage("kotlin",n(93282)),i.registerLanguage("lasso",n(70699)),i.registerLanguage("latex",n(9941)),i.registerLanguage("ldif",n(51151)),i.registerLanguage("leaf",n(97898)),i.registerLanguage("less",n(17515)),i.registerLanguage("lisp",n(42569)),i.registerLanguage("livecodeserver",n(85261)),i.registerLanguage("livescript",n(84260)),i.registerLanguage("llvm",n(33770)),i.registerLanguage("lsl",n(4552)),i.registerLanguage("lua",n(9615)),i.registerLanguage("makefile",n(41818)),i.registerLanguage("mathematica",n(19437)),i.registerLanguage("matlab",n(64658)),i.registerLanguage("maxima",n(81060)),i.registerLanguage("mel",n(25063)),i.registerLanguage("mercury",n(21711)),i.registerLanguage("mipsasm",n(18714)),i.registerLanguage("mizar",n(34138)),i.registerLanguage("perl",n(45201)),i.registerLanguage("mojolicious",n(48592)),i.registerLanguage("monkey",n(17653)),i.registerLanguage("moonscript",n(35326)),i.registerLanguage("n1ql",n(24730)),i.registerLanguage("nginx",n(36630)),i.registerLanguage("nim",n(29203)),i.registerLanguage("nix",n(18373)),i.registerLanguage("node-repl",n(98824)),i.registerLanguage("nsis",n(75505)),i.registerLanguage("objectivec",n(93567)),i.registerLanguage("ocaml",n(48036)),i.registerLanguage("openscad",n(46424)),i.registerLanguage("oxygene",n(19727)),i.registerLanguage("parser3",n(7157)),i.registerLanguage("pf",n(30450)),i.registerLanguage("pgsql",n(49465)),i.registerLanguage("php",n(33610)),i.registerLanguage("php-template",n(52638)),i.registerLanguage("plaintext",n(37721)),i.registerLanguage("pony",n(7524)),i.registerLanguage("powershell",n(90601)),i.registerLanguage("processing",n(87670)),i.registerLanguage("profile",n(7568)),i.registerLanguage("prolog",n(90696)),i.registerLanguage("properties",n(44450)),i.registerLanguage("protobuf",n(18513)),i.registerLanguage("puppet",n(94146)),i.registerLanguage("purebasic",n(27215)),i.registerLanguage("python",n(85609)),i.registerLanguage("python-repl",n(42888)),i.registerLanguage("q",n(34754)),i.registerLanguage("qml",n(21687)),i.registerLanguage("r",n(47191)),i.registerLanguage("reasonml",n(78670)),i.registerLanguage("rib",n(75649)),i.registerLanguage("roboconf",n(78624)),i.registerLanguage("routeros",n(52965)),i.registerLanguage("rsl",n(16009)),i.registerLanguage("ruleslanguage",n(2731)),i.registerLanguage("rust",n(24801)),i.registerLanguage("sas",n(41621)),i.registerLanguage("scala",n(20065)),i.registerLanguage("scheme",n(46207)),i.registerLanguage("scilab",n(27422)),i.registerLanguage("scss",n(93785)),i.registerLanguage("shell",n(55789)),i.registerLanguage("smali",n(358)),i.registerLanguage("smalltalk",n(94006)),i.registerLanguage("sml",n(25585)),i.registerLanguage("sqf",n(52287)),i.registerLanguage("sql_more",n(20109)),i.registerLanguage("sql",n(14467)),i.registerLanguage("stan",n(68413)),i.registerLanguage("stata",n(10250)),i.registerLanguage("step21",n(90716)),i.registerLanguage("stylus",n(89914)),i.registerLanguage("subunit",n(97972)),i.registerLanguage("swift",n(67689)),i.registerLanguage("taggerscript",n(38073)),i.registerLanguage("yaml",n(37712)),i.registerLanguage("tap",n(55913)),i.registerLanguage("tcl",n(97125)),i.registerLanguage("thrift",n(54938)),i.registerLanguage("tp",n(99115)),i.registerLanguage("twig",n(78099)),i.registerLanguage("typescript",n(94888)),i.registerLanguage("vala",n(61936)),i.registerLanguage("vbnet",n(61608)),i.registerLanguage("vbscript",n(65827)),i.registerLanguage("vbscript-html",n(81434)),i.registerLanguage("verilog",n(72683)),i.registerLanguage("vhdl",n(9047)),i.registerLanguage("vim",n(77924)),i.registerLanguage("x86asm",n(8966)),i.registerLanguage("xl",n(48579)),i.registerLanguage("xquery",n(5554)),i.registerLanguage("zephir",n(95772))},22905:function(e,t,n){"use strict";var i=n(60478),r=n(57867);t.highlight=a,t.highlightAuto=function(e,t){var n,s,l,c,u=t||{},d=u.subset||i.listLanguages(),h=u.prefix,f=d.length,p=-1;null!==h&&void 0!==h||(h=o);if("string"!==typeof e)throw r("Expected `string` for value, got `%s`",e);s={relevance:0,language:null,value:[]},n={relevance:0,language:null,value:[]};for(;++p<f;)c=d[p],i.getLanguage(c)&&((l=a(c,e,t)).language=c,l.relevance>s.relevance&&(s=l),l.relevance>n.relevance&&(s=n,n=l));s.language&&(n.secondBest=s);return n},t.registerLanguage=function(e,t){i.registerLanguage(e,t)},t.listLanguages=function(){return i.listLanguages()},t.registerAlias=function(e,t){var n,r=e;t&&((r={})[e]=t);for(n in r)i.registerAliases(r[n],{languageName:n})},s.prototype.addText=function(e){var t,n,i=this.stack;if(""===e)return;t=i[i.length-1],(n=t.children[t.children.length-1])&&"text"===n.type?n.value+=e:t.children.push({type:"text",value:e})},s.prototype.addKeyword=function(e,t){this.openNode(t),this.addText(e),this.closeNode()},s.prototype.addSublanguage=function(e,t){var n=this.stack,i=n[n.length-1],r=e.rootNode.children,o=t?{type:"element",tagName:"span",properties:{className:[t]},children:r}:r;i.children=i.children.concat(o)},s.prototype.openNode=function(e){var t=this.stack,n=this.options.classPrefix+e,i=t[t.length-1],r={type:"element",tagName:"span",properties:{className:[n]},children:[]};i.children.push(r),t.push(r)},s.prototype.closeNode=function(){this.stack.pop()},s.prototype.closeAllNodes=l,s.prototype.finalize=l,s.prototype.toHTML=function(){return""};var o="hljs-";function a(e,t,n){var a,l=i.configure({}),c=(n||{}).prefix;if("string"!==typeof e)throw r("Expected `string` for name, got `%s`",e);if(!i.getLanguage(e))throw r("Unknown language: `%s` is not registered",e);if("string"!==typeof t)throw r("Expected `string` for value, got `%s`",t);if(null!==c&&void 0!==c||(c=o),i.configure({__emitter:s,classPrefix:c}),a=i.highlight(t,{language:e,ignoreIllegals:!0}),i.configure(l||{}),a.errorRaised)throw a.errorRaised;return{relevance:a.relevance,language:a.language,value:a.emitter.rootNode.children}}function s(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function l(){}},62865:function(e,t,n){"use strict";n.r(t),n.d(t,{PixelRatio:function(){return f},addMatchMediaChangeListener:function(){return h},getZoomFactor:function(){return p},isAndroid:function(){return S},isChrome:function(){return y},isElectron:function(){return C},isFirefox:function(){return v},isSafari:function(){return _},isStandalone:function(){return x},isWebKit:function(){return m},isWebkitWebView:function(){return b}});var i=n(60136),r=n(27277),o=n(15671),a=n(43144),s=n(73097),l=n(11860),c=function(){function e(){(0,o.Z)(this,e),this._zoomFactor=1}return(0,a.Z)(e,[{key:"getZoomFactor",value:function(){return this._zoomFactor}}]),e}();c.INSTANCE=new c;var u=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.call(this))._onDidChange=e._register(new s.Q5),e.onDidChange=e._onDidChange.event,e._listener=function(){return e._handleChange(!0)},e._mediaQueryList=null,e._handleChange(!1),e}return(0,a.Z)(n,[{key:"_handleChange",value:function(e){var t;null===(t=this._mediaQueryList)||void 0===t||t.removeEventListener("change",this._listener),this._mediaQueryList=matchMedia("(resolution: ".concat(window.devicePixelRatio,"dppx)")),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}]),n}(l.JT),d=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){var e;(0,o.Z)(this,n),(e=t.call(this))._onDidChange=e._register(new s.Q5),e.onDidChange=e._onDidChange.event,e._value=e._getPixelRatio();var i=e._register(new u);return e._register(i.onDidChange((function(){e._value=e._getPixelRatio(),e._onDidChange.fire(e._value)}))),e}return(0,a.Z)(n,[{key:"value",get:function(){return this._value}},{key:"_getPixelRatio",value:function(){var e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}}]),n}(l.JT);function h(e,t){"string"===typeof e&&(e=window.matchMedia(e)),e.addEventListener("change",t)}var f=new(function(){function e(){(0,o.Z)(this,e),this._pixelRatioMonitor=null}return(0,a.Z)(e,[{key:"_getOrCreatePixelRatioMonitor",value:function(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=(0,l.dk)(new d)),this._pixelRatioMonitor}},{key:"value",get:function(){return this._getOrCreatePixelRatioMonitor().value}},{key:"onDidChange",get:function(){return this._getOrCreatePixelRatioMonitor().onDidChange}}]),e}());function p(){return c.INSTANCE.getZoomFactor()}var g=navigator.userAgent,v=g.indexOf("Firefox")>=0,m=g.indexOf("AppleWebKit")>=0,y=g.indexOf("Chrome")>=0,_=!y&&g.indexOf("Safari")>=0,b=!y&&!_&&m,C=g.indexOf("Electron/")>=0,S=g.indexOf("Android")>=0,w=!1;if(window.matchMedia){var k=window.matchMedia("(display-mode: standalone)");w=k.matches,h(k,(function(e){var t=e.matches;w=t}))}function x(){return w}},57572:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var i=n(62865),r=n(73616),o={clipboard:{writeText:r.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:r.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:r.tY||i.isStandalone()?0:navigator.keyboard||i.isSafari?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}},94021:function(e,t,n){"use strict";n.d(t,{P:function(){return r},g:function(){return i}});var i={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:n(62684).v.text},r={CurrentDragAndDropData:void 0}},81531:function(e,t,n){"use strict";n.r(t),n.d(t,{$:function(){return xe},Dimension:function(){return V},DragAndDropObserver:function(){return Pe},EventHelper:function(){return pe},EventType:function(){return fe},ModifierKeyEmitter:function(){return Me},Namespace:function(){return Se},StandardWindow:function(){return Y},addDisposableGenericMouseDownListener:function(){return O},addDisposableGenericMouseUpListener:function(){return R},addDisposableListener:function(){return T},addStandardDisposableGenericMouseDownListener:function(){return D},addStandardDisposableGenericMouseUpListener:function(){return L},addStandardDisposableListener:function(){return I},animate:function(){return Le},append:function(){return _e},asCSSPropertyValue:function(){return Re},asCSSUrl:function(){return Oe},clearNode:function(){return k},computeScreenAwareSize:function(){return Ie},createCSSRule:function(){return ue},createEventEmitter:function(){return A},createStyleSheet:function(){return ae},findParentWithClass:function(){return ee},getActiveElement:function(){return oe},getClientArea:function(){return z},getComputedStyle:function(){return H},getContentHeight:function(){return X},getContentWidth:function(){return $},getDomNodePagePosition:function(){return G},getDomNodeZoomLevel:function(){return K},getElementsByTagName:function(){return Ne},getShadowRoot:function(){return re},getTopLeftOffset:function(){return W},getTotalHeight:function(){return Q},getTotalWidth:function(){return q},h:function(){return Fe},hasParentWithClass:function(){return te},hide:function(){return Te},hookDomPurifyHrefAndSrcSanitizer:function(){return Ae},isAncestor:function(){return J},isHTMLElement:function(){return he},isInDOM:function(){return x},isInShadowDOM:function(){return ie},isShadowRoot:function(){return ne},prepend:function(){return be},removeCSSRulesContainingSelector:function(){return de},reset:function(){return Ce},restoreParentsScrollTop:function(){return ve},runAtThisOrScheduleAtNextAnimationFrame:function(){return M},saveParentsScrollTop:function(){return ge},scheduleAtNextAnimationFrame:function(){return P},show:function(){return Ee},size:function(){return U},trackFocus:function(){return ye},windowOpenNoOpener:function(){return De}});var i=n(29439),r=n(37762),o=n(71002),a=n(89611),s=n(60136);function l(){l=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,i,r){var o=new RegExp(e,i);return t.set(o,r||t.get(e)),(0,a.Z)(o,n.prototype)}function i(e,n){var i=t.get(n);return Object.keys(i).reduce((function(t,n){var r=i[n];if("number"==typeof r)t[n]=e[r];else{for(var o=0;void 0===e[r[o]]&&o+1<r.length;)o++;t[n]=e[r[o]]}return t}),Object.create(null))}return(0,s.Z)(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=i(n,this);var r=n.indices;r&&(r.groups=i(r,this))}return n},n.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var a=t.get(this);return e[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,o.Z)(e[e.length-1])&&(e=[].slice.call(e)).push(i(e,s)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},l.apply(this,arguments)}var c=n(11752),u=n(61120),d=n(27277),h=n(15671),f=n(43144),p=n(62865),g=n(57572),v=n(33813),m=n(2524),y=n(14173),_=n(73097),b=n(67797),C=n(11860),S=n(84855),w=n(73616);function k(e){for(;e.firstChild;)e.firstChild.remove()}function x(e){var t;return null!==(t=null===e||void 0===e?void 0:e.isConnected)&&void 0!==t&&t}var E=function(){function e(t,n,i,r){(0,h.Z)(this,e),this._node=t,this._type=n,this._handler=i,this._options=r||!1,this._node.addEventListener(this._type,this._handler,this._options)}return(0,f.Z)(e,[{key:"dispose",value:function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}]),e}();function T(e,t,n,i){return new E(e,t,n,i)}function N(e){return function(t){return e(new m.n(t))}}var I=function(e,t,n,i){var r=n;return"click"===t||"mousedown"===t?r=N(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(r=function(e){return function(t){return e(new v.y(t))}}(n)),T(e,t,r,i)},D=function(e,t,n){return O(e,N(t),n)},L=function(e,t,n){return R(e,N(t),n)};function O(e,t,n){return T(e,w.gn&&g.D.pointerEvents?fe.POINTER_DOWN:fe.MOUSE_DOWN,t,n)}function R(e,t,n){return T(e,w.gn&&g.D.pointerEvents?fe.POINTER_UP:fe.MOUSE_UP,t,n)}function A(e,t,n){var i=null,r=function(e){return o.fire(e)},o=new _.Q5({onFirstListenerAdd:function(){i||(i=new E(e,t,r,n))},onLastListenerRemove:function(){i&&(i.dispose(),i=null)}});return o}var M,P,Z=null;function F(e){if(!Z){Z=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout((function(){return e((new Date).getTime())}),0)}}return Z.call(self,e)}var B=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,h.Z)(this,e),this._runner=t,this.priority=n,this._canceled=!1}return(0,f.Z)(e,[{key:"dispose",value:function(){this._canceled=!0}},{key:"execute",value:function(){if(!this._canceled)try{this._runner()}catch(e){(0,y.dL)(e)}}}],[{key:"sort",value:function(e,t){return t.priority-e.priority}}]),e}();function H(e){return document.defaultView.getComputedStyle(e,null)}function z(e){if(e!==document.body)return new V(e.clientWidth,e.clientHeight);if(w.gn&&window.visualViewport)return new V(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new V(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new V(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new V(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}!function(){var e=[],t=null,n=!1,i=!1,r=function(){for(n=!1,t=e,e=[],i=!0;t.length>0;){t.sort(B.sort),t.shift().execute()}i=!1};P=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=new B(t,i);return e.push(o),n||(n=!0,F(r)),o},M=function(e,n){if(i){var r=new B(e,n);return t.push(r),r}return P(e,n)}}();var j=function(){function e(){(0,h.Z)(this,e)}return(0,f.Z)(e,null,[{key:"convertToPixels",value:function(e,t){return parseFloat(t)||0}},{key:"getDimension",value:function(t,n,i){var r=H(t),o="0";return r&&(o=r.getPropertyValue?r.getPropertyValue(n):r.getAttribute(i)),e.convertToPixels(t,o)}},{key:"getBorderLeftWidth",value:function(t){return e.getDimension(t,"border-left-width","borderLeftWidth")}},{key:"getBorderRightWidth",value:function(t){return e.getDimension(t,"border-right-width","borderRightWidth")}},{key:"getBorderTopWidth",value:function(t){return e.getDimension(t,"border-top-width","borderTopWidth")}},{key:"getBorderBottomWidth",value:function(t){return e.getDimension(t,"border-bottom-width","borderBottomWidth")}},{key:"getPaddingLeft",value:function(t){return e.getDimension(t,"padding-left","paddingLeft")}},{key:"getPaddingRight",value:function(t){return e.getDimension(t,"padding-right","paddingRight")}},{key:"getPaddingTop",value:function(t){return e.getDimension(t,"padding-top","paddingTop")}},{key:"getPaddingBottom",value:function(t){return e.getDimension(t,"padding-bottom","paddingBottom")}},{key:"getMarginLeft",value:function(t){return e.getDimension(t,"margin-left","marginLeft")}},{key:"getMarginTop",value:function(t){return e.getDimension(t,"margin-top","marginTop")}},{key:"getMarginRight",value:function(t){return e.getDimension(t,"margin-right","marginRight")}},{key:"getMarginBottom",value:function(t){return e.getDimension(t,"margin-bottom","marginBottom")}}]),e}(),V=function(){function e(t,n){(0,h.Z)(this,e),this.width=t,this.height=n}return(0,f.Z)(e,[{key:"with",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.width,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.height;return t!==this.width||n!==this.height?new e(t,n):this}}],[{key:"is",value:function(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}},{key:"lift",value:function(t){return t instanceof e?t:new e(t.width,t.height)}},{key:"equals",value:function(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}]),e}();function W(e){for(var t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;var r=ne(e)?null:H(e);r&&(i-="rtl"!==r.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=j.getBorderLeftWidth(e),n+=j.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function U(e,t,n){"number"===typeof t&&(e.style.width="".concat(t,"px")),"number"===typeof n&&(e.style.height="".concat(n,"px"))}function G(e){var t=e.getBoundingClientRect();return{left:t.left+Y.scrollX,top:t.top+Y.scrollY,width:t.width,height:t.height}}function K(e){var t=e,n=1;do{var i=H(t).zoom;null!==i&&void 0!==i&&"1"!==i&&(n*=i),t=t.parentElement}while(null!==t&&t!==document.documentElement);return n}V.None=new V(0,0);var Y=new(function(){function e(){(0,h.Z)(this,e)}return(0,f.Z)(e,[{key:"scrollX",get:function(){return"number"===typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}},{key:"scrollY",get:function(){return"number"===typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}}]),e}());function q(e){var t=j.getMarginLeft(e)+j.getMarginRight(e);return e.offsetWidth+t}function $(e){var t=j.getBorderLeftWidth(e)+j.getBorderRightWidth(e),n=j.getPaddingLeft(e)+j.getPaddingRight(e);return e.offsetWidth-t-n}function X(e){var t=j.getBorderTopWidth(e)+j.getBorderBottomWidth(e),n=j.getPaddingTop(e)+j.getPaddingBottom(e);return e.offsetHeight-t-n}function Q(e){var t=j.getMarginTop(e)+j.getMarginBottom(e);return e.offsetHeight+t}function J(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function ee(e,t,n){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(n)if("string"===typeof n){if(e.classList.contains(n))return null}else if(e===n)return null;e=e.parentNode}return null}function te(e,t,n){return!!ee(e,t,n)}function ne(e){return e&&!!e.host&&!!e.mode}function ie(e){return!!re(e)}function re(e){for(;e.parentNode;){if(e===document.body)return null;e=e.parentNode}return ne(e)?e:null}function oe(){for(var e=document.activeElement;null===e||void 0===e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.getElementsByTagName("head")[0],t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}var se=null;function le(){return se||(se=ae()),se}function ce(e){var t,n;return(null===(t=null===e||void 0===e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(n=null===e||void 0===e?void 0:e.sheet)||void 0===n?void 0:n.cssRules)?e.sheet.cssRules:[]}function ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:le();n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function de(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:le();if(t){for(var n=ce(t),i=[],r=0;r<n.length;r++){var o=n[r];-1!==o.selectorText.indexOf(e)&&i.push(r)}for(var a=i.length-1;a>=0;a--)t.sheet.deleteRule(i[a])}}function he(e){return"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}var fe={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:p.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:p.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:p.isWebKit?"webkitAnimationIteration":"animationiteration"},pe={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function ge(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function ve(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}var me=function(e){(0,s.Z)(n,e);var t=(0,d.Z)(n);function n(e){var i;(0,h.Z)(this,n),(i=t.call(this))._onDidFocus=i._register(new _.Q5),i.onDidFocus=i._onDidFocus.event,i._onDidBlur=i._register(new _.Q5),i.onDidBlur=i._onDidBlur.event;var r=n.hasFocusWithin(e),o=!1,a=function(){o=!1,r||(r=!0,i._onDidFocus.fire())},s=function(){r&&(o=!0,window.setTimeout((function(){o&&(o=!1,r=!1,i._onDidBlur.fire())}),0))};return i._refreshStateHandler=function(){n.hasFocusWithin(e)!==r&&(r?s():a())},i._register(T(e,fe.FOCUS,a,!0)),i._register(T(e,fe.BLUR,s,!0)),i._register(T(e,fe.FOCUS_IN,(function(){return i._refreshStateHandler()}))),i._register(T(e,fe.FOCUS_OUT,(function(){return i._refreshStateHandler()}))),i}return(0,f.Z)(n,null,[{key:"hasFocusWithin",value:function(e){var t=re(e);return J(t?t.activeElement:document.activeElement,e)}}]),n}(C.JT);function ye(e){return new me(e)}function _e(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(e.append.apply(e,n),1===n.length&&"string"!==typeof n[0])return n[0]}function be(e,t){return e.insertBefore(t,e.firstChild),t}function Ce(e){e.innerText="";for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];_e.apply(void 0,[e].concat(n))}var Se,we=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function ke(e,t,n){var i,r=we.exec(t);if(!r)throw new Error("Bad use of emmet");n=Object.assign({},n||{});var o,a=r[1]||"div";o=e!==Se.HTML?document.createElementNS(e,a):document.createElement(a),r[3]&&(o.id=r[3]),r[4]&&(o.className=r[4].replace(/\./g," ").trim()),Object.keys(n).forEach((function(e){var t=n[e];"undefined"!==typeof t&&(/^on\w+$/.test(e)?o[e]=t:"selected"===e?t&&o.setAttribute(e,"true"):o.setAttribute(e,t))}));for(var s=arguments.length,l=new Array(s>3?s-3:0),c=3;c<s;c++)l[c-3]=arguments[c];return(i=o).append.apply(i,l),o}function xe(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return ke.apply(void 0,[Se.HTML,e,t].concat(i))}function Ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,r=t;i<r.length;i++){var o=r[i];o.style.display="",o.removeAttribute("aria-hidden")}}function Te(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,r=t;i<r.length;i++){var o=r[i];o.style.display="none",o.setAttribute("aria-hidden","true")}}function Ne(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function Ie(e){var t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function De(e){window.open(e,"_blank","noopener")}function Le(e){var t=P((function n(){e(),t=P(n)}));return(0,C.OF)((function(){return t.dispose()}))}function Oe(e){return e?"url('".concat(S.Gi.asBrowserUri(e).toString(!0).replace(/'/g,"%27"),"')"):"url('')"}function Re(e){return"'".concat(e.replace(/'/g,"%27"),"'")}function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("a");return b.v5("afterSanitizeAttributes",(function(i){for(var r=0,o=["href","src"];r<o.length;r++){var a=o[r];if(i.hasAttribute(a)){var s=i.getAttribute(a);if("href"===a&&s.startsWith("#"))continue;if(n.href=s,!e.includes(n.protocol.replace(/:$/,""))){if(t&&"src"===a&&n.href.startsWith("data:"))continue;i.removeAttribute(a)}}}})),(0,C.OF)((function(){b.ok("afterSanitizeAttributes")}))}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(Se||(Se={})),xe.SVG=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return ke.apply(void 0,[Se.SVG,e,t].concat(i))},S.WX.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");var Me=function(e){(0,s.Z)(n,e);var t=(0,d.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this))._subscriptions=new C.SL,e._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},e._subscriptions.add(T(window,"keydown",(function(t){if(!t.defaultPrevented){var n=new v.y(t);if(6!==n.keyCode||!t.repeat){if(t.altKey&&!e._keyStatus.altKey)e._keyStatus.lastKeyPressed="alt";else if(t.ctrlKey&&!e._keyStatus.ctrlKey)e._keyStatus.lastKeyPressed="ctrl";else if(t.metaKey&&!e._keyStatus.metaKey)e._keyStatus.lastKeyPressed="meta";else if(t.shiftKey&&!e._keyStatus.shiftKey)e._keyStatus.lastKeyPressed="shift";else{if(6===n.keyCode)return;e._keyStatus.lastKeyPressed=void 0}e._keyStatus.altKey=t.altKey,e._keyStatus.ctrlKey=t.ctrlKey,e._keyStatus.metaKey=t.metaKey,e._keyStatus.shiftKey=t.shiftKey,e._keyStatus.lastKeyPressed&&(e._keyStatus.event=t,e.fire(e._keyStatus))}}}),!0)),e._subscriptions.add(T(window,"keyup",(function(t){t.defaultPrevented||(!t.altKey&&e._keyStatus.altKey?e._keyStatus.lastKeyReleased="alt":!t.ctrlKey&&e._keyStatus.ctrlKey?e._keyStatus.lastKeyReleased="ctrl":!t.metaKey&&e._keyStatus.metaKey?e._keyStatus.lastKeyReleased="meta":!t.shiftKey&&e._keyStatus.shiftKey?e._keyStatus.lastKeyReleased="shift":e._keyStatus.lastKeyReleased=void 0,e._keyStatus.lastKeyPressed!==e._keyStatus.lastKeyReleased&&(e._keyStatus.lastKeyPressed=void 0),e._keyStatus.altKey=t.altKey,e._keyStatus.ctrlKey=t.ctrlKey,e._keyStatus.metaKey=t.metaKey,e._keyStatus.shiftKey=t.shiftKey,e._keyStatus.lastKeyReleased&&(e._keyStatus.event=t,e.fire(e._keyStatus)))}),!0)),e._subscriptions.add(T(document.body,"mousedown",(function(){e._keyStatus.lastKeyPressed=void 0}),!0)),e._subscriptions.add(T(document.body,"mouseup",(function(){e._keyStatus.lastKeyPressed=void 0}),!0)),e._subscriptions.add(T(document.body,"mousemove",(function(t){t.buttons&&(e._keyStatus.lastKeyPressed=void 0)}),!0)),e._subscriptions.add(T(window,"blur",(function(){e.resetKeyStatus()}))),e}return(0,f.Z)(n,[{key:"keyStatus",get:function(){return this._keyStatus}},{key:"resetKeyStatus",value:function(){this.doResetKeyStatus(),this.fire(this._keyStatus)}},{key:"doResetKeyStatus",value:function(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}},{key:"dispose",value:function(){(0,c.Z)((0,u.Z)(n.prototype),"dispose",this).call(this),this._subscriptions.dispose()}}],[{key:"getInstance",value:function(){return n.instance||(n.instance=new n),n.instance}}]),n}(_.Q5),Pe=function(e){(0,s.Z)(n,e);var t=(0,d.Z)(n);function n(e,i){var r;return(0,h.Z)(this,n),(r=t.call(this)).element=e,r.callbacks=i,r.counter=0,r.dragStartTime=0,r.registerListeners(),r}return(0,f.Z)(n,[{key:"registerListeners",value:function(){var e=this;this._register(T(this.element,fe.DRAG_ENTER,(function(t){e.counter++,e.dragStartTime=t.timeStamp,e.callbacks.onDragEnter(t)}))),this._register(T(this.element,fe.DRAG_OVER,(function(t){var n,i;t.preventDefault(),null===(i=(n=e.callbacks).onDragOver)||void 0===i||i.call(n,t,t.timeStamp-e.dragStartTime)}))),this._register(T(this.element,fe.DRAG_LEAVE,(function(t){e.counter--,0===e.counter&&(e.dragStartTime=0,e.callbacks.onDragLeave(t))}))),this._register(T(this.element,fe.DRAG_END,(function(t){e.counter=0,e.dragStartTime=0,e.callbacks.onDragEnd(t)}))),this._register(T(this.element,fe.DROP,(function(t){e.counter=0,e.dragStartTime=0,e.callbacks.onDrop(t)})))}}]),n}(C.JT),Ze=l(/([\w\-]+)?(?:#([\w\-]+))?((?:\.(?:[\w\-]+))*)(?:@((?:[\w\_])+))?/,{tag:1,id:2,class:3,name:4});function Fe(e){var t,n;Array.isArray(arguments.length<=1?void 0:arguments[1])?(t={},n=arguments.length<=1?void 0:arguments[1]):(t=(arguments.length<=1?void 0:arguments[1])||{},n=arguments.length<=2?void 0:arguments[2]);var o=Ze.exec(e);if(!o||!o.groups)throw new Error("Bad use of h");var a=o.groups.tag||"div",s=document.createElement(a);o.groups.id&&(s.id=o.groups.id),o.groups.class&&(s.className=o.groups.class.replace(/\./g," ").trim());var l={};if(o.groups.name&&(l[o.groups.name]=s),n){var c,u=(0,r.Z)(n);try{for(u.s();!(c=u.n()).done;){var d=c.value;d instanceof HTMLElement?s.appendChild(d):"string"===typeof d?s.append(d):(Object.assign(l,d),s.appendChild(d.root))}}catch(S){u.e(S)}finally{u.f()}}for(var h=0,f=Object.entries(t);h<f.length;h++){var p=(0,i.Z)(f[h],2),g=p[0],v=p[1];if("style"===g)for(var m=0,y=Object.entries(v);m<y.length;m++){var _=(0,i.Z)(y[m],2),b=_[0],C=_[1];s.style.setProperty(Be(b),"number"===typeof C?C+"px":""+C)}else"tabIndex"===g?s.tabIndex=v:s.setAttribute(Be(g),v.toString())}return l.root=s,l}function Be(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},67797:function(e,t,n){"use strict";n.d(t,{Nw:function(){return Q},ok:function(){return ee},v5:function(){return J}});var i=Object.hasOwnProperty,r=Object.setPrototypeOf,o=Object.isFrozen,a=Object.getPrototypeOf,s=Object.getOwnPropertyDescriptor,l=Object.freeze,c=Object.seal,u=Object.create,d="undefined"!==typeof Reflect&&Reflect,h=d.apply,f=d.construct;h||(h=function(e,t,n){return e.apply(t,n)}),l||(l=function(e){return e}),c||(c=function(e){return e}),f||(f=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var p,g=x(Array.prototype.forEach),v=x(Array.prototype.pop),m=x(Array.prototype.push),y=x(String.prototype.toLowerCase),_=x(String.prototype.match),b=x(String.prototype.replace),C=x(String.prototype.indexOf),S=x(String.prototype.trim),w=x(RegExp.prototype.test),k=(p=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f(p,t)});function x(e){return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return h(e,t,i)}}function E(e,t){r&&r(e,null);for(var n=t.length;n--;){var i=t[n];if("string"===typeof i){var a=y(i);a!==i&&(o(t)||(t[n]=a),i=a)}e[i]=!0}return e}function T(e){var t=u(null),n=void 0;for(n in e)h(i,e,[n])&&(t[n]=e[n]);return t}function N(e,t){for(;null!==e;){var n=s(e,t);if(n){if(n.get)return x(n.get);if("function"===typeof n.value)return x(n.value)}e=a(e)}return function(e){return console.warn("fallback value for",e),null}}var I=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),O=l(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),A=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=l(["#text"]),P=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Z=l(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),B=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=c(/\{\{[\s\S]*|[\s\S]*\}\}/gm),z=c(/<%[\s\S]*|[\s\S]*%>/gm),j=c(/^data-[\-\w.\u00B7-\uFFFF]/),V=c(/^aria-[\-\w]+$/),W=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=c(/^(?:\w+script|data):/i),G=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Y(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var q=function(){return"undefined"===typeof window?null:window},$=function(e,t){if("object"!==("undefined"===typeof e?"undefined":K(e))||"function"!==typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(o){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var X=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q(),n=function(t){return e(t)};if(n.version="2.3.1",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,r=t.document,o=t.DocumentFragment,a=t.HTMLTemplateElement,s=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,h=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,f=t.Text,p=t.Comment,x=t.DOMParser,X=t.trustedTypes,Q=c.prototype,J=N(Q,"cloneNode"),ee=N(Q,"nextSibling"),te=N(Q,"childNodes"),ne=N(Q,"parentNode");if("function"===typeof a){var ie=r.createElement("template");ie.content&&ie.content.ownerDocument&&(r=ie.content.ownerDocument)}var re=$(X,i),oe=re&&Ze?re.createHTML(""):"",ae=r,se=ae.implementation,le=ae.createNodeIterator,ce=ae.createDocumentFragment,ue=ae.getElementsByTagName,de=i.importNode,he={};try{he=T(r).documentMode?r.documentMode:{}}catch(yt){}var fe={};n.isSupported="function"===typeof ne&&se&&"undefined"!==typeof se.createHTMLDocument&&9!==he;var pe=H,ge=z,ve=j,me=V,ye=U,_e=G,be=W,Ce=null,Se=E({},[].concat(Y(I),Y(D),Y(L),Y(R),Y(M))),we=null,ke=E({},[].concat(Y(P),Y(Z),Y(F),Y(B))),xe=null,Ee=null,Te=!0,Ne=!0,Ie=!1,De=!1,Le=!1,Oe=!1,Re=!1,Ae=!1,Me=!1,Pe=!0,Ze=!1,Fe=!0,Be=!0,He=!1,ze={},je=null,Ve=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),We=null,Ue=E({},["audio","video","img","source","image","track"]),Ge=null,Ke=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",qe="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml",Xe=$e,Qe=!1,Je=null,et=r.createElement("form"),tt=function(e){Je&&Je===e||(e&&"object"===("undefined"===typeof e?"undefined":K(e))||(e={}),e=T(e),Ce="ALLOWED_TAGS"in e?E({},e.ALLOWED_TAGS):Se,we="ALLOWED_ATTR"in e?E({},e.ALLOWED_ATTR):ke,Ge="ADD_URI_SAFE_ATTR"in e?E(T(Ke),e.ADD_URI_SAFE_ATTR):Ke,We="ADD_DATA_URI_TAGS"in e?E(T(Ue),e.ADD_DATA_URI_TAGS):Ue,je="FORBID_CONTENTS"in e?E({},e.FORBID_CONTENTS):Ve,xe="FORBID_TAGS"in e?E({},e.FORBID_TAGS):{},Ee="FORBID_ATTR"in e?E({},e.FORBID_ATTR):{},ze="USE_PROFILES"in e&&e.USE_PROFILES,Te=!1!==e.ALLOW_ARIA_ATTR,Ne=!1!==e.ALLOW_DATA_ATTR,Ie=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=e.SAFE_FOR_TEMPLATES||!1,Le=e.WHOLE_DOCUMENT||!1,Ae=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Pe=!1!==e.RETURN_DOM_IMPORT,Ze=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,Be=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||be,Xe=e.NAMESPACE||$e,De&&(Ne=!1),Me&&(Ae=!0),ze&&(Ce=E({},[].concat(Y(M))),we=[],!0===ze.html&&(E(Ce,I),E(we,P)),!0===ze.svg&&(E(Ce,D),E(we,Z),E(we,B)),!0===ze.svgFilters&&(E(Ce,L),E(we,Z),E(we,B)),!0===ze.mathMl&&(E(Ce,R),E(we,F),E(we,B))),e.ADD_TAGS&&(Ce===Se&&(Ce=T(Ce)),E(Ce,e.ADD_TAGS)),e.ADD_ATTR&&(we===ke&&(we=T(we)),E(we,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&E(Ge,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(je===Ve&&(je=T(je)),E(je,e.FORBID_CONTENTS)),Be&&(Ce["#text"]=!0),Le&&E(Ce,["html","head","body"]),Ce.table&&(E(Ce,["tbody"]),delete xe.tbody),l&&l(e),Je=e)},nt=E({},["mi","mo","mn","ms","mtext"]),it=E({},["foreignobject","desc","title","annotation-xml"]),rt=E({},D);E(rt,L),E(rt,O);var ot=E({},R);E(ot,A);var at=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:$e,tagName:"template"});var n=y(e.tagName),i=y(t.tagName);if(e.namespaceURI===qe)return t.namespaceURI===$e?"svg"===n:t.namespaceURI===Ye?"svg"===n&&("annotation-xml"===i||nt[i]):Boolean(rt[n]);if(e.namespaceURI===Ye)return t.namespaceURI===$e?"math"===n:t.namespaceURI===qe?"math"===n&&it[i]:Boolean(ot[n]);if(e.namespaceURI===$e){if(t.namespaceURI===qe&&!it[i])return!1;if(t.namespaceURI===Ye&&!nt[i])return!1;var r=E({},["title","style","font","a","script"]);return!ot[n]&&(r[n]||!rt[n])}return!1},st=function(e){m(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(yt){try{e.outerHTML=oe}catch(yt){e.remove()}}},lt=function(e,t){try{m(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(yt){m(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!we[e])if(Ae||Me)try{st(t)}catch(yt){}else try{t.setAttribute(e,"")}catch(yt){}},ct=function(e){var t=void 0,n=void 0;if(Re)e="<remove></remove>"+e;else{var i=_(e,/^[\r\n\t ]+/);n=i&&i[0]}var o=re?re.createHTML(e):e;if(Xe===$e)try{t=(new x).parseFromString(o,"text/html")}catch(yt){}if(!t||!t.documentElement){t=se.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Qe?"":o}catch(yt){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Xe===$e?ue.call(t,Le?"html":"body")[0]:Le?t.documentElement:a},ut=function(e){return le.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},dt=function(e){return!(e instanceof f||e instanceof p)&&!("string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof h&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI&&"function"===typeof e.insertBefore)},ht=function(e){return"object"===("undefined"===typeof s?"undefined":K(s))?e instanceof s:e&&"object"===("undefined"===typeof e?"undefined":K(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},ft=function(e,t,i){fe[e]&&g(fe[e],(function(e){e.call(n,t,i,Je)}))},pt=function(e){var t=void 0;if(ft("beforeSanitizeElements",e,null),dt(e))return st(e),!0;if(_(e.nodeName,/[\u0080-\uFFFF]/))return st(e),!0;var i=y(e.nodeName);if(ft("uponSanitizeElement",e,{tagName:i,allowedTags:Ce}),!ht(e.firstElementChild)&&(!ht(e.content)||!ht(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return st(e),!0;if("select"===i&&w(/<template/i,e.innerHTML))return st(e),!0;if(!Ce[i]||xe[i]){if(Be&&!je[i]){var r=ne(e)||e.parentNode,o=te(e)||e.childNodes;if(o&&r)for(var a=o.length-1;a>=0;--a)r.insertBefore(J(o[a],!0),ee(e))}return st(e),!0}return e instanceof c&&!at(e)?(st(e),!0):"noscript"!==i&&"noembed"!==i||!w(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(t=e.textContent,t=b(t,pe," "),t=b(t,ge," "),e.textContent!==t&&(m(n.removed,{element:e.cloneNode()}),e.textContent=t)),ft("afterSanitizeElements",e,null),!1):(st(e),!0)},gt=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in r||n in et))return!1;if(Ne&&!Ee[t]&&w(ve,t));else if(Te&&w(me,t));else{if(!we[t]||Ee[t])return!1;if(Ge[t]);else if(w(be,b(n,_e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!We[e]){if(Ie&&!w(ye,b(n,_e,"")));else if(n)return!1}else;}return!0},vt=function(e){var t=void 0,i=void 0,r=void 0,o=void 0;ft("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we};for(o=a.length;o--;){var l=t=a[o],c=l.name,u=l.namespaceURI;if(i=S(t.value),r=y(c),s.attrName=r,s.attrValue=i,s.keepAttr=!0,s.forceKeepAttr=void 0,ft("uponSanitizeAttribute",e,s),i=s.attrValue,!s.forceKeepAttr&&(lt(c,e),s.keepAttr))if(w(/\/>/i,i))lt(c,e);else{De&&(i=b(i,pe," "),i=b(i,ge," "));var d=e.nodeName.toLowerCase();if(gt(d,r,i))try{u?e.setAttributeNS(u,c,i):e.setAttribute(c,i),v(n.removed)}catch(yt){}}}ft("afterSanitizeAttributes",e,null)}},mt=function e(t){var n=void 0,i=ut(t);for(ft("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)ft("uponSanitizeShadowNode",n,null),pt(n)||(n.content instanceof o&&e(n.content),vt(n));ft("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var a=void 0,l=void 0,c=void 0,u=void 0,d=void 0;if((Qe=!e)&&(e="\x3c!--\x3e"),"string"!==typeof e&&!ht(e)){if("function"!==typeof e.toString)throw k("toString is not a function");if("string"!==typeof(e=e.toString()))throw k("dirty is not a string, aborting")}if(!n.isSupported){if("object"===K(t.toStaticHTML)||"function"===typeof t.toStaticHTML){if("string"===typeof e)return t.toStaticHTML(e);if(ht(e))return t.toStaticHTML(e.outerHTML)}return e}if(Oe||tt(r),n.removed=[],"string"===typeof e&&(He=!1),He);else if(e instanceof s)1===(l=(a=ct("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?a=l:a.appendChild(l);else{if(!Ae&&!De&&!Le&&-1===e.indexOf("<"))return re&&Ze?re.createHTML(e):e;if(!(a=ct(e)))return Ae?null:oe}a&&Re&&st(a.firstChild);for(var h=ut(He?e:a);c=h.nextNode();)3===c.nodeType&&c===u||pt(c)||(c.content instanceof o&&mt(c.content),vt(c),u=c);if(u=null,He)return e;if(Ae){if(Me)for(d=ce.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return Pe&&(d=de.call(i,d,!0)),d}var f=Le?a.outerHTML:a.innerHTML;return De&&(f=b(f,pe," "),f=b(f,ge," ")),re&&Ze?re.createHTML(f):f},n.setConfig=function(e){tt(e),Oe=!0},n.clearConfig=function(){Je=null,Oe=!1},n.isValidAttribute=function(e,t,n){Je||tt({});var i=y(e),r=y(t);return gt(i,r,n)},n.addHook=function(e,t){"function"===typeof t&&(fe[e]=fe[e]||[],m(fe[e],t))},n.removeHook=function(e){fe[e]&&v(fe[e])},n.removeHooks=function(e){fe[e]&&(fe[e]=[])},n.removeAllHooks=function(){fe={}},n}(),Q=(X.version,X.isSupported,X.sanitize),J=(X.setConfig,X.clearConfig,X.isValidAttribute,X.addHook),ee=X.removeHook;X.removeHooks,X.removeAllHooks},25425:function(e,t,n){"use strict";n.d(t,{Y:function(){return a},p:function(){return s}});var i=n(15671),r=n(43144),o=n(73097),a=function(){function e(t,n,r){var a=this;(0,i.Z)(this,e);var s=function(e){return a.emitter.fire(e)};this.emitter=new o.Q5({onFirstListenerAdd:function(){return t.addEventListener(n,s,r)},onLastListenerRemove:function(){return t.removeEventListener(n,s,r)}})}return(0,r.Z)(e,[{key:"event",get:function(){return this.emitter.event}},{key:"dispose",value:function(){this.emitter.dispose()}}]),e}();function s(e){return e.preventDefault(),e.stopPropagation(),e}},25652:function(e,t,n){"use strict";n.d(t,{X:function(){return s},Z:function(){return o}});var i=n(15671),r=n(43144),o=function(){function e(t){(0,i.Z)(this,e),this.domNode=t,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}return(0,r.Z)(e,[{key:"setMaxWidth",value:function(e){var t=a(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}},{key:"setWidth",value:function(e){var t=a(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}},{key:"setHeight",value:function(e){var t=a(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}},{key:"setTop",value:function(e){var t=a(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}},{key:"setLeft",value:function(e){var t=a(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}},{key:"setBottom",value:function(e){var t=a(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}},{key:"setRight",value:function(e){var t=a(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}},{key:"setFontFamily",value:function(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}},{key:"setFontWeight",value:function(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}},{key:"setFontSize",value:function(e){var t=a(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}},{key:"setFontStyle",value:function(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}},{key:"setFontFeatureSettings",value:function(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}},{key:"setTextDecoration",value:function(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}},{key:"setLineHeight",value:function(e){var t=a(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}},{key:"setLetterSpacing",value:function(e){var t=a(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}},{key:"setClassName",value:function(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}},{key:"toggleClassName",value:function(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}},{key:"setDisplay",value:function(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}},{key:"setPosition",value:function(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}},{key:"setVisibility",value:function(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}},{key:"setColor",value:function(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}},{key:"setBackgroundColor",value:function(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}},{key:"setLayerHinting",value:function(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}},{key:"setBoxShadow",value:function(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}},{key:"setContain",value:function(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}},{key:"setAttribute",value:function(e,t){this.domNode.setAttribute(e,t)}},{key:"removeAttribute",value:function(e){this.domNode.removeAttribute(e)}},{key:"appendChild",value:function(e){this.domNode.appendChild(e.domNode)}},{key:"removeChild",value:function(e){this.domNode.removeChild(e.domNode)}}]),e}();function a(e){return"number"===typeof e?"".concat(e,"px"):e}function s(e){return new o(e)}},94212:function(e,t,n){"use strict";n.d(t,{BO:function(){return s},IY:function(){return a},az:function(){return l}});var i=n(15671),r=n(43144),o=n(81531);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=l(t);return n.textContent=e,n}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=l(t);return u(n,d(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),n}function l(e){var t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}var c=function(){function e(t){(0,i.Z)(this,e),this.source=t,this.index=0}return(0,r.Z)(e,[{key:"eos",value:function(){return this.index>=this.source.length}},{key:"next",value:function(){var e=this.peek();return this.advance(),e}},{key:"peek",value:function(){return this.source[this.index]}},{key:"advance",value:function(){this.index++}}]),e}();function u(e,t,n,i){var r;if(2===t.type)r=document.createTextNode(t.content||"");else if(3===t.type)r=document.createElement("b");else if(4===t.type)r=document.createElement("i");else if(7===t.type&&i)r=document.createElement("code");else if(5===t.type&&n){var a=document.createElement("a");n.disposables.add(o.addStandardDisposableListener(a,"click",(function(e){n.callback(String(t.index),e)}))),r=a}else 8===t.type?r=document.createElement("br"):1===t.type&&(r=e);r&&e!==r&&e.appendChild(r),r&&Array.isArray(t.children)&&t.children.forEach((function(e){u(r,e,n,i)}))}function d(e,t){for(var n={type:1,children:[]},i=0,r=n,o=[],a=new c(e);!a.eos();){var s=a.next(),l="\\"===s&&0!==h(a.peek(),t);if(l&&(s=a.next()),l||0===h(s,t)||s!==a.peek())if("\n"===s)2===r.type&&(r=o.pop()),r.children.push({type:8});else if(2!==r.type){var u={type:2,content:s};r.children.push(u),o.push(r),r=u}else r.content+=s;else{a.advance(),2===r.type&&(r=o.pop());var d=h(s,t);if(r.type===d||5===r.type&&6===d)r=o.pop();else{var f={type:d,children:[]};5===d&&(f.index=i,i++),r.children.push(f),o.push(r),r=f}}}return 2===r.type&&(r=o.pop()),o.length,n}function h(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},1082:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var i=n(15671),r=n(43144),o=n(81531),a=n(11860),s=function(){function e(){(0,i.Z)(this,e),this._hooks=new a.SL,this._pointerMoveCallback=null,this._onStopCallback=null}return(0,r.Z)(e,[{key:"dispose",value:function(){this.stopMonitoring(!1),this._hooks.dispose()}},{key:"stopMonitoring",value:function(e,t){if(this.isMonitoring()){this._hooks.clear(),this._pointerMoveCallback=null;var n=this._onStopCallback;this._onStopCallback=null,e&&n&&n(t)}}},{key:"isMonitoring",value:function(){return!!this._pointerMoveCallback}},{key:"startMonitoring",value:function(e,t,n,i,r){var s=this;this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=i,this._onStopCallback=r;var l=e;try{e.setPointerCapture(t),this._hooks.add((0,a.OF)((function(){e.releasePointerCapture(t)})))}catch(c){l=window}this._hooks.add(o.addDisposableListener(l,o.EventType.POINTER_MOVE,(function(e){e.buttons===n?(e.preventDefault(),s._pointerMoveCallback(e)):s.stopMonitoring(!0)}))),this._hooks.add(o.addDisposableListener(l,o.EventType.POINTER_UP,(function(e){return s.stopMonitoring(!0)})))}}]),e}()},33813:function(e,t,n){"use strict";n.d(t,{y:function(){return d}});var i=n(15671),r=n(43144),o=n(62865),a=n(16321),s=n(94486),l=n(73616);var c=l.dz?256:2048,u=l.dz?2048:256,d=function(){function e(t){(0,i.Z)(this,e),this._standardKeyboardEventBrand=!0;var n=t;this.browserEvent=n,this.target=n.target,this.ctrlKey=n.ctrlKey,this.shiftKey=n.shiftKey,this.altKey=n.altKey,this.metaKey=n.metaKey,this.keyCode=function(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase();return a.kL.fromString(t)}var n=e.keyCode;if(3===n)return 7;if(o.isFirefox){if(59===n)return 80;if(107===n)return 81;if(109===n)return 83;if(l.dz&&224===n)return 57}else if(o.isWebKit){if(91===n)return 57;if(l.dz&&93===n)return 57;if(!l.dz&&92===n)return 57}return a.H_[n]||0}(n),this.code=n.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}return(0,r.Z)(e,[{key:"preventDefault",value:function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}},{key:"toKeybinding",value:function(){return this._asRuntimeKeybinding}},{key:"equals",value:function(e){return this._asKeybinding===e}},{key:"_computeKeybinding",value:function(){var e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);var t=0;return this.ctrlKey&&(t|=c),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=u),t|=e}},{key:"_computeRuntimeKeybinding",value:function(){var e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new s.QC(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}]),e}()},2524:function(e,t,n){"use strict";n.d(t,{n:function(){return d},q:function(){return h}});var i=n(15671),r=n(43144),o=n(62865),a=n(37762),s=null;function l(e){if(!e.parent||e.parent===e)return null;try{var t=e.location,n=e.parent.location;if("null"!==t.origin&&"null"!==n.origin&&t.origin!==n.origin)return!0,null}catch(i){return!0,null}return e.parent}var c=function(){function e(){(0,i.Z)(this,e)}return(0,r.Z)(e,null,[{key:"getSameOriginWindowChain",value:function(){if(!s){s=[];var e,t=window;do{(e=l(t))?s.push({window:t,iframeElement:t.frameElement||null}):s.push({window:t,iframeElement:null}),t=e}while(t)}return s.slice(0)}},{key:"getPositionOfChildWindowRelativeToAncestorWindow",value:function(e,t){if(!t||e===t)return{top:0,left:0};var n,i=0,r=0,o=this.getSameOriginWindowChain(),s=(0,a.Z)(o);try{for(s.s();!(n=s.n()).done;){var l=n.value;if(i+=l.window.scrollY,r+=l.window.scrollX,l.window===t)break;if(!l.iframeElement)break;var c=l.iframeElement.getBoundingClientRect();i+=c.top,r+=c.left}}catch(u){s.e(u)}finally{s.f()}return{top:i,left:r}}}]),e}(),u=n(73616),d=function(){function e(t){(0,i.Z)(this,e),this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,"number"===typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=t.clientY+document.body.scrollTop+document.documentElement.scrollTop);var n=c.getPositionOfChildWindowRelativeToAncestorWindow(self,t.view);this.posx-=n.left,this.posy-=n.top}return(0,r.Z)(e,[{key:"preventDefault",value:function(){this.browserEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.browserEvent.stopPropagation()}}]),e}(),h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,i.Z)(this,e),this.browserEvent=t||null,this.target=t?t.target||t.targetNode||t.srcElement:null,this.deltaY=r,this.deltaX=n,t){var a=t,s=t;if("undefined"!==typeof a.wheelDeltaY)this.deltaY=a.wheelDeltaY/120;else if("undefined"!==typeof s.VERTICAL_AXIS&&s.axis===s.VERTICAL_AXIS)this.deltaY=-s.detail/3;else if("wheel"===t.type){var l=t;l.deltaMode===l.DOM_DELTA_LINE?o.isFirefox&&!u.dz?this.deltaY=-t.deltaY/3:this.deltaY=-t.deltaY:this.deltaY=-t.deltaY/40}if("undefined"!==typeof a.wheelDeltaX)o.isSafari&&u.ED?this.deltaX=-a.wheelDeltaX/120:this.deltaX=a.wheelDeltaX/120;else if("undefined"!==typeof s.HORIZONTAL_AXIS&&s.axis===s.HORIZONTAL_AXIS)this.deltaX=-t.detail/3;else if("wheel"===t.type){var c=t;c.deltaMode===c.DOM_DELTA_LINE?o.isFirefox&&!u.dz?this.deltaX=-t.deltaX/3:this.deltaX=-t.deltaX:this.deltaX=-t.deltaX/40}0===this.deltaY&&0===this.deltaX&&t.wheelDelta&&(this.deltaY=t.wheelDelta/120)}}return(0,r.Z)(e,[{key:"preventDefault",value:function(){this.browserEvent&&this.browserEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.browserEvent&&this.browserEvent.stopPropagation()}}]),e}()},81238:function(e,t,n){"use strict";n.d(t,{o:function(){return g},t:function(){return i}});var i,r=n(15671),o=n(43144),a=n(11752),s=n(61120),l=n(60136),c=n(27277),u=n(81531),d=n(29671),h=n(24030),f=n(11860),p=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(i||(i={}));var g=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).dispatched=!1,e.activeTouches={},e.handle=null,e.targets=[],e.ignoreTargets=[],e._lastSetTapCountTime=0,e._register(u.addDisposableListener(document,"touchstart",(function(t){return e.onTouchStart(t)}),{passive:!1})),e._register(u.addDisposableListener(document,"touchend",(function(t){return e.onTouchEnd(t)}))),e._register(u.addDisposableListener(document,"touchmove",(function(t){return e.onTouchMove(t)}),{passive:!1})),e}return(0,o.Z)(n,[{key:"dispose",value:function(){this.handle&&(this.handle.dispose(),this.handle=null),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}},{key:"onTouchStart",value:function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,r=e.targetTouches.length;n<r;n++){var o=e.targetTouches.item(n);this.activeTouches[o.identifier]={id:o.identifier,initialTarget:o.target,initialTimeStamp:t,initialPageX:o.pageX,initialPageY:o.pageY,rollingTimestamps:[t],rollingPageX:[o.pageX],rollingPageY:[o.pageY]};var a=this.newGestureEvent(i.Start,o.target);a.pageX=o.pageX,a.pageY=o.pageY,this.dispatchEvent(a)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}},{key:"onTouchEnd",value:function(e){for(var t=this,r=Date.now(),o=Object.keys(this.activeTouches).length,a=function(a,s){var l=e.changedTouches.item(a);if(!t.activeTouches.hasOwnProperty(String(l.identifier)))return console.warn("move of an UNKNOWN touch",l),"continue";var c=t.activeTouches[l.identifier],u=Date.now()-c.initialTimeStamp;if(u<n.HOLD_DELAY&&Math.abs(c.initialPageX-d.Gb(c.rollingPageX))<30&&Math.abs(c.initialPageY-d.Gb(c.rollingPageY))<30){var h=t.newGestureEvent(i.Tap,c.initialTarget);h.pageX=d.Gb(c.rollingPageX),h.pageY=d.Gb(c.rollingPageY),t.dispatchEvent(h)}else if(u>=n.HOLD_DELAY&&Math.abs(c.initialPageX-d.Gb(c.rollingPageX))<30&&Math.abs(c.initialPageY-d.Gb(c.rollingPageY))<30){var f=t.newGestureEvent(i.Contextmenu,c.initialTarget);f.pageX=d.Gb(c.rollingPageX),f.pageY=d.Gb(c.rollingPageY),t.dispatchEvent(f)}else if(1===o){var p=d.Gb(c.rollingPageX),g=d.Gb(c.rollingPageY),v=d.Gb(c.rollingTimestamps)-c.rollingTimestamps[0],m=p-c.rollingPageX[0],y=g-c.rollingPageY[0],_=t.targets.filter((function(e){return c.initialTarget instanceof Node&&e.contains(c.initialTarget)}));t.inertia(_,r,Math.abs(m)/v,m>0?1:-1,p,Math.abs(y)/v,y>0?1:-1,g)}t.dispatchEvent(t.newGestureEvent(i.End,c.initialTarget)),delete t.activeTouches[l.identifier]},s=0,l=e.changedTouches.length;s<l;s++)a(s);this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}},{key:"newGestureEvent",value:function(e,t){var n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n.tapCount=0,n}},{key:"dispatchEvent",value:function(e){var t=this;if(e.type===i.Tap){var r=(new Date).getTime(),o=0;o=r-this._lastSetTapCountTime>n.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=r,e.tapCount=o}else e.type!==i.Change&&e.type!==i.Contextmenu||(this._lastSetTapCountTime=0);for(var a=0;a<this.ignoreTargets.length;a++)if(e.initialTarget instanceof Node&&this.ignoreTargets[a].contains(e.initialTarget))return;this.targets.forEach((function(n){e.initialTarget instanceof Node&&n.contains(e.initialTarget)&&(n.dispatchEvent(e),t.dispatched=!0)}))}},{key:"inertia",value:function(e,t,r,o,a,s,l,c){var d=this;this.handle=u.scheduleAtNextAnimationFrame((function(){var u=Date.now(),h=u-t,f=0,p=0,g=!0;r+=n.SCROLL_FRICTION*h,s+=n.SCROLL_FRICTION*h,r>0&&(g=!1,f=o*r*h),s>0&&(g=!1,p=l*s*h);var v=d.newGestureEvent(i.Change);v.translationX=f,v.translationY=p,e.forEach((function(e){return e.dispatchEvent(v)})),g||d.inertia(e,u,r,o,a+f,s,l,c+p)}))}},{key:"onTouchMove",value:function(e){for(var t=Date.now(),n=0,r=e.changedTouches.length;n<r;n++){var o=e.changedTouches.item(n);if(this.activeTouches.hasOwnProperty(String(o.identifier))){var a=this.activeTouches[o.identifier],s=this.newGestureEvent(i.Change,a.initialTarget);s.translationX=o.pageX-d.Gb(a.rollingPageX),s.translationY=o.pageY-d.Gb(a.rollingPageY),s.pageX=o.pageX,s.pageY=o.pageY,this.dispatchEvent(s),a.rollingPageX.length>3&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(o.pageX),a.rollingPageY.push(o.pageY),a.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}],[{key:"addTarget",value:function(e){return n.isTouchDevice()?(n.INSTANCE||(n.INSTANCE=new n),n.INSTANCE.targets.push(e),{dispose:function(){n.INSTANCE.targets=n.INSTANCE.targets.filter((function(t){return t!==e}))}}):f.JT.None}},{key:"ignoreTarget",value:function(e){return n.isTouchDevice()?(n.INSTANCE||(n.INSTANCE=new n),n.INSTANCE.ignoreTargets.push(e),{dispose:function(){n.INSTANCE.ignoreTargets=n.INSTANCE.ignoreTargets.filter((function(t){return t!==e}))}}):f.JT.None}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0}}]),n}(f.JT);g.SCROLL_FRICTION=-.005,g.HOLD_DELAY=700,g.CLEAR_TAP_COUNT_TIME=400,p([h.H],g,"isTouchDevice",null)},82290:function(e,t,n){"use strict";n.d(t,{Y:function(){return C},g:function(){return S}});var i=n(93433),r=n(15671),o=n(43144),a=n(97326),s=n(11752),l=n(61120),c=n(60136),u=n(27277),d=n(62865),h=n(94021),f=n(81531),p=n(81238),g=n(6970),v=n(18247),m=n(11860),y=n(73616),_=n(85294),b=(n(53657),n(27722)),C=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,r.Z)(this,n),(o=t.call(this)).options=s,o._context=e||(0,a.Z)(o),o._action=i,i instanceof v.aU&&o._register(i.onDidChange((function(e){o.element&&o.handleActionChangeEvent(e)}))),o}return(0,o.Z)(n,[{key:"action",get:function(){return this._action}},{key:"handleActionChangeEvent",value:function(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}},{key:"actionRunner",get:function(){return this._actionRunner||(this._actionRunner=this._register(new v.Wi)),this._actionRunner},set:function(e){this._actionRunner=e}},{key:"getAction",value:function(){return this._action}},{key:"isEnabled",value:function(){return this._action.enabled}},{key:"setActionContext",value:function(e){this._context=e}},{key:"render",value:function(e){var t=this,n=this.element=e;this._register(p.o.addTarget(e));var i=this.options&&this.options.draggable;i&&(e.draggable=!0,d.isFirefox&&this._register((0,f.addDisposableListener)(e,f.EventType.DRAG_START,(function(e){var n;return null===(n=e.dataTransfer)||void 0===n?void 0:n.setData(h.g.TEXT,t._action.label)})))),this._register((0,f.addDisposableListener)(n,p.t.Tap,(function(e){return t.onClick(e,!0)}))),this._register((0,f.addDisposableListener)(n,f.EventType.MOUSE_DOWN,(function(e){i||f.EventHelper.stop(e,!0),t._action.enabled&&0===e.button&&n.classList.add("active")}))),y.dz&&this._register((0,f.addDisposableListener)(n,f.EventType.CONTEXT_MENU,(function(e){0===e.button&&!0===e.ctrlKey&&t.onClick(e)}))),this._register((0,f.addDisposableListener)(n,f.EventType.CLICK,(function(e){f.EventHelper.stop(e,!0),t.options&&t.options.isMenu||t.onClick(e)}))),this._register((0,f.addDisposableListener)(n,f.EventType.DBLCLICK,(function(e){f.EventHelper.stop(e,!0)}))),[f.EventType.MOUSE_UP,f.EventType.MOUSE_OUT].forEach((function(e){t._register((0,f.addDisposableListener)(n,e,(function(e){f.EventHelper.stop(e),n.classList.remove("active")})))}))}},{key:"onClick",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f.EventHelper.stop(e,!0);var i=_.Jp(this._context)?(null===(t=this.options)||void 0===t?void 0:t.useEventAsContext)?e:{preserveFocus:n}:this._context;this.actionRunner.run(this._action,i)}},{key:"focus",value:function(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}},{key:"blur",value:function(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}},{key:"setFocusable",value:function(e){this.element&&(this.element.tabIndex=e?0:-1)}},{key:"trapsArrowNavigation",get:function(){return!1}},{key:"updateEnabled",value:function(){}},{key:"updateLabel",value:function(){}},{key:"getTooltip",value:function(){return this.getAction().tooltip}},{key:"updateTooltip",value:function(){var e;if(this.element){var t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.element.setAttribute("aria-label",t),this.options.hoverDelegate?(this.element.title="",this.customHover?this.customHover.update(t):(this.customHover=(0,g.g)(this.options.hoverDelegate,this.element,t),this._store.add(this.customHover))):this.element.title=t}}},{key:"updateClass",value:function(){}},{key:"updateChecked",value:function(){}},{key:"dispose",value:function(){this.element&&(this.element.remove(),this.element=void 0),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}}]),n}(m.JT),S=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i){var o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,r.Z)(this,n),(o=t.call(this,e,i,a)).options=a,o.options.icon=void 0!==a.icon&&a.icon,o.options.label=void 0===a.label||a.label,o.cssClass="",o}return(0,o.Z)(n,[{key:"render",value:function(e){(0,s.Z)((0,l.Z)(n.prototype),"render",this).call(this,e),this.element&&(this.label=(0,f.append)(this.element,(0,f.$)("a.action-label"))),this.label&&(this._action.id===v.Z0.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&((0,f.append)(this.element,(0,f.$)("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}},{key:"focus",value:function(){this.label&&(this.label.tabIndex=0,this.label.focus())}},{key:"blur",value:function(){this.label&&(this.label.tabIndex=-1)}},{key:"setFocusable",value:function(e){this.label&&(this.label.tabIndex=e?0:-1)}},{key:"updateLabel",value:function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}},{key:"getTooltip",value:function(){var e=null;return this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=b.NC({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),null!==e&&void 0!==e?e:void 0}},{key:"updateClass",value:function(){var e,t;this.cssClass&&this.label&&(t=this.label.classList).remove.apply(t,(0,i.Z)(this.cssClass.split(" ")));if(this.options.icon){var n;if(this.cssClass=this.getAction().class,this.label)if(this.label.classList.add("codicon"),this.cssClass)(n=this.label.classList).add.apply(n,(0,i.Z)(this.cssClass.split(" ")));this.updateEnabled()}else null===(e=this.label)||void 0===e||e.classList.remove("codicon")}},{key:"updateEnabled",value:function(){var e,t;this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),null===(e=this.element)||void 0===e||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),null===(t=this.element)||void 0===t||t.classList.add("disabled"))}},{key:"updateChecked",value:function(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}]),n}(C)},78644:function(e,t,n){"use strict";n.d(t,{o:function(){return y}});var i=n(74165),r=n(15671),o=n(43144),a=n(11752),s=n(61120),l=n(60136),c=n(27277),u=n(81531),d=n(33813),h=n(82290),f=n(18247),p=n(73097),g=n(11860),v=n(85294),m=(n(53657),function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}),y=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i,o,a,s,l,c,g,v,m,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch((0,r.Z)(this,n),(i=t.call(this)).triggerKeyDown=!1,i.focusable=!0,i._onDidBlur=i._register(new p.Q5),i.onDidBlur=i._onDidBlur.event,i._onDidCancel=i._register(new p.Q5({onFirstListenerAdd:function(){return i.cancelHasListener=!0}})),i.onDidCancel=i._onDidCancel.event,i.cancelHasListener=!1,i._onDidRun=i._register(new p.Q5),i.onDidRun=i._onDidRun.event,i._onBeforeRun=i._register(new p.Q5),i.onBeforeRun=i._onBeforeRun.event,i.options=y,i._context=null!==(o=y.context)&&void 0!==o?o:null,i._orientation=null!==(a=i.options.orientation)&&void 0!==a?a:0,i._triggerKeys={keyDown:null!==(l=null===(s=i.options.triggerKeys)||void 0===s?void 0:s.keyDown)&&void 0!==l&&l,keys:null!==(g=null===(c=i.options.triggerKeys)||void 0===c?void 0:c.keys)&&void 0!==g?g:[3,10]},i.options.actionRunner?i._actionRunner=i.options.actionRunner:(i._actionRunner=new f.Wi,i._register(i._actionRunner)),i._register(i._actionRunner.onDidRun((function(e){return i._onDidRun.fire(e)}))),i._register(i._actionRunner.onBeforeRun((function(e){return i._onBeforeRun.fire(e)}))),i._actionIds=[],i.viewItems=[],i.viewItemDisposables=new Map,i.focusedItem=void 0,i.domNode=document.createElement("div"),i.domNode.className="monaco-action-bar",!1!==y.animated&&i.domNode.classList.add("animated"),i._orientation){case 0:v=[15],m=[17];break;case 1:v=[16],m=[18],i.domNode.className+=" vertical"}return i._register(u.addDisposableListener(i.domNode,u.EventType.KEY_DOWN,(function(e){var t=new d.y(e),n=!0,r="number"===typeof i.focusedItem?i.viewItems[i.focusedItem]:void 0;v&&(t.equals(v[0])||t.equals(v[1]))?n=i.focusPrevious():m&&(t.equals(m[0])||t.equals(m[1]))?n=i.focusNext():t.equals(9)&&i.cancelHasListener?i._onDidCancel.fire():t.equals(14)?n=i.focusFirst():t.equals(13)?n=i.focusLast():t.equals(2)&&r instanceof h.Y&&r.trapsArrowNavigation?n=i.focusNext():i.isTriggerKeyEvent(t)?i._triggerKeys.keyDown?i.doTrigger(t):i.triggerKeyDown=!0:n=!1,n&&(t.preventDefault(),t.stopPropagation())}))),i._register(u.addDisposableListener(i.domNode,u.EventType.KEY_UP,(function(e){var t=new d.y(e);i.isTriggerKeyEvent(t)?(!i._triggerKeys.keyDown&&i.triggerKeyDown&&(i.triggerKeyDown=!1,i.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&i.updateFocusedItem()}))),i.focusTracker=i._register(u.trackFocus(i.domNode)),i._register(i.focusTracker.onDidBlur((function(){u.getActiveElement()!==i.domNode&&u.isAncestor(u.getActiveElement(),i.domNode)||(i._onDidBlur.fire(),i.focusedItem=void 0,i.previouslyFocusedItem=void 0,i.triggerKeyDown=!1)}))),i._register(i.focusTracker.onDidFocus((function(){return i.updateFocusedItem()}))),i.actionsList=document.createElement("ul"),i.actionsList.className="actions-container",i.actionsList.setAttribute("role",i.options.ariaRole||"toolbar"),i.options.ariaLabel&&i.actionsList.setAttribute("aria-label",i.options.ariaLabel),i.domNode.appendChild(i.actionsList),e.appendChild(i.domNode),i}return(0,o.Z)(n,[{key:"refreshRole",value:function(){this.length()>=2?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}},{key:"setFocusable",value:function(e){if(this.focusable=e,this.focusable){var t=this.viewItems.find((function(e){return e instanceof h.Y&&e.isEnabled()}));t instanceof h.Y&&t.setFocusable(!0)}else this.viewItems.forEach((function(e){e instanceof h.Y&&e.setFocusable(!1)}))}},{key:"isTriggerKeyEvent",value:function(e){var t=!1;return this._triggerKeys.keys.forEach((function(n){t=t||e.equals(n)})),t}},{key:"updateFocusedItem",value:function(){for(var e=0;e<this.actionsList.children.length;e++){var t=this.actionsList.children[e];if(u.isAncestor(u.getActiveElement(),t)){this.focusedItem=e;break}}}},{key:"context",get:function(){return this._context},set:function(e){this._context=e,this.viewItems.forEach((function(t){return t.setActionContext(e)}))}},{key:"actionRunner",get:function(){return this._actionRunner},set:function(e){e&&(this._actionRunner=e,this.viewItems.forEach((function(t){return t.actionRunner=e})))}},{key:"getContainer",value:function(){return this.domNode}},{key:"push",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Array.isArray(e)?e:[e],r=v.hj(n.index)?n.index:null;i.forEach((function(e){var i,o=document.createElement("li");o.className="action-item",o.setAttribute("role","presentation"),t.options.actionViewItemProvider&&(i=t.options.actionViewItemProvider(e)),i||(i=new h.g(t.context,e,Object.assign({hoverDelegate:t.options.hoverDelegate},n))),t.options.allowContextMenu||t.viewItemDisposables.set(i,u.addDisposableListener(o,u.EventType.CONTEXT_MENU,(function(e){u.EventHelper.stop(e,!0)}))),i.actionRunner=t._actionRunner,i.setActionContext(t.context),i.render(o),t.focusable&&i instanceof h.Y&&0===t.viewItems.length&&i.setFocusable(!0),null===r||r<0||r>=t.actionsList.children.length?(t.actionsList.appendChild(o),t.viewItems.push(i),t._actionIds.push(e.id)):(t.actionsList.insertBefore(o,t.actionsList.children[r]),t.viewItems.splice(r,0,i),t._actionIds.splice(r,0,e.id),r++)})),"number"===typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}},{key:"clear",value:function(){(0,g.B9)(this.viewItems),this.viewItemDisposables.forEach((function(e){return e.dispose()})),this.viewItemDisposables.clear(),this.viewItems=[],this._actionIds=[],u.clearNode(this.actionsList),this.refreshRole()}},{key:"length",value:function(){return this.viewItems.length}},{key:"focus",value:function(e){var t=!1,n=void 0;if(void 0===e?t=!0:"number"===typeof e?n=e:"boolean"===typeof e&&(t=e),t&&"undefined"===typeof this.focusedItem){var i=this.viewItems.findIndex((function(e){return e.isEnabled()}));this.focusedItem=-1===i?void 0:i,this.updateFocus(void 0,void 0,!0)}else void 0!==n&&(this.focusedItem=n),this.updateFocus(void 0,void 0,!0)}},{key:"focusFirst",value:function(){return this.focusedItem=this.length()-1,this.focusNext(!0)}},{key:"focusLast",value:function(){return this.focusedItem=0,this.focusPrevious(!0)}},{key:"focusNext",value:function(e){if("undefined"===typeof this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;var t,n=this.focusedItem;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=n,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,t=this.viewItems[this.focusedItem]}while(this.focusedItem!==n&&(this.options.focusOnlyEnabledItems&&!t.isEnabled()||t.action.id===f.Z0.ID));return this.updateFocus(),!0}},{key:"focusPrevious",value:function(e){if("undefined"===typeof this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;var t,n=this.focusedItem;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=n,!1;this.focusedItem=this.viewItems.length-1}t=this.viewItems[this.focusedItem]}while(this.focusedItem!==n&&(this.options.focusOnlyEnabledItems&&!t.isEnabled()||t.action.id===f.Z0.ID));return this.updateFocus(!0),!0}},{key:"updateFocus",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&(null===(n=this.viewItems[this.previouslyFocusedItem])||void 0===n||n.blur());var r=void 0!==this.focusedItem&&this.viewItems[this.focusedItem];if(r){var o=!0;v.mf(r.focus)||(o=!1),this.options.focusOnlyEnabledItems&&v.mf(r.isEnabled)&&!r.isEnabled()&&(o=!1),r.action.id===f.Z0.ID&&(o=!1),o?(i||this.previouslyFocusedItem!==this.focusedItem)&&(r.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0)}}},{key:"doTrigger",value:function(e){if("undefined"!==typeof this.focusedItem){var t=this.viewItems[this.focusedItem];if(t instanceof h.Y){var n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n)}}}},{key:"run",value:function(e,t){return m(this,void 0,void 0,(0,i.Z)().mark((function n(){return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this._actionRunner.run(e,t);case 2:case"end":return n.stop()}}),n,this)})))}},{key:"dispose",value:function(){(0,g.B9)(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}}]),n}(g.JT)},4801:function(e,t,n){"use strict";n.d(t,{Z9:function(){return d},wW:function(){return u},i7:function(){return h}});var i,r,o,a,s,l=n(81531),c=n(73616);function u(e){(i=document.createElement("div")).className="monaco-aria-container";var t=function(){var e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),i.appendChild(e),e};r=t(),o=t();var n=function(){var e=document.createElement("div");return e.className="monaco-status",e.setAttribute("role","complementary"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),i.appendChild(e),e};a=n(),s=n(),e.appendChild(i)}function d(e){i&&(r.textContent!==e?(l.clearNode(o),f(r,e)):(l.clearNode(r),f(o,e)))}function h(e){i&&(c.dz?d(e):a.textContent!==e?(l.clearNode(s),f(a,e)):(l.clearNode(a),f(s,e)))}function f(e,t){l.clearNode(e),t.length>2e4&&(t=t.substr(0,2e4)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},28423:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});var i=n(2801);function r(e){for(var t=e.definition;t instanceof i.lA;)t=t.definition;return".codicon-".concat(e.id,":before { content: '").concat(t.fontCharacter,"'; }")}},34355:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(15671),r=n(43144),o=n(81531),a=n(62458),s=n(63656),l=n(32377),c={badgeBackground:a.Il.fromHex("#4D4D4D"),badgeForeground:a.Il.fromHex("#FFFFFF")},u=function(){function e(t,n){(0,i.Z)(this,e),this.count=0,this.options=n||Object.create(null),(0,s.jB)(this.options,c,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=(0,o.append)(t,(0,o.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}return(0,r.Z)(e,[{key:"setCount",value:function(e){this.count=e,this.render()}},{key:"setTitleFormat",value:function(e){this.titleFormat=e,this.render()}},{key:"render",value:function(){this.element.textContent=(0,l.WU)(this.countFormat,this.count),this.element.title=(0,l.WU)(this.titleFormat,this.count),this.applyStyles()}},{key:"style",value:function(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}},{key:"applyStyles",value:function(){if(this.element){var e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",n=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n}}}]),e}()},34582:function(e,t,n){"use strict";n.d(t,{V:function(){return p}});var i=n(37762),r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(81531),c=n(83509),u=n(33957),d=n(70176),h=n(73097),f=(n(55189),n(27722).NC("defaultLabel","input")),p=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,o,a,s){var d,p;(0,r.Z)(this,n),(d=t.call(this))._showOptionButtons=a,d.fixFocusOnOptionClickEnabled=!0,d.imeSessionInProgress=!1,d.additionalToggles=[],d._onDidOptionChange=d._register(new h.Q5),d.onDidOptionChange=d._onDidOptionChange.event,d._onKeyDown=d._register(new h.Q5),d.onKeyDown=d._onKeyDown.event,d._onMouseDown=d._register(new h.Q5),d.onMouseDown=d._onMouseDown.event,d._onInput=d._register(new h.Q5),d._onKeyUp=d._register(new h.Q5),d._onCaseSensitiveKeyDown=d._register(new h.Q5),d.onCaseSensitiveKeyDown=d._onCaseSensitiveKeyDown.event,d._onRegexKeyDown=d._register(new h.Q5),d.onRegexKeyDown=d._onRegexKeyDown.event,d._lastHighlightFindOptions=0,d.contextViewProvider=o,d.placeholder=s.placeholder||"",d.validation=s.validation,d.label=s.label||f,d.inputActiveOptionBorder=s.inputActiveOptionBorder,d.inputActiveOptionForeground=s.inputActiveOptionForeground,d.inputActiveOptionBackground=s.inputActiveOptionBackground,d.inputBackground=s.inputBackground,d.inputForeground=s.inputForeground,d.inputBorder=s.inputBorder,d.inputValidationInfoBorder=s.inputValidationInfoBorder,d.inputValidationInfoBackground=s.inputValidationInfoBackground,d.inputValidationInfoForeground=s.inputValidationInfoForeground,d.inputValidationWarningBorder=s.inputValidationWarningBorder,d.inputValidationWarningBackground=s.inputValidationWarningBackground,d.inputValidationWarningForeground=s.inputValidationWarningForeground,d.inputValidationErrorBorder=s.inputValidationErrorBorder,d.inputValidationErrorBackground=s.inputValidationErrorBackground,d.inputValidationErrorForeground=s.inputValidationErrorForeground;var g=s.appendCaseSensitiveLabel||"",v=s.appendWholeWordsLabel||"",m=s.appendRegexLabel||"",y=s.history||[],_=!!s.flexibleHeight,b=!!s.flexibleWidth,C=s.flexibleMaxHeight;d.domNode=document.createElement("div"),d.domNode.classList.add("monaco-findInput"),d.inputBox=d._register(new u.p(d.domNode,d.contextViewProvider,{placeholder:d.placeholder||"",ariaLabel:d.label||"",validationOptions:{validation:d.validation},inputBackground:d.inputBackground,inputForeground:d.inputForeground,inputBorder:d.inputBorder,inputValidationInfoBackground:d.inputValidationInfoBackground,inputValidationInfoForeground:d.inputValidationInfoForeground,inputValidationInfoBorder:d.inputValidationInfoBorder,inputValidationWarningBackground:d.inputValidationWarningBackground,inputValidationWarningForeground:d.inputValidationWarningForeground,inputValidationWarningBorder:d.inputValidationWarningBorder,inputValidationErrorBackground:d.inputValidationErrorBackground,inputValidationErrorForeground:d.inputValidationErrorForeground,inputValidationErrorBorder:d.inputValidationErrorBorder,history:y,showHistoryHint:s.showHistoryHint,flexibleHeight:_,flexibleWidth:b,flexibleMaxHeight:C})),d.regex=d._register(new c.eH({appendTitle:m,isChecked:!1,inputActiveOptionBorder:d.inputActiveOptionBorder,inputActiveOptionForeground:d.inputActiveOptionForeground,inputActiveOptionBackground:d.inputActiveOptionBackground})),d._register(d.regex.onChange((function(e){d._onDidOptionChange.fire(e),!e&&d.fixFocusOnOptionClickEnabled&&d.inputBox.focus(),d.validate()}))),d._register(d.regex.onKeyDown((function(e){d._onRegexKeyDown.fire(e)}))),d.wholeWords=d._register(new c.Qx({appendTitle:v,isChecked:!1,inputActiveOptionBorder:d.inputActiveOptionBorder,inputActiveOptionForeground:d.inputActiveOptionForeground,inputActiveOptionBackground:d.inputActiveOptionBackground})),d._register(d.wholeWords.onChange((function(e){d._onDidOptionChange.fire(e),!e&&d.fixFocusOnOptionClickEnabled&&d.inputBox.focus(),d.validate()}))),d.caseSensitive=d._register(new c.rk({appendTitle:g,isChecked:!1,inputActiveOptionBorder:d.inputActiveOptionBorder,inputActiveOptionForeground:d.inputActiveOptionForeground,inputActiveOptionBackground:d.inputActiveOptionBackground})),d._register(d.caseSensitive.onChange((function(e){d._onDidOptionChange.fire(e),!e&&d.fixFocusOnOptionClickEnabled&&d.inputBox.focus(),d.validate()}))),d._register(d.caseSensitive.onKeyDown((function(e){d._onCaseSensitiveKeyDown.fire(e)})));var S=[d.caseSensitive.domNode,d.wholeWords.domNode,d.regex.domNode];d.onkeydown(d.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=S.indexOf(document.activeElement);if(t>=0){var n=-1;e.equals(17)?n=(t+1)%S.length:e.equals(15)&&(n=0===t?S.length-1:t-1),e.equals(9)?(S[t].blur(),d.inputBox.focus()):n>=0&&S[n].focus(),l.EventHelper.stop(e,!0)}}})),d.controls=document.createElement("div"),d.controls.className="controls",d.controls.style.display=d._showOptionButtons?"block":"none",d.controls.appendChild(d.caseSensitive.domNode),d.controls.appendChild(d.wholeWords.domNode),d.controls.appendChild(d.regex.domNode),d._showOptionButtons||(d.caseSensitive.domNode.style.display="none",d.wholeWords.domNode.style.display="none",d.regex.domNode.style.display="none");var w,k=(0,i.Z)(null!==(p=null===s||void 0===s?void 0:s.additionalToggles)&&void 0!==p?p:[]);try{for(k.s();!(w=k.n()).done;){var x=w.value;d._register(x),d.controls.appendChild(x.domNode),d._register(x.onChange((function(e){d._onDidOptionChange.fire(e),!e&&d.fixFocusOnOptionClickEnabled&&d.inputBox.focus()}))),d.additionalToggles.push(x)}}catch(E){k.e(E)}finally{k.f()}return d.additionalToggles.length>0&&(d.controls.style.display="block"),d.inputBox.paddingRight=(d._showOptionButtons?d.caseSensitive.width()+d.wholeWords.width()+d.regex.width():0)+d.additionalToggles.reduce((function(e,t){return e+t.width()}),0),d.domNode.appendChild(d.controls),null===e||void 0===e||e.appendChild(d.domNode),d._register(l.addDisposableListener(d.inputBox.inputElement,"compositionstart",(function(e){d.imeSessionInProgress=!0}))),d._register(l.addDisposableListener(d.inputBox.inputElement,"compositionend",(function(e){d.imeSessionInProgress=!1,d._onInput.fire()}))),d.onkeydown(d.inputBox.inputElement,(function(e){return d._onKeyDown.fire(e)})),d.onkeyup(d.inputBox.inputElement,(function(e){return d._onKeyUp.fire(e)})),d.oninput(d.inputBox.inputElement,(function(e){return d._onInput.fire()})),d.onmousedown(d.inputBox.inputElement,(function(e){return d._onMouseDown.fire(e)})),d}return(0,o.Z)(n,[{key:"onDidChange",get:function(){return this.inputBox.onDidChange}},{key:"enable",value:function(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable();var e,t=(0,i.Z)(this.additionalToggles);try{for(t.s();!(e=t.n()).done;){e.value.enable()}}catch(n){t.e(n)}finally{t.f()}}},{key:"disable",value:function(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable();var e,t=(0,i.Z)(this.additionalToggles);try{for(t.s();!(e=t.n()).done;){e.value.disable()}}catch(n){t.e(n)}finally{t.f()}}},{key:"setFocusInputOnOptionClick",value:function(e){this.fixFocusOnOptionClickEnabled=e}},{key:"setEnabled",value:function(e){e?this.enable():this.disable()}},{key:"getValue",value:function(){return this.inputBox.value}},{key:"setValue",value:function(e){this.inputBox.value!==e&&(this.inputBox.value=e)}},{key:"style",value:function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}},{key:"applyStyles",value:function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);var t,n=(0,i.Z)(this.additionalToggles);try{for(n.s();!(t=n.n()).done;){t.value.style(e)}}catch(o){n.e(o)}finally{n.f()}var r={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(r)}}},{key:"select",value:function(){this.inputBox.select()}},{key:"focus",value:function(){this.inputBox.focus()}},{key:"getCaseSensitive",value:function(){return this.caseSensitive.checked}},{key:"setCaseSensitive",value:function(e){this.caseSensitive.checked=e}},{key:"getWholeWords",value:function(){return this.wholeWords.checked}},{key:"setWholeWords",value:function(e){this.wholeWords.checked=e}},{key:"getRegex",value:function(){return this.regex.checked}},{key:"setRegex",value:function(e){this.regex.checked=e,this.validate()}},{key:"focusOnCaseSensitive",value:function(){this.caseSensitive.focus()}},{key:"highlightFindOptions",value:function(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}},{key:"validate",value:function(){this.inputBox.validate()}},{key:"showMessage",value:function(e){this.inputBox.showMessage(e)}},{key:"clearMessage",value:function(){this.inputBox.hideMessage()}}]),n}(d.$)},83509:function(e,t,n){"use strict";n.d(t,{Qx:function(){return p},eH:function(){return g},rk:function(){return f}});var i=n(43144),r=n(15671),o=n(60136),a=n(27277),s=n(29110),l=n(2801),c=n(27722),u=c.NC("caseDescription","Match Case"),d=c.NC("wordsDescription","Match Whole Word"),h=c.NC("regexDescription","Use Regular Expression"),f=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){return(0,r.Z)(this,n),t.call(this,{icon:l.lA.caseSensitive,title:u+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}return(0,i.Z)(n)}(s.Z),p=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){return(0,r.Z)(this,n),t.call(this,{icon:l.lA.wholeWord,title:d+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}return(0,i.Z)(n)}(s.Z),g=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){return(0,r.Z)(this,n),t.call(this,{icon:l.lA.regex,title:h+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}return(0,i.Z)(n)}(s.Z)},35252:function(e,t,n){"use strict";n.d(t,{q:function(){return u}});var i=n(93433),r=n(37762),o=n(15671),a=n(43144),s=n(81531),l=n(95343),c=n(63656),u=function(){function e(t,n){var i;(0,o.Z)(this,e),this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=null!==(i=null===n||void 0===n?void 0:n.supportIcons)&&void 0!==i&&i,this.domNode=s.append(t,s.$("span.monaco-highlighted-label"))}return(0,a.Z)(e,[{key:"element",get:function(){return this.domNode}},{key:"set",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0;t||(t=""),r&&(t=e.escapeNewLines(t,n)),this.didEverRender&&this.text===t&&this.title===i&&c.fS(this.highlights,n)||(this.text=t,this.title=i,this.highlights=n,this.render())}},{key:"render",value:function(){var e,t=[],n=0,o=(0,r.Z)(this.highlights);try{for(o.s();!(e=o.n()).done;){var a=e.value;if(a.end!==a.start){if(n<a.start){var c=this.text.substring(n,a.start);t.push(s.$.apply(s,["span",void 0].concat((0,i.Z)(this.supportIcons?(0,l.T)(c):[c])))),n=a.end}var u,d=this.text.substring(a.start,a.end),h=s.$.apply(s,["span.highlight",void 0].concat((0,i.Z)(this.supportIcons?(0,l.T)(d):[d])));if(a.extraClasses)(u=h.classList).add.apply(u,(0,i.Z)(a.extraClasses));t.push(h),n=a.end}}}catch(p){o.e(p)}finally{o.f()}if(n<this.text.length){var f=this.text.substring(n);t.push(s.$.apply(s,["span",void 0].concat((0,i.Z)(this.supportIcons?(0,l.T)(f):[f]))))}s.reset.apply(s,[this.domNode].concat(t)),this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0}}],[{key:"escapeNewLines",value:function(e,t){var n=0,i=0;return e.replace(/\r\n|\r|\n/g,(function(e,o){i="\r\n"===e?-1:0,o+=n;var a,s=(0,r.Z)(t);try{for(s.s();!(a=s.n()).done;){var l=a.value;l.end<=o||(l.start>=o&&(l.start+=i),l.end>=o&&(l.end+=i))}}catch(c){s.e(c)}finally{s.f()}return n+=i,"\u23ce"}))}}]),e}()},89182:function(e,t,n){"use strict";n.d(t,{g:function(){return y}});var i=n(37762),r=n(93433),o=n(11752),a=n(61120),s=n(60136),l=n(27277),c=n(15671),u=n(43144),d=n(81531),h=n(35252),f=n(6970),p=n(11860),g=n(63656),v=n(163),m=function(){function e(t){(0,c.Z)(this,e),this._element=t}return(0,u.Z)(e,[{key:"element",get:function(){return this._element}},{key:"textContent",set:function(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}},{key:"className",set:function(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}},{key:"empty",set:function(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}},{key:"dispose",value:function(){this.disposed=!0}}]),e}(),y=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i){var r;(0,c.Z)(this,n),(r=t.call(this)).customHovers=new Map,r.domNode=r._register(new m(d.append(e,d.$(".monaco-icon-label")))),r.labelContainer=d.append(r.domNode.element,d.$(".monaco-icon-label-container"));var o=d.append(r.labelContainer,d.$("span.monaco-icon-name-container"));return r.descriptionContainer=r._register(new m(d.append(r.labelContainer,d.$("span.monaco-icon-description-container")))),(null===i||void 0===i?void 0:i.supportHighlights)||(null===i||void 0===i?void 0:i.supportIcons)?r.nameNode=new b(o,!!i.supportIcons):r.nameNode=new _(o),(null===i||void 0===i?void 0:i.supportDescriptionHighlights)?r.descriptionNodeFactory=function(){return new h.q(d.append(r.descriptionContainer.element,d.$("span.label-description")),{supportIcons:!!i.supportIcons})}:r.descriptionNodeFactory=function(){return r._register(new m(d.append(r.descriptionContainer.element,d.$("span.label-description"))))},r.hoverDelegate=null===i||void 0===i?void 0:i.hoverDelegate,r}return(0,u.Z)(n,[{key:"element",get:function(){return this.domNode.element}},{key:"setLabel",value:function(e,t,n){var i=["monaco-icon-label"];n&&(n.extraClasses&&i.push.apply(i,(0,r.Z)(n.extraClasses)),n.italic&&i.push("italic"),n.strikethrough&&i.push("strikethrough")),this.domNode.className=i.join(" "),this.setupHover((null===n||void 0===n?void 0:n.descriptionTitle)?this.labelContainer:this.element,null===n||void 0===n?void 0:n.title),this.nameNode.setLabel(e,n),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof h.q?(this.descriptionNode.set(t||"",n?n.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,null===n||void 0===n?void 0:n.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(null===n||void 0===n?void 0:n.descriptionTitle)||""),this.descriptionNode.empty=!t))}},{key:"setupHover",value:function(e,t){var n=this.customHovers.get(e);if(n&&(n.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate){var i=(0,f.g)(this.hoverDelegate,e,t);i&&this.customHovers.set(e,i)}else(0,f.O)(e,t);else e.removeAttribute("title")}},{key:"dispose",value:function(){(0,o.Z)((0,a.Z)(n.prototype),"dispose",this).call(this);var e,t=(0,i.Z)(this.customHovers.values());try{for(t.s();!(e=t.n()).done;){e.value.dispose()}}catch(r){t.e(r)}finally{t.f()}this.customHovers.clear()}}]),n}(p.JT),_=function(){function e(t){(0,c.Z)(this,e),this.container=t,this.label=void 0,this.singleLabel=void 0}return(0,u.Z)(e,[{key:"setLabel",value:function(e,t){if(this.label!==e||!(0,g.fS)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=d.append(this.container,d.$("a.label-name",{id:null===t||void 0===t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(var n=0;n<e.length;n++){var i=e[n],r=(null===t||void 0===t?void 0:t.domId)&&"".concat(null===t||void 0===t?void 0:t.domId,"_").concat(n);d.append(this.container,d.$("a.label-name",{id:r,"data-icon-label-count":e.length,"data-icon-label-index":n,role:"treeitem"},i)),n<e.length-1&&d.append(this.container,d.$("span.label-separator",void 0,(null===t||void 0===t?void 0:t.separator)||"/"))}}}}]),e}();var b=function(){function e(t,n){(0,c.Z)(this,e),this.container=t,this.supportIcons=n,this.label=void 0,this.singleLabel=void 0}return(0,u.Z)(e,[{key:"setLabel",value:function(e,t){if(this.label!==e||!(0,g.fS)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new h.q(d.append(this.container,d.$("a.label-name",{id:null===t||void 0===t?void 0:t.domId})),{supportIcons:this.supportIcons})),this.singleLabel.set(e,null===t||void 0===t?void 0:t.matches,void 0,null===t||void 0===t?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(var n=(null===t||void 0===t?void 0:t.separator)||"/",i=function(e,t,n){if(n){var i=0;return e.map((function(e){var r={start:i,end:i+e.length},o=n.map((function(e){return v.e.intersect(r,e)})).filter((function(e){return!v.e.isEmpty(e)})).map((function(e){var t=e.start,n=e.end;return{start:t-i,end:n-i}}));return i=r.end+t.length,o}))}}(e,n,null===t||void 0===t?void 0:t.matches),r=0;r<e.length;r++){var o=e[r],a=i?i[r]:void 0,s=(null===t||void 0===t?void 0:t.domId)&&"".concat(null===t||void 0===t?void 0:t.domId,"_").concat(r),l=d.$("a.label-name",{id:s,"data-icon-label-count":e.length,"data-icon-label-index":r,role:"treeitem"});new h.q(d.append(this.container,l),{supportIcons:this.supportIcons}).set(o,a,void 0,null===t||void 0===t?void 0:t.labelEscapeNewLines),r<e.length-1&&d.append(l,d.$("span.label-separator",void 0,n))}}}}]),e}()},6970:function(e,t,n){"use strict";n.d(t,{O:function(){return g},g:function(){return m}});var i=n(74165),r=n(15671),o=n(43144),a=n(81531),s=n(60022),l=n(82784),c=n(61066),u=n(56148),d=n(11860),h=n(85294),f=n(27722),p=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};function g(e,t){(0,h.HD)(t)?e.title=(0,u.x$)(t):(null===t||void 0===t?void 0:t.markdownNotSupportedFallback)?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}var v=function(){function e(t,n,i){(0,r.Z)(this,e),this.hoverDelegate=t,this.target=n,this.fadeInAnimation=i}return(0,o.Z)(e,[{key:"update",value:function(e,t,n){var r;return p(this,void 0,void 0,(0,i.Z)().mark((function o(){var a,s;return(0,i.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),!this.isDisposed){i.next=3;break}return i.abrupt("return");case 3:if(!(void 0===e||(0,h.HD)(e)||e instanceof HTMLElement)){i.next=7;break}a=e,i.next=20;break;case 7:if((0,h.mf)(e.markdown)){i.next=11;break}a=null!==(r=e.markdown)&&void 0!==r?r:e.markdownNotSupportedFallback,i.next=20;break;case 11:return this._hoverWidget||this.show((0,f.NC)("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new l.A,s=this._cancellationTokenSource.token,i.next=16,e.markdown(s);case 16:if(void 0===(a=i.sent)&&(a=e.markdownNotSupportedFallback),!this.isDisposed&&!s.isCancellationRequested){i.next=20;break}return i.abrupt("return");case 20:this.show(a,t,n);case 21:case"end":return i.stop()}}),o,this)})))}},{key:"show",value:function(e,t,n){var i=this._hoverWidget;if(this.hasContent(e)){var r=Object.assign({content:e,target:this.target,showPointer:"element"===this.hoverDelegate.placement,hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!i},n);this._hoverWidget=this.hoverDelegate.showHover(r,t)}null===i||void 0===i||i.dispose()}},{key:"hasContent",value:function(e){return!!e&&(!(0,c.Fr)(e)||!!e.value)}},{key:"isDisposed",get:function(){var e;return null===(e=this._hoverWidget)||void 0===e?void 0:e.isDisposed}},{key:"dispose",value:function(){var e,t;null===(e=this._hoverWidget)||void 0===e||e.dispose(),null===(t=this._cancellationTokenSource)||void 0===t||t.dispose(!0),this._cancellationTokenSource=void 0}}]),e}();function m(e,t,n,r){var o,l,c=this,u=function(t,n){var i;t&&(null===l||void 0===l||l.dispose(),l=void 0),n&&(null===o||void 0===o||o.dispose(),o=void 0),null===(i=e.onDidHideHover)||void 0===i||i.call(e)},h=function(o,a,u){return new s._F((function(){return p(c,void 0,void 0,(0,i.Z)().mark((function s(){return(0,i.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(l&&!l.isDisposed){i.next=4;break}return l=new v(e,u||t,o>0),i.next=4,l.update(n,a,r);case 4:case"end":return i.stop()}}),s)})))}),o)},f=a.addDisposableListener(t,a.EventType.MOUSE_OVER,(function(){if(!o){var n=new d.SL;n.add(a.addDisposableListener(t,a.EventType.MOUSE_LEAVE,(function(e){return u(!1,e.fromElement===t)}),!0));n.add(a.addDisposableListener(t,a.EventType.MOUSE_DOWN,(function(){return u(!0,!0)}),!0));var i={targetElements:[t],dispose:function(){}};if(void 0===e.placement||"mouse"===e.placement){n.add(a.addDisposableListener(t,a.EventType.MOUSE_MOVE,(function(e){i.x=e.x+10,e.target instanceof HTMLElement&&e.target.classList.contains("action-label")&&u(!0,!0)}),!0))}n.add(h(e.delay,!1,i)),o=n}}),!0);return{show:function(e){u(!1,!0),h(0,e)},hide:function(){u(!0,!0)},update:function(e,t){return p(c,void 0,void 0,(0,i.Z)().mark((function r(){return(0,i.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=e,i.next=3,null===l||void 0===l?void 0:l.update(n,void 0,t);case 3:case"end":return i.stop()}}),r)})))},dispose:function(){f.dispose(),u(!0,!0)}}}},95343:function(e,t,n){"use strict";n.d(t,{T:function(){return l}});var i=n(93433),r=n(29439),o=n(81531),a=n(2801),s=new RegExp("(\\\\)?\\$\\((".concat(a.dT.iconNameExpression,"(?:").concat(a.dT.iconModifierExpression,")?)\\)"),"g");function l(e){for(var t,n=new Array,i=0,o=0;null!==(t=s.exec(e));){o=t.index||0,n.push(e.substring(i,o)),i=(t.index||0)+t[0].length;var a=t,l=(0,r.Z)(a,3),u=l[1],d=l[2];n.push(u?"$(".concat(d,")"):c({id:d}))}return i<e.length&&n.push(e.substring(i)),n}function c(e){var t,n=o.$("span");return(t=n.classList).add.apply(t,(0,i.Z)(a.dT.asClassNameArray(e))),n}},33957:function(e,t,n){"use strict";n.d(t,{p:function(){return T},W:function(){return E}});var i=n(15671),r=n(43144),o=n(97326),a=n(11752),s=n(61120),l=n(60136),c=n(27277),u=n(81531),d=n(25425),h=n(94212),f=n(78644),p=n(4801),g=n(27338),v=n(70176),m=n(62458),y=n(73097),_=n(37762),b=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n-1;(0,i.Z)(this,e),this.items=t,this.start=n,this.end=r,this.index=o}return(0,r.Z)(e,[{key:"current",value:function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}},{key:"next",value:function(){return this.index=Math.min(this.index+1,this.end),this.current()}},{key:"previous",value:function(){return this.index=Math.max(this.index-1,this.start-1),this.current()}},{key:"first",value:function(){return this.index=this.start,this.current()}},{key:"last",value:function(){return this.index=this.end-1,this.current()}}]),e}(),C=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;(0,i.Z)(this,e),this._initialize(t),this._limit=n,this._onChange()}return(0,r.Z)(e,[{key:"getHistory",value:function(){return this._elements}},{key:"add",value:function(e){this._history.delete(e),this._history.add(e),this._onChange()}},{key:"next",value:function(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}},{key:"previous",value:function(){return 0!==this._currentPosition()?this._navigator.previous():null}},{key:"current",value:function(){return this._navigator.current()}},{key:"first",value:function(){return this._navigator.first()}},{key:"last",value:function(){return this._navigator.last()}},{key:"has",value:function(e){return this._history.has(e)}},{key:"_onChange",value:function(){this._reduceToLimit();var e=this._elements;this._navigator=new b(e,0,e.length,e.length)}},{key:"_reduceToLimit",value:function(){var e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}},{key:"_currentPosition",value:function(){var e=this._navigator.current();return e?this._elements.indexOf(e):-1}},{key:"_initialize",value:function(e){this._history=new Set;var t,n=(0,_.Z)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._history.add(i)}}catch(r){n.e(r)}finally{n.f()}}},{key:"_elements",get:function(){var e=[];return this._history.forEach((function(t){return e.push(t)})),e}}]),e}(),S=n(63656),w=n(27722),k=u.$,x={inputBackground:m.Il.fromHex("#3C3C3C"),inputForeground:m.Il.fromHex("#CCCCCC"),inputValidationInfoBorder:m.Il.fromHex("#55AAFF"),inputValidationInfoBackground:m.Il.fromHex("#063B49"),inputValidationWarningBorder:m.Il.fromHex("#B89500"),inputValidationWarningBackground:m.Il.fromHex("#352A05"),inputValidationErrorBorder:m.Il.fromHex("#BE1100"),inputValidationErrorBackground:m.Il.fromHex("#5A1D1D")},E=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,r,a){var s,l;(0,i.Z)(this,n),(s=t.call(this)).state="idle",s.maxHeight=Number.POSITIVE_INFINITY,s._onDidChange=s._register(new y.Q5),s.onDidChange=s._onDidChange.event,s._onDidHeightChange=s._register(new y.Q5),s.onDidHeightChange=s._onDidHeightChange.event,s.contextViewProvider=r,s.options=a||Object.create(null),(0,S.jB)(s.options,x,!1),s.message=null,s.placeholder=s.options.placeholder||"",s.tooltip=null!==(l=s.options.tooltip)&&void 0!==l?l:s.placeholder||"",s.ariaLabel=s.options.ariaLabel||"",s.inputBackground=s.options.inputBackground,s.inputForeground=s.options.inputForeground,s.inputBorder=s.options.inputBorder,s.inputValidationInfoBorder=s.options.inputValidationInfoBorder,s.inputValidationInfoBackground=s.options.inputValidationInfoBackground,s.inputValidationInfoForeground=s.options.inputValidationInfoForeground,s.inputValidationWarningBorder=s.options.inputValidationWarningBorder,s.inputValidationWarningBackground=s.options.inputValidationWarningBackground,s.inputValidationWarningForeground=s.options.inputValidationWarningForeground,s.inputValidationErrorBorder=s.options.inputValidationErrorBorder,s.inputValidationErrorBackground=s.options.inputValidationErrorBackground,s.inputValidationErrorForeground=s.options.inputValidationErrorForeground,s.options.validationOptions&&(s.validation=s.options.validationOptions.validation),s.element=u.append(e,k(".monaco-inputbox.idle"));var c=s.options.flexibleHeight?"textarea":"input",h=u.append(s.element,k(".ibwrapper"));if(s.input=u.append(h,k(c+".input.empty")),s.input.setAttribute("autocorrect","off"),s.input.setAttribute("autocapitalize","off"),s.input.setAttribute("spellcheck","false"),s.onfocus(s.input,(function(){return s.element.classList.add("synthetic-focus")})),s.onblur(s.input,(function(){return s.element.classList.remove("synthetic-focus")})),s.options.flexibleHeight){s.maxHeight="number"===typeof s.options.flexibleMaxHeight?s.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,s.mirror=u.append(h,k("div.mirror")),s.mirror.innerText="\xa0",s.scrollableElement=new g.NB(s.element,{vertical:1}),s.options.flexibleWidth&&(s.input.setAttribute("wrap","off"),s.mirror.style.whiteSpace="pre",s.mirror.style.wordWrap="initial"),u.append(e,s.scrollableElement.getDomNode()),s._register(s.scrollableElement),s._register(s.scrollableElement.onScroll((function(e){return s.input.scrollTop=e.scrollTop})));var p=s._register(new d.Y(document,"selectionchange")),v=y.ju.filter(p.event,(function(){var e=document.getSelection();return(null===e||void 0===e?void 0:e.anchorNode)===h}));s._register(v(s.updateScrollDimensions,(0,o.Z)(s))),s._register(s.onDidHeightChange(s.updateScrollDimensions,(0,o.Z)(s)))}else s.input.type=s.options.type||"text",s.input.setAttribute("wrap","off");return s.ariaLabel&&s.input.setAttribute("aria-label",s.ariaLabel),s.placeholder&&!s.options.showPlaceholderOnFocus&&s.setPlaceHolder(s.placeholder),s.tooltip&&s.setTooltip(s.tooltip),s.oninput(s.input,(function(){return s.onValueChange()})),s.onblur(s.input,(function(){return s.onBlur()})),s.onfocus(s.input,(function(){return s.onFocus()})),s.ignoreGesture(s.input),setTimeout((function(){return s.updateMirror()}),0),s.options.actions&&(s.actionbar=s._register(new f.o(s.element)),s.actionbar.push(s.options.actions,{icon:!0,label:!1})),s.applyStyles(),s}return(0,r.Z)(n,[{key:"onBlur",value:function(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}},{key:"onFocus",value:function(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}},{key:"setPlaceHolder",value:function(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}},{key:"setTooltip",value:function(e){this.tooltip=e,this.input.title=e}},{key:"setAriaLabel",value:function(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}},{key:"getAriaLabel",value:function(){return this.ariaLabel}},{key:"inputElement",get:function(){return this.input}},{key:"value",get:function(){return this.input.value},set:function(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}},{key:"height",get:function(){return"number"===typeof this.cachedHeight?this.cachedHeight:u.getTotalHeight(this.element)}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"hasFocus",value:function(){return document.activeElement===this.input}},{key:"select",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}},{key:"isSelectionAtEnd",value:function(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}},{key:"enable",value:function(){this.input.removeAttribute("disabled")}},{key:"disable",value:function(){this.blur(),this.input.disabled=!0,this._hideMessage()}},{key:"width",get:function(){return u.getTotalWidth(this.input)},set:function(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){var t=0;if(this.mirror)t=(parseFloat(this.mirror.style.paddingLeft||"")||0)+(parseFloat(this.mirror.style.paddingRight||"")||0);this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}},{key:"paddingRight",set:function(e){this.input.style.width="calc(100% - ".concat(e,"px)"),this.mirror&&(this.mirror.style.paddingRight=e+"px")}},{key:"updateScrollDimensions",value:function(){if("number"===typeof this.cachedContentHeight&&"number"===typeof this.cachedHeight&&this.scrollableElement){var e=this.cachedContentHeight,t=this.cachedHeight,n=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:n})}}},{key:"showMessage",value:function(e,t){this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));var n=this.stylesForType(this.message.type);this.element.style.border=n.border?"1px solid ".concat(n.border):"",(this.hasFocus()||t)&&this._showMessage()}},{key:"hideMessage",value:function(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}},{key:"validate",value:function(){var e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null===e||void 0===e?void 0:e.type}},{key:"stylesForType",value:function(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}},{key:"classForType",value:function(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}},{key:"_showMessage",value:function(){var e=this;if(this.contextViewProvider&&this.message){var t,n,i=function(){return t.style.width=u.getTotalWidth(e.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:1,render:function(n){if(!e.message)return null;t=u.append(n,k(".monaco-inputbox-container")),i();var r={inline:!0,className:"monaco-inputbox-message"},o=e.message.formatContent?(0,h.BO)(e.message.content,r):(0,h.IY)(e.message.content,r);o.classList.add(e.classForType(e.message.type));var a=e.stylesForType(e.message.type);return o.style.backgroundColor=a.background?a.background.toString():"",o.style.color=a.foreground?a.foreground.toString():"",o.style.border=a.border?"1px solid ".concat(a.border):"",u.append(t,o),null},onHide:function(){e.state="closed"},layout:i}),n=3===this.message.type?w.NC("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?w.NC("alertWarningMessage","Warning: {0}",this.message.content):w.NC("alertInfoMessage","Info: {0}",this.message.content),p.Z9(n),this.state="open"}}},{key:"_hideMessage",value:function(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}},{key:"onValueChange",value:function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}},{key:"updateMirror",value:function(){if(this.mirror){var e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText="\xa0",this.layout()}}},{key:"style",value:function(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}},{key:"applyStyles",value:function(){var e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",n=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n}},{key:"layout",value:function(){if(this.mirror){var e=this.cachedContentHeight;this.cachedContentHeight=u.getTotalHeight(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}}},{key:"insertAtCursor",value:function(e){var t=this.inputElement,n=t.selectionStart,i=t.selectionEnd,r=t.value;null!==n&&null!==i&&(this.value=r.substr(0,n)+e+r.substr(i),t.setSelectionRange(n+1,n+1),this.layout())}},{key:"dispose",value:function(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}}]),n}(v.$),T=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,r,o){var a;(0,i.Z)(this,n);var s=w.NC({key:"history.inputbox.hint",comment:["Text will be prefixed with \u21c5 plus a single space, then used as a hint where input field keeps history"]},"for history"),l=" or \u21c5 ".concat(s),c=" (\u21c5 ".concat(s,")");(a=t.call(this,e,r,o))._onDidFocus=a._register(new y.Q5),a.onDidFocus=a._onDidFocus.event,a._onDidBlur=a._register(new y.Q5),a.onDidBlur=a._onDidBlur.event,a.history=new C(o.history,100);var u=function(){if(o.showHistoryHint&&o.showHistoryHint()&&!a.placeholder.endsWith(l)&&!a.placeholder.endsWith(c)&&a.history.getHistory().length){var e=a.placeholder.endsWith(")")?l:c,t=a.placeholder+e;o.showPlaceholderOnFocus&&document.activeElement!==a.input?a.placeholder=t:a.setPlaceHolder(t)}};return a.observer=new MutationObserver((function(e,t){e.forEach((function(e){e.target.textContent||u()}))})),a.observer.observe(a.input,{attributeFilter:["class"]}),a.onfocus(a.input,(function(){return u()})),a.onblur(a.input,(function(){var e=function(e){if(a.placeholder.endsWith(e)){var t=a.placeholder.slice(0,a.placeholder.length-e.length);return o.showPlaceholderOnFocus?a.placeholder=t:a.setPlaceHolder(t),!0}return!1};e(c)||e(l)})),a}return(0,r.Z)(n,[{key:"dispose",value:function(){(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this),this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"addToHistory",value:function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}},{key:"showNextValue",value:function(){this.history.has(this.value)||this.addToHistory();var e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,p.i7(this.value))}},{key:"showPreviousValue",value:function(){this.history.has(this.value)||this.addToHistory();var e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,p.i7(this.value))}},{key:"onBlur",value:function(){(0,a.Z)((0,s.Z)(n.prototype),"onBlur",this).call(this),this._onDidBlur.fire()}},{key:"onFocus",value:function(){(0,a.Z)((0,s.Z)(n.prototype),"onFocus",this).call(this),this._onDidFocus.fire()}},{key:"getCurrentValue",value:function(){var e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}},{key:"getPreviousValue",value:function(){return this.history.previous()||this.history.first()}},{key:"getNextValue",value:function(){return this.history.next()||this.history.last()}}]),n}(E)},87808:function(e,t,n){"use strict";n.d(t,{kX:function(){return N},Bv:function(){return O}});var i=n(37762),r=n(93433),o=n(15671),a=n(43144),s=n(62865),l=n(94021),c=n(81531),u=n(25425),d=n(81238),h=n(27338),f=n(29671),p=n(60022),g=n(24030),v=n(73097),m=n(11860),y=n(163),_=n(57970);function b(e,t){var n,r=[],o=(0,i.Z)(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(!(e.start>=a.range.end)){if(e.end<a.range.start)break;var s=y.e.intersect(e,a.range);y.e.isEmpty(s)||r.push({range:s,size:a.size})}}}catch(l){o.e(l)}finally{o.f()}return r}function C(e,t){return{start:e.start+t,end:e.end+t}}function S(e){var t,n=[],r=null,o=(0,i.Z)(e);try{for(o.s();!(t=o.n()).done;){var a=t.value,s=a.range.start,l=a.range.end,c=a.size;r&&c===r.size?r.range.end=l:(r={range:{start:s,end:l},size:c},n.push(r))}}catch(u){o.e(u)}finally{o.f()}return n}function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return S(t.reduce((function(e,t){return e.concat(t)}),[]))}var k=function(){function e(){(0,o.Z)(this,e),this.groups=[],this._size=0}return(0,a.Z)(e,[{key:"splice",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=n.length-t,r=b({start:0,end:e},this.groups),o=b({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((function(e){return{range:C(e.range,i),size:e.size}})),a=n.map((function(t,n){return{range:{start:e+n,end:e+n+1},size:t.size}}));this.groups=w(r,a,o),this._size=this.groups.reduce((function(e,t){return e+t.size*(t.range.end-t.range.start)}),0)}},{key:"count",get:function(){var e=this.groups.length;return e?this.groups[e-1].range.end:0}},{key:"size",get:function(){return this._size}},{key:"indexAt",value:function(e){if(e<0)return-1;var t,n=0,r=0,o=(0,i.Z)(this.groups);try{for(o.s();!(t=o.n()).done;){var a=t.value,s=a.range.end-a.range.start,l=r+s*a.size;if(e<l)return n+Math.floor((e-r)/a.size);n+=s,r=l}}catch(c){o.e(c)}finally{o.f()}return n}},{key:"indexAfter",value:function(e){return Math.min(this.indexAt(e)+1,this.count)}},{key:"positionAt",value:function(e){if(e<0)return-1;var t,n=0,r=0,o=(0,i.Z)(this.groups);try{for(o.s();!(t=o.n()).done;){var a=t.value,s=a.range.end-a.range.start,l=r+s;if(e<l)return n+(e-r)*a.size;n+=s*a.size,r=l}}catch(c){o.e(c)}finally{o.f()}return-1}}]),e}();var x=function(){function e(t){(0,o.Z)(this,e),this.renderers=t,this.cache=new Map}return(0,a.Z)(e,[{key:"alloc",value:function(e){var t=this.getTemplateCache(e).pop();if(!t){var n=(0,c.$)(".monaco-list-row");t={domNode:n,templateId:e,templateData:this.getRenderer(e).renderTemplate(n)}}return t}},{key:"release",value:function(e){e&&this.releaseRow(e)}},{key:"releaseRow",value:function(e){var t=e.domNode,n=e.templateId;t&&(t.classList.remove("scrolling"),function(e){var t;try{null===(t=e.parentElement)||void 0===t||t.removeChild(e)}catch(n){}}(t)),this.getTemplateCache(n).push(e)}},{key:"getTemplateCache",value:function(e){var t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}},{key:"dispose",value:function(){var e=this;this.cache.forEach((function(t,n){var r,o=(0,i.Z)(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;e.getRenderer(n).disposeTemplate(a.templateData),a.templateData=null}}catch(s){o.e(s)}finally{o.f()}})),this.cache.clear()}},{key:"getRenderer",value:function(e){var t=this.renderers.get(e);if(!t)throw new Error("No renderer found for ".concat(e));return t}}]),e}(),E=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},T={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(e){return[e]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0},N=function(){function e(t){(0,o.Z)(this,e),this.elements=t}return(0,a.Z)(e,[{key:"update",value:function(){}},{key:"getData",value:function(){return this.elements}}]),e}(),I=function(){function e(t){(0,o.Z)(this,e),this.elements=t}return(0,a.Z)(e,[{key:"update",value:function(){}},{key:"getData",value:function(){return this.elements}}]),e}(),D=function(){function e(){(0,o.Z)(this,e),this.types=[],this.files=[]}return(0,a.Z)(e,[{key:"update",value:function(e){var t;e.types&&(t=this.types).splice.apply(t,[0,this.types.length].concat((0,r.Z)(e.types)));if(e.files){this.files.splice(0,this.files.length);for(var n=0;n<e.files.length;n++){var i=e.files.item(n);i&&(i.size||i.type)&&this.files.push(i)}}}},{key:"getData",value:function(){return{types:this.types,files:this.files}}}]),e}();var L=(0,a.Z)((function e(t){(0,o.Z)(this,e),(null===t||void 0===t?void 0:t.getSetSize)?this.getSetSize=t.getSetSize.bind(t):this.getSetSize=function(e,t,n){return n},(null===t||void 0===t?void 0:t.getPosInSet)?this.getPosInSet=t.getPosInSet.bind(t):this.getPosInSet=function(e,t){return t+1},(null===t||void 0===t?void 0:t.getRole)?this.getRole=t.getRole.bind(t):this.getRole=function(e){return"listitem"},(null===t||void 0===t?void 0:t.isChecked)?this.isChecked=t.isChecked.bind(t):this.isChecked=function(e){}})),O=function(){function e(t,n,r){var a,s,l,u,f,g,y,b,C,S,w=this,E=arguments.length>3&&void 0!==arguments[3]?arguments[3]:T;if((0,o.Z)(this,e),this.virtualDelegate=n,this.domId="list_id_".concat(++e.InstanceCount),this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new p.vp(50),this.splicing=!1,this.dragOverAnimationStopDisposable=m.JT.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=m.JT.None,this.onDragLeaveTimeout=m.JT.None,this.disposables=new m.SL,this._onDidChangeContentHeight=new v.Q5,this._horizontalScrolling=!1,E.horizontalScrolling&&E.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new k;var N,I=(0,i.Z)(r);try{for(I.s();!(N=I.n()).done;){var D=N.value;this.renderers.set(D.templateId,D)}}catch(R){I.e(R)}finally{I.f()}this.cache=this.disposables.add(new x(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!==typeof E.mouseSupport||E.mouseSupport),this._horizontalScrolling=null!==(a=E.horizontalScrolling)&&void 0!==a?a:T.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight="undefined"===typeof E.additionalScrollHeight?0:E.additionalScrollHeight,this.accessibilityProvider=new L(E.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";var O=null!==(s=E.transformOptimization)&&void 0!==s?s:T.transformOptimization;O&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(d.o.addTarget(this.rowsContainer)),this.scrollable=new _.Rm({forceIntegerValues:!0,smoothScrollDuration:null!==(l=E.smoothScrolling)&&void 0!==l&&l?125:0,scheduleAtNextAnimationFrame:function(e){return(0,c.scheduleAtNextAnimationFrame)(e)}}),this.scrollableElement=this.disposables.add(new h.$Z(this.rowsContainer,{alwaysConsumeMouseWheel:null!==(u=E.alwaysConsumeMouseWheel)&&void 0!==u?u:T.alwaysConsumeMouseWheel,horizontal:1,vertical:null!==(f=E.verticalScrollMode)&&void 0!==f?f:T.verticalScrollMode,useShadows:null!==(g=E.useShadows)&&void 0!==g?g:T.useShadows,mouseWheelScrollSensitivity:E.mouseWheelScrollSensitivity,fastScrollSensitivity:E.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),t.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,c.addDisposableListener)(this.rowsContainer,d.t.Change,(function(e){return w.onTouchChange(e)}))),this.disposables.add((0,c.addDisposableListener)(this.scrollableElement.getDomNode(),"scroll",(function(e){return e.target.scrollTop=0}))),this.disposables.add((0,c.addDisposableListener)(this.domNode,"dragover",(function(e){return w.onDragOver(w.toDragEvent(e))}))),this.disposables.add((0,c.addDisposableListener)(this.domNode,"drop",(function(e){return w.onDrop(w.toDragEvent(e))}))),this.disposables.add((0,c.addDisposableListener)(this.domNode,"dragleave",(function(e){return w.onDragLeave(w.toDragEvent(e))}))),this.disposables.add((0,c.addDisposableListener)(this.domNode,"dragend",(function(e){return w.onDragEnd(e)}))),this.setRowLineHeight=null!==(y=E.setRowLineHeight)&&void 0!==y?y:T.setRowLineHeight,this.setRowHeight=null!==(b=E.setRowHeight)&&void 0!==b?b:T.setRowHeight,this.supportDynamicHeights=null!==(C=E.supportDynamicHeights)&&void 0!==C?C:T.supportDynamicHeights,this.dnd=null!==(S=E.dnd)&&void 0!==S?S:T.dnd,this.layout()}return(0,a.Z)(e,[{key:"contentHeight",get:function(){return this.rangeMap.size}},{key:"horizontalScrolling",get:function(){return this._horizontalScrolling},set:function(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){var t,n=(0,i.Z)(this.items);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.measureItemWidth(r)}}catch(o){n.e(o)}finally{n.f()}this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,c.getContentWidth)(this.domNode)}),this.rowsContainer.style.width="".concat(Math.max(this.scrollWidth||0,this.renderWidth),"px")}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}},{key:"updateOptions",value:function(e){void 0!==e.additionalScrollHeight&&(this.additionalScrollHeight=e.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.mouseWheelScrollSensitivity&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&this.scrollableElement.updateOptions({fastScrollSensitivity:e.fastScrollSensitivity})}},{key:"splice",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,n)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}},{key:"_splice",value:function(e,t){for(var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),s={start:e,end:e+t},l=y.e.intersect(a,s),c=new Map,u=l.end-1;u>=l.start;u--){var d=this.items[u];if(d.dragStartDisposable.dispose(),d.checkedDisposable.dispose(),d.row){var h=c.get(d.templateId);h||(h=[],c.set(d.templateId,h));var f=this.renderers.get(d.templateId);f&&f.disposeElement&&f.disposeElement(d.element,u,d.row.templateData,d.size),h.push(d.row)}d.row=null}var p,g,v={start:e+t,end:this.items.length},_=y.e.intersect(v,a),b=y.e.relativeComplement(v,a),S=o.map((function(e){return{id:String(n.itemId++),element:e,templateId:n.virtualDelegate.getTemplateId(e),size:n.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!n.virtualDelegate.hasDynamicHeight&&n.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:m.JT.None,checkedDisposable:m.JT.None}}));0===e&&t>=this.items.length?(this.rangeMap=new k,this.rangeMap.splice(0,0,S),p=this.items,this.items=S):(this.rangeMap.splice(e,t,S),p=(g=this.items).splice.apply(g,[e,t].concat((0,r.Z)(S))));for(var w=o.length-t,x=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),E=C(_,w),T=y.e.intersect(x,E),N=T.start;N<T.end;N++)this.updateItemInDOM(this.items[N],N);var I,D=y.e.relativeComplement(E,x),L=(0,i.Z)(D);try{for(L.s();!(I=L.n()).done;)for(var O=I.value,R=O.start;R<O.end;R++)this.removeItemFromDOM(R)}catch(X){L.e(X)}finally{L.f()}var A,M=b.map((function(e){return C(e,w)})),P={start:e,end:e+o.length},Z=[P].concat((0,r.Z)(M)).map((function(e){return y.e.intersect(x,e)})),F=this.getNextToLastElement(Z),B=(0,i.Z)(Z);try{for(B.s();!(A=B.n()).done;)for(var H=A.value,z=H.start;z<H.end;z++){var j=this.items[z],V=c.get(j.templateId),W=null===V||void 0===V?void 0:V.pop();this.insertItemInDOM(z,F,W)}}catch(X){B.e(X)}finally{B.f()}var U,G=(0,i.Z)(c.values());try{for(G.s();!(U=G.n()).done;){var K,Y=U.value,q=(0,i.Z)(Y);try{for(q.s();!(K=q.n()).done;){var $=K.value;this.cache.release($)}}catch(X){q.e(X)}finally{q.f()}}}catch(X){G.e(X)}finally{G.f()}return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),p.map((function(e){return e.element}))}},{key:"eventuallyUpdateScrollDimensions",value:function(){var e=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height="".concat(this._scrollHeight,"px"),this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,c.scheduleAtNextAnimationFrame)((function(){e.scrollableElement.setScrollDimensions({scrollHeight:e.scrollHeight}),e.updateScrollWidth(),e.scrollableElementUpdateDisposable=null})))}},{key:"eventuallyUpdateScrollWidth",value:function(){var e=this;this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((function(){return e.updateScrollWidth()})):this.scrollableElementWidthDelayer.cancel()}},{key:"updateScrollWidth",value:function(){if(this.horizontalScrolling){var e,t=0,n=(0,i.Z)(this.items);try{for(n.s();!(e=n.n()).done;){var r=e.value;"undefined"!==typeof r.width&&(t=Math.max(t,r.width))}}catch(o){n.e(o)}finally{n.f()}this.scrollWidth=t,this.scrollableElement.setScrollDimensions({scrollWidth:0===t?0:t+10})}}},{key:"rerender",value:function(){if(this.supportDynamicHeights){var e,t=(0,i.Z)(this.items);try{for(t.s();!(e=t.n()).done;){e.value.lastDynamicHeightWidth=void 0}}catch(n){t.e(n)}finally{t.f()}this._rerender(this.lastRenderTop,this.lastRenderHeight)}}},{key:"length",get:function(){return this.items.length}},{key:"renderHeight",get:function(){return this.scrollableElement.getScrollDimensions().height}},{key:"element",value:function(e){return this.items[e].element}},{key:"domElement",value:function(e){var t=this.items[e].row;return t&&t.domNode}},{key:"elementHeight",value:function(e){return this.items[e].size}},{key:"elementTop",value:function(e){return this.rangeMap.positionAt(e)}},{key:"indexAt",value:function(e){return this.rangeMap.indexAt(e)}},{key:"indexAfter",value:function(e){return this.rangeMap.indexAfter(e)}},{key:"layout",value:function(e,t){var n={height:"number"===typeof e?e:(0,c.getContentHeight)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,n.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(n),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:(0,c.getContentWidth)(this.domNode)})}},{key:"render",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=this.getRenderRange(t,n),l=y.e.relativeComplement(s,e),c=y.e.relativeComplement(e,s),u=this.getNextToLastElement(l);if(a)for(var d=y.e.intersect(e,s),h=d.start;h<d.end;h++)this.updateItemInDOM(this.items[h],h);var f,p=(0,i.Z)(l);try{for(p.s();!(f=p.n()).done;)for(var g=f.value,v=g.start;v<g.end;v++)this.insertItemInDOM(v,u)}catch(S){p.e(S)}finally{p.f()}var m,_=(0,i.Z)(c);try{for(_.s();!(m=_.n()).done;)for(var b=m.value,C=b.start;C<b.end;C++)this.removeItemFromDOM(C)}catch(S){_.e(S)}finally{_.f()}void 0!==r&&(this.rowsContainer.style.left="-".concat(r,"px")),this.rowsContainer.style.top="-".concat(t,"px"),this.horizontalScrolling&&void 0!==o&&(this.rowsContainer.style.width="".concat(Math.max(o,this.renderWidth),"px")),this.lastRenderTop=t,this.lastRenderHeight=n}},{key:"insertItemInDOM",value:function(e,t,n){var i=this,r=this.items[e];r.row||(r.row=null!==n&&void 0!==n?n:this.cache.alloc(r.templateId));var o=this.accessibilityProvider.getRole(r.element)||"listitem";r.row.domNode.setAttribute("role",o);var a=this.accessibilityProvider.isChecked(r.element);if("boolean"===typeof a)r.row.domNode.setAttribute("aria-checked",String(!!a));else if(a){var s=function(e){return r.row.domNode.setAttribute("aria-checked",String(!!e))};s(a.value),r.checkedDisposable=a.onDidChange(s)}r.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(r.row.domNode,t):this.rowsContainer.appendChild(r.row.domNode)),this.updateItemInDOM(r,e);var l=this.renderers.get(r.templateId);if(!l)throw new Error("No renderer found for template id ".concat(r.templateId));null===l||void 0===l||l.renderElement(r.element,e,r.row.templateData,r.size);var u=this.dnd.getDragURI(r.element);r.dragStartDisposable.dispose(),r.row.domNode.draggable=!!u,u&&(r.dragStartDisposable=(0,c.addDisposableListener)(r.row.domNode,"dragstart",(function(e){return i.onDragStart(r.element,u,e)}))),this.horizontalScrolling&&(this.measureItemWidth(r),this.eventuallyUpdateScrollWidth())}},{key:"measureItemWidth",value:function(e){if(e.row&&e.row.domNode){e.row.domNode.style.width=s.isFirefox?"-moz-fit-content":"fit-content",e.width=(0,c.getContentWidth)(e.row.domNode);var t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}}},{key:"updateItemInDOM",value:function(e,t){e.row.domNode.style.top="".concat(this.elementTop(t),"px"),this.setRowHeight&&(e.row.domNode.style.height="".concat(e.size,"px")),this.setRowLineHeight&&(e.row.domNode.style.lineHeight="".concat(e.size,"px")),e.row.domNode.setAttribute("data-index","".concat(t)),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}},{key:"removeItemFromDOM",value:function(e){var t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){var n=this.renderers.get(t.templateId);n&&n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}},{key:"getScrollTop",value:function(){return this.scrollableElement.getScrollPosition().scrollTop}},{key:"setScrollTop",value:function(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}},{key:"scrollTop",get:function(){return this.getScrollTop()},set:function(e){this.setScrollTop(e)}},{key:"scrollHeight",get:function(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}},{key:"onMouseClick",get:function(){var e=this;return v.ju.map(this.disposables.add(new u.Y(this.domNode,"click")).event,(function(t){return e.toMouseEvent(t)}),this.disposables)}},{key:"onMouseDblClick",get:function(){var e=this;return v.ju.map(this.disposables.add(new u.Y(this.domNode,"dblclick")).event,(function(t){return e.toMouseEvent(t)}),this.disposables)}},{key:"onMouseMiddleClick",get:function(){var e=this;return v.ju.filter(v.ju.map(this.disposables.add(new u.Y(this.domNode,"auxclick")).event,(function(t){return e.toMouseEvent(t)}),this.disposables),(function(e){return 1===e.browserEvent.button}),this.disposables)}},{key:"onMouseDown",get:function(){var e=this;return v.ju.map(this.disposables.add(new u.Y(this.domNode,"mousedown")).event,(function(t){return e.toMouseEvent(t)}),this.disposables)}},{key:"onMouseOver",get:function(){var e=this;return v.ju.map(this.disposables.add(new u.Y(this.domNode,"mouseover")).event,(function(t){return e.toMouseEvent(t)}),this.disposables)}},{key:"onContextMenu",get:function(){var e=this;return v.ju.any(v.ju.map(this.disposables.add(new u.Y(this.domNode,"contextmenu")).event,(function(t){return e.toMouseEvent(t)}),this.disposables),v.ju.map(this.disposables.add(new u.Y(this.domNode,d.t.Contextmenu)).event,(function(t){return e.toGestureEvent(t)}),this.disposables))}},{key:"onTouchStart",get:function(){var e=this;return v.ju.map(this.disposables.add(new u.Y(this.domNode,"touchstart")).event,(function(t){return e.toTouchEvent(t)}),this.disposables)}},{key:"onTap",get:function(){var e=this;return v.ju.map(this.disposables.add(new u.Y(this.rowsContainer,d.t.Tap)).event,(function(t){return e.toGestureEvent(t)}),this.disposables)}},{key:"toMouseEvent",value:function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}}},{key:"toTouchEvent",value:function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}}},{key:"toGestureEvent",value:function(e){var t=this.getItemIndexFromEventTarget(e.initialTarget||null),n="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}}},{key:"toDragEvent",value:function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}}},{key:"onScroll",value:function(e){try{var t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(n){throw console.error("Got bad scroll event:",e),n}}},{key:"onTouchChange",value:function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}},{key:"onDragStart",value:function(e,t,n){var i,r;if(n.dataTransfer){var o=this.dnd.getDragElements(e);if(n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData(l.g.TEXT,t),n.dataTransfer.setDragImage){var a;this.dnd.getDragLabel&&(a=this.dnd.getDragLabel(o,n)),"undefined"===typeof a&&(a=String(o.length));var s=(0,c.$)(".monaco-drag-image");s.textContent=a,document.body.appendChild(s),n.dataTransfer.setDragImage(s,-10,-10),setTimeout((function(){return document.body.removeChild(s)}),0)}this.currentDragData=new N(o),l.P.CurrentDragAndDropData=new I(o),null===(r=(i=this.dnd).onDragStart)||void 0===r||r.call(i,this.currentDragData,n)}}},{key:"onDragOver",value:function(e){var t,n=this;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),l.P.CurrentDragAndDropData&&"vscode-ui"===l.P.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(l.P.CurrentDragAndDropData)this.currentDragData=l.P.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new D}var r,o,a,s=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"===typeof s?s:s.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;if(e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof s&&0===s.effect?"copy":"move",r="boolean"!==typeof s&&s.feedback?s.feedback:"undefined"===typeof e.index?[-1]:[e.index],r=-1===(r=(0,f.EB)(r).filter((function(e){return e>=-1&&e<n.length})).sort((function(e,t){return e-t})))[0]?[-1]:r,o=this.currentDragFeedback,a=r,Array.isArray(o)&&Array.isArray(a)?(0,f.fS)(o,a):o===a)return!0;if(this.currentDragFeedback=r,this.currentDragFeedbackDisposable.dispose(),-1===r[0])this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=(0,m.OF)((function(){n.domNode.classList.remove("drop-target"),n.rowsContainer.classList.remove("drop-target")}));else{var c,u=(0,i.Z)(r);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=this.items[d];h.dropTarget=!0,null===(t=h.row)||void 0===t||t.domNode.classList.add("drop-target")}}catch(p){u.e(p)}finally{u.f()}this.currentDragFeedbackDisposable=(0,m.OF)((function(){var e,t,o=(0,i.Z)(r);try{for(o.s();!(t=o.n()).done;){var a=t.value,s=n.items[a];s.dropTarget=!1,null===(e=s.row)||void 0===e||e.domNode.classList.remove("drop-target")}}catch(p){o.e(p)}finally{o.f()}}))}return!0}},{key:"onDragLeave",value:function(e){var t,n,i=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,p.Vg)((function(){return i.clearDragOverFeedback()}),100),this.currentDragData&&(null===(n=(t=this.dnd).onDragLeave)||void 0===n||n.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}},{key:"onDrop",value:function(e){if(this.canDrop){var t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,l.P.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}}},{key:"onDragEnd",value:function(e){var t,n;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,l.P.CurrentDragAndDropData=void 0,null===(n=(t=this.dnd).onDragEnd)||void 0===n||n.call(t,e)}},{key:"clearDragOverFeedback",value:function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=m.JT.None}},{key:"setupDragAndDropScrollTopAnimation",value:function(e){var t=this;if(!this.dragOverAnimationDisposable){var n=(0,c.getTopLeftOffset)(this.domNode).top;this.dragOverAnimationDisposable=(0,c.animate)(this.animateDragAndDropScrollTop.bind(this,n))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,p.Vg)((function(){t.dragOverAnimationDisposable&&(t.dragOverAnimationDisposable.dispose(),t.dragOverAnimationDisposable=void 0)}),1e3),this.dragOverMouseY=e.pageY}},{key:"animateDragAndDropScrollTop",value:function(e){if(void 0!==this.dragOverMouseY){var t=this.dragOverMouseY-e,n=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>n&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-n))))}}},{key:"teardownDragAndDropScrollTopAnimation",value:function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}},{key:"getItemIndexFromEventTarget",value:function(e){for(var t=this.scrollableElement.getDomNode(),n=e;n instanceof HTMLElement&&n!==this.rowsContainer&&t.contains(n);){var i=n.getAttribute("data-index");if(i){var r=Number(i);if(!isNaN(r))return r}n=n.parentElement}}},{key:"getRenderRange",value:function(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}},{key:"_rerender",value:function(e,t,n){var r,o,a=this.getRenderRange(e,t);e===this.elementTop(a.start)?(r=a.start,o=0):a.end-a.start>1&&(r=a.start+1,o=this.elementTop(r)-e);for(var s=0;;){for(var l=this.getRenderRange(e,t),c=!1,u=l.start;u<l.end;u++){var d=this.probeDynamicHeight(u);0!==d&&this.rangeMap.splice(u,1,[this.items[u]]),s+=d,c=c||0!==d}if(!c){0!==s&&this.eventuallyUpdateScrollDimensions();var h,f=y.e.relativeComplement(a,l),p=(0,i.Z)(f);try{for(p.s();!(h=p.n()).done;)for(var g=h.value,v=g.start;v<g.end;v++)this.items[v].row&&this.removeItemFromDOM(v)}catch(I){p.e(I)}finally{p.f()}var m,_=y.e.relativeComplement(l,a),b=(0,i.Z)(_);try{for(b.s();!(m=b.n()).done;)for(var C=m.value,S=C.start;S<C.end;S++){var w=S+1,k=w<this.items.length?this.items[w].row:null,x=k?k.domNode:null;this.insertItemInDOM(S,x)}}catch(I){b.e(I)}finally{b.f()}for(var E=l.start;E<l.end;E++)this.items[E].row&&this.updateItemInDOM(this.items[E],E);if("number"===typeof r){var T=this.scrollable.getFutureScrollPosition().scrollTop-e,N=this.elementTop(r)-o+T;this.setScrollTop(N,n)}return void this._onDidChangeContentHeight.fire(this.contentHeight)}}}},{key:"probeDynamicHeight",value:function(e){var t,n,i,r=this.items[e];if(this.virtualDelegate.getDynamicHeight){var o=this.virtualDelegate.getDynamicHeight(r.element);if(null!==o){var a=r.size;return r.size=o,r.lastDynamicHeightWidth=this.renderWidth,o-a}}if(!r.hasDynamicHeight||r.lastDynamicHeightWidth===this.renderWidth)return 0;if(this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(r.element))return 0;var s=r.size;if(!this.setRowHeight&&r.row){var l=r.row.domNode.offsetHeight;return r.size=l,r.lastDynamicHeightWidth=this.renderWidth,l-s}var c=this.cache.alloc(r.templateId);c.domNode.style.height="",this.rowsContainer.appendChild(c.domNode);var u=this.renderers.get(r.templateId);return u&&(u.renderElement(r.element,e,c.templateData,void 0),null===(t=u.disposeElement)||void 0===t||t.call(u,r.element,e,c.templateData,void 0)),r.size=c.domNode.offsetHeight,null===(i=(n=this.virtualDelegate).setDynamicHeight)||void 0===i||i.call(n,r.element,r.size),r.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(c.domNode),this.cache.release(c),r.size-s}},{key:"getNextToLastElement",value:function(e){var t=e[e.length-1];if(!t)return null;var n=this.items[t.end];return n&&n.row?n.row.domNode:null}},{key:"getElementDomId",value:function(e){return"".concat(this.domId,"_").concat(e)}},{key:"dispose",value:function(){var e;if(this.items){var t,n=(0,i.Z)(this.items);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.row){var o=this.renderers.get(r.row.templateId);o&&(null===(e=o.disposeElement)||void 0===e||e.call(o,r.element,-1,r.row.templateData,void 0),o.disposeTemplate(r.row.templateData))}}}catch(a){n.e(a)}finally{n.f()}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),(0,m.B9)(this.disposables)}}]),e}();O.InstanceCount=0,E([g.H],O.prototype,"onMouseClick",null),E([g.H],O.prototype,"onMouseDblClick",null),E([g.H],O.prototype,"onMouseMiddleClick",null),E([g.H],O.prototype,"onMouseDown",null),E([g.H],O.prototype,"onMouseOver",null),E([g.H],O.prototype,"onContextMenu",null),E([g.H],O.prototype,"onTouchStart",null),E([g.H],O.prototype,"onTap",null)},30816:function(e,t,n){"use strict";n.d(t,{wD:function(){return $},aV:function(){return re},sx:function(){return q},AA:function(){return H},iK:function(){return B},cK:function(){return Z},hD:function(){return F},wn:function(){return K},Zo:function(){return G}});var i=n(74165),r=n(11752),o=n(61120),a=n(60136),s=n(27277),l=n(93433),c=n(37762),u=n(15671),d=n(43144),h=n(81531),f=n(25425),p=n(33813),g=n(81238),v=n(4801),m=function(){function e(t){(0,u.Z)(this,e),this.spliceables=t}return(0,d.Z)(e,[{key:"splice",value:function(e,t,n){this.spliceables.forEach((function(i){return i.splice(e,t,n)}))}}]),e}(),y=n(29671),_=n(60022),b=n(62458),C=n(24030),S=n(73097),w=n(73160),k=n(11860),x=n(53710),E=n(63656),T=n(73616),N=n(85294),I=(n(26053),function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){return(0,u.Z)(this,n),t.call(this,"ListError [".concat(e,"] ").concat(i))}return(0,d.Z)(n)}((0,n(28664).Z)(Error))),D=n(87808),L=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},O=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},R=function(){function e(t){(0,u.Z)(this,e),this.trait=t,this.renderedElements=[]}return(0,d.Z)(e,[{key:"templateId",get:function(){return"template:".concat(this.trait.name)}},{key:"renderTemplate",value:function(e){return e}},{key:"renderElement",value:function(e,t,n){var i=this.renderedElements.findIndex((function(e){return e.templateData===n}));if(i>=0){var r=this.renderedElements[i];this.trait.unrender(n),r.index=t}else{var o={index:t,templateData:n};this.renderedElements.push(o)}this.trait.renderIndex(t,n)}},{key:"splice",value:function(e,t,n){var i,r=[],o=(0,c.Z)(this.renderedElements);try{for(o.s();!(i=o.n()).done;){var a=i.value;a.index<e?r.push(a):a.index>=e+t&&r.push({index:a.index+n-t,templateData:a.templateData})}}catch(s){o.e(s)}finally{o.f()}this.renderedElements=r}},{key:"renderIndexes",value:function(e){var t,n=(0,c.Z)(this.renderedElements);try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.index,o=i.templateData;e.indexOf(r)>-1&&this.trait.renderIndex(r,o)}}catch(a){n.e(a)}finally{n.f()}}},{key:"disposeTemplate",value:function(e){var t=this.renderedElements.findIndex((function(t){return t.templateData===e}));t<0||this.renderedElements.splice(t,1)}}]),e}(),A=function(){function e(t){(0,u.Z)(this,e),this._trait=t,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new S.Q5,this.onChange=this._onChange.event}return(0,d.Z)(e,[{key:"name",get:function(){return this._trait}},{key:"renderer",get:function(){return new R(this)}},{key:"splice",value:function(e,t,n){var i;t=Math.max(0,Math.min(t,this.length-e));var r=n.length-t,o=e+t,a=[].concat((0,l.Z)(this.sortedIndexes.filter((function(t){return t<e}))),(0,l.Z)(n.map((function(t,n){return t?n+e:-1})).filter((function(e){return-1!==e}))),(0,l.Z)(this.sortedIndexes.filter((function(e){return e>=o})).map((function(e){return e+r})))),s=this.length+r;if(this.sortedIndexes.length>0&&0===a.length&&s>0){var c=null!==(i=this.sortedIndexes.find((function(t){return t>=e})))&&void 0!==i?i:s-1;a.push(Math.min(c,s-1))}this.renderer.splice(e,t,n.length),this._set(a,a),this.length=s}},{key:"renderIndex",value:function(e,t){t.classList.toggle(this._trait,this.contains(e))}},{key:"unrender",value:function(e){e.classList.remove(this._trait)}},{key:"set",value:function(e,t){return this._set(e,(0,l.Z)(e).sort(ee),t)}},{key:"_set",value:function(e,t,n){var i=this.indexes,r=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;var o=J(r,e);return this.renderer.renderIndexes(o),this._onChange.fire({indexes:e,browserEvent:n}),i}},{key:"get",value:function(){return this.indexes}},{key:"contains",value:function(e){return(0,y.ry)(this.sortedIndexes,e,ee)>=0}},{key:"dispose",value:function(){(0,k.B9)(this._onChange)}}]),e}();L([C.H],A.prototype,"renderer",null);var M=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,u.Z)(this,n),(i=t.call(this,"selected")).setAriaSelected=e,i}return(0,d.Z)(n,[{key:"renderIndex",value:function(e,t){(0,r.Z)((0,o.Z)(n.prototype),"renderIndex",this).call(this,e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}]),n}(A),P=function(){function e(t,n,i){(0,u.Z)(this,e),this.trait=t,this.view=n,this.identityProvider=i}return(0,d.Z)(e,[{key:"splice",value:function(e,t,n){var i=this;if(!this.identityProvider)return this.trait.splice(e,t,n.map((function(){return!1})));var r=this.trait.get().map((function(e){return i.identityProvider.getId(i.view.element(e)).toString()})),o=n.map((function(e){return r.indexOf(i.identityProvider.getId(e).toString())>-1}));this.trait.splice(e,t,o)}}]),e}();function Z(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function F(e){return!!e.classList.contains("monaco-editor")||!e.classList.contains("monaco-list")&&(!!e.parentElement&&F(e.parentElement))}function B(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&(!!e.parentElement&&B(e.parentElement))}var H,z,j=function(){function e(t,n,i){(0,u.Z)(this,e),this.list=t,this.view=n,this.disposables=new k.SL,this.multipleSelectionDisposables=new k.SL,this.onKeyDown.filter((function(e){return 3===e.keyCode})).on(this.onEnter,this,this.disposables),this.onKeyDown.filter((function(e){return 16===e.keyCode})).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter((function(e){return 18===e.keyCode})).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter((function(e){return 11===e.keyCode})).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter((function(e){return 12===e.keyCode})).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter((function(e){return 9===e.keyCode})).on(this.onEscape,this,this.disposables),!1!==i.multipleSelectionSupport&&this.onKeyDown.filter((function(e){return(T.dz?e.metaKey:e.ctrlKey)&&31===e.keyCode})).on(this.onCtrlA,this,this.multipleSelectionDisposables)}return(0,d.Z)(e,[{key:"onKeyDown",get:function(){return this.disposables.add(S.ju.chain(this.disposables.add(new f.Y(this.view.domNode,"keydown")).event).filter((function(e){return!Z(e.target)})).map((function(e){return new p.y(e)})))}},{key:"updateOptions",value:function(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionDisposables.clear(),e.multipleSelectionSupport&&this.onKeyDown.filter((function(e){return(T.dz?e.metaKey:e.ctrlKey)&&31===e.keyCode})).on(this.onCtrlA,this,this.multipleSelectionDisposables))}},{key:"onEnter",value:function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}},{key:"onUpArrow",value:function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);var t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}},{key:"onDownArrow",value:function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);var t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}},{key:"onPageUpArrow",value:function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);var t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}},{key:"onPageDownArrow",value:function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);var t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}},{key:"onCtrlA",value:function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,y.w6)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}},{key:"onEscape",value:function(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}},{key:"dispose",value:function(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}]),e}();L([C.H],j.prototype,"onKeyDown",null),function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"}(H||(H={})),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(z||(z={}));var V=new(function(){function e(){(0,u.Z)(this,e)}return(0,d.Z)(e,[{key:"mightProducePrintableCharacter",value:function(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=93&&e.keyCode<=102||e.keyCode>=80&&e.keyCode<=90)}}]),e}()),W=function(){function e(t,n,i,r,o){(0,u.Z)(this,e),this.list=t,this.view=n,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=r,this.delegate=o,this.enabled=!1,this.state=z.Idle,this.mode=H.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new k.SL,this.disposables=new k.SL,this.updateOptions(t.options)}return(0,d.Z)(e,[{key:"updateOptions",value:function(e){var t,n;null===(t=e.typeNavigationEnabled)||void 0===t||t?this.enable():this.disable(),this.mode=null!==(n=e.typeNavigationMode)&&void 0!==n?n:H.Automatic}},{key:"enable",value:function(){var e=this;if(!this.enabled){var t=!1,n=this.enabledDisposables.add(S.ju.chain(this.enabledDisposables.add(new f.Y(this.view.domNode,"keydown")).event)).filter((function(e){return!Z(e.target)})).filter((function(){return e.mode===H.Automatic||e.triggered})).map((function(e){return new p.y(e)})).filter((function(n){return t||e.keyboardNavigationEventFilter(n)})).filter((function(t){return e.delegate.mightProducePrintableCharacter(t)})).forEach(f.p).map((function(e){return e.browserEvent.key})).event,i=S.ju.debounce(n,(function(){return null}),800,void 0,void 0,this.enabledDisposables);S.ju.reduce(S.ju.any(n,i),(function(e,t){return null===t?null:(e||"")+t}),void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),n((function(){return t=!0}),void 0,this.enabledDisposables),i((function(){return t=!1}),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}}},{key:"disable",value:function(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}},{key:"onClear",value:function(){var e,t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){var n=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));n&&(0,v.Z9)(n)}this.previouslyFocused=-1}},{key:"onInput",value:function(e){if(!e)return this.state=z.Idle,void(this.triggered=!1);var t=this.list.getFocus(),n=t.length>0?t[0]:0,i=this.state===z.Idle?1:0;this.state=z.Typing;for(var r=0;r<this.list.length;r++){var o=(n+r+i)%this.list.length,a=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(o)),s=a&&a.toString();if("undefined"===typeof s||(0,w.Ji)(e,s))return this.previouslyFocused=n,this.list.setFocus([o]),void this.list.reveal(o)}}},{key:"dispose",value:function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}]),e}(),U=function(){function e(t,n){(0,u.Z)(this,e),this.list=t,this.view=n,this.disposables=new k.SL,this.disposables.add(S.ju.chain(this.disposables.add(new f.Y(n.domNode,"keydown")).event)).filter((function(e){return!Z(e.target)})).map((function(e){return new p.y(e)})).filter((function(e){return 2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey})).on(this.onTab,this,this.disposables)}return(0,d.Z)(e,[{key:"onTab",value:function(e){if(e.target===this.view.domNode){var t=this.list.getFocus();if(0!==t.length){var n=this.view.domElement(t[0]);if(n){var i=n.querySelector("[tabIndex]");if(i&&i instanceof HTMLElement&&-1!==i.tabIndex){var r=window.getComputedStyle(i);"hidden"!==r.visibility&&"none"!==r.display&&(e.preventDefault(),e.stopPropagation(),i.focus())}}}}}},{key:"dispose",value:function(){this.disposables.dispose()}}]),e}();function G(e){return T.dz?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function K(e){return e.browserEvent.shiftKey}var Y={isSelectionSingleChangeEvent:G,isSelectionRangeChangeEvent:K},q=function(){function e(t){(0,u.Z)(this,e),this.list=t,this.disposables=new k.SL,this._onPointer=new S.Q5,this.onPointer=this._onPointer.event,!1!==t.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||Y),this.mouseSupport="undefined"===typeof t.options.mouseSupport||!!t.options.mouseSupport,this.mouseSupport&&(t.onMouseDown(this.onMouseDown,this,this.disposables),t.onContextMenu(this.onContextMenu,this,this.disposables),t.onMouseDblClick(this.onDoubleClick,this,this.disposables),t.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(g.o.addTarget(t.getHTMLElement()))),S.ju.any(t.onMouseClick,t.onMouseMiddleClick,t.onTap)(this.onViewPointer,this,this.disposables)}return(0,d.Z)(e,[{key:"updateOptions",value:function(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||Y))}},{key:"isSelectionSingleChangeEvent",value:function(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}},{key:"isSelectionRangeChangeEvent",value:function(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}},{key:"isSelectionChangeEvent",value:function(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}},{key:"onMouseDown",value:function(e){F(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}},{key:"onContextMenu",value:function(e){if(!F(e.browserEvent.target)){var t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}}},{key:"onViewPointer",value:function(e){if(this.mouseSupport&&!Z(e.browserEvent.target)&&!F(e.browserEvent.target)){var t,n=e.index;if("undefined"===typeof n)return this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0);if(this.isSelectionRangeChangeEvent(e))return this.changeSelection(e);if(this.isSelectionChangeEvent(e))return this.changeSelection(e);this.list.setFocus([n],e.browserEvent),this.list.setAnchor(n),(t=e.browserEvent)instanceof MouseEvent&&2===t.button||this.list.setSelection([n],e.browserEvent),this._onPointer.fire(e)}}},{key:"onDoubleClick",value:function(e){if(!Z(e.browserEvent.target)&&!F(e.browserEvent.target)&&!this.isSelectionChangeEvent(e)){var t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}}},{key:"changeSelection",value:function(e){var t=e.index,n=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if("undefined"===typeof n){var i=this.list.getFocus()[0];n=null!==i&&void 0!==i?i:t,this.list.setAnchor(n)}var r=Math.min(n,t),o=Math.max(n,t),a=(0,y.w6)(r,o+1),s=this.list.getSelection(),c=function(e,t){var n=e.indexOf(t);if(-1===n)return[];var i=[],r=n-1;for(;r>=0&&e[r]===t-(n-r);)i.push(e[r--]);i.reverse(),r=n;for(;r<e.length&&e[r]===t+(r-n);)i.push(e[r++]);return i}(J(s,[n]),n);if(0===c.length)return;var u=J(a,function(e,t){var n=[],i=0,r=0;for(;i<e.length||r<t.length;)if(i>=e.length)n.push(t[r++]);else if(r>=t.length)n.push(e[i++]);else{if(e[i]===t[r]){i++,r++;continue}e[i]<t[r]?n.push(e[i++]):r++}return n}(s,c));this.list.setSelection(u,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){var d=this.list.getSelection(),h=d.filter((function(e){return e!==t}));this.list.setFocus([t]),this.list.setAnchor(t),d.length===h.length?this.list.setSelection([].concat((0,l.Z)(h),[t]),e.browserEvent):this.list.setSelection(h,e.browserEvent)}}},{key:"dispose",value:function(){this.disposables.dispose()}}]),e}(),$=function(){function e(t,n){(0,u.Z)(this,e),this.styleElement=t,this.selectorSuffix=n}return(0,d.Z)(e,[{key:"style",value:function(e){var t=this.selectorSuffix&&".".concat(this.selectorSuffix),n=[];e.listBackground&&(e.listBackground.isOpaque()?n.push(".monaco-list".concat(t," .monaco-list-rows { background: ").concat(e.listBackground,"; }")):T.dz||console.warn("List with id '".concat(this.selectorSuffix,"' was styled with a non-opaque background color. This will break sub-pixel antialiasing."))),e.listFocusBackground&&(n.push(".monaco-list".concat(t,":focus .monaco-list-row.focused { background-color: ").concat(e.listFocusBackground,"; }")),n.push(".monaco-list".concat(t,":focus .monaco-list-row.focused:hover { background-color: ").concat(e.listFocusBackground,"; }"))),e.listFocusForeground&&n.push(".monaco-list".concat(t,":focus .monaco-list-row.focused { color: ").concat(e.listFocusForeground,"; }")),e.listActiveSelectionBackground&&(n.push(".monaco-list".concat(t,":focus .monaco-list-row.selected { background-color: ").concat(e.listActiveSelectionBackground,"; }")),n.push(".monaco-list".concat(t,":focus .monaco-list-row.selected:hover { background-color: ").concat(e.listActiveSelectionBackground,"; }"))),e.listActiveSelectionForeground&&n.push(".monaco-list".concat(t,":focus .monaco-list-row.selected { color: ").concat(e.listActiveSelectionForeground,"; }")),e.listActiveSelectionIconForeground&&n.push(".monaco-list".concat(t,":focus .monaco-list-row.selected .codicon { color: ").concat(e.listActiveSelectionIconForeground,"; }")),e.listFocusAndSelectionOutline&&n.push(".monaco-list".concat(t,":focus .monaco-list-row.selected { outline-color: ").concat(e.listFocusAndSelectionOutline," !important; }")),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list".concat(t,":focus .monaco-list-row.selected.focused { background-color: ").concat(e.listFocusAndSelectionBackground,"; }\n\t\t\t")),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list".concat(t,":focus .monaco-list-row.selected.focused { color: ").concat(e.listFocusAndSelectionForeground,"; }\n\t\t\t")),e.listInactiveFocusForeground&&(n.push(".monaco-list".concat(t," .monaco-list-row.focused { color: ").concat(e.listInactiveFocusForeground,"; }")),n.push(".monaco-list".concat(t," .monaco-list-row.focused:hover { color: ").concat(e.listInactiveFocusForeground,"; }"))),e.listInactiveSelectionIconForeground&&n.push(".monaco-list".concat(t," .monaco-list-row.focused .codicon { color: ").concat(e.listInactiveSelectionIconForeground,"; }")),e.listInactiveFocusBackground&&(n.push(".monaco-list".concat(t," .monaco-list-row.focused { background-color: ").concat(e.listInactiveFocusBackground,"; }")),n.push(".monaco-list".concat(t," .monaco-list-row.focused:hover { background-color: ").concat(e.listInactiveFocusBackground,"; }"))),e.listInactiveSelectionBackground&&(n.push(".monaco-list".concat(t," .monaco-list-row.selected { background-color: ").concat(e.listInactiveSelectionBackground,"; }")),n.push(".monaco-list".concat(t," .monaco-list-row.selected:hover { background-color: ").concat(e.listInactiveSelectionBackground,"; }"))),e.listInactiveSelectionForeground&&n.push(".monaco-list".concat(t," .monaco-list-row.selected { color: ").concat(e.listInactiveSelectionForeground,"; }")),e.listHoverBackground&&n.push(".monaco-list".concat(t,":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ").concat(e.listHoverBackground,"; }")),e.listHoverForeground&&n.push(".monaco-list".concat(t," .monaco-list-row:hover:not(.selected):not(.focused) { color: ").concat(e.listHoverForeground,"; }")),e.listSelectionOutline&&n.push(".monaco-list".concat(t," .monaco-list-row.selected { outline: 1px dotted ").concat(e.listSelectionOutline,"; outline-offset: -1px; }")),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list".concat(t,":focus .monaco-list-row.focused { outline: 1px solid ").concat(e.listFocusOutline,"; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list").concat(t,".last-focused .monaco-list-row.focused { outline: 1px solid ").concat(e.listFocusOutline,"; outline-offset: -1px; }\n\t\t\t")),e.listInactiveFocusOutline&&n.push(".monaco-list".concat(t," .monaco-list-row.focused { outline: 1px dotted ").concat(e.listInactiveFocusOutline,"; outline-offset: -1px; }")),e.listHoverOutline&&n.push(".monaco-list".concat(t," .monaco-list-row:hover { outline: 1px dashed ").concat(e.listHoverOutline,"; outline-offset: -1px; }")),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-list".concat(t,".drop-target,\n\t\t\t\t.monaco-list").concat(t," .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list").concat(t," .monaco-list-row.drop-target { background-color: ").concat(e.listDropBackground," !important; color: inherit !important; }\n\t\t\t")),e.tableColumnsBorder&&n.push("\n\t\t\t\t.monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ".concat(e.tableColumnsBorder,";\n\t\t\t}")),e.tableOddRowsBackgroundColor&&n.push("\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ".concat(e.tableOddRowsBackgroundColor,";\n\t\t\t\t}\n\t\t\t")),this.styleElement.textContent=n.join("\n")}}]),e}(),X={listFocusBackground:b.Il.fromHex("#7FB0D0"),listActiveSelectionBackground:b.Il.fromHex("#0E639C"),listActiveSelectionForeground:b.Il.fromHex("#FFFFFF"),listActiveSelectionIconForeground:b.Il.fromHex("#FFFFFF"),listFocusAndSelectionOutline:b.Il.fromHex("#90C2F9"),listFocusAndSelectionBackground:b.Il.fromHex("#094771"),listFocusAndSelectionForeground:b.Il.fromHex("#FFFFFF"),listInactiveSelectionBackground:b.Il.fromHex("#3F3F46"),listInactiveSelectionIconForeground:b.Il.fromHex("#FFFFFF"),listHoverBackground:b.Il.fromHex("#2A2D2E"),listDropBackground:b.Il.fromHex("#383B3D"),treeIndentGuidesStroke:b.Il.fromHex("#a9a9a9"),tableColumnsBorder:b.Il.fromHex("#cccccc").transparent(.2),tableOddRowsBackgroundColor:b.Il.fromHex("#cccccc").transparent(.04)},Q={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}}};function J(e,t){for(var n=[],i=0,r=0;i<e.length||r<t.length;)if(i>=e.length)n.push(t[r++]);else if(r>=t.length)n.push(e[i++]);else{if(e[i]===t[r]){n.push(e[i]),i++,r++;continue}e[i]<t[r]?n.push(e[i++]):n.push(t[r++])}return n}var ee=function(e,t){return e-t},te=function(){function e(t,n){(0,u.Z)(this,e),this._templateId=t,this.renderers=n}return(0,d.Z)(e,[{key:"templateId",get:function(){return this._templateId}},{key:"renderTemplate",value:function(e){return this.renderers.map((function(t){return t.renderTemplate(e)}))}},{key:"renderElement",value:function(e,t,n,i){var r,o=0,a=(0,c.Z)(this.renderers);try{for(a.s();!(r=a.n()).done;){r.value.renderElement(e,t,n[o++],i)}}catch(s){a.e(s)}finally{a.f()}}},{key:"disposeElement",value:function(e,t,n,i){var r,o,a=0,s=(0,c.Z)(this.renderers);try{for(s.s();!(o=s.n()).done;){var l=o.value;null===(r=l.disposeElement)||void 0===r||r.call(l,e,t,n[a],i),a+=1}}catch(u){s.e(u)}finally{s.f()}}},{key:"disposeTemplate",value:function(e){var t,n=0,i=(0,c.Z)(this.renderers);try{for(i.s();!(t=i.n()).done;){t.value.disposeTemplate(e[n++])}}catch(r){i.e(r)}finally{i.f()}}}]),e}(),ne=function(){function e(t){(0,u.Z)(this,e),this.accessibilityProvider=t,this.templateId="a18n"}return(0,d.Z)(e,[{key:"renderTemplate",value:function(e){return e}},{key:"renderElement",value:function(e,t,n){var i=this.accessibilityProvider.getAriaLabel(e);i?n.setAttribute("aria-label",i):n.removeAttribute("aria-label");var r=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof r?n.setAttribute("aria-level","".concat(r)):n.removeAttribute("aria-level")}},{key:"disposeTemplate",value:function(e){}}]),e}(),ie=function(){function e(t,n){(0,u.Z)(this,e),this.list=t,this.dnd=n}return(0,d.Z)(e,[{key:"getDragElements",value:function(e){var t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}},{key:"getDragURI",value:function(e){return this.dnd.getDragURI(e)}},{key:"getDragLabel",value:function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}},{key:"onDragStart",value:function(e,t){var n,i;null===(i=(n=this.dnd).onDragStart)||void 0===i||i.call(n,e,t)}},{key:"onDragOver",value:function(e,t,n,i){return this.dnd.onDragOver(e,t,n,i)}},{key:"onDragLeave",value:function(e,t,n,i){var r,o;null===(o=(r=this.dnd).onDragLeave)||void 0===o||o.call(r,e,t,n,i)}},{key:"onDragEnd",value:function(e){var t,n;null===(n=(t=this.dnd).onDragEnd)||void 0===n||n.call(t,e)}},{key:"drop",value:function(e,t,n,i){this.dnd.drop(e,t,n,i)}}]),e}(),re=function(){function e(t,n,i,r){var o,a,s,l,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Q;(0,u.Z)(this,e),this.user=t,this._options=c,this.focus=new A("focused"),this.anchor=new A("anchor"),this.eventBufferer=new S.E7,this._ariaLabel="",this.disposables=new k.SL,this._onDidDispose=new S.Q5,this.onDidDispose=this._onDidDispose.event;var d=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(o=this._options.accessibilityProvider)||void 0===o?void 0:o.getWidgetRole():"list";this.selection=new M("listbox"!==d),(0,E.jB)(c,X,!1);var f=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=c.accessibilityProvider,this.accessibilityProvider&&(f.push(new ne(this.accessibilityProvider)),null===(s=(a=this.accessibilityProvider).onDidChangeActiveDescendant)||void 0===s||s.call(a,this.onDidChangeActiveDescendant,this,this.disposables)),r=r.map((function(e){return new te(e.templateId,[].concat(f,[e]))}));var p=Object.assign(Object.assign({},c),{dnd:c.dnd&&new ie(this,c.dnd)});if(this.view=new D.Bv(n,i,r,p),this.view.domNode.setAttribute("role",d),c.styleController)this.styleController=c.styleController(this.view.domId);else{var g=(0,h.createStyleSheet)(this.view.domNode);this.styleController=new $(g,this.view.domId)}if(this.spliceable=new m([new P(this.focus,this.view,c.identityProvider),new P(this.selection,this.view,c.identityProvider),new P(this.anchor,this.view,c.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new U(this,this.view)),("boolean"!==typeof c.keyboardSupport||c.keyboardSupport)&&(this.keyboardController=new j(this,this.view,c),this.disposables.add(this.keyboardController)),c.keyboardNavigationLabelProvider){var v=c.keyboardNavigationDelegate||V;this.typeNavigationController=new W(this,this.view,c.keyboardNavigationLabelProvider,null!==(l=c.keyboardNavigationEventFilter)&&void 0!==l?l:function(){return!0},v),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(c),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}return(0,d.Z)(e,[{key:"onDidChangeFocus",get:function(){var e=this;return S.ju.map(this.eventBufferer.wrapEvent(this.focus.onChange),(function(t){return e.toListEvent(t)}),this.disposables)}},{key:"onDidChangeSelection",get:function(){var e=this;return S.ju.map(this.eventBufferer.wrapEvent(this.selection.onChange),(function(t){return e.toListEvent(t)}),this.disposables)}},{key:"domId",get:function(){return this.view.domId}},{key:"onMouseClick",get:function(){return this.view.onMouseClick}},{key:"onMouseDblClick",get:function(){return this.view.onMouseDblClick}},{key:"onMouseMiddleClick",get:function(){return this.view.onMouseMiddleClick}},{key:"onPointer",get:function(){return this.mouseController.onPointer}},{key:"onMouseDown",get:function(){return this.view.onMouseDown}},{key:"onMouseOver",get:function(){return this.view.onMouseOver}},{key:"onTouchStart",get:function(){return this.view.onTouchStart}},{key:"onTap",get:function(){return this.view.onTap}},{key:"onContextMenu",get:function(){var e=this,t=!1,n=this.disposables.add(S.ju.chain(this.disposables.add(new f.Y(this.view.domNode,"keydown")).event)).map((function(e){return new p.y(e)})).filter((function(e){return t=58===e.keyCode||e.shiftKey&&68===e.keyCode})).map(f.p).filter((function(){return!1})).event,i=this.disposables.add(S.ju.chain(this.disposables.add(new f.Y(this.view.domNode,"keyup")).event)).forEach((function(){return t=!1})).map((function(e){return new p.y(e)})).filter((function(e){return 58===e.keyCode||e.shiftKey&&68===e.keyCode})).map(f.p).map((function(t){var n=t.browserEvent,i=e.getFocus(),r=i.length?i[0]:void 0;return{index:r,element:"undefined"!==typeof r?e.view.element(r):void 0,anchor:"undefined"!==typeof r?e.view.domElement(r):e.view.domNode,browserEvent:n}})).event,r=this.disposables.add(S.ju.chain(this.view.onContextMenu)).filter((function(e){return!t})).map((function(e){var t=e.element,n=e.index,i=e.browserEvent;return{element:t,index:n,anchor:{x:i.pageX+1,y:i.pageY},browserEvent:i}})).event;return S.ju.any(n,i,r)}},{key:"onKeyDown",get:function(){return this.disposables.add(new f.Y(this.view.domNode,"keydown")).event}},{key:"onDidFocus",get:function(){return S.ju.signal(this.disposables.add(new f.Y(this.view.domNode,"focus",!0)).event)}},{key:"createMouseController",value:function(e){return new q(this)}},{key:"updateOptions",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._options=Object.assign(Object.assign({},this._options),n),null===(e=this.typeNavigationController)||void 0===e||e.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(n),null===(t=this.keyboardController)||void 0===t||t.updateOptions(n),this.view.updateOptions(n)}},{key:"options",get:function(){return this._options}},{key:"splice",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e<0||e>this.view.length)throw new I(this.user,"Invalid start index: ".concat(e));if(t<0)throw new I(this.user,"Invalid delete count: ".concat(t));0===t&&0===i.length||this.eventBufferer.bufferEvents((function(){return n.spliceable.splice(e,t,i)}))}},{key:"rerender",value:function(){this.view.rerender()}},{key:"element",value:function(e){return this.view.element(e)}},{key:"length",get:function(){return this.view.length}},{key:"contentHeight",get:function(){return this.view.contentHeight}},{key:"scrollTop",get:function(){return this.view.getScrollTop()},set:function(e){this.view.setScrollTop(e)}},{key:"ariaLabel",get:function(){return this._ariaLabel},set:function(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}},{key:"domFocus",value:function(){this.view.domNode.focus({preventScroll:!0})}},{key:"layout",value:function(e,t){this.view.layout(e,t)}},{key:"setSelection",value:function(e,t){var n,i=(0,c.Z)(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r<0||r>=this.length)throw new I(this.user,"Invalid index ".concat(r))}}catch(o){i.e(o)}finally{i.f()}this.selection.set(e,t)}},{key:"getSelection",value:function(){return this.selection.get()}},{key:"getSelectedElements",value:function(){var e=this;return this.getSelection().map((function(t){return e.view.element(t)}))}},{key:"setAnchor",value:function(e){if("undefined"!==typeof e){if(e<0||e>=this.length)throw new I(this.user,"Invalid index ".concat(e));this.anchor.set([e])}else this.anchor.set([])}},{key:"getAnchor",value:function(){return(0,y.Xh)(this.anchor.get(),void 0)}},{key:"getAnchorElement",value:function(){var e=this.getAnchor();return"undefined"===typeof e?void 0:this.element(e)}},{key:"setFocus",value:function(e,t){var n,i=(0,c.Z)(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r<0||r>=this.length)throw new I(this.user,"Invalid index ".concat(r))}}catch(o){i.e(o)}finally{i.f()}this.focus.set(e,t)}},{key:"focusNext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(0!==this.length){var r=this.focus.get(),o=this.findNextIndex(r.length>0?r[0]+e:0,t,i);o>-1&&this.setFocus([o],n)}}},{key:"focusPrevious",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(0!==this.length){var r=this.focus.get(),o=this.findPreviousIndex(r.length>0?r[0]-e:0,t,i);o>-1&&this.setFocus([o],n)}}},{key:"focusNextPage",value:function(e,t){return O(this,void 0,void 0,(0,i.Z)().mark((function n(){var r,o,a,s,l;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=0===(r=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight))?0:r-1,(o=this.getFocus()[0])===r||!(void 0===o||r>o)){n.next=8;break}(a=this.findPreviousIndex(r,!1,t))>-1&&o!==a?this.setFocus([a],e):this.setFocus([r],e),n.next=18;break;case 8:if(s=this.view.getScrollTop(),l=s+this.view.renderHeight,r>o&&(l-=this.view.elementHeight(r)),this.view.setScrollTop(l),this.view.getScrollTop()===s){n.next=18;break}return this.setFocus([]),n.next=16,(0,_.Vs)(0);case 16:return n.next=18,this.focusNextPage(e,t);case 18:case"end":return n.stop()}}),n,this)})))}},{key:"focusPreviousPage",value:function(e,t){return O(this,void 0,void 0,(0,i.Z)().mark((function n(){var r,o,a,s,l;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=this.view.getScrollTop(),r=0===o?this.view.indexAt(o):this.view.indexAfter(o-1),(a=this.getFocus()[0])===r||!(void 0===a||a>=r)){n.next=8;break}(s=this.findNextIndex(r,!1,t))>-1&&a!==s?this.setFocus([s],e):this.setFocus([r],e),n.next=16;break;case 8:if(l=o,this.view.setScrollTop(o-this.view.renderHeight),this.view.getScrollTop()===l){n.next=16;break}return this.setFocus([]),n.next=14,(0,_.Vs)(0);case 14:return n.next=16,this.focusPreviousPage(e,t);case 16:case"end":return n.stop()}}),n,this)})))}},{key:"focusLast",value:function(e,t){if(0!==this.length){var n=this.findPreviousIndex(this.length-1,!1,t);n>-1&&this.setFocus([n],e)}}},{key:"focusFirst",value:function(e,t){this.focusNth(0,e,t)}},{key:"focusNth",value:function(e,t,n){if(0!==this.length){var i=this.findNextIndex(e,!1,n);i>-1&&this.setFocus([i],t)}}},{key:"findNextIndex",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i=0;i<this.length;i++){if(e>=this.length&&!t)return-1;if(e%=this.length,!n||n(this.element(e)))return e;e++}return-1}},{key:"findPreviousIndex",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i=0;i<this.length;i++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!n||n(this.element(e)))return e;e--}return-1}},{key:"getFocus",value:function(){return this.focus.get()}},{key:"getFocusedElements",value:function(){var e=this;return this.getFocus().map((function(t){return e.view.element(t)}))}},{key:"reveal",value:function(e,t){if(e<0||e>=this.length)throw new I(this.user,"Invalid index ".concat(e));var n=this.view.getScrollTop(),i=this.view.elementTop(e),r=this.view.elementHeight(e);if((0,N.hj)(t)){var o=r-this.view.renderHeight;this.view.setScrollTop(o*(0,x.uZ)(t,0,1)+i)}else{var a=i+r,s=n+this.view.renderHeight;i<n&&a>=s||(i<n||a>=s&&r>=this.view.renderHeight?this.view.setScrollTop(i):a>=s&&this.view.setScrollTop(a-this.view.renderHeight))}}},{key:"getHTMLElement",value:function(){return this.view.domNode}},{key:"getElementID",value:function(e){return this.view.getElementDomId(e)}},{key:"style",value:function(e){this.styleController.style(e)}},{key:"toListEvent",value:function(e){var t=this,n=e.indexes,i=e.browserEvent;return{indexes:n,elements:n.map((function(e){return t.view.element(e)})),browserEvent:i}}},{key:"_onFocusChange",value:function(){var e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}},{key:"onDidChangeActiveDescendant",value:function(){var e,t,n=this.focus.get();n.length>0?((null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(t=this.accessibilityProvider.getActiveDescendantId(this.view.element(n[0]))),this.view.domNode.setAttribute("aria-activedescendant",t||this.view.getElementDomId(n[0]))):this.view.domNode.removeAttribute("aria-activedescendant")}},{key:"_onSelectionChange",value:function(){var e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}},{key:"dispose",value:function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}]),e}();L([C.H],re.prototype,"onDidChangeFocus",null),L([C.H],re.prototype,"onDidChangeSelection",null),L([C.H],re.prototype,"onContextMenu",null),L([C.H],re.prototype,"onKeyDown",null),L([C.H],re.prototype,"onDidFocus",null)},25022:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var i="monaco-mouse-cursor-text"},24674:function(e,t,n){"use strict";n.d(t,{l:function(){return i},g:function(){return T}});var i,r=n(37762),o=n(97326),a=n(11752),s=n(61120),l=n(60136),c=n(27277),u=n(15671),d=n(43144),h=n(81531),f=n(25425),p=n(81238),g=n(60022),v=n(24030),m=n(73097),y=n(11860),_=n(73616),b=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(i||(i={}));var C=new m.Q5,S=new m.Q5,w=function(){function e(){(0,u.Z)(this,e),this.disposables=new y.SL}return(0,d.Z)(e,[{key:"onPointerMove",get:function(){return this.disposables.add(new f.Y(window,"mousemove")).event}},{key:"onPointerUp",get:function(){return this.disposables.add(new f.Y(window,"mouseup")).event}},{key:"dispose",value:function(){this.disposables.dispose()}}]),e}();b([v.H],w.prototype,"onPointerMove",null),b([v.H],w.prototype,"onPointerUp",null);var k=function(){function e(t){(0,u.Z)(this,e),this.el=t,this.disposables=new y.SL}return(0,d.Z)(e,[{key:"onPointerMove",get:function(){return this.disposables.add(new f.Y(this.el,p.t.Change)).event}},{key:"onPointerUp",get:function(){return this.disposables.add(new f.Y(this.el,p.t.End)).event}},{key:"dispose",value:function(){this.disposables.dispose()}}]),e}();b([v.H],k.prototype,"onPointerMove",null),b([v.H],k.prototype,"onPointerUp",null);var x=function(){function e(t){(0,u.Z)(this,e),this.factory=t}return(0,d.Z)(e,[{key:"onPointerMove",get:function(){return this.factory.onPointerMove}},{key:"onPointerUp",get:function(){return this.factory.onPointerUp}},{key:"dispose",value:function(){}}]),e}();b([v.H],x.prototype,"onPointerMove",null),b([v.H],x.prototype,"onPointerUp",null);var E="pointer-events-disabled",T=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r){var a;(0,u.Z)(this,n),(a=t.call(this)).hoverDelay=300,a.hoverDelayer=a._register(new g.vp(a.hoverDelay)),a._state=3,a.onDidEnablementChange=a._register(new m.Q5),a._onDidStart=a._register(new m.Q5),a._onDidChange=a._register(new m.Q5),a._onDidReset=a._register(new m.Q5),a._onDidEnd=a._register(new m.Q5),a.orthogonalStartSashDisposables=a._register(new y.SL),a.orthogonalStartDragHandleDisposables=a._register(new y.SL),a.orthogonalEndSashDisposables=a._register(new y.SL),a.orthogonalEndDragHandleDisposables=a._register(new y.SL),a.onDidStart=a._onDidStart.event,a.onDidChange=a._onDidChange.event,a.onDidReset=a._onDidReset.event,a.onDidEnd=a._onDidEnd.event,a.linkedSash=void 0,a.el=(0,h.append)(e,(0,h.$)(".monaco-sash")),r.orthogonalEdge&&a.el.classList.add("orthogonal-edge-".concat(r.orthogonalEdge)),_.dz&&a.el.classList.add("mac");var s=a._register(new f.Y(a.el,"mousedown")).event;a._register(s((function(e){return a.onPointerStart(e,new w)}),(0,o.Z)(a)));var l=a._register(new f.Y(a.el,"dblclick")).event;a._register(l(a.onPointerDoublePress,(0,o.Z)(a)));var c=a._register(new f.Y(a.el,"mouseenter")).event;a._register(c((function(){return n.onMouseEnter((0,o.Z)(a))})));var d=a._register(new f.Y(a.el,"mouseleave")).event;a._register(d((function(){return n.onMouseLeave((0,o.Z)(a))}))),a._register(p.o.addTarget(a.el));var v=m.ju.map(a._register(new f.Y(a.el,p.t.Start)).event,(function(e){var t;return Object.assign(Object.assign({},e),{target:null!==(t=e.initialTarget)&&void 0!==t?t:null})}));a._register(v((function(e){return a.onPointerStart(e,new k(a.el))}),(0,o.Z)(a)));var b=a._register(new f.Y(a.el,p.t.Tap)).event,x=m.ju.map(m.ju.filter(m.ju.debounce(b,(function(e,t){var n;return{event:t,count:(null!==(n=null===e||void 0===e?void 0:e.count)&&void 0!==n?n:0)+1}}),250),(function(e){return 2===e.count})),(function(e){var t,n=e.event;return Object.assign(Object.assign({},n),{target:null!==(t=n.initialTarget)&&void 0!==t?t:null})}));return a._register(x(a.onPointerDoublePress,(0,o.Z)(a))),"number"===typeof r.size?(a.size=r.size,0===r.orientation?a.el.style.width="".concat(a.size,"px"):a.el.style.height="".concat(a.size,"px")):(a.size=4,a._register(C.event((function(e){a.size=e,a.layout()})))),a._register(S.event((function(e){return a.hoverDelay=e}))),a.layoutProvider=i,a.orthogonalStartSash=r.orthogonalStartSash,a.orthogonalEndSash=r.orthogonalEndSash,a.orientation=r.orientation||0,1===a.orientation?(a.el.classList.add("horizontal"),a.el.classList.remove("vertical")):(a.el.classList.remove("horizontal"),a.el.classList.add("vertical")),a.el.classList.toggle("debug",false),a.layout(),a}return(0,d.Z)(n,[{key:"state",get:function(){return this._state},set:function(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e))}},{key:"orthogonalStartSash",get:function(){return this._orthogonalStartSash},set:function(e){var t=this;if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){var i=function(i){t.orthogonalStartDragHandleDisposables.clear(),0!==i&&(t._orthogonalStartDragHandle=(0,h.append)(t.el,(0,h.$)(".orthogonal-drag-handle.start")),t.orthogonalStartDragHandleDisposables.add((0,y.OF)((function(){return t._orthogonalStartDragHandle.remove()}))),t.orthogonalStartDragHandleDisposables.add(new f.Y(t._orthogonalStartDragHandle,"mouseenter")).event((function(){return n.onMouseEnter(e)}),void 0,t.orthogonalStartDragHandleDisposables),t.orthogonalStartDragHandleDisposables.add(new f.Y(t._orthogonalStartDragHandle,"mouseleave")).event((function(){return n.onMouseLeave(e)}),void 0,t.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(i,this)),i(e.state)}this._orthogonalStartSash=e}},{key:"orthogonalEndSash",get:function(){return this._orthogonalEndSash},set:function(e){var t=this;if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){var i=function(i){t.orthogonalEndDragHandleDisposables.clear(),0!==i&&(t._orthogonalEndDragHandle=(0,h.append)(t.el,(0,h.$)(".orthogonal-drag-handle.end")),t.orthogonalEndDragHandleDisposables.add((0,y.OF)((function(){return t._orthogonalEndDragHandle.remove()}))),t.orthogonalEndDragHandleDisposables.add(new f.Y(t._orthogonalEndDragHandle,"mouseenter")).event((function(){return n.onMouseEnter(e)}),void 0,t.orthogonalEndDragHandleDisposables),t.orthogonalEndDragHandleDisposables.add(new f.Y(t._orthogonalEndDragHandle,"mouseleave")).event((function(){return n.onMouseLeave(e)}),void 0,t.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(i,this)),i(e.state)}this._orthogonalEndSash=e}},{key:"onPointerStart",value:function(e,t){var n=this;h.EventHelper.stop(e);var i=!1;if(!e.__orthogonalSashEvent){var o=this.getOrthogonalSash(e);o&&(i=!0,e.__orthogonalSashEvent=!0,o.onPointerStart(e,new x(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new x(t))),this.state){var a,s=(0,h.getElementsByTagName)("iframe"),l=(0,r.Z)(s);try{for(l.s();!(a=l.n()).done;){a.value.classList.add(E)}}catch(m){l.e(m)}finally{l.f()}var c=e.pageX,u=e.pageY,d=e.altKey,f={startX:c,currentX:c,startY:u,currentY:u,altKey:d};this.el.classList.add("active"),this._onDidStart.fire(f);var p=(0,h.createStyleSheet)(this.el),g=function(){var e="";e=i?"all-scroll":1===n.orientation?1===n.state?"s-resize":2===n.state?"n-resize":_.dz?"row-resize":"ns-resize":1===n.state?"e-resize":2===n.state?"w-resize":_.dz?"col-resize":"ew-resize",p.textContent="* { cursor: ".concat(e," !important; }")},v=new y.SL;g(),i||this.onDidEnablementChange.event(g,null,v);t.onPointerMove((function(e){h.EventHelper.stop(e,!1);var t={startX:c,currentX:e.pageX,startY:u,currentY:e.pageY,altKey:d};n._onDidChange.fire(t)}),null,v),t.onPointerUp((function(e){h.EventHelper.stop(e,!1),n.el.removeChild(p),n.el.classList.remove("active"),n._onDidEnd.fire(),v.dispose();var t,i=(0,r.Z)(s);try{for(i.s();!(t=i.n()).done;){t.value.classList.remove(E)}}catch(m){i.e(m)}finally{i.f()}}),null,v),v.add(t)}}},{key:"onPointerDoublePress",value:function(e){var t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}},{key:"clearSashHoverState",value:function(){n.onMouseLeave(this)}},{key:"layout",value:function(){if(0===this.orientation){var e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{var t=this.layoutProvider;this.el.style.top=t.getHorizontalSashTop(this)-this.size/2+"px",t.getHorizontalSashLeft&&(this.el.style.left=t.getHorizontalSashLeft(this)+"px"),t.getHorizontalSashWidth&&(this.el.style.width=t.getHorizontalSashWidth(this)+"px")}}},{key:"getOrthogonalSash",value:function(e){if(e.target&&e.target instanceof HTMLElement)return e.target.classList.contains("orthogonal-drag-handle")?e.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}},{key:"dispose",value:function(){(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this),this.el.remove()}}],[{key:"onMouseEnter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((function(){return e.el.classList.add("hover")}),e.hoverDelay).then(void 0,(function(){})),!t&&e.linkedSash&&n.onMouseEnter(e.linkedSash,!0)}},{key:"onMouseLeave",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&n.onMouseLeave(e.linkedSash,!0)}}]),n}(y.JT)},27338:function(e,t,n){"use strict";n.d(t,{s$:function(){return A},NB:function(){return O},$Z:function(){return R}});var i=n(11752),r=n(61120),o=n(60136),a=n(27277),s=n(43144),l=n(15671),c=n(62865),u=n(81531),d=n(25652),h=n(2524),f=n(1082),p=n(93433),g=n(70176),v=n(60022),m=11,y=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i,r;return(0,l.Z)(this,n),(r=t.call(this))._onActivate=e.onActivate,r.bgDomNode=document.createElement("div"),r.bgDomNode.className="arrow-background",r.bgDomNode.style.position="absolute",r.bgDomNode.style.width=e.bgWidth+"px",r.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(r.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(r.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(r.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(r.bgDomNode.style.right="0px"),r.domNode=document.createElement("div"),r.domNode.className=e.className,(i=r.domNode.classList).add.apply(i,(0,p.Z)(e.icon.classNamesArray)),r.domNode.style.position="absolute",r.domNode.style.width="11px",r.domNode.style.height="11px","undefined"!==typeof e.top&&(r.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(r.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(r.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(r.domNode.style.right=e.right+"px"),r._pointerMoveMonitor=r._register(new f.C),r._register(u.addStandardDisposableListener(r.bgDomNode,u.EventType.POINTER_DOWN,(function(e){return r._arrowPointerDown(e)}))),r._register(u.addStandardDisposableListener(r.domNode,u.EventType.POINTER_DOWN,(function(e){return r._arrowPointerDown(e)}))),r._pointerdownRepeatTimer=r._register(new v.zh),r._pointerdownScheduleRepeatTimer=r._register(new v._F),r}return(0,s.Z)(n,[{key:"_arrowPointerDown",value:function(e){var t=this;if(e.target&&e.target instanceof Element){this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet((function(){t._pointerdownRepeatTimer.cancelAndSet((function(){return t._onActivate()}),1e3/24)}),200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(function(e){}),(function(){t._pointerdownRepeatTimer.cancel(),t._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault()}}}]),n}(g.$),_=n(11860),b=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this))._visibility=e,o._visibleClassName=i,o._invisibleClassName=r,o._domNode=null,o._isVisible=!1,o._isNeeded=!1,o._rawShouldBeVisible=!1,o._shouldBeVisible=!1,o._revealTimer=o._register(new v._F),o}return(0,s.Z)(n,[{key:"setVisibility",value:function(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}},{key:"setShouldBeVisible",value:function(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}},{key:"_applyVisibilitySetting",value:function(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}},{key:"_updateShouldBeVisible",value:function(){var e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}},{key:"setIsNeeded",value:function(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}},{key:"setDomNode",value:function(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}},{key:"ensureVisibility",value:function(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}},{key:"_reveal",value:function(){var e=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((function(){var t;null===(t=e._domNode)||void 0===t||t.setClassName(e._visibleClassName)}),0))}},{key:"_hide",value:function(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,null===(t=this._domNode)||void 0===t||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}]),n}(_.JT),C=n(73616),S=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,l.Z)(this,n),(i=t.call(this))._lazyRender=e.lazyRender,i._host=e.host,i._scrollable=e.scrollable,i._scrollByPage=e.scrollByPage,i._scrollbarState=e.scrollbarState,i._visibilityController=i._register(new b(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),i._visibilityController.setIsNeeded(i._scrollbarState.isNeeded()),i._pointerMoveMonitor=i._register(new f.C),i._shouldRender=!0,i.domNode=(0,d.X)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i._visibilityController.setDomNode(i.domNode),i.domNode.setPosition("absolute"),i._register(u.addDisposableListener(i.domNode.domNode,u.EventType.POINTER_DOWN,(function(e){return i._domNodePointerDown(e)}))),i}return(0,s.Z)(n,[{key:"_createArrow",value:function(e){var t=this._register(new y(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}},{key:"_createSlider",value:function(e,t,n,i){var r=this;this.slider=(0,d.X)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof n&&this.slider.setWidth(n),"number"===typeof i&&this.slider.setHeight(i),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(u.addDisposableListener(this.slider.domNode,u.EventType.POINTER_DOWN,(function(e){0===e.button&&(e.preventDefault(),r._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(function(e){e.leftButton&&e.stopPropagation()}))}},{key:"_onElementSize",value:function(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}},{key:"_onElementScrollSize",value:function(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}},{key:"_onElementScrollPosition",value:function(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}},{key:"beginReveal",value:function(){this._visibilityController.setShouldBeVisible(!0)}},{key:"beginHide",value:function(){this._visibilityController.setShouldBeVisible(!1)}},{key:"render",value:function(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}},{key:"_domNodePointerDown",value:function(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}},{key:"delegatePointerDown",value:function(e){var t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),i=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),r=this._sliderPointerPosition(e);n<=r&&r<=i?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}},{key:"_onPointerDown",value:function(e){var t,n;if(e.target===this.domNode.domNode&&"number"===typeof e.offsetX&&"number"===typeof e.offsetY)t=e.offsetX,n=e.offsetY;else{var i=u.getDomNodePagePosition(this.domNode.domNode);t=e.pageX-i.left,n=e.pageY-i.top}var r=this._pointerDownRelativePosition(t,n);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(r):this._scrollbarState.getDesiredScrollPositionFromOffset(r)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}},{key:"_sliderPointerDown",value:function(e){var t=this;if(e.target&&e.target instanceof Element){var n=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(function(e){var o=t._sliderOrthogonalPointerPosition(e),a=Math.abs(o-i);if(C.ED&&a>140)t._setDesiredScrollPositionNow(r.getScrollPosition());else{var s=t._sliderPointerPosition(e)-n;t._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(s))}}),(function(){t.slider.toggleClassName("active",!1),t._host.onDragEnd()})),this._host.onDragStart()}}},{key:"_setDesiredScrollPositionNow",value:function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}},{key:"updateScrollbarSize",value:function(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}},{key:"isNeeded",value:function(){return this._scrollbarState.isNeeded()}}]),n}(g.$),w=function(){function e(t,n,i,r,o,a){(0,l.Z)(this,e),this._scrollbarSize=Math.round(n),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(t),this._visibleSize=r,this._scrollSize=o,this._scrollPosition=a,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return(0,s.Z)(e,[{key:"clone",value:function(){return new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}},{key:"setVisibleSize",value:function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}},{key:"setScrollSize",value:function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}},{key:"setScrollPosition",value:function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}},{key:"setScrollbarSize",value:function(e){this._scrollbarSize=Math.round(e)}},{key:"setOppositeScrollbarSize",value:function(e){this._oppositeScrollbarSize=Math.round(e)}},{key:"_refreshComputedValues",value:function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition}},{key:"getArrowSize",value:function(){return this._arrowSize}},{key:"getScrollPosition",value:function(){return this._scrollPosition}},{key:"getRectangleLargeSize",value:function(){return this._computedAvailableSize}},{key:"getRectangleSmallSize",value:function(){return this._scrollbarSize}},{key:"isNeeded",value:function(){return this._computedIsNeeded}},{key:"getSliderSize",value:function(){return this._computedSliderSize}},{key:"getSliderPosition",value:function(){return this._computedSliderPosition}},{key:"getDesiredScrollPositionFromOffset",value:function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}},{key:"getDesiredScrollPositionFromOffsetPaged",value:function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize,n=this._scrollPosition;return t<this._computedSliderPosition?n-=this._visibleSize:n+=this._visibleSize,n}},{key:"getDesiredScrollPositionFromDelta",value:function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}}],[{key:"_computeValues",value:function(e,t,n,i,r){var o=Math.max(0,n-e),a=Math.max(0,o-2*t),s=i>0&&i>n;if(!s)return{computedAvailableSize:Math.round(o),computedIsNeeded:s,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};var l=Math.round(Math.max(20,Math.floor(n*a/i))),c=(a-l)/(i-n),u=r*c;return{computedAvailableSize:Math.round(o),computedIsNeeded:s,computedSliderSize:Math.round(l),computedSliderRatio:c,computedSliderPosition:Math.round(u)}}}]),e}(),k=n(2801),x=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r){var o;(0,l.Z)(this,n);var a=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(o=t.call(this,{lazyRender:i.lazyRender,host:r,scrollbarState:new w(i.horizontalHasArrows?i.arrowSize:0,2===i.horizontal?0:i.horizontalScrollbarSize,2===i.vertical?0:i.verticalScrollbarSize,a.width,a.scrollWidth,s.scrollLeft),visibility:i.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:i.scrollByPage}),i.horizontalHasArrows){var c=(i.arrowSize-m)/2,u=(i.horizontalScrollbarSize-m)/2;o._createArrow({className:"scra",icon:k.lA.scrollbarButtonLeft,top:u,left:c,bottom:void 0,right:void 0,bgWidth:i.arrowSize,bgHeight:i.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new h.q(null,1,0))}}),o._createArrow({className:"scra",icon:k.lA.scrollbarButtonRight,top:u,left:void 0,bottom:void 0,right:c,bgWidth:i.arrowSize,bgHeight:i.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new h.q(null,-1,0))}})}return o._createSlider(Math.floor((i.horizontalScrollbarSize-i.horizontalSliderSize)/2),0,void 0,i.horizontalSliderSize),o}return(0,s.Z)(n,[{key:"_updateSlider",value:function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}},{key:"_renderDomNode",value:function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}},{key:"onDidScroll",value:function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}},{key:"_pointerDownRelativePosition",value:function(e,t){return e}},{key:"_sliderPointerPosition",value:function(e){return e.pageX}},{key:"_sliderOrthogonalPointerPosition",value:function(e){return e.pageY}},{key:"_updateScrollbarSize",value:function(e){this.slider.setHeight(e)}},{key:"writeScrollPosition",value:function(e,t){e.scrollLeft=t}},{key:"updateOptions",value:function(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}]),n}(S),E=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r){var o;(0,l.Z)(this,n);var a=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(o=t.call(this,{lazyRender:i.lazyRender,host:r,scrollbarState:new w(i.verticalHasArrows?i.arrowSize:0,2===i.vertical?0:i.verticalScrollbarSize,0,a.height,a.scrollHeight,s.scrollTop),visibility:i.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:i.scrollByPage}),i.verticalHasArrows){var c=(i.arrowSize-m)/2,u=(i.verticalScrollbarSize-m)/2;o._createArrow({className:"scra",icon:k.lA.scrollbarButtonUp,top:c,left:u,bottom:void 0,right:void 0,bgWidth:i.verticalScrollbarSize,bgHeight:i.arrowSize,onActivate:function(){return o._host.onMouseWheel(new h.q(null,0,1))}}),o._createArrow({className:"scra",icon:k.lA.scrollbarButtonDown,top:void 0,left:u,bottom:c,right:void 0,bgWidth:i.verticalScrollbarSize,bgHeight:i.arrowSize,onActivate:function(){return o._host.onMouseWheel(new h.q(null,0,-1))}})}return o._createSlider(0,Math.floor((i.verticalScrollbarSize-i.verticalSliderSize)/2),i.verticalSliderSize,void 0),o}return(0,s.Z)(n,[{key:"_updateSlider",value:function(e,t){this.slider.setHeight(e),this.slider.setTop(t)}},{key:"_renderDomNode",value:function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}},{key:"onDidScroll",value:function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}},{key:"_pointerDownRelativePosition",value:function(e,t){return t}},{key:"_sliderPointerPosition",value:function(e){return e.pageY}},{key:"_sliderOrthogonalPointerPosition",value:function(e){return e.pageX}},{key:"_updateScrollbarSize",value:function(e){this.slider.setWidth(e)}},{key:"writeScrollPosition",value:function(e,t){e.scrollTop=t}},{key:"updateOptions",value:function(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}]),n}(S),T=n(73097),N=n(57970),I=(0,s.Z)((function e(t,n,i){(0,l.Z)(this,e),this.timestamp=t,this.deltaX=n,this.deltaY=i,this.score=0})),D=function(){function e(){(0,l.Z)(this,e),this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return(0,s.Z)(e,[{key:"isPhysicalMouseWheel",value:function(){if(-1===this._front&&-1===this._rear)return!1;for(var e=1,t=0,n=1,i=this._rear;;){var r=i===this._front?e:Math.pow(2,-n);if(e-=r,t+=this._memory[i].score*r,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++}return t<=.5}},{key:"accept",value:function(e,t,n){var i=new I(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i)}},{key:"_computeScore",value:function(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;var t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(t+=.25),Math.min(Math.max(t,0),1)}},{key:"_isAlmostInt",value:function(e){return Math.abs(Math.round(e)-e)<.01}}]),e}();D.INSTANCE=new D;var L=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r){var o;(0,l.Z)(this,n),(o=t.call(this))._onScroll=o._register(new T.Q5),o.onScroll=o._onScroll.event,o._onWillScroll=o._register(new T.Q5),e.style.overflow="hidden",o._options=function(e){var t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,C.dz&&(t.className+=" mac");return t}(i),o._scrollable=r,o._register(o._scrollable.onScroll((function(e){o._onWillScroll.fire(e),o._onDidScroll(e),o._onScroll.fire(e)})));var a={onMouseWheel:function(e){return o._onMouseWheel(e)},onDragStart:function(){return o._onDragStart()},onDragEnd:function(){return o._onDragEnd()}};return o._verticalScrollbar=o._register(new E(o._scrollable,o._options,a)),o._horizontalScrollbar=o._register(new x(o._scrollable,o._options,a)),o._domNode=document.createElement("div"),o._domNode.className="monaco-scrollable-element "+o._options.className,o._domNode.setAttribute("role","presentation"),o._domNode.style.position="relative",o._domNode.style.overflow="hidden",o._domNode.appendChild(e),o._domNode.appendChild(o._horizontalScrollbar.domNode.domNode),o._domNode.appendChild(o._verticalScrollbar.domNode.domNode),o._options.useShadows?(o._leftShadowDomNode=(0,d.X)(document.createElement("div")),o._leftShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._leftShadowDomNode.domNode),o._topShadowDomNode=(0,d.X)(document.createElement("div")),o._topShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._topShadowDomNode.domNode),o._topLeftShadowDomNode=(0,d.X)(document.createElement("div")),o._topLeftShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._topLeftShadowDomNode.domNode)):(o._leftShadowDomNode=null,o._topShadowDomNode=null,o._topLeftShadowDomNode=null),o._listenOnDomNode=o._options.listenOnDomNode||o._domNode,o._mouseWheelToDispose=[],o._setListeningToMouseWheel(o._options.handleMouseWheel),o.onmouseover(o._listenOnDomNode,(function(e){return o._onMouseOver(e)})),o.onmouseleave(o._listenOnDomNode,(function(e){return o._onMouseLeave(e)})),o._hideTimeout=o._register(new v._F),o._isDragging=!1,o._mouseIsOver=!1,o._shouldRender=!0,o._revealOnScroll=!0,o}return(0,s.Z)(n,[{key:"options",get:function(){return this._options}},{key:"dispose",value:function(){this._mouseWheelToDispose=(0,_.B9)(this._mouseWheelToDispose),(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this)}},{key:"getDomNode",value:function(){return this._domNode}},{key:"getOverviewRulerLayoutInfo",value:function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}},{key:"delegateVerticalScrollbarPointerDown",value:function(e){this._verticalScrollbar.delegatePointerDown(e)}},{key:"getScrollDimensions",value:function(){return this._scrollable.getScrollDimensions()}},{key:"setScrollDimensions",value:function(e){this._scrollable.setScrollDimensions(e,!1)}},{key:"updateClassName",value:function(e){this._options.className=e,C.dz&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}},{key:"updateOptions",value:function(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}},{key:"_setListeningToMouseWheel",value:function(e){var t=this;if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,_.B9)(this._mouseWheelToDispose),e)){this._mouseWheelToDispose.push(u.addDisposableListener(this._listenOnDomNode,u.EventType.MOUSE_WHEEL,(function(e){t._onMouseWheel(new h.q(e))}),{passive:!1}))}}},{key:"_onMouseWheel",value:function(e){var t=D.INSTANCE,n=window.devicePixelRatio/(0,c.getZoomFactor)();C.ED||C.IJ?t.accept(Date.now(),e.deltaX/n,e.deltaY/n):t.accept(Date.now(),e.deltaX,e.deltaY);var i=!1;if(e.deltaY||e.deltaX){var r=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;if(this._options.scrollPredominantAxis&&(Math.abs(r)>=Math.abs(o)?o=0:r=0),this._options.flipAxes){var a=[o,r];r=a[0],o=a[1]}var s=!C.dz&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!s||o||(o=r,r=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,r*=this._options.fastScrollSensitivity);var l=this._scrollable.getFutureScrollPosition(),u={};if(r){var d=50*r,h=l.scrollTop-(d<0?Math.floor(d):Math.ceil(d));this._verticalScrollbar.writeScrollPosition(u,h)}if(o){var f=50*o,p=l.scrollLeft-(f<0?Math.floor(f):Math.ceil(f));this._horizontalScrollbar.writeScrollPosition(u,p)}if(u=this._scrollable.validateScrollPosition(u),l.scrollLeft!==u.scrollLeft||l.scrollTop!==u.scrollTop)this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(u):this._scrollable.setScrollPositionNow(u),i=!0}var g=i;!g&&this._options.alwaysConsumeMouseWheel&&(g=!0),!g&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(g=!0),g&&(e.preventDefault(),e.stopPropagation())}},{key:"_onDidScroll",value:function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}},{key:"renderNow",value:function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}},{key:"_render",value:function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0,i=n?" left":"",r=t?" top":"",o=n||t?" top-left-corner":"";this._leftShadowDomNode.setClassName("shadow".concat(i)),this._topShadowDomNode.setClassName("shadow".concat(r)),this._topLeftShadowDomNode.setClassName("shadow".concat(o).concat(r).concat(i))}}},{key:"_onDragStart",value:function(){this._isDragging=!0,this._reveal()}},{key:"_onDragEnd",value:function(){this._isDragging=!1,this._hide()}},{key:"_onMouseLeave",value:function(e){this._mouseIsOver=!1,this._hide()}},{key:"_onMouseOver",value:function(e){this._mouseIsOver=!0,this._reveal()}},{key:"_reveal",value:function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}},{key:"_hide",value:function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}},{key:"_scheduleHide",value:function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((function(){return e._hide()}),500)}}]),n}(g.$),O=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var r;(0,l.Z)(this,n),(i=i||{}).mouseWheelSmoothScroll=!1;var o=new N.Rm({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:function(e){return u.scheduleAtNextAnimationFrame(e)}});return(r=t.call(this,e,i,o))._register(o),r}return(0,s.Z)(n,[{key:"setScrollPosition",value:function(e){this._scrollable.setScrollPositionNow(e)}}]),n}(L),R=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r){return(0,l.Z)(this,n),t.call(this,e,i,r)}return(0,s.Z)(n,[{key:"setScrollPosition",value:function(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}},{key:"getScrollPosition",value:function(){return this._scrollable.getCurrentScrollPosition()}}]),n}(L),A=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var r;(0,l.Z)(this,n),(i=i||{}).mouseWheelSmoothScroll=!1;var o=new N.Rm({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:function(e){return u.scheduleAtNextAnimationFrame(e)}});return(r=t.call(this,e,i,o))._register(o),r._element=e,r.onScroll((function(e){e.scrollTopChanged&&(r._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(r._element.scrollLeft=e.scrollLeft)})),r.scanDomNode(),r}return(0,s.Z)(n,[{key:"setScrollPosition",value:function(e){this._scrollable.setScrollPositionNow(e)}},{key:"getScrollPosition",value:function(){return this._scrollable.getCurrentScrollPosition()}},{key:"scanDomNode",value:function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}]),n}(L)},9344:function(e,t,n){"use strict";n.d(t,{M:function(){return r},z:function(){return T}});var i,r,o=n(93433),a=n(37762),s=n(11752),l=n(61120),c=n(60136),u=n(27277),d=n(15671),h=n(43144),f=n(81531),p=n(24674),g=n(27338),v=n(29671),m=n(62458),y=n(73097),_=n(11860),b=n(53710),C=n(57970),S=n(85294),w={separatorBorder:m.Il.transparent},k=function(){function e(t,n,i,r){(0,d.Z)(this,e),this.container=t,this.view=n,this.disposable=r,this._cachedVisibleSize=void 0,"number"===typeof i?(this._size=i,this._cachedVisibleSize=void 0,t.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}return(0,h.Z)(e,[{key:"size",get:function(){return this._size},set:function(e){this._size=e}},{key:"visible",get:function(){return"undefined"===typeof this._cachedVisibleSize}},{key:"setVisible",value:function(e,t){var n,i;e!==this.visible&&(e?(this.size=(0,b.uZ)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"===typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e),null===(i=(n=this.view).setVisible)||void 0===i||i.call(n,e))}},{key:"minimumSize",get:function(){return this.visible?this.view.minimumSize:0}},{key:"viewMinimumSize",get:function(){return this.view.minimumSize}},{key:"maximumSize",get:function(){return this.visible?this.view.maximumSize:0}},{key:"viewMaximumSize",get:function(){return this.view.maximumSize}},{key:"priority",get:function(){return this.view.priority}},{key:"snap",get:function(){return!!this.view.snap}},{key:"enabled",set:function(e){this.container.style.pointerEvents=e?"":"none"}},{key:"layout",value:function(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}},{key:"dispose",value:function(){return this.disposable.dispose(),this.view}}]),e}(),x=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n,[{key:"layoutContainer",value:function(e){this.container.style.top="".concat(e,"px"),this.container.style.height="".concat(this.size,"px")}}]),n}(k),E=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n,[{key:"layoutContainer",value:function(e){this.container.style.left="".concat(e,"px"),this.container.style.width="".concat(this.size,"px")}}]),n}(k);!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(i||(i={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(r||(r={}));var T=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var r,o,a,s,l,c,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,d.Z)(this,n),(r=t.call(this)).size=0,r.contentSize=0,r.proportions=void 0,r.viewItems=[],r.sashItems=[],r.state=i.Idle,r._onDidSashChange=r._register(new y.Q5),r._onDidSashReset=r._register(new y.Q5),r._startSnappingEnabled=!0,r._endSnappingEnabled=!0,r.onDidSashChange=r._onDidSashChange.event,r.onDidSashReset=r._onDidSashReset.event,r.orientation=null!==(o=u.orientation)&&void 0!==o?o:0,r.inverseAltBehavior=null!==(a=u.inverseAltBehavior)&&void 0!==a&&a,r.proportionalLayout=null===(s=u.proportionalLayout)||void 0===s||s,r.getSashOrthogonalSize=u.getSashOrthogonalSize,r.el=document.createElement("div"),r.el.classList.add("monaco-split-view2"),r.el.classList.add(0===r.orientation?"vertical":"horizontal"),e.appendChild(r.el),r.sashContainer=(0,f.append)(r.el,(0,f.$)(".sash-container")),r.viewContainer=(0,f.$)(".split-view-container"),r.scrollable=new C.Rm({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:f.scheduleAtNextAnimationFrame}),r.scrollableElement=r._register(new g.$Z(r.viewContainer,{vertical:0===r.orientation?null!==(l=u.scrollbarVisibility)&&void 0!==l?l:1:2,horizontal:1===r.orientation?null!==(c=u.scrollbarVisibility)&&void 0!==c?c:1:2},r.scrollable)),r.onDidScroll=r.scrollableElement.onScroll,r._register(r.onDidScroll((function(e){r.viewContainer.scrollTop=e.scrollTop,r.viewContainer.scrollLeft=e.scrollLeft}))),(0,f.append)(r.el,r.scrollableElement.getDomNode()),r.style(u.styles||w),u.descriptor&&(r.size=u.descriptor.size,u.descriptor.views.forEach((function(e,t){var n=S.o8(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},i=e.view;r.doAddView(i,n,t,!0)})),r.contentSize=r.viewItems.reduce((function(e,t){return e+t.size}),0),r.saveProportions()),r}return(0,h.Z)(n,[{key:"orthogonalStartSash",get:function(){return this._orthogonalStartSash},set:function(e){var t,n=(0,a.Z)(this.sashItems);try{for(n.s();!(t=n.n()).done;){t.value.sash.orthogonalStartSash=e}}catch(i){n.e(i)}finally{n.f()}this._orthogonalStartSash=e}},{key:"orthogonalEndSash",get:function(){return this._orthogonalEndSash},set:function(e){var t,n=(0,a.Z)(this.sashItems);try{for(n.s();!(t=n.n()).done;){t.value.sash.orthogonalEndSash=e}}catch(i){n.e(i)}finally{n.f()}this._orthogonalEndSash=e}},{key:"startSnappingEnabled",get:function(){return this._startSnappingEnabled},set:function(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}},{key:"endSnappingEnabled",get:function(){return this._endSnappingEnabled},set:function(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}},{key:"style",value:function(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}},{key:"addView",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.viewItems.length,i=arguments.length>3?arguments[3]:void 0;this.doAddView(e,t,n,i)}},{key:"layout",value:function(e,t){var n=this,i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(var r=0;r<this.viewItems.length;r++){var o=this.viewItems[r];o.size=(0,b.uZ)(Math.round(this.proportions[r]*e),o.minimumSize,o.maximumSize)}else{var a=(0,v.w6)(this.viewItems.length),s=a.filter((function(e){return 1===n.viewItems[e].priority})),l=a.filter((function(e){return 2===n.viewItems[e].priority}));this.resize(this.viewItems.length-1,e-i,void 0,s,l)}this.distributeEmptySpace(),this.layoutViews()}},{key:"saveProportions",value:function(){var e=this;this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map((function(t){return t.size/e.contentSize})))}},{key:"onSashStart",value:function(e){var t,n=this,i=e.sash,r=e.start,o=e.alt,s=(0,a.Z)(this.viewItems);try{for(s.s();!(t=s.n()).done;){t.value.enabled=!1}}catch(d){s.e(d)}finally{s.f()}var l=this.sashItems.findIndex((function(e){return e.sash===i})),c=(0,_.F8)((0,f.addDisposableListener)(document.body,"keydown",(function(e){return u(n.sashDragState.current,e.altKey)})),(0,f.addDisposableListener)(document.body,"keyup",(function(){return u(n.sashDragState.current,!1)}))),u=function(e,t){var i,r,o=n.viewItems.map((function(e){return e.size})),a=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY;if(n.inverseAltBehavior&&(t=!t),t)if(l===n.sashItems.length-1){var u=n.viewItems[l];a=(u.minimumSize-u.size)/2,s=(u.maximumSize-u.size)/2}else{var d=n.viewItems[l+1];a=(d.size-d.maximumSize)/2,s=(d.size-d.minimumSize)/2}if(!t){var h=(0,v.w6)(l,-1),f=(0,v.w6)(l+1,n.viewItems.length),p=h.reduce((function(e,t){return e+(n.viewItems[t].minimumSize-o[t])}),0),g=h.reduce((function(e,t){return e+(n.viewItems[t].viewMaximumSize-o[t])}),0),m=0===f.length?Number.POSITIVE_INFINITY:f.reduce((function(e,t){return e+(o[t]-n.viewItems[t].minimumSize)}),0),y=0===f.length?Number.NEGATIVE_INFINITY:f.reduce((function(e,t){return e+(o[t]-n.viewItems[t].viewMaximumSize)}),0),_=Math.max(p,y),b=Math.min(m,g),C=n.findFirstSnapIndex(h),S=n.findFirstSnapIndex(f);if("number"===typeof C){var w=n.viewItems[C],k=Math.floor(w.viewMinimumSize/2);i={index:C,limitDelta:w.visible?_-k:_+k,size:w.size}}if("number"===typeof S){var x=n.viewItems[S],E=Math.floor(x.viewMinimumSize/2);r={index:S,limitDelta:x.visible?b+E:b-E,size:x.size}}}n.sashDragState={start:e,current:e,index:l,sizes:o,minDelta:a,maxDelta:s,alt:t,snapBefore:i,snapAfter:r,disposable:c}};u(r,o)}},{key:"onSashChange",value:function(e){var t=e.current,n=this.sashDragState,i=n.index,r=n.start,o=n.sizes,a=n.alt,s=n.minDelta,l=n.maxDelta,c=n.snapBefore,u=n.snapAfter;this.sashDragState.current=t;var d=t-r,h=this.resize(i,d,o,void 0,void 0,s,l,c,u);if(a){var f=i===this.sashItems.length-1,p=this.viewItems.map((function(e){return e.size})),g=f?i:i+1,v=this.viewItems[g],m=v.size-v.maximumSize,y=v.size-v.minimumSize,_=f?i-1:i+1;this.resize(_,-h,p,void 0,void 0,m,y)}this.distributeEmptySpace(),this.layoutViews()}},{key:"onSashEnd",value:function(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();var t,n=(0,a.Z)(this.viewItems);try{for(n.s();!(t=n.n()).done;){t.value.enabled=!0}}catch(i){n.e(i)}finally{n.f()}}},{key:"onViewChange",value:function(e,t){var n=this.viewItems.indexOf(e);n<0||n>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=(0,b.uZ)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&n>0?(this.resize(n-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([n],void 0)))}},{key:"resizeView",value:function(e,t){var n=this;if(this.state!==i.Idle)throw new Error("Cant modify splitview");if(this.state=i.Busy,!(e<0||e>=this.viewItems.length)){var r=(0,v.w6)(this.viewItems.length).filter((function(t){return t!==e})),a=[].concat((0,o.Z)(r.filter((function(e){return 1===n.viewItems[e].priority}))),[e]),s=r.filter((function(e){return 2===n.viewItems[e].priority})),l=this.viewItems[e];t=Math.round(t),t=(0,b.uZ)(t,l.minimumSize,Math.min(l.maximumSize,this.size)),l.size=t,this.relayout(a,s),this.state=i.Idle}}},{key:"distributeViewSizes",value:function(){var e,t=this,n=[],i=0,r=(0,a.Z)(this.viewItems);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.maximumSize-o.minimumSize>0&&(n.push(o),i+=o.size)}}catch(p){r.e(p)}finally{r.f()}for(var s=Math.floor(i/n.length),l=0,c=n;l<c.length;l++){var u=c[l];u.size=(0,b.uZ)(s,u.minimumSize,u.maximumSize)}var d=(0,v.w6)(this.viewItems.length),h=d.filter((function(e){return 1===t.viewItems[e].priority})),f=d.filter((function(e){return 2===t.viewItems[e].priority}));this.relayout(h,f)}},{key:"getViewSize",value:function(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}},{key:"doAddView",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.viewItems.length,o=arguments.length>3?arguments[3]:void 0;if(this.state!==i.Idle)throw new Error("Cant modify splitview");this.state=i.Busy;var a=(0,f.$)(".split-view-view");r===this.viewItems.length?this.viewContainer.appendChild(a):this.viewContainer.insertBefore(a,this.viewContainer.children.item(r));var s,l=e.onDidChange((function(e){return n.onViewChange(h,e)})),c=(0,_.OF)((function(){return n.viewContainer.removeChild(a)})),u=(0,_.F8)(l,c);s="number"===typeof t?t:"split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;var d,h=0===this.orientation?new x(a,e,s,u):new E(a,e,s,u);if(this.viewItems.splice(r,0,h),this.viewItems.length>1){var g={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},m=0===this.orientation?new p.g(this.sashContainer,{getHorizontalSashTop:function(e){return n.getSashPosition(e)},getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},g),{orientation:1})):new p.g(this.sashContainer,{getVerticalSashLeft:function(e){return n.getSashPosition(e)},getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},g),{orientation:0})),b=0===this.orientation?function(e){return{sash:m,start:e.startY,current:e.currentY,alt:e.altKey}}:function(e){return{sash:m,start:e.startX,current:e.currentX,alt:e.altKey}},C=y.ju.map(m.onDidStart,b),S=C(this.onSashStart,this),w=y.ju.map(m.onDidChange,b),k=w(this.onSashChange,this),T=y.ju.map(m.onDidEnd,(function(){return n.sashItems.findIndex((function(e){return e.sash===m}))})),N=T(this.onSashEnd,this),I=m.onDidReset((function(){var e=n.sashItems.findIndex((function(e){return e.sash===m})),t=(0,v.w6)(e,-1),i=(0,v.w6)(e+1,n.viewItems.length),r=n.findFirstSnapIndex(t),o=n.findFirstSnapIndex(i);("number"!==typeof r||n.viewItems[r].visible)&&("number"!==typeof o||n.viewItems[o].visible)&&n._onDidSashReset.fire(e)})),D=(0,_.F8)(S,k,N,I,m),L={sash:m,disposable:D};this.sashItems.splice(r-1,0,L)}a.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(d=[t.index]),o||this.relayout([r],d),this.state=i.Idle,o||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()}},{key:"relayout",value:function(e,t){var n=this.viewItems.reduce((function(e,t){return e+t.size}),0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}},{key:"resize",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.viewItems.map((function(e){return e.size})),r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Number.NEGATIVE_INFINITY,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Number.POSITIVE_INFINITY,c=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0;if(e<0||e>=this.viewItems.length)return 0;var d=(0,v.w6)(e,-1),h=(0,v.w6)(e+1,this.viewItems.length);if(o){var f,p=(0,a.Z)(o);try{for(p.s();!(f=p.n()).done;){var g=f.value;(0,v.zI)(d,g),(0,v.zI)(h,g)}}catch(G){p.e(G)}finally{p.f()}}if(r){var m,y=(0,a.Z)(r);try{for(y.s();!(m=y.n()).done;){var _=m.value;(0,v.al)(d,_),(0,v.al)(h,_)}}catch(G){y.e(G)}finally{y.f()}}var C=d.map((function(e){return n.viewItems[e]})),S=d.map((function(e){return i[e]})),w=h.map((function(e){return n.viewItems[e]})),k=h.map((function(e){return i[e]})),x=d.reduce((function(e,t){return e+(n.viewItems[t].minimumSize-i[t])}),0),E=d.reduce((function(e,t){return e+(n.viewItems[t].maximumSize-i[t])}),0),T=0===h.length?Number.POSITIVE_INFINITY:h.reduce((function(e,t){return e+(i[t]-n.viewItems[t].minimumSize)}),0),N=0===h.length?Number.NEGATIVE_INFINITY:h.reduce((function(e,t){return e+(i[t]-n.viewItems[t].maximumSize)}),0),I=Math.max(x,N,s),D=Math.min(T,E,l),L=!1;if(c){var O=this.viewItems[c.index],R=t>=c.limitDelta;L=R!==O.visible,O.setVisible(R,c.size)}if(!L&&u){var A=this.viewItems[u.index],M=t<u.limitDelta;L=M!==A.visible,A.setVisible(M,u.size)}if(L)return this.resize(e,t,i,r,o,s,l);for(var P=0,Z=t=(0,b.uZ)(t,I,D);P<C.length;P++){var F=C[P],B=(0,b.uZ)(S[P]+Z,F.minimumSize,F.maximumSize),H=B-S[P];Z-=H,F.size=B}for(var z=0,j=t;z<w.length;z++){var V=w[z],W=(0,b.uZ)(k[z]-j,V.minimumSize,V.maximumSize),U=W-k[z];j+=U,V.size=W}return t}},{key:"distributeEmptySpace",value:function(e){var t,n=this,i=this.viewItems.reduce((function(e,t){return e+t.size}),0),r=this.size-i,o=(0,v.w6)(this.viewItems.length-1,-1),s=o.filter((function(e){return 1===n.viewItems[e].priority})),l=o.filter((function(e){return 2===n.viewItems[e].priority})),c=(0,a.Z)(l);try{for(c.s();!(t=c.n()).done;){var u=t.value;(0,v.zI)(o,u)}}catch(y){c.e(y)}finally{c.f()}var d,h=(0,a.Z)(s);try{for(h.s();!(d=h.n()).done;){var f=d.value;(0,v.al)(o,f)}}catch(y){h.e(y)}finally{h.f()}"number"===typeof e&&(0,v.al)(o,e);for(var p=0;0!==r&&p<o.length;p++){var g=this.viewItems[o[p]],m=(0,b.uZ)(g.size+r,g.minimumSize,g.maximumSize);r-=m-g.size,g.size=m}}},{key:"layoutViews",value:function(){this.contentSize=this.viewItems.reduce((function(e,t){return e+t.size}),0);var e,t=0,n=(0,a.Z)(this.viewItems);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.layout(t,this.layoutContext),t+=i.size}}catch(r){n.e(r)}finally{n.f()}this.sashItems.forEach((function(e){return e.sash.layout()})),this.updateSashEnablement(),this.updateScrollableElement()}},{key:"updateScrollableElement",value:function(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}},{key:"updateSashEnablement",value:function(){var e=!1,t=this.viewItems.map((function(t){return e=t.size-t.minimumSize>0||e}));e=!1;var n=this.viewItems.map((function(t){return e=t.maximumSize-t.size>0||e})),i=(0,o.Z)(this.viewItems).reverse();e=!1;var r=i.map((function(t){return e=t.size-t.minimumSize>0||e})).reverse();e=!1;for(var a=i.map((function(t){return e=t.maximumSize-t.size>0||e})).reverse(),s=0,l=0;l<this.sashItems.length;l++){var c=this.sashItems[l].sash;s+=this.viewItems[l].size;var u=!(t[l]&&a[l+1]),d=!(n[l]&&r[l+1]);if(u&&d){var h=(0,v.w6)(l,-1),f=(0,v.w6)(l+1,this.viewItems.length),p=this.findFirstSnapIndex(h),g=this.findFirstSnapIndex(f),m="number"===typeof p&&!this.viewItems[p].visible,y="number"===typeof g&&!this.viewItems[g].visible;m&&r[l]&&(s>0||this.startSnappingEnabled)?c.state=1:y&&t[l]&&(s<this.contentSize||this.endSnappingEnabled)?c.state=2:c.state=0}else c.state=u&&!d?1:!u&&d?2:3}}},{key:"getSashPosition",value:function(e){for(var t=0,n=0;n<this.sashItems.length;n++)if(t+=this.viewItems[n].size,this.sashItems[n].sash===e)return t;return 0}},{key:"findFirstSnapIndex",value:function(e){var t,n=(0,a.Z)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,r=this.viewItems[i];if(r.visible&&r.snap)return i}}catch(u){n.e(u)}finally{n.f()}var o,s=(0,a.Z)(e);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=this.viewItems[l];if(c.visible&&c.maximumSize-c.minimumSize>0)return;if(!c.visible&&c.snap)return l}}catch(u){s.e(u)}finally{s.f()}}},{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this),(0,_.B9)(this.viewItems),this.viewItems=[],this.sashItems.forEach((function(e){return e.disposable.dispose()})),this.sashItems=[]}}]),n}(_.JT)},29110:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(93433),r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(70176),c=n(2801),u=n(62458),d=n(73097),h={inputActiveOptionBorder:u.Il.fromHex("#007ACC00"),inputActiveOptionForeground:u.Il.fromHex("#FFFFFF"),inputActiveOptionBackground:u.Il.fromHex("#0E639C50")},f=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var o,a;(0,r.Z)(this,n),(a=t.call(this))._onChange=a._register(new d.Q5),a.onChange=a._onChange.event,a._onKeyDown=a._register(new d.Q5),a.onKeyDown=a._onKeyDown.event,a._opts=Object.assign(Object.assign({},h),e),a._checked=a._opts.isChecked;var s=["monaco-custom-toggle"];return a._opts.icon&&(a._icon=a._opts.icon,s.push.apply(s,(0,i.Z)(c.dT.asClassNameArray(a._icon)))),a._opts.actionClassName&&s.push.apply(s,(0,i.Z)(a._opts.actionClassName.split(" "))),a._checked&&s.push("checked"),a.domNode=document.createElement("div"),a.domNode.title=a._opts.title,(o=a.domNode.classList).add.apply(o,s),a._opts.notFocusable||(a.domNode.tabIndex=0),a.domNode.setAttribute("role","checkbox"),a.domNode.setAttribute("aria-checked",String(a._checked)),a.domNode.setAttribute("aria-label",a._opts.title),a.applyStyles(),a.onclick(a.domNode,(function(e){a.enabled&&(a.checked=!a._checked,a._onChange.fire(!1),e.preventDefault())})),a.ignoreGesture(a.domNode),a.onkeydown(a.domNode,(function(e){if(10===e.keyCode||3===e.keyCode)return a.checked=!a._checked,a._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();a._onKeyDown.fire(e)})),a}return(0,o.Z)(n,[{key:"enabled",get:function(){return"true"!==this.domNode.getAttribute("aria-disabled")}},{key:"focus",value:function(){this.domNode.focus()}},{key:"checked",get:function(){return this._checked},set:function(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}},{key:"width",value:function(){return 22}},{key:"style",value:function(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}},{key:"applyStyles",value:function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}},{key:"enable",value:function(){this.domNode.setAttribute("aria-disabled",String(!1))}},{key:"disable",value:function(){this.domNode.setAttribute("aria-disabled",String(!0))}}]),n}(l.$)},70176:function(e,t,n){"use strict";n.d(t,{$:function(){return d}});var i=n(15671),r=n(43144),o=n(60136),a=n(27277),s=n(81531),l=n(33813),c=n(2524),u=n(81238),d=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,[{key:"onclick",value:function(e,t){this._register(s.addDisposableListener(e,s.EventType.CLICK,(function(e){return t(new c.n(e))})))}},{key:"onmousedown",value:function(e,t){this._register(s.addDisposableListener(e,s.EventType.MOUSE_DOWN,(function(e){return t(new c.n(e))})))}},{key:"onmouseover",value:function(e,t){this._register(s.addDisposableListener(e,s.EventType.MOUSE_OVER,(function(e){return t(new c.n(e))})))}},{key:"onmouseleave",value:function(e,t){this._register(s.addDisposableListener(e,s.EventType.MOUSE_LEAVE,(function(e){return t(new c.n(e))})))}},{key:"onkeydown",value:function(e,t){this._register(s.addDisposableListener(e,s.EventType.KEY_DOWN,(function(e){return t(new l.y(e))})))}},{key:"onkeyup",value:function(e,t){this._register(s.addDisposableListener(e,s.EventType.KEY_UP,(function(e){return t(new l.y(e))})))}},{key:"oninput",value:function(e,t){this._register(s.addDisposableListener(e,s.EventType.INPUT,t))}},{key:"onblur",value:function(e,t){this._register(s.addDisposableListener(e,s.EventType.BLUR,t))}},{key:"onfocus",value:function(e,t){this._register(s.addDisposableListener(e,s.EventType.FOCUS,t))}},{key:"ignoreGesture",value:function(e){u.o.ignoreTarget(e)}}]),n}(n(11860).JT)},18247:function(e,t,n){"use strict";n.d(t,{Wi:function(){return f},Z0:function(){return p},aU:function(){return h},eZ:function(){return v},wY:function(){return g},xw:function(){return m}});var i=n(74165),r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(73097),c=n(11860),u=n(27722),d=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},h=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],c=arguments.length>4?arguments[4]:void 0;return(0,r.Z)(this,n),(i=t.call(this))._onDidChange=i._register(new l.Q5),i.onDidChange=i._onDidChange.event,i._enabled=!0,i._id=e,i._label=o,i._cssClass=a,i._enabled=s,i._actionCallback=c,i}return(0,o.Z)(n,[{key:"id",get:function(){return this._id}},{key:"label",get:function(){return this._label},set:function(e){this._setLabel(e)}},{key:"_setLabel",value:function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}},{key:"tooltip",get:function(){return this._tooltip||""},set:function(e){this._setTooltip(e)}},{key:"_setTooltip",value:function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}},{key:"class",get:function(){return this._cssClass},set:function(e){this._setClass(e)}},{key:"_setClass",value:function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._setEnabled(e)}},{key:"_setEnabled",value:function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}},{key:"checked",get:function(){return this._checked},set:function(e){this._setChecked(e)}},{key:"_setChecked",value:function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}},{key:"run",value:function(e,t){return d(this,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._actionCallback){t.next=3;break}return t.next=3,this._actionCallback(e);case 3:case"end":return t.stop()}}),t,this)})))}}]),n}(c.JT),f=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments))._onBeforeRun=e._register(new l.Q5),e.onBeforeRun=e._onBeforeRun.event,e._onDidRun=e._register(new l.Q5),e.onDidRun=e._onDidRun.event,e}return(0,o.Z)(n,[{key:"run",value:function(e,t){return d(this,void 0,void 0,(0,i.Z)().mark((function n(){var r;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.enabled){n.next=2;break}return n.abrupt("return");case 2:return this._onBeforeRun.fire({action:e}),r=void 0,n.prev=4,n.next=7,this.runAction(e,t);case 7:n.next=12;break;case 9:n.prev=9,n.t0=n.catch(4),r=n.t0;case 12:this._onDidRun.fire({action:e,error:r});case 13:case"end":return n.stop()}}),n,this,[[4,9]])})))}},{key:"runAction",value:function(e,t){return d(this,void 0,void 0,(0,i.Z)().mark((function n(){return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.run(t);case 2:case"end":return n.stop()}}),n)})))}}]),n}(c.JT),p=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,n.ID,e,e?"separator text":"separator")).checked=!1,i.enabled=!1,i}return(0,o.Z)(n)}(h);p.ID="vs.actions.separator";var g=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=t,this.label=n,this.class=o,this._actions=i}return(0,o.Z)(e,[{key:"actions",get:function(){return this._actions}},{key:"dispose",value:function(){}},{key:"run",value:function(){return d(this,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))}}]),e}(),v=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,n.ID,u.NC("submenu.empty","(empty)"),void 0,!1)}return(0,o.Z)(n)}(h);function m(e){var t,n,r=this;return{id:e.id,label:e.label,class:void 0,enabled:null===(t=e.enabled)||void 0===t||t,checked:null!==(n=e.checked)&&void 0!==n&&n,run:function(){return d(r,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.run());case 1:case"end":return t.stop()}}),t)})))},tooltip:e.label,dispose:function(){}}}v.ID="vs.actions.empty"},29671:function(e,t,n){"use strict";n.d(t,{Dc:function(){return L},EB:function(){return y},Gb:function(){return s},H9:function(){return A},HW:function(){return f},JH:function(){return l},LS:function(){return u},Of:function(){return m},VJ:function(){return R},XY:function(){return v},Xh:function(){return b},Zv:function(){return S},_2:function(){return E},al:function(){return k},dF:function(){return _},db:function(){return T},fS:function(){return c},fv:function(){return D},jV:function(){return O},kX:function(){return g},lG:function(){return h},ry:function(){return d},tT:function(){return I},vA:function(){return x},vM:function(){return p},w6:function(){return C},zI:function(){return w}});var i,r=n(15671),o=n(43144),a=n(37762);function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[e.length-(1+t)]}function l(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e===t};if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function u(e,t){var n=e.length-1;t<n&&(e[t]=e[n]),e.pop()}function d(e,t,n){return function(e,t){var n=0,i=e-1;for(;n<=i;){var r=(n+i)/2|0,o=t(r);if(o<0)n=r+1;else{if(!(o>0))return r;i=r-1}}return-(n+1)}(e.length,(function(i){return n(e[i],t)}))}function h(e,t){var n=0,i=e.length;if(0===i)return 0;for(;n<i;){var r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}function f(e,t,n){if((e|=0)>=t.length)throw new TypeError("invalid index");var i,r=t[Math.floor(t.length*Math.random())],o=[],s=[],l=[],c=(0,a.Z)(t);try{for(c.s();!(i=c.n()).done;){var u=i.value,d=n(u,r);d<0?o.push(u):d>0?s.push(u):l.push(u)}}catch(h){c.e(h)}finally{c.f()}return e<o.length?f(e,o,n):e<o.length+l.length?l[0]:f(e-(o.length+l.length),s,n)}function p(e,t){var n,i=[],r=void 0,o=(0,a.Z)(e.slice(0).sort(t));try{for(o.s();!(n=o.n()).done;){var s=n.value;r&&0===t(r[0],s)?r.push(s):(r=[s],i.push(r))}}catch(l){o.e(l)}finally{o.f()}return i}function g(e){return e.filter((function(e){return!!e}))}function v(e){return!Array.isArray(e)||0===e.length}function m(e){return Array.isArray(e)&&e.length>0}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=new Set;return e.filter((function(e){var i=t(e);return!n.has(i)&&(n.add(i),!0)}))}function _(e,t){var n=function(e,t){for(var n=e.length-1;n>=0;n--){if(t(e[n]))return n}return-1}(e,t);if(-1!==n)return e[n]}function b(e,t){return e.length>0?e[0]:t}function C(e,t){var n="number"===typeof t?e:0;"number"===typeof t?n=e:(n=0,t=e);var i=[];if(n<=t)for(var r=n;r<t;r++)i.push(r);else for(var o=n;o>t;o--)i.push(o);return i}function S(e,t,n){var i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function w(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function k(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function x(e,t){var n,i=(0,a.Z)(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.push(r)}}catch(o){i.e(o)}finally{i.f()}}function E(e){return Array.isArray(e)?e:[e]}function T(e,t,n,i){var r=N(e,t),o=e.splice(r,n);return function(e,t,n){var i=N(e,t),r=e.length,o=n.length;e.length=r+o;for(var a=r-1;a>=i;a--)e[a+o]=e[a];for(var s=0;s<o;s++)e[s+i]=n[s]}(e,r,i),o}function N(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}function I(e,t){return function(n,i){return t(e(n),e(i))}}!function(e){e.isLessThan=function(e){return e<0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(i||(i={}));var D=function(e,t){return e-t};function L(e,t){if(0!==e.length){for(var n=e[0],i=1;i<e.length;i++){var r=e[i];t(r,n)>0&&(n=r)}return n}}function O(e,t){if(0!==e.length){for(var n=e[0],i=1;i<e.length;i++){var r=e[i];t(r,n)>=0&&(n=r)}return n}}function R(e,t){return L(e,(function(e,n){return-t(e,n)}))}var A=function(){function e(t){(0,r.Z)(this,e),this.items=t,this.firstIdx=0,this.lastIdx=this.items.length-1}return(0,o.Z)(e,[{key:"length",get:function(){return this.lastIdx-this.firstIdx+1}},{key:"takeWhile",value:function(e){for(var t=this.firstIdx;t<this.items.length&&e(this.items[t]);)t++;var n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}},{key:"takeFromEndWhile",value:function(e){for(var t=this.lastIdx;t>=0&&e(this.items[t]);)t--;var n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}},{key:"peek",value:function(){if(0!==this.length)return this.items[this.firstIdx]}},{key:"dequeue",value:function(){var e=this.items[this.firstIdx];return this.firstIdx++,e}},{key:"takeCount",value:function(e){var t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}]),e}()},51492:function(e,t,n){"use strict";function i(e,t){if(!e)throw new Error(t?"Assertion failed (".concat(t,")"):"Assertion Failed")}n.d(t,{ok:function(){return i}})},60022:function(e,t,n){"use strict";n.d(t,{Aq:function(){return A},CR:function(){return R},J8:function(){return g},PG:function(){return v},Ps:function(){return E},To:function(){return T},Ue:function(){return O},Vg:function(){return x},Vs:function(){return k},_F:function(){return N},eP:function(){return m},jT:function(){return L},ne:function(){return C},pY:function(){return D},rH:function(){return w},vp:function(){return S},zS:function(){return P},zh:function(){return I}});var i=n(60136),r=n(27277),o=n(74165),a=n(15671),s=n(43144),l=n(82784),c=n(14173),u=n(73097),d=n(11860),h=n(73616),f=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},p=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof __values?__values(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,r,(t=e[n](t)).done,t.value)}))}}};function g(e){return!!e&&"function"===typeof e.then}function v(e){var t=new l.A,n=e(t.token),i=new Promise((function(e,i){var r=t.token.onCancellationRequested((function(){r.dispose(),t.dispose(),i(new c.FU)}));Promise.resolve(n).then((function(n){r.dispose(),t.dispose(),e(n)}),(function(e){r.dispose(),t.dispose(),i(e)}))}));return new(function(){function e(){(0,a.Z)(this,e)}return(0,s.Z)(e,[{key:"cancel",value:function(){t.cancel()}},{key:"then",value:function(e,t){return i.then(e,t)}},{key:"catch",value:function(e){return this.then(void 0,e)}},{key:"finally",value:function(e){return i.finally(e)}}]),e}())}function m(e,t,n){return new Promise((function(i,r){var o=t.onCancellationRequested((function(){o.dispose(),i(n)}));e.then(i,r).finally((function(){return o.dispose()}))}))}var y=function(){function e(){(0,a.Z)(this,e),this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}return(0,s.Z)(e,[{key:"queue",value:function(e){var t=this;if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){var n=function(){t.queuedPromise=null;var e=t.queue(t.queuedPromiseFactory);return t.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((function(e){t.activePromise.then(n,n).then(e)}))}return new Promise((function(e,n){t.queuedPromise.then(e,n)}))}return this.activePromise=e(),new Promise((function(e,n){t.activePromise.then((function(n){t.activePromise=null,e(n)}),(function(e){t.activePromise=null,n(e)}))}))}}]),e}(),_=function(e,t){var n=!0,i=setTimeout((function(){n=!1,t()}),e);return{isTriggered:function(){return n},dispose:function(){clearTimeout(i),n=!1}}},b=function(e){var t=!0;return queueMicrotask((function(){t&&(t=!1,e())})),{isTriggered:function(){return t},dispose:function(){t=!1}}},C=Symbol("MicrotaskDelay"),S=function(){function e(t){(0,a.Z)(this,e),this.defaultDelay=t,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}return(0,s.Z)(e,[{key:"trigger",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.defaultDelay;this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((function(e,n){t.doResolve=e,t.doReject=n})).then((function(){if(t.completionPromise=null,t.doResolve=null,t.task){var e=t.task;return t.task=null,e()}})));var i=function(){var e;t.deferred=null,null===(e=t.doResolve)||void 0===e||e.call(t,null)};return this.deferred=n===C?b(i):_(n,i),this.completionPromise}},{key:"isTriggered",value:function(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}},{key:"cancel",value:function(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new c.FU),this.completionPromise=null)}},{key:"cancelTimeout",value:function(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}},{key:"dispose",value:function(){this.cancel()}}]),e}(),w=function(){function e(t){(0,a.Z)(this,e),this.delayer=new S(t),this.throttler=new y}return(0,s.Z)(e,[{key:"trigger",value:function(e,t){var n=this;return this.delayer.trigger((function(){return n.throttler.queue(e)}),t)}},{key:"dispose",value:function(){this.delayer.dispose()}}]),e}();function k(e,t){return t?new Promise((function(n,i){var r=setTimeout((function(){o.dispose(),n()}),e),o=t.onCancellationRequested((function(){clearTimeout(r),o.dispose(),i(new c.FU)}))})):v((function(t){return k(e,t)}))}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=setTimeout(e,t);return(0,d.OF)((function(){return clearTimeout(n)}))}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return!!e},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=0,r=e.length,o=function o(){if(i>=r)return Promise.resolve(n);var a=e[i++];return Promise.resolve(a()).then((function(e){return t(e)?Promise.resolve(e):o()}))};return o()}var T,N=function(){function e(t,n){(0,a.Z)(this,e),this._token=-1,"function"===typeof t&&"number"===typeof n&&this.setIfNotSet(t,n)}return(0,s.Z)(e,[{key:"dispose",value:function(){this.cancel()}},{key:"cancel",value:function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}},{key:"cancelAndSet",value:function(e,t){var n=this;this.cancel(),this._token=setTimeout((function(){n._token=-1,e()}),t)}},{key:"setIfNotSet",value:function(e,t){var n=this;-1===this._token&&(this._token=setTimeout((function(){n._token=-1,e()}),t))}}]),e}(),I=function(){function e(){(0,a.Z)(this,e),this._token=-1}return(0,s.Z)(e,[{key:"dispose",value:function(){this.cancel()}},{key:"cancel",value:function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}},{key:"cancelAndSet",value:function(e,t){this.cancel(),this._token=setInterval((function(){e()}),t)}}]),e}(),D=function(){function e(t,n){(0,a.Z)(this,e),this.timeoutToken=-1,this.runner=t,this.timeout=n,this.timeoutHandler=this.onTimeout.bind(this)}return(0,s.Z)(e,[{key:"dispose",value:function(){this.cancel(),this.runner=null}},{key:"cancel",value:function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}},{key:"schedule",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}},{key:"delay",get:function(){return this.timeout},set:function(e){this.timeout=e}},{key:"isScheduled",value:function(){return-1!==this.timeoutToken}},{key:"onTimeout",value:function(){this.timeoutToken=-1,this.runner&&this.doRun()}},{key:"doRun",value:function(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}]),e}();T="function"!==typeof requestIdleCallback||"function"!==typeof cancelIdleCallback?function(e){(0,h.fn)((function(){if(!t){var n=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining:function(){return Math.max(0,n-Date.now())}}))}}));var t=!1;return{dispose:function(){t||(t=!0)}}}:function(e,t){var n=requestIdleCallback(e,"number"===typeof t?{timeout:t}:void 0),i=!1;return{dispose:function(){i||(i=!0,cancelIdleCallback(n))}}};var L,O=function(){function e(t){var n=this;(0,a.Z)(this,e),this._didRun=!1,this._executor=function(){try{n._value=t()}catch(e){n._error=e}finally{n._didRun=!0}},this._handle=T((function(){return n._executor()}))}return(0,s.Z)(e,[{key:"dispose",value:function(){this._handle.dispose()}},{key:"value",get:function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}},{key:"isInitialized",get:function(){return this._didRun}}]),e}(),R=function(){function e(){var t=this;(0,a.Z)(this,e),this.rejected=!1,this.resolved=!1,this.p=new Promise((function(e,n){t.completeCallback=e,t.errorCallback=n}))}return(0,s.Z)(e,[{key:"isRejected",get:function(){return this.rejected}},{key:"isSettled",get:function(){return this.rejected||this.resolved}},{key:"complete",value:function(e){var t=this;return new Promise((function(n){t.completeCallback(e),t.resolved=!0,n()}))}},{key:"cancel",value:function(){var e=this;new Promise((function(t){e.errorCallback(new c.FU),e.rejected=!0,t()}))}}]),e}();!function(e){e.settled=function(e){return f(this,void 0,void 0,(0,o.Z)().mark((function t(){var n,i;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=void 0,t.next=3,Promise.all(e.map((function(e){return e.then((function(e){return e}),(function(e){n||(n=e)}))})));case 3:if(i=t.sent,"undefined"===typeof n){t.next=6;break}throw n;case 6:return t.abrupt("return",i);case 7:case"end":return t.stop()}}),t)})))},e.withAsyncBody=function(e){var t=this;return new Promise((function(n,i){return f(t,void 0,void 0,(0,o.Z)().mark((function t(){return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e(n,i);case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),i(t.t0);case 8:case"end":return t.stop()}}),t,null,[[0,5]])})))}))}}(L||(L={}));var A=function(e){function t(e){var n=this;(0,a.Z)(this,t),this._state=0,this._results=[],this._error=null,this._onStateChanged=new u.Q5,queueMicrotask((function(){return f(n,void 0,void 0,(0,o.Z)().mark((function t(){var n,i=this;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={emitOne:function(e){return i.emitOne(e)},emitMany:function(e){return i.emitMany(e)},reject:function(e){return i.reject(e)}},t.prev=1,t.next=4,Promise.resolve(e(n));case 4:this.resolve(),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),this.reject(t.t0);case 10:return t.prev=10,n.emitOne=void 0,n.emitMany=void 0,n.reject=void 0,t.finish(10);case 15:case"end":return t.stop()}}),t,this,[[1,7,10,15]])})))}))}return(0,s.Z)(t,[{key:e,value:function(){var e=this,t=0;return{next:function(){return f(e,void 0,void 0,(0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(2!==this._state){e.next=2;break}throw this._error;case 2:if(!(t<this._results.length)){e.next=4;break}return e.abrupt("return",{done:!1,value:this._results[t++]});case 4:if(1!==this._state){e.next=6;break}return e.abrupt("return",{done:!0,value:void 0});case 6:return e.next=8,u.ju.toPromise(this._onStateChanged.event);case 8:e.next=0;break;case 9:case"end":return e.stop()}}),e,this)})))}}}},{key:"map",value:function(e){return t.map(this,e)}},{key:"filter",value:function(e){return t.filter(this,e)}},{key:"coalesce",value:function(){return t.coalesce(this)}},{key:"toPromise",value:function(){return t.toPromise(this)}},{key:"emitOne",value:function(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}},{key:"emitMany",value:function(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}},{key:"resolve",value:function(){0===this._state&&(this._state=1,this._onStateChanged.fire())}},{key:"reject",value:function(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}],[{key:"fromArray",value:function(e){return new t((function(t){t.emitMany(e)}))}},{key:"fromPromise",value:function(e){var n=this;return new t((function(t){return f(n,void 0,void 0,(0,o.Z)().mark((function n(){return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=t,n.next=3,e;case 3:n.t1=n.sent,n.t0.emitMany.call(n.t0,n.t1);case 5:case"end":return n.stop()}}),n)})))}))}},{key:"fromPromises",value:function(e){var n=this;return new t((function(t){return f(n,void 0,void 0,(0,o.Z)().mark((function n(){var i=this;return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all(e.map((function(e){return f(i,void 0,void 0,(0,o.Z)().mark((function n(){return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=t,n.next=3,e;case 3:return n.t1=n.sent,n.abrupt("return",n.t0.emitOne.call(n.t0,n.t1));case 5:case"end":return n.stop()}}),n)})))})));case 2:case"end":return n.stop()}}),n)})))}))}},{key:"merge",value:function(e){var n=this;return new t((function(t){return f(n,void 0,void 0,(0,o.Z)().mark((function n(){var i=this;return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all(e.map((function(e){var n,r;return f(i,void 0,void 0,(0,o.Z)().mark((function i(){var a,s,l;return(0,o.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:i.prev=0,n=p(e);case 2:return i.next=4,n.next();case 4:if((r=i.sent).done){i.next=10;break}l=r.value,t.emitOne(l);case 8:i.next=2;break;case 10:i.next=15;break;case 12:i.prev=12,i.t0=i.catch(0),a={error:i.t0};case 15:if(i.prev=15,i.prev=16,!r||r.done||!(s=n.return)){i.next=20;break}return i.next=20,s.call(n);case 20:if(i.prev=20,!a){i.next=23;break}throw a.error;case 23:return i.finish(20);case 24:return i.finish(15);case 25:case"end":return i.stop()}}),i,null,[[0,12,15,25],[16,,20,24]])})))})));case 2:case"end":return n.stop()}}),n)})))}))}},{key:"map",value:function(e,n){var i=this;return new t((function(t){return f(i,void 0,void 0,(0,o.Z)().mark((function i(){var r,a,s,l,c;return(0,o.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:i.prev=0,s=p(e);case 2:return i.next=4,s.next();case 4:if((l=i.sent).done){i.next=10;break}c=l.value,t.emitOne(n(c));case 8:i.next=2;break;case 10:i.next=15;break;case 12:i.prev=12,i.t0=i.catch(0),r={error:i.t0};case 15:if(i.prev=15,i.prev=16,!l||l.done||!(a=s.return)){i.next=20;break}return i.next=20,a.call(s);case 20:if(i.prev=20,!r){i.next=23;break}throw r.error;case 23:return i.finish(20);case 24:return i.finish(15);case 25:case"end":return i.stop()}}),i,null,[[0,12,15,25],[16,,20,24]])})))}))}},{key:"filter",value:function(e,n){var i=this;return new t((function(t){return f(i,void 0,void 0,(0,o.Z)().mark((function i(){var r,a,s,l,c;return(0,o.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:i.prev=0,s=p(e);case 2:return i.next=4,s.next();case 4:if((l=i.sent).done){i.next=10;break}c=l.value,n(c)&&t.emitOne(c);case 8:i.next=2;break;case 10:i.next=15;break;case 12:i.prev=12,i.t0=i.catch(0),r={error:i.t0};case 15:if(i.prev=15,i.prev=16,!l||l.done||!(a=s.return)){i.next=20;break}return i.next=20,a.call(s);case 20:if(i.prev=20,!r){i.next=23;break}throw r.error;case 23:return i.finish(20);case 24:return i.finish(15);case 25:case"end":return i.stop()}}),i,null,[[0,12,15,25],[16,,20,24]])})))}))}},{key:"coalesce",value:function(e){return t.filter(e,(function(e){return!!e}))}},{key:"toPromise",value:function(e){var t,n,i,r;return f(this,void 0,void 0,(0,o.Z)().mark((function a(){var s,l;return(0,o.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:s=[],o.prev=1,t=p(e);case 3:return o.next=5,t.next();case 5:if((n=o.sent).done){o.next=11;break}l=n.value,s.push(l);case 9:o.next=3;break;case 11:o.next=16;break;case 13:o.prev=13,o.t0=o.catch(1),i={error:o.t0};case 16:if(o.prev=16,o.prev=17,!n||n.done||!(r=t.return)){o.next=21;break}return o.next=21,r.call(t);case 21:if(o.prev=21,!i){o.next=24;break}throw i.error;case 24:return o.finish(21);case 25:return o.finish(16);case 26:return o.abrupt("return",s);case 27:case"end":return o.stop()}}),a,null,[[1,13,16,26],[17,,21,25]])})))}}]),t}(Symbol.asyncIterator);A.EMPTY=A.fromArray([]);var M=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,a.Z)(this,n),(r=t.call(this,i))._source=e,r}return(0,s.Z)(n,[{key:"cancel",value:function(){this._source.cancel()}}]),n}(A);function P(e){var t=this,n=new l.A,i=e(n.token);return new M(n,(function(e){return f(t,void 0,void 0,(0,o.Z)().mark((function t(){var r,a,s,l,u,d;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s=n.token.onCancellationRequested((function(){s.dispose(),n.dispose(),e.reject(new c.FU)})),t.prev=1,t.prev=2,l=p(i);case 4:return t.next=6,l.next();case 6:if((u=t.sent).done){t.next=14;break}if(d=u.value,!n.token.isCancellationRequested){t.next=11;break}return t.abrupt("return");case 11:e.emitOne(d);case 12:t.next=4;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(2),r={error:t.t0};case 19:if(t.prev=19,t.prev=20,!u||u.done||!(a=l.return)){t.next=24;break}return t.next=24,a.call(l);case 24:if(t.prev=24,!r){t.next=27;break}throw r.error;case 27:return t.finish(24);case 28:return t.finish(19);case 29:s.dispose(),n.dispose(),t.next=38;break;case 33:t.prev=33,t.t1=t.catch(1),s.dispose(),n.dispose(),e.reject(t.t1);case 38:case"end":return t.stop()}}),t,null,[[1,33],[2,16,19,29],[20,,24,28]])})))}))}},82175:function(e,t,n){"use strict";n.d(t,{Ag:function(){return u},Cg:function(){return f},KN:function(){return s},Q$:function(){return h},T4:function(){return d},mP:function(){return l},oq:function(){return c}});var i,r=n(15671),o=n(43144),a="undefined"!==typeof Buffer,s=function(){function e(t){(0,r.Z)(this,e),this.buffer=t,this.byteLength=this.buffer.byteLength}return(0,o.Z)(e,[{key:"toString",value:function(){return a?this.buffer.toString():(i||(i=new TextDecoder),i.decode(this.buffer))}}],[{key:"wrap",value:function(t){return a&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new e(t)}}]),e}();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 u(e,t){return e[t]*Math.pow(2,24)+e[t+1]*Math.pow(2,16)+e[t+2]*Math.pow(2,8)+e[t+3]}function d(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 f(e,t,n){e[n]=t}},15887:function(e,t,n){"use strict";n.d(t,{b:function(){return a},t:function(){return o}});var i=n(15671),r=n(43144),o=function(){function e(t){(0,i.Z)(this,e),this.fn=t,this.lastCache=void 0,this.lastArgKey=void 0}return(0,r.Z)(e,[{key:"get",value:function(e){var t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}]),e}(),a=function(){function e(t){(0,i.Z)(this,e),this.fn=t,this._map=new Map}return(0,r.Z)(e,[{key:"cachedValues",get:function(){return this._map}},{key:"get",value:function(e){if(this._map.has(e))return this._map.get(e);var t=this.fn(e);return this._map.set(e,t),t}}]),e}()},82784:function(e,t,n){"use strict";n.d(t,{A:function(){return c},T:function(){return i}});var i,r=n(15671),o=n(43144),a=n(73097),s=Object.freeze((function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}}));!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof l||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:a.ju.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:s})}(i||(i={}));var l=function(){function e(){(0,r.Z)(this,e),this._isCancelled=!1,this._emitter=null}return(0,o.Z)(e,[{key:"cancel",value:function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}},{key:"isCancellationRequested",get:function(){return this._isCancelled}},{key:"onCancellationRequested",get:function(){return this._isCancelled?s:(this._emitter||(this._emitter=new a.Q5),this._emitter.event)}},{key:"dispose",value:function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}]),e}(),c=function(){function e(t){(0,r.Z)(this,e),this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}return(0,o.Z)(e,[{key:"token",get:function(){return this._token||(this._token=new l),this._token}},{key:"cancel",value:function(){this._token?this._token instanceof l&&this._token.cancel():this._token=i.Cancelled}},{key:"dispose",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof l&&this._token.dispose():this._token=i.None}}]),e}()},2801:function(e,t,n){"use strict";n.d(t,{JL:function(){return a},dT:function(){return s},lA:function(){return l}});var i=n(29439),r=n(15671),o=n(43144);function a(e){return e?e.replace(/\$\((.*?)\)/g,(function(e,t){return" ".concat(t," ")})).trim():""}var s,l=function(){function e(t,n,i){(0,r.Z)(this,e),this.id=t,this.definition=n,this.description=i,e._allCodicons.push(this)}return(0,o.Z)(e,[{key:"classNames",get:function(){return"codicon codicon-"+this.id}},{key:"classNamesArray",get:function(){return["codicon","codicon-"+this.id]}},{key:"cssSelector",get:function(){return".codicon.codicon-"+this.id}}],[{key:"getAll",value:function(){return e._allCodicons}}]),e}();l._allCodicons=[],l.add=new l("add",{fontCharacter:"\\ea60"}),l.plus=new l("plus",l.add.definition),l.gistNew=new l("gist-new",l.add.definition),l.repoCreate=new l("repo-create",l.add.definition),l.lightbulb=new l("lightbulb",{fontCharacter:"\\ea61"}),l.lightBulb=new l("light-bulb",{fontCharacter:"\\ea61"}),l.repo=new l("repo",{fontCharacter:"\\ea62"}),l.repoDelete=new l("repo-delete",{fontCharacter:"\\ea62"}),l.gistFork=new l("gist-fork",{fontCharacter:"\\ea63"}),l.repoForked=new l("repo-forked",{fontCharacter:"\\ea63"}),l.gitPullRequest=new l("git-pull-request",{fontCharacter:"\\ea64"}),l.gitPullRequestAbandoned=new l("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),l.recordKeys=new l("record-keys",{fontCharacter:"\\ea65"}),l.keyboard=new l("keyboard",{fontCharacter:"\\ea65"}),l.tag=new l("tag",{fontCharacter:"\\ea66"}),l.tagAdd=new l("tag-add",{fontCharacter:"\\ea66"}),l.tagRemove=new l("tag-remove",{fontCharacter:"\\ea66"}),l.person=new l("person",{fontCharacter:"\\ea67"}),l.personFollow=new l("person-follow",{fontCharacter:"\\ea67"}),l.personOutline=new l("person-outline",{fontCharacter:"\\ea67"}),l.personFilled=new l("person-filled",{fontCharacter:"\\ea67"}),l.gitBranch=new l("git-branch",{fontCharacter:"\\ea68"}),l.gitBranchCreate=new l("git-branch-create",{fontCharacter:"\\ea68"}),l.gitBranchDelete=new l("git-branch-delete",{fontCharacter:"\\ea68"}),l.sourceControl=new l("source-control",{fontCharacter:"\\ea68"}),l.mirror=new l("mirror",{fontCharacter:"\\ea69"}),l.mirrorPublic=new l("mirror-public",{fontCharacter:"\\ea69"}),l.star=new l("star",{fontCharacter:"\\ea6a"}),l.starAdd=new l("star-add",{fontCharacter:"\\ea6a"}),l.starDelete=new l("star-delete",{fontCharacter:"\\ea6a"}),l.starEmpty=new l("star-empty",{fontCharacter:"\\ea6a"}),l.comment=new l("comment",{fontCharacter:"\\ea6b"}),l.commentAdd=new l("comment-add",{fontCharacter:"\\ea6b"}),l.alert=new l("alert",{fontCharacter:"\\ea6c"}),l.warning=new l("warning",{fontCharacter:"\\ea6c"}),l.search=new l("search",{fontCharacter:"\\ea6d"}),l.searchSave=new l("search-save",{fontCharacter:"\\ea6d"}),l.logOut=new l("log-out",{fontCharacter:"\\ea6e"}),l.signOut=new l("sign-out",{fontCharacter:"\\ea6e"}),l.logIn=new l("log-in",{fontCharacter:"\\ea6f"}),l.signIn=new l("sign-in",{fontCharacter:"\\ea6f"}),l.eye=new l("eye",{fontCharacter:"\\ea70"}),l.eyeUnwatch=new l("eye-unwatch",{fontCharacter:"\\ea70"}),l.eyeWatch=new l("eye-watch",{fontCharacter:"\\ea70"}),l.circleFilled=new l("circle-filled",{fontCharacter:"\\ea71"}),l.primitiveDot=new l("primitive-dot",{fontCharacter:"\\ea71"}),l.closeDirty=new l("close-dirty",{fontCharacter:"\\ea71"}),l.debugBreakpoint=new l("debug-breakpoint",{fontCharacter:"\\ea71"}),l.debugBreakpointDisabled=new l("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),l.debugHint=new l("debug-hint",{fontCharacter:"\\ea71"}),l.primitiveSquare=new l("primitive-square",{fontCharacter:"\\ea72"}),l.edit=new l("edit",{fontCharacter:"\\ea73"}),l.pencil=new l("pencil",{fontCharacter:"\\ea73"}),l.info=new l("info",{fontCharacter:"\\ea74"}),l.issueOpened=new l("issue-opened",{fontCharacter:"\\ea74"}),l.gistPrivate=new l("gist-private",{fontCharacter:"\\ea75"}),l.gitForkPrivate=new l("git-fork-private",{fontCharacter:"\\ea75"}),l.lock=new l("lock",{fontCharacter:"\\ea75"}),l.mirrorPrivate=new l("mirror-private",{fontCharacter:"\\ea75"}),l.close=new l("close",{fontCharacter:"\\ea76"}),l.removeClose=new l("remove-close",{fontCharacter:"\\ea76"}),l.x=new l("x",{fontCharacter:"\\ea76"}),l.repoSync=new l("repo-sync",{fontCharacter:"\\ea77"}),l.sync=new l("sync",{fontCharacter:"\\ea77"}),l.clone=new l("clone",{fontCharacter:"\\ea78"}),l.desktopDownload=new l("desktop-download",{fontCharacter:"\\ea78"}),l.beaker=new l("beaker",{fontCharacter:"\\ea79"}),l.microscope=new l("microscope",{fontCharacter:"\\ea79"}),l.vm=new l("vm",{fontCharacter:"\\ea7a"}),l.deviceDesktop=new l("device-desktop",{fontCharacter:"\\ea7a"}),l.file=new l("file",{fontCharacter:"\\ea7b"}),l.fileText=new l("file-text",{fontCharacter:"\\ea7b"}),l.more=new l("more",{fontCharacter:"\\ea7c"}),l.ellipsis=new l("ellipsis",{fontCharacter:"\\ea7c"}),l.kebabHorizontal=new l("kebab-horizontal",{fontCharacter:"\\ea7c"}),l.mailReply=new l("mail-reply",{fontCharacter:"\\ea7d"}),l.reply=new l("reply",{fontCharacter:"\\ea7d"}),l.organization=new l("organization",{fontCharacter:"\\ea7e"}),l.organizationFilled=new l("organization-filled",{fontCharacter:"\\ea7e"}),l.organizationOutline=new l("organization-outline",{fontCharacter:"\\ea7e"}),l.newFile=new l("new-file",{fontCharacter:"\\ea7f"}),l.fileAdd=new l("file-add",{fontCharacter:"\\ea7f"}),l.newFolder=new l("new-folder",{fontCharacter:"\\ea80"}),l.fileDirectoryCreate=new l("file-directory-create",{fontCharacter:"\\ea80"}),l.trash=new l("trash",{fontCharacter:"\\ea81"}),l.trashcan=new l("trashcan",{fontCharacter:"\\ea81"}),l.history=new l("history",{fontCharacter:"\\ea82"}),l.clock=new l("clock",{fontCharacter:"\\ea82"}),l.folder=new l("folder",{fontCharacter:"\\ea83"}),l.fileDirectory=new l("file-directory",{fontCharacter:"\\ea83"}),l.symbolFolder=new l("symbol-folder",{fontCharacter:"\\ea83"}),l.logoGithub=new l("logo-github",{fontCharacter:"\\ea84"}),l.markGithub=new l("mark-github",{fontCharacter:"\\ea84"}),l.github=new l("github",{fontCharacter:"\\ea84"}),l.terminal=new l("terminal",{fontCharacter:"\\ea85"}),l.console=new l("console",{fontCharacter:"\\ea85"}),l.repl=new l("repl",{fontCharacter:"\\ea85"}),l.zap=new l("zap",{fontCharacter:"\\ea86"}),l.symbolEvent=new l("symbol-event",{fontCharacter:"\\ea86"}),l.error=new l("error",{fontCharacter:"\\ea87"}),l.stop=new l("stop",{fontCharacter:"\\ea87"}),l.variable=new l("variable",{fontCharacter:"\\ea88"}),l.symbolVariable=new l("symbol-variable",{fontCharacter:"\\ea88"}),l.array=new l("array",{fontCharacter:"\\ea8a"}),l.symbolArray=new l("symbol-array",{fontCharacter:"\\ea8a"}),l.symbolModule=new l("symbol-module",{fontCharacter:"\\ea8b"}),l.symbolPackage=new l("symbol-package",{fontCharacter:"\\ea8b"}),l.symbolNamespace=new l("symbol-namespace",{fontCharacter:"\\ea8b"}),l.symbolObject=new l("symbol-object",{fontCharacter:"\\ea8b"}),l.symbolMethod=new l("symbol-method",{fontCharacter:"\\ea8c"}),l.symbolFunction=new l("symbol-function",{fontCharacter:"\\ea8c"}),l.symbolConstructor=new l("symbol-constructor",{fontCharacter:"\\ea8c"}),l.symbolBoolean=new l("symbol-boolean",{fontCharacter:"\\ea8f"}),l.symbolNull=new l("symbol-null",{fontCharacter:"\\ea8f"}),l.symbolNumeric=new l("symbol-numeric",{fontCharacter:"\\ea90"}),l.symbolNumber=new l("symbol-number",{fontCharacter:"\\ea90"}),l.symbolStructure=new l("symbol-structure",{fontCharacter:"\\ea91"}),l.symbolStruct=new l("symbol-struct",{fontCharacter:"\\ea91"}),l.symbolParameter=new l("symbol-parameter",{fontCharacter:"\\ea92"}),l.symbolTypeParameter=new l("symbol-type-parameter",{fontCharacter:"\\ea92"}),l.symbolKey=new l("symbol-key",{fontCharacter:"\\ea93"}),l.symbolText=new l("symbol-text",{fontCharacter:"\\ea93"}),l.symbolReference=new l("symbol-reference",{fontCharacter:"\\ea94"}),l.goToFile=new l("go-to-file",{fontCharacter:"\\ea94"}),l.symbolEnum=new l("symbol-enum",{fontCharacter:"\\ea95"}),l.symbolValue=new l("symbol-value",{fontCharacter:"\\ea95"}),l.symbolRuler=new l("symbol-ruler",{fontCharacter:"\\ea96"}),l.symbolUnit=new l("symbol-unit",{fontCharacter:"\\ea96"}),l.activateBreakpoints=new l("activate-breakpoints",{fontCharacter:"\\ea97"}),l.archive=new l("archive",{fontCharacter:"\\ea98"}),l.arrowBoth=new l("arrow-both",{fontCharacter:"\\ea99"}),l.arrowDown=new l("arrow-down",{fontCharacter:"\\ea9a"}),l.arrowLeft=new l("arrow-left",{fontCharacter:"\\ea9b"}),l.arrowRight=new l("arrow-right",{fontCharacter:"\\ea9c"}),l.arrowSmallDown=new l("arrow-small-down",{fontCharacter:"\\ea9d"}),l.arrowSmallLeft=new l("arrow-small-left",{fontCharacter:"\\ea9e"}),l.arrowSmallRight=new l("arrow-small-right",{fontCharacter:"\\ea9f"}),l.arrowSmallUp=new l("arrow-small-up",{fontCharacter:"\\eaa0"}),l.arrowUp=new l("arrow-up",{fontCharacter:"\\eaa1"}),l.bell=new l("bell",{fontCharacter:"\\eaa2"}),l.bold=new l("bold",{fontCharacter:"\\eaa3"}),l.book=new l("book",{fontCharacter:"\\eaa4"}),l.bookmark=new l("bookmark",{fontCharacter:"\\eaa5"}),l.debugBreakpointConditionalUnverified=new l("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),l.debugBreakpointConditional=new l("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),l.debugBreakpointConditionalDisabled=new l("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),l.debugBreakpointDataUnverified=new l("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),l.debugBreakpointData=new l("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),l.debugBreakpointDataDisabled=new l("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),l.debugBreakpointLogUnverified=new l("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),l.debugBreakpointLog=new l("debug-breakpoint-log",{fontCharacter:"\\eaab"}),l.debugBreakpointLogDisabled=new l("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),l.briefcase=new l("briefcase",{fontCharacter:"\\eaac"}),l.broadcast=new l("broadcast",{fontCharacter:"\\eaad"}),l.browser=new l("browser",{fontCharacter:"\\eaae"}),l.bug=new l("bug",{fontCharacter:"\\eaaf"}),l.calendar=new l("calendar",{fontCharacter:"\\eab0"}),l.caseSensitive=new l("case-sensitive",{fontCharacter:"\\eab1"}),l.check=new l("check",{fontCharacter:"\\eab2"}),l.checklist=new l("checklist",{fontCharacter:"\\eab3"}),l.chevronDown=new l("chevron-down",{fontCharacter:"\\eab4"}),l.dropDownButton=new l("drop-down-button",l.chevronDown.definition),l.chevronLeft=new l("chevron-left",{fontCharacter:"\\eab5"}),l.chevronRight=new l("chevron-right",{fontCharacter:"\\eab6"}),l.chevronUp=new l("chevron-up",{fontCharacter:"\\eab7"}),l.chromeClose=new l("chrome-close",{fontCharacter:"\\eab8"}),l.chromeMaximize=new l("chrome-maximize",{fontCharacter:"\\eab9"}),l.chromeMinimize=new l("chrome-minimize",{fontCharacter:"\\eaba"}),l.chromeRestore=new l("chrome-restore",{fontCharacter:"\\eabb"}),l.circleOutline=new l("circle-outline",{fontCharacter:"\\eabc"}),l.debugBreakpointUnverified=new l("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),l.circleSlash=new l("circle-slash",{fontCharacter:"\\eabd"}),l.circuitBoard=new l("circuit-board",{fontCharacter:"\\eabe"}),l.clearAll=new l("clear-all",{fontCharacter:"\\eabf"}),l.clippy=new l("clippy",{fontCharacter:"\\eac0"}),l.closeAll=new l("close-all",{fontCharacter:"\\eac1"}),l.cloudDownload=new l("cloud-download",{fontCharacter:"\\eac2"}),l.cloudUpload=new l("cloud-upload",{fontCharacter:"\\eac3"}),l.code=new l("code",{fontCharacter:"\\eac4"}),l.collapseAll=new l("collapse-all",{fontCharacter:"\\eac5"}),l.colorMode=new l("color-mode",{fontCharacter:"\\eac6"}),l.commentDiscussion=new l("comment-discussion",{fontCharacter:"\\eac7"}),l.compareChanges=new l("compare-changes",{fontCharacter:"\\eafd"}),l.creditCard=new l("credit-card",{fontCharacter:"\\eac9"}),l.dash=new l("dash",{fontCharacter:"\\eacc"}),l.dashboard=new l("dashboard",{fontCharacter:"\\eacd"}),l.database=new l("database",{fontCharacter:"\\eace"}),l.debugContinue=new l("debug-continue",{fontCharacter:"\\eacf"}),l.debugDisconnect=new l("debug-disconnect",{fontCharacter:"\\ead0"}),l.debugPause=new l("debug-pause",{fontCharacter:"\\ead1"}),l.debugRestart=new l("debug-restart",{fontCharacter:"\\ead2"}),l.debugStart=new l("debug-start",{fontCharacter:"\\ead3"}),l.debugStepInto=new l("debug-step-into",{fontCharacter:"\\ead4"}),l.debugStepOut=new l("debug-step-out",{fontCharacter:"\\ead5"}),l.debugStepOver=new l("debug-step-over",{fontCharacter:"\\ead6"}),l.debugStop=new l("debug-stop",{fontCharacter:"\\ead7"}),l.debug=new l("debug",{fontCharacter:"\\ead8"}),l.deviceCameraVideo=new l("device-camera-video",{fontCharacter:"\\ead9"}),l.deviceCamera=new l("device-camera",{fontCharacter:"\\eada"}),l.deviceMobile=new l("device-mobile",{fontCharacter:"\\eadb"}),l.diffAdded=new l("diff-added",{fontCharacter:"\\eadc"}),l.diffIgnored=new l("diff-ignored",{fontCharacter:"\\eadd"}),l.diffModified=new l("diff-modified",{fontCharacter:"\\eade"}),l.diffRemoved=new l("diff-removed",{fontCharacter:"\\eadf"}),l.diffRenamed=new l("diff-renamed",{fontCharacter:"\\eae0"}),l.diff=new l("diff",{fontCharacter:"\\eae1"}),l.discard=new l("discard",{fontCharacter:"\\eae2"}),l.editorLayout=new l("editor-layout",{fontCharacter:"\\eae3"}),l.emptyWindow=new l("empty-window",{fontCharacter:"\\eae4"}),l.exclude=new l("exclude",{fontCharacter:"\\eae5"}),l.extensions=new l("extensions",{fontCharacter:"\\eae6"}),l.eyeClosed=new l("eye-closed",{fontCharacter:"\\eae7"}),l.fileBinary=new l("file-binary",{fontCharacter:"\\eae8"}),l.fileCode=new l("file-code",{fontCharacter:"\\eae9"}),l.fileMedia=new l("file-media",{fontCharacter:"\\eaea"}),l.filePdf=new l("file-pdf",{fontCharacter:"\\eaeb"}),l.fileSubmodule=new l("file-submodule",{fontCharacter:"\\eaec"}),l.fileSymlinkDirectory=new l("file-symlink-directory",{fontCharacter:"\\eaed"}),l.fileSymlinkFile=new l("file-symlink-file",{fontCharacter:"\\eaee"}),l.fileZip=new l("file-zip",{fontCharacter:"\\eaef"}),l.files=new l("files",{fontCharacter:"\\eaf0"}),l.filter=new l("filter",{fontCharacter:"\\eaf1"}),l.flame=new l("flame",{fontCharacter:"\\eaf2"}),l.foldDown=new l("fold-down",{fontCharacter:"\\eaf3"}),l.foldUp=new l("fold-up",{fontCharacter:"\\eaf4"}),l.fold=new l("fold",{fontCharacter:"\\eaf5"}),l.folderActive=new l("folder-active",{fontCharacter:"\\eaf6"}),l.folderOpened=new l("folder-opened",{fontCharacter:"\\eaf7"}),l.gear=new l("gear",{fontCharacter:"\\eaf8"}),l.gift=new l("gift",{fontCharacter:"\\eaf9"}),l.gistSecret=new l("gist-secret",{fontCharacter:"\\eafa"}),l.gist=new l("gist",{fontCharacter:"\\eafb"}),l.gitCommit=new l("git-commit",{fontCharacter:"\\eafc"}),l.gitCompare=new l("git-compare",{fontCharacter:"\\eafd"}),l.gitMerge=new l("git-merge",{fontCharacter:"\\eafe"}),l.githubAction=new l("github-action",{fontCharacter:"\\eaff"}),l.githubAlt=new l("github-alt",{fontCharacter:"\\eb00"}),l.globe=new l("globe",{fontCharacter:"\\eb01"}),l.grabber=new l("grabber",{fontCharacter:"\\eb02"}),l.graph=new l("graph",{fontCharacter:"\\eb03"}),l.gripper=new l("gripper",{fontCharacter:"\\eb04"}),l.heart=new l("heart",{fontCharacter:"\\eb05"}),l.home=new l("home",{fontCharacter:"\\eb06"}),l.horizontalRule=new l("horizontal-rule",{fontCharacter:"\\eb07"}),l.hubot=new l("hubot",{fontCharacter:"\\eb08"}),l.inbox=new l("inbox",{fontCharacter:"\\eb09"}),l.issueClosed=new l("issue-closed",{fontCharacter:"\\eba4"}),l.issueReopened=new l("issue-reopened",{fontCharacter:"\\eb0b"}),l.issues=new l("issues",{fontCharacter:"\\eb0c"}),l.italic=new l("italic",{fontCharacter:"\\eb0d"}),l.jersey=new l("jersey",{fontCharacter:"\\eb0e"}),l.json=new l("json",{fontCharacter:"\\eb0f"}),l.kebabVertical=new l("kebab-vertical",{fontCharacter:"\\eb10"}),l.key=new l("key",{fontCharacter:"\\eb11"}),l.law=new l("law",{fontCharacter:"\\eb12"}),l.lightbulbAutofix=new l("lightbulb-autofix",{fontCharacter:"\\eb13"}),l.linkExternal=new l("link-external",{fontCharacter:"\\eb14"}),l.link=new l("link",{fontCharacter:"\\eb15"}),l.listOrdered=new l("list-ordered",{fontCharacter:"\\eb16"}),l.listUnordered=new l("list-unordered",{fontCharacter:"\\eb17"}),l.liveShare=new l("live-share",{fontCharacter:"\\eb18"}),l.loading=new l("loading",{fontCharacter:"\\eb19"}),l.location=new l("location",{fontCharacter:"\\eb1a"}),l.mailRead=new l("mail-read",{fontCharacter:"\\eb1b"}),l.mail=new l("mail",{fontCharacter:"\\eb1c"}),l.markdown=new l("markdown",{fontCharacter:"\\eb1d"}),l.megaphone=new l("megaphone",{fontCharacter:"\\eb1e"}),l.mention=new l("mention",{fontCharacter:"\\eb1f"}),l.milestone=new l("milestone",{fontCharacter:"\\eb20"}),l.mortarBoard=new l("mortar-board",{fontCharacter:"\\eb21"}),l.move=new l("move",{fontCharacter:"\\eb22"}),l.multipleWindows=new l("multiple-windows",{fontCharacter:"\\eb23"}),l.mute=new l("mute",{fontCharacter:"\\eb24"}),l.noNewline=new l("no-newline",{fontCharacter:"\\eb25"}),l.note=new l("note",{fontCharacter:"\\eb26"}),l.octoface=new l("octoface",{fontCharacter:"\\eb27"}),l.openPreview=new l("open-preview",{fontCharacter:"\\eb28"}),l.package_=new l("package",{fontCharacter:"\\eb29"}),l.paintcan=new l("paintcan",{fontCharacter:"\\eb2a"}),l.pin=new l("pin",{fontCharacter:"\\eb2b"}),l.play=new l("play",{fontCharacter:"\\eb2c"}),l.run=new l("run",{fontCharacter:"\\eb2c"}),l.plug=new l("plug",{fontCharacter:"\\eb2d"}),l.preserveCase=new l("preserve-case",{fontCharacter:"\\eb2e"}),l.preview=new l("preview",{fontCharacter:"\\eb2f"}),l.project=new l("project",{fontCharacter:"\\eb30"}),l.pulse=new l("pulse",{fontCharacter:"\\eb31"}),l.question=new l("question",{fontCharacter:"\\eb32"}),l.quote=new l("quote",{fontCharacter:"\\eb33"}),l.radioTower=new l("radio-tower",{fontCharacter:"\\eb34"}),l.reactions=new l("reactions",{fontCharacter:"\\eb35"}),l.references=new l("references",{fontCharacter:"\\eb36"}),l.refresh=new l("refresh",{fontCharacter:"\\eb37"}),l.regex=new l("regex",{fontCharacter:"\\eb38"}),l.remoteExplorer=new l("remote-explorer",{fontCharacter:"\\eb39"}),l.remote=new l("remote",{fontCharacter:"\\eb3a"}),l.remove=new l("remove",{fontCharacter:"\\eb3b"}),l.replaceAll=new l("replace-all",{fontCharacter:"\\eb3c"}),l.replace=new l("replace",{fontCharacter:"\\eb3d"}),l.repoClone=new l("repo-clone",{fontCharacter:"\\eb3e"}),l.repoForcePush=new l("repo-force-push",{fontCharacter:"\\eb3f"}),l.repoPull=new l("repo-pull",{fontCharacter:"\\eb40"}),l.repoPush=new l("repo-push",{fontCharacter:"\\eb41"}),l.report=new l("report",{fontCharacter:"\\eb42"}),l.requestChanges=new l("request-changes",{fontCharacter:"\\eb43"}),l.rocket=new l("rocket",{fontCharacter:"\\eb44"}),l.rootFolderOpened=new l("root-folder-opened",{fontCharacter:"\\eb45"}),l.rootFolder=new l("root-folder",{fontCharacter:"\\eb46"}),l.rss=new l("rss",{fontCharacter:"\\eb47"}),l.ruby=new l("ruby",{fontCharacter:"\\eb48"}),l.saveAll=new l("save-all",{fontCharacter:"\\eb49"}),l.saveAs=new l("save-as",{fontCharacter:"\\eb4a"}),l.save=new l("save",{fontCharacter:"\\eb4b"}),l.screenFull=new l("screen-full",{fontCharacter:"\\eb4c"}),l.screenNormal=new l("screen-normal",{fontCharacter:"\\eb4d"}),l.searchStop=new l("search-stop",{fontCharacter:"\\eb4e"}),l.server=new l("server",{fontCharacter:"\\eb50"}),l.settingsGear=new l("settings-gear",{fontCharacter:"\\eb51"}),l.settings=new l("settings",{fontCharacter:"\\eb52"}),l.shield=new l("shield",{fontCharacter:"\\eb53"}),l.smiley=new l("smiley",{fontCharacter:"\\eb54"}),l.sortPrecedence=new l("sort-precedence",{fontCharacter:"\\eb55"}),l.splitHorizontal=new l("split-horizontal",{fontCharacter:"\\eb56"}),l.splitVertical=new l("split-vertical",{fontCharacter:"\\eb57"}),l.squirrel=new l("squirrel",{fontCharacter:"\\eb58"}),l.starFull=new l("star-full",{fontCharacter:"\\eb59"}),l.starHalf=new l("star-half",{fontCharacter:"\\eb5a"}),l.symbolClass=new l("symbol-class",{fontCharacter:"\\eb5b"}),l.symbolColor=new l("symbol-color",{fontCharacter:"\\eb5c"}),l.symbolCustomColor=new l("symbol-customcolor",{fontCharacter:"\\eb5c"}),l.symbolConstant=new l("symbol-constant",{fontCharacter:"\\eb5d"}),l.symbolEnumMember=new l("symbol-enum-member",{fontCharacter:"\\eb5e"}),l.symbolField=new l("symbol-field",{fontCharacter:"\\eb5f"}),l.symbolFile=new l("symbol-file",{fontCharacter:"\\eb60"}),l.symbolInterface=new l("symbol-interface",{fontCharacter:"\\eb61"}),l.symbolKeyword=new l("symbol-keyword",{fontCharacter:"\\eb62"}),l.symbolMisc=new l("symbol-misc",{fontCharacter:"\\eb63"}),l.symbolOperator=new l("symbol-operator",{fontCharacter:"\\eb64"}),l.symbolProperty=new l("symbol-property",{fontCharacter:"\\eb65"}),l.wrench=new l("wrench",{fontCharacter:"\\eb65"}),l.wrenchSubaction=new l("wrench-subaction",{fontCharacter:"\\eb65"}),l.symbolSnippet=new l("symbol-snippet",{fontCharacter:"\\eb66"}),l.tasklist=new l("tasklist",{fontCharacter:"\\eb67"}),l.telescope=new l("telescope",{fontCharacter:"\\eb68"}),l.textSize=new l("text-size",{fontCharacter:"\\eb69"}),l.threeBars=new l("three-bars",{fontCharacter:"\\eb6a"}),l.thumbsdown=new l("thumbsdown",{fontCharacter:"\\eb6b"}),l.thumbsup=new l("thumbsup",{fontCharacter:"\\eb6c"}),l.tools=new l("tools",{fontCharacter:"\\eb6d"}),l.triangleDown=new l("triangle-down",{fontCharacter:"\\eb6e"}),l.triangleLeft=new l("triangle-left",{fontCharacter:"\\eb6f"}),l.triangleRight=new l("triangle-right",{fontCharacter:"\\eb70"}),l.triangleUp=new l("triangle-up",{fontCharacter:"\\eb71"}),l.twitter=new l("twitter",{fontCharacter:"\\eb72"}),l.unfold=new l("unfold",{fontCharacter:"\\eb73"}),l.unlock=new l("unlock",{fontCharacter:"\\eb74"}),l.unmute=new l("unmute",{fontCharacter:"\\eb75"}),l.unverified=new l("unverified",{fontCharacter:"\\eb76"}),l.verified=new l("verified",{fontCharacter:"\\eb77"}),l.versions=new l("versions",{fontCharacter:"\\eb78"}),l.vmActive=new l("vm-active",{fontCharacter:"\\eb79"}),l.vmOutline=new l("vm-outline",{fontCharacter:"\\eb7a"}),l.vmRunning=new l("vm-running",{fontCharacter:"\\eb7b"}),l.watch=new l("watch",{fontCharacter:"\\eb7c"}),l.whitespace=new l("whitespace",{fontCharacter:"\\eb7d"}),l.wholeWord=new l("whole-word",{fontCharacter:"\\eb7e"}),l.window=new l("window",{fontCharacter:"\\eb7f"}),l.wordWrap=new l("word-wrap",{fontCharacter:"\\eb80"}),l.zoomIn=new l("zoom-in",{fontCharacter:"\\eb81"}),l.zoomOut=new l("zoom-out",{fontCharacter:"\\eb82"}),l.listFilter=new l("list-filter",{fontCharacter:"\\eb83"}),l.listFlat=new l("list-flat",{fontCharacter:"\\eb84"}),l.listSelection=new l("list-selection",{fontCharacter:"\\eb85"}),l.selection=new l("selection",{fontCharacter:"\\eb85"}),l.listTree=new l("list-tree",{fontCharacter:"\\eb86"}),l.debugBreakpointFunctionUnverified=new l("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),l.debugBreakpointFunction=new l("debug-breakpoint-function",{fontCharacter:"\\eb88"}),l.debugBreakpointFunctionDisabled=new l("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),l.debugStackframeActive=new l("debug-stackframe-active",{fontCharacter:"\\eb89"}),l.circleSmallFilled=new l("circle-small-filled",{fontCharacter:"\\eb8a"}),l.debugStackframeDot=new l("debug-stackframe-dot",l.circleSmallFilled.definition),l.debugStackframe=new l("debug-stackframe",{fontCharacter:"\\eb8b"}),l.debugStackframeFocused=new l("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),l.debugBreakpointUnsupported=new l("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),l.symbolString=new l("symbol-string",{fontCharacter:"\\eb8d"}),l.debugReverseContinue=new l("debug-reverse-continue",{fontCharacter:"\\eb8e"}),l.debugStepBack=new l("debug-step-back",{fontCharacter:"\\eb8f"}),l.debugRestartFrame=new l("debug-restart-frame",{fontCharacter:"\\eb90"}),l.callIncoming=new l("call-incoming",{fontCharacter:"\\eb92"}),l.callOutgoing=new l("call-outgoing",{fontCharacter:"\\eb93"}),l.menu=new l("menu",{fontCharacter:"\\eb94"}),l.expandAll=new l("expand-all",{fontCharacter:"\\eb95"}),l.feedback=new l("feedback",{fontCharacter:"\\eb96"}),l.groupByRefType=new l("group-by-ref-type",{fontCharacter:"\\eb97"}),l.ungroupByRefType=new l("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),l.account=new l("account",{fontCharacter:"\\eb99"}),l.bellDot=new l("bell-dot",{fontCharacter:"\\eb9a"}),l.debugConsole=new l("debug-console",{fontCharacter:"\\eb9b"}),l.library=new l("library",{fontCharacter:"\\eb9c"}),l.output=new l("output",{fontCharacter:"\\eb9d"}),l.runAll=new l("run-all",{fontCharacter:"\\eb9e"}),l.syncIgnored=new l("sync-ignored",{fontCharacter:"\\eb9f"}),l.pinned=new l("pinned",{fontCharacter:"\\eba0"}),l.githubInverted=new l("github-inverted",{fontCharacter:"\\eba1"}),l.debugAlt=new l("debug-alt",{fontCharacter:"\\eb91"}),l.serverProcess=new l("server-process",{fontCharacter:"\\eba2"}),l.serverEnvironment=new l("server-environment",{fontCharacter:"\\eba3"}),l.pass=new l("pass",{fontCharacter:"\\eba4"}),l.stopCircle=new l("stop-circle",{fontCharacter:"\\eba5"}),l.playCircle=new l("play-circle",{fontCharacter:"\\eba6"}),l.record=new l("record",{fontCharacter:"\\eba7"}),l.debugAltSmall=new l("debug-alt-small",{fontCharacter:"\\eba8"}),l.vmConnect=new l("vm-connect",{fontCharacter:"\\eba9"}),l.cloud=new l("cloud",{fontCharacter:"\\ebaa"}),l.merge=new l("merge",{fontCharacter:"\\ebab"}),l.exportIcon=new l("export",{fontCharacter:"\\ebac"}),l.graphLeft=new l("graph-left",{fontCharacter:"\\ebad"}),l.magnet=new l("magnet",{fontCharacter:"\\ebae"}),l.notebook=new l("notebook",{fontCharacter:"\\ebaf"}),l.redo=new l("redo",{fontCharacter:"\\ebb0"}),l.checkAll=new l("check-all",{fontCharacter:"\\ebb1"}),l.pinnedDirty=new l("pinned-dirty",{fontCharacter:"\\ebb2"}),l.passFilled=new l("pass-filled",{fontCharacter:"\\ebb3"}),l.circleLargeFilled=new l("circle-large-filled",{fontCharacter:"\\ebb4"}),l.circleLargeOutline=new l("circle-large-outline",{fontCharacter:"\\ebb5"}),l.combine=new l("combine",{fontCharacter:"\\ebb6"}),l.gather=new l("gather",{fontCharacter:"\\ebb6"}),l.table=new l("table",{fontCharacter:"\\ebb7"}),l.variableGroup=new l("variable-group",{fontCharacter:"\\ebb8"}),l.typeHierarchy=new l("type-hierarchy",{fontCharacter:"\\ebb9"}),l.typeHierarchySub=new l("type-hierarchy-sub",{fontCharacter:"\\ebba"}),l.typeHierarchySuper=new l("type-hierarchy-super",{fontCharacter:"\\ebbb"}),l.gitPullRequestCreate=new l("git-pull-request-create",{fontCharacter:"\\ebbc"}),l.runAbove=new l("run-above",{fontCharacter:"\\ebbd"}),l.runBelow=new l("run-below",{fontCharacter:"\\ebbe"}),l.notebookTemplate=new l("notebook-template",{fontCharacter:"\\ebbf"}),l.debugRerun=new l("debug-rerun",{fontCharacter:"\\ebc0"}),l.workspaceTrusted=new l("workspace-trusted",{fontCharacter:"\\ebc1"}),l.workspaceUntrusted=new l("workspace-untrusted",{fontCharacter:"\\ebc2"}),l.workspaceUnspecified=new l("workspace-unspecified",{fontCharacter:"\\ebc3"}),l.terminalCmd=new l("terminal-cmd",{fontCharacter:"\\ebc4"}),l.terminalDebian=new l("terminal-debian",{fontCharacter:"\\ebc5"}),l.terminalLinux=new l("terminal-linux",{fontCharacter:"\\ebc6"}),l.terminalPowershell=new l("terminal-powershell",{fontCharacter:"\\ebc7"}),l.terminalTmux=new l("terminal-tmux",{fontCharacter:"\\ebc8"}),l.terminalUbuntu=new l("terminal-ubuntu",{fontCharacter:"\\ebc9"}),l.terminalBash=new l("terminal-bash",{fontCharacter:"\\ebca"}),l.arrowSwap=new l("arrow-swap",{fontCharacter:"\\ebcb"}),l.copy=new l("copy",{fontCharacter:"\\ebcc"}),l.personAdd=new l("person-add",{fontCharacter:"\\ebcd"}),l.filterFilled=new l("filter-filled",{fontCharacter:"\\ebce"}),l.wand=new l("wand",{fontCharacter:"\\ebcf"}),l.debugLineByLine=new l("debug-line-by-line",{fontCharacter:"\\ebd0"}),l.inspect=new l("inspect",{fontCharacter:"\\ebd1"}),l.layers=new l("layers",{fontCharacter:"\\ebd2"}),l.layersDot=new l("layers-dot",{fontCharacter:"\\ebd3"}),l.layersActive=new l("layers-active",{fontCharacter:"\\ebd4"}),l.compass=new l("compass",{fontCharacter:"\\ebd5"}),l.compassDot=new l("compass-dot",{fontCharacter:"\\ebd6"}),l.compassActive=new l("compass-active",{fontCharacter:"\\ebd7"}),l.azure=new l("azure",{fontCharacter:"\\ebd8"}),l.issueDraft=new l("issue-draft",{fontCharacter:"\\ebd9"}),l.gitPullRequestClosed=new l("git-pull-request-closed",{fontCharacter:"\\ebda"}),l.gitPullRequestDraft=new l("git-pull-request-draft",{fontCharacter:"\\ebdb"}),l.debugAll=new l("debug-all",{fontCharacter:"\\ebdc"}),l.debugCoverage=new l("debug-coverage",{fontCharacter:"\\ebdd"}),l.runErrors=new l("run-errors",{fontCharacter:"\\ebde"}),l.folderLibrary=new l("folder-library",{fontCharacter:"\\ebdf"}),l.debugContinueSmall=new l("debug-continue-small",{fontCharacter:"\\ebe0"}),l.beakerStop=new l("beaker-stop",{fontCharacter:"\\ebe1"}),l.graphLine=new l("graph-line",{fontCharacter:"\\ebe2"}),l.graphScatter=new l("graph-scatter",{fontCharacter:"\\ebe3"}),l.pieChart=new l("pie-chart",{fontCharacter:"\\ebe4"}),l.bracket=new l("bracket",l.json.definition),l.bracketDot=new l("bracket-dot",{fontCharacter:"\\ebe5"}),l.bracketError=new l("bracket-error",{fontCharacter:"\\ebe6"}),l.lockSmall=new l("lock-small",{fontCharacter:"\\ebe7"}),l.azureDevops=new l("azure-devops",{fontCharacter:"\\ebe8"}),l.verifiedFilled=new l("verified-filled",{fontCharacter:"\\ebe9"}),l.newLine=new l("newline",{fontCharacter:"\\ebea"}),l.layout=new l("layout",{fontCharacter:"\\ebeb"}),l.layoutActivitybarLeft=new l("layout-activitybar-left",{fontCharacter:"\\ebec"}),l.layoutActivitybarRight=new l("layout-activitybar-right",{fontCharacter:"\\ebed"}),l.layoutPanelLeft=new l("layout-panel-left",{fontCharacter:"\\ebee"}),l.layoutPanelCenter=new l("layout-panel-center",{fontCharacter:"\\ebef"}),l.layoutPanelJustify=new l("layout-panel-justify",{fontCharacter:"\\ebf0"}),l.layoutPanelRight=new l("layout-panel-right",{fontCharacter:"\\ebf1"}),l.layoutPanel=new l("layout-panel",{fontCharacter:"\\ebf2"}),l.layoutSidebarLeft=new l("layout-sidebar-left",{fontCharacter:"\\ebf3"}),l.layoutSidebarRight=new l("layout-sidebar-right",{fontCharacter:"\\ebf4"}),l.layoutStatusbar=new l("layout-statusbar",{fontCharacter:"\\ebf5"}),l.layoutMenubar=new l("layout-menubar",{fontCharacter:"\\ebf6"}),l.layoutCentered=new l("layout-centered",{fontCharacter:"\\ebf7"}),l.layoutSidebarRightOff=new l("layout-sidebar-right-off",{fontCharacter:"\\ec00"}),l.layoutPanelOff=new l("layout-panel-off",{fontCharacter:"\\ec01"}),l.layoutSidebarLeftOff=new l("layout-sidebar-left-off",{fontCharacter:"\\ec02"}),l.target=new l("target",{fontCharacter:"\\ebf8"}),l.indent=new l("indent",{fontCharacter:"\\ebf9"}),l.recordSmall=new l("record-small",{fontCharacter:"\\ebfa"}),l.errorSmall=new l("error-small",{fontCharacter:"\\ebfb"}),l.arrowCircleDown=new l("arrow-circle-down",{fontCharacter:"\\ebfc"}),l.arrowCircleLeft=new l("arrow-circle-left",{fontCharacter:"\\ebfd"}),l.arrowCircleRight=new l("arrow-circle-right",{fontCharacter:"\\ebfe"}),l.arrowCircleUp=new l("arrow-circle-up",{fontCharacter:"\\ebff"}),l.heartFilled=new l("heart-filled",{fontCharacter:"\\ec04"}),l.map=new l("map",{fontCharacter:"\\ec05"}),l.mapFilled=new l("map-filled",{fontCharacter:"\\ec06"}),l.circleSmall=new l("circle-small",{fontCharacter:"\\ec07"}),l.bellSlash=new l("bell-slash",{fontCharacter:"\\ec08"}),l.bellSlashDot=new l("bell-slash-dot",{fontCharacter:"\\ec09"}),l.commentUnresolved=new l("comment-unresolved",{fontCharacter:"\\ec0a"}),l.gitPullRequestGoToChanges=new l("git-pull-request-go-to-changes",{fontCharacter:"\\ec0b"}),l.gitPullRequestNewChanges=new l("git-pull-request-new-changes",{fontCharacter:"\\ec0c"}),l.dialogError=new l("dialog-error",l.error.definition),l.dialogWarning=new l("dialog-warning",l.warning.definition),l.dialogInfo=new l("dialog-info",l.info.definition),l.dialogClose=new l("dialog-close",l.close.definition),l.treeItemExpanded=new l("tree-item-expanded",l.chevronDown.definition),l.treeFilterOnTypeOn=new l("tree-filter-on-type-on",l.listFilter.definition),l.treeFilterOnTypeOff=new l("tree-filter-on-type-off",l.listSelection.definition),l.treeFilterClear=new l("tree-filter-clear",l.close.definition),l.treeItemLoading=new l("tree-item-loading",l.loading.definition),l.menuSelection=new l("menu-selection",l.check.definition),l.menuSubmenu=new l("menu-submenu",l.chevronRight.definition),l.menuBarMore=new l("menubar-more",l.more.definition),l.scrollbarButtonLeft=new l("scrollbar-button-left",l.triangleLeft.definition),l.scrollbarButtonRight=new l("scrollbar-button-right",l.triangleRight.definition),l.scrollbarButtonUp=new l("scrollbar-button-up",l.triangleUp.definition),l.scrollbarButtonDown=new l("scrollbar-button-down",l.triangleDown.definition),l.toolBarMore=new l("toolbar-more",l.more.definition),l.quickInputBack=new l("quick-input-back",l.arrowLeft.definition),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";var t=new RegExp("^(".concat(e.iconNameExpression,")(").concat(e.iconModifierExpression,")?$"));function n(e){if(e instanceof l)return["codicon","codicon-"+e.id];var r=t.exec(e.id);if(!r)return n(l.error);var o=(0,i.Z)(r,3),a=o[1],s=o[2],c=["codicon","codicon-"+a];return s&&c.push("codicon-modifier-"+s.substr(1)),c}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")}}(s||(s={}))},62458:function(e,t,n){"use strict";n.d(t,{Il:function(){return c},VS:function(){return a},tx:function(){return l}});var i=n(15671),r=n(43144);function o(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}var a=function(){function e(t,n,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;(0,i.Z)(this,e),this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,t)),this.g=0|Math.min(255,Math.max(0,n)),this.b=0|Math.min(255,Math.max(0,r)),this.a=o(Math.max(Math.min(1,a),0),3)}return(0,r.Z)(e,null,[{key:"equals",value:function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}]),e}(),s=function(){function e(t,n,r,a){(0,i.Z)(this,e),this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,t),0),this.s=o(Math.max(Math.min(1,n),0),3),this.l=o(Math.max(Math.min(1,r),0),3),this.a=o(Math.max(Math.min(1,a),0),3)}return(0,r.Z)(e,null,[{key:"equals",value:function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}},{key:"fromRGBA",value:function(t){var n=t.r/255,i=t.g/255,r=t.b/255,o=t.a,a=Math.max(n,i,r),s=Math.min(n,i,r),l=0,c=0,u=(s+a)/2,d=a-s;if(d>0){switch(c=Math.min(u<=.5?d/(2*u):d/(2-2*u),1),a){case n:l=(i-r)/d+(i<r?6:0);break;case i:l=(r-n)/d+2;break;case r:l=(n-i)/d+4}l*=60,l=Math.round(l)}return new e(l,c,u,o)}},{key:"_hue2rgb",value:function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}},{key:"toRGBA",value:function(t){var n,i,r,o=t.h/360,s=t.s,l=t.l,c=t.a;if(0===s)n=i=r=l;else{var u=l<.5?l*(1+s):l+s-l*s,d=2*l-u;n=e._hue2rgb(d,u,o+1/3),i=e._hue2rgb(d,u,o),r=e._hue2rgb(d,u,o-1/3)}return new a(Math.round(255*n),Math.round(255*i),Math.round(255*r),c)}}]),e}(),l=function(){function e(t,n,r,a){(0,i.Z)(this,e),this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,t),0),this.s=o(Math.max(Math.min(1,n),0),3),this.v=o(Math.max(Math.min(1,r),0),3),this.a=o(Math.max(Math.min(1,a),0),3)}return(0,r.Z)(e,null,[{key:"equals",value:function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}},{key:"fromRGBA",value:function(t){var n,i=t.r/255,r=t.g/255,o=t.b/255,a=Math.max(i,r,o),s=a-Math.min(i,r,o),l=0===a?0:s/a;return n=0===s?0:a===i?((r-o)/s%6+6)%6:a===r?(o-i)/s+2:(i-r)/s+4,new e(Math.round(60*n),l,a,t.a)}},{key:"toRGBA",value:function(e){var t=e.h,n=e.s,i=e.v,r=e.a,o=i*n,s=o*(1-Math.abs(t/60%2-1)),l=i-o,c=0,u=0,d=0;return t<60?(c=o,u=s):t<120?(c=s,u=o):t<180?(u=o,d=s):t<240?(u=s,d=o):t<300?(c=s,d=o):t<=360&&(c=o,d=s),c=Math.round(255*(c+l)),u=Math.round(255*(u+l)),d=Math.round(255*(d+l)),new a(c,u,d,r)}}]),e}(),c=function(){function e(t){if((0,i.Z)(this,e),!t)throw new Error("Color needs a value");if(t instanceof a)this.rgba=t;else if(t instanceof s)this._hsla=t,this.rgba=s.toRGBA(t);else{if(!(t instanceof l))throw new Error("Invalid color ctor argument");this._hsva=t,this.rgba=l.toRGBA(t)}}return(0,r.Z)(e,[{key:"hsla",get:function(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}},{key:"hsva",get:function(){return this._hsva?this._hsva:l.fromRGBA(this.rgba)}},{key:"equals",value:function(e){return!!e&&a.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&l.equals(this.hsva,e.hsva)}},{key:"getRelativeLuminance",value:function(){return o(.2126*e._relativeLuminanceForComponent(this.rgba.r)+.7152*e._relativeLuminanceForComponent(this.rgba.g)+.0722*e._relativeLuminanceForComponent(this.rgba.b),4)}},{key:"isLighter",value:function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}},{key:"isLighterThan",value:function(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}},{key:"isDarkerThan",value:function(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}},{key:"lighten",value:function(t){return new e(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}},{key:"darken",value:function(t){return new e(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}},{key:"transparent",value:function(t){var n=this.rgba,i=n.r,r=n.g,o=n.b,s=n.a;return new e(new a(i,r,o,s*t))}},{key:"isTransparent",value:function(){return 0===this.rgba.a}},{key:"isOpaque",value:function(){return 1===this.rgba.a}},{key:"opposite",value:function(){return new e(new a(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}},{key:"toString",value:function(){return this._toString||(this._toString=e.Format.CSS.format(this)),this._toString}}],[{key:"fromHex",value:function(t){return e.Format.CSS.parseHex(t)||e.red}},{key:"_relativeLuminanceForComponent",value:function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}},{key:"getLighterColor",value:function(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;var i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}},{key:"getDarkerColor",value:function(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;var i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}}]),e}();c.white=new c(new a(255,255,255,1)),c.black=new c(new a(0,0,0,1)),c.red=new c(new a(255,0,0,1)),c.blue=new c(new a(0,0,255,1)),c.green=new c(new a(0,255,0,1)),c.cyan=new c(new a(0,255,255,1)),c.lightgrey=new c(new a(211,211,211,1)),c.transparent=new c(new a(0,0,0,0)),function(e){!function(t){!function(t){function n(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}function i(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?"rgb(".concat(t.rgba.r,", ").concat(t.rgba.g,", ").concat(t.rgba.b,")"):e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return"rgba(".concat(e.rgba.r,", ").concat(e.rgba.g,", ").concat(e.rgba.b,", ").concat(+e.rgba.a.toFixed(2),")")},t.formatHSL=function(t){return 1===t.hsla.a?"hsl(".concat(t.hsla.h,", ").concat((100*t.hsla.s).toFixed(2),"%, ").concat((100*t.hsla.l).toFixed(2),"%)"):e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return"hsla(".concat(e.hsla.h,", ").concat((100*e.hsla.s).toFixed(2),"%, ").concat((100*e.hsla.l).toFixed(2),"%, ").concat(e.hsla.a.toFixed(2),")")},t.formatHex=function(e){return"#".concat(n(e.rgba.r)).concat(n(e.rgba.g)).concat(n(e.rgba.b))},t.formatHexA=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):"#".concat(n(t.rgba.r)).concat(n(t.rgba.g)).concat(n(t.rgba.b)).concat(n(Math.round(255*t.rgba.a)))},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){var n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){var r=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),o=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),s=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new a(r,o,s,1))}if(9===n){var l=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),c=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),u=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),d=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new a(l,c,u,d/255))}if(4===n){var h=i(t.charCodeAt(1)),f=i(t.charCodeAt(2)),p=i(t.charCodeAt(3));return new e(new a(16*h+h,16*f+f,16*p+p))}if(5===n){var g=i(t.charCodeAt(1)),v=i(t.charCodeAt(2)),m=i(t.charCodeAt(3)),y=i(t.charCodeAt(4));return new e(new a(16*g+g,16*v+v,16*m+m,(16*y+y)/255))}return null}}(t.CSS||(t.CSS={}))}(e.Format||(e.Format={}))}(c||(c={}))},70456:function(e,t,n){"use strict";n.d(t,{Hl:function(){return d},Ix:function(){return u},ZO:function(){return c}});var i=n(29439),r=n(37762),o=n(15671),a=n(43144),s=n(74165),l=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};function c(e){var t=this;return{asString:function(){return l(t,void 0,void 0,(0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e);case 1:case"end":return t.stop()}}),t)})))},asFile:function(){},value:"string"===typeof e?e:void 0}}function u(e,t,n){var i=this;return{asString:function(){return l(i,void 0,void 0,(0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","");case 1:case"end":return e.stop()}}),e)})))},asFile:function(){return{name:e,uri:t,data:n}},value:void 0}}var d=function(){function e(){(0,o.Z)(this,e),this._entries=new Map}return(0,a.Z)(e,[{key:"size",get:function(){return this._entries.size}},{key:"has",value:function(e){return this._entries.has(this.toKey(e))}},{key:"get",value:function(e){var t;return null===(t=this._entries.get(this.toKey(e)))||void 0===t?void 0:t[0]}},{key:"append",value:function(e,t){var n=this._entries.get(e);n?n.push(t):this._entries.set(this.toKey(e),[t])}},{key:"replace",value:function(e,t){this._entries.set(this.toKey(e),[t])}},{key:"delete",value:function(e){this._entries.delete(this.toKey(e))}},{key:"entries",value:(0,s.Z)().mark((function e(){var t,n,o,a,l,c,u,d;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,r.Z)(this._entries.entries()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=24;break}o=(0,i.Z)(n.value,2),a=o[0],l=o[1],c=(0,r.Z)(l),e.prev=6,c.s();case 8:if((u=c.n()).done){e.next=14;break}return d=u.value,e.next=12,[a,d];case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),c.e(e.t0);case 19:return e.prev=19,c.f(),e.finish(19);case 22:e.next=3;break;case 24:e.next=29;break;case 26:e.prev=26,e.t1=e.catch(1),t.e(e.t1);case 29:return e.prev=29,t.f(),e.finish(29);case 32:case"end":return e.stop()}}),e,this,[[1,26,29,32],[6,16,19,22]])}))},{key:"values",value:function(){return Array.from(this._entries.values()).flat()}},{key:"forEach",value:function(e){var t,n=(0,r.Z)(this.entries());try{for(n.s();!(t=n.n()).done;){var o=(0,i.Z)(t.value,2),a=o[0];e(o[1],a)}}catch(s){n.e(s)}finally{n.f()}}},{key:"toKey",value:function(e){return e.toLowerCase()}}]),e}()},24030:function(e,t,n){"use strict";function i(e,t,n){var i=null,r=null;if("function"===typeof n.value?(i="value",0!==(r=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof n.get&&(i="get",r=n.get),!r)throw new Error("not supported");var o="$memoize$".concat(t);n[i]=function(){if(!this.hasOwnProperty(o)){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:r.apply(this,t)})}return this[o]}}n.d(t,{H:function(){return i}})},7208:function(e,t,n){"use strict";n.d(t,{Hs:function(){return f},a$:function(){return c}});var i=n(29439),r=n(15671),o=n(43144),a=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.originalStart=t,this.originalLength=n,this.modifiedStart=i,this.modifiedLength=o}return(0,o.Z)(e,[{key:"getOriginalEnd",value:function(){return this.originalStart+this.originalLength}},{key:"getModifiedEnd",value:function(){return this.modifiedStart+this.modifiedLength}}]),e}(),s=n(57741),l=function(){function e(t){(0,r.Z)(this,e),this.source=t}return(0,o.Z)(e,[{key:"getElements",value:function(){for(var e=this.source,t=new Int32Array(e.length),n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}]),e}();function c(e,t,n){return new f(new l(e),new l(t)).ComputeDiff(n).changes}var u=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,null,[{key:"Assert",value:function(e,t){if(!e)throw new Error(t)}}]),e}(),d=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,null,[{key:"Copy",value:function(e,t,n,i,r){for(var o=0;o<r;o++)n[i+o]=e[t+o]}},{key:"Copy2",value:function(e,t,n,i,r){for(var o=0;o<r;o++)n[i+o]=e[t+o]}}]),e}(),h=function(){function e(){(0,r.Z)(this,e),this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}return(0,o.Z)(e,[{key:"MarkNextChange",value:function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new a(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}},{key:"AddOriginalElement",value:function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}},{key:"AddModifiedElement",value:function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}},{key:"getChanges",value:function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}},{key:"getReverseChanges",value:function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}]),e}(),f=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,r.Z)(this,e),this.ContinueProcessingPredicate=o,this._originalSequence=t,this._modifiedSequence=n;var a=e._getElements(t),s=(0,i.Z)(a,3),l=s[0],c=s[1],u=s[2],d=e._getElements(n),h=(0,i.Z)(d,3),f=h[0],p=h[1],g=h[2];this._hasStrings=u&&g,this._originalStringElements=l,this._originalElementsOrHash=c,this._modifiedStringElements=f,this._modifiedElementsOrHash=p,this.m_forwardHistory=[],this.m_reverseHistory=[]}return(0,o.Z)(e,[{key:"ElementsAreEqual",value:function(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}},{key:"ElementsAreStrictEqual",value:function(t,n){return!!this.ElementsAreEqual(t,n)&&e._getStrictElement(this._originalSequence,t)===e._getStrictElement(this._modifiedSequence,n)}},{key:"OriginalElementsAreEqual",value:function(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}},{key:"ModifiedElementsAreEqual",value:function(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}},{key:"ComputeDiff",value:function(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}},{key:"_ComputeDiff",value:function(e,t,n,i,r){var o=[!1],a=this.ComputeDiffRecursive(e,t,n,i,o);return r&&(a=this.PrettifyChanges(a)),{quitEarly:o[0],changes:a}}},{key:"ComputeDiffRecursive",value:function(e,t,n,i,r){for(r[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;var o;if(e>t||n>i)return n<=i?(u.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new a(e,0,n,i-n+1)]):e<=t?(u.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),o=[new a(e,t-e+1,n,0)]):(u.Assert(e===t+1,"originalStart should only be one more than originalEnd"),u.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o;var s=[0],l=[0],c=this.ComputeRecursionPoint(e,t,n,i,s,l,r),d=s[0],h=l[0];if(null!==c)return c;if(!r[0]){var f=this.ComputeDiffRecursive(e,d,n,h,r),p=[];return p=r[0]?[new a(d+1,t-(d+1)+1,h+1,i-(h+1)+1)]:this.ComputeDiffRecursive(d+1,t,h+1,i,r),this.ConcatenateChanges(f,p)}return[new a(e,t-e+1,n,i-n+1)]}},{key:"WALKTRACE",value:function(e,t,n,i,r,o,s,l,c,u,d,f,p,g,v,m,y,_){var b,C=null,S=new h,w=t,k=n,x=p[0]-m[0]-i,E=-1073741824,T=this.m_forwardHistory.length-1;do{var N=x+e;N===w||N<k&&c[N-1]<c[N+1]?(g=(d=c[N+1])-x-i,d<E&&S.MarkNextChange(),E=d,S.AddModifiedElement(d+1,g),x=N+1-e):(g=(d=c[N-1]+1)-x-i,d<E&&S.MarkNextChange(),E=d-1,S.AddOriginalElement(d,g+1),x=N-1-e),T>=0&&(e=(c=this.m_forwardHistory[T])[0],w=1,k=c.length-1)}while(--T>=-1);if(b=S.getReverseChanges(),_[0]){var I=p[0]+1,D=m[0]+1;if(null!==b&&b.length>0){var L=b[b.length-1];I=Math.max(I,L.getOriginalEnd()),D=Math.max(D,L.getModifiedEnd())}C=[new a(I,f-I+1,D,v-D+1)]}else{S=new h,w=o,k=s,x=p[0]-m[0]-l,E=1073741824,T=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var O=x+r;O===w||O<k&&u[O-1]>=u[O+1]?(g=(d=u[O+1]-1)-x-l,d>E&&S.MarkNextChange(),E=d+1,S.AddOriginalElement(d+1,g+1),x=O+1-r):(g=(d=u[O-1])-x-l,d>E&&S.MarkNextChange(),E=d,S.AddModifiedElement(d+1,g+1),x=O-1-r),T>=0&&(r=(u=this.m_reverseHistory[T])[0],w=1,k=u.length-1)}while(--T>=-1);C=S.getChanges()}return this.ConcatenateChanges(b,C)}},{key:"ComputeRecursionPoint",value:function(e,t,n,i,r,o,s){var l=0,c=0,u=0,h=0,f=0,p=0;e--,n--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var g=t-e+(i-n),v=g+1,m=new Int32Array(v),y=new Int32Array(v),_=i-n,b=t-e,C=e-n,S=t-i,w=(b-_)%2===0;m[_]=e,y[b]=t,s[0]=!1;for(var k=1;k<=g/2+1;k++){var x=0,E=0;u=this.ClipDiagonalBound(_-k,k,_,v),h=this.ClipDiagonalBound(_+k,k,_,v);for(var T=u;T<=h;T+=2){c=(l=T===u||T<h&&m[T-1]<m[T+1]?m[T+1]:m[T-1]+1)-(T-_)-C;for(var N=l;l<t&&c<i&&this.ElementsAreEqual(l+1,c+1);)l++,c++;if(m[T]=l,l+c>x+E&&(x=l,E=c),!w&&Math.abs(T-b)<=k-1&&l>=y[T])return r[0]=l,o[0]=c,N<=y[T]&&k<=1448?this.WALKTRACE(_,u,h,C,b,f,p,S,m,y,l,t,r,c,i,o,w,s):null}var I=(x-e+(E-n)-k)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(x,I))return s[0]=!0,r[0]=x,o[0]=E,I>0&&k<=1448?this.WALKTRACE(_,u,h,C,b,f,p,S,m,y,l,t,r,c,i,o,w,s):(e++,n++,[new a(e,t-e+1,n,i-n+1)]);f=this.ClipDiagonalBound(b-k,k,b,v),p=this.ClipDiagonalBound(b+k,k,b,v);for(var D=f;D<=p;D+=2){c=(l=D===f||D<p&&y[D-1]>=y[D+1]?y[D+1]-1:y[D-1])-(D-b)-S;for(var L=l;l>e&&c>n&&this.ElementsAreEqual(l,c);)l--,c--;if(y[D]=l,w&&Math.abs(D-_)<=k&&l<=m[D])return r[0]=l,o[0]=c,L>=m[D]&&k<=1448?this.WALKTRACE(_,u,h,C,b,f,p,S,m,y,l,t,r,c,i,o,w,s):null}if(k<=1447){var O=new Int32Array(h-u+2);O[0]=_-u+1,d.Copy2(m,u,O,1,h-u+1),this.m_forwardHistory.push(O),(O=new Int32Array(p-f+2))[0]=b-f+1,d.Copy2(y,f,O,1,p-f+1),this.m_reverseHistory.push(O)}}return this.WALKTRACE(_,u,h,C,b,f,p,S,m,y,l,t,r,c,i,o,w,s)}},{key:"PrettifyChanges",value:function(e){for(var t=0;t<e.length;t++){for(var n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,o=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,a=n.originalLength>0,s=n.modifiedLength>0;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<o&&(!a||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){var l=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!l)break;n.originalStart++,n.modifiedStart++}var c=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],c)&&(e[t]=c[0],e.splice(t+1,1),t--)}for(var u=e.length-1;u>=0;u--){var d=e[u],h=0,f=0;if(u>0){var p=e[u-1];h=p.originalStart+p.originalLength,f=p.modifiedStart+p.modifiedLength}for(var g=d.originalLength>0,v=d.modifiedLength>0,m=0,y=this._boundaryScore(d.originalStart,d.originalLength,d.modifiedStart,d.modifiedLength),_=1;;_++){var b=d.originalStart-_,C=d.modifiedStart-_;if(b<h||C<f)break;if(g&&!this.OriginalElementsAreEqual(b,b+d.originalLength))break;if(v&&!this.ModifiedElementsAreEqual(C,C+d.modifiedLength))break;var S=(b===h&&C===f?5:0)+this._boundaryScore(b,d.originalLength,C,d.modifiedLength);S>y&&(y=S,m=_)}d.originalStart-=m,d.modifiedStart-=m;var w=[null];u>0&&this.ChangesOverlap(e[u-1],e[u],w)&&(e[u-1]=w[0],e.splice(u,1),u++)}if(this._hasStrings)for(var k=1,x=e.length;k<x;k++){var E=e[k-1],T=e[k],N=T.originalStart-E.originalStart-E.originalLength,I=E.originalStart,D=T.originalStart+T.originalLength,L=D-I,O=E.modifiedStart,R=T.modifiedStart+T.modifiedLength,A=R-O;if(N<5&&L<20&&A<20){var M=this._findBetterContiguousSequence(I,L,O,A,N);if(M){var P=(0,i.Z)(M,2),Z=P[0],F=P[1];Z===E.originalStart+E.originalLength&&F===E.modifiedStart+E.modifiedLength||(E.originalLength=Z-E.originalStart,E.modifiedLength=F-E.modifiedStart,T.originalStart=Z+N,T.modifiedStart=F+N,T.originalLength=D-T.originalStart,T.modifiedLength=R-T.modifiedStart)}}}return e}},{key:"_findBetterContiguousSequence",value:function(e,t,n,i,r){if(t<r||i<r)return null;for(var o=e+t-r+1,a=n+i-r+1,s=0,l=0,c=0,u=e;u<o;u++)for(var d=n;d<a;d++){var h=this._contiguousSequenceScore(u,d,r);h>0&&h>s&&(s=h,l=u,c=d)}return s>0?[l,c]:null}},{key:"_contiguousSequenceScore",value:function(e,t,n){for(var i=0,r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}},{key:"_OriginalIsBoundary",value:function(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}},{key:"_OriginalRegionIsBoundary",value:function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}},{key:"_ModifiedIsBoundary",value:function(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}},{key:"_ModifiedRegionIsBoundary",value:function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}},{key:"_boundaryScore",value:function(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}},{key:"ConcatenateChanges",value:function(e,t){var n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var i=new Array(e.length+t.length-1);return d.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],d.Copy(t,1,i,e.length,t.length-1),i}var r=new Array(e.length+t.length);return d.Copy(e,0,r,0,e.length),d.Copy(t,0,r,e.length,t.length),r}},{key:"ChangesOverlap",value:function(e,t,n){if(u.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),u.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var i=e.originalStart,r=e.originalLength,o=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new a(i,r,o,s),!0}return n[0]=null,!1}},{key:"ClipDiagonalBound",value:function(e,t,n,i){if(e>=0&&e<i)return e;var r=t%2===0;return e<0?r===(n%2===0)?0:1:r===((i-n-1)%2===0)?i-1:i-2}}],[{key:"_isStringArray",value:function(e){return e.length>0&&"string"===typeof e[0]}},{key:"_getElements",value:function(t){var n=t.getElements();if(e._isStringArray(n)){for(var i=new Int32Array(n.length),r=0,o=n.length;r<o;r++)i[r]=(0,s.Cv)(n[r],0);return[n,i,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}},{key:"_getStrictElement",value:function(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}}]),e}()},14173:function(e,t,n){"use strict";n.d(t,{B8:function(){return _},Cp:function(){return d},F0:function(){return v},FU:function(){return g},L6:function(){return y},b1:function(){return m},dL:function(){return u},he:function(){return C},n2:function(){return p},ri:function(){return h}});var i=n(97326),r=n(60136),o=n(27277),a=n(28664),s=n(15671),l=n(43144),c=new(function(){function e(){(0,s.Z)(this,e),this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((function(){if(e.stack){if(b.isErrorNoTelemetry(e))throw new b(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}return(0,l.Z)(e,[{key:"emit",value:function(e){this.listeners.forEach((function(t){t(e)}))}},{key:"onUnexpectedError",value:function(e){this.unexpectedErrorHandler(e),this.emit(e)}},{key:"onUnexpectedExternalError",value:function(e){this.unexpectedErrorHandler(e)}}]),e}());function u(e){p(e)||c.onUnexpectedError(e)}function d(e){p(e)||c.onUnexpectedExternalError(e)}function h(e){return e instanceof Error?{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack,noTelemetry:b.isErrorNoTelemetry(e)}:e}var f="Canceled";function p(e){return e instanceof g||e instanceof Error&&e.name===f&&e.message===f}var g=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;return(0,s.Z)(this,n),(e=t.call(this,f)).name=e.message,e}return(0,l.Z)(n)}((0,a.Z)(Error));function v(){var e=new Error(f);return e.name=e.message,e}function m(e){return e?new Error("Illegal argument: ".concat(e)):new Error("Illegal argument")}function y(e){return e?new Error("Illegal state: ".concat(e)):new Error("Illegal state")}var _=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var i;return(0,s.Z)(this,n),i=t.call(this,"NotSupported"),e&&(i.message=e),i}return(0,l.Z)(n)}((0,a.Z)(Error)),b=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var i;return(0,s.Z)(this,n),(i=t.call(this,e)).name="ErrorNoTelemetry",i}return(0,l.Z)(n,null,[{key:"fromError",value:function(e){if(e instanceof n)return e;var t=new n;return t.message=e.message,t.stack=e.stack,t}},{key:"isErrorNoTelemetry",value:function(e){return"ErrorNoTelemetry"===e.name}}]),n}((0,a.Z)(Error)),C=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this,e||"An unexpected bug occurred."),Object.setPrototypeOf((0,i.Z)(r),n.prototype),r}return(0,l.Z)(n)}((0,a.Z)(Error))},73097:function(e,t,n){"use strict";n.d(t,{D0:function(){return k},E7:function(){return x},F3:function(){return b},K3:function(){return w},Q5:function(){return _},ZD:function(){return E},ju:function(){return i}});var i,r=n(11752),o=n(61120),a=n(60136),s=n(27277),l=(n(29439),n(37762)),c=n(15671),u=n(43144),d=n(93433),h=n(14173),f=n(11860),p=n(17832),g=n(25);!function(e){function t(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0,r=!1,o=void 0;return o=e((function(e){if(!r)return o?o.dispose():r=!0,t.call(n,e)}),null,i),r&&o.dispose(),o}}function n(e,t,n){return a((function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;return e((function(e){return n.call(i,t(e))}),null,r)}),n)}function i(e,t,n){return a((function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;return e((function(e){t(e),n.call(i,e)}),null,r)}),n)}function r(e,t,n){return a((function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;return e((function(e){return t(e)&&n.call(i,e)}),null,r)}),n)}function o(e,t,i,r){var o=i;return n(e,(function(e){return o=t(o,e)}),r)}function a(e,t){var n,i={onFirstListenerAdd:function(){n=e(r.fire,r)},onLastListenerRemove:function(){null===n||void 0===n||n.dispose()}},r=new _(i);return null===t||void 0===t||t.add(r),r.event}function s(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=void 0,l=void 0,c=0,u={leakWarningThreshold:o,onFirstListenerAdd:function(){n=e((function(e){c++,s=t(s,e),r&&!l&&(d.fire(s),s=void 0),clearTimeout(l),l=setTimeout((function(){var e=s;s=void 0,l=void 0,(!r||c>1)&&d.fire(e),c=0}),i)}))},onLastListenerRemove:function(){n.dispose()}},d=new _(u);return null===a||void 0===a||a.add(d),d.event}function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){return e===t},i=arguments.length>2?arguments[2]:void 0,o=!0;return r(e,(function(e){var i=o||!n(e,t);return o=!1,t=e,i}),i)}e.None=function(){return f.JT.None},e.once=t,e.map=n,e.forEach=i,e.filter=r,e.signal=function(e){return e},e.any=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;return f.F8.apply(void 0,(0,d.Z)(t.map((function(t){return t((function(t){return e.call(n,t)}),null,i)}))))}},e.reduce=o,e.debounce=s,e.latch=l,e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(function(e){return!n(e)}),i)]},e.buffer=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=n.slice(),r=e((function(e){i?i.push(e):a.fire(e)})),o=function(){null===i||void 0===i||i.forEach((function(e){return a.fire(e)})),i=null},a=new _({onFirstListenerAdd:function(){r||(r=e((function(e){return a.fire(e)})))},onFirstListenerDidAdd:function(){i&&(t?setTimeout(o):o())},onLastListenerRemove:function(){r&&r.dispose(),r=null}});return a.event};var h=function(){function e(t){(0,c.Z)(this,e),this.event=t,this.disposables=new f.SL}return(0,u.Z)(e,[{key:"map",value:function(t){return new e(n(this.event,t,this.disposables))}},{key:"forEach",value:function(t){return new e(i(this.event,t,this.disposables))}},{key:"filter",value:function(t){return new e(r(this.event,t,this.disposables))}},{key:"reduce",value:function(t,n){return new e(o(this.event,t,n,this.disposables))}},{key:"latch",value:function(){return new e(l(this.event,void 0,this.disposables))}},{key:"debounce",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return new e(s(this.event,t,n,i,r,this.disposables))}},{key:"on",value:function(e,t,n){return this.event(e,t,n)}},{key:"once",value:function(e,n,i){return t(this.event)(e,n,i)}},{key:"dispose",value:function(){this.disposables.dispose()}}]),e}();e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},i=function(){return a.fire(n.apply(void 0,arguments))},r=function(){return e.on(t,i)},o=function(){return e.removeListener(t,i)},a=new _({onFirstListenerAdd:r,onLastListenerRemove:o});return a.event},e.fromDOMEventEmitter=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},i=function(){return a.fire(n.apply(void 0,arguments))},r=function(){return e.addEventListener(t,i)},o=function(){return e.removeEventListener(t,i)},a=new _({onFirstListenerAdd:r,onLastListenerRemove:o});return a.event},e.toPromise=function(e){return new Promise((function(n){return t(e)(n)}))},e.runAndSubscribe=function(e,t){return t(void 0),e((function(e){return t(e)}))},e.runAndSubscribeWithStore=function(e,t){var n=null;function i(e){null===n||void 0===n||n.dispose(),n=new f.SL,t(e,n)}i(void 0);var r=e((function(e){return i(e)}));return(0,f.OF)((function(){r.dispose(),null===n||void 0===n||n.dispose()}))};var p=function(){function e(t,n){var i=this;(0,c.Z)(this,e),this.obs=t,this._counter=0,this._hasChanged=!1;var r={onFirstListenerAdd:function(){t.addObserver(i)},onLastListenerRemove:function(){t.removeObserver(i)}};this.emitter=new _(r),n&&n.add(this.emitter)}return(0,u.Z)(e,[{key:"beginUpdate",value:function(e){this._counter++}},{key:"handleChange",value:function(e,t){this._hasChanged=!0}},{key:"endUpdate",value:function(e){0===--this._counter&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}]),e}();e.fromObservable=function(e,t){return new p(e,t).emitter.event}}(i||(i={}));var v=function(){function e(t){(0,c.Z)(this,e),this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name="".concat(t,"_").concat(e._idPool++)}return(0,u.Z)(e,[{key:"start",value:function(e){this._stopWatch=new g.G(!0),this._listenerCount=e}},{key:"stop",value:function(){if(this._stopWatch){var e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info("did FIRE ".concat(this._name,": elapsed_ms: ").concat(e.toFixed(5),", listener: ").concat(this._listenerCount," (elapsed_overall: ").concat(this._elapsedOverall.toFixed(2),", invocations: ").concat(this._invocationCount,")")),this._stopWatch=void 0}}}]),e}();v._idPool=0;var m=function(){function e(t){(0,c.Z)(this,e),this.value=t}return(0,u.Z)(e,[{key:"print",value:function(){console.warn(this.value.split("\n").slice(2).join("\n"))}}],[{key:"create",value:function(){var t;return new e(null!==(t=(new Error).stack)&&void 0!==t?t:"")}}]),e}(),y=function(){function e(t,n,i){(0,c.Z)(this,e),this.callback=t,this.callbackThis=n,this.stack=i,this.subscription=new f.dt}return(0,u.Z)(e,[{key:"invoke",value:function(e){this.callback.call(this.callbackThis,e)}}]),e}(),_=function(){function e(t){var n,i;(0,c.Z)(this,e),this._disposed=!1,this._options=t,this._leakageMon=void 0,this._perfMon=(null===(n=this._options)||void 0===n?void 0:n._profName)?new v(this._options._profName):void 0,this._deliveryQueue=null===(i=this._options)||void 0===i?void 0:i.deliveryQueue}return(0,u.Z)(e,[{key:"dispose",value:function(){var e,t,n,i;if(!this._disposed){if(this._disposed=!0,this._listeners)this._listeners.clear();null===(e=this._deliveryQueue)||void 0===e||e.clear(this),null===(n=null===(t=this._options)||void 0===t?void 0:t.onLastListenerRemove)||void 0===n||n.call(t),null===(i=this._leakageMon)||void 0===i||i.dispose()}}},{key:"event",get:function(){var e=this;return this._event||(this._event=function(t,n,i){var r,o,a;e._listeners||(e._listeners=new p.S);var s,l,c=e._listeners.isEmpty();c&&(null===(r=e._options)||void 0===r?void 0:r.onFirstListenerAdd)&&e._options.onFirstListenerAdd(e),e._leakageMon&&e._listeners.size>=30&&(l=m.create(),s=e._leakageMon.check(l,e._listeners.size+1));var u=new y(t,n,l),d=e._listeners.push(u);c&&(null===(o=e._options)||void 0===o?void 0:o.onFirstListenerDidAdd)&&e._options.onFirstListenerDidAdd(e),(null===(a=e._options)||void 0===a?void 0:a.onListenerDidAdd)&&e._options.onListenerDidAdd(e,t,n);var h=u.subscription.set((function(){(null===s||void 0===s||s(),e._disposed)||(d(),e._options&&e._options.onLastListenerRemove&&(e._listeners&&!e._listeners.isEmpty()||e._options.onLastListenerRemove(e)))}));return i instanceof f.SL?i.add(h):Array.isArray(i)&&i.push(h),h}),this._event}},{key:"fire",value:function(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new C);var i,r=(0,l.Z)(this._listeners);try{for(r.s();!(i=r.n()).done;){var o=i.value;this._deliveryQueue.push(this,o,e)}}catch(a){r.e(a)}finally{r.f()}null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),null===(n=this._perfMon)||void 0===n||n.stop()}}}]),e}(),b=function(){function e(){(0,c.Z)(this,e),this._queue=new p.S}return(0,u.Z)(e,[{key:"size",get:function(){return this._queue.size}},{key:"push",value:function(e,t,n){this._queue.push(new S(e,t,n))}},{key:"clear",value:function(e){var t,n=new p.S,i=(0,l.Z)(this._queue);try{for(i.s();!(t=i.n()).done;){var r=t.value;r.emitter!==e&&n.push(r)}}catch(o){i.e(o)}finally{i.f()}this._queue=n}},{key:"deliver",value:function(){for(;this._queue.size>0;){var e=this._queue.shift();try{e.listener.invoke(e.event)}catch(t){(0,h.dL)(t)}}}}]),e}(),C=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,c.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n,[{key:"clear",value:function(e){this._queue.clear()}}]),n}(b),S=(0,u.Z)((function e(t,n,i){(0,c.Z)(this,e),this.emitter=t,this.listener=n,this.event=i})),w=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,c.Z)(this,n),(i=t.call(this,e))._isPaused=0,i._eventQueue=new p.S,i._mergeFn=null===e||void 0===e?void 0:e.merge,i}return(0,u.Z)(n,[{key:"pause",value:function(){this._isPaused++}},{key:"resume",value:function(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){var e=Array.from(this._eventQueue);this._eventQueue.clear(),(0,r.Z)((0,o.Z)(n.prototype),"fire",this).call(this,this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)(0,r.Z)((0,o.Z)(n.prototype),"fire",this).call(this,this._eventQueue.shift())}},{key:"fire",value:function(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):(0,r.Z)((0,o.Z)(n.prototype),"fire",this).call(this,e))}}]),n}(_),k=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i,r;return(0,c.Z)(this,n),(i=t.call(this,e))._delay=null!==(r=e.delay)&&void 0!==r?r:100,i}return(0,u.Z)(n,[{key:"fire",value:function(e){var t=this;this._handle||(this.pause(),this._handle=setTimeout((function(){t._handle=void 0,t.resume()}),this._delay)),(0,r.Z)((0,o.Z)(n.prototype),"fire",this).call(this,e)}}]),n}(w),x=function(){function e(){(0,c.Z)(this,e),this.buffers=[]}return(0,u.Z)(e,[{key:"wrapEvent",value:function(e){var t=this;return function(n,i,r){return e((function(e){var r=t.buffers[t.buffers.length-1];r?r.push((function(){return n.call(i,e)})):n.call(i,e)}),void 0,r)}}},{key:"bufferEvents",value:function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach((function(e){return e()})),n}}]),e}(),E=function(){function e(){var t=this;(0,c.Z)(this,e),this.listening=!1,this.inputEvent=i.None,this.inputEventListener=f.JT.None,this.emitter=new _({onFirstListenerDidAdd:function(){t.listening=!0,t.inputEventListener=t.inputEvent(t.emitter.fire,t.emitter)},onLastListenerRemove:function(){t.listening=!1,t.inputEventListener.dispose()}}),this.event=this.emitter.event}return(0,u.Z)(e,[{key:"input",set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}},{key:"dispose",value:function(){this.inputEventListener.dispose(),this.emitter.dispose()}}]),e}()},54649:function(e,t,n){"use strict";n.d(t,{KM:function(){return u},ej:function(){return s},fn:function(){return l},oP:function(){return h},yj:function(){return c}});var i=n(52090),r=n(73616),o=n(32377);function a(e){return 47===e||92===e}function s(e){return e.replace(/[\\/]/g,i.KR.sep)}function l(e){return-1===e.indexOf("/")&&(e=s(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.KR.sep;if(!e)return"";var n=e.length,r=e.charCodeAt(0);if(a(r)){if(a(e.charCodeAt(1))&&!a(e.charCodeAt(2))){for(var o=3,s=o;o<n&&!a(e.charCodeAt(o));o++);if(s!==o&&!a(e.charCodeAt(o+1)))for(o+=1;o<n;o++)if(a(e.charCodeAt(o)))return e.slice(0,o+1).replace(/[\\/]/g,t)}return t}if(d(r)&&58===e.charCodeAt(1))return a(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);var l=e.indexOf("://");if(-1!==l)for(l+=3;l<n;l++)if(a(e.charCodeAt(l)))return e.slice(0,l+1);return""}function u(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i.ir;if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){var a=(0,o.ok)(e,t);if(!a)return!1;if(t.length===e.length)return!0;var s=t.length;return t.charAt(t.length-1)===r&&s--,e.charAt(s)===r}return t.charAt(t.length-1)!==r&&(t+=r),0===e.indexOf(t)}function d(e){return e>=65&&e<=90||e>=97&&e<=122}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.ED;return!!t&&(d(e.charCodeAt(0))&&58===e.charCodeAt(1))}},73160:function(e,t,n){"use strict";n.d(t,{CL:function(){return P},EW:function(){return K},Ji:function(){return l},KZ:function(){return k},Oh:function(){return D},Sy:function(){return d},ir:function(){return u},jB:function(){return L},l7:function(){return $},mB:function(){return O},mX:function(){return G},or:function(){return s}});var i=n(43144),r=n(15671),o=n(54376),a=n(32377);function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){for(var i=0,r=t.length;i<r;i++){var o=t[i](e,n);if(o)return o}return null}}c.bind(void 0,!1);var l=c.bind(void 0,!0);function c(e,t,n){return!n||n.length<t.length?null:(e?a.ok(n,t):0===n.indexOf(t))?t.length>0?[{start:0,end:t.length}]:[]:null}function u(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]}function d(e,t){return h(e.toLowerCase(),t.toLowerCase(),0,0)}function h(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]===t[i]){var r;return(r=h(e,t,n+1,i+1))?b({start:i,end:i+1},r):null}return h(e,t,n,i+1)}function f(e){return 97<=e&&e<=122}function p(e){return 65<=e&&e<=90}function g(e){return 48<=e&&e<=57}function v(e){return 32===e||9===e||10===e||13===e}var m=new Set;function y(e){return v(e)||m.has(e)}function _(e){return f(e)||p(e)||g(e)}function b(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function C(e,t){for(var n=t;n<e.length;n++){var i=e.charCodeAt(n);if(p(i)||g(i)||n>0&&!_(e.charCodeAt(n-1)))return n}return e.length}function S(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]!==t[i].toLowerCase())return null;var r=null,o=i+1;for(r=S(e,t,n+1,i+1);!r&&(o=C(t,o))<t.length;)r=S(e,t,n+1,o),o++;return null===r?null:b({start:i,end:i+1},r)}function w(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){for(var t=0,n=0,i=0,r=0,o=0;o<e.length;o++)p(i=e.charCodeAt(o))&&t++,f(i)&&n++,v(i)&&r++;return 0!==t&&0!==n||0!==r?t<=5:e.length<=30}(e))return null;if(t.length>60)return null;var n=function(e){for(var t=0,n=0,i=0,r=0,o=0,a=0;a<e.length;a++)p(o=e.charCodeAt(a))&&t++,f(o)&&n++,_(o)&&i++,g(o)&&r++;return{upperPercent:t/e.length,lowerPercent:n/e.length,alphaPercent:i/e.length,numericPercent:r/e.length}}(t);if(!function(e){var t=e.upperPercent,n=e.lowerPercent,i=e.alphaPercent,r=e.numericPercent;return n>.2&&t<.8&&i>.6&&r<.2}(n)){if(!function(e){var t=e.upperPercent;return 0===e.lowerPercent&&t>.6}(n))return null;t=t.toLowerCase()}var i=null,r=0;for(e=e.toLowerCase();r<t.length&&null===(i=S(e,t,0,r));)r=C(t,r+1);return i}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||0===t.length)return null;var i=null,r=0;for(e=e.toLowerCase(),t=t.toLowerCase();r<t.length&&null===(i=x(e,t,0,r,n));)r=E(t,r+1);return i}function x(e,t,n,i,r){if(n===e.length)return[];if(i===t.length)return null;if(s=e.charCodeAt(n),l=t.charCodeAt(i),s===l||y(s)&&y(l)){var o=null,a=i+1;if(o=x(e,t,n+1,i+1,r),!r)for(;!o&&(a=E(t,a))<t.length;)o=x(e,t,n+1,a,r),a++;return null===o?null:b({start:i,end:i+1},o)}return null;var s,l}function E(e,t){for(var n=t;n<e.length;n++)if(y(e.charCodeAt(n))||n>0&&y(e.charCodeAt(n-1)))return n;return e.length}"()[]{}<>`'\"-/;:,.?!".split("").forEach((function(e){return m.add(e.charCodeAt(0))}));var T=s(l,w,u),N=s(l,w,d),I=new o.z6(1e4);function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e||"string"!==typeof t)return null;var i=I.get(e);i||(i=new RegExp(a.un(e),"i"),I.set(e,i));var r=i.exec(t);return r?[{start:r.index,end:r.index+r[0].length}]:n?N(e,t):T(e,t)}function L(e,t,n,i,r,o){for(var a=Math.min(13,e.length);n<a;n++){var s=K(e,t,n,i,r,o,{firstMatchCanBeWeak:!1,boostFullMatch:!0});if(s)return s}return[0,o]}function O(e){if("undefined"===typeof e)return[];for(var t=[],n=e[1],i=e.length-1;i>1;i--){var r=e[i]+n,o=t[t.length-1];o&&o.end===r?o.end=r+1:t.push({start:r,end:r+1})}return t}var R=128;function A(){for(var e=[],t=[],n=0;n<=R;n++)t[n]=0;for(var i=0;i<=R;i++)e.push(t.slice(0));return e}function M(e){for(var t=[],n=0;n<=e;n++)t[n]=0;return t}var P,Z=M(256),F=M(256),B=A(),H=A(),z=A();function j(e,t){if(t<0||t>=e.length)return!1;var 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!!a.C8(n)}}function V(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function W(e,t,n){return t[e]!==n[e]}function U(e,t,n,i,r,o){for(var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];t<n&&r<o;)e[t]===i[r]&&(a&&(Z[t]=r),t+=1),r+=1;return t===n}!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(P||(P={}));var G=(0,i.Z)((function e(t,n){(0,r.Z)(this,e),this.firstMatchCanBeWeak=t,this.boostFullMatch=n}));function K(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:G.default,s=e.length>R?R:e.length,l=i.length>R?R:i.length;if(!(n>=s||o>=l||s-n>l-o)&&U(t,n,s,r,o,l,!0)){Y(s,l,n,o,t,r);var c=1,u=1,d=n,h=o,f=[!1];for(c=1,d=n;d<s;c++,d++){var p=Z[d],g=F[d],v=d+1<s?F[d+1]:l;for(u=p-o+1,h=p;h<v;u++,h++){var m=Number.MIN_SAFE_INTEGER,y=!1;h<=g&&(m=q(e,t,d,n,i,r,h,l,o,0===B[c-1][u-1],f));var _=0;m!==Number.MAX_SAFE_INTEGER&&(y=!0,_=m+H[c-1][u-1]);var b=h>p,C=b?H[c][u-1]+(B[c][u-1]>0?-5:0):0,S=h>p+1&&B[c][u-1]>0,w=S?H[c][u-2]+(B[c][u-2]>0?-5:0):0;if(S&&(!b||w>=C)&&(!y||w>=_))H[c][u]=w,z[c][u]=3,B[c][u]=0;else if(b&&(!y||C>=_))H[c][u]=C,z[c][u]=2,B[c][u]=0;else{if(!y)throw new Error("not possible");H[c][u]=_,z[c][u]=1,B[c][u]=B[c-1][u-1]+1}}}if(f[0]||a.firstMatchCanBeWeak){c--,u--;for(var k=[H[c][u],o],x=0,E=0;c>=1;){var T=u;do{var N=z[c][T];if(3===N)T-=2;else{if(2!==N)break;T-=1}}while(T>=1);x>1&&t[n+c-1]===r[o+u-1]&&!W(T+o-1,i,r)&&x+1>B[c][T]&&(T=u),T===u?x++:x=1,E||(E=T),c--,u=T-1,k.push(u)}l===s&&a.boostFullMatch&&(k[0]+=2);var I=E-s;return k[0]-=I,k}}}function Y(e,t,n,i,r,o){for(var a=e-1,s=t-1;a>=n&&s>=i;)r[a]===o[s]&&(F[a]=s,a--),s--}function q(e,t,n,i,r,o,a,s,l,c,u){if(t[n]!==o[a])return Number.MIN_SAFE_INTEGER;var d=1,h=!1;return a===n-i?d=e[n]===r[a]?7:5:!W(a,r,o)||0!==a&&W(a-1,r,o)?!j(o,a)||0!==a&&j(o,a-1)?(j(o,a-1)||V(o,a-1))&&(d=5,h=!0):d=5:(d=e[n]===r[a]?7:5,h=!0),d>1&&n===i&&(u[0]=!0),h||(h=W(a,r,o)||j(o,a-1)||V(o,a-1)),n===i?a>l&&(d-=h?3:5):d+=c?h?2:0:h?0:1,a+1===s&&(d-=h?3:5),d}function $(e,t,n,i,r,o,a){return function(e,t,n,i,r,o,a,s){var l=K(e,t,n,i,r,o,s);if(l&&!a)return l;if(e.length>=3)for(var c=Math.min(7,e.length-1),u=n+1;u<c;u++){var d=X(e,u);if(d){var h=K(d,d.toLowerCase(),n,i,r,o,s);h&&(h[0]-=3,(!l||h[0]>l[0])&&(l=h))}}return l}(e,t,n,i,r,o,!0,a)}function X(e,t){if(!(t+1>=e.length)){var n=e[t],i=e[t+1];if(n!==i)return e.slice(0,t)+i+n+e.slice(t+2)}}G.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}},11541:function(e,t,n){"use strict";function i(e){var t,n=this,i=!1;return function(){return i?t:(i=!0,t=e.apply(n,arguments))}}n.d(t,{I:function(){return i}})},57741:function(e,t,n){"use strict";n.d(t,{Cv:function(){return c},SP:function(){return s},vp:function(){return a},yP:function(){return p}});var i=n(15671),r=n(43144),o=n(32377);function a(e){return s(e,0)}function s(e,t){switch(typeof e){case"object":return null===e?l(349,t):Array.isArray(e)?(n=e,i=l(104579,i=t),n.reduce((function(e,t){return s(t,e)}),i)):function(e,t){return t=l(181387,t),Object.keys(e).sort().reduce((function(t,n){return t=c(n,t),s(e[n],t)}),t)}(e,t);case"string":return c(e,t);case"boolean":return function(e,t){return l(e?433:863,t)}(e,t);case"number":return l(e,t);case"undefined":return l(937,t);default:return l(617,t)}var n,i}function l(e,t){return(t<<5)-t+e|0}function c(e,t){t=l(149417,t);for(var n=0,i=e.length;n<i;n++)t=l(e.charCodeAt(n),t);return t}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,i=n-t,r=~((1<<i)-1);return(e<<t|(r&e)>>>i)>>>0}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.byteLength,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=0;r<n;r++)e[t+r]=i}function h(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";e.length<t;)e=n+e;return e}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32;return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((function(e){return e.toString(16).padStart(2,"0")})).join(""):h((e>>>0).toString(16),t/4)}var p=function(){function e(){(0,i.Z)(this,e),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}return(0,r.Z)(e,[{key:"update",value:function(e){var t=e.length;if(0!==t){var n,i,r=this._buff,a=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(n=s,i=-1,s=0):(n=e.charCodeAt(0),i=0);;){var l=n;if(o.ZG(n)){if(!(i+1<t)){s=n;break}var c=e.charCodeAt(i+1);o.YK(c)?(i++,l=o.rL(n,c)):l=65533}else o.YK(n)&&(l=65533);if(a=this._push(r,a,l),!(++i<t))break;n=e.charCodeAt(i)}this._buffLen=a,this._leftoverHighSurrogate=s}}},{key:"_push",value:function(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}},{key:"digest",value:function(){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()),f(this._h0)+f(this._h1)+f(this._h2)+f(this._h3)+f(this._h4)}},{key:"_wrapUp",value:function(){this._buff[this._buffLen++]=128,d(this._buff,this._buffLen),this._buffLen>56&&(this._step(),d(this._buff));var e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}},{key:"_step",value:function(){for(var t=e._bigBlock32,n=this._buffDV,i=0;i<64;i+=4)t.setUint32(i,n.getUint32(i,!1),!1);for(var r=64;r<320;r+=4)t.setUint32(r,u(t.getUint32(r-12,!1)^t.getUint32(r-32,!1)^t.getUint32(r-56,!1)^t.getUint32(r-64,!1),1),!1);for(var o,a,s,l=this._h0,c=this._h1,d=this._h2,h=this._h3,f=this._h4,p=0;p<80;p++)p<20?(o=c&d|~c&h,a=1518500249):p<40?(o=c^d^h,a=1859775393):p<60?(o=c&d|c&h|d&h,a=2400959708):(o=c^d^h,a=3395469782),s=u(l,5)+o+f+a+t.getUint32(4*p,!1)&4294967295,f=h,h=d,d=u(c,30),c=l,l=s;this._h0=this._h0+l&4294967295,this._h1=this._h1+c&4294967295,this._h2=this._h2+d&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+f&4294967295}}]),e}();p._bigBlock32=new DataView(new ArrayBuffer(320))},61066:function(e,t,n){"use strict";n.d(t,{CP:function(){return c},Fr:function(){return u},W5:function(){return l},d9:function(){return h},oR:function(){return f},v1:function(){return p}});var i=n(15671),r=n(43144),o=n(14173),a=n(56148),s=n(32377),l=function(){function e(){var t,n,r,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,i.Z)(this,e),this.value=a,"string"!==typeof this.value)throw(0,o.b1)("value");"boolean"===typeof s?(this.isTrusted=s,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=null!==(t=s.isTrusted)&&void 0!==t?t:void 0,this.supportThemeIcons=null!==(n=s.supportThemeIcons)&&void 0!==n&&n,this.supportHtml=null!==(r=s.supportHtml)&&void 0!==r&&r)}return(0,r.Z)(e,[{key:"appendText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.value+=d(this.supportThemeIcons?(0,a.Qo)(e):e).replace(/([ \t]+)/g,(function(e,t){return" ".repeat(t.length)})).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}},{key:"appendMarkdown",value:function(e){return this.value+=e,this}},{key:"appendCodeblock",value:function(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this}},{key:"appendLink",value:function(e,t,n){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),n&&(this.value+=' "'.concat(this._escape(this._escape(n,'"'),")"),'"')),this.value+=")",this}},{key:"_escape",value:function(e,t){var n=new RegExp((0,s.ec)(t),"g");return e.replace(n,(function(t,n){return"\\"!==e.charAt(n-1)?"\\".concat(t):t}))}}]),e}();function c(e){return u(e)?!e.value:!Array.isArray(e)||e.every(c)}function u(e){return e instanceof l||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||void 0===e.isTrusted)&&("boolean"===typeof e.supportThemeIcons||void 0===e.supportThemeIcons))}function d(e){return e.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}function h(e){return e.replace(/"/g,""")}function f(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}function p(e){var t=[],n=e.split("|").map((function(e){return e.trim()}));e=n[0];var i=n[1];if(i){var r=/height=(\d+)/.exec(i),o=/width=(\d+)/.exec(i),a=r?r[1]:"",s=o?o[1]:"",l=isFinite(parseInt(s)),c=isFinite(parseInt(a));l&&t.push('width="'.concat(s,'"')),c&&t.push('height="'.concat(a,'"'))}return{href:e,dimensions:t}}},56148:function(e,t,n){"use strict";n.d(t,{Gt:function(){return m},Ho:function(){return v},Qo:function(){return d},f$:function(){return f},x$:function(){return g}});var i=n(37762),r=n(2801),o=n(73160),a=n(32377),s="$(",l=new RegExp("\\$\\(".concat(r.dT.iconNameExpression,"(?:").concat(r.dT.iconModifierExpression,")?\\)"),"g"),c=new RegExp(r.dT.iconNameCharacter),u=new RegExp("(\\\\)?".concat(l.source),"g");function d(e){return e.replace(u,(function(e,t){return t?e:"\\".concat(e)}))}var h=new RegExp("\\\\".concat(l.source),"g");function f(e){return e.replace(h,(function(e){return"\\".concat(e)}))}var p=new RegExp("(\\s)?(\\\\)?".concat(l.source,"(\\s)?"),"g");function g(e){return-1===e.indexOf(s)?e:e.replace(p,(function(e,t,n,i){return n?e:t||i||""}))}function v(e){var t=e.indexOf(s);return-1===t?{text:e}:function(e,t){var n=[],r="";function o(e){if(e){r+=e;var t,o=(0,i.Z)(e);try{for(o.s();!(t=o.n()).done;){t.value;n.push(h)}}catch(a){o.e(a)}finally{o.f()}}}var a,l,u=-1,d="",h=0,f=t,p=e.length;o(e.substr(0,t));for(;f<p;){if(a=e[f],l=e[f+1],a===s[0]&&l===s[1])u=f,o(d),d=s,f++;else if(")"===a&&-1!==u){h+=f-u+1,u=-1,d=""}else-1!==u?c.test(a)?d+=a:(o(d),u=-1,d=""):o(a);f++}return o(d),{text:r,iconOffsets:n}}(e,t)}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.text,s=t.iconOffsets;if(!s||0===s.length)return(0,o.Oh)(e,r,n);var l=(0,a.j3)(r," "),c=r.length-l.length,u=(0,o.Oh)(e,l,n);if(u){var d,h=(0,i.Z)(u);try{for(h.s();!(d=h.n()).done;){var f=d.value,p=s[f.start+c]+c;f.start+=p,f.end+=p}}catch(g){h.e(g)}finally{h.f()}}return u}},59767:function(e,t,n){"use strict";n.d(t,{R:function(){return o},a:function(){return a}});var i=n(15671),r=n(43144),o=function(){function e(t){(0,i.Z)(this,e),this._prefix=t,this._lastId=0}return(0,r.Z)(e,[{key:"nextId",value:function(){return this._prefix+ ++this._lastId}}]),e}(),a=new o("id#")},94016:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var i,r=n(4942),o=n(37762),a=n(74165);!function(e){var t=(0,a.Z)().mark(u),n=(0,a.Z)().mark(d),i=(0,a.Z)().mark(h),s=(0,a.Z)().mark(f),l=(0,a.Z)().mark(p);e.is=function(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]};var c=Object.freeze([]);function u(e){return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:case"end":return t.stop()}}),t)}function d(e,t){var i,r,s;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=(0,o.Z)(e),n.prev=1,i.s();case 3:if((r=i.n()).done){n.next=10;break}if(s=r.value,!t(s)){n.next=8;break}return n.next=8,s;case 8:n.next=3;break;case 10:n.next=15;break;case 12:n.prev=12,n.t0=n.catch(1),i.e(n.t0);case 15:return n.prev=15,i.f(),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[1,12,15,18]])}function h(e,t){var n,r,s,l;return(0,a.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=0,r=(0,o.Z)(e),i.prev=2,r.s();case 4:if((s=r.n()).done){i.next=10;break}return l=s.value,i.next=8,t(l,n++);case 8:i.next=4;break;case 10:i.next=15;break;case 12:i.prev=12,i.t0=i.catch(2),r.e(i.t0);case 15:return i.prev=15,r.f(),i.finish(15);case 18:case"end":return i.stop()}}),i,null,[[2,12,15,18]])}function f(){var e,t,n,i,r,l,c,u,d,h=arguments;return(0,a.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:for(e=h.length,t=new Array(e),n=0;n<e;n++)t[n]=h[n];i=0,r=t;case 2:if(!(i<r.length)){a.next=24;break}l=r[i],c=(0,o.Z)(l),a.prev=5,c.s();case 7:if((u=c.n()).done){a.next=13;break}return d=u.value,a.next=11,d;case 11:a.next=7;break;case 13:a.next=18;break;case 15:a.prev=15,a.t0=a.catch(5),c.e(a.t0);case 18:return a.prev=18,c.f(),a.finish(18);case 21:i++,a.next=2;break;case 24:case"end":return a.stop()}}),s,null,[[5,15,18,21]])}function p(e){var t,n,i,r,s,c;return(0,a.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t=(0,o.Z)(e),a.prev=1,t.s();case 3:if((n=t.n()).done){a.next=24;break}i=n.value,r=(0,o.Z)(i),a.prev=6,r.s();case 8:if((s=r.n()).done){a.next=14;break}return c=s.value,a.next=12,c;case 12:a.next=8;break;case 14:a.next=19;break;case 16:a.prev=16,a.t0=a.catch(6),r.e(a.t0);case 19:return a.prev=19,r.f(),a.finish(19);case 22:a.next=3;break;case 24:a.next=29;break;case 26:a.prev=26,a.t1=a.catch(1),t.e(a.t1);case 29:return a.prev=29,t.f(),a.finish(29);case 32:case"end":return a.stop()}}),l,null,[[1,26,29,32],[6,16,19,22]])}function g(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,i=[];if(0===n)return[i,t];for(var o=t[Symbol.iterator](),a=0;a<n;a++){var s=o.next();if(s.done)return[i,e.empty()];i.push(s.value)}return[i,(0,r.Z)({},Symbol.iterator,(function(){return o}))]}e.empty=function(){return c},e.single=u,e.from=function(e){return e||c},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){var n,i=(0,o.Z)(e);try{for(i.s();!(n=i.n()).done;){if(t(n.value))return!0}}catch(r){i.e(r)}finally{i.f()}return!1},e.find=function(e,t){var n,i=(0,o.Z)(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(t(r))return r}}catch(a){i.e(a)}finally{i.f()}},e.filter=d,e.map=h,e.concat=f,e.concatNested=p,e.reduce=function(e,t,n){var i,r=n,a=(0,o.Z)(e);try{for(a.s();!(i=a.n()).done;){r=t(r,i.value)}}catch(s){a.e(s)}finally{a.f()}return r},e.forEach=function(e,t){var n,i=0,r=(0,o.Z)(e);try{for(r.s();!(n=r.n()).done;){t(n.value,i++)}}catch(a){r.e(a)}finally{r.f()}},e.slice=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;return(0,a.Z)().mark((function i(){return(0,a.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);case 2:if(!(t<n)){i.next=8;break}return i.next=5,e[t];case 5:t++,i.next=2;break;case 8:case"end":return i.stop()}}),i)}))()},e.consume=g,e.collect=function(e){return g(e)[0]},e.equals=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e===t},i=e[Symbol.iterator](),r=t[Symbol.iterator]();;){var o=i.next(),a=r.next();if(o.done!==a.done)return!1;if(o.done)return!0;if(!n(o.value,a.value))return!1}}}(i||(i={}))},16321:function(e,t,n){"use strict";n.d(t,{H_:function(){return d},Vd:function(){return v},gx:function(){return b},kL:function(){return i}});for(var i,r=n(29439),o=n(15671),a=n(43144),s=function(){function e(){(0,o.Z)(this,e),this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return(0,a.Z)(e,[{key:"define",value:function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}},{key:"keyCodeToStr",value:function(e){return this._keyCodeToStr[e]}},{key:"strToKeyCode",value:function(e){return this._strToKeyCode[e.toLowerCase()]||0}}]),e}(),l=new s,c=new s,u=new s,d=new Array(230),h={},f=[],p=Object.create(null),g=Object.create(null),v=[],m=[],y=0;y<=193;y++)v[y]=-1;for(var _=0;_<=127;_++)m[_]=-1;function b(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){for(var e="",t=[],n=[],i=0,o=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];i<o.length;i++){var a=o[i],s=(0,r.Z)(a,10),y=(s[0],s[1]),_=s[2],b=s[3],C=s[4],S=s[5],w=s[6],k=s[7],x=s[8],E=s[9];if(n[_]||(n[_]=!0,f[_]=b,p[b]=_,g[b.toLowerCase()]=_,y&&(v[_]=C,0!==C&&3!==C&&5!==C&&4!==C&&6!==C&&57!==C&&(m[C]=_))),!t[C]){if(t[C]=!0,!S)throw new Error("String representation missing for key code ".concat(C," around scan code ").concat(b));l.define(C,S),c.define(C,x||S),u.define(C,E||x||S)}w&&(d[w]=C),k&&(h[k]=C)}m[3]=46}(),function(e){e.toString=function(e){return l.keyCodeToStr(e)},e.fromString=function(e){return l.strToKeyCode(e)},e.toUserSettingsUS=function(e){return c.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return u.keyCodeToStr(e)},e.fromUserSettings=function(e){return c.strToKeyCode(e)||u.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return l.keyCodeToStr(e)}}(i||(i={}))},51828:function(e,t,n){"use strict";n.d(t,{X4:function(){return l},jC:function(){return c},xo:function(){return s}});var i=n(15671),r=n(43144),o=n(27722),a=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;(0,i.Z)(this,e),this.modifierLabels=[null],this.modifierLabels[2]=t,this.modifierLabels[1]=n,this.modifierLabels[3]=r}return(0,r.Z)(e,[{key:"toLabel",value:function(e,t,n){if(0===t.length)return null;for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r],s=n(a);if(null===s)return null;i[r]=u(a,s,this.modifierLabels[e])}return i.join(" ")}}]),e}(),s=new a({ctrlKey:"\u2303",shiftKey:"\u21e7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:o.NC({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:o.NC({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:o.NC({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:o.NC({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:o.NC({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:o.NC({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:o.NC({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:o.NC({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),l=new a({ctrlKey:o.NC({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:o.NC({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:o.NC({key:"optKey.long",comment:["This is the long form for the Alt/Option key on the keyboard"]},"Option"),metaKey:o.NC({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:o.NC({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:o.NC({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:o.NC({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:o.NC({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:o.NC({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:o.NC({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:o.NC({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:o.NC({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"}),c=new a({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"});new a({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function u(e,t,n){if(null===t)return"";var i=[];return e.ctrlKey&&i.push(n.ctrlKey),e.shiftKey&&i.push(n.shiftKey),e.altKey&&i.push(n.altKey),e.metaKey&&i.push(n.metaKey),""!==t&&i.push(t),i.join(n.separator)}},94486:function(e,t,n){"use strict";n.d(t,{BQ:function(){return u},QC:function(){return l},X_:function(){return c},f1:function(){return d},gm:function(){return a}});var i=n(15671),r=n(43144),o=n(14173);function a(e,t){if(0===e)return null;var n=(65535&e)>>>0,i=(4294901760&e)>>>16;return new c(0!==i?[s(n,t),s(i,t)]:[s(n,t)])}function s(e,t){var n=!!(2048&e),i=!!(256&e);return new l(2===t?i:n,!!(1024&e),!!(512&e),2===t?n:i,255&e)}var l=function(){function e(t,n,r,o,a){(0,i.Z)(this,e),this.ctrlKey=t,this.shiftKey=n,this.altKey=r,this.metaKey=o,this.keyCode=a}return(0,r.Z)(e,[{key:"equals",value:function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}},{key:"isModifierKey",value:function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}},{key:"toChord",value:function(){return new c([this])}},{key:"isDuplicateModifierCase",value:function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}]),e}(),c=(0,r.Z)((function e(t){if((0,i.Z)(this,e),0===t.length)throw(0,o.b1)("parts");this.parts=t})),u=(0,r.Z)((function e(t,n,r,o,a,s){(0,i.Z)(this,e),this.ctrlKey=t,this.shiftKey=n,this.altKey=r,this.metaKey=o,this.keyLabel=a,this.keyAriaLabel=s})),d=(0,r.Z)((function e(){(0,i.Z)(this,e)}))},56922:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var i=n(15671),r=n(43144),o=function(){function e(t){(0,i.Z)(this,e),this.executor=t,this._didRun=!1}return(0,r.Z)(e,[{key:"hasValue",value:function(){return this._didRun}},{key:"getValue",value:function(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}},{key:"rawValue",get:function(){return this._value}}]),e}()},11860:function(e,t,n){"use strict";n.d(t,{B9:function(){return _},F8:function(){return b},JT:function(){return w},Jz:function(){return T},L6:function(){return x},OF:function(){return C},SL:function(){return S},Wf:function(){return y},XK:function(){return k},dk:function(){return v},dt:function(){return E}});var i=n(60136),r=n(27277),o=n(28664),a=n(37762),s=n(15671),l=n(43144),c=n(11541),u=n(94016),d=null;function h(e){return null===d||void 0===d||d.trackDisposable(e),e}function f(e){null===d||void 0===d||d.markAsDisposed(e)}function p(e,t){null===d||void 0===d||d.setParent(e,t)}function g(e,t){if(d){var n,i=(0,a.Z)(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;d.setParent(r,t)}}catch(o){i.e(o)}finally{i.f()}}}function v(e){return null===d||void 0===d||d.markAsSingleton(e),e}var m=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e){var i;return(0,s.Z)(this,n),(i=t.call(this,"Encountered errors while disposing of store. Errors: [".concat(e.join(", "),"]"))).errors=e,i}return(0,l.Z)(n)}((0,o.Z)(Error));function y(e){return"function"===typeof e.dispose&&0===e.dispose.length}function _(e){if(u.$.is(e)){var t,n=[],i=(0,a.Z)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;if(r)try{r.dispose()}catch(o){n.push(o)}}}catch(s){i.e(s)}finally{i.f()}if(1===n.length)throw n[0];if(n.length>1)throw new m(n);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=C((function(){return _(t)}));return g(t,i),i}function C(e){var t=h({dispose:(0,c.I)((function(){f(t),e()}))});return t}var S=function(){function e(){(0,s.Z)(this,e),this._toDispose=new Set,this._isDisposed=!1,h(this)}return(0,l.Z)(e,[{key:"dispose",value:function(){this._isDisposed||(f(this),this._isDisposed=!0,this.clear())}},{key:"isDisposed",get:function(){return this._isDisposed}},{key:"clear",value:function(){try{_(this._toDispose.values())}finally{this._toDispose.clear()}}},{key:"add",value:function(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return p(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}]),e}();S.DISABLE_DISPOSED_WARNING=!1;var w=function(){function e(){(0,s.Z)(this,e),this._store=new S,h(this),p(this._store,this)}return(0,l.Z)(e,[{key:"dispose",value:function(){f(this),this._store.dispose()}},{key:"_register",value:function(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}]),e}();w.None=Object.freeze({dispose:function(){}});var k=function(){function e(){(0,s.Z)(this,e),this._isDisposed=!1,h(this)}return(0,l.Z)(e,[{key:"value",get:function(){return this._isDisposed?void 0:this._value},set:function(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&p(e,this),this._value=e)}},{key:"clear",value:function(){this.value=void 0}},{key:"dispose",value:function(){var e;this._isDisposed=!0,f(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}},{key:"clearAndLeak",value:function(){var e=this._value;return this._value=void 0,e&&p(e,null),e}}]),e}(),x=function(){function e(t){(0,s.Z)(this,e),this._disposable=t,this._counter=1}return(0,l.Z)(e,[{key:"acquire",value:function(){return this._counter++,this}},{key:"release",value:function(){return 0===--this._counter&&this._disposable.dispose(),this}}]),e}(),E=function(){function e(){(0,s.Z)(this,e),this.dispose=function(){},this.unset=function(){},this.isset=function(){return!1},h(this)}return(0,l.Z)(e,[{key:"set",value:function(e){var t=this,n=e;return this.unset=function(){return n=void 0},this.isset=function(){return void 0!==n},this.dispose=function(){n&&(n(),n=void 0,f(t))},this}}]),e}(),T=function(){function e(t){(0,s.Z)(this,e),this.object=t}return(0,l.Z)(e,[{key:"dispose",value:function(){}}]),e}()},17832:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var i=n(74165),r=n(43144),o=n(15671),a=(0,r.Z)((function e(t){(0,o.Z)(this,e),this.element=t,this.next=e.Undefined,this.prev=e.Undefined}));a.Undefined=new a(void 0);var s=function(e){function t(){(0,o.Z)(this,t),this._first=a.Undefined,this._last=a.Undefined,this._size=0}return(0,r.Z)(t,[{key:"size",get:function(){return this._size}},{key:"isEmpty",value:function(){return this._first===a.Undefined}},{key:"clear",value:function(){for(var e=this._first;e!==a.Undefined;){var t=e.next;e.prev=a.Undefined,e.next=a.Undefined,e=t}this._first=a.Undefined,this._last=a.Undefined,this._size=0}},{key:"unshift",value:function(e){return this._insert(e,!1)}},{key:"push",value:function(e){return this._insert(e,!0)}},{key:"_insert",value:function(e,t){var n=this,i=new a(e);if(this._first===a.Undefined)this._first=i,this._last=i;else if(t){var r=this._last;this._last=i,i.prev=r,r.next=i}else{var o=this._first;this._first=i,i.next=o,o.prev=i}this._size+=1;var s=!1;return function(){s||(s=!0,n._remove(i))}}},{key:"shift",value:function(){if(this._first!==a.Undefined){var e=this._first.element;return this._remove(this._first),e}}},{key:"pop",value:function(){if(this._last!==a.Undefined){var e=this._last.element;return this._remove(this._last),e}}},{key:"_remove",value:function(e){if(e.prev!==a.Undefined&&e.next!==a.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===a.Undefined&&e.next===a.Undefined?(this._first=a.Undefined,this._last=a.Undefined):e.next===a.Undefined?(this._last=this._last.prev,this._last.next=a.Undefined):e.prev===a.Undefined&&(this._first=this._first.next,this._first.prev=a.Undefined);this._size-=1}},{key:e,value:(0,i.Z)().mark((function e(){var t;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this._first;case 1:if(t===a.Undefined){e.next=7;break}return e.next=4,t.element;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))}]),t}(Symbol.iterator)},54376:function(e,t,n){"use strict";n.d(t,{Id:function(){return C},Y9:function(){return w},z6:function(){return x}});var i,r,o=n(11752),a=n(61120),s=n(60136),l=n(27277),c=n(4942),u=n(74165),d=n(37762),h=n(29439),f=n(15671),p=n(43144),g=n(32377),v=function(){function e(){(0,f.Z)(this,e),this._value="",this._pos=0}return(0,p.Z)(e,[{key:"reset",value:function(e){return this._value=e,this._pos=0,this}},{key:"next",value:function(){return this._pos+=1,this}},{key:"hasNext",value:function(){return this._pos<this._value.length-1}},{key:"cmp",value:function(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}},{key:"value",value:function(){return this._value[this._pos]}}]),e}(),m=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(0,f.Z)(this,e),this._caseSensitive=t}return(0,p.Z)(e,[{key:"reset",value:function(e){return this._value=e,this._from=0,this._to=0,this.next()}},{key:"hasNext",value:function(){return this._to<this._value.length}},{key:"next",value:function(){this._from=this._to;for(var e=!0;this._to<this._value.length;this._to++){if(46===this._value.charCodeAt(this._to)){if(!e)break;this._from++}else e=!1}return this}},{key:"cmp",value:function(e){return this._caseSensitive?(0,g.TT)(e,this._value,0,e.length,this._from,this._to):(0,g.j_)(e,this._value,0,e.length,this._from,this._to)}},{key:"value",value:function(){return this._value.substring(this._from,this._to)}}]),e}(),y=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,f.Z)(this,e),this._splitOnBackslash=t,this._caseSensitive=n}return(0,p.Z)(e,[{key:"reset",value:function(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(var t=e.length-1;t>=0;t--,this._valueLen--){var n=this._value.charCodeAt(t);if(!(47===n||this._splitOnBackslash&&92===n))break}return this.next()}},{key:"hasNext",value:function(){return this._to<this._valueLen}},{key:"next",value:function(){this._from=this._to;for(var e=!0;this._to<this._valueLen;this._to++){var t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}},{key:"cmp",value:function(e){return this._caseSensitive?(0,g.TT)(e,this._value,0,e.length,this._from,this._to):(0,g.j_)(e,this._value,0,e.length,this._from,this._to)}},{key:"value",value:function(){return this._value.substring(this._from,this._to)}}]),e}(),_=function(){function e(t,n){(0,f.Z)(this,e),this._ignorePathCasing=t,this._ignoreQueryAndFragment=n,this._states=[],this._stateIdx=0}return(0,p.Z)(e,[{key:"reset",value:function(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new y(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}},{key:"next",value:function(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}},{key:"hasNext",value:function(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}},{key:"cmp",value:function(e){if(1===this._states[this._stateIdx])return(0,g.zY)(e,this._value.scheme);if(2===this._states[this._stateIdx])return(0,g.zY)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return(0,g.qu)(e,this._value.query);if(5===this._states[this._stateIdx])return(0,g.qu)(e,this._value.fragment);throw new Error}},{key:"value",value:function(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}]),e}(),b=function(){function e(){(0,f.Z)(this,e),this.height=1}return(0,p.Z)(e,[{key:"rotateLeft",value:function(){var e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}},{key:"rotateRight",value:function(){var e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}},{key:"updateHeight",value:function(){this.height=1+Math.max(this.heightLeft,this.heightRight)}},{key:"balanceFactor",value:function(){return this.heightRight-this.heightLeft}},{key:"heightLeft",get:function(){var e,t;return null!==(t=null===(e=this.left)||void 0===e?void 0:e.height)&&void 0!==t?t:0}},{key:"heightRight",get:function(){var e,t;return null!==(t=null===(e=this.right)||void 0===e?void 0:e.height)&&void 0!==t?t:0}}]),e}(),C=function(e){function t(e){(0,f.Z)(this,t),this._iter=e}return(0,p.Z)(t,[{key:"clear",value:function(){this._root=void 0}},{key:"set",value:function(e,t){var n,i=this._iter.reset(e);this._root||(this._root=new b,this._root.segment=i.value());var r=[];for(n=this._root;;){var o=i.cmp(n.segment);if(o>0)n.left||(n.left=new b,n.left.segment=i.value()),r.push([-1,n]),n=n.left;else if(o<0)n.right||(n.right=new b,n.right.segment=i.value()),r.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new b,n.mid.segment=i.value()),r.push([0,n]),n=n.mid}}var a=n.value;n.value=t,n.key=e;for(var s=r.length-1;s>=0;s--){var l=r[s][1];l.updateHeight();var c=l.balanceFactor();if(c<-1||c>1){var u=r[s][0],d=r[s+1][0];if(1===u&&1===d)r[s][1]=l.rotateLeft();else if(-1===u&&-1===d)r[s][1]=l.rotateRight();else if(1===u&&-1===d)l.right=r[s+1][1]=r[s+1][1].rotateRight(),r[s][1]=l.rotateLeft();else{if(-1!==u||1!==d)throw new Error;l.left=r[s+1][1]=r[s+1][1].rotateLeft(),r[s][1]=l.rotateRight()}if(s>0)switch(r[s-1][0]){case-1:r[s-1][1].left=r[s][1];break;case 1:r[s-1][1].right=r[s][1];break;case 0:r[s-1][1].mid=r[s][1]}else this._root=r[0][1]}}return a}},{key:"get",value:function(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}},{key:"_getNode",value:function(e){for(var t=this._iter.reset(e),n=this._root;n;){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n}},{key:"has",value:function(e){var t=this._getNode(e);return!(void 0===(null===t||void 0===t?void 0:t.value)&&void 0===(null===t||void 0===t?void 0:t.mid))}},{key:"delete",value:function(e){return this._delete(e,!1)}},{key:"deleteSuperstr",value:function(e){return this._delete(e,!0)}},{key:"_delete",value:function(e,t){for(var n,i=this._iter.reset(e),r=[],o=this._root;o;){var a=i.cmp(o.segment);if(a>0)r.push([-1,o]),o=o.left;else if(a<0)r.push([1,o]),o=o.right;else{if(!i.hasNext())break;i.next(),r.push([0,o]),o=o.mid}}if(o){if(t?(o.left=void 0,o.mid=void 0,o.right=void 0,o.height=1):(o.key=void 0,o.value=void 0),!o.mid&&!o.value)if(o.left&&o.right){var s=this._min(o.right),l=s.key,c=s.value,u=s.segment;this._delete(s.key,!1),o.key=l,o.value=c,o.segment=u}else{var d=null!==(n=o.left)&&void 0!==n?n:o.right;if(r.length>0){var f=(0,h.Z)(r[r.length-1],2),p=f[0],g=f[1];switch(p){case-1:g.left=d;break;case 0:g.mid=d;break;case 1:g.right=d}}else this._root=d}for(var v=r.length-1;v>=0;v--){var m=r[v][1];m.updateHeight();var y=m.balanceFactor();if(y>1?(m.right.balanceFactor()>=0||(m.right=m.right.rotateRight()),r[v][1]=m.rotateLeft()):y<-1&&(m.left.balanceFactor()<=0||(m.left=m.left.rotateLeft()),r[v][1]=m.rotateRight()),v>0)switch(r[v-1][0]){case-1:r[v-1][1].left=r[v][1];break;case 1:r[v-1][1].right=r[v][1];break;case 0:r[v-1][1].mid=r[v][1]}else this._root=r[0][1]}}}},{key:"_min",value:function(e){for(;e.left;)e=e.left;return e}},{key:"findSubstr",value:function(e){for(var t=this._iter.reset(e),n=this._root,i=void 0;n;){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}},{key:"findSuperstr",value:function(e){for(var t=this._iter.reset(e),n=this._root;n;){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())return n.mid?this._entries(n.mid):void 0;t.next(),n=n.mid}}}},{key:"forEach",value:function(e){var t,n=(0,d.Z)(this);try{for(n.s();!(t=n.n()).done;){var i=(0,h.Z)(t.value,2),r=i[0];e(i[1],r)}}catch(o){n.e(o)}finally{n.f()}}},{key:e,value:(0,u.Z)().mark((function e(){return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._entries(this._root),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"_entries",value:function(e){var t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}},{key:"_dfsEntries",value:function(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}],[{key:"forUris",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!1};return new t(new _(e,n))}},{key:"forStrings",value:function(){return new t(new v)}},{key:"forConfigKeys",value:function(){return new t(new m)}}]),t}(Symbol.iterator),S=(0,p.Z)((function e(t,n){(0,f.Z)(this,e),this.uri=t,this.value=n})),w=function(e){function t(e,n){(0,f.Z)(this,t),this[i]="ResourceMap",e instanceof t?(this.map=new Map(e.map),this.toKey=null!==n&&void 0!==n?n:t.defaultToKey):(this.map=new Map,this.toKey=null!==e&&void 0!==e?e:t.defaultToKey)}return(0,p.Z)(t,[{key:"set",value:function(e,t){return this.map.set(this.toKey(e),new S(e,t)),this}},{key:"get",value:function(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}},{key:"has",value:function(e){return this.map.has(this.toKey(e))}},{key:"size",get:function(){return this.map.size}},{key:"clear",value:function(){this.map.clear()}},{key:"delete",value:function(e){return this.map.delete(this.toKey(e))}},{key:"forEach",value:function(e,t){"undefined"!==typeof t&&(e=e.bind(t));var n,i=(0,d.Z)(this.map);try{for(i.s();!(n=i.n()).done;){var r=(0,h.Z)(n.value,2),o=(r[0],r[1]);e(o.value,o.uri,this)}}catch(a){i.e(a)}finally{i.f()}}},{key:"values",value:(0,u.Z)().mark((function e(){var t,n,i;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,d.Z)(this.map.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.value;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"keys",value:(0,u.Z)().mark((function e(){var t,n,i;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,d.Z)(this.map.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.uri;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"entries",value:(0,u.Z)().mark((function e(){var t,n,i;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,d.Z)(this.map.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,[i.uri,i.value];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:e,value:(0,u.Z)().mark((function e(){var t,n,i,r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,d.Z)(this.map),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=(0,h.Z)(n.value,2),r=i[1],e.next=7,[r.uri,r.value];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))}]),t}((i=Symbol.toStringTag,Symbol.iterator));w.defaultToKey=function(e){return e.toString()};var k=function(e){function t(){(0,f.Z)(this,t),this[r]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}return(0,p.Z)(t,[{key:"clear",value:function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}},{key:"isEmpty",value:function(){return!this._head&&!this._tail}},{key:"size",get:function(){return this._size}},{key:"first",get:function(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}},{key:"last",get:function(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}},{key:"has",value:function(e){return this._map.has(e)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}},{key:"delete",value:function(e){return!!this.remove(e)}},{key:"remove",value:function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}},{key:"shift",value:function(){if(this._head||this._tail){if(!this._head||!this._tail)throw new Error("Invalid list");var e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}}},{key:"forEach",value:function(e,t){for(var n=this._state,i=this._head;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}},{key:"keys",value:function(){var e,t=this,n=this._state,i=this._head,r=(e={},(0,c.Z)(e,Symbol.iterator,(function(){return r})),(0,c.Z)(e,"next",(function(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){var e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}})),e);return r}},{key:"values",value:function(){var e,t=this,n=this._state,i=this._head,r=(e={},(0,c.Z)(e,Symbol.iterator,(function(){return r})),(0,c.Z)(e,"next",(function(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){var e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}})),e);return r}},{key:"entries",value:function(){var e,t=this,n=this._state,i=this._head,r=(e={},(0,c.Z)(e,Symbol.iterator,(function(){return r})),(0,c.Z)(e,"next",(function(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){var e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}})),e);return r}},{key:e,value:function(){return this.entries()}},{key:"trimOld",value:function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}else this.clear()}},{key:"addItemFirst",value:function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}},{key:"addItemLast",value:function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}},{key:"removeItem",value:function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}},{key:"touch",value:function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;var n=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;var r=e.next,o=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=o,o.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}},{key:"toJSON",value:function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),e}},{key:"fromJSON",value:function(e){this.clear();var t,n=(0,d.Z)(e);try{for(n.s();!(t=n.n()).done;){var i=(0,h.Z)(t.value,2),r=i[0],o=i[1];this.set(r,o)}}catch(a){n.e(a)}finally{n.f()}}}]),t}((r=Symbol.toStringTag,Symbol.iterator)),x=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return(0,f.Z)(this,n),(i=t.call(this))._limit=e,i._ratio=Math.min(Math.max(0,r),1),i}return(0,p.Z)(n,[{key:"limit",get:function(){return this._limit},set:function(e){this._limit=e,this.checkTrim()}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(0,o.Z)((0,a.Z)(n.prototype),"get",this).call(this,e,t)}},{key:"peek",value:function(e){return(0,o.Z)((0,a.Z)(n.prototype),"get",this).call(this,e,0)}},{key:"set",value:function(e,t){return(0,o.Z)((0,a.Z)(n.prototype),"set",this).call(this,e,t,2),this.checkTrim(),this}},{key:"checkTrim",value:function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}]),n}(k)},18042:function(e,t,n){"use strict";n.d(t,{Q:function(){return o}});var i=n(82175),r=n(72112);function o(e){var t=JSON.parse(e);return t=a(t)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return r.o.revive(e);case 2:return new RegExp(e.source,e.flags);case 14:return new Date(e.source)}if(e instanceof i.KN||e instanceof Uint8Array)return e;if(Array.isArray(e))for(var n=0;n<e.length;++n)e[n]=a(e[n],t+1);else for(var o in e)Object.hasOwnProperty.call(e,o)&&(e[o]=a(e[o],t+1))}return e}},62684:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var i=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},84855:function(e,t,n){"use strict";n.d(t,{Gi:function(){return u},WX:function(){return l},lg:function(){return i}});var i,r=n(15671),o=n(43144),a=n(73616),s=n(72112);!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.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebook="vscode-notebook",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeInteractive="vscode-interactive",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm"}(i||(i={}));var l=new(function(){function e(){(0,r.Z)(this,e),this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath="/".concat(i.vscodeRemoteResource)}return(0,o.Z)(e,[{key:"setPreferredWebSchema",value:function(e){this._preferredWebSchema=e}},{key:"rewrite",value:function(e){if(this._delegate)return this._delegate(e);var t=e.authority,n=this._hosts[t];n&&-1!==n.indexOf(":")&&(n="[".concat(n,"]"));var r=this._ports[t],o=this._connectionTokens[t],l="path=".concat(encodeURIComponent(e.path));return"string"===typeof o&&(l+="&".concat("tkn","=").concat(encodeURIComponent(o))),s.o.from({scheme:a.$L?this._preferredWebSchema:i.vscodeRemoteResource,authority:"".concat(n,":").concat(r),path:this._remoteResourcesPath,query:l})}}]),e}()),c=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"asBrowserUri",value:function(t,n){var r=this.toUri(t,n);return r.scheme===i.vscodeRemote?l.rewrite(r):r.scheme===i.file&&(a.tY||a.n2&&a.li.origin==="".concat(i.vscodeFileResource,"://").concat(e.FALLBACK_AUTHORITY))?r.with({scheme:i.vscodeFileResource,authority:r.authority||e.FALLBACK_AUTHORITY,query:null,fragment:null}):r}},{key:"toUri",value:function(e,t){return s.o.isUri(e)?e:s.o.parse(t.toUrl(e))}}]),e}();c.FALLBACK_AUTHORITY="vscode-app";var u=new c},53710:function(e,t,n){"use strict";n.d(t,{N:function(){return s},nM:function(){return a},uZ:function(){return o}});var i=n(15671),r=n(43144);function o(e,t,n){return Math.min(Math.max(e,t),n)}var a=function(){function e(){(0,i.Z)(this,e),this._n=1,this._val=0}return(0,r.Z)(e,[{key:"update",value:function(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}},{key:"value",get:function(){return this._val}}]),e}(),s=function(){function e(t){(0,i.Z)(this,e),this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(t),this._values.fill(0,0,t)}return(0,r.Z)(e,[{key:"update",value:function(e){var t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}},{key:"value",get:function(){return this._val}}]),e}()},63656:function(e,t,n){"use strict";n.d(t,{I8:function(){return o},_A:function(){return a},fS:function(){return d},jB:function(){return u},rs:function(){return l}});var i=n(37762),r=n(85294);function o(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"===typeof e[n]?t[n]=o(e[n]):t[n]=e[n]})),t}function a(e){if(!e||"object"!==typeof e)return e;for(var t=[e];t.length>0;){var n=t.shift();for(var i in Object.freeze(n),n)if(s.call(n,i)){var o=n[i];"object"!==typeof o||Object.isFrozen(o)||(0,r.fU)(o)||t.push(o)}}return e}var s=Object.prototype.hasOwnProperty;function l(e,t){return c(e,t,new Set)}function c(e,t,n){if((0,r.Jp)(e))return e;var o=t(e);if("undefined"!==typeof o)return o;if((0,r.kJ)(e)){var a,l=[],u=(0,i.Z)(e);try{for(u.s();!(a=u.n()).done;){var d=a.value;l.push(c(d,t,n))}}catch(p){u.e(p)}finally{u.f()}return l}if((0,r.Kn)(e)){if(n.has(e))throw new Error("Cannot clone recursive data-structure");n.add(e);var h={};for(var f in e)s.call(e,f)&&(h[f]=c(e[f],t,n));return n.delete(e),h}return e}function u(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,r.Kn)(e)?((0,r.Kn)(t)&&Object.keys(t).forEach((function(i){i in e?n&&((0,r.Kn)(e[i])&&(0,r.Kn)(t[i])?u(e[i],t[i],n):e[i]=t[i]):e[i]=t[i]})),e):t}function d(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!d(e[n],t[n]))return!1}else{var r=[];for(i in e)r.push(i);r.sort();var o=[];for(i in t)o.push(i);if(o.sort(),!d(r,o))return!1;for(n=0;n<r.length;n++)if(!d(e[r[n]],t[r[n]]))return!1}return!0}},52090:function(e,t,n){"use strict";n.d(t,{EZ:function(){return D},XX:function(){return I},DZ:function(){return L},Fv:function(){return E},KR:function(){return x},Gf:function(){return N},DB:function(){return T},ir:function(){return O},Ku:function(){return k}});var i,r=n(43144),o=n(15671),a=n(60136),s=n(27277),l=n(28664),c=n(73616);if("undefined"!==typeof c.li.vscode&&"undefined"!==typeof c.li.vscode.process){var u=c.li.vscode.process;i={get platform(){return u.platform},get arch(){return u.arch},get env(){return u.env},cwd:function(){return u.cwd()}}}else i="undefined"!==typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}},cwd:function(){return{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.VSCODE_CWD||process.cwd()}}:{get platform(){return c.ED?"win32":c.dz?"darwin":"linux"},get arch(){},get env(){return{}},cwd:function(){return"/"}};var d=i.cwd,h=(i.env,i.platform),f=46,p=47,g=92,v=58,m=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var a,s;(0,o.Z)(this,n),"string"===typeof i&&0===i.indexOf("not ")?(s="must not be",i=i.replace(/^not /,"")):s="must be";var l=-1!==e.indexOf(".")?"property":"argument",c='The "'.concat(e,'" ').concat(l," ").concat(s," of type ").concat(i);return c+=". Received type ".concat(typeof r),(a=t.call(this,c)).code="ERR_INVALID_ARG_TYPE",a}return(0,r.Z)(n)}((0,l.Z)(Error));function y(e,t){if("string"!==typeof e)throw new m(t,"string",e)}function _(e){return e===p||e===g}function b(e){return e===p}function C(e){return e>=65&&e<=90||e>=97&&e<=122}function S(e,t,n,i){for(var r="",o=0,a=-1,s=0,l=0,c=0;c<=e.length;++c){if(c<e.length)l=e.charCodeAt(c);else{if(i(l))break;l=p}if(i(l)){if(a===c-1||1===s);else if(2===s){if(r.length<2||2!==o||r.charCodeAt(r.length-1)!==f||r.charCodeAt(r.length-2)!==f){if(r.length>2){var u=r.lastIndexOf(n);-1===u?(r="",o=0):o=(r=r.slice(0,u)).length-1-r.lastIndexOf(n),a=c,s=0;continue}if(0!==r.length){r="",o=0,a=c,s=0;continue}}t&&(r+=r.length>0?"".concat(n,".."):"..",o=2)}else r.length>0?r+="".concat(n).concat(e.slice(a+1,c)):r=e.slice(a+1,c),o=c-a-1;a=c,s=0}else l===f&&-1!==s?++s:s=-1}return r}function w(e,t){if(null===t||"object"!==typeof t)throw new m("pathObject","Object",t);var n=t.dir||t.root,i=t.base||"".concat(t.name||"").concat(t.ext||"");return n?n===t.root?"".concat(n).concat(i):"".concat(n).concat(e).concat(i):i}var k={resolve:function(){for(var e="",t="",n=!1,i=arguments.length-1;i>=-1;i--){var r=void 0;if(i>=0){if(y(r=i<0||arguments.length<=i?void 0:arguments[i],"path"),0===r.length)continue}else 0===e.length?r=d():(void 0===(r={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}["=".concat(e)]||d())||r.slice(0,2).toLowerCase()!==e.toLowerCase()&&r.charCodeAt(2)===g)&&(r="".concat(e,"\\"));var o=r.length,a=0,s="",l=!1,c=r.charCodeAt(0);if(1===o)_(c)&&(a=1,l=!0);else if(_(c))if(l=!0,_(r.charCodeAt(1))){for(var u=2,h=u;u<o&&!_(r.charCodeAt(u));)u++;if(u<o&&u!==h){var f=r.slice(h,u);for(h=u;u<o&&_(r.charCodeAt(u));)u++;if(u<o&&u!==h){for(h=u;u<o&&!_(r.charCodeAt(u));)u++;u!==o&&u===h||(s="\\\\".concat(f,"\\").concat(r.slice(h,u)),a=u)}}}else a=1;else C(c)&&r.charCodeAt(1)===v&&(s=r.slice(0,2),a=2,o>2&&_(r.charCodeAt(2))&&(l=!0,a=3));if(s.length>0)if(e.length>0){if(s.toLowerCase()!==e.toLowerCase())continue}else e=s;if(n){if(e.length>0)break}else if(t="".concat(r.slice(a),"\\").concat(t),n=l,l&&e.length>0)break}return t=S(t,!n,"\\",_),n?"".concat(e,"\\").concat(t):"".concat(e).concat(t)||"."},normalize:function(e){y(e,"path");var t=e.length;if(0===t)return".";var n,i=0,r=!1,o=e.charCodeAt(0);if(1===t)return b(o)?"\\":e;if(_(o))if(r=!0,_(e.charCodeAt(1))){for(var a=2,s=a;a<t&&!_(e.charCodeAt(a));)a++;if(a<t&&a!==s){var l=e.slice(s,a);for(s=a;a<t&&_(e.charCodeAt(a));)a++;if(a<t&&a!==s){for(s=a;a<t&&!_(e.charCodeAt(a));)a++;if(a===t)return"\\\\".concat(l,"\\").concat(e.slice(s),"\\");a!==s&&(n="\\\\".concat(l,"\\").concat(e.slice(s,a)),i=a)}}}else i=1;else C(o)&&e.charCodeAt(1)===v&&(n=e.slice(0,2),i=2,t>2&&_(e.charCodeAt(2))&&(r=!0,i=3));var c=i<t?S(e.slice(i),!r,"\\",_):"";return 0!==c.length||r||(c="."),c.length>0&&_(e.charCodeAt(t-1))&&(c+="\\"),void 0===n?r?"\\".concat(c):c:r?"".concat(n,"\\").concat(c):"".concat(n).concat(c)},isAbsolute:function(e){y(e,"path");var t=e.length;if(0===t)return!1;var n=e.charCodeAt(0);return _(n)||t>2&&C(n)&&e.charCodeAt(1)===v&&_(e.charCodeAt(2))},join:function(){if(0===arguments.length)return".";for(var e,t,n=0;n<arguments.length;++n){var i=n<0||arguments.length<=n?void 0:arguments[n];y(i,"path"),i.length>0&&(void 0===e?e=t=i:e+="\\".concat(i))}if(void 0===e)return".";var r=!0,o=0;if("string"===typeof t&&_(t.charCodeAt(0))){++o;var a=t.length;a>1&&_(t.charCodeAt(1))&&(++o,a>2&&(_(t.charCodeAt(2))?++o:r=!1))}if(r){for(;o<e.length&&_(e.charCodeAt(o));)o++;o>=2&&(e="\\".concat(e.slice(o)))}return k.normalize(e)},relative:function(e,t){if(y(e,"from"),y(t,"to"),e===t)return"";var n=k.resolve(e),i=k.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";for(var r=0;r<e.length&&e.charCodeAt(r)===g;)r++;for(var o=e.length;o-1>r&&e.charCodeAt(o-1)===g;)o--;for(var a=o-r,s=0;s<t.length&&t.charCodeAt(s)===g;)s++;for(var l=t.length;l-1>s&&t.charCodeAt(l-1)===g;)l--;for(var c=l-s,u=a<c?a:c,d=-1,h=0;h<u;h++){var f=e.charCodeAt(r+h);if(f!==t.charCodeAt(s+h))break;f===g&&(d=h)}if(h!==u){if(-1===d)return i}else{if(c>u){if(t.charCodeAt(s+h)===g)return i.slice(s+h+1);if(2===h)return i.slice(s+h)}a>u&&(e.charCodeAt(r+h)===g?d=h:2===h&&(d=3)),-1===d&&(d=0)}var p="";for(h=r+d+1;h<=o;++h)h!==o&&e.charCodeAt(h)!==g||(p+=0===p.length?"..":"\\..");return s+=d,p.length>0?"".concat(p).concat(i.slice(s,l)):(i.charCodeAt(s)===g&&++s,i.slice(s,l))},toNamespacedPath:function(e){if("string"!==typeof e)return e;if(0===e.length)return"";var t=k.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===g){if(t.charCodeAt(1)===g){var n=t.charCodeAt(2);if(63!==n&&n!==f)return"\\\\?\\UNC\\".concat(t.slice(2))}}else if(C(t.charCodeAt(0))&&t.charCodeAt(1)===v&&t.charCodeAt(2)===g)return"\\\\?\\".concat(t);return e},dirname:function(e){y(e,"path");var t=e.length;if(0===t)return".";var n=-1,i=0,r=e.charCodeAt(0);if(1===t)return _(r)?e:".";if(_(r)){if(n=i=1,_(e.charCodeAt(1))){for(var o=2,a=o;o<t&&!_(e.charCodeAt(o));)o++;if(o<t&&o!==a){for(a=o;o<t&&_(e.charCodeAt(o));)o++;if(o<t&&o!==a){for(a=o;o<t&&!_(e.charCodeAt(o));)o++;if(o===t)return e;o!==a&&(n=i=o+1)}}}}else C(r)&&e.charCodeAt(1)===v&&(i=n=t>2&&_(e.charCodeAt(2))?3:2);for(var s=-1,l=!0,c=t-1;c>=i;--c)if(_(e.charCodeAt(c))){if(!l){s=c;break}}else l=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename:function(e,t){void 0!==t&&y(t,"ext"),y(e,"path");var n,i=0,r=-1,o=!0;if(e.length>=2&&C(e.charCodeAt(0))&&e.charCodeAt(1)===v&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";var a=t.length-1,s=-1;for(n=e.length-1;n>=i;--n){var l=e.charCodeAt(n);if(_(l)){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(r=n):(a=-1,r=s))}return i===r?r=s:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(_(e.charCodeAt(n))){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){y(e,"path");var t=0,n=-1,i=0,r=-1,o=!0,a=0;e.length>=2&&e.charCodeAt(1)===v&&C(e.charCodeAt(0))&&(t=i=2);for(var s=e.length-1;s>=t;--s){var l=e.charCodeAt(s);if(_(l)){if(!o){i=s+1;break}}else-1===r&&(o=!1,r=s+1),l===f?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===i+1?"":e.slice(n,r)},format:w.bind(null,"\\"),parse:function(e){y(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n=e.length,i=0,r=e.charCodeAt(0);if(1===n)return _(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(_(r)){if(i=1,_(e.charCodeAt(1))){for(var o=2,a=o;o<n&&!_(e.charCodeAt(o));)o++;if(o<n&&o!==a){for(a=o;o<n&&_(e.charCodeAt(o));)o++;if(o<n&&o!==a){for(a=o;o<n&&!_(e.charCodeAt(o));)o++;o===n?i=o:o!==a&&(i=o+1)}}}}else if(C(r)&&e.charCodeAt(1)===v){if(n<=2)return t.root=t.dir=e,t;if(i=2,_(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));for(var s=-1,l=i,c=-1,u=!0,d=e.length-1,h=0;d>=i;--d)if(_(r=e.charCodeAt(d))){if(!u){l=d+1;break}}else-1===c&&(u=!1,c=d+1),r===f?-1===s?s=d:1!==h&&(h=1):-1!==s&&(h=-1);return-1!==c&&(-1===s||0===h||1===h&&s===c-1&&s===l+1?t.base=t.name=e.slice(l,c):(t.name=e.slice(l,s),t.base=e.slice(l,c),t.ext=e.slice(s,c))),t.dir=l>0&&l!==i?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},x={resolve:function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var i=n>=0?n<0||arguments.length<=n?void 0:arguments[n]:d();y(i,"path"),0!==i.length&&(e="".concat(i,"/").concat(e),t=i.charCodeAt(0)===p)}return e=S(e,!t,"/",b),t?"/".concat(e):e.length>0?e:"."},normalize:function(e){if(y(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===p,n=e.charCodeAt(e.length-1)===p;return 0===(e=S(e,!t,"/",b)).length?t?"/":n?"./":".":(n&&(e+="/"),t?"/".concat(e):e)},isAbsolute:function(e){return y(e,"path"),e.length>0&&e.charCodeAt(0)===p},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=t<0||arguments.length<=t?void 0:arguments[t];y(n,"path"),n.length>0&&(void 0===e?e=n:e+="/".concat(n))}return void 0===e?".":x.normalize(e)},relative:function(e,t){if(y(e,"from"),y(t,"to"),e===t)return"";if((e=x.resolve(e))===(t=x.resolve(t)))return"";for(var n=e.length,i=n-1,r=t.length-1,o=i<r?i:r,a=-1,s=0;s<o;s++){var l=e.charCodeAt(1+s);if(l!==t.charCodeAt(1+s))break;l===p&&(a=s)}if(s===o)if(r>o){if(t.charCodeAt(1+s)===p)return t.slice(1+s+1);if(0===s)return t.slice(1+s)}else i>o&&(e.charCodeAt(1+s)===p?a=s:0===s&&(a=0));var c="";for(s=1+a+1;s<=n;++s)s!==n&&e.charCodeAt(s)!==p||(c+=0===c.length?"..":"/..");return"".concat(c).concat(t.slice(1+a))},toNamespacedPath:function(e){return e},dirname:function(e){if(y(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===p,n=-1,i=!0,r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===p){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){void 0!==t&&y(t,"ext"),y(e,"path");var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";var a=t.length-1,s=-1;for(n=e.length-1;n>=0;--n){var l=e.charCodeAt(n);if(l===p){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(r=n):(a=-1,r=s))}return i===r?r=s:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===p){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){y(e,"path");for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(s!==p)-1===i&&(r=!1,i=a+1),s===f?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:w.bind(null,"/"),parse:function(e){y(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0)===p;i?(t.root="/",n=1):n=0;for(var r=-1,o=0,a=-1,s=!0,l=e.length-1,c=0;l>=n;--l){var u=e.charCodeAt(l);if(u!==p)-1===a&&(s=!1,a=l+1),u===f?-1===r?r=l:1!==c&&(c=1):-1!==r&&(c=-1);else if(!s){o=l+1;break}}if(-1!==a){var d=0===o&&i?1:o;-1===r||0===c||1===c&&r===a-1&&r===o+1?t.base=t.name=e.slice(d,a):(t.name=e.slice(d,r),t.base=e.slice(d,a),t.ext=e.slice(r,a))}return o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};x.win32=k.win32=k,x.posix=k.posix=x;var E="win32"===h?k.normalize:x.normalize,T="win32"===h?k.resolve:x.resolve,N="win32"===h?k.relative:x.relative,I="win32"===h?k.dirname:x.dirname,D="win32"===h?k.basename:x.basename,L="win32"===h?k.extname:x.extname,O="win32"===h?k.sep:x.sep},73616:function(e,t,n){"use strict";n.d(t,{$L:function(){return x},ED:function(){return C},G6:function(){return F},IJ:function(){return w},OS:function(){return O},dK:function(){return I},dz:function(){return S},fn:function(){return L},gn:function(){return T},i7:function(){return P},li:function(){return p},n2:function(){return E},r:function(){return M},tY:function(){return k},un:function(){return B},vU:function(){return Z}});var i,r=n(27722),o="en",a=!1,s=!1,l=!1,c=!1,u=!1,d=!1,h=o,f=void 0,p="object"===typeof self?self:"object"===typeof n.g?n.g:{},g=void 0;"undefined"!==typeof p.vscode&&"undefined"!==typeof p.vscode.process?g=p.vscode.process:"undefined"!==typeof process&&(g=process);var v="string"===typeof(null===(i=null===g||void 0===g?void 0:g.versions)||void 0===i?void 0:i.electron),m=v&&"renderer"===(null===g||void 0===g?void 0:g.type);if("object"!==typeof navigator||m)if("object"===typeof g){a="win32"===g.platform,s="darwin"===g.platform,(l="linux"===g.platform)&&!!g.env.SNAP&&!!g.env.SNAP_REVISION,v,!!g.env.CI||!!g.env.BUILD_ARTIFACTSTAGINGDIRECTORY,o,h=o;var y=g.env.VSCODE_NLS_CONFIG;if(y)try{var _=JSON.parse(y),b=_.availableLanguages["*"];_.locale,h=b||o,_._translationsConfigFile}catch(H){}c=!0}else console.error("Unable to resolve platform.");else a=(f=navigator.userAgent).indexOf("Windows")>=0,s=f.indexOf("Macintosh")>=0,d=(f.indexOf("Macintosh")>=0||f.indexOf("iPad")>=0||f.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,l=f.indexOf("Linux")>=0,u=!0,h=r.aj(r.NC({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"))||o;var C=a,S=s,w=l,k=c,x=u,E=u&&"function"===typeof p.importScripts,T=d,N=f,I=h,D="function"===typeof p.postMessage&&!p.importScripts,L=function(){if(D){var e=[];p.addEventListener("message",(function(t){if(t.data&&t.data.vscodeScheduleAsyncWork)for(var n=0,i=e.length;n<i;n++){var r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void r.callback()}}));var t=0;return function(n){var i=++t;e.push({id:i,callback:n}),p.postMessage({vscodeScheduleAsyncWork:i},"*")}}return function(e){return setTimeout(e)}}(),O=s||d?2:a?1:3,R=!0,A=!1;function M(){if(!A){A=!0;var e=new Uint8Array(2);e[0]=1,e[1]=2;var t=new Uint16Array(e.buffer);R=513===t[0]}return R}var P=!!(N&&N.indexOf("Chrome")>=0),Z=!!(N&&N.indexOf("Firefox")>=0),F=!!(!P&&N&&N.indexOf("Safari")>=0),B=!!(N&&N.indexOf("Edg/")>=0);N&&N.indexOf("Android")},163:function(e,t,n){"use strict";var i;n.d(t,{e:function(){return i}}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?{start:0,end:0}:{start:n,end:i}}function n(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=n,e.intersects=function(e,i){return!n(t(e,i))},e.relativeComplement=function(e,t){var i=[],r={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return n(r)||i.push(r),n(o)||i.push(o),i}}(i||(i={}))},41175:function(e,t,n){"use strict";n.d(t,{AH:function(){return S},DZ:function(){return _},EZ:function(){return y},Hx:function(){return m},SF:function(){return g},Vb:function(){return f},Vo:function(){return C},XX:function(){return b},Xy:function(){return v},i3:function(){return k},lX:function(){return w},z_:function(){return h}});var i=n(29439),r=n(15671),o=n(43144),a=n(54649),s=n(84855),l=n(52090),c=n(73616),u=n(32377),d=n(72112);function h(e){return(0,d.q)(e,!0)}var f,p=function(){function e(t){(0,r.Z)(this,e),this._ignorePathCasing=t}return(0,o.Z)(e,[{key:"compare",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e===t?0:(0,u.qu)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}},{key:"isEqual",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}},{key:"getComparisonKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}},{key:"isEqualOrParent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.scheme===t.scheme){if(e.scheme===s.lg.file)return a.KM(h(e),h(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(x(e.authority,t.authority))return a.KM(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}},{key:"joinPath",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return d.o.joinPath.apply(d.o,[e].concat(n))}},{key:"basenameOrAuthority",value:function(e){return y(e)||e.authority}},{key:"basename",value:function(e){return l.KR.basename(e.path)}},{key:"extname",value:function(e){return l.KR.extname(e.path)}},{key:"dirname",value:function(e){return 0===e.path.length?e:(e.scheme===s.lg.file?t=d.o.file(l.XX(h(e))).path:(t=l.KR.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error('dirname("'.concat(e.toString,")) resulted in a relative path")),t="/")),e.with({path:t}));var t}},{key:"normalizePath",value:function(e){return e.path.length?(t=e.scheme===s.lg.file?d.o.file(l.Fv(h(e))).path:l.KR.normalize(e.path),e.with({path:t})):e;var t}},{key:"relativePath",value:function(e,t){if(e.scheme===t.scheme&&x(e.authority,t.authority)){if(e.scheme===s.lg.file){var n=l.Gf(h(e),h(t));return c.ED?a.ej(n):n}var i=e.path||"/",r=t.path||"/";if(this._ignorePathCasing(e)){for(var o=0,u=Math.min(i.length,r.length);o<u&&(i.charCodeAt(o)===r.charCodeAt(o)||i.charAt(o).toLowerCase()===r.charAt(o).toLowerCase());o++);i=r.substr(0,o)+i.substr(o)}return l.KR.relative(i,r)}}},{key:"resolvePath",value:function(e,t){if(e.scheme===s.lg.file){var n=d.o.file(l.DB(h(e),t));return e.with({authority:n.authority,path:n.path})}return t=a.fn(t),e.with({path:l.KR.resolve(e.path,t)})}},{key:"isAbsolutePath",value:function(e){return!!e.path&&"/"===e.path[0]}},{key:"isEqualAuthority",value:function(e,t){return e===t||void 0!==e&&void 0!==t&&(0,u.qq)(e,t)}},{key:"hasTrailingPathSeparator",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.ir;if(e.scheme===s.lg.file){var n=h(e);return n.length>a.yj(n).length&&n[n.length-1]===t}var i=e.path;return i.length>1&&47===i.charCodeAt(i.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}},{key:"removeTrailingPathSeparator",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.ir;return E(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}},{key:"addTrailingPathSeparator",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.ir,n=!1;if(e.scheme===s.lg.file){var i=h(e);n=void 0!==i&&i.length===a.yj(i).length&&i[i.length-1]===t}else{t="/";var r=e.path;n=1===r.length&&47===r.charCodeAt(r.length-1)}return n||E(e,t)?e:e.with({path:e.path+"/"})}}]),e}(),g=new p((function(){return!1})),v=(new p((function(e){return e.scheme!==s.lg.file||!c.IJ})),new p((function(e){return!0})),g.isEqual.bind(g)),m=(g.isEqualOrParent.bind(g),g.getComparisonKey.bind(g),g.basenameOrAuthority.bind(g)),y=g.basename.bind(g),_=g.extname.bind(g),b=g.dirname.bind(g),C=g.joinPath.bind(g),S=g.normalizePath.bind(g),w=g.relativePath.bind(g),k=g.resolvePath.bind(g),x=(g.isAbsolutePath.bind(g),g.isEqualAuthority.bind(g)),E=g.hasTrailingPathSeparator.bind(g);g.removeTrailingPathSeparator.bind(g),g.addTrailingPathSeparator.bind(g);!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){var n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((function(e){var t=e.split(":"),r=(0,i.Z)(t,2),o=r[0],a=r[1];o&&a&&n.set(o,a)}));var r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(f||(f={}))},57970:function(e,t,n){"use strict";n.d(t,{Rm:function(){return h}});var i=n(11752),r=n(61120),o=n(60136),a=n(27277),s=n(15671),l=n(43144),c=n(73097),u=n(11860),d=function(){function e(t,n,i,r,o,a,l){(0,s.Z)(this,e),this._forceIntegerValues=t,this._scrollStateBrand=void 0,this._forceIntegerValues&&(n|=0,i|=0,r|=0,o|=0,a|=0,l|=0),this.rawScrollLeft=r,this.rawScrollTop=l,n<0&&(n=0),r+n>i&&(r=i-n),r<0&&(r=0),o<0&&(o=0),l+o>a&&(l=a-o),l<0&&(l=0),this.width=n,this.scrollWidth=i,this.scrollLeft=r,this.height=o,this.scrollHeight=a,this.scrollTop=l}return(0,l.Z)(e,[{key:"equals",value:function(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}},{key:"withScrollDimensions",value:function(t,n){return new e(this._forceIntegerValues,"undefined"!==typeof t.width?t.width:this.width,"undefined"!==typeof t.scrollWidth?t.scrollWidth:this.scrollWidth,n?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof t.height?t.height:this.height,"undefined"!==typeof t.scrollHeight?t.scrollHeight:this.scrollHeight,n?this.rawScrollTop:this.scrollTop)}},{key:"withScrollPosition",value:function(t){return new e(this._forceIntegerValues,this.width,this.scrollWidth,"undefined"!==typeof t.scrollLeft?t.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof t.scrollTop?t.scrollTop:this.rawScrollTop)}},{key:"createScrollEvent",value:function(e,t){var n=this.width!==e.width,i=this.scrollWidth!==e.scrollWidth,r=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,a=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:n,scrollWidthChanged:i,scrollLeftChanged:r,heightChanged:o,scrollHeightChanged:a,scrollTopChanged:s}}}]),e}(),h=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,s.Z)(this,n),(i=t.call(this))._scrollableBrand=void 0,i._onScroll=i._register(new c.Q5),i.onScroll=i._onScroll.event,i._smoothScrollDuration=e.smoothScrollDuration,i._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,i._state=new d(e.forceIntegerValues,0,0,0,0,0,0),i._smoothScrolling=null,i}return(0,l.Z)(n,[{key:"dispose",value:function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this)}},{key:"setSmoothScrollDuration",value:function(e){this._smoothScrollDuration=e}},{key:"validateScrollPosition",value:function(e){return this._state.withScrollPosition(e)}},{key:"getScrollDimensions",value:function(){return this._state}},{key:"setScrollDimensions",value:function(e,t){var n,i=this._state.withScrollDimensions(e,t);this._setState(i,Boolean(this._smoothScrolling)),null===(n=this._smoothScrolling)||void 0===n||n.acceptScrollDimensions(this._state)}},{key:"getFutureScrollPosition",value:function(){return this._smoothScrolling?this._smoothScrolling.to:this._state}},{key:"getCurrentScrollPosition",value:function(){return this._state}},{key:"setScrollPositionNow",value:function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}},{key:"setScrollPositionSmooth",value:function(e,t){var n=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};var i,r=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===r.scrollLeft&&this._smoothScrolling.to.scrollTop===r.scrollTop)return;i=t?new g(this._smoothScrolling.from,r,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,r,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=i}else{var o=this._state.withScrollPosition(e);this._smoothScrolling=g.start(this._state,o,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){n._smoothScrolling&&(n._smoothScrolling.animationFrameDisposable=null,n._performSmoothScrolling())}))}},{key:"_performSmoothScrolling",value:function(){var e=this;if(this._smoothScrolling){var t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n,!0),this._smoothScrolling)return t.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())})))}}},{key:"_setState",value:function(e,t){var n=this._state;n.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(n,t)))}}]),n}(u.JT),f=(0,l.Z)((function e(t,n,i){(0,s.Z)(this,e),this.scrollLeft=t,this.scrollTop=n,this.isDone=i}));function p(e,t){var n=t-e;return function(t){return e+n*(1-function(e){return Math.pow(e,3)}(1-t))}}var g=function(){function e(t,n,i,r){(0,s.Z)(this,e),this.from=t,this.to=n,this.duration=r,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}return(0,l.Z)(e,[{key:"_initAnimations",value:function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}},{key:"_initAnimation",value:function(e,t,n){var i,r,o,a,s;return Math.abs(e-t)>2.5*n?(e<t?(i=e+.75*n,r=t-.75*n):(i=e-.75*n,r=t+.75*n),o=p(e,i),a=p(r,t),s=.33,function(e){return e<s?o(e/s):a((e-s)/(1-s))}):p(e,t)}},{key:"dispose",value:function(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}},{key:"acceptScrollDimensions",value:function(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}},{key:"tick",value:function(){return this._tick(Date.now())}},{key:"_tick",value:function(e){var t=(e-this.startTime)/this.duration;if(t<1){var n=this.scrollLeft(t),i=this.scrollTop(t);return new f(n,i,!1)}return new f(this.to.scrollLeft,this.to.scrollTop,!0)}},{key:"combine",value:function(t,n,i){return e.start(t,n,i)}}],[{key:"start",value:function(t,n,i){return i+=10,new e(t,n,Date.now()-10,i)}}]),e}()},49750:function(e,t,n){"use strict";var i,r=n(32377);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){var t="error",n="warning",i="info";e.fromValue=function(o){return o?r.qq(t,o)?e.Error:r.qq(n,o)||r.qq("warn",o)?e.Warning:r.qq(i,o)?e.Info:e.Ignore:e.Ignore},e.toString=function(r){switch(r){case e.Error:return t;case e.Warning:return n;case e.Info:return i;default:return"ignore"}}}(i||(i={})),t.Z=i},25:function(e,t,n){"use strict";n.d(t,{G:function(){return s}});var i=n(15671),r=n(43144),o=n(73616),a=o.li.performance&&"function"===typeof o.li.performance.now,s=function(){function e(t){(0,i.Z)(this,e),this._highResolution=a&&t,this._startTime=this._now(),this._stopTime=-1}return(0,r.Z)(e,[{key:"stop",value:function(){this._stopTime=this._now()}},{key:"elapsed",value:function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}},{key:"_now",value:function(){return this._highResolution?o.li.performance.now():Date.now()}}],[{key:"create",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new e(t)}}]),e}()},32377:function(e,t,n){"use strict";n.d(t,{$i:function(){return $},B4:function(){return ce},C8:function(){return ee},GF:function(){return b},HO:function(){return U},IO:function(){return C},J_:function(){return G},K7:function(){return J},Kw:function(){return ie},LC:function(){return k},Mh:function(){return P},P1:function(){return Z},PJ:function(){return re},Qe:function(){return X},R1:function(){return _},T5:function(){return L},TT:function(){return N},Ut:function(){return Y},V8:function(){return x},W1:function(){return V},WU:function(){return h},YK:function(){return B},YU:function(){return f},ZG:function(){return F},ZH:function(){return z},ZK:function(){return ue},ab:function(){return Q},c1:function(){return te},df:function(){return R},ec:function(){return p},fy:function(){return g},j3:function(){return v},j_:function(){return D},m5:function(){return u},mK:function(){return O},mr:function(){return S},oH:function(){return se},oL:function(){return m},ok:function(){return M},ow:function(){return E},qq:function(){return A},qu:function(){return T},rL:function(){return H},uS:function(){return ne},un:function(){return y},uq:function(){return w},vH:function(){return W},vU:function(){return de},zY:function(){return I}});var i,r=n(29439),o=n(37762),a=n(15671),s=n(43144),l=n(15887),c=n(56922);function u(e){return!e||"string"!==typeof e||0===e.trim().length}var d=/{(\d+)}/g;function h(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return 0===n.length?e:e.replace(d,(function(e,t){var i=parseInt(t,10);return isNaN(i)||i<0||i>=n.length?e:n[i]}))}function f(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function p(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",n=v(e,t);return m(n,t)}function v(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var i=0;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function m(e,t){if(!e||!t)return e;var n=t.length,i=e.length;if(0===n||0===i)return e;for(var r=i,o=-1;-1!==(o=e.lastIndexOf(t,r-1))&&o+n===r;){if(0===o)return"";r=o}return e.substring(0,r)}function y(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function _(e){return e.replace(/\*/g,"")}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw new Error("Cannot create regex from empty string");t||(e=p(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function C(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)}function S(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function w(e){return e.split(/\r\n|\r|\n/)}function k(e){for(var t=0,n=e.length;t<n;t++){var i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function x(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i=t;i<n;i++){var r=e.charCodeAt(i);if(32!==r&&9!==r)return e.substring(t,i)}return e.substring(t,n)}function E(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length-1,n=t;n>=0;n--){var i=e.charCodeAt(n);if(32!==i&&9!==i)return n}return-1}function T(e,t){return e<t?-1:e>t?1:0}function N(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t.length;n<i&&r<o;n++,r++){var a=e.charCodeAt(n),s=t.charCodeAt(r);if(a<s)return-1;if(a>s)return 1}var l=i-n,c=o-r;return l<c?-1:l>c?1:0}function I(e,t){return D(e,t,0,e.length,0,t.length)}function D(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t.length;n<i&&r<o;n++,r++){var a=e.charCodeAt(n),s=t.charCodeAt(r);if(a!==s){if(a>=128||s>=128)return N(e.toLowerCase(),t.toLowerCase(),n,i,r,o);O(a)&&(a-=32),O(s)&&(s-=32);var l=a-s;if(0!==l)return l}}var c=i-n,u=o-r;return c<u?-1:c>u?1:0}function L(e){return e>=48&&e<=57}function O(e){return e>=97&&e<=122}function R(e){return e>=65&&e<=90}function A(e,t){return e.length===t.length&&0===D(e,t)}function M(e,t){var n=t.length;return!(t.length>e.length)&&0===D(e,t,0,n)}function P(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i}function Z(e,t){var n,i=Math.min(e.length,t.length),r=e.length-1,o=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(r-n)!==t.charCodeAt(o-n))return n;return i}function F(e){return 55296<=e&&e<=56319}function B(e){return 56320<=e&&e<=57343}function H(e,t){return t-56320+(e-55296<<10)+65536}function z(e,t,n){var i=e.charCodeAt(n);if(F(i)&&n+1<t){var r=e.charCodeAt(n+1);if(B(r))return H(i,r)}return i}var j=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,a.Z)(this,e),this._str=t,this._len=t.length,this._offset=n}return(0,s.Z)(e,[{key:"offset",get:function(){return this._offset}},{key:"setOffset",value:function(e){this._offset=e}},{key:"prevCodePoint",value:function(){var e=function(e,t){var n=e.charCodeAt(t-1);if(B(n)&&t>1){var i=e.charCodeAt(t-2);if(F(i))return H(i,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}},{key:"nextCodePoint",value:function(){var e=z(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}},{key:"eol",value:function(){return this._offset>=this._len}}]),e}(),V=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,a.Z)(this,e),this._iterator=new j(t,n)}return(0,s.Z)(e,[{key:"offset",get:function(){return this._iterator.offset}},{key:"nextGraphemeLength",value:function(){for(var e=ae.getInstance(),t=this._iterator,n=t.offset,i=e.getGraphemeBreakType(t.nextCodePoint());!t.eol();){var r=t.offset,o=e.getGraphemeBreakType(t.nextCodePoint());if(oe(i,o)){t.setOffset(r);break}i=o}return t.offset-n}},{key:"prevGraphemeLength",value:function(){for(var e=ae.getInstance(),t=this._iterator,n=t.offset,i=e.getGraphemeBreakType(t.prevCodePoint());t.offset>0;){var r=t.offset,o=e.getGraphemeBreakType(t.prevCodePoint());if(oe(o,i)){t.setOffset(r);break}i=o}return n-t.offset}},{key:"eol",value:function(){return this._iterator.eol()}}]),e}();function W(e,t){return new V(e,t).nextGraphemeLength()}function U(e,t){return new V(e,t).prevGraphemeLength()}function G(e,t){t>0&&B(e.charCodeAt(t))&&t--;var n=t+W(e,t);return[n-U(e,n),n]}var K=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function Y(e){return K.test(e)}var q=/^[\t\n\r\x20-\x7E]*$/;function $(e){return q.test(e)}var X=/[\u2028\u2029]/;function Q(e){return X.test(e)}function J(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function ee(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}var te=String.fromCharCode(65279);function ne(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function ie(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function re(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function oe(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}var ae=function(){function e(){(0,a.Z)(this,e),this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}return(0,s.Z)(e,[{key:"getGraphemeBreakType",value:function(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;for(var t=this._data,n=t.length/3,i=1;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}],[{key:"getInstance",value:function(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}}]),e}();function se(e,t){if(0===e)return 0;var n=function(e,t){var n=new j(t,e),i=n.prevCodePoint();for(;le(i)||65039===i||8419===i;){if(0===n.offset)return;i=n.prevCodePoint()}if(!ee(i))return;var r=n.offset;if(r>0){8205===n.prevCodePoint()&&(r=n.offset)}return r}(e,t);if(void 0!==n)return n;var i=new j(t,e);return i.prevCodePoint(),i.offset}function le(e){return 127995<=e&&e<=127999}ae._INSTANCE=null;var ce="\xa0",ue=function(){function e(t){(0,a.Z)(this,e),this.confusableDictionary=t}return(0,s.Z)(e,[{key:"isAmbiguous",value:function(e){return this.confusableDictionary.has(e)}},{key:"getPrimaryConfusable",value:function(e){return this.confusableDictionary.get(e)}},{key:"getConfusableCodePoints",value:function(){return new Set(this.confusableDictionary.keys())}}],[{key:"getInstance",value:function(t){return e.cache.get(Array.from(t))}},{key:"getLocales",value:function(){return e._locales.getValue()}}]),e}();i=ue,ue.ambiguousCharacterData=new c.o((function(){return JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')})),ue.cache=new l.t((function(e){function t(e){for(var t=new Map,n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;var n,i=new Map,a=(0,o.Z)(e);try{for(a.s();!(n=a.n()).done;){var s=(0,r.Z)(n.value,2),l=s[0],c=s[1];t.has(l)&&i.set(l,c)}}catch(u){a.e(u)}finally{a.f()}return i}var a=i.ambiguousCharacterData.getValue(),s=e.filter((function(e){return!e.startsWith("_")&&e in a}));0===s.length&&(s=["_default"]);var l,c=void 0,u=(0,o.Z)(s);try{for(u.s();!(l=u.n()).done;){var d=l.value;c=n(c,t(a[d]))}}catch(f){u.e(f)}finally{u.f()}var h=function(e,t){var n,i=new Map(e),a=(0,o.Z)(t);try{for(a.s();!(n=a.n()).done;){var s=(0,r.Z)(n.value,2),l=s[0],c=s[1];i.set(l,c)}}catch(f){a.e(f)}finally{a.f()}return i}(t(a._common),c);return new ue(h)})),ue._locales=new c.o((function(){return Object.keys(ue.ambiguousCharacterData.getValue()).filter((function(e){return!e.startsWith("_")}))}));var de=function(){function e(){(0,a.Z)(this,e)}return(0,s.Z)(e,null,[{key:"getRawData",value:function(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}},{key:"getData",value:function(){return this._data||(this._data=new Set(e.getRawData())),this._data}},{key:"isInvisibleCharacter",value:function(t){return e.getData().has(t)}},{key:"codePoints",get:function(){return e.getData()}}]),e}();de._data=void 0},85294:function(e,t,n){"use strict";n.d(t,{$E:function(){return _},$K:function(){return h},D8:function(){return m},HD:function(){return o},IU:function(){return b},Jp:function(){return f},Kn:function(){return a},TW:function(){return c},cW:function(){return g},f6:function(){return C},fU:function(){return s},hj:function(){return l},jn:function(){return u},kJ:function(){return r},mf:function(){return v},o8:function(){return d},p_:function(){return p},vE:function(){return S}});var i=n(37762);function r(e){return Array.isArray(e)}function o(e){return"string"===typeof e}function a(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){var 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 u(e){return!0===e||!1===e}function d(e){return"undefined"===typeof e}function h(e){return!f(e)}function f(e){return d(e)||null===e}function p(e,t){if(!e)throw new Error(t?"Unexpected type, expected '".concat(t,"'"):"Unexpected type")}function g(e){if(f(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function v(e){return"function"===typeof e}function m(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++)y(e[i],t[i])}function y(e,t){if(o(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof ".concat(t))}else if(v(t)){try{if(e instanceof t)return}catch(n){}if(!f(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 _(e){var t,n=[],r=(0,i.Z)(function(e){for(var t=[],n=Object.getPrototypeOf(e);Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e));try{for(r.s();!(t=r.n()).done;){var o=t.value;"function"===typeof e[o]&&n.push(o)}}catch(a){r.e(a)}finally{r.f()}return n}function b(e,t){var n,r=function(e){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},o={},a=(0,i.Z)(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;o[s]=r(s)}}catch(l){a.e(l)}finally{a.f()}return o}function C(e){return null===e?void 0:e}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unreachable";throw new Error(t)}},54540:function(e,t,n){"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{A:function(){return r},K:function(){return i}})},72112:function(e,t,n){"use strict";n.d(t,{o:function(){return b},q:function(){return E}});var i,r=n(4942),o=n(60136),a=n(27277),s=n(15671),l=n(43144),c=n(52090),u=n(73616),d=/^\w[\w\d+.-]*$/,h=/^\//,f=/^\/\//;function p(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!d.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!h.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(f.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}function g(e,t){return e||t?e:"file"}function v(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==y&&(t=y+t):t=y}return t}var m="",y="/",_=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,b=function(){function e(t,n,i,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];(0,s.Z)(this,e),"object"===typeof t?(this.scheme=t.scheme||m,this.authority=t.authority||m,this.path=t.path||m,this.query=t.query||m,this.fragment=t.fragment||m):(this.scheme=g(t,a),this.authority=n||m,this.path=v(this.scheme,i||m),this.query=r||m,this.fragment=o||m,p(this,a))}return(0,l.Z)(e,[{key:"fsPath",get:function(){return E(this,!1)}},{key:"with",value:function(e){if(!e)return this;var t=e.scheme,n=e.authority,i=e.path,r=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=m),void 0===n?n=this.authority:null===n&&(n=m),void 0===i?i=this.path:null===i&&(i=m),void 0===r?r=this.query:null===r&&(r=m),void 0===o?o=this.fragment:null===o&&(o=m),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&o===this.fragment?this:new S(t,n,i,r,o)}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return T(this,e)}},{key:"toJSON",value:function(){return this}}],[{key:"isUri",value:function(t){return t instanceof e||!!t&&("string"===typeof t.authority&&"string"===typeof t.fragment&&"string"===typeof t.path&&"string"===typeof t.query&&"string"===typeof t.scheme&&"string"===typeof t.fsPath&&"function"===typeof t.with&&"function"===typeof t.toString)}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=_.exec(e);return n?new S(n[2]||m,D(n[4]||m),D(n[5]||m),D(n[7]||m),D(n[9]||m),t):new S(m,m,m,m,m)}},{key:"file",value:function(e){var t=m;if(u.ED&&(e=e.replace(/\\/g,y)),e[0]===y&&e[1]===y){var n=e.indexOf(y,2);-1===n?(t=e.substring(2),e=y):(t=e.substring(2,n),e=e.substring(n)||y)}return new S("file",t,e,m,m)}},{key:"from",value:function(e){var t=new S(e.scheme,e.authority,e.path,e.query,e.fragment);return p(t,!0),t}},{key:"joinPath",value:function(t){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");for(var n,i,r,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];u.ED&&"file"===t.scheme?n=e.file((i=c.Ku).join.apply(i,[E(t,!0)].concat(a))).path:n=(r=c.KR).join.apply(r,[t.path].concat(a));return t.with({path:n})}},{key:"revive",value:function(t){if(t){if(t instanceof e)return t;var n=new S(t);return n._formatted=t.external,n._fsPath=t._sep===C?t.fsPath:null,n}return t}}]),e}(),C=u.ED?1:void 0,S=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,s.Z)(this,n),(e=t.apply(this,arguments))._formatted=null,e._fsPath=null,e}return(0,l.Z)(n,[{key:"fsPath",get:function(){return this._fsPath||(this._fsPath=E(this,!1)),this._fsPath}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?T(this,!0):(this._formatted||(this._formatted=T(this,!1)),this._formatted)}},{key:"toJSON",value:function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=C),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}]),n}(b),w=(i={},(0,r.Z)(i,58,"%3A"),(0,r.Z)(i,47,"%2F"),(0,r.Z)(i,63,"%3F"),(0,r.Z)(i,35,"%23"),(0,r.Z)(i,91,"%5B"),(0,r.Z)(i,93,"%5D"),(0,r.Z)(i,64,"%40"),(0,r.Z)(i,33,"%21"),(0,r.Z)(i,36,"%24"),(0,r.Z)(i,38,"%26"),(0,r.Z)(i,39,"%27"),(0,r.Z)(i,40,"%28"),(0,r.Z)(i,41,"%29"),(0,r.Z)(i,42,"%2A"),(0,r.Z)(i,43,"%2B"),(0,r.Z)(i,44,"%2C"),(0,r.Z)(i,59,"%3B"),(0,r.Z)(i,61,"%3D"),(0,r.Z)(i,32,"%20"),i);function k(e,t){for(var n=void 0,i=-1,r=0;r<e.length;r++){var o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));var a=w[o];void 0!==a?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=a):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function x(e){for(var t=void 0,n=0;n<e.length;n++){var i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=w[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function E(e,t){var n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?"//".concat(e.authority).concat(e.path):47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,u.ED&&(n=n.replace(/\//g,"\\")),n}function T(e,t){var n=t?x:k,i="",r=e.scheme,o=e.authority,a=e.path,s=e.query,l=e.fragment;if(r&&(i+=r,i+=":"),(o||"file"===r)&&(i+=y,i+=y),o){var c=o.indexOf("@");if(-1!==c){var u=o.substr(0,c);o=o.substr(c+1),-1===(c=u.indexOf(":"))?i+=n(u,!1):(i+=n(u.substr(0,c),!1),i+=":",i+=n(u.substr(c+1),!1)),i+="@"}-1===(c=(o=o.toLowerCase()).indexOf(":"))?i+=n(o,!1):(i+=n(o.substr(0,c),!1),i+=o.substr(c))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){var d=a.charCodeAt(1);d>=65&&d<=90&&(a="/".concat(String.fromCharCode(d+32),":").concat(a.substr(3)))}else if(a.length>=2&&58===a.charCodeAt(1)){var h=a.charCodeAt(0);h>=65&&h<=90&&(a="".concat(String.fromCharCode(h+32),":").concat(a.substr(2)))}i+=n(a,!0)}return s&&(i+="?",i+=n(s,!1)),l&&(i+="#",i+=t?l:k(l,!1)),i}function N(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+N(e.substr(3)):e}}var I=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function D(e){return e.match(I)?e.replace(I,(function(e){return N(e)})):e}},21671:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var i=function(){if("object"===typeof crypto&&"function"===typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);var e;e="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(var t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};for(var t=new Uint8Array(16),n=[],i=0;i<256;i++)n.push(i.toString(16).padStart(2,"0"));return function(){e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;var i=0,r="";return r+=n[t[i++]],r+=n[t[i++]],r+=n[t[i++]],r+=n[t[i++]],r+="-",r+=n[t[i++]],r+=n[t[i++]],r+="-",r+=n[t[i++]],r+=n[t[i++]],r+="-",r+=n[t[i++]],r+=n[t[i++]],r+="-",r+=n[t[i++]],r+=n[t[i++]],r+=n[t[i++]],r+=n[t[i++]],r+=n[t[i++]],r+=n[t[i++]]}}()},57090:function(e,t,n){"use strict";n.d(t,{Jq:function(){return i},X5:function(){return s},jG:function(){return r}});var i,r,o=n(43144),a=n(15671),s={ctrlCmd:!1,alt:!1};!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(i||(i={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(r||(r={}));new((0,o.Z)((function e(t){(0,a.Z)(this,e),this.options=t})))},46383:function(e,t,n){"use strict";n.d(t,{H:function(){return _}});var i=n(74165),r=n(15861),o=n(15671),a=n(43144),s=n(4942),l=n(37762),c=n(16599),u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,p=function(e,t,n,i){if(t&&"object"===typeof t||"function"===typeof t){var r,o=(0,l.Z)(h(t));try{var a=function(){var o=r.value;f.call(e,o)||o===n||u(e,o,{get:function(){return t[o]},enumerable:!(i=d(t,o))||i.enumerable})};for(o.s();!(r=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}}return e},g={};!function(e,t,n){p(e,t,"default"),n&&p(n,t,"default")}(g,c);var v={},m={},y=function(){function e(t){var n=this;(0,o.Z)(this,e),(0,s.Z)(this,"_languageId",void 0),(0,s.Z)(this,"_loadingTriggered",void 0),(0,s.Z)(this,"_lazyLoadPromise",void 0),(0,s.Z)(this,"_lazyLoadPromiseResolve",void 0),(0,s.Z)(this,"_lazyLoadPromiseReject",void 0),this._languageId=t,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((function(e,t){n._lazyLoadPromiseResolve=e,n._lazyLoadPromiseReject=t}))}return(0,a.Z)(e,[{key:"load",value:function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,v[this._languageId].loader().then((function(t){return e._lazyLoadPromiseResolve(t)}),(function(t){return e._lazyLoadPromiseReject(t)}))),this._lazyLoadPromise}}],[{key:"getOrCreate",value:function(t){return m[t]||(m[t]=new e(t)),m[t]}}]),e}();function _(e){var t=e.id;v[t]=e,g.languages.register(e);var n=y.getOrCreate(t);g.languages.registerTokensProviderFactory(t,{create:function(){var e=(0,r.Z)((0,i.Z)().mark((function e(){var t;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.load();case 2:return t=e.sent,e.abrupt("return",t.language);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),g.languages.onLanguage(t,(0,r.Z)((0,i.Z)().mark((function e(){var r;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.load();case 2:r=e.sent,g.languages.setLanguageConfiguration(t,r.conf);case 4:case"end":return e.stop()}}),e)}))))}},9435:function(e,t,n){"use strict";n.r(t),(0,n(46383).H)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return n.e(558).then(n.bind(n,25558))}})},59852:function(e,t,n){"use strict";n.r(t),(0,n(46383).H)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return n.e(324).then(n.bind(n,1324))}})},34070:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});var i=n(25652);function r(e,t){e instanceof i.Z?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}},70423:function(e,t,n){"use strict";n.d(t,{I:function(){return d}});var i=n(15671),r=n(43144),o=n(11752),a=n(61120),s=n(60136),l=n(27277),c=n(11860),u=n(73097),d=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var o;return(0,i.Z)(this,n),(o=t.call(this))._onDidChange=o._register(new u.Q5),o.onDidChange=o._onDidChange.event,o._referenceDomElement=e,o._width=-1,o._height=-1,o._resizeObserver=null,o.measureReferenceDomElement(!1,r),o}return(0,r.Z)(n,[{key:"dispose",value:function(){this.stopObserving(),(0,o.Z)((0,a.Z)(n.prototype),"dispose",this).call(this)}},{key:"getWidth",value:function(){return this._width}},{key:"getHeight",value:function(){return this._height}},{key:"startObserving",value:function(){var e=this;!this._resizeObserver&&this._referenceDomElement&&(this._resizeObserver=new ResizeObserver((function(t){t&&t[0]&&t[0].contentRect?e.observe({width:t[0].contentRect.width,height:t[0].contentRect.height}):e.observe()})),this._resizeObserver.observe(this._referenceDomElement))}},{key:"stopObserving",value:function(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}},{key:"observe",value:function(e){this.measureReferenceDomElement(!0,e)}},{key:"measureReferenceDomElement",value:function(e,t){var n=0,i=0;t?(n=t.width,i=t.height):this._referenceDomElement&&(n=this._referenceDomElement.clientWidth,i=this._referenceDomElement.clientHeight),n=Math.max(5,n),i=Math.max(5,i),this._width===n&&this._height===i||(this._width=n,this._height=i,e&&this._onDidChange.fire())}}]),n}(c.JT)},44471:function(e,t,n){"use strict";n.d(t,{g:function(){return b}});var i=n(37762),r=n(15671),o=n(43144),a=n(11752),s=n(61120),l=n(60136),c=n(27277),u=n(62865),d=n(73097),h=n(11860),f=n(34070),p=function(){function e(t,n){(0,r.Z)(this,e),this.chr=t,this.type=n,this.width=0}return(0,o.Z)(e,[{key:"fulfill",value:function(e){this.width=e}}]),e}(),g=function(){function e(t,n){(0,r.Z)(this,e),this._bareFontInfo=t,this._requests=n,this._container=null,this._testElements=null}return(0,o.Z)(e,[{key:"read",value:function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}},{key:"_createDomElements",value:function(){var t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";var n=document.createElement("div");(0,f.N)(n,this._bareFontInfo),t.appendChild(n);var r=document.createElement("div");(0,f.N)(r,this._bareFontInfo),r.style.fontWeight="bold",t.appendChild(r);var o=document.createElement("div");(0,f.N)(o,this._bareFontInfo),o.style.fontStyle="italic",t.appendChild(o);var a,s=[],l=(0,i.Z)(this._requests);try{for(l.s();!(a=l.n()).done;){var c=a.value,u=void 0;0===c.type&&(u=n),2===c.type&&(u=r),1===c.type&&(u=o),u.appendChild(document.createElement("br"));var d=document.createElement("span");e._render(d,c),u.appendChild(d),s.push(d)}}catch(h){l.e(h)}finally{l.f()}this._container=t,this._testElements=s}},{key:"_readFromDomElements",value:function(){for(var e=0,t=this._requests.length;e<t;e++){var n=this._requests[e],i=this._testElements[e];n.fulfill(i.offsetWidth/256)}}}],[{key:"_render",value:function(e,t){if(" "===t.chr){for(var n="\xa0",i=0;i<8;i++)n+=n;e.innerText=n}else{for(var r=t.chr,o=0;o<8;o++)r+=r;e.textContent=r}}}]),e}();var v=n(64472),m=n(4539),y=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this))._onDidChange=e._register(new d.Q5),e.onDidChange=e._onDidChange.event,e._cache=new _,e._evictUntrustedReadingsTimeout=-1,e}return(0,o.Z)(n,[{key:"dispose",value:function(){-1!==this._evictUntrustedReadingsTimeout&&(window.clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}},{key:"clearAllFontInfos",value:function(){this._cache=new _,this._onDidChange.fire()}},{key:"_writeToCache",value:function(e,t){var n=this;this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=window.setTimeout((function(){n._evictUntrustedReadingsTimeout=-1,n._evictUntrustedReadings()}),5e3))}},{key:"_evictUntrustedReadings",value:function(){var e,t=this._cache.getValues(),n=!1,r=(0,i.Z)(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.isTrusted||(n=!0,this._cache.remove(o))}}catch(a){r.e(a)}finally{r.f()}n&&this._onDidChange.fire()}},{key:"readFontInfo",value:function(e){if(!this._cache.has(e)){var t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new m.pR({pixelRatio:u.PixelRatio.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}},{key:"_createRequest",value:function(e,t,n,i){var r=new p(e,t);return n.push(r),null===i||void 0===i||i.push(r),r}},{key:"_actualReadFontInfo",value:function(e){for(var t=[],n=[],i=this._createRequest("n",0,t,n),r=this._createRequest("\uff4d",0,t,null),o=this._createRequest(" ",0,t,n),a=this._createRequest("0",0,t,n),s=this._createRequest("1",0,t,n),l=this._createRequest("2",0,t,n),c=this._createRequest("3",0,t,n),d=this._createRequest("4",0,t,n),h=this._createRequest("5",0,t,n),f=this._createRequest("6",0,t,n),p=this._createRequest("7",0,t,n),y=this._createRequest("8",0,t,n),_=this._createRequest("9",0,t,n),b=this._createRequest("\u2192",0,t,n),C=this._createRequest("\uffeb",0,t,null),S=this._createRequest("\xb7",0,t,n),w=this._createRequest(String.fromCharCode(11825),0,t,null),k="|/-_ilm%",x=0,E=k.length;x<E;x++)this._createRequest(k.charAt(x),0,t,n),this._createRequest(k.charAt(x),1,t,n),this._createRequest(k.charAt(x),2,t,n);!function(e,t){new g(e,t).read()}(e,t);for(var T=Math.max(a.width,s.width,l.width,c.width,d.width,h.width,f.width,p.width,y.width,_.width),N=e.fontFeatureSettings===v.n0.OFF,I=n[0].width,D=1,L=n.length;N&&D<L;D++){var O=I-n[D].width;if(O<-.001||O>.001){N=!1;break}}var R=!0;return N&&C.width!==I&&(R=!1),C.width>b.width&&(R=!1),new m.pR({pixelRatio:u.PixelRatio.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:N,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:R,spaceWidth:o.width,middotWidth:S.width,wsmiddotWidth:w.width,maxDigitWidth:T},!0)}}]),n}(h.JT),_=function(){function e(){(0,r.Z)(this,e),this._keys=Object.create(null),this._values=Object.create(null)}return(0,o.Z)(e,[{key:"has",value:function(e){var t=e.getId();return!!this._values[t]}},{key:"get",value:function(e){var t=e.getId();return this._values[t]}},{key:"put",value:function(e,t){var n=e.getId();this._keys[n]=e,this._values[n]=t}},{key:"remove",value:function(e){var t=e.getId();delete this._keys[t],delete this._values[t]}},{key:"getValues",value:function(){var e=this;return Object.keys(this._keys).map((function(t){return e._values[t]}))}}]),e}(),b=new y},75735:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var i=n(15671),r=n(43144),o=n(73097),a=new(function(){function e(){(0,i.Z)(this,e),this._tabFocus=!1,this._onDidChangeTabFocus=new o.Q5,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return(0,r.Z)(e,[{key:"getTabFocusMode",value:function(){return this._tabFocus}},{key:"setTabFocusMode",value:function(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}}]),e}())},12379:function(e,t,n){"use strict";n.d(t,{Fz:function(){return k},Nl:function(){return S},RA:function(){return C},Tj:function(){return E},pd:function(){return i}});var i,r=n(29439),o=n(11752),a=n(61120),s=n(60136),l=n(27277),c=n(15671),u=n(43144),d=n(62865),h=n(81531),f=n(33813),p=n(60022),g=n(73097),v=n(11860),m=n(62684),y=n(32377),_=n(9235),b=n(23145);!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(i||(i={}));var C={forceCopyWithSyntaxHighlighting:!1},S=function(){function e(){(0,c.Z)(this,e),this._lastState=null}return(0,u.Z)(e,[{key:"set",value:function(e,t){this._lastState={lastCopiedValue:e,data:t}}},{key:"get",value:function(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}]),e}();S.INSTANCE=new S;var w=function(){function e(){(0,c.Z)(this,e),this._lastTypeTextLength=0}return(0,u.Z)(e,[{key:"handleCompositionUpdate",value:function(e){var t={text:e=e||"",replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}]),e}(),k=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i,o,a){var s;(0,c.Z)(this,n),(s=t.call(this))._host=e,s._textArea=i,s._OS=o,s._browser=a,s._onFocus=s._register(new g.Q5),s.onFocus=s._onFocus.event,s._onBlur=s._register(new g.Q5),s.onBlur=s._onBlur.event,s._onKeyDown=s._register(new g.Q5),s.onKeyDown=s._onKeyDown.event,s._onKeyUp=s._register(new g.Q5),s.onKeyUp=s._onKeyUp.event,s._onCut=s._register(new g.Q5),s.onCut=s._onCut.event,s._onPaste=s._register(new g.Q5),s.onPaste=s._onPaste.event,s._onType=s._register(new g.Q5),s.onType=s._onType.event,s._onCompositionStart=s._register(new g.Q5),s.onCompositionStart=s._onCompositionStart.event,s._onCompositionUpdate=s._register(new g.Q5),s.onCompositionUpdate=s._onCompositionUpdate.event,s._onCompositionEnd=s._register(new g.Q5),s.onCompositionEnd=s._onCompositionEnd.event,s._onSelectionChangeRequest=s._register(new g.Q5),s.onSelectionChangeRequest=s._onSelectionChangeRequest.event,s._asyncTriggerCut=s._register(new p.pY((function(){return s._onCut.fire()}),0)),s._asyncFocusGainWriteScreenReaderContent=s._register(new p.pY((function(){return s.writeScreenReaderContent("asyncFocusGain")}),0)),s._textAreaState=_.un.EMPTY,s._selectionChangeListener=null,s.writeScreenReaderContent("ctor"),s._hasFocus=!1,s._currentComposition=null;var l=null;return s._register(s._textArea.onKeyDown((function(e){var t=new f.y(e);(109===t.keyCode||s._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),l=t,s._onKeyDown.fire(t)}))),s._register(s._textArea.onKeyUp((function(e){var t=new f.y(e);s._onKeyUp.fire(t)}))),s._register(s._textArea.onCompositionStart((function(e){_.al&&console.log("[compositionstart]",e);var t=new w;if(s._currentComposition)s._currentComposition=t;else{if(s._currentComposition=t,2===s._OS&&l&&l.equals(109)&&s._textAreaState.selectionStart===s._textAreaState.selectionEnd&&s._textAreaState.selectionStart>0&&s._textAreaState.value.substr(s._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===l.code||"ArrowLeft"===l.code))return _.al&&console.log("[compositionstart] Handling long press case on macOS + arrow key",e),t.handleCompositionUpdate("x"),void s._onCompositionStart.fire({data:e.data});s._browser.isAndroid,s._onCompositionStart.fire({data:e.data})}}))),s._register(s._textArea.onCompositionUpdate((function(e){_.al&&console.log("[compositionupdate]",e);var t=s._currentComposition;if(t){if(s._browser.isAndroid){var n=_.un.readFromTextArea(s._textArea),i=_.un.deduceAndroidCompositionInput(s._textAreaState,n);return s._textAreaState=n,s._onType.fire(i),void s._onCompositionUpdate.fire(e)}var r=t.handleCompositionUpdate(e.data);s._textAreaState=_.un.readFromTextArea(s._textArea),s._onType.fire(r),s._onCompositionUpdate.fire(e)}}))),s._register(s._textArea.onCompositionEnd((function(e){_.al&&console.log("[compositionend]",e);var t=s._currentComposition;if(t){if(s._currentComposition=null,s._browser.isAndroid){var n=_.un.readFromTextArea(s._textArea),i=_.un.deduceAndroidCompositionInput(s._textAreaState,n);return s._textAreaState=n,s._onType.fire(i),void s._onCompositionEnd.fire()}var r=t.handleCompositionUpdate(e.data);s._textAreaState=_.un.readFromTextArea(s._textArea),s._onType.fire(r),s._onCompositionEnd.fire()}}))),s._register(s._textArea.onInput((function(e){if(_.al&&console.log("[input]",e),s._textArea.setIgnoreSelectionChangeTime("received input event"),!s._currentComposition){var t=_.un.readFromTextArea(s._textArea),n=_.un.deduceInput(s._textAreaState,t,2===s._OS);0===n.replacePrevCharCnt&&1===n.text.length&&y.ZG(n.text.charCodeAt(0))||(s._textAreaState=t,""===n.text&&0===n.replacePrevCharCnt&&0===n.replaceNextCharCnt&&0===n.positionDelta||s._onType.fire(n))}}))),s._register(s._textArea.onCut((function(e){s._textArea.setIgnoreSelectionChangeTime("received cut event"),s._ensureClipboardGetsEditorSelection(e),s._asyncTriggerCut.schedule()}))),s._register(s._textArea.onCopy((function(e){s._ensureClipboardGetsEditorSelection(e)}))),s._register(s._textArea.onPaste((function(e){if(s._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),e.clipboardData){var t=x.getTextData(e.clipboardData),n=(0,r.Z)(t,2),i=n[0],o=n[1];i&&(o=o||S.INSTANCE.get(i),s._onPaste.fire({text:i,metadata:o}))}}))),s._register(s._textArea.onFocus((function(){var e=s._hasFocus;s._setHasFocus(!0),s._browser.isSafari&&!e&&s._hasFocus&&s._asyncFocusGainWriteScreenReaderContent.schedule()}))),s._register(s._textArea.onBlur((function(){s._currentComposition&&(s._currentComposition=null,s.writeScreenReaderContent("blurWithoutCompositionEnd"),s._onCompositionEnd.fire()),s._setHasFocus(!1)}))),s._register(s._textArea.onSyntheticTap((function(){s._browser.isAndroid&&s._currentComposition&&(s._currentComposition=null,s.writeScreenReaderContent("tapWithoutCompositionEnd"),s._onCompositionEnd.fire())}))),s}return(0,u.Z)(n,[{key:"_installSelectionChangeListener",value:function(){var e=this,t=0;return h.addDisposableListener(document,"selectionchange",(function(n){if(e._hasFocus&&!e._currentComposition&&e._browser.isChrome){var i=Date.now(),r=i-t;if(t=i,!(r<5)){var o=i-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(o<100)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var a=e._textArea.getValue();if(e._textAreaState.value===a){var s=e._textArea.getSelectionStart(),l=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==s||e._textAreaState.selectionEnd!==l){var c=e._textAreaState.deduceEditorPosition(s),u=e._host.deduceModelPosition(c[0],c[1],c[2]),d=e._textAreaState.deduceEditorPosition(l),h=e._host.deduceModelPosition(d[0],d[1],d[2]),f=new b.Y(u.lineNumber,u.column,h.lineNumber,h.column);e._onSelectionChangeRequest.fire(f)}}}}}}))}},{key:"dispose",value:function(){(0,o.Z)((0,a.Z)(n.prototype),"dispose",this).call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}},{key:"focusTextArea",value:function(){this._setHasFocus(!0),this.refreshFocusState()}},{key:"isFocused",value:function(){return this._hasFocus}},{key:"refreshFocusState",value:function(){this._setHasFocus(this._textArea.hasFocus())}},{key:"_setHasFocus",value:function(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}},{key:"_setAndWriteTextAreaState",value:function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}},{key:"writeScreenReaderContent",value:function(e){this._currentComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))}},{key:"_ensureClipboardGetsEditorSelection",value:function(e){var t=this._host.getDataToCopy(),n={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};S.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,n),e.preventDefault(),e.clipboardData&&x.setTextData(e.clipboardData,t.text,t.html,n)}}]),n}(v.JT),x=function(){function e(){(0,c.Z)(this,e)}return(0,u.Z)(e,null,[{key:"getTextData",value:function(e){var t=e.getData(m.v.text),n=null,i=e.getData("vscode-editor-data");if("string"===typeof i)try{1!==(n=JSON.parse(i)).version&&(n=null)}catch(r){}return 0===t.length&&null===n&&e.files.length>0?[Array.prototype.slice.call(e.files,0).map((function(e){return e.name})).join("\n"),null]:[t,n]}},{key:"setTextData",value:function(e,t,n,i){e.setData(m.v.text,t),"string"===typeof n&&e.setData("text/html",n),e.setData("vscode-editor-data",JSON.stringify(i))}}]),e}(),E=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var r;return(0,c.Z)(this,n),(r=t.call(this))._actual=e,r.onKeyDown=r._register(h.createEventEmitter(r._actual,"keydown")).event,r.onKeyUp=r._register(h.createEventEmitter(r._actual,"keyup")).event,r.onCompositionStart=r._register(h.createEventEmitter(r._actual,"compositionstart")).event,r.onCompositionUpdate=r._register(h.createEventEmitter(r._actual,"compositionupdate")).event,r.onCompositionEnd=r._register(h.createEventEmitter(r._actual,"compositionend")).event,r.onInput=r._register(h.createEventEmitter(r._actual,"input")).event,r.onCut=r._register(h.createEventEmitter(r._actual,"cut")).event,r.onCopy=r._register(h.createEventEmitter(r._actual,"copy")).event,r.onPaste=r._register(h.createEventEmitter(r._actual,"paste")).event,r.onFocus=r._register(h.createEventEmitter(r._actual,"focus")).event,r.onBlur=r._register(h.createEventEmitter(r._actual,"blur")).event,r._onSyntheticTap=r._register(new g.Q5),r.onSyntheticTap=r._onSyntheticTap.event,r._ignoreSelectionChangeTime=0,r._register(h.addDisposableListener(r._actual,i.Tap,(function(){return r._onSyntheticTap.fire()}))),r}return(0,u.Z)(n,[{key:"hasFocus",value:function(){var e=h.getShadowRoot(this._actual);return e?e.activeElement===this._actual:!!h.isInDOM(this._actual)&&document.activeElement===this._actual}},{key:"setIgnoreSelectionChangeTime",value:function(e){this._ignoreSelectionChangeTime=Date.now()}},{key:"getIgnoreSelectionChangeTime",value:function(){return this._ignoreSelectionChangeTime}},{key:"resetSelectionChangeTime",value:function(){this._ignoreSelectionChangeTime=0}},{key:"getValue",value:function(){return this._actual.value}},{key:"setValue",value:function(e,t){var n=this._actual;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)}},{key:"getSelectionStart",value:function(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}},{key:"getSelectionEnd",value:function(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}},{key:"setSelectionRange",value:function(e,t,n){var i=this._actual,r=h.getShadowRoot(i),o=(r?r.activeElement:document.activeElement)===i,a=i.selectionStart,s=i.selectionEnd;if(o&&a===t&&s===n)d.isFirefox&&window.parent!==window&&i.focus();else{if(o)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(d.isFirefox&&window.parent!==window&&i.focus());try{var l=h.saveParentsScrollTop(i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),h.restoreParentsScrollTop(i,l)}catch(c){}}}}]),n}(v.JT)},9235:function(e,t,n){"use strict";n.d(t,{al:function(){return l},ee:function(){return u},un:function(){return c}});var i=n(15671),r=n(43144),o=n(32377),a=n(38622),s=n(80133),l=!1,c=function(){function e(t,n,r,o,a){(0,i.Z)(this,e),this.value=t,this.selectionStart=n,this.selectionEnd=r,this.selectionStartPosition=o,this.selectionEndPosition=a}return(0,r.Z)(e,[{key:"toString",value:function(){return"[ <".concat(this.value,">, selectionStart: ").concat(this.selectionStart,", selectionEnd: ").concat(this.selectionEnd,"]")}},{key:"collapseSelection",value:function(){return new e(this.value,this.value.length,this.value.length,null,null)}},{key:"writeToTextArea",value:function(e,t,n){l&&console.log("writeToTextArea ".concat(e,": ").concat(this.toString())),t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}},{key:"deduceEditorPosition",value:function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){var n=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,n,1)}var i=this.value.substring(this.selectionStart,e);if(-1===i.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,i,1);var r=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,r,-1)}},{key:"_finishDeduceEditorPosition",value:function(e,t,n){for(var i=0,r=-1;-1!==(r=t.indexOf("\n",r+1));)i++;return[e,n*t.length,i]}}],[{key:"readFromTextArea",value:function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)}},{key:"deduceInput",value:function(e,t,n){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};l&&(console.log("------------------------deduceInput"),console.log("PREVIOUS STATE: ".concat(e.toString())),console.log("CURRENT STATE: ".concat(t.toString())));var i=Math.min(o.Mh(e.value,t.value),e.selectionStart,t.selectionStart),r=Math.min(o.P1(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd),a=e.value.substring(i,e.value.length-r),s=t.value.substring(i,t.value.length-r),c=e.selectionStart-i,u=e.selectionEnd-i,d=t.selectionStart-i,h=t.selectionEnd-i;if(l&&(console.log("AFTER DIFFING PREVIOUS STATE: <".concat(a,">, selectionStart: ").concat(c,", selectionEnd: ").concat(u)),console.log("AFTER DIFFING CURRENT STATE: <".concat(s,">, selectionStart: ").concat(d,", selectionEnd: ").concat(h))),d===h){var f=e.selectionStart-i;return l&&console.log("REMOVE PREVIOUS: ".concat(f," chars")),{text:s,replacePrevCharCnt:f,replaceNextCharCnt:0,positionDelta:0}}return{text:s,replacePrevCharCnt:u-c,replaceNextCharCnt:0,positionDelta:0}}},{key:"deduceAndroidCompositionInput",value:function(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(l&&(console.log("------------------------deduceAndroidCompositionInput"),console.log("PREVIOUS STATE: ".concat(e.toString())),console.log("CURRENT STATE: ".concat(t.toString()))),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};var n=Math.min(o.Mh(e.value,t.value),e.selectionEnd),i=Math.min(o.P1(e.value,t.value),e.value.length-e.selectionEnd),r=e.value.substring(n,e.value.length-i),a=t.value.substring(n,t.value.length-i),s=e.selectionStart-n,c=e.selectionEnd-n,u=t.selectionStart-n,d=t.selectionEnd-n;return l&&(console.log("AFTER DIFFING PREVIOUS STATE: <".concat(r,">, selectionStart: ").concat(s,", selectionEnd: ").concat(c)),console.log("AFTER DIFFING CURRENT STATE: <".concat(a,">, selectionStart: ").concat(u,", selectionEnd: ").concat(d))),{text:a,replacePrevCharCnt:c,replaceNextCharCnt:r.length-c,positionDelta:d-a.length}}}]),e}();c.EMPTY=new c("",0,0,null,null);var u=function(){function e(){(0,i.Z)(this,e)}return(0,r.Z)(e,null,[{key:"_getPageOfLine",value:function(e,t){return Math.floor((e-1)/t)}},{key:"_getRangeForPage",value:function(e,t){var n=e*t,i=n+1,r=n+t;return new s.e(i,1,r+1,1)}},{key:"fromEditorSelection",value:function(t,n,i,r,o){var l,u=e._getPageOfLine(i.startLineNumber,r),d=e._getRangeForPage(u,r),h=e._getPageOfLine(i.endLineNumber,r),f=e._getRangeForPage(h,r),p=d.intersectRanges(new s.e(1,1,i.startLineNumber,i.startColumn)),g=n.getValueInRange(p,1),v=n.getLineCount(),m=n.getLineMaxColumn(v),y=f.intersectRanges(new s.e(i.endLineNumber,i.endColumn,v,m)),_=n.getValueInRange(y,1);if(u===h||u+1===h)l=n.getValueInRange(i,1);else{var b=d.intersectRanges(i),C=f.intersectRanges(i);l=n.getValueInRange(b,1)+String.fromCharCode(8230)+n.getValueInRange(C,1)}if(o){var S=500;g.length>S&&(g=g.substring(g.length-S,g.length)),_.length>S&&(_=_.substring(0,S)),l.length>1e3&&(l=l.substring(0,S)+String.fromCharCode(8230)+l.substring(l.length-S,l.length))}return new c(g+l+_,g.length,g.length+l.length,new a.L(i.startLineNumber,i.startColumn),new a.L(i.endLineNumber,i.endColumn))}}]),e}()},79240:function(e,t,n){"use strict";n.r(t),n.d(t,{CoreEditingCommands:function(){return I},CoreEditorCommand:function(){return E},CoreNavigationCommands:function(){return T},EditorScroll_:function(){return i},RevealLine_:function(){return r}});var i,r,o=n(29439),a=n(15671),s=n(43144),l=n(60136),c=n(27277),u=n(27722),d=n(62865),h=n(85294),f=n(4801),p=n(62381),g=n(98596),v=n(21577),m=n(38622),y=n(80133),_=function(){function e(){(0,a.Z)(this,e)}return(0,s.Z)(e,null,[{key:"columnSelect",value:function(e,t,n,i,r,o){for(var a=Math.abs(r-n)+1,s=n>r,l=i>o,c=i<o,u=[],d=0;d<a;d++){var h=n+(s?-d:d),f=e.columnFromVisibleColumn(t,h,i),p=e.columnFromVisibleColumn(t,h,o),g=e.visibleColumnFromColumn(t,new m.L(h,f)),_=e.visibleColumnFromColumn(t,new m.L(h,p));if(c){if(g>o)continue;if(_<i)continue}if(l){if(_>i)continue;if(g<o)continue}u.push(new v.rS(new y.e(h,f,h,f),0,new m.L(h,p),0))}if(0===u.length)for(var b=0;b<a;b++){var C=n+(s?-b:b),S=t.getLineMaxColumn(C);u.push(new v.rS(new y.e(C,S,C,S),0,new m.L(C,S),0))}return{viewStates:u,reversed:s,fromLineNumber:n,fromVisualColumn:i,toLineNumber:r,toVisualColumn:o}}},{key:"columnSelectLeft",value:function(t,n,i){var r=i.toViewVisualColumn;return r>0&&r--,e.columnSelect(t,n,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,r)}},{key:"columnSelectRight",value:function(e,t,n){for(var i=0,r=Math.min(n.fromViewLineNumber,n.toViewLineNumber),o=Math.max(n.fromViewLineNumber,n.toViewLineNumber),a=r;a<=o;a++){var s=t.getLineMaxColumn(a),l=e.visibleColumnFromColumn(t,new m.L(a,s));i=Math.max(i,l)}var c=n.toViewVisualColumn;return c<i&&c++,this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,c)}},{key:"columnSelectUp",value:function(e,t,n,i){var r=i?e.pageSize:1,o=Math.max(1,n.toViewLineNumber-r);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,o,n.toViewVisualColumn)}},{key:"columnSelectDown",value:function(e,t,n,i){var r=i?e.pageSize:1,o=Math.min(t.getLineCount(),n.toViewLineNumber+r);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,o,n.toViewVisualColumn)}}]),e}(),b=n(99046),C=n(36756),S=n(28776),w=n(67245),k=n(34509),x=n(5850),E=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"runEditorCommand",value:function(e,t,n){var i=t._getViewModel();i&&this.runCoreEditorCommand(i,n||{})}}]),n}(p._l);!function(e){e.description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!h.Kn(e))return!1;var t=e;return!!h.HD(t.to)&&(!(!h.o8(t.by)&&!h.HD(t.by))&&(!(!h.o8(t.value)&&!h.hj(t.value))&&!(!h.o8(t.revealCursor)&&!h.jn(t.revealCursor))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Down:"down"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor"},e.parse=function(t){var n,i;switch(t.to){case e.RawDirection.Up:n=1;break;case e.RawDirection.Down:n=2;break;default:return null}switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Page:i=3;break;case e.RawUnit.HalfPage:i=4;break;case e.RawUnit.Editor:i=5;break;default:i=2}return{direction:n,unit:i,value:Math.floor(t.value||1),revealCursor:!!t.revealCursor,select:!!t.select}}}(i||(i={})),function(e){e.description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!h.Kn(e))return!1;var t=e;return!(!h.hj(t.lineNumber)&&!h.HD(t.lineNumber))&&!(!h.o8(t.at)&&!h.HD(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(r||(r={}));var T,N=function(){function e(t){var n=this;(0,a.Z)(this,e),t.addImplementation(1e4,"code-editor",(function(e,t){var i=e.get(g.$).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&n._runEditorCommand(e,i,t)})),t.addImplementation(1e3,"generic-dom-input-textarea",(function(e,t){var i=document.activeElement;return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(n.runDOMCommand(),!0)})),t.addImplementation(0,"generic-dom",(function(e,t){var i=e.get(g.$).getActiveCodeEditor();return!!i&&(i.focus(),n._runEditorCommand(e,i,t))}))}return(0,s.Z)(e,[{key:"_runEditorCommand",value:function(e,t,n){var i=this.runEditorCommand(e,t,n);return i||!0}}]),e}();!function(e){var t=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._minimalReveal=e.minimalReveal,i._inSelectionMode=e.inSelectionMode,i}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[C.P.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&e.revealPrimaryCursor(t.source,!0,this._minimalReveal)}}]),n}(E);e.MoveTo=(0,p.fK)(new t({id:"_moveTo",minimalReveal:!0,inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,p.fK)(new t({id:"_moveToSelect",minimalReveal:!1,inSelectionMode:!0,precondition:void 0}));var n=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement();var n=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);e.setCursorStates(t.source,3,n.viewStates.map((function(e){return v.Vi.fromViewState(e)}))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),n.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source)}}]),n}(E);e.ColumnSelect=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"columnSelect",precondition:void 0})}return(0,s.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){var r=e.model.validatePosition(i.position),o=e.coordinatesConverter.validateViewPosition(new m.L(i.viewPosition.lineNumber,i.viewPosition.column),r),a=i.doColumnSelect?n.fromViewLineNumber:o.lineNumber,s=i.doColumnSelect?n.fromViewVisualColumn:i.mouseColumn-1;return _.columnSelect(e.cursorConfig,e,a,s,o.lineNumber,i.mouseColumn-1)}}]),n}(n))),e.CursorColumnSelectLeft=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3599,linux:{primary:0}}})}return(0,s.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return _.columnSelectLeft(e.cursorConfig,e,n)}}]),n}(n))),e.CursorColumnSelectRight=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3601,linux:{primary:0}}})}return(0,s.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return _.columnSelectRight(e.cursorConfig,e,n)}}]),n}(n)));var o=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._isPaged=e.isPaged,i}return(0,s.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return _.columnSelectUp(e.cursorConfig,e,n,this._isPaged)}}]),n}(n);e.CursorColumnSelectUp=(0,p.fK)(new o({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,p.fK)(new o({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3595,linux:{primary:0}}}));var h=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._isPaged=e.isPaged,i}return(0,s.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return _.columnSelectDown(e.cursorConfig,e,n,this._isPaged)}}]),n}(n);e.CursorColumnSelectDown=(0,p.fK)(new h({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,p.fK)(new h({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3596,linux:{primary:0}}}));var g=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"cursorMove",precondition:void 0,description:C.N.description})}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n=C.N.parse(t);n&&this._runCursorMove(e,t.source,n)}},{key:"_runCursorMove",value:function(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,n._move(e,e.getCursorStates(),i)),e.revealPrimaryCursor(t,!0)}}],[{key:"_move",value:function(e,t,n){var i=n.select,r=n.value;switch(n.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return C.P.simpleMove(e,t,n.direction,i,r,n.unit);case 11:case 13:case 12:case 14:return C.P.viewportMove(e,t,n.direction,i,r);default:return null}}}]),n}(E);e.CursorMoveImpl=g,e.CursorMove=(0,p.fK)(new g);var b=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._staticArgs=e.args,i}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n=this._staticArgs;-1===this._staticArgs.value&&(n={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,C.P.simpleMove(e,e.getCursorStates(),n.direction,n.select,n.value,n.unit)),e.revealPrimaryCursor(t.source,!0)}}]),n}(E);e.CursorLeft=(0,p.fK)(new b({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,p.fK)(new b({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1039}})),e.CursorRight=(0,p.fK)(new b({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,p.fK)(new b({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1041}})),e.CursorUp=(0,p.fK)(new b({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,p.fK)(new b({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,p.fK)(new b({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,p.fK)(new b({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1035}})),e.CursorDown=(0,p.fK)(new b({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,p.fK)(new b({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,p.fK)(new b({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,p.fK)(new b({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1036}})),e.CreateCursor=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"createCursor",precondition:void 0})}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n;n=t.wholeLine?C.P.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):C.P.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);var i=e.getCursorStates();if(i.length>1)for(var r=n.modelState?n.modelState.position:null,o=n.viewState?n.viewState.position:null,a=0,s=i.length;a<s;a++){var l=i[a];if((!r||l.modelState.selection.containsPosition(r))&&(!o||l.viewState.selection.containsPosition(o)))return i.splice(a,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,i)}i.push(n),e.model.pushStackElement(),e.setCursorStates(t.source,3,i)}}]),n}(E))),e.LastCursorMoveToSelect=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n=e.getLastAddedCursorIndex(),i=e.getCursorStates(),r=i.slice(0);r[n]=C.P.moveTo(e,i[n],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,r)}}]),n}(E)));var S=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._inSelectionMode=e.inSelectionMode,i}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,C.P.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}]),n}(E);e.CursorHome=(0,p.fK)(new S({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=(0,p.fK)(new S({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));var k=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._inSelectionMode=e.inSelectionMode,i}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}},{key:"_exec",value:function(e){for(var t=[],n=0,i=e.length;n<i;n++){var r=e[n],o=r.modelState.position.lineNumber;t[n]=v.Vi.fromModelState(r.modelState.move(this._inSelectionMode,o,1,0))}return t}}]),n}(E);e.CursorLineStart=(0,p.fK)(new k({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=(0,p.fK)(new k({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:0,mac:{primary:1311}}}));var x=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._inSelectionMode=e.inSelectionMode,i}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,C.P.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealPrimaryCursor(t.source,!0)}}]),n}(E);e.CursorEnd=(0,p.fK)(new x({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:w.u.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},description:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:u.NC("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=(0,p.fK)(new x({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:w.u.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},description:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:u.NC("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));var T=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._inSelectionMode=e.inSelectionMode,i}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}},{key:"_exec",value:function(e,t){for(var n=[],i=0,r=t.length;i<r;i++){var o=t[i],a=o.modelState.position.lineNumber,s=e.model.getLineMaxColumn(a);n[i]=v.Vi.fromModelState(o.modelState.move(this._inSelectionMode,a,s,0))}return n}}]),n}(E);e.CursorLineEnd=(0,p.fK)(new T({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=(0,p.fK)(new T({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:0,mac:{primary:1315}}}));var I=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._inSelectionMode=e.inSelectionMode,i}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,C.P.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}]),n}(E);e.CursorTop=(0,p.fK)(new I({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=(0,p.fK)(new I({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3086,mac:{primary:3088}}}));var D=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._inSelectionMode=e.inSelectionMode,i}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,C.P.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}]),n}(E);e.CursorBottom=(0,p.fK)(new D({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=(0,p.fK)(new D({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:3085,mac:{primary:3090}}}));var L=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"editorScroll",precondition:void 0,description:i.description})}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n=i.parse(t);n&&this._runEditorScroll(e,t.source,n)}},{key:"_runEditorScroll",value:function(e,t,n){var i=this._computeDesiredScrollTop(e,n);if(n.revealCursor){var r=e.getCompletelyVisibleViewRangeAtScrollTop(i);e.setCursorStates(t,3,[C.P.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),r,n.select)])}e.viewLayout.setScrollPosition({scrollTop:i},0)}},{key:"_computeDesiredScrollTop",value:function(e,t){if(1===t.unit){var n,i=e.getCompletelyVisibleViewRange(),r=e.coordinatesConverter.convertViewRangeToModelRange(i);n=1===t.direction?Math.max(1,r.startLineNumber-t.value):Math.min(e.model.getLineCount(),r.startLineNumber+t.value);var o=e.coordinatesConverter.convertModelPositionToViewPosition(new m.L(n,1));return e.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber)}if(5===t.unit){var a=0;return 2===t.direction&&(a=e.model.getLineCount()-e.cursorConfig.pageSize),e.viewLayout.getVerticalOffsetForLineNumber(a)}var s;s=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;var l=(1===t.direction?-1:1)*s;return e.viewLayout.getCurrentScrollTop()+l*e.cursorConfig.lineHeight}}]),n}(E);e.EditorScrollImpl=L,e.EditorScroll=(0,p.fK)(new L),e.ScrollLineUp=(0,p.fK)(new(function(t){(0,l.Z)(i,t);var n=(0,c.Z)(i);function i(){return(0,a.Z)(this,i),n.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:2064,mac:{primary:267}}})}return(0,s.Z)(i,[{key:"runCoreEditorCommand",value:function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})}}]),i}(E))),e.ScrollPageUp=(0,p.fK)(new(function(t){(0,l.Z)(i,t);var n=(0,c.Z)(i);function i(){return(0,a.Z)(this,i),n.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}return(0,s.Z)(i,[{key:"runCoreEditorCommand",value:function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})}}]),i}(E))),e.ScrollEditorTop=(0,p.fK)(new(function(t){(0,l.Z)(i,t);var n=(0,c.Z)(i);function i(){return(0,a.Z)(this,i),n.call(this,{id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus}})}return(0,s.Z)(i,[{key:"runCoreEditorCommand",value:function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:5,value:1,revealCursor:!1,select:!1})}}]),i}(E))),e.ScrollLineDown=(0,p.fK)(new(function(t){(0,l.Z)(i,t);var n=(0,c.Z)(i);function i(){return(0,a.Z)(this,i),n.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:2066,mac:{primary:268}}})}return(0,s.Z)(i,[{key:"runCoreEditorCommand",value:function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})}}]),i}(E))),e.ScrollPageDown=(0,p.fK)(new(function(t){(0,l.Z)(i,t);var n=(0,c.Z)(i);function i(){return(0,a.Z)(this,i),n.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}return(0,s.Z)(i,[{key:"runCoreEditorCommand",value:function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})}}]),i}(E))),e.ScrollEditorBottom=(0,p.fK)(new(function(t){(0,l.Z)(i,t);var n=(0,c.Z)(i);function i(){return(0,a.Z)(this,i),n.call(this,{id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus}})}return(0,s.Z)(i,[{key:"runCoreEditorCommand",value:function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:5,value:1,revealCursor:!1,select:!1})}}]),i}(E)));var O=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._inSelectionMode=e.inSelectionMode,i}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[C.P.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),e.revealPrimaryCursor(t.source,!0)}}]),n}(E);e.WordSelect=(0,p.fK)(new O({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=(0,p.fK)(new O({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"lastCursorWordSelect",precondition:void 0})}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n=e.getLastAddedCursorIndex(),i=e.getCursorStates(),r=i.slice(0),o=i[n];r[n]=C.P.word(e,o,o.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,r)}}]),n}(E)));var R=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._inSelectionMode=e.inSelectionMode,i}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[C.P.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!1)}}]),n}(E);e.LineSelect=(0,p.fK)(new R({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=(0,p.fK)(new R({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var A=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e))._inSelectionMode=e.inSelectionMode,i}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n=e.getLastAddedCursorIndex(),i=e.getCursorStates(),r=i.slice(0);r[n]=C.P.line(e,i[n],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,r)}}]),n}(E);e.LastCursorLineSelect=(0,p.fK)(new A({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=(0,p.fK)(new A({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.CancelSelection=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"cancelSelection",precondition:w.u.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:9,secondary:[1033]}})}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[C.P.cancelSelection(e,e.getPrimaryCursorState())]),e.revealPrimaryCursor(t.source,!0)}}]),n}(E))),e.RemoveSecondaryCursors=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"removeSecondaryCursors",precondition:w.u.hasMultipleSelections,kbOpts:{weight:1,kbExpr:w.u.textInputFocus,primary:9,secondary:[1033]}})}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealPrimaryCursor(t.source,!0),(0,f.i7)(u.NC("removedCursor","Removed secondary cursors"))}}]),n}(E))),e.RevealLine=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"revealLine",precondition:void 0,description:r.description})}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n=t,i=n.lineNumber||0,o="number"===typeof i?i+1:parseInt(i)+1;o<1&&(o=1);var a=e.model.getLineCount();o>a&&(o=a);var s=new y.e(o,1,o,e.model.getLineMaxColumn(o)),l=0;if(n.at)switch(n.at){case r.RawAtArgument.Top:l=3;break;case r.RawAtArgument.Center:l=1;break;case r.RawAtArgument.Bottom:l=4}var c=e.coordinatesConverter.convertModelRangeToViewRange(s);e.revealRange(t.source,!1,c,l,0)}}]),n}(E))),e.SelectAll=new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,p.Sq)}return(0,s.Z)(n,[{key:"runDOMCommand",value:function(){d.isFirefox&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}},{key:"runEditorCommand",value:function(e,t,n){var i=t._getViewModel();i&&this.runCoreEditorCommand(i,n)}},{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[C.P.selectAll(e,e.getPrimaryCursorState())])}}]),n}(N)),e.SetSelection=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"setSelection",precondition:void 0})}return(0,s.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[v.Vi.fromModelSelection(t.selection)])}}]),n}(E)))}(T||(T={}));var I,D=k.Ao.and(w.u.textInputFocus,w.u.columnSelection);function L(e,t){x.W.registerKeybindingRule({id:e,primary:t,when:D,weight:1})}function O(e){return e.register(),e}L(T.CursorColumnSelectLeft.id,1039),L(T.CursorColumnSelectRight.id,1041),L(T.CursorColumnSelectUp.id,1040),L(T.CursorColumnSelectPageUp.id,1035),L(T.CursorColumnSelectDown.id,1042),L(T.CursorColumnSelectPageDown.id,1036),function(e){var t=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"runEditorCommand",value:function(e,t,n){var i=t._getViewModel();i&&this.runCoreEditingCommand(t,i,n||{})}}]),n}(p._l);e.CoreEditingCommand=t,e.LineBreakInsert=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"lineBreakInsert",precondition:w.u.writable,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:0,mac:{primary:301}}})}return(0,s.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,S.u6.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection}))))}}]),n}(t))),e.Outdent=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"outdent",precondition:w.u.writable,kbOpts:{weight:0,kbExpr:k.Ao.and(w.u.editorTextFocus,w.u.tabDoesNotMoveFocus),primary:1026}})}return(0,s.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,S.u6.outdent(t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection})))),e.pushUndoStop()}}]),n}(t))),e.Tab=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"tab",precondition:w.u.writable,kbOpts:{weight:0,kbExpr:k.Ao.and(w.u.editorTextFocus,w.u.tabDoesNotMoveFocus),primary:2}})}return(0,s.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,S.u6.tab(t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection})))),e.pushUndoStop()}}]),n}(t))),e.DeleteLeft=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}return(0,s.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){var i=b.A.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection})),t.getCursorAutoClosedCharacters()),r=(0,o.Z)(i,2),a=r[0],s=r[1];a&&e.pushUndoStop(),e.executeCommands(this.id,s),t.setPrevEditOperationType(2)}}]),n}(t))),e.DeleteRight=(0,p.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:w.u.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}return(0,s.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){var i=b.A.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection}))),r=(0,o.Z)(i,2),a=r[0],s=r[1];a&&e.pushUndoStop(),e.executeCommands(this.id,s),t.setPrevEditOperationType(3)}}]),n}(t))),e.Undo=new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,p.n_)}return(0,s.Z)(n,[{key:"runDOMCommand",value:function(){document.execCommand("undo")}},{key:"runEditorCommand",value:function(e,t,n){if(t.hasModel()&&!0!==t.getOption(83))return t.getModel().undo()}}]),n}(N)),e.Redo=new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,p.kz)}return(0,s.Z)(n,[{key:"runDOMCommand",value:function(){document.execCommand("redo")}},{key:"runEditorCommand",value:function(e,t,n){if(t.hasModel()&&!0!==t.getOption(83))return t.getModel().redo()}}]),n}(N))}(I||(I={}));var R=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r){var o;return(0,a.Z)(this,n),(o=t.call(this,{id:e,precondition:void 0,description:r}))._handlerId=i,o}return(0,s.Z)(n,[{key:"runCommand",value:function(e,t){var n=e.get(g.$).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)}}]),n}(p.mY);function A(e,t){O(new R("default:"+e,e)),O(new R(e,e,t))}A("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),A("replacePreviousChar"),A("compositionType"),A("compositionStart"),A("compositionEnd"),A("paste"),A("cut")},78788:function(e,t,n){"use strict";n.d(t,{Z0:function(){return x},dR:function(){return k},Bo:function(){return S}});var i=n(74165),r=n(37762),o=n(94021),a=n(29671),s=n(70456),l=n(62684),c=n(72112),u=n(15671),d=n(43144),h=n(93433),f=n(18042),p=n(83078),g=n(69077),v="CodeEditors",m="CodeFiles";function y(e){var t,n=[];if(e.dataTransfer&&e.dataTransfer.types.length>0){var i=e.dataTransfer.getData(v);if(i)try{n.push.apply(n,(0,h.Z)((0,f.Q)(i)))}catch(T){}else try{var a=e.dataTransfer.getData(o.g.RESOURCES);n.push.apply(n,(0,h.Z)(function(e){var t=[];if(e){var n,i=JSON.parse(e),o=(0,r.Z)(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.indexOf(":")>0){var s=(0,p.xI)(c.o.parse(a)),l=s.selection,u=s.uri;t.push({resource:u,options:{selection:l}})}}}catch(d){o.e(d)}finally{o.f()}}return t}(a)))}catch(T){}if(null===(t=e.dataTransfer)||void 0===t?void 0:t.files)for(var s=0;s<e.dataTransfer.files.length;s++){var l=e.dataTransfer.files[s];if(l&&l.path)try{n.push({resource:c.o.file(l.path),isExternal:!0,allowWorkspaceOpen:!0})}catch(T){}}var u=e.dataTransfer.getData(m);if(u)try{var d,y=JSON.parse(u),_=(0,r.Z)(y);try{for(_.s();!(d=_.n()).done;){var C=d.value;n.push({resource:c.o.file(C),isExternal:!0,allowWorkspaceOpen:!0})}}catch(N){_.e(N)}finally{_.f()}}catch(T){}var S,w=g.B.as(b.DragAndDropContribution).getAll(),k=(0,r.Z)(w);try{for(k.s();!(S=k.n()).done;){var x=S.value,E=e.dataTransfer.getData(x.dataFormatKey);if(E)try{n.push.apply(n,(0,h.Z)(x.getEditorInputs(E)))}catch(T){}}}catch(N){k.e(N)}finally{k.f()}}return n}var _=function(){function e(){(0,u.Z)(this,e),this._contributions=new Map}return(0,d.Z)(e,[{key:"getAll",value:function(){return this._contributions.values()}}]),e}(),b={DragAndDropContribution:"workbench.contributions.dragAndDrop"};g.B.add(b.DragAndDropContribution,new _);var C=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};function S(e){var t,n=new s.Hl,o=(0,r.Z)(e.items);try{var a=function(){var e=t.value,r=e.type;if("string"===e.kind){var o=new Promise((function(t){return e.getAsString(t)}));n.append(r,(0,s.ZO)(o))}else if("file"===e.kind){var a=e.getAsFile();a&&n.append(r,function(e){var t=this,n=e.path?c.o.parse(e.path):void 0;return(0,s.Ix)(e.name,n,(function(){return C(t,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=Uint8Array,t.next=3,e.arrayBuffer();case 3:return t.t1=t.sent,t.abrupt("return",new t.t0(t.t1));case 5:case"end":return t.stop()}}),t)})))}))}(a))}};for(o.s();!(t=o.n()).done;)a()}catch(l){o.e(l)}finally{o.f()}return n}var w=Object.freeze([v,m,o.g.RESOURCES]);function k(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t.dataTransfer&&(i||!e.has(l.v.uriList))){var o,a=y(t).filter((function(e){return e.resource})).map((function(e){return e.resource.toString()})),u=(0,r.Z)(null===(n=t.dataTransfer)||void 0===n?void 0:n.items);try{for(u.s();!(o=u.n()).done;){var d=o.value,h=d.getAsFile();h&&a.push(h.path?c.o.file(h.path).toString():h.name)}}catch(v){u.e(v)}finally{u.f()}a.length&&e.replace(l.v.uriList,(0,s.ZO)(x.create(a)))}var f,p=(0,r.Z)(w);try{for(p.s();!(f=p.n()).done;){var g=f.value;e.delete(g)}}catch(v){p.e(v)}finally{p.f()}}var x=Object.freeze({create:function(e){return(0,a.EB)(e.map((function(e){return e.toString()}))).join("\r\n")},parse:function(e){return e.split("\r\n").filter((function(e){return!e.startsWith("#")}))}})},64314:function(e,t,n){"use strict";n.d(t,{CL:function(){return r},Pi:function(){return a},QI:function(){return o}});var i=n(70956);function r(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===i.g.ICodeEditor}function o(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===i.g.IDiffEditor}function a(e){return r(e)?e:o(e)?e.getModifiedEditor():null}},46190:function(e,t,n){"use strict";n.d(t,{AL:function(){return k},N5:function(){return S},Pp:function(){return b},YN:function(){return g},gy:function(){return C},kG:function(){return _},rU:function(){return v},t7:function(){return x},tC:function(){return w}});var i=n(29439),r=n(37762),o=n(60136),a=n(27277),s=n(15671),l=n(43144),c=n(81531),u=n(1082),d=n(2524),h=n(60022),f=n(11860),p=n(32379),g=function(){function e(t,n){(0,s.Z)(this,e),this.x=t,this.y=n,this._pageCoordinatesBrand=void 0}return(0,l.Z)(e,[{key:"toClientCoordinates",value:function(){return new v(this.x-c.StandardWindow.scrollX,this.y-c.StandardWindow.scrollY)}}]),e}(),v=function(){function e(t,n){(0,s.Z)(this,e),this.clientX=t,this.clientY=n,this._clientCoordinatesBrand=void 0}return(0,l.Z)(e,[{key:"toPageCoordinates",value:function(){return new g(this.clientX+c.StandardWindow.scrollX,this.clientY+c.StandardWindow.scrollY)}}]),e}(),m=(0,l.Z)((function e(t,n,i,r){(0,s.Z)(this,e),this.x=t,this.y=n,this.width=i,this.height=r,this._editorPagePositionBrand=void 0})),y=(0,l.Z)((function e(t,n){(0,s.Z)(this,e),this.x=t,this.y=n,this._positionRelativeToEditorBrand=void 0}));function _(e){var t=c.getDomNodePagePosition(e);return new m(t.left,t.top,t.width,t.height)}function b(e,t,n){var i=t.width/e.offsetWidth,r=t.height/e.offsetHeight,o=(n.x-t.x)/i,a=(n.y-t.y)/r;return new y(o,a)}var C=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r){var o;return(0,s.Z)(this,n),(o=t.call(this,e))._editorMouseEventBrand=void 0,o.isFromPointerCapture=i,o.pos=new g(o.posx,o.posy),o.editorPos=_(r),o.relativePos=b(r,o.editorPos,o.pos),o}return(0,l.Z)(n)}(d.n),S=function(){function e(t){(0,s.Z)(this,e),this._editorViewDomNode=t}return(0,l.Z)(e,[{key:"_create",value:function(e){return new C(e,!1,this._editorViewDomNode)}},{key:"onContextMenu",value:function(e,t){var n=this;return c.addDisposableListener(e,"contextmenu",(function(e){t(n._create(e))}))}},{key:"onMouseUp",value:function(e,t){var n=this;return c.addDisposableListener(e,"mouseup",(function(e){t(n._create(e))}))}},{key:"onMouseDown",value:function(e,t){var n=this;return c.addDisposableListener(e,c.EventType.MOUSE_DOWN,(function(e){t(n._create(e))}))}},{key:"onPointerDown",value:function(e,t){var n=this;return c.addDisposableListener(e,c.EventType.POINTER_DOWN,(function(e){t(n._create(e),e.pointerId)}))}},{key:"onMouseLeave",value:function(e,t){var n=this;return c.addDisposableListener(e,c.EventType.MOUSE_LEAVE,(function(e){t(n._create(e))}))}},{key:"onMouseMove",value:function(e,t){var n=this;return c.addDisposableListener(e,"mousemove",(function(e){return t(n._create(e))}))}}]),e}(),w=function(){function e(t){(0,s.Z)(this,e),this._editorViewDomNode=t}return(0,l.Z)(e,[{key:"_create",value:function(e){return new C(e,!1,this._editorViewDomNode)}},{key:"onPointerUp",value:function(e,t){var n=this;return c.addDisposableListener(e,"pointerup",(function(e){t(n._create(e))}))}},{key:"onPointerDown",value:function(e,t){var n=this;return c.addDisposableListener(e,c.EventType.POINTER_DOWN,(function(e){t(n._create(e),e.pointerId)}))}},{key:"onPointerLeave",value:function(e,t){var n=this;return c.addDisposableListener(e,c.EventType.POINTER_LEAVE,(function(e){t(n._create(e))}))}},{key:"onPointerMove",value:function(e,t){var n=this;return c.addDisposableListener(e,"pointermove",(function(e){return t(n._create(e))}))}}]),e}(),k=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,s.Z)(this,n),(i=t.call(this))._editorViewDomNode=e,i._globalPointerMoveMonitor=i._register(new u.C),i._keydownListener=null,i}return(0,l.Z)(n,[{key:"startMonitoring",value:function(e,t,n,i,r){var o=this;this._keydownListener=c.addStandardDisposableListener(document,"keydown",(function(e){e.toKeybinding().isModifierKey()||o._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,n,(function(e){i(new C(e,!0,o._editorViewDomNode))}),(function(e){o._keydownListener.dispose(),r(e)}))}},{key:"stopMonitoring",value:function(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}]),n}(f.JT),x=function(){function e(t){var n=this;(0,s.Z)(this,e),this._editor=t,this._instanceId=++e._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new h.pY((function(){return n.garbageCollect()}),1e3)}return(0,l.Z)(e,[{key:"createClassNameRef",value:function(e){var t=this,n=this.getOrCreateRule(e);return n.increaseRefCount(),{className:n.className,dispose:function(){n.decreaseRefCount(),t._garbageCollectionScheduler.schedule()}}}},{key:"getOrCreateRule",value:function(e){var t=this.computeUniqueKey(e),n=this._rules.get(t);if(!n){var i=this._counter++;n=new E(t,"dyn-rule-".concat(this._instanceId,"-").concat(i),c.isInShadowDOM(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,n)}return n}},{key:"computeUniqueKey",value:function(e){return JSON.stringify(e)}},{key:"garbageCollect",value:function(){var e,t=(0,r.Z)(this._rules.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.hasReferences()||(this._rules.delete(n.key),n.dispose())}}catch(i){t.e(i)}finally{t.f()}}}]),e}();x._idPool=0;var E=function(){function e(t,n,i,r){(0,s.Z)(this,e),this.key=t,this.className=n,this.properties=r,this._referenceCount=0,this._styleElement=c.createStyleSheet(i),this._styleElement.textContent=this.getCssText(this.className,this.properties)}return(0,l.Z)(e,[{key:"getCssText",value:function(e,t){var n=".".concat(e," {");for(var i in t){var r=t[i],o=void 0;o="object"===typeof r?"var(".concat((0,p.QO2)(r.id),")"):r;var a=T(i);n+="\n\t".concat(a,": ").concat(o,";")}return n+="\n}"}},{key:"dispose",value:function(){this._styleElement.remove()}},{key:"increaseRefCount",value:function(){this._referenceCount++}},{key:"decreaseRefCount",value:function(){this._referenceCount--}},{key:"hasReferences",value:function(){return this._referenceCount>0}}]),e}();function T(e){return e.replace(/(^[A-Z])/,(function(e){return(0,i.Z)(e,1)[0].toLowerCase()})).replace(/([A-Z])/g,(function(e){var t=(0,i.Z)(e,1)[0];return"-".concat(t.toLowerCase())}))}},62381:function(e,t,n){"use strict";n.d(t,{AJ:function(){return E},QG:function(){return M},Qr:function(){return R},R6:function(){return I},Sq:function(){return z},Uc:function(){return i},_K:function(){return P},_l:function(){return N},fK:function(){return O},jY:function(){return D},kz:function(){return H},mY:function(){return x},n_:function(){return B},rn:function(){return A},sb:function(){return L}});var i,r=n(93433),o=n(60136),a=n(27277),s=n(37762),l=n(15671),c=n(43144),u=n(27722),d=n(72112),h=n(98596),f=n(38622),p=n(29257),g=n(95011),v=n(48996),m=n(11133),y=n(34509),_=n(36888),b=n(5850),C=n(69077),S=n(15323),w=n(85294),k=n(11561),x=function(){function e(t){(0,l.Z)(this,e),this.id=t.id,this.precondition=t.precondition,this._kbOpts=t.kbOpts,this._menuOpts=t.menuOpts,this._description=t.description}return(0,c.Z)(e,[{key:"register",value:function(){var e=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var t,n=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts],i=(0,s.Z)(n);try{for(i.s();!(t=i.n()).done;){var r=t.value,o=r.kbExpr;this.precondition&&(o=o?y.Ao.and(o,this.precondition):this.precondition);var a={id:this.id,weight:r.weight,args:r.args,when:o,primary:r.primary,secondary:r.secondary,win:r.win,linux:r.linux,mac:r.mac};b.W.registerKeybindingRule(a)}}catch(l){i.e(l)}finally{i.f()}}m.P0.registerCommand({id:this.id,handler:function(t,n){return e.runCommand(t,n)},description:this._description})}},{key:"_registerMenuItem",value:function(e){v.BH.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}]),e}(),E=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,l.Z)(this,n),(e=t.apply(this,arguments))._implementations=[],e}return(0,c.Z)(n,[{key:"addImplementation",value:function(e,t,n){var i=this;return this._implementations.push({priority:e,name:t,implementation:n}),this._implementations.sort((function(e,t){return t.priority-e.priority})),{dispose:function(){for(var e=0;e<i._implementations.length;e++)if(i._implementations[e].implementation===n)return void i._implementations.splice(e,1)}}}},{key:"runCommand",value:function(e,t){var n=e.get(k.VZ);n.trace("Executing Command '".concat(this.id,"' which has ").concat(this._implementations.length," bound."));var i,r=(0,s.Z)(this._implementations);try{for(r.s();!(i=r.n()).done;){var o=i.value,a=o.implementation(e,t);if(a){if(n.trace("Command '".concat(this.id,"' was handled by '").concat(o.name,"'.")),"boolean"===typeof a)return;return a}}}catch(l){r.e(l)}finally{r.f()}n.trace("The Command '".concat(this.id,"' was not handled by any implementation."))}}]),n}(x),T=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,i)).command=e,r}return(0,c.Z)(n,[{key:"runCommand",value:function(e,t){return this.command.runCommand(e,t)}}]),n}(x),N=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"runCommand",value:function(e,t){var i=this;return n.runEditorCommand(e,t,this.precondition,(function(e,t,n){return i.runEditorCommand(e,t,n)}))}}],[{key:"bindToContribution",value:function(e){return function(t){(0,o.Z)(i,t);var n=(0,a.Z)(i);function i(e){var t;return(0,l.Z)(this,i),(t=n.call(this,e))._callback=e.handler,t}return(0,c.Z)(i,[{key:"runEditorCommand",value:function(t,n,i){var r=e(n);r&&this._callback(r,i)}}]),i}(n)}},{key:"runEditorCommand",value:function(e,t,n,i){var r=e.get(h.$),o=r.getFocusedCodeEditor()||r.getActiveCodeEditor();if(o)return o.invokeWithinContext((function(e){if(e.get(y.i6).contextMatchesRules((0,w.f6)(n)))return i(e,o,t)}))}}]),n}(x),I=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,l.Z)(this,n),(i=t.call(this,n.convertOptions(e))).label=e.label,i.alias=e.alias,i}return(0,c.Z)(n,[{key:"runEditorCommand",value:function(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})}},{key:"reportTelemetry",value:function(e,t){e.get(S.b).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}],[{key:"convertOptions",value:function(e){var t,n;function i(t){return t.menuId||(t.menuId=v.eH.EditorContext),t.title||(t.title=e.label),t.when=y.Ao.and(e.precondition,t.when),t}(t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts))?(n=t).push.apply(n,(0,r.Z)(e.contextMenuOpts.map(i))):e.contextMenuOpts&&t.push(i(e.contextMenuOpts));return e.menuOpts=t,e}}]),n}(N),D=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,l.Z)(this,n),(e=t.apply(this,arguments))._implementations=[],e}return(0,c.Z)(n,[{key:"addImplementation",value:function(e,t){var n=this;return this._implementations.push([e,t]),this._implementations.sort((function(e,t){return t[0]-e[0]})),{dispose:function(){for(var e=0;e<n._implementations.length;e++)if(n._implementations[e][1]===t)return void n._implementations.splice(e,1)}}}},{key:"run",value:function(e,t,n){var i,r=(0,s.Z)(this._implementations);try{for(r.s();!(i=r.n()).done;){var o=i.value[1](e,t,n);if(o){if("boolean"===typeof o)return;return o}}}catch(a){r.e(a)}finally{r.f()}}}]),n}(I);function L(e,t){m.P0.registerCommand(e,(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];var a=e.get(_.TG),s=i[0],l=i[1];(0,w.p_)(d.o.isUri(s)),(0,w.p_)(f.L.isIPosition(l));var c=e.get(p.q).getModel(s);if(c){var u=f.L.lift(l);return a.invokeFunction.apply(a,[t,c,u].concat((0,r.Z)(i.slice(2))))}return e.get(g.S).createModelReference(s).then((function(e){return new Promise((function(n,r){try{n(a.invokeFunction(t,e.object.textEditorModel,f.L.lift(l),i.slice(2)))}catch(o){r(o)}})).finally((function(){e.dispose()}))}))}))}function O(e){return Z.INSTANCE.registerEditorCommand(e),e}function R(e){var t=new e;return Z.INSTANCE.registerEditorAction(t),t}function A(e){return Z.INSTANCE.registerEditorAction(e),e}function M(e){Z.INSTANCE.registerEditorAction(e)}function P(e,t){Z.INSTANCE.registerEditorContribution(e,t)}!function(e){e.getEditorCommand=function(e){return Z.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return Z.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return Z.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return Z.INSTANCE.getEditorContributions().filter((function(t){return e.indexOf(t.id)>=0}))},e.getDiffEditorContributions=function(){return Z.INSTANCE.getDiffEditorContributions()}}(i||(i={}));var Z=function(){function e(){(0,l.Z)(this,e),this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return(0,c.Z)(e,[{key:"registerEditorContribution",value:function(e,t){this.editorContributions.push({id:e,ctor:t})}},{key:"getEditorContributions",value:function(){return this.editorContributions.slice(0)}},{key:"getDiffEditorContributions",value:function(){return this.diffEditorContributions.slice(0)}},{key:"registerEditorAction",value:function(e){e.register(),this.editorActions.push(e)}},{key:"getEditorActions",value:function(){return this.editorActions.slice(0)}},{key:"registerEditorCommand",value:function(e){e.register(),this.editorCommands[e.id]=e}},{key:"getEditorCommand",value:function(e){return this.editorCommands[e]||null}}]),e}();function F(e){return e.register(),e}Z.INSTANCE=new Z,C.B.add("editor.contributions",Z.INSTANCE);var B=F(new E({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:v.eH.MenubarEditMenu,group:"1_do",title:u.NC({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:v.eH.CommandPalette,group:"",title:u.NC("undo","Undo"),order:1}]}));F(new T(B,{id:"default:undo",precondition:void 0}));var H=F(new E({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:v.eH.MenubarEditMenu,group:"1_do",title:u.NC({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:v.eH.CommandPalette,group:"",title:u.NC("redo","Redo"),order:1}]}));F(new T(H,{id:"default:redo",precondition:void 0}));var z=F(new E({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:v.eH.MenubarSelectionMenu,group:"1_basic",title:u.NC({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:v.eH.CommandPalette,group:"",title:u.NC("selectAll","Select All"),order:1}]}))},23:function(e,t,n){"use strict";n.d(t,{Gl:function(){return h},fo:function(){return d},vu:function(){return u}});var i=n(60136),r=n(27277),o=n(15671),a=n(43144),s=n(36888),l=n(72112),c=n(85294),u=(0,s.yh)("IWorkspaceEditService"),d=function(){function e(t){(0,o.Z)(this,e),this.metadata=t}return(0,a.Z)(e,null,[{key:"convert",value:function(e){return e.edits.map((function(e){if(h.is(e))return h.lift(e);if(f.is(e))return f.lift(e);throw new Error("Unsupported edit")}))}}]),e}(),h=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;return(0,o.Z)(this,n),(r=t.call(this,s)).resource=e,r.textEdit=i,r.versionId=a,r}return(0,a.Z)(n,null,[{key:"is",value:function(e){return e instanceof n||(0,c.Kn)(e)&&l.o.isUri(e.resource)&&(0,c.Kn)(e.textEdit)}},{key:"lift",value:function(e){return e instanceof n?e:new n(e.resource,e.textEdit,e.versionId,e.metadata)}}]),n}(d),f=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;return(0,o.Z)(this,n),(r=t.call(this,s)).oldResource=e,r.newResource=i,r.options=a,r}return(0,a.Z)(n,null,[{key:"is",value:function(e){return e instanceof n||(0,c.Kn)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}},{key:"lift",value:function(e){return e instanceof n?e:new n(e.oldResource,e.newResource,e.options,e.metadata)}}]),n}(d)},98596:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var i=(0,n(36888).yh)("codeEditorService")},31782:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(15671),r=n(43144),o=function(){function e(t,n,r){(0,i.Z)(this,e),this._visiblePosition=t,this._visiblePositionScrollDelta=n,this._cursorPosition=r}return(0,r.Z)(e,[{key:"restore",value:function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}},{key:"restoreRelativeVerticalPositionOfCursor",value:function(e){var t=e.getPosition();if(this._cursorPosition&&t){var n=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+n)}}}],[{key:"capture",value:function(t){var n=null,i=0;if(0!==t.getScrollTop()){var r=t.getVisibleRanges();if(r.length>0){n=r[0].getStartPosition();var o=t.getTopForPosition(n.lineNumber,n.column);i=t.getScrollTop()-o}}return new e(n,i,t.getPosition())}}]),e}()},36492:function(e,t,n){"use strict";n.d(t,{Gm:function(){return Wr}});var i=n(29439),r=n(74165),o=n(37762),a=n(97326),s=n(11752),l=n(61120),c=n(60136),u=n(27277),d=n(15671),h=n(43144),f=n(40729),p=n(62381),g=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},v=function(e,t){return function(n,i){t(n,i,e)}},m=function(){function e(t,n){(0,d.Z)(this,e)}return(0,h.Z)(e,[{key:"dispose",value:function(){}}]),e}();m.ID="editor.contrib.markerDecorations",m=g([v(1,f.i)],m),(0,p._K)(m.ID,m);var y=n(27722),_=n(81531),b=n(14173),C=n(73097),S=n(11860),w=n(84855),k=n(62865),x=n(29671),E=n(63656),T=n(73616),N=n(70423),I=n(44471),D=function(){function e(t,n){(0,d.Z)(this,e),this.key=t,this.migrate=n}return(0,h.Z)(e,[{key:"apply",value:function(t){var n=e._read(t,this.key);this.migrate(n,(function(n){return e._read(t,n)}),(function(n,i){return e._write(t,n,i)}))}}],[{key:"_read",value:function(e,t){if("undefined"!==typeof e){var n=t.indexOf(".");if(n>=0){var i=t.substring(0,n);return this._read(e[i],t.substring(n+1))}return e[t]}}},{key:"_write",value:function(e,t,n){var i=t.indexOf(".");if(i>=0){var r=t.substring(0,i);return e[r]=e[r]||{},void this._write(e[r],t.substring(i+1),n)}e[t]=n}}]),e}();function L(e,t){D.items.push(new D(e,t))}function O(e,t){L(e,(function(n,r,a){if("undefined"!==typeof n){var s,l=(0,o.Z)(t);try{for(l.s();!(s=l.n()).done;){var c=(0,i.Z)(s.value,2),u=c[0],d=c[1];if(n===u)return void a(e,d)}}catch(h){l.e(h)}finally{l.f()}}}))}D.items=[],O("wordWrap",[[!0,"on"],[!1,"off"]]),O("lineNumbers",[[!0,"on"],[!1,"off"]]),O("cursorBlinking",[["visible","solid"]]),O("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),O("renderLineHighlight",[[!0,"line"],[!1,"none"]]),O("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),O("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),O("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),O("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),O("autoIndent",[[!1,"advanced"],[!0,"full"]]),O("matchBrackets",[[!0,"always"],[!1,"never"]]),L("autoClosingBrackets",(function(e,t,n){!1===e&&(n("autoClosingBrackets","never"),"undefined"===typeof t("autoClosingQuotes")&&n("autoClosingQuotes","never"),"undefined"===typeof t("autoSurround")&&n("autoSurround","never"))})),L("renderIndentGuides",(function(e,t,n){"undefined"!==typeof e&&(n("renderIndentGuides",void 0),"undefined"===typeof t("guides.indentation")&&n("guides.indentation",!!e))})),L("highlightActiveIndentGuide",(function(e,t,n){"undefined"!==typeof e&&(n("highlightActiveIndentGuide",void 0),"undefined"===typeof t("guides.highlightActiveIndentation")&&n("guides.highlightActiveIndentation",!!e))}));var R={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};L("suggest.filteredTypes",(function(e,t,n){if(e&&"object"===typeof e){for(var i=0,r=Object.entries(R);i<r.length;i++){var o=r[i];!1===e[o[0]]&&"undefined"===typeof t("suggest.".concat(o[1]))&&n("suggest.".concat(o[1]),!1)}n("suggest.filteredTypes",void 0)}})),L("quickSuggestions",(function(e,t,n){if("boolean"===typeof e){var i=e?"on":"off";n("quickSuggestions",{comments:i,strings:i,other:i})}}));var A=n(75735),M=n(64472),P=n(80282),Z=n(4539),F=n(41330),B=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},H=function(e,t){return function(n,i){t(n,i,e)}},z=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r,o){var a;return(0,d.Z)(this,n),(a=t.call(this))._accessibilityService=o,a._onDidChange=a._register(new C.Q5),a.onDidChange=a._onDidChange.event,a._onDidChangeFast=a._register(new C.Q5),a.onDidChangeFast=a._onDidChangeFast.event,a._isDominatedByLongLines=!1,a._viewLineCount=1,a._lineNumbersDigitCount=1,a._reservedHeight=0,a._computeOptionsMemory=new M.LJ,a.isSimpleWidget=e,a._containerObserver=a._register(new N.I(r,i.dimension)),a._rawOptions=G(i),a._validatedOptions=U.validateOptions(a._rawOptions),a.options=a._computeOptions(),a.options.get(10)&&a._containerObserver.startObserving(),a._register(P.C.onDidChangeZoomLevel((function(){return a._recomputeOptions()}))),a._register(A.n.onDidChangeTabFocus((function(){return a._recomputeOptions()}))),a._register(a._containerObserver.onDidChange((function(){return a._recomputeOptions()}))),a._register(I.g.onDidChange((function(){return a._recomputeOptions()}))),a._register(k.PixelRatio.onDidChange((function(){return a._recomputeOptions()}))),a._register(a._accessibilityService.onDidChangeScreenReaderOptimized((function(){return a._recomputeOptions()}))),a}return(0,h.Z)(n,[{key:"_recomputeOptions",value:function(){var e=this._computeOptions(),t=U.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}},{key:"_computeOptions",value:function(){var e=this._readEnvConfiguration(),t=Z.E4.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),n=this._readFontInfo(t),i={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:n,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:A.n.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return U.computeOptions(this._validatedOptions,i)}},{key:"_readEnvConfiguration",value:function(){return{extraEditorClassName:j(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:k.isWebKit||k.isFirefox,pixelRatio:k.PixelRatio.value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}},{key:"_readFontInfo",value:function(e){return I.g.readFontInfo(e)}},{key:"getRawOptions",value:function(){return this._rawOptions}},{key:"updateOptions",value:function(e){var t=G(e);U.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=U.validateOptions(this._rawOptions),this._recomputeOptions())}},{key:"observeContainer",value:function(e){this._containerObserver.observe(e)}},{key:"setIsDominatedByLongLines",value:function(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}},{key:"setModelLineCount",value:function(e){var t=function(e){var t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}},{key:"setViewLineCount",value:function(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}},{key:"setReservedHeight",value:function(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}}]),n}(S.JT);function j(){var e="";return k.isSafari||k.isWebkitWebView||(e+="no-user-select "),k.isSafari&&(e+="no-minimap-shadow ",e+="enable-user-select "),T.dz&&(e+="mac "),e}z=B([H(3,F.F)],z);var V=function(){function e(){(0,d.Z)(this,e),this._values=[]}return(0,h.Z)(e,[{key:"_read",value:function(e){return this._values[e]}},{key:"get",value:function(e){return this._values[e]}},{key:"_write",value:function(e,t){this._values[e]=t}}]),e}(),W=function(){function e(){(0,d.Z)(this,e),this._values=[]}return(0,h.Z)(e,[{key:"_read",value:function(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}},{key:"get",value:function(e){return this._read(e)}},{key:"_write",value:function(e,t){this._values[e]=t}}]),e}(),U=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,null,[{key:"validateOptions",value:function(e){var t,n=new V,i=(0,o.Z)(M.Bc);try{for(i.s();!(t=i.n()).done;){var r=t.value,a="_never_"===r.name?void 0:e[r.name];n._write(r.id,r.validate(a))}}catch(s){i.e(s)}finally{i.f()}return n}},{key:"computeOptions",value:function(e,t){var n,i=new W,r=(0,o.Z)(M.Bc);try{for(r.s();!(n=r.n()).done;){var a=n.value;i._write(a.id,a.compute(t,i,e._read(a.id)))}}catch(s){r.e(s)}finally{r.f()}return i}},{key:"_deepEquals",value:function(t,n){if("object"!==typeof t||"object"!==typeof n||!t||!n)return t===n;if(Array.isArray(t)||Array.isArray(n))return!(!Array.isArray(t)||!Array.isArray(n))&&x.fS(t,n);if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var i in t)if(!e._deepEquals(t[i],n[i]))return!1;return!0}},{key:"checkEquals",value:function(t,n){var i,r=[],a=!1,s=(0,o.Z)(M.Bc);try{for(s.s();!(i=s.n()).done;){var l=i.value,c=!e._deepEquals(t._read(l.id),n._read(l.id));r[l.id]=c,c&&(a=!0)}}catch(u){s.e(u)}finally{s.f()}return a?new M.Bb(r):null}},{key:"applyUpdate",value:function(e,t){var n,i=!1,r=(0,o.Z)(M.Bc);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(t.hasOwnProperty(a.name)){var s=a.applyUpdate(e[a.name],t[a.name]);e[a.name]=s.newValue,i=i||s.didChange}}}catch(l){r.e(l)}finally{r.f()}return i}}]),e}();function G(e){var t=E.I8(e);return function(e){D.items.forEach((function(t){return t.apply(e)}))}(t),t}var K=n(98596),Y=n(23145),q=n(25652),$=n(81238),X=n(2524),Q=n(60022),J=n(46190),ee=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,d.Z)(this,n),(e=t.call(this))._shouldRender=!0,e}return(0,h.Z)(n,[{key:"shouldRender",value:function(){return this._shouldRender}},{key:"forceShouldRender",value:function(){this._shouldRender=!0}},{key:"setShouldRender",value:function(){this._shouldRender=!0}},{key:"onDidRender",value:function(){this._shouldRender=!1}},{key:"onCompositionStart",value:function(e){return!1}},{key:"onCompositionEnd",value:function(e){return!1}},{key:"onConfigurationChanged",value:function(e){return!1}},{key:"onCursorStateChanged",value:function(e){return!1}},{key:"onDecorationsChanged",value:function(e){return!1}},{key:"onFlushed",value:function(e){return!1}},{key:"onFocusChanged",value:function(e){return!1}},{key:"onLanguageConfigurationChanged",value:function(e){return!1}},{key:"onLineMappingChanged",value:function(e){return!1}},{key:"onLinesChanged",value:function(e){return!1}},{key:"onLinesDeleted",value:function(e){return!1}},{key:"onLinesInserted",value:function(e){return!1}},{key:"onRevealRangeRequest",value:function(e){return!1}},{key:"onScrollChanged",value:function(e){return!1}},{key:"onThemeChanged",value:function(e){return!1}},{key:"onTokensChanged",value:function(e){return!1}},{key:"onTokensColorsChanged",value:function(e){return!1}},{key:"onZonesChanged",value:function(e){return!1}},{key:"handleEvents",value:function(e){for(var t=!1,n=0,i=e.length;n<i;n++){var r=e[n];switch(r.type){case 0:this.onCompositionStart(r)&&(t=!0);break;case 1:this.onCompositionEnd(r)&&(t=!0);break;case 2:this.onConfigurationChanged(r)&&(t=!0);break;case 3:this.onCursorStateChanged(r)&&(t=!0);break;case 4:this.onDecorationsChanged(r)&&(t=!0);break;case 5:this.onFlushed(r)&&(t=!0);break;case 6:this.onFocusChanged(r)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(r)&&(t=!0);break;case 8:this.onLineMappingChanged(r)&&(t=!0);break;case 9:this.onLinesChanged(r)&&(t=!0);break;case 10:this.onLinesDeleted(r)&&(t=!0);break;case 11:this.onLinesInserted(r)&&(t=!0);break;case 12:this.onRevealRangeRequest(r)&&(t=!0);break;case 13:this.onScrollChanged(r)&&(t=!0);break;case 15:this.onTokensChanged(r)&&(t=!0);break;case 14:this.onThemeChanged(r)&&(t=!0);break;case 16:this.onTokensColorsChanged(r)&&(t=!0);break;case 17:this.onZonesChanged(r)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(r)}}t&&(this._shouldRender=!0)}}]),n}(S.JT),te=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this))._context=e,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}}]),n}(ee),ne=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,null,[{key:"write",value:function(e,t){e.setAttribute("data-mprt",String(t))}},{key:"read",value:function(e){var t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)}},{key:"collect",value:function(e,t){for(var n=[],i=0;e&&e!==document.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(n[i++]=this.read(e)),e=e.parentElement;for(var r=new Uint8Array(i),o=0;o<i;o++)r[o]=n[i-o-1];return r}}]),e}(),ie=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r){var o;return(0,d.Z)(this,n),(o=t.call(this,e,i))._renderingContextBrand=void 0,o._viewLines=r,o}return(0,h.Z)(n,[{key:"linesVisibleRangesForRange",value:function(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}},{key:"visibleRangeForPosition",value:function(e){return this._viewLines.visibleRangeForPosition(e)}}]),n}(function(){function e(t,n){(0,d.Z)(this,e),this._restrictedRenderingContextBrand=void 0,this._viewLayout=t,this.viewportData=n,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}return(0,h.Z)(e,[{key:"getScrolledTopFromAbsoluteTop",value:function(e){return e-this.scrollTop}},{key:"getVerticalOffsetForLineNumber",value:function(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)}},{key:"getDecorationsInViewport",value:function(){return this.viewportData.getDecorationsInViewport()}}]),e}()),re=(0,h.Z)((function e(t,n,i){(0,d.Z)(this,e),this.outsideRenderedLine=t,this.lineNumber=n,this.ranges=i})),oe=function(){function e(t,n){(0,d.Z)(this,e),this._horizontalRangeBrand=void 0,this.left=Math.round(t),this.width=Math.round(n)}return(0,h.Z)(e,[{key:"toString",value:function(){return"[".concat(this.left,",").concat(this.width,"]")}}],[{key:"from",value:function(t){for(var n=new Array(t.length),i=0,r=t.length;i<r;i++){var o=t[i];n[i]=new e(o.left,o.width)}return n}}]),e}(),ae=function(){function e(t,n){(0,d.Z)(this,e),this._floatHorizontalRangeBrand=void 0,this.left=t,this.width=n}return(0,h.Z)(e,[{key:"toString",value:function(){return"[".concat(this.left,",").concat(this.width,"]")}}],[{key:"compare",value:function(e,t){return e.left-t.left}}]),e}(),se=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.outsideRenderedLine=t,this.originalLeft=n,this.left=Math.round(this.originalLeft)})),le=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.outsideRenderedLine=t,this.ranges=n})),ce=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,null,[{key:"_createRange",value:function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}},{key:"_detachRange",value:function(e,t){e.selectNodeContents(t)}},{key:"_readClientRects",value:function(e,t,n,i,r){var o=this._createRange();try{return o.setStart(e,t),o.setEnd(n,i),o.getClientRects()}catch(a){return null}finally{this._detachRange(o,r)}}},{key:"_mergeAdjacentRanges",value:function(e){if(1===e.length)return e;e.sort(ae.compare);for(var t=[],n=0,i=e[0],r=1,o=e.length;r<o;r++){var a=e[r];i.left+i.width+.9>=a.left?i.width=Math.max(i.width,a.left+a.width-i.left):(t[n++]=i,i=a)}return t[n++]=i,t}},{key:"_createHorizontalRangesFromClientRects",value:function(e,t,n){if(!e||0===e.length)return null;for(var i=[],r=0,o=e.length;r<o;r++){var a=e[r];i[r]=new ae(Math.max(0,(a.left-t)/n),a.width/n)}return this._mergeAdjacentRanges(i)}},{key:"readHorizontalRanges",value:function(e,t,n,i,r,o,a,s){var l=e.children.length-1;if(0>l)return null;if((t=Math.min(l,Math.max(0,t)))===(i=Math.min(l,Math.max(0,i)))&&n===r&&0===n&&!e.children[t].firstChild){var c=e.children[t].getClientRects();return this._createHorizontalRangesFromClientRects(c,o,a)}t!==i&&i>0&&0===r&&(i--,r=1073741824);var u=e.children[t].firstChild,d=e.children[i].firstChild;if(u&&d||(!u&&0===n&&t>0&&(u=e.children[t-1].firstChild,n=1073741824),!d&&0===r&&i>0&&(d=e.children[i-1].firstChild,r=1073741824)),!u||!d)return null;n=Math.min(u.textContent.length,Math.max(0,n)),r=Math.min(d.textContent.length,Math.max(0,r));var h=this._readClientRects(u,n,d,r,s);return this._createHorizontalRangesFromClientRects(h,o,a)}}]),e}(),ue=n(2029),de=n(15475),he=n(59632),fe=!!T.tY||!(T.IJ||k.isFirefox||k.isSafari),pe=!0,ge=function(){function e(t,n){(0,d.Z)(this,e),this._domNode=t,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1,this.endNode=n}return(0,h.Z)(e,[{key:"readClientRect",value:function(){if(!this._clientRectRead){this._clientRectRead=!0;var e=this._domNode.getBoundingClientRect();this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}},{key:"clientRectDeltaLeft",get:function(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}},{key:"clientRectScale",get:function(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}}]),e}(),ve=function(){function e(t,n){(0,d.Z)(this,e),this.themeType=n;var i=t.options,r=i.get(46);this.renderWhitespace=i.get(90),this.renderControlCharacters=i.get(85),this.spaceWidth=r.spaceWidth,this.middotWidth=r.middotWidth,this.wsmiddotWidth=r.wsmiddotWidth,this.useMonospaceOptimizations=r.isMonospace&&!i.get(29),this.canUseHalfwidthRightwardsArrow=r.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(61),this.stopRenderingLineAfter=i.get(107),this.fontLigatures=i.get(47)}return(0,h.Z)(e,[{key:"equals",value:function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}]),e}(),me=function(){function e(t){(0,d.Z)(this,e),this._options=t,this._isMaybeInvalid=!0,this._renderedViewLine=null}return(0,h.Z)(e,[{key:"getDomNode",value:function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}},{key:"setDomNode",value:function(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,q.X)(e)}},{key:"onContentChanged",value:function(){this._isMaybeInvalid=!0}},{key:"onTokensChanged",value:function(){this._isMaybeInvalid=!0}},{key:"onDecorationsChanged",value:function(){this._isMaybeInvalid=!0}},{key:"onOptionsChanged",value:function(e){this._isMaybeInvalid=!0,this._options=e}},{key:"onSelectionChanged",value:function(){return!(!(0,he.c3)(this._options.themeType)&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}},{key:"renderLine",value:function(t,n,i,r){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var a=i.getViewLineRenderingData(t),s=this._options,l=ue.Kp.filter(a.inlineDecorations,t,a.minColumn,a.maxColumn),c=null;if((0,he.c3)(s.themeType)||"selection"===this._options.renderWhitespace){var u,d=i.selections,h=(0,o.Z)(d);try{for(h.s();!(u=h.n()).done;){var f=u.value;if(!(f.endLineNumber<t||f.startLineNumber>t)){var p=f.startLineNumber===t?f.startColumn:a.minColumn,g=f.endLineNumber===t?f.endColumn:a.maxColumn;p<g&&((0,he.c3)(s.themeType)||"selection"!==this._options.renderWhitespace?l.push(new ue.Kp(p,g,"inline-selected-text",0)):(c||(c=[]),c.push(new de.zG(p-1,g-1))))}}}catch(_){h.e(_)}finally{h.f()}}var v=new de.IJ(s.useMonospaceOptimizations,s.canUseHalfwidthRightwardsArrow,a.content,a.continuesWithWrappedLine,a.isBasicASCII,a.containsRTL,a.minColumn-1,a.tokens,l,a.tabSize,a.startVisibleColumn,s.spaceWidth,s.middotWidth,s.wsmiddotWidth,s.stopRenderingLineAfter,s.renderWhitespace,s.renderControlCharacters,s.fontLigatures!==M.n0.OFF,c);if(this._renderedViewLine&&this._renderedViewLine.input.equals(v))return!1;r.appendASCIIString('<div style="top:'),r.appendASCIIString(String(n)),r.appendASCIIString("px;height:"),r.appendASCIIString(String(this._options.lineHeight)),r.appendASCIIString('px;" class="'),r.appendASCIIString(e.CLASS_NAME),r.appendASCIIString('">');var m=(0,de.d1)(v,r);r.appendASCIIString("</div>");var y=null;return pe&&fe&&a.isBasicASCII&&s.useMonospaceOptimizations&&0===m.containsForeignElements&&a.content.length<300&&v.lineTokens.getCount()<100&&(y=new ye(this._renderedViewLine?this._renderedViewLine.domNode:null,v,m.characterMapping)),y||(y=Ce(this._renderedViewLine?this._renderedViewLine.domNode:null,v,m.characterMapping,m.containsRTL,m.containsForeignElements)),this._renderedViewLine=y,!0}},{key:"layoutLine",value:function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}},{key:"getWidth",value:function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}},{key:"getWidthIsFast",value:function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}},{key:"needsMonospaceFontCheck",value:function(){return!!this._renderedViewLine&&this._renderedViewLine instanceof ye}},{key:"monospaceAssumptionsAreValid",value:function(){return this._renderedViewLine&&this._renderedViewLine instanceof ye?this._renderedViewLine.monospaceAssumptionsAreValid():pe}},{key:"onMonospaceAssumptionsInvalidated",value:function(){this._renderedViewLine&&this._renderedViewLine instanceof ye&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}},{key:"getVisibleRangesForRange",value:function(e,t,n,i){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),n=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,n));var r=this._renderedViewLine.input.stopRenderingLineAfter,o=!1;-1!==r&&t>r+1&&n>r+1&&(o=!0),-1!==r&&t>r+1&&(t=r+1),-1!==r&&n>r+1&&(n=r+1);var a=this._renderedViewLine.getVisibleRangesForRange(e,t,n,i);return a&&a.length>0?new le(o,a):null}},{key:"getColumnOfNodeOffset",value:function(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1}}]),e}();me.CLASS_NAME="view-line";var ye=function(){function e(t,n,i){(0,d.Z)(this,e),this.domNode=t,this.input=n,this._characterMapping=i,this._charWidth=n.spaceWidth}return(0,h.Z)(e,[{key:"getWidth",value:function(){return Math.round(this._getCharPosition(this._characterMapping.length))}},{key:"getWidthIsFast",value:function(){return!0}},{key:"monospaceAssumptionsAreValid",value:function(){if(!this.domNode)return pe;var e=this.getWidth(),t=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),pe=!1),pe}},{key:"toSlowRenderedLine",value:function(){return Ce(this.domNode,this.input,this._characterMapping,!1,0)}},{key:"getVisibleRangesForRange",value:function(e,t,n,i){var r=this._getCharPosition(t),o=this._getCharPosition(n);return[new ae(r,o-r)]}},{key:"_getCharPosition",value:function(e){var t=this._characterMapping.getHorizontalOffset(e);return this._charWidth*t}},{key:"getColumnOfNodeOffset",value:function(e,t,n){for(var i=t.textContent.length,r=-1;t;)t=t.previousSibling,r++;return this._characterMapping.getColumn(new de.Nd(r,n),i)}}]),e}(),_e=function(){function e(t,n,i,r,o){if((0,d.Z)(this,e),this.domNode=t,this.input=n,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(n.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!r||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(var a=0,s=this._characterMapping.length;a<=s;a++)this._pixelOffsetCache[a]=-1}}return(0,h.Z)(e,[{key:"_getReadingTarget",value:function(e){return e.domNode.firstChild}},{key:"getWidth",value:function(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}},{key:"getWidthIsFast",value:function(){return-1!==this._cachedWidth}},{key:"getVisibleRangesForRange",value:function(e,t,n,i){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){var r=this._readPixelOffset(this.domNode,e,t,i);if(-1===r)return null;var o=this._readPixelOffset(this.domNode,e,n,i);return-1===o?null:[new ae(r,o-r)]}return this._readVisibleRangesForRange(this.domNode,e,t,n,i)}},{key:"_readVisibleRangesForRange",value:function(e,t,n,i,r){if(n===i){var o=this._readPixelOffset(e,t,n,r);return-1===o?null:[new ae(o,0)]}return this._readRawVisibleRangesForRange(e,n,i,r)}},{key:"_readPixelOffset",value:function(e,t,n,i){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth();var r=this._getReadingTarget(e);return r.firstChild?r.firstChild.offsetWidth:0}if(null!==this._pixelOffsetCache){var o=this._pixelOffsetCache[n];if(-1!==o)return o;var a=this._actualReadPixelOffset(e,t,n,i);return this._pixelOffsetCache[n]=a,a}return this._actualReadPixelOffset(e,t,n,i)}},{key:"_actualReadPixelOffset",value:function(e,t,n,i){if(0===this._characterMapping.length){var r=ce.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,i.clientRectDeltaLeft,i.clientRectScale,i.endNode);return r&&0!==r.length?r[0].left:-1}if(n===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var o=this._characterMapping.getDomPosition(n),a=ce.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,o.partIndex,o.charIndex,i.clientRectDeltaLeft,i.clientRectScale,i.endNode);if(!a||0===a.length)return-1;var s=a[0].left;if(this.input.isBasicASCII){var l=this._characterMapping.getHorizontalOffset(n),c=Math.round(this.input.spaceWidth*l);if(Math.abs(c-s)<=1)return c}return s}},{key:"_readRawVisibleRangesForRange",value:function(e,t,n,i){if(1===t&&n===this._characterMapping.length)return[new ae(0,this.getWidth())];var r=this._characterMapping.getDomPosition(t),o=this._characterMapping.getDomPosition(n);return ce.readHorizontalRanges(this._getReadingTarget(e),r.partIndex,r.charIndex,o.partIndex,o.charIndex,i.clientRectDeltaLeft,i.clientRectScale,i.endNode)}},{key:"getColumnOfNodeOffset",value:function(e,t,n){for(var i=t.textContent.length,r=-1;t;)t=t.previousSibling,r++;return this._characterMapping.getColumn(new de.Nd(r,n),i)}}]),e}(),be=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n,[{key:"_readVisibleRangesForRange",value:function(e,t,i,r,o){var a=(0,s.Z)((0,l.Z)(n.prototype),"_readVisibleRangesForRange",this).call(this,e,t,i,r,o);if(!a||0===a.length||i===r||1===i&&r===this._characterMapping.length)return a;if(!this.input.containsRTL){var c=this._readPixelOffset(e,t,r,o);if(-1!==c){var u=a[a.length-1];u.left<c&&(u.width=c-u.left)}}return a}}]),n}(_e),Ce=k.isWebKit?Se:we;function Se(e,t,n,i,r){return new be(e,t,n,i,r)}function we(e,t,n,i,r){return new _e(e,t,n,i,r)}var ke,xe=n(38622),Ee=n(80133),Te=n(29349),Ne=n(79355),Ie=(0,h.Z)((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,d.Z)(this,e),this.hitTarget=t,this.type=0})),De=(0,h.Z)((function e(t,n,i){(0,d.Z)(this,e),this.position=t,this.spanNode=n,this.injectedText=i,this.type=1}));!function(e){e.createFromDOMInfo=function(e,t,n){var i=e.getPositionFromDOMInfo(t,n);return i?new De(i,t,null):new Ie(t)}}(ke||(ke={}));var Le=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.lastViewCursorsRenderData=t,this.lastTextareaPosition=n})),Oe=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,null,[{key:"_deduceRage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!t&&e?new Ee.e(e.lineNumber,e.column,e.lineNumber,e.column):null!==t&&void 0!==t?t:null}},{key:"createUnknown",value:function(e,t,n){return{type:0,element:e,mouseColumn:t,position:n,range:this._deduceRage(n)}}},{key:"createTextarea",value:function(e,t){return{type:1,element:e,mouseColumn:t,position:null,range:null}}},{key:"createMargin",value:function(e,t,n,i,r,o){return{type:e,element:t,mouseColumn:n,position:i,range:r,detail:o}}},{key:"createViewZone",value:function(e,t,n,i,r){return{type:e,element:t,mouseColumn:n,position:i,range:this._deduceRage(i),detail:r}}},{key:"createContentText",value:function(e,t,n,i,r){return{type:6,element:e,mouseColumn:t,position:n,range:this._deduceRage(n,i),detail:r}}},{key:"createContentEmpty",value:function(e,t,n,i){return{type:7,element:e,mouseColumn:t,position:n,range:this._deduceRage(n),detail:i}}},{key:"createContentWidget",value:function(e,t,n){return{type:9,element:e,mouseColumn:t,position:null,range:null,detail:n}}},{key:"createScrollbar",value:function(e,t,n){return{type:11,element:e,mouseColumn:t,position:n,range:this._deduceRage(n)}}},{key:"createOverlayWidget",value:function(e,t,n){return{type:12,element:e,mouseColumn:t,position:null,range:null,detail:n}}},{key:"createOutsideEditor",value:function(e,t){return{type:13,element:null,mouseColumn:e,position:t,range:this._deduceRage(t)}}},{key:"_typeToString",value:function(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}},{key:"toString",value:function(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}}]),e}(),Re=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,null,[{key:"isTextArea",value:function(e){return 2===e.length&&3===e[0]&&6===e[1]}},{key:"isChildOfViewLines",value:function(e){return e.length>=4&&3===e[0]&&7===e[3]}},{key:"isStrictChildOfViewLines",value:function(e){return e.length>4&&3===e[0]&&7===e[3]}},{key:"isChildOfScrollableElement",value:function(e){return e.length>=2&&3===e[0]&&5===e[1]}},{key:"isChildOfMinimap",value:function(e){return e.length>=2&&3===e[0]&&8===e[1]}},{key:"isChildOfContentWidgets",value:function(e){return e.length>=4&&3===e[0]&&1===e[3]}},{key:"isChildOfOverflowingContentWidgets",value:function(e){return e.length>=1&&2===e[0]}},{key:"isChildOfOverlayWidgets",value:function(e){return e.length>=2&&3===e[0]&&4===e[1]}}]),e}(),Ae=function(){function e(t,n,i){(0,d.Z)(this,e),this.viewModel=t.viewModel;var r=t.configuration.options;this.layoutInfo=r.get(133),this.viewDomNode=n.viewDomNode,this.lineHeight=r.get(61),this.stickyTabStops=r.get(106),this.typicalHalfwidthCharacterWidth=r.get(46).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=t,this._viewHelper=n}return(0,h.Z)(e,[{key:"getZoneAtCoord",value:function(t){return e.getZoneAtCoord(this._context,t)}},{key:"getFullLineRangeAtCoord",value:function(e){if(this._context.viewLayout.isAfterLines(e)){var t=this._context.viewModel.getLineCount(),n=this._context.viewModel.getLineMaxColumn(t);return{range:new Ee.e(t,n,t,n),isAfterLines:!0}}var i=this._context.viewLayout.getLineNumberAtVerticalOffset(e),r=this._context.viewModel.getLineMaxColumn(i);return{range:new Ee.e(i,1,i,r),isAfterLines:!1}}},{key:"getLineNumberAtVerticalOffset",value:function(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}},{key:"isAfterLines",value:function(e){return this._context.viewLayout.isAfterLines(e)}},{key:"isInTopPadding",value:function(e){return this._context.viewLayout.isInTopPadding(e)}},{key:"isInBottomPadding",value:function(e){return this._context.viewLayout.isInBottomPadding(e)}},{key:"getVerticalOffsetForLineNumber",value:function(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}},{key:"findAttribute",value:function(t,n){return e._findAttribute(t,n,this._viewHelper.viewDomNode)}},{key:"getLineWidth",value:function(e){return this._viewHelper.getLineWidth(e)}},{key:"visibleRangeForPosition",value:function(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}},{key:"getPositionFromDOMInfo",value:function(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}},{key:"getCurrentScrollTop",value:function(){return this._context.viewLayout.getCurrentScrollTop()}},{key:"getCurrentScrollLeft",value:function(){return this._context.viewLayout.getCurrentScrollLeft()}}],[{key:"getZoneAtCoord",value:function(e,t){var n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){var i,r=n.verticalOffset+n.height/2,o=e.viewModel.getLineCount(),a=null,s=null;return n.afterLineNumber!==o&&(s=new xe.L(n.afterLineNumber+1,1)),n.afterLineNumber>0&&(a=new xe.L(n.afterLineNumber,e.viewModel.getLineMaxColumn(n.afterLineNumber))),i=null===s?a:null===a?s:t<r?a:s,{viewZoneId:n.id,afterLineNumber:n.afterLineNumber,positionBefore:a,positionAfter:s,position:i}}return null}},{key:"_findAttribute",value:function(e,t,n){for(;e&&e!==document.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===n)return null;e=e.parentNode}return null}}]),e}(),Me=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r,o,a){var s;return(0,d.Z)(this,n),(s=t.call(this,e,i,r,o))._ctx=e,a?(s.target=a,s.targetPath=ne.collect(a,e.viewDomNode)):(s.target=null,s.targetPath=new Uint8Array(0)),s}return(0,h.Z)(n,[{key:"toString",value:function(){return"pos(".concat(this.pos.x,",").concat(this.pos.y,"), editorPos(").concat(this.editorPos.x,",").concat(this.editorPos.y,"), relativePos(").concat(this.relativePos.x,",").concat(this.relativePos.y,"), mouseVerticalOffset: ").concat(this.mouseVerticalOffset,", mouseContentHorizontalOffset: ").concat(this.mouseContentHorizontalOffset,"\n\ttarget: ").concat(this.target?this.target.outerHTML:null)}},{key:"_getMouseColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e&&e.column<this._ctx.viewModel.getLineMaxColumn(e.lineNumber)?Te.i.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(e.lineNumber),e.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}},{key:"fulfillUnknown",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return Oe.createUnknown(this.target,this._getMouseColumn(e),e)}},{key:"fulfillTextarea",value:function(){return Oe.createTextarea(this.target,this._getMouseColumn())}},{key:"fulfillMargin",value:function(e,t,n,i){return Oe.createMargin(e,this.target,this._getMouseColumn(t),t,n,i)}},{key:"fulfillViewZone",value:function(e,t,n){return Oe.createViewZone(e,this.target,this._getMouseColumn(t),t,n)}},{key:"fulfillContentText",value:function(e,t,n){return Oe.createContentText(this.target,this._getMouseColumn(e),e,t,n)}},{key:"fulfillContentEmpty",value:function(e,t){return Oe.createContentEmpty(this.target,this._getMouseColumn(e),e,t)}},{key:"fulfillContentWidget",value:function(e){return Oe.createContentWidget(this.target,this._getMouseColumn(),e)}},{key:"fulfillScrollbar",value:function(e){return Oe.createScrollbar(this.target,this._getMouseColumn(e),e)}},{key:"fulfillOverlayWidget",value:function(e){return Oe.createOverlayWidget(this.target,this._getMouseColumn(),e)}},{key:"withTarget",value:function(e){return new n(this._ctx,this.editorPos,this.pos,this.relativePos,e)}}]),n}((0,h.Z)((function e(t,n,i,r){(0,d.Z)(this,e),this.editorPos=n,this.pos=i,this.relativePos=r,this.mouseVerticalOffset=Math.max(0,t.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=t.getCurrentScrollLeft()+this.relativePos.x-t.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<t.layoutInfo.contentLeft&&this.relativePos.x>=t.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Fe._getMouseColumn(this.mouseContentHorizontalOffset,t.typicalHalfwidthCharacterWidth))}))),Pe={isAfterLines:!0};function Ze(e){return{isAfterLines:!1,horizontalDistanceToText:e}}var Fe=function(){function e(t,n){(0,d.Z)(this,e),this._context=t,this._viewHelper=n}return(0,h.Z)(e,[{key:"mouseTargetIsWidget",value:function(e){var t=e.target,n=ne.collect(t,this._viewHelper.viewDomNode);return!(!Re.isChildOfContentWidgets(n)&&!Re.isChildOfOverflowingContentWidgets(n))||!!Re.isChildOfOverlayWidgets(n)}},{key:"createMouseTarget",value:function(t,n,i,r,o){var a=new Ae(this._context,this._viewHelper,t),s=new Me(a,n,i,r,o);try{return e._createMouseTarget(a,s,!1)}catch(l){return s.fulfillUnknown()}}},{key:"getMouseColumn",value:function(t){var n=this._context.configuration.options,i=n.get(133),r=this._context.viewLayout.getCurrentScrollLeft()+t.x-i.contentLeft;return e._getMouseColumn(r,n.get(46).typicalHalfwidthCharacterWidth)}}],[{key:"_createMouseTarget",value:function(t,n,i){if(null===n.target){if(i)return n.fulfillUnknown();var r=e._doHitTest(t,n);return 1===r.type?e.createMouseTargetFromHitTestPosition(t,n,r.spanNode,r.position,r.injectedText):this._createMouseTarget(t,n.withTarget(r.hitTarget),!0)}var o=n,a=null;return(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=a||e._hitTestContentWidget(t,o))||e._hitTestOverlayWidget(t,o))||e._hitTestMinimap(t,o))||e._hitTestScrollbarSlider(t,o))||e._hitTestViewZone(t,o))||e._hitTestMargin(t,o))||e._hitTestViewCursor(t,o))||e._hitTestTextArea(t,o))||e._hitTestViewLines(t,o,i))||e._hitTestScrollbar(t,o))||n.fulfillUnknown()}},{key:"_hitTestContentWidget",value:function(e,t){if(Re.isChildOfContentWidgets(t.targetPath)||Re.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfillContentWidget(n):t.fulfillUnknown()}return null}},{key:"_hitTestOverlayWidget",value:function(e,t){if(Re.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfillOverlayWidget(n):t.fulfillUnknown()}return null}},{key:"_hitTestViewCursor",value:function(e,t){if(t.target){var n,i=e.lastRenderData.lastViewCursorsRenderData,r=(0,o.Z)(i);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(t.target===a.domNode)return t.fulfillContentText(a.position,null,{mightBeForeignElement:!1,injectedText:null})}}catch(p){r.e(p)}finally{r.f()}}if(t.isInContentArea){var s,l=e.lastRenderData.lastViewCursorsRenderData,c=t.mouseContentHorizontalOffset,u=t.mouseVerticalOffset,d=(0,o.Z)(l);try{for(d.s();!(s=d.n()).done;){var h=s.value;if(!(c<h.contentLeft)&&!(c>h.contentLeft+h.width)){var f=e.getVerticalOffsetForLineNumber(h.position.lineNumber);if(f<=u&&u<=f+h.height)return t.fulfillContentText(h.position,null,{mightBeForeignElement:!1,injectedText:null})}}}catch(p){d.e(p)}finally{d.f()}}return null}},{key:"_hitTestViewZone",value:function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var i=t.isInContentArea?8:5;return t.fulfillViewZone(i,n.position,n)}return null}},{key:"_hitTestTextArea",value:function(e,t){return Re.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}},{key:"_hitTestMargin",value:function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition(),r=Math.abs(t.relativePos.x),o={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:r};return(r-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfillMargin(2,i,n.range,o):(r-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,i,n.range,o):(r-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,i,n.range,o))}return null}},{key:"_hitTestViewLines",value:function(t,n,i){if(!Re.isChildOfViewLines(n.targetPath))return null;if(t.isInTopPadding(n.mouseVerticalOffset))return n.fulfillContentEmpty(new xe.L(1,1),Pe);if(t.isAfterLines(n.mouseVerticalOffset)||t.isInBottomPadding(n.mouseVerticalOffset)){var r=t.viewModel.getLineCount(),o=t.viewModel.getLineMaxColumn(r);return n.fulfillContentEmpty(new xe.L(r,o),Pe)}if(i){if(Re.isStrictChildOfViewLines(n.targetPath)){var a=t.getLineNumberAtVerticalOffset(n.mouseVerticalOffset);if(0===t.viewModel.getLineLength(a)){var s=t.getLineWidth(a),l=Ze(n.mouseContentHorizontalOffset-s);return n.fulfillContentEmpty(new xe.L(a,1),l)}var c=t.getLineWidth(a);if(n.mouseContentHorizontalOffset>=c){var u=Ze(n.mouseContentHorizontalOffset-c),d=new xe.L(a,t.viewModel.getLineMaxColumn(a));return n.fulfillContentEmpty(d,u)}}return n.fulfillUnknown()}var h=e._doHitTest(t,n);return 1===h.type?e.createMouseTargetFromHitTestPosition(t,n,h.spanNode,h.position,h.injectedText):this._createMouseTarget(t,n.withTarget(h.hitTarget),!0)}},{key:"_hitTestMinimap",value:function(e,t){if(Re.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.viewModel.getLineMaxColumn(n);return t.fulfillScrollbar(new xe.L(n,i))}return null}},{key:"_hitTestScrollbarSlider",value:function(e,t){if(Re.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),r=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new xe.L(i,r))}}return null}},{key:"_hitTestScrollbar",value:function(e,t){if(Re.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.viewModel.getLineMaxColumn(n);return t.fulfillScrollbar(new xe.L(n,i))}return null}},{key:"_getMouseColumn",value:function(e,t){return e<0?1:Math.round(e/t)+1}},{key:"createMouseTargetFromHitTestPosition",value:function(e,t,n,i,r){var o=i.lineNumber,a=i.column,s=e.getLineWidth(o);if(t.mouseContentHorizontalOffset>s){var l=Ze(t.mouseContentHorizontalOffset-s);return t.fulfillContentEmpty(i,l)}var c=e.visibleRangeForPosition(o,a);if(!c)return t.fulfillUnknown(i);var u=c.left;if(t.mouseContentHorizontalOffset===u)return t.fulfillContentText(i,null,{mightBeForeignElement:!!r,injectedText:r});var d=[];if(d.push({offset:c.left,column:a}),a>1){var h=e.visibleRangeForPosition(o,a-1);h&&d.push({offset:h.left,column:a-1})}if(a<e.viewModel.getLineMaxColumn(o)){var f=e.visibleRangeForPosition(o,a+1);f&&d.push({offset:f.left,column:a+1})}d.sort((function(e,t){return e.offset-t.offset}));for(var p=t.pos.toClientCoordinates(),g=n.getBoundingClientRect(),v=g.left<=p.clientX&&p.clientX<=g.right,m=1;m<d.length;m++){var y=d[m-1],_=d[m];if(y.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=_.offset){var b=new Ee.e(o,y.column,o,_.column),C=Math.abs(y.offset-t.mouseContentHorizontalOffset)<Math.abs(_.offset-t.mouseContentHorizontalOffset)?new xe.L(o,y.column):new xe.L(o,_.column);return t.fulfillContentText(C,b,{mightBeForeignElement:!v||!!r,injectedText:r})}}return t.fulfillContentText(i,null,{mightBeForeignElement:!v||!!r,injectedText:r})}},{key:"_doHitTestWithCaretRangeFromPoint",value:function(e,t){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.getVerticalOffsetForLineNumber(n)+Math.floor(e.lineHeight/2),r=t.pos.y+(i-t.mouseVerticalOffset);r<=t.editorPos.y&&(r=t.editorPos.y+1),r>=t.editorPos.y+t.editorPos.height&&(r=t.editorPos.y+t.editorPos.height-1);var o=new J.YN(t.pos.x,r),a=this._actualDoHitTestWithCaretRangeFromPoint(e,o.toClientCoordinates());return 1===a.type?a:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}},{key:"_actualDoHitTestWithCaretRangeFromPoint",value:function(e,t){var n,i=_.getShadowRoot(e.viewDomNode);if(n=i?"undefined"===typeof i.caretRangeFromPoint?function(e,t,n){var i=document.createRange(),r=e.elementFromPoint(t,n);if(null!==r){for(;r&&r.firstChild&&r.firstChild.nodeType!==r.firstChild.TEXT_NODE&&r.lastChild&&r.lastChild.firstChild;)r=r.lastChild;var o,a=r.getBoundingClientRect(),s=window.getComputedStyle(r,null).getPropertyValue("font"),l=r.innerText,c=a.left,u=0;if(t>a.left+a.width)u=l.length;else for(var d=Be.getInstance(),h=0;h<l.length+1;h++){if(t<(c+=o=d.getCharWidth(l.charAt(h),s)/2)){u=h;break}c+=o}i.setStart(r.firstChild,u),i.setEnd(r.firstChild,u)}return i}(i,t.clientX,t.clientY):i.caretRangeFromPoint(t.clientX,t.clientY):document.caretRangeFromPoint(t.clientX,t.clientY),!n||!n.startContainer)return new Ie;var r=n.startContainer;if(r.nodeType===r.TEXT_NODE){var o=r.parentNode,a=o?o.parentNode:null,s=a?a.parentNode:null;return(s&&s.nodeType===s.ELEMENT_NODE?s.className:null)===me.CLASS_NAME?ke.createFromDOMInfo(e,o,n.startOffset):new Ie(r.parentNode)}if(r.nodeType===r.ELEMENT_NODE){var l=r.parentNode,c=l?l.parentNode:null;return(c&&c.nodeType===c.ELEMENT_NODE?c.className:null)===me.CLASS_NAME?ke.createFromDOMInfo(e,r,r.textContent.length):new Ie(r)}return new Ie}},{key:"_doHitTestWithCaretPositionFromPoint",value:function(e,t){var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType===n.offsetNode.TEXT_NODE){var i=n.offsetNode.parentNode,r=i?i.parentNode:null,o=r?r.parentNode:null;return(o&&o.nodeType===o.ELEMENT_NODE?o.className:null)===me.CLASS_NAME?ke.createFromDOMInfo(e,n.offsetNode.parentNode,n.offset):new Ie(n.offsetNode.parentNode)}if(n.offsetNode.nodeType===n.offsetNode.ELEMENT_NODE){var a=n.offsetNode.parentNode,s=a&&a.nodeType===a.ELEMENT_NODE?a.className:null,l=a?a.parentNode:null,c=l&&l.nodeType===l.ELEMENT_NODE?l.className:null;if(s===me.CLASS_NAME){var u=n.offsetNode.childNodes[Math.min(n.offset,n.offsetNode.childNodes.length-1)];if(u)return ke.createFromDOMInfo(e,u,0)}else if(c===me.CLASS_NAME)return ke.createFromDOMInfo(e,n.offsetNode,0)}return new Ie(n.offsetNode)}},{key:"_snapToSoftTabBoundary",value:function(e,t){var n=t.getLineContent(e.lineNumber),i=t.model.getOptions().tabSize,r=Ne.l.atomicPosition(n,e.column-1,i,2);return-1!==r?new xe.L(e.lineNumber,r+1):e}},{key:"_doHitTest",value:function(e,t){var n=new Ie;if("function"===typeof document.caretRangeFromPoint?n=this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint&&(n=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates())),1===n.type){var i=e.viewModel.getInjectedTextAt(n.position),r=e.viewModel.normalizePosition(n.position,2);!i&&r.equals(n.position)||(n=new De(r,n.spanNode,i))}return 1===n.type&&e.stickyTabStops&&(n=new De(this._snapToSoftTabBoundary(n.position,e.viewModel),n.spanNode,n.injectedText)),n}}]),e}();var Be=function(){function e(){(0,d.Z)(this,e),this._cache={},this._canvas=document.createElement("canvas")}return(0,h.Z)(e,[{key:"getCharWidth",value:function(e,t){var n=e+t;if(this._cache[n])return this._cache[n];var i=this._canvas.getContext("2d");i.font=t;var r=i.measureText(e).width;return this._cache[n]=r,r}}],[{key:"getInstance",value:function(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}}]),e}();Be._INSTANCE=null;var He=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r){var o;(0,d.Z)(this,n),(o=t.call(this))._mouseLeaveMonitor=null,o._context=e,o.viewController=i,o.viewHelper=r,o.mouseTargetFactory=new Fe(o._context,r),o._mouseDownOperation=o._register(new ze(o._context,o.viewController,o.viewHelper,(function(e,t){return o._createMouseTarget(e,t)}),(function(e){return o._getMouseColumn(e)}))),o.lastMouseLeaveTime=-1,o._height=o._context.configuration.options.get(133).height;var s=new J.N5(o.viewHelper.viewDomNode);o._register(s.onContextMenu(o.viewHelper.viewDomNode,(function(e){return o._onContextMenu(e,!0)}))),o._register(s.onMouseMove(o.viewHelper.viewDomNode,(function(e){o._onMouseMove(e),o._mouseLeaveMonitor||(o._mouseLeaveMonitor=_.addDisposableListener(document,"mousemove",(function(e){o.viewHelper.viewDomNode.contains(e.target)||o._onMouseLeave(new J.gy(e,!1,o.viewHelper.viewDomNode))})))}))),o._register(s.onMouseUp(o.viewHelper.viewDomNode,(function(e){return o._onMouseUp(e)}))),o._register(s.onMouseLeave(o.viewHelper.viewDomNode,(function(e){return o._onMouseLeave(e)})));var l=0;o._register(s.onPointerDown(o.viewHelper.viewDomNode,(function(e,t){l=t}))),o._register(_.addDisposableListener(o.viewHelper.viewDomNode,_.EventType.POINTER_UP,(function(e){o._mouseDownOperation.onPointerUp()}))),o._register(s.onMouseDown(o.viewHelper.viewDomNode,(function(e){return o._onMouseDown(e,l)})));return o._register(_.addDisposableListener(o.viewHelper.viewDomNode,_.EventType.MOUSE_WHEEL,(function(e){if(o.viewController.emitMouseWheel(e),o._context.configuration.options.get(70)){var t=new X.q(e);if(T.dz?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey){var n=P.C.getZoomLevel(),i=t.deltaY>0?1:-1;P.C.setZoomLevel(n+i),t.preventDefault(),t.stopPropagation()}}}),{capture:!0,passive:!1})),o._context.addEventHandler((0,a.Z)(o)),o}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){if(e.hasChanged(133)){var t=this._context.configuration.options.get(133).height;this._height!==t&&(this._height=t,this._mouseDownOperation.onHeightChanged())}return!1}},{key:"onCursorStateChanged",value:function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}},{key:"onFocusChanged",value:function(e){return!1}},{key:"onScrollChanged",value:function(e){return this._mouseDownOperation.onScrollChanged(),!1}},{key:"getTargetAtClientPoint",value:function(e,t){var n=new J.rU(e,t).toPageCoordinates(),i=(0,J.kG)(this.viewHelper.viewDomNode);if(n.y<i.y||n.y>i.y+i.height||n.x<i.x||n.x>i.x+i.width)return null;var r=(0,J.Pp)(this.viewHelper.viewDomNode,i,n);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),i,n,r,null)}},{key:"_createMouseTarget",value:function(e,t){var n=this,i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){var r=_.getShadowRoot(this.viewHelper.viewDomNode);r&&(i=r.elementsFromPoint(e.posx,e.posy).find((function(e){return n.viewHelper.viewDomNode.contains(e)})))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}},{key:"_getMouseColumn",value:function(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}},{key:"_onContextMenu",value:function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}},{key:"_onMouseMove",value:function(e){(this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),this._mouseDownOperation.isActive())||(e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)}))}},{key:"_onMouseLeave",value:function(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}},{key:"_onMouseUp",value:function(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}},{key:"_onMouseDown",value:function(e,t){var n=this,i=this._createMouseTarget(e,!0),r=6===i.type||7===i.type,o=2===i.type||3===i.type||4===i.type,a=3===i.type,s=this._context.configuration.options.get(100),l=8===i.type||5===i.type,c=9===i.type,u=e.leftButton||e.middleButton;T.dz&&e.leftButton&&e.ctrlKey&&(u=!1);var d=function(){e.preventDefault(),n.viewHelper.focusTextArea()};if(u&&(r||a&&s))d(),this._mouseDownOperation.start(i.type,e,t);else if(o)e.preventDefault();else if(l){var h=i.detail;u&&this.viewHelper.shouldSuppressMouseDownOnViewZone(h.viewZoneId)&&(d(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else c&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(d(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}]),n}(ee),ze=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r,o,a){var s;return(0,d.Z)(this,n),(s=t.call(this))._context=e,s._viewController=i,s._viewHelper=r,s._createMouseTarget=o,s._getMouseColumn=a,s._mouseMoveMonitor=s._register(new J.AL(s._viewHelper.viewDomNode)),s._onScrollTimeout=s._register(new Q._F),s._mouseState=new je,s._currentSelection=new Y.Y(1,1,1,1),s._isActive=!1,s._lastMouseEvent=null,s}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"isActive",value:function(){return this._isActive}},{key:"_onMouseDownThenMove",value:function(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);var t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}},{key:"start",value:function(e,t,n){var i=this;this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);var r=this._findMousePosition(t,!0);if(r&&r.position){this._mouseState.trySetCount(t.detail,r.position),t.detail=this._mouseState.count;var o=this._context.configuration.options;if(!o.get(83)&&o.get(31)&&!o.get(18)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===r.type&&r.position&&this._currentSelection.containsPosition(r.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,n,t.buttons,(function(e){return i._onMouseDownThenMove(e)}),(function(e){var t=i._findMousePosition(i._lastMouseEvent,!1);e&&e instanceof KeyboardEvent?i._viewController.emitMouseDropCanceled():i._viewController.emitMouseDrop({event:i._lastMouseEvent,target:t?i._createMouseTarget(i._lastMouseEvent,!0):null}),i._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(r,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,n,t.buttons,(function(e){return i._onMouseDownThenMove(e)}),(function(){return i._stop()})))}}},{key:"_stop",value:function(){this._isActive=!1,this._onScrollTimeout.cancel()}},{key:"onHeightChanged",value:function(){this._mouseMoveMonitor.stopMonitoring()}},{key:"onPointerUp",value:function(){this._mouseMoveMonitor.stopMonitoring()}},{key:"onScrollChanged",value:function(){var e=this;this._isActive&&this._onScrollTimeout.setIfNotSet((function(){if(e._lastMouseEvent){var t=e._findMousePosition(e._lastMouseEvent,!1);t&&(e._mouseState.isDragAndDrop||e._dispatchMouse(t,!0))}}),10)}},{key:"onCursorStateChanged",value:function(e){this._currentSelection=e.selections[0]}},{key:"_getPositionOutsideEditor",value:function(e){var t=e.editorPos,n=this._context.viewModel,i=this._context.viewLayout,r=this._getMouseColumn(e);if(e.posy<t.y){var o=Math.max(i.getCurrentScrollTop()-(t.y-e.posy),0),a=Ae.getZoneAtCoord(this._context,o);if(a){var s=this._helpPositionJumpOverViewZone(a);if(s)return Oe.createOutsideEditor(r,s)}var l=i.getLineNumberAtVerticalOffset(o);return Oe.createOutsideEditor(r,new xe.L(l,1))}if(e.posy>t.y+t.height){var c=i.getCurrentScrollTop()+e.relativePos.y,u=Ae.getZoneAtCoord(this._context,c);if(u){var d=this._helpPositionJumpOverViewZone(u);if(d)return Oe.createOutsideEditor(r,d)}var h=i.getLineNumberAtVerticalOffset(c);return Oe.createOutsideEditor(r,new xe.L(h,n.getLineMaxColumn(h)))}var f=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+e.relativePos.y);return e.posx<t.x?Oe.createOutsideEditor(r,new xe.L(f,1)):e.posx>t.x+t.width?Oe.createOutsideEditor(r,new xe.L(f,n.getLineMaxColumn(f))):null}},{key:"_findMousePosition",value:function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var i=this._createMouseTarget(e,t);if(!i.position)return null;if(8===i.type||5===i.type){var r=this._helpPositionJumpOverViewZone(i.detail);if(r)return Oe.createViewZone(i.type,i.element,i.mouseColumn,r,i.detail)}return i}},{key:"_helpPositionJumpOverViewZone",value:function(e){var t=new xe.L(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,i=e.positionAfter;return n&&i?n.isBefore(t)?n:i:null}},{key:"_dispatchMouse",value:function(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}]),n}(S.JT),je=function(){function e(){(0,d.Z)(this,e),this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}return(0,h.Z)(e,[{key:"altKey",get:function(){return this._altKey}},{key:"ctrlKey",get:function(){return this._ctrlKey}},{key:"metaKey",get:function(){return this._metaKey}},{key:"shiftKey",get:function(){return this._shiftKey}},{key:"leftButton",get:function(){return this._leftButton}},{key:"middleButton",get:function(){return this._middleButton}},{key:"startedOnLineNumbers",get:function(){return this._startedOnLineNumbers}},{key:"count",get:function(){return this._lastMouseDownCount}},{key:"setModifiers",value:function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}},{key:"setStartButtons",value:function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}},{key:"setStartedOnLineNumbers",value:function(e){this._startedOnLineNumbers=e}},{key:"trySetCount",value:function(t,n){var i=(new Date).getTime();i-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1),this._lastSetMouseDownCountTime=i,t>this._lastMouseDownCount+1&&(t=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(n)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=n,this._lastMouseDownCount=Math.min(t,this._lastMouseDownPositionEqualCount)}}]),e}();je.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var Ve=n(57572),We=n(12379),Ue=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r){var o;(0,d.Z)(this,n),(o=t.call(this,e,i,r))._register($.o.addTarget(o.viewHelper.linesContentDomNode)),o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,$.t.Tap,(function(e){return o.onTap(e)}))),o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,$.t.Change,(function(e){return o.onChange(e)}))),o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,$.t.Contextmenu,(function(e){return o._onContextMenu(new J.gy(e,!1,o.viewHelper.viewDomNode),!1)}))),o._lastPointerType="mouse",o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,"pointerdown",(function(e){var t=e.pointerType;o._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));var a=new J.tC(o.viewHelper.viewDomNode);return o._register(a.onPointerMove(o.viewHelper.viewDomNode,(function(e){return o._onMouseMove(e)}))),o._register(a.onPointerUp(o.viewHelper.viewDomNode,(function(e){return o._onMouseUp(e)}))),o._register(a.onPointerLeave(o.viewHelper.viewDomNode,(function(e){return o._onMouseLeave(e)}))),o._register(a.onPointerDown(o.viewHelper.viewDomNode,(function(e,t){return o._onMouseDown(e,t)}))),o}return(0,h.Z)(n,[{key:"onTap",value:function(e){if(e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new J.gy(e,!1,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===t.type&&null!==t.detail.injectedText})}}},{key:"onChange",value:function(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}},{key:"_onMouseDown",value:function(e,t){"touch"!==e.browserEvent.pointerType&&(0,s.Z)((0,l.Z)(n.prototype),"_onMouseDown",this).call(this,e,t)}}]),n}(He),Ge=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r){var o;return(0,d.Z)(this,n),(o=t.call(this,e,i,r))._register($.o.addTarget(o.viewHelper.linesContentDomNode)),o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,$.t.Tap,(function(e){return o.onTap(e)}))),o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,$.t.Change,(function(e){return o.onChange(e)}))),o._register(_.addDisposableListener(o.viewHelper.linesContentDomNode,$.t.Contextmenu,(function(e){return o._onContextMenu(new J.gy(e,!1,o.viewHelper.viewDomNode),!1)}))),o}return(0,h.Z)(n,[{key:"onTap",value:function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new J.gy(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){var n=document.createEvent("CustomEvent");n.initEvent(We.pd.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(n),this.viewController.moveTo(t.position)}}},{key:"onChange",value:function(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}]),n}(He),Ke=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r){var o;return(0,d.Z)(this,n),o=t.call(this),T.gn&&Ve.D.pointerEvents?o.handler=o._register(new Ue(e,i,r)):window.TouchEvent?o.handler=o._register(new Ge(e,i,r)):o.handler=o._register(new He(e,i,r)),o}return(0,h.Z)(n,[{key:"getTargetAtClientPoint",value:function(e,t){return this.handler.getTargetAtClientPoint(e,t)}}]),n}(S.JT),Ye=n(32377),qe=n(34070),$e=n(9235),Xe=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n)}(ee),Qe=n(29700),Je=n(64014),et=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this))._context=e,i._readConfig(),i._lastCursorModelPosition=new xe.L(1,1),i._lastCursorViewPosition=new xe.L(1,1),i._renderResult=null,i._activeLineNumber=1,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"_readConfig",value:function(){var e=this._context.configuration.options;this._lineHeight=e.get(61);var t=e.get(62);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(86);var n=e.get(133);this._lineNumbersLeft=n.lineNumbersLeft,this._lineNumbersWidth=n.lineNumbersWidth}},{key:"dispose",value:function(){this._context.removeEventHandler(this),this._renderResult=null,(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){return this._readConfig(),!0}},{key:"onCursorStateChanged",value:function(e){var t=e.selections[0].getPosition();this._lastCursorViewPosition=t,this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);var n=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,n=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(n=!0),n}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"_getLineRenderLineNumber",value:function(e){var t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new xe.L(e,1));if(1!==t.column)return"";var n=t.lineNumber;return this._renderCustomLineNumbers?this._renderCustomLineNumbers(n):3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n||n%10===0?String(n):"":String(n)}},{key:"prepareRender",value:function(e){if(0!==this._renderLineNumbers){var t=T.IJ?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,o='<div class="'+n.CLASS_NAME+t+'" style="left:'+this._lineNumbersLeft+"px;width:"+this._lineNumbersWidth+'px;">',a=null;if(2===this._renderLineNumbers){a=new Array(r-i+1),this._lastCursorViewPosition.lineNumber>=i&&this._lastCursorViewPosition.lineNumber<=r&&(a[this._lastCursorViewPosition.lineNumber-i]=this._lastCursorModelPosition.lineNumber);for(var s=0,l=this._lastCursorViewPosition.lineNumber+1;l<=r;l++){var c=1!==this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new xe.L(l,1)).column;c||s++,l>=i&&(a[l-i]=c?0:s)}for(var u=0,d=this._lastCursorViewPosition.lineNumber-1;d>=i;d--){var h=1!==this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new xe.L(d,1)).column;h||u++,d<=r&&(a[d-i]=h?0:u)}}for(var f=this._context.viewModel.getLineCount(),p=[],g=i;g<=r;g++){var v=g-i;if(this._renderFinalNewline||g!==f||0!==this._context.viewModel.getLineLength(g)){var m=void 0;if(a){var y=a[v];m=this._lastCursorViewPosition.lineNumber===g?'<span class="relative-current-line-number">'.concat(y,"</span>"):y?String(y):""}else m=this._getLineRenderLineNumber(g);m?g===this._activeLineNumber?p[v]='<div class="active-line-number '+n.CLASS_NAME+t+'" style="left:'+this._lineNumbersLeft+"px;width:"+this._lineNumbersWidth+'px;">'+m+"</div>":p[v]=o+m+"</div>":p[v]=""}else p[v]=""}this._renderResult=p}else this._renderResult=null}},{key:"render",value:function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}]),n}(Xe);et.CLASS_NAME="line-numbers",(0,Je.Ic)((function(e,t){var n=e.getColor(Qe.hw);n&&t.addRule(".monaco-editor .line-numbers { color: ".concat(n,"; }"));var i=e.getColor(Qe.DD);i&&t.addRule(".monaco-editor .line-numbers.active-line-number { color: ".concat(i,"; }"))}));var tt=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n);var r=(i=t.call(this,e))._context.configuration.options,o=r.get(133);return i._canUseLayerHinting=!r.get(28),i._contentLeft=o.contentLeft,i._glyphMarginLeft=o.glyphMarginLeft,i._glyphMarginWidth=o.glyphMarginWidth,i._domNode=(0,q.X)(document.createElement("div")),i._domNode.setClassName(n.OUTER_CLASS_NAME),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._glyphMarginBackgroundDomNode=(0,q.X)(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(n.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"getDomNode",value:function(){return this._domNode}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options,n=t.get(133);return this._canUseLayerHinting=!t.get(28),this._contentLeft=n.contentLeft,this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0}},{key:"onScrollChanged",value:function(e){return(0,s.Z)((0,l.Z)(n.prototype),"onScrollChanged",this).call(this,e)||e.scrollTopChanged}},{key:"prepareRender",value:function(e){}},{key:"render",value:function(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);var n=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(n),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(n)}}]),n}(te);tt.CLASS_NAME="glyph-margin",tt.OUTER_CLASS_NAME="margin";var nt=n(3109),it=n(25022),rt=n(12905),ot=n(62458),at=function(){function e(t,n,i,r,o){(0,d.Z)(this,e),this._context=t,this.modelLineNumber=n,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=r,this.distanceToModelLineEnd=o,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}return(0,h.Z)(e,[{key:"prepareRender",value:function(e){var t=new xe.L(this.modelLineNumber,this.distanceToModelLineStart+1),n=new xe.L(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}},{key:"definePresentation",value:function(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}]),e}(),st=k.isFirefox,lt=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,r,o){var a;(0,d.Z)(this,n),(a=t.call(this,e))._primaryCursorPosition=new xe.L(1,1),a._primaryCursorVisibleRange=null,a._viewController=r,a._visibleRangeProvider=o,a._scrollLeft=0,a._scrollTop=0;var s=a._context.configuration.options,l=s.get(133);a._setAccessibilityOptions(s),a._contentLeft=l.contentLeft,a._contentWidth=l.contentWidth,a._contentHeight=l.height,a._fontInfo=s.get(46),a._lineHeight=s.get(61),a._emptySelectionClipboard=s.get(33),a._copyWithSyntaxHighlighting=s.get(21),a._visibleTextArea=null,a._selections=[new Y.Y(1,1,1,1)],a._modelSelections=[new Y.Y(1,1,1,1)],a._lastRenderPosition=null,a.textArea=(0,q.X)(document.createElement("textarea")),ne.write(a.textArea,6),a.textArea.setClassName("inputarea ".concat(it.S)),a.textArea.setAttribute("wrap","off"),a.textArea.setAttribute("autocorrect","off"),a.textArea.setAttribute("autocapitalize","off"),a.textArea.setAttribute("autocomplete","off"),a.textArea.setAttribute("spellcheck","false"),a.textArea.setAttribute("aria-label",a._getAriaLabel(s)),a.textArea.setAttribute("tabindex",String(s.get(114))),a.textArea.setAttribute("role","textbox"),a.textArea.setAttribute("aria-roledescription",y.NC("editor","editor")),a.textArea.setAttribute("aria-multiline","true"),a.textArea.setAttribute("aria-haspopup","false"),a.textArea.setAttribute("aria-autocomplete","both"),s.get(30)&&s.get(83)&&a.textArea.setAttribute("readonly","true"),a.textAreaCover=(0,q.X)(document.createElement("div")),a.textAreaCover.setPosition("absolute");var c={getLineCount:function(){return a._context.viewModel.getLineCount()},getLineMaxColumn:function(e){return a._context.viewModel.getLineMaxColumn(e)},getValueInRange:function(e,t){return a._context.viewModel.getValueInRange(e,t)}},u={getDataToCopy:function(){var e=a._context.viewModel.getPlainTextToCopy(a._modelSelections,a._emptySelectionClipboard,T.ED),t=a._context.viewModel.model.getEOL(),n=a._emptySelectionClipboard&&1===a._modelSelections.length&&a._modelSelections[0].isEmpty(),i=Array.isArray(e)?e:null,r=Array.isArray(e)?e.join(t):e,o=void 0,s=null;if(We.RA.forceCopyWithSyntaxHighlighting||a._copyWithSyntaxHighlighting&&r.length<65536){var l=a._context.viewModel.getRichTextToCopy(a._modelSelections,a._emptySelectionClipboard);l&&(o=l.html,s=l.mode)}return{isFromEmptySelection:n,multicursorText:i,text:r,html:o,mode:s}},getScreenReaderContent:function(e){if(1===a._accessibilitySupport){var t=a._selections[0];if(T.dz&&t.isEmpty()){var n=t.getStartPosition(),r=a._getWordBeforePosition(n);if(0===r.length&&(r=a._getCharacterBeforePosition(n)),r.length>0)return new $e.un(r,r.length,r.length,n,n)}if(k.isSafari&&!t.isEmpty()){var o="vscode-placeholder";return new $e.un(o,0,o.length,null,null)}return $e.un.EMPTY}if(k.isAndroid){var s=a._selections[0];if(s.isEmpty()){var l=s.getStartPosition(),u=a._getAndroidWordAtPosition(l),d=(0,i.Z)(u,2),h=d[0],f=d[1];if(h.length>0)return new $e.un(h,f,f,l,l)}return $e.un.EMPTY}return $e.ee.fromEditorSelection(e,c,a._selections[0],a._accessibilityPageSize,0===a._accessibilitySupport)},deduceModelPosition:function(e,t,n){return a._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,n)}},h=a._register(new We.Tj(a.textArea.domNode));return a._textAreaInput=a._register(new We.Fz(u,h,T.OS,k)),a._register(a._textAreaInput.onKeyDown((function(e){a._viewController.emitKeyDown(e)}))),a._register(a._textAreaInput.onKeyUp((function(e){a._viewController.emitKeyUp(e)}))),a._register(a._textAreaInput.onPaste((function(e){var t=!1,n=null,i=null;e.metadata&&(t=a._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,n="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,i=e.metadata.mode),a._viewController.paste(e.text,t,n,i)}))),a._register(a._textAreaInput.onCut((function(){a._viewController.cut()}))),a._register(a._textAreaInput.onType((function(e){e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?($e.al&&console.log(" => compositionType: <<".concat(e.text,">>, ").concat(e.replacePrevCharCnt,", ").concat(e.replaceNextCharCnt,", ").concat(e.positionDelta)),a._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):($e.al&&console.log(" => type: <<".concat(e.text,">>")),a._viewController.type(e.text))}))),a._register(a._textAreaInput.onSelectionChangeRequest((function(e){a._viewController.setSelection(e)}))),a._register(a._textAreaInput.onCompositionStart((function(e){var t=a.textArea.domNode,n=a._modelSelections[0],i=function(){var e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),i=e.lastIndexOf("\n"),r=e.substring(i+1),o=r.lastIndexOf("\t"),s=r.length-o-1,l=n.getStartPosition(),c=Math.min(l.column-1,s);return{distanceToModelLineStart:l.column-1-c,widthOfHiddenTextBefore:function(e,t){if(0===e.length)return 0;var n=document.createElement("div");n.style.position="absolute",n.style.top="-50000px",n.style.width="50000px";var i=document.createElement("span");(0,qe.N)(i,t),i.style.whiteSpace="pre",i.append(e),n.appendChild(i),document.body.appendChild(n);var r=i.offsetWidth;return document.body.removeChild(n),r}(r.substring(0,r.length-c),a._fontInfo)}}(),r=i.distanceToModelLineStart,o=i.widthOfHiddenTextBefore,s=function(){var e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),i=e.indexOf("\n"),r=-1===i?e:e.substring(0,i),o=r.indexOf("\t"),s=-1===o?r.length:r.length-o-1,l=n.getEndPosition(),c=Math.min(a._context.viewModel.model.getLineMaxColumn(l.lineNumber)-l.column,s);return{distanceToModelLineEnd:a._context.viewModel.model.getLineMaxColumn(l.lineNumber)-l.column-c}}().distanceToModelLineEnd;a._context.viewModel.revealRange("keyboard",!0,Ee.e.fromPositions(a._selections[0].getStartPosition()),0,1),a._visibleTextArea=new at(a._context,n.startLineNumber,r,o,s),a._visibleTextArea.prepareRender(a._visibleRangeProvider),a._render(),a.textArea.setClassName("inputarea ".concat(it.S," ime-input")),a._viewController.compositionStart(),a._context.viewModel.onCompositionStart()}))),a._register(a._textAreaInput.onCompositionUpdate((function(e){a._visibleTextArea&&(a._visibleTextArea.prepareRender(a._visibleRangeProvider),a._render())}))),a._register(a._textAreaInput.onCompositionEnd((function(){a._visibleTextArea=null,a._render(),a.textArea.setClassName("inputarea ".concat(it.S)),a._viewController.compositionEnd(),a._context.viewModel.onCompositionEnd()}))),a._register(a._textAreaInput.onFocus((function(){a._context.viewModel.setHasFocus(!0)}))),a._register(a._textAreaInput.onBlur((function(){a._context.viewModel.setHasFocus(!1)}))),a}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"_getAndroidWordAtPosition",value:function(e){for(var t=this._context.viewModel.getLineContent(e.lineNumber),n=(0,nt.u)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?'),i=!0,r=e.column,o=!0,a=e.column,s=0;s<50&&(i||o);){if(i&&r<=1&&(i=!1),i){var l=t.charCodeAt(r-2);0!==n.get(l)?i=!1:r--}if(o&&a>t.length&&(o=!1),o){var c=t.charCodeAt(a-1);0!==n.get(c)?o=!1:a++}s++}return[t.substring(r-1,a-1),e.column-r]}},{key:"_getWordBeforePosition",value:function(e){for(var t=this._context.viewModel.getLineContent(e.lineNumber),n=(0,nt.u)(this._context.configuration.options.get(119)),i=e.column,r=0;i>1;){var o=t.charCodeAt(i-2);if(0!==n.get(o)||r>50)return t.substring(i-1,e.column-1);r++,i--}return t.substring(0,e.column-1)}},{key:"_getCharacterBeforePosition",value:function(e){if(e.column>1){var t=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!Ye.ZG(t.charCodeAt(0)))return t}return""}},{key:"_getAriaLabel",value:function(e){return 1===e.get(2)?y.NC("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",T.IJ?"Shift+Alt+F1":"Alt+F1"):e.get(4)}},{key:"_setAccessibilityOptions",value:function(e){this._accessibilitySupport=e.get(2);var t=e.get(3);2===this._accessibilitySupport&&t===M.BH.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options,n=t.get(133);return this._setAccessibilityOptions(t),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._contentHeight=n.height,this._fontInfo=t.get(46),this._lineHeight=t.get(61),this._emptySelectionClipboard=t.get(33),this._copyWithSyntaxHighlighting=t.get(21),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("tabindex",String(t.get(114))),(e.hasChanged(30)||e.hasChanged(83))&&(t.get(30)&&t.get(83)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}},{key:"onCursorStateChanged",value:function(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}},{key:"onZonesChanged",value:function(e){return!0}},{key:"isFocused",value:function(){return this._textAreaInput.isFocused()}},{key:"focusTextArea",value:function(){this._textAreaInput.focusTextArea()}},{key:"getLastRenderData",value:function(){return this._lastRenderPosition}},{key:"setAriaOptions",value:function(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}},{key:"prepareRender",value:function(e){var t;this._primaryCursorPosition=new xe.L(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),null===(t=this._visibleTextArea)||void 0===t||t.prepareRender(e)}},{key:"render",value:function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()}},{key:"_render",value:function(){if(this._visibleTextArea){var e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,n=this._visibleTextArea.startPosition,i=this._visibleTextArea.endPosition;if(n&&i&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){var r=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,o=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart)),a=this._visibleTextArea.widthOfHiddenLineTextBefore,s=this._contentLeft+e.left-this._scrollLeft,l=t.left-e.left+1;if(s<this._contentLeft){var c=this._contentLeft-s;s+=c,a+=c,l-=c}l>this._contentWidth&&(l=this._contentWidth);var u=this._context.viewModel.getViewLineData(n.lineNumber),d=u.tokens.findTokenIndexAtOffset(n.column-1),h=d===u.tokens.findTokenIndexAtOffset(i.column-1),f=this._visibleTextArea.definePresentation(h?u.tokens.getPresentation(d):null);this.textArea.domNode.scrollTop=o*this._lineHeight,this.textArea.domNode.scrollLeft=a,this._doRender({lastRenderPosition:null,top:r,left:s,width:l,height:this._lineHeight,useCover:!1,color:(rt.RW.getColorMap()||[])[f.foreground],italic:f.italic,bold:f.bold,underline:f.underline,strikethrough:f.strikethrough})}}else if(this._primaryCursorVisibleRange){var p=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(p<this._contentLeft||p>this._contentLeft+this._contentWidth)this._renderAtTopLeft();else{var g=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(g<0||g>this._contentHeight)this._renderAtTopLeft();else if(T.dz){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:g,left:p,width:st?0:1,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;var v=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=v*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:g,left:p,width:st?0:1,height:st?0:1,useCover:!1})}}else this._renderAtTopLeft()}},{key:"_newlinecount",value:function(e){for(var t=0,n=-1;;){if(-1===(n=e.indexOf("\n",n+1)))break;t++}return t}},{key:"_renderAtTopLeft",value:function(){this._doRender({lastRenderPosition:null,top:0,left:0,width:st?0:1,height:st?0:1,useCover:!0})}},{key:"_doRender",value:function(e){this._lastRenderPosition=e.lastRenderPosition;var t=this.textArea,n=this.textAreaCover;(0,qe.N)(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?ot.Il.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration("".concat(e.underline?" underline":"").concat(e.strikethrough?" line-through":"")),n.setTop(e.useCover?e.top:0),n.setLeft(e.useCover?e.left:0),n.setWidth(e.useCover?e.width:0),n.setHeight(e.useCover?e.height:0);var i=this._context.configuration.options;i.get(52)?n.setClassName("monaco-editor-background textAreaCover "+tt.OUTER_CLASS_NAME):0!==i.get(62).renderType?n.setClassName("monaco-editor-background textAreaCover "+et.CLASS_NAME):n.setClassName("monaco-editor-background textAreaCover")}}]),n}(te);var ct,ut=n(79240),dt=function(){function e(t,n,i,r){(0,d.Z)(this,e),this.configuration=t,this.viewModel=n,this.userInputEvents=i,this.commandDelegate=r}return(0,h.Z)(e,[{key:"paste",value:function(e,t,n,i){this.commandDelegate.paste(e,t,n,i)}},{key:"type",value:function(e){this.commandDelegate.type(e)}},{key:"compositionType",value:function(e,t,n,i){this.commandDelegate.compositionType(e,t,n,i)}},{key:"compositionStart",value:function(){this.commandDelegate.startComposition()}},{key:"compositionEnd",value:function(){this.commandDelegate.endComposition()}},{key:"cut",value:function(){this.commandDelegate.cut()}},{key:"setSelection",value:function(e){ut.CoreNavigationCommands.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}},{key:"_validateViewColumn",value:function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new xe.L(e.lineNumber,t):e}},{key:"_hasMulticursorModifier",value:function(e){switch(this.configuration.options.get(72)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}},{key:"_hasNonMulticursorModifier",value:function(e){switch(this.configuration.options.get(72)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}},{key:"dispatchMouse",value:function(e){var t=this.configuration.options,n=T.IJ&&t.get(98),i=t.get(18);e.middleButton&&!n?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||i?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}},{key:"_usualArgs",value:function(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}},{key:"moveTo",value:function(e){ut.CoreNavigationCommands.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_moveToSelect",value:function(e){ut.CoreNavigationCommands.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_columnSelect",value:function(e,t,n){e=this._validateViewColumn(e),ut.CoreNavigationCommands.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:n})}},{key:"_createCursor",value:function(e,t){e=this._validateViewColumn(e),ut.CoreNavigationCommands.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}},{key:"_lastCursorMoveToSelect",value:function(e){ut.CoreNavigationCommands.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_wordSelect",value:function(e){ut.CoreNavigationCommands.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_wordSelectDrag",value:function(e){ut.CoreNavigationCommands.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_lastCursorWordSelect",value:function(e){ut.CoreNavigationCommands.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_lineSelect",value:function(e){ut.CoreNavigationCommands.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_lineSelectDrag",value:function(e){ut.CoreNavigationCommands.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_lastCursorLineSelect",value:function(e){ut.CoreNavigationCommands.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_lastCursorLineSelectDrag",value:function(e){ut.CoreNavigationCommands.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}},{key:"_selectAll",value:function(){ut.CoreNavigationCommands.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}},{key:"_convertViewToModelPosition",value:function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}},{key:"emitKeyDown",value:function(e){this.userInputEvents.emitKeyDown(e)}},{key:"emitKeyUp",value:function(e){this.userInputEvents.emitKeyUp(e)}},{key:"emitContextMenu",value:function(e){this.userInputEvents.emitContextMenu(e)}},{key:"emitMouseMove",value:function(e){this.userInputEvents.emitMouseMove(e)}},{key:"emitMouseLeave",value:function(e){this.userInputEvents.emitMouseLeave(e)}},{key:"emitMouseUp",value:function(e){this.userInputEvents.emitMouseUp(e)}},{key:"emitMouseDown",value:function(e){this.userInputEvents.emitMouseDown(e)}},{key:"emitMouseDrag",value:function(e){this.userInputEvents.emitMouseDrag(e)}},{key:"emitMouseDrop",value:function(e){this.userInputEvents.emitMouseDrop(e)}},{key:"emitMouseDropCanceled",value:function(){this.userInputEvents.emitMouseDropCanceled()}},{key:"emitMouseWheel",value:function(e){this.userInputEvents.emitMouseWheel(e)}}]),e}(),ht=function(){function e(t){(0,d.Z)(this,e),this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=t}return(0,h.Z)(e,[{key:"emitKeyDown",value:function(e){var t;null===(t=this.onKeyDown)||void 0===t||t.call(this,e)}},{key:"emitKeyUp",value:function(e){var t;null===(t=this.onKeyUp)||void 0===t||t.call(this,e)}},{key:"emitContextMenu",value:function(e){var t;null===(t=this.onContextMenu)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseMove",value:function(e){var t;null===(t=this.onMouseMove)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseLeave",value:function(e){var t;null===(t=this.onMouseLeave)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseDown",value:function(e){var t;null===(t=this.onMouseDown)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseUp",value:function(e){var t;null===(t=this.onMouseUp)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseDrag",value:function(e){var t;null===(t=this.onMouseDrag)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseDrop",value:function(e){var t;null===(t=this.onMouseDrop)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}},{key:"emitMouseDropCanceled",value:function(){var e;null===(e=this.onMouseDropCanceled)||void 0===e||e.call(this)}},{key:"emitMouseWheel",value:function(e){var t;null===(t=this.onMouseWheel)||void 0===t||t.call(this,e)}},{key:"_convertViewToModelMouseEvent",value:function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}},{key:"_convertViewToModelMouseTarget",value:function(t){return e.convertViewToModelMouseTarget(t,this._coordinatesConverter)}}],[{key:"convertViewToModelMouseTarget",value:function(e,t){var n=Object.assign({},e);return n.position&&(n.position=t.convertViewPositionToModelPosition(n.position)),n.range&&(n.range=t.convertViewRangeToModelRange(n.range)),n}}]),e}(),ft=n(1293),pt=function(){function e(t){(0,d.Z)(this,e),this._createLine=t,this._set(1,[])}return(0,h.Z)(e,[{key:"flush",value:function(){this._set(1,[])}},{key:"_set",value:function(e,t){this._lines=t,this._rendLineNumberStart=e}},{key:"_get",value:function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}},{key:"getStartLineNumber",value:function(){return this._rendLineNumberStart}},{key:"getEndLineNumber",value:function(){return this._rendLineNumberStart+this._lines.length-1}},{key:"getCount",value:function(){return this._lines.length}},{key:"getLine",value:function(e){var t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}},{key:"onLinesDeleted",value:function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),i=this.getEndLineNumber();if(t<n){var r=t-e+1;return this._rendLineNumberStart-=r,null}if(e>i)return null;for(var o=0,a=0,s=n;s<=i;s++){var l=s-this._rendLineNumberStart;e<=s&&s<=t&&(0===a?(o=l,a=1):a++)}if(e<n){var c=0;c=t<n?t-e+1:n-e,this._rendLineNumberStart-=c}return this._lines.splice(o,a)}},{key:"onLinesChanged",value:function(e,t){var n=e+t-1;if(0===this.getCount())return!1;for(var i=this.getStartLineNumber(),r=this.getEndLineNumber(),o=!1,a=e;a<=n;a++)a>=i&&a<=r&&(this._lines[a-this._rendLineNumberStart].onContentChanged(),o=!0);return o}},{key:"onLinesInserted",value:function(e,t){if(0===this.getCount())return null;var n=t-e+1,i=this.getStartLineNumber(),r=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=n,null;if(e>r)return null;if(n+e>r)return this._lines.splice(e-this._rendLineNumberStart,r-e+1);for(var o=[],a=0;a<n;a++)o[a]=this._createLine();var s=e-this._rendLineNumberStart,l=this._lines.slice(0,s),c=this._lines.slice(s,this._lines.length-n),u=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=l.concat(o).concat(c),u}},{key:"onTokensChanged",value:function(e){if(0===this.getCount())return!1;for(var t=this.getStartLineNumber(),n=this.getEndLineNumber(),i=!1,r=0,o=e.length;r<o;r++){var a=e[r];if(!(a.toLineNumber<t||a.fromLineNumber>n))for(var s=Math.max(t,a.fromLineNumber),l=Math.min(n,a.toLineNumber),c=s;c<=l;c++){var u=c-this._rendLineNumberStart;this._lines[u].onTokensChanged(),i=!0}}return i}}]),e}(),gt=function(){function e(t){var n=this;(0,d.Z)(this,e),this._host=t,this.domNode=this._createDomNode(),this._linesCollection=new pt((function(){return n._host.createVisibleLine()}))}return(0,h.Z)(e,[{key:"_createDomNode",value:function(){var e=(0,q.X)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}},{key:"onConfigurationChanged",value:function(e){return!!e.hasChanged(133)}},{key:"onFlushed",value:function(e){return this._linesCollection.flush(),!0}},{key:"onLinesChanged",value:function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}},{key:"onLinesDeleted",value:function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;n<i;n++){var r=t[n].getDomNode();r&&this.domNode.domNode.removeChild(r)}return!0}},{key:"onLinesInserted",value:function(e){var t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;n<i;n++){var r=t[n].getDomNode();r&&this.domNode.domNode.removeChild(r)}return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged}},{key:"onTokensChanged",value:function(e){return this._linesCollection.onTokensChanged(e.ranges)}},{key:"onZonesChanged",value:function(e){return!0}},{key:"getStartLineNumber",value:function(){return this._linesCollection.getStartLineNumber()}},{key:"getEndLineNumber",value:function(){return this._linesCollection.getEndLineNumber()}},{key:"getVisibleLine",value:function(e){return this._linesCollection.getLine(e)}},{key:"renderLines",value:function(e){var t=this._linesCollection._get(),n=new vt(this.domNode.domNode,this._host,e),i={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},r=n.render(i,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(r.rendLineNumberStart,r.lines)}}]),e}(),vt=function(){function e(t,n,i){(0,d.Z)(this,e),this.domNode=t,this.host=n,this.viewportData=i}return(0,h.Z)(e,[{key:"render",value:function(e,t,n,i){var r={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(r.rendLineNumberStart+r.linesLength-1<t||n<r.rendLineNumberStart){r.rendLineNumberStart=t,r.linesLength=n-t+1,r.lines=[];for(var o=t;o<=n;o++)r.lines[o-t]=this.host.createVisibleLine();return this._finishRendering(r,!0,i),r}if(this._renderUntouchedLines(r,Math.max(t-r.rendLineNumberStart,0),Math.min(n-r.rendLineNumberStart,r.linesLength-1),i,t),r.rendLineNumberStart>t){var a=t,s=Math.min(n,r.rendLineNumberStart-1);a<=s&&(this._insertLinesBefore(r,a,s,i,t),r.linesLength+=s-a+1)}else if(r.rendLineNumberStart<t){var l=Math.min(r.linesLength,t-r.rendLineNumberStart);l>0&&(this._removeLinesBefore(r,l),r.linesLength-=l)}if(r.rendLineNumberStart=t,r.rendLineNumberStart+r.linesLength-1<n){var c=r.rendLineNumberStart+r.linesLength,u=n;c<=u&&(this._insertLinesAfter(r,c,u,i,t),r.linesLength+=u-c+1)}else if(r.rendLineNumberStart+r.linesLength-1>n){var d=Math.max(0,n-r.rendLineNumberStart+1),h=r.linesLength-1-d+1;h>0&&(this._removeLinesAfter(r,h),r.linesLength-=h)}return this._finishRendering(r,!1,i),r}},{key:"_renderUntouchedLines",value:function(e,t,n,i,r){for(var o=e.rendLineNumberStart,a=e.lines,s=t;s<=n;s++){var l=o+s;a[s].layoutLine(l,i[l-r])}}},{key:"_insertLinesBefore",value:function(e,t,n,i,r){for(var o=[],a=0,s=t;s<=n;s++)o[a++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)}},{key:"_removeLinesBefore",value:function(e,t){for(var n=0;n<t;n++){var i=e.lines[n].getDomNode();i&&this.domNode.removeChild(i)}e.lines.splice(0,t)}},{key:"_insertLinesAfter",value:function(e,t,n,i,r){for(var o=[],a=0,s=t;s<=n;s++)o[a++]=this.host.createVisibleLine();e.lines=e.lines.concat(o)}},{key:"_removeLinesAfter",value:function(e,t){for(var n=e.linesLength-t,i=0;i<t;i++){var r=e.lines[n+i].getDomNode();r&&this.domNode.removeChild(r)}e.lines.splice(n,t)}},{key:"_finishRenderingNewLines",value:function(t,n,i,r){e._ttPolicy&&(i=e._ttPolicy.createHTML(i));var o=this.domNode.lastChild;n||!o?this.domNode.innerHTML=i:o.insertAdjacentHTML("afterend",i);for(var a=this.domNode.lastChild,s=t.linesLength-1;s>=0;s--){var l=t.lines[s];r[s]&&(l.setDomNode(a),a=a.previousSibling)}}},{key:"_finishRenderingInvalidLines",value:function(t,n,i){var r=document.createElement("div");e._ttPolicy&&(n=e._ttPolicy.createHTML(n)),r.innerHTML=n;for(var o=0;o<t.linesLength;o++){var a=t.lines[o];if(i[o]){var s=r.firstChild,l=a.getDomNode();l.parentNode.replaceChild(s,l),a.setDomNode(s)}}}},{key:"_finishRendering",value:function(t,n,i){var r=e._sb,o=t.linesLength,a=t.lines,s=t.rendLineNumberStart,l=[];r.reset();for(var c=!1,u=0;u<o;u++){var d=a[u];if(l[u]=!1,!d.getDomNode())d.renderLine(u+s,i[u],this.viewportData,r)&&(l[u]=!0,c=!0)}c&&this._finishRenderingNewLines(t,n,r.build(),l),r.reset();for(var h=!1,f=[],p=0;p<o;p++){var g=a[p];if(f[p]=!1,!l[p])g.renderLine(p+s,i[p],this.viewportData,r)&&(f[p]=!0,h=!0)}h&&this._finishRenderingInvalidLines(t,r.build(),f)}}]),e}();vt._ttPolicy=null===(ct=window.trustedTypes)||void 0===ct?void 0:ct.createPolicy("editorViewLayer",{createHTML:function(e){return e}}),vt._sb=(0,ft.l$)(1e5);var mt=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this,e))._visibleLines=new gt((0,a.Z)(i)),i.domNode=i._visibleLines.domNode,i._dynamicOverlays=[],i._isFocused=!1,i.domNode.setClassName("view-overlays"),i}return(0,h.Z)(n,[{key:"shouldRender",value:function(){if((0,s.Z)((0,l.Z)(n.prototype),"shouldRender",this).call(this))return!0;for(var e=0,t=this._dynamicOverlays.length;e<t;e++){if(this._dynamicOverlays[e].shouldRender())return!0}return!1}},{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this);for(var e=0,t=this._dynamicOverlays.length;e<t;e++){this._dynamicOverlays[e].dispose()}this._dynamicOverlays=[]}},{key:"getDomNode",value:function(){return this.domNode}},{key:"createVisibleLine",value:function(){return new yt(this._context.configuration,this._dynamicOverlays)}},{key:"addDynamicOverlay",value:function(e){this._dynamicOverlays.push(e)}},{key:"onConfigurationChanged",value:function(e){this._visibleLines.onConfigurationChanged(e);for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++){this._visibleLines.getVisibleLine(i).onConfigurationChanged(e)}return!0}},{key:"onFlushed",value:function(e){return this._visibleLines.onFlushed(e)}},{key:"onFocusChanged",value:function(e){return this._isFocused=e.isFocused,!0}},{key:"onLinesChanged",value:function(e){return this._visibleLines.onLinesChanged(e)}},{key:"onLinesDeleted",value:function(e){return this._visibleLines.onLinesDeleted(e)}},{key:"onLinesInserted",value:function(e){return this._visibleLines.onLinesInserted(e)}},{key:"onScrollChanged",value:function(e){return this._visibleLines.onScrollChanged(e)||!0}},{key:"onTokensChanged",value:function(e){return this._visibleLines.onTokensChanged(e)}},{key:"onZonesChanged",value:function(e){return this._visibleLines.onZonesChanged(e)}},{key:"prepareRender",value:function(e){for(var t=this._dynamicOverlays.filter((function(e){return e.shouldRender()})),n=0,i=t.length;n<i;n++){var r=t[n];r.prepareRender(e),r.onDidRender()}}},{key:"render",value:function(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}},{key:"_viewOverlaysRender",value:function(e){this._visibleLines.renderLines(e.viewportData)}}]),n}(te),yt=function(){function e(t,n){(0,d.Z)(this,e),this._configuration=t,this._lineHeight=this._configuration.options.get(61),this._dynamicOverlays=n,this._domNode=null,this._renderedContent=null}return(0,h.Z)(e,[{key:"getDomNode",value:function(){return this._domNode?this._domNode.domNode:null}},{key:"setDomNode",value:function(e){this._domNode=(0,q.X)(e)}},{key:"onContentChanged",value:function(){}},{key:"onTokensChanged",value:function(){}},{key:"onConfigurationChanged",value:function(e){this._lineHeight=this._configuration.options.get(61)}},{key:"renderLine",value:function(e,t,n,i){for(var r="",o=0,a=this._dynamicOverlays.length;o<a;o++){r+=this._dynamicOverlays[o].render(n.startLineNumber,e)}return this._renderedContent!==r&&(this._renderedContent=r,i.appendASCIIString('<div style="position:absolute;top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;width:100%;height:"),i.appendASCIIString(String(this._lineHeight)),i.appendASCIIString('px;">'),i.appendASCIIString(r),i.appendASCIIString("</div>"),!0)}},{key:"layoutLine",value:function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}]),e}(),_t=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n);var r=(i=t.call(this,e))._context.configuration.options.get(133);return i._contentWidth=r.contentWidth,i.domNode.setHeight(0),i}return(0,h.Z)(n,[{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options.get(133);return this._contentWidth=t.contentWidth,(0,s.Z)((0,l.Z)(n.prototype),"onConfigurationChanged",this).call(this,e)||!0}},{key:"onScrollChanged",value:function(e){return(0,s.Z)((0,l.Z)(n.prototype),"onScrollChanged",this).call(this,e)||e.scrollWidthChanged}},{key:"_viewOverlaysRender",value:function(e){(0,s.Z)((0,l.Z)(n.prototype),"_viewOverlaysRender",this).call(this,e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}]),n}(mt),bt=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n);var r=(i=t.call(this,e))._context.configuration.options,o=r.get(133);return i._contentLeft=o.contentLeft,i.domNode.setClassName("margin-view-overlays"),i.domNode.setWidth(1),(0,qe.N)(i.domNode,r.get(46)),i}return(0,h.Z)(n,[{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options;(0,qe.N)(this.domNode,t.get(46));var i=t.get(133);return this._contentLeft=i.contentLeft,(0,s.Z)((0,l.Z)(n.prototype),"onConfigurationChanged",this).call(this,e)||!0}},{key:"onScrollChanged",value:function(e){return(0,s.Z)((0,l.Z)(n.prototype),"onScrollChanged",this).call(this,e)||e.scrollHeightChanged}},{key:"_viewOverlaysRender",value:function(e){(0,s.Z)((0,l.Z)(n.prototype),"_viewOverlaysRender",this).call(this,e);var t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}]),n}(mt),Ct=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this._coordinateBrand=void 0,this.top=t,this.left=n})),St=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i){var r;return(0,d.Z)(this,n),(r=t.call(this,e))._viewDomNode=i,r._widgets={},r.domNode=(0,q.X)(document.createElement("div")),ne.write(r.domNode,1),r.domNode.setClassName("contentWidgets"),r.domNode.setPosition("absolute"),r.domNode.setTop(0),r.overflowingContentWidgetsDomNode=(0,q.X)(document.createElement("div")),ne.write(r.overflowingContentWidgetsDomNode,2),r.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),r}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this),this._widgets={}}},{key:"onConfigurationChanged",value:function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].onConfigurationChanged(e)}return!0}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onLineMappingChanged",value:function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].onLineMappingChanged(e)}return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return!0}},{key:"onZonesChanged",value:function(e){return!0}},{key:"addWidget",value:function(e){var t=new wt(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}},{key:"setWidgetPosition",value:function(e,t,n,i){this._widgets[e.getId()].setPosition(t,n,i),this.setShouldRender()}},{key:"removeWidget",value:function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t];delete this._widgets[t];var i=n.domNode.domNode;i.parentNode.removeChild(i),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}},{key:"shouldSuppressMouseDownOnWidget",value:function(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}},{key:"onBeforeRender",value:function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].onBeforeRender(e)}}},{key:"prepareRender",value:function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].prepareRender(e)}}},{key:"render",value:function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].render(e)}}}]),n}(te),wt=function(){function e(t,n,i){(0,d.Z)(this,e),this._context=t,this._viewDomNode=n,this._actual=i,this.domNode=(0,q.X)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;var r=this._context.configuration.options,o=r.get(133);this._fixedOverflowWidgets=r.get(38),this._contentWidth=o.contentWidth,this._contentLeft=o.contentLeft,this._lineHeight=r.get(61),this._range=null,this._viewRange=null,this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}return(0,h.Z)(e,[{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options;if(this._lineHeight=t.get(61),e.hasChanged(133)){var n=t.get(133);this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._maxWidth=this._getMaxWidth()}}},{key:"onLineMappingChanged",value:function(e){this._setPosition(this._range,this._affinity)}},{key:"_setPosition",value:function(e,t){var n;if(this._range=e,this._viewRange=null,this._affinity=t,this._range){var i=this._context.viewModel.model.validateRange(this._range);(this._context.viewModel.coordinatesConverter.modelPositionIsVisible(i.getStartPosition())||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(i.getEndPosition()))&&(this._viewRange=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(i,null!==(n=this._affinity)&&void 0!==n?n:void 0))}}},{key:"_getMaxWidth",value:function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth:this._contentWidth}},{key:"setPosition",value:function(e,t,n){this._setPosition(e,n),this._preference=t,this._viewRange&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}},{key:"_layoutBoxInViewport",value:function(e,t,n,i,r){var o=e.top,a=o,s=t.top+this._lineHeight,l=o-i,c=a>=i,u=s,d=r.viewportHeight-s>=i,h=e.left,f=t.left;return h+n>r.scrollLeft+r.viewportWidth&&(h=r.scrollLeft+r.viewportWidth-n),f+n>r.scrollLeft+r.viewportWidth&&(f=r.scrollLeft+r.viewportWidth-n),h<r.scrollLeft&&(h=r.scrollLeft),f<r.scrollLeft&&(f=r.scrollLeft),{fitsAbove:c,aboveTop:l,aboveLeft:h,fitsBelow:d,belowTop:u,belowLeft:f}}},{key:"_layoutHorizontalSegmentInPage",value:function(e,t,n,i){var r=Math.max(0,t.left-i),o=Math.min(t.left+t.width+i,e.width),a=t.left+n-_.StandardWindow.scrollX;if(a+i>o){var s=a-(o-i);a-=s,n-=s}if(a<r){var l=a-r;a-=l,n-=l}return[n,a]}},{key:"_layoutBoxInPage",value:function(e,t,n,r,o){var a=e.top-r,s=t.top+this._lineHeight,l=_.getDomNodePagePosition(this._viewDomNode.domNode),c=l.top+a-_.StandardWindow.scrollY,u=l.top+s-_.StandardWindow.scrollY,d=_.getClientArea(document.body),h=this._layoutHorizontalSegmentInPage(d,l,e.left-o.scrollLeft+this._contentLeft,n),f=(0,i.Z)(h,2),p=f[0],g=f[1],v=this._layoutHorizontalSegmentInPage(d,l,t.left-o.scrollLeft+this._contentLeft,n),m=(0,i.Z)(v,2),y=m[0],b=m[1],C=c>=22,S=u+r<=d.height-22;return this._fixedOverflowWidgets?{fitsAbove:C,aboveTop:Math.max(c,22),aboveLeft:g,fitsBelow:S,belowTop:u,belowLeft:b}:{fitsAbove:C,aboveTop:a,aboveLeft:p,fitsBelow:S,belowTop:s,belowLeft:y}}},{key:"_prepareRenderWidgetAtExactPositionOverflowing",value:function(e){return new Ct(e.top,e.left+this._contentLeft)}},{key:"_getTopAndBottomLeft",value:function(e){if(!this._viewRange)return[null,null];var t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||0===t.length)return[null,null];var n,i=t[0],r=t[0],a=(0,o.Z)(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;s.lineNumber<i.lineNumber&&(i=s),s.lineNumber>r.lineNumber&&(r=s)}}catch(_){a.e(_)}finally{a.f()}var l,c=1073741824,u=(0,o.Z)(i.ranges);try{for(u.s();!(l=u.n()).done;){var d=l.value;d.left<c&&(c=d.left)}}catch(_){u.e(_)}finally{u.f()}var h,f=1073741824,p=(0,o.Z)(r.ranges);try{for(p.s();!(h=p.n()).done;){var g=h.value;g.left<f&&(f=g.left)}}catch(_){p.e(_)}finally{p.f()}var v=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.scrollTop,m=new Ct(v,c),y=e.getVerticalOffsetForLineNumber(r.lineNumber)-e.scrollTop;return[m,new Ct(y,f)]}},{key:"_prepareRenderWidget",value:function(e){if(!this._preference||0===this._preference.length)return null;var t,n=this._getTopAndBottomLeft(e),r=(0,i.Z)(n,2),a=r[0],s=r[1];if(!a||!s)return null;if(-1===this._cachedDomNodeOffsetWidth||-1===this._cachedDomNodeOffsetHeight){var l=null;if("function"===typeof this._actual.beforeRender&&(l=kt(this._actual.beforeRender,this._actual)),l)this._cachedDomNodeOffsetWidth=l.width,this._cachedDomNodeOffsetHeight=l.height;else{var c=this.domNode.domNode.getBoundingClientRect();this._cachedDomNodeOffsetWidth=Math.round(c.width),this._cachedDomNodeOffsetHeight=Math.round(c.height)}}t=this.allowEditorOverflow?this._layoutBoxInPage(a,s,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e):this._layoutBoxInViewport(a,s,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e);for(var u=1;u<=2;u++){var d,h=(0,o.Z)(this._preference);try{for(h.s();!(d=h.n()).done;){var f=d.value;if(1===f){if(!t)return null;if(2===u||t.fitsAbove)return{coordinate:new Ct(t.aboveTop,t.aboveLeft),position:1}}else{if(2!==f)return this.allowEditorOverflow?{coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(a),position:0}:{coordinate:a,position:0};if(!t)return null;if(2===u||t.fitsBelow)return{coordinate:new Ct(t.belowTop,t.belowLeft),position:2}}}}catch(p){h.e(p)}finally{h.f()}}return null}},{key:"onBeforeRender",value:function(e){this._viewRange&&this._preference&&(this._viewRange.endLineNumber<e.startLineNumber||this._viewRange.startLineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}},{key:"prepareRender",value:function(e){this._renderData=this._prepareRenderWidget(e)}},{key:"render",value:function(e){if(!this._renderData)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),void("function"===typeof this._actual.afterRender&&kt(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"===typeof this._actual.afterRender&&kt(this._actual.afterRender,this._actual,this._renderData.position)}}]),e}();function kt(e,t){try{for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return e.call.apply(e,[t].concat(i))}catch(ct){return null}}var xt=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n),(i=t.call(this))._context=e;var r=i._context.configuration.options,o=r.get(133);return i._lineHeight=r.get(61),i._renderLineHighlight=r.get(87),i._renderLineHighlightOnlyWhenFocus=r.get(88),i._contentLeft=o.contentLeft,i._contentWidth=o.contentWidth,i._selectionIsEmpty=!0,i._focused=!1,i._cursorLineNumbers=[1],i._selections=[new Y.Y(1,1,1,1)],i._renderData=null,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"_readFromSelections",value:function(){var e=!1,t=this._selections.map((function(e){return e.positionLineNumber}));t.sort((function(e,t){return e-t})),x.fS(this._cursorLineNumbers,t)||(this._cursorLineNumbers=t,e=!0);var n=this._selections.every((function(e){return e.isEmpty()}));return this._selectionIsEmpty!==n&&(this._selectionIsEmpty=n,e=!0),e}},{key:"onThemeChanged",value:function(e){return this._readFromSelections()}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options,n=t.get(133);return this._lineHeight=t.get(61),this._renderLineHighlight=t.get(87),this._renderLineHighlightOnlyWhenFocus=t.get(88),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,!0}},{key:"onCursorStateChanged",value:function(e){return this._selections=e.selections,this._readFromSelections()}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollWidthChanged||e.scrollTopChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"onFocusChanged",value:function(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}},{key:"prepareRender",value:function(e){if(this._shouldRenderThis()){for(var t=this._renderOne(e),n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,r=this._cursorLineNumbers.length,o=0,a=[],s=n;s<=i;s++){for(var l=s-n;o<r&&this._cursorLineNumbers[o]<s;)o++;o<r&&this._cursorLineNumbers[o]===s?a[l]=t:a[l]=""}this._renderData=a}else this._renderData=null}},{key:"render",value:function(e,t){if(!this._renderData)return"";var n=t-e;return n>=this._renderData.length?"":this._renderData[n]}},{key:"_shouldRenderInMargin",value:function(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}},{key:"_shouldRenderInContent",value:function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}]),n}(Xe),Et=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n,[{key:"_renderOne",value:function(e){var t="current-line"+(this._shouldRenderOther()?" current-line-both":"");return'<div class="'.concat(t,'" style="width:').concat(Math.max(e.scrollWidth,this._contentWidth),"px; height:").concat(this._lineHeight,'px;"></div>')}},{key:"_shouldRenderThis",value:function(){return this._shouldRenderInContent()}},{key:"_shouldRenderOther",value:function(){return this._shouldRenderInMargin()}}]),n}(xt),Tt=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n,[{key:"_renderOne",value:function(e){var t="current-line"+(this._shouldRenderInMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"");return'<div class="'.concat(t,'" style="width:').concat(this._contentLeft,"px; height:").concat(this._lineHeight,'px;"></div>')}},{key:"_shouldRenderThis",value:function(){return!0}},{key:"_shouldRenderOther",value:function(){return this._shouldRenderInContent()}}]),n}(xt);(0,Je.Ic)((function(e,t){var n=e.getColor(Qe.Kh);if(n&&(t.addRule(".monaco-editor .view-overlays .current-line { background-color: ".concat(n,"; }")),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: ".concat(n,"; border: none; }"))),!n||n.isTransparent()||e.defines(Qe.Mm)){var i=e.getColor(Qe.Mm);i&&(t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid ".concat(i,"; }")),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ".concat(i,"; }")),(0,he.c3)(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}}));var Nt=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n),(i=t.call(this))._context=e;var r=i._context.configuration.options;return i._lineHeight=r.get(61),i._typicalHalfwidthCharacterWidth=r.get(46).typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),this._renderResult=null,(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged||e.scrollWidthChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"prepareRender",value:function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,r=0,o=t.length;r<o;r++){var a=t[r];a.options.className&&(n[i++]=a)}n=n.sort((function(e,t){if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;var n=e.options.className,i=t.options.className;return n<i?-1:n>i?1:Ee.e.compareRangesUsingStarts(e.range,t.range)}));for(var s=e.visibleRange.startLineNumber,l=e.visibleRange.endLineNumber,c=[],u=s;u<=l;u++){c[u-s]=""}this._renderWholeLineDecorations(e,n,c),this._renderNormalDecorations(e,n,c),this._renderResult=c}},{key:"_renderWholeLineDecorations",value:function(e,t,n){for(var i=String(this._lineHeight),r=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,a=0,s=t.length;a<s;a++){var l=t[a];if(l.options.isWholeLine)for(var c='<div class="cdr '+l.options.className+'" style="left:0;width:100%;height:'+i+'px;"></div>',u=Math.max(l.range.startLineNumber,r),d=Math.min(l.range.endLineNumber,o),h=u;h<=d;h++){n[h-r]+=c}}}},{key:"_renderNormalDecorations",value:function(e,t,n){for(var i=String(this._lineHeight),r=e.visibleRange.startLineNumber,o=null,a=!1,s=null,l=0,c=t.length;l<c;l++){var u=t[l];if(!u.options.isWholeLine){var d=u.options.className,h=Boolean(u.options.showIfCollapsed),f=u.range;h&&1===f.endColumn&&f.endLineNumber!==f.startLineNumber&&(f=new Ee.e(f.startLineNumber,f.startColumn,f.endLineNumber-1,this._context.viewModel.getLineMaxColumn(f.endLineNumber-1))),o===d&&a===h&&Ee.e.areIntersectingOrTouching(s,f)?s=Ee.e.plusRange(s,f):(null!==o&&this._renderNormalDecoration(e,s,o,a,i,r,n),o=d,a=h,s=f)}}null!==o&&this._renderNormalDecoration(e,s,o,a,i,r,n)}},{key:"_renderNormalDecoration",value:function(e,t,n,i,r,o,a){var s=e.linesVisibleRangesForRange(t,"findMatch"===n);if(s)for(var l=0,c=s.length;l<c;l++){var u=s[l];if(!u.outsideRenderedLine){var d=u.lineNumber-o;if(i&&1===u.ranges.length){var h=u.ranges[0];if(h.width<this._typicalHalfwidthCharacterWidth){var f=Math.round(h.left+h.width/2),p=Math.max(0,Math.round(f-this._typicalHalfwidthCharacterWidth/2));u.ranges[0]=new oe(p,this._typicalHalfwidthCharacterWidth)}}for(var g=0,v=u.ranges.length;g<v;g++){var m=u.ranges[g],y='<div class="cdr '+n+'" style="left:'+String(m.left)+"px;width:"+String(m.width)+"px;height:"+r+'px;"></div>';a[d]+=y}}}}},{key:"render",value:function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}]),n}(Xe),It=n(27338),Dt=n(32379),Lt=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r,o){var a;(0,d.Z)(this,n);var s=(a=t.call(this,e))._context.configuration.options,l=s.get(94),c=s.get(69),u=s.get(36),h=s.get(97),f={listenOnDomNode:r.domNode,className:"editor-scrollable "+(0,Je.m6)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:l.vertical,horizontal:l.horizontal,verticalHasArrows:l.verticalHasArrows,horizontalHasArrows:l.horizontalHasArrows,verticalScrollbarSize:l.verticalScrollbarSize,verticalSliderSize:l.verticalSliderSize,horizontalScrollbarSize:l.horizontalScrollbarSize,horizontalSliderSize:l.horizontalSliderSize,handleMouseWheel:l.handleMouseWheel,alwaysConsumeMouseWheel:l.alwaysConsumeMouseWheel,arrowSize:l.arrowSize,mouseWheelScrollSensitivity:c,fastScrollSensitivity:u,scrollPredominantAxis:h,scrollByPage:l.scrollByPage};a.scrollbar=a._register(new It.$Z(i.domNode,f,a._context.viewLayout.getScrollable())),ne.write(a.scrollbar.getDomNode(),5),a.scrollbarDomNode=(0,q.X)(a.scrollbar.getDomNode()),a.scrollbarDomNode.setPosition("absolute"),a._setLayout();var p=function(e,t,n){var i={};if(t){var r=e.scrollTop;r&&(i.scrollTop=a._context.viewLayout.getCurrentScrollTop()+r,e.scrollTop=0)}if(n){var o=e.scrollLeft;o&&(i.scrollLeft=a._context.viewLayout.getCurrentScrollLeft()+o,e.scrollLeft=0)}a._context.viewModel.viewLayout.setScrollPosition(i,1)};return a._register(_.addDisposableListener(r.domNode,"scroll",(function(e){return p(r.domNode,!0,!0)}))),a._register(_.addDisposableListener(i.domNode,"scroll",(function(e){return p(i.domNode,!0,!1)}))),a._register(_.addDisposableListener(o.domNode,"scroll",(function(e){return p(o.domNode,!0,!1)}))),a._register(_.addDisposableListener(a.scrollbarDomNode.domNode,"scroll",(function(e){return p(a.scrollbarDomNode.domNode,!0,!1)}))),a}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"_setLayout",value:function(){var e=this._context.configuration.options,t=e.get(133);this.scrollbarDomNode.setLeft(t.contentLeft),"right"===e.get(67).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}},{key:"getOverviewRulerLayoutInfo",value:function(){return this.scrollbar.getOverviewRulerLayoutInfo()}},{key:"getDomNode",value:function(){return this.scrollbarDomNode}},{key:"delegateVerticalScrollbarPointerDown",value:function(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}},{key:"onConfigurationChanged",value:function(e){if(e.hasChanged(94)||e.hasChanged(69)||e.hasChanged(36)){var t=this._context.configuration.options,n=t.get(94),i=t.get(69),r=t.get(36),o=t.get(97),a={vertical:n.vertical,horizontal:n.horizontal,verticalScrollbarSize:n.verticalScrollbarSize,horizontalScrollbarSize:n.horizontalScrollbarSize,scrollByPage:n.scrollByPage,handleMouseWheel:n.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:r,scrollPredominantAxis:o};this.scrollbar.updateOptions(a)}return e.hasChanged(133)&&this._setLayout(),!0}},{key:"onScrollChanged",value:function(e){return!0}},{key:"onThemeChanged",value:function(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,Je.m6)(this._context.theme.type)),!0}},{key:"prepareRender",value:function(e){}},{key:"render",value:function(e){this.scrollbar.renderNow()}}]),n}(te);(0,Je.Ic)((function(e,t){var n=e.getColor(Dt._wn);n&&t.addRule("\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tbox-shadow: ".concat(n," 0 6px 6px -6px inset;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tbox-shadow: ").concat(n," 6px 0 6px -6px inset;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\tbox-shadow: ").concat(n," 6px 6px 6px -6px inset;\n\t\t\t}\n\t\t"));var i=e.getColor(Dt.etL);i&&t.addRule("\n\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\tbackground: ".concat(i,";\n\t\t\t}\n\t\t"));var r=e.getColor(Dt.ABB);r&&t.addRule("\n\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\tbackground: ".concat(r,";\n\t\t\t}\n\t\t"));var o=e.getColor(Dt.ynu);o&&t.addRule("\n\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\tbackground: ".concat(o,";\n\t\t\t}\n\t\t"))}));var Ot=(0,h.Z)((function e(t,n,i){(0,d.Z)(this,e),this._decorationToRenderBrand=void 0,this.startLineNumber=+t,this.endLineNumber=+n,this.className=String(i)})),Rt=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n,[{key:"_render",value:function(e,t,n){for(var i=[],r=e;r<=t;r++){i[r-e]=[]}if(0===n.length)return i;n.sort((function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1}));for(var o=null,a=0,s=0,l=n.length;s<l;s++){var c=n[s],u=c.className,d=Math.max(c.startLineNumber,e)-e,h=Math.min(c.endLineNumber,t)-e;o===u?(d=Math.max(a+1,d),a=Math.max(a,h)):(o=u,a=h);for(var f=d;f<=a;f++)i[f].push(o)}return i}}]),n}(Xe),At=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n),(i=t.call(this))._context=e;var r=i._context.configuration.options,o=r.get(133);return i._lineHeight=r.get(61),i._glyphMargin=r.get(52),i._glyphMarginLeft=o.glyphMarginLeft,i._glyphMarginWidth=o.glyphMarginWidth,i._renderResult=null,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),this._renderResult=null,(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options,n=t.get(133);return this._lineHeight=t.get(61),this._glyphMargin=t.get(52),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"_getDecorations",value:function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,r=0,o=t.length;r<o;r++){var a=t[r],s=a.options.glyphMarginClassName;s&&(n[i++]=new Ot(a.range.startLineNumber,a.range.endLineNumber,s))}return n}},{key:"prepareRender",value:function(e){if(this._glyphMargin){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=this._lineHeight.toString(),o='" style="left:'+this._glyphMarginLeft.toString()+"px;width:"+this._glyphMarginWidth.toString()+"px;height:"+r+'px;"></div>',a=[],s=t;s<=n;s++){var l=s-t,c=i[l];0===c.length?a[l]="":a[l]='<div class="cgmr codicon '+c.join(" ")+o}this._renderResult=a}else this._renderResult=null}},{key:"render",value:function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}]),n}(Rt),Mt=n(93433),Pt=n(85294),Zt=n(99825),Ft=n(38050),Bt=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n),(i=t.call(this))._context=e,i._primaryPosition=null;var r=i._context.configuration.options,o=r.get(134),s=r.get(46);return i._lineHeight=r.get(61),i._spaceWidth=s.spaceWidth,i._maxIndentLeft=-1===o.wrappingColumn?-1:o.wrappingColumn*s.typicalHalfwidthCharacterWidth,i._bracketPairGuideOptions=r.get(13),i._renderResult=null,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),this._renderResult=null,(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options,n=t.get(134),i=t.get(46);return this._lineHeight=t.get(61),this._spaceWidth=i.spaceWidth,this._maxIndentLeft=-1===n.wrappingColumn?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(13),!0}},{key:"onCursorStateChanged",value:function(e){var t,n=e.selections[0].getPosition();return!(null===(t=this._primaryPosition)||void 0===t?void 0:t.equals(n))&&(this._primaryPosition=n,!0)}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"onLanguageConfigurationChanged",value:function(e){return!0}},{key:"prepareRender",value:function(e){var t,n,i,r;if(this._bracketPairGuideOptions.indentation||!1!==this._bracketPairGuideOptions.bracketPairs){for(var a=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,l=e.scrollWidth,c=this._lineHeight,u=this._primaryPosition,d=this.getGuidesByLine(a,s,u),h=[],f=a;f<=s;f++){var p,g=f-a,v=d[g],m="",y=null!==(n=null===(t=e.visibleRangeForPosition(new xe.L(f,1)))||void 0===t?void 0:t.left)&&void 0!==n?n:0,_=(0,o.Z)(v);try{for(_.s();!(p=_.n()).done;){var b=p.value,C=-1===b.column?y+(b.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new xe.L(f,b.column)).left;if(C>l||this._maxIndentLeft>0&&C>this._maxIndentLeft)break;var S=b.horizontalLine?b.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",w=b.horizontalLine?(null!==(r=null===(i=e.visibleRangeForPosition(new xe.L(f,b.horizontalLine.endColumn)))||void 0===i?void 0:i.left)&&void 0!==r?r:C+this._spaceWidth)-C:this._spaceWidth;m+='<div class="core-guide '.concat(b.className," ").concat(S,'" style="left:').concat(C,"px;height:").concat(c,"px;width:").concat(w,'px"></div>')}}catch(k){_.e(k)}finally{_.f()}h[g]=m}this._renderResult=h}else this._renderResult=null}},{key:"getGuidesByLine",value:function(e,t,n){var i=this,r=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,n,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?Ft.s6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?Ft.s6.EnabledForActive:Ft.s6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,o=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null,a=0,s=0,l=0;if(!1!==this._bracketPairGuideOptions.highlightActiveIndentation&&n){var c=this._context.viewModel.getActiveIndentGuide(n.lineNumber,e,t);a=c.startLineNumber,s=c.endLineNumber,l=c.indent}for(var u=this._context.viewModel.model.getOptions().indentSize,d=[],h=e;h<=t;h++){var f=new Array;d.push(f);for(var p=r?r[h-e]:[],g=new x.H9(p),v=o?o[h-e]:[],m=function(e){var t=(e-1)*u+1,n=("always"===i._bracketPairGuideOptions.highlightActiveIndentation||0===p.length)&&a<=h&&h<=s&&e===l;f.push.apply(f,(0,Mt.Z)(g.takeWhile((function(e){return e.visibleColumn<t}))||[]));var r=g.peek();r&&r.visibleColumn===t&&!r.horizontalLine||f.push(new Ft.UO(t,-1,n?"core-guide-indent-active":"core-guide-indent",null,-1,-1))},y=1;y<=v;y++)m(y);f.push.apply(f,(0,Mt.Z)(g.takeWhile((function(e){return!0}))||[]))}return d}},{key:"render",value:function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}]),n}(Xe);function Ht(e){if(!e||!e.isTransparent())return e}(0,Je.Ic)((function(e,t){var n=e.getColor(Qe.tR);n&&t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 ".concat(n," inset; }"));var i=e.getColor(Qe.Ym)||n;i&&t.addRule(".monaco-editor .lines-content .core-guide-indent-active { box-shadow: 1px 0 0 0 ".concat(i," inset; }"));var r=[{bracketColor:Qe.zJ,guideColor:Qe.oV,guideColorActive:Qe.Qb},{bracketColor:Qe.Vs,guideColor:Qe.m$,guideColorActive:Qe.m3},{bracketColor:Qe.CE,guideColor:Qe.DS,guideColorActive:Qe.To},{bracketColor:Qe.UP,guideColor:Qe.lS,guideColorActive:Qe.L7},{bracketColor:Qe.r0,guideColor:Qe.Jn,guideColorActive:Qe.HV},{bracketColor:Qe.m1,guideColor:Qe.YF,guideColorActive:Qe.f9}],o=new Zt.W,a=r.map((function(t){var n,i,r=e.getColor(t.bracketColor),o=e.getColor(t.guideColor),a=e.getColor(t.guideColorActive),s=Ht(null!==(n=Ht(o))&&void 0!==n?n:null===r||void 0===r?void 0:r.transparent(.3)),l=Ht(null!==(i=Ht(a))&&void 0!==i?i:r);if(s&&l)return{guideColor:s,guideColorActive:l}})).filter(Pt.$K);if(a.length>0){for(var s=0;s<30;s++){var l=a[s%a.length];t.addRule(".monaco-editor .".concat(o.getInlineClassNameOfLevel(s).replace(/ /g,".")," { --guide-color: ").concat(l.guideColor,"; --guide-color-active: ").concat(l.guideColorActive,"; }"))}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .vertical.".concat(o.activeClassName," { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }")),t.addRule(".monaco-editor .horizontal-top.".concat(o.activeClassName," { border-top: 1px solid var(--guide-color-active); }")),t.addRule(".monaco-editor .horizontal-bottom.".concat(o.activeClassName," { border-bottom: 1px solid var(--guide-color-active); }"))}}));var zt=function(){function e(){(0,d.Z)(this,e),this._currentVisibleRange=new Ee.e(1,1,1,1)}return(0,h.Z)(e,[{key:"getCurrentVisibleRange",value:function(){return this._currentVisibleRange}},{key:"setCurrentVisibleRange",value:function(e){this._currentVisibleRange=e}}]),e}(),jt=(0,h.Z)((function e(t,n,i,r,o,a,s){(0,d.Z)(this,e),this.minimalReveal=t,this.lineNumber=n,this.startColumn=i,this.endColumn=r,this.startScrollTop=o,this.stopScrollTop=a,this.scrollType=s,this.type="range",this.minLineNumber=n,this.maxLineNumber=n})),Vt=(0,h.Z)((function e(t,n,i,r,o){(0,d.Z)(this,e),this.minimalReveal=t,this.selections=n,this.startScrollTop=i,this.stopScrollTop=r,this.scrollType=o,this.type="selections";for(var a=n[0].startLineNumber,s=n[0].endLineNumber,l=1,c=n.length;l<c;l++){var u=n[l];a=Math.min(a,u.startLineNumber),s=Math.max(s,u.endLineNumber)}this.minLineNumber=a,this.maxLineNumber=s})),Wt=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i){var r;(0,d.Z)(this,n),(r=t.call(this,e))._linesContent=i,r._textRangeRestingSpot=document.createElement("div"),r._visibleLines=new gt((0,a.Z)(r)),r.domNode=r._visibleLines.domNode;var o=r._context.configuration,s=r._context.configuration.options,l=s.get(46),c=s.get(134),u=s.get(133);return r._lineHeight=s.get(61),r._typicalHalfwidthCharacterWidth=l.typicalHalfwidthCharacterWidth,r._isViewportWrapping=c.isViewportWrapping,r._revealHorizontalRightPadding=s.get(91),r._horizontalScrollbarHeight=u.horizontalScrollbarHeight,r._cursorSurroundingLines=s.get(25),r._cursorSurroundingLinesStyle=s.get(26),r._canUseLayerHinting=!s.get(28),r._viewLineOptions=new ve(o,r._context.theme.type),ne.write(r.domNode,7),r.domNode.setClassName("view-lines ".concat(it.S)),(0,qe.N)(r.domNode,l),r._maxLineWidth=0,r._asyncUpdateLineWidths=new Q.pY((function(){r._updateLineWidthsSlow()}),200),r._asyncCheckMonospaceFontAssumptions=new Q.pY((function(){r._checkMonospaceFontAssumptions()}),2e3),r._lastRenderedData=new zt,r._horizontalRevealRequest=null,r}return(0,h.Z)(n,[{key:"dispose",value:function(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"getDomNode",value:function(){return this.domNode}},{key:"createVisibleLine",value:function(){return new me(this._viewLineOptions)}},{key:"onConfigurationChanged",value:function(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(134)&&(this._maxLineWidth=0);var t=this._context.configuration.options,n=t.get(46),i=t.get(134),r=t.get(133);return this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=i.isViewportWrapping,this._revealHorizontalRightPadding=t.get(91),this._horizontalScrollbarHeight=r.horizontalScrollbarHeight,this._cursorSurroundingLines=t.get(25),this._cursorSurroundingLinesStyle=t.get(26),this._canUseLayerHinting=!t.get(28),(0,qe.N)(this.domNode,n),this._onOptionsMaybeChanged(),e.hasChanged(133)&&(this._maxLineWidth=0),!0}},{key:"_onOptionsMaybeChanged",value:function(){var e=this._context.configuration,t=new ve(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;for(var n=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),r=n;r<=i;r++){this._visibleLines.getVisibleLine(r).onOptionsChanged(this._viewLineOptions)}return!0}return!1}},{key:"onCursorStateChanged",value:function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=!1,r=t;r<=n;r++)i=this._visibleLines.getVisibleLine(r).onSelectionChanged()||i;return i}},{key:"onDecorationsChanged",value:function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged();return!0}},{key:"onFlushed",value:function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}},{key:"onLinesChanged",value:function(e){return this._visibleLines.onLinesChanged(e)}},{key:"onLinesDeleted",value:function(e){return this._visibleLines.onLinesDeleted(e)}},{key:"onLinesInserted",value:function(e){return this._visibleLines.onLinesInserted(e)}},{key:"onRevealRangeRequest",value:function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(-1===t)return!1;var n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new jt(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Vt(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;var i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(n,i),!0}},{key:"onScrollChanged",value:function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>n)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}},{key:"onTokensChanged",value:function(e){return this._visibleLines.onTokensChanged(e)}},{key:"onZonesChanged",value:function(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}},{key:"onThemeChanged",value:function(e){return this._onOptionsMaybeChanged()}},{key:"getPositionFromDOMInfo",value:function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(i))return new xe.L(i,1);var r=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(i<r||i>o)return null;var a=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t),s=this._context.viewModel.getLineMinColumn(i);return a<s&&(a=s),new xe.L(i,a)}},{key:"_getViewLineDomNode",value:function(e){for(;e&&1===e.nodeType;){if(e.className===me.CLASS_NAME)return e;e=e.parentElement}return null}},{key:"_getLineNumberFor",value:function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++){if(e===this._visibleLines.getVisibleLine(i).getDomNode())return i}return-1}},{key:"getLineWidth",value:function(e){var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();return e<t||e>n?-1:this._visibleLines.getVisibleLine(e).getWidth()}},{key:"linesVisibleRangesForRange",value:function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber,i=Ee.e.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!i)return null;var r=[],o=0,a=new ge(this.domNode.domNode,this._textRangeRestingSpot),s=0;t&&(s=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new xe.L(i.startLineNumber,1)).lineNumber);for(var l=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber(),u=i.startLineNumber;u<=i.endLineNumber;u++)if(!(u<l||u>c)){var d=u===i.startLineNumber?i.startColumn:1,h=u===i.endLineNumber?i.endColumn:this._context.viewModel.getLineMaxColumn(u),f=this._visibleLines.getVisibleLine(u).getVisibleRangesForRange(u,d,h,a);if(f){if(t&&u<n)s!==(s=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new xe.L(u+1,1)).lineNumber)&&(f.ranges[f.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth);r[o++]=new re(f.outsideRenderedLine,u,oe.from(f.ranges))}}return 0===o?null:r}},{key:"_visibleRangesForLineRange",value:function(e,t,n){return this.shouldRender()||e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,n,new ge(this.domNode.domNode,this._textRangeRestingSpot))}},{key:"visibleRangeForPosition",value:function(e){var t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new se(t.outsideRenderedLine,t.ranges[0].left):null}},{key:"updateLineWidths",value:function(){this._updateLineWidths(!1)}},{key:"_updateLineWidthsFast",value:function(){return this._updateLineWidths(!0)}},{key:"_updateLineWidthsSlow",value:function(){this._updateLineWidths(!1)}},{key:"_updateLineWidths",value:function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=1,r=!0,o=t;o<=n;o++){var a=this._visibleLines.getVisibleLine(o);!e||a.getWidthIsFast()?i=Math.max(i,a.getWidth()):r=!1}return r&&1===t&&n===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(i),r}},{key:"_checkMonospaceFontAssumptions",value:function(){for(var e=-1,t=-1,n=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),r=n;r<=i;r++){var o=this._visibleLines.getVisibleLine(r);if(o.needsMonospaceFontCheck()){var a=o.getWidth();a>t&&(t=a,e=r)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(var s=n;s<=i;s++){this._visibleLines.getVisibleLine(s).onMonospaceAssumptionsInvalidated()}}},{key:"prepareRender",value:function(){throw new Error("Not supported")}},{key:"render",value:function(){throw new Error("Not supported")}},{key:"renderText",value:function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var n=this._computeScrollLeftToReveal(t);n&&(this._isViewportWrapping||this._ensureMaxLineWidth(n.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:n.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),T.IJ&&!this._asyncCheckMonospaceFontAssumptions.isScheduled())for(var i=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber(),o=i;o<=r;o++){if(this._visibleLines.getVisibleLine(o).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var a=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-a),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}},{key:"_ensureMaxLineWidth",value:function(e){var t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth))}},{key:"_computeScrollTopToRevealRange",value:function(e,t,n,i,r,o){var a,s,l,c,u=e.top,d=e.height,h=u+d;if(r&&r.length>0){for(var f=r[0].startLineNumber,p=r[0].endLineNumber,g=1,v=r.length;g<v;g++){var m=r[g];f=Math.min(f,m.startLineNumber),p=Math.max(p,m.endLineNumber)}a=!1,s=this._context.viewLayout.getVerticalOffsetForLineNumber(f),l=this._context.viewLayout.getVerticalOffsetForLineNumber(p)+this._lineHeight}else{if(!i)return-1;a=!0,s=this._context.viewLayout.getVerticalOffsetForLineNumber(i.startLineNumber),l=this._context.viewLayout.getVerticalOffsetForLineNumber(i.endLineNumber)+this._lineHeight}if(("mouse"===t||n)&&"default"===this._cursorSurroundingLinesStyle)n||(s-=this._lineHeight);else{var y=Math.min(d/this._lineHeight/2,this._cursorSurroundingLines);s-=y*this._lineHeight,l+=Math.max(0,y-1)*this._lineHeight}if(0!==o&&4!==o||(l+=n?this._horizontalScrollbarHeight:this._lineHeight),l-s>d){if(!a)return-1;c=s}else if(5===o||6===o)if(6===o&&u<=s&&l<=h)c=u;else{var _=s-Math.max(5*this._lineHeight,.2*d),b=l-d;c=Math.max(b,_)}else if(1===o||2===o)if(2===o&&u<=s&&l<=h)c=u;else{var C=(s+l)/2;c=Math.max(0,C-d/2)}else c=this._computeMinimumScrolling(u,h,s,l,3===o,4===o);return c}},{key:"_computeScrollLeftToReveal",value:function(e){var t=this._context.viewLayout.getCurrentViewport(),i=t.left,r=i+t.width,a=1073741824,s=0;if("range"===e.type){var l=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!l)return null;var c,u=(0,o.Z)(l.ranges);try{for(u.s();!(c=u.n()).done;){var d=c.value;a=Math.min(a,Math.round(d.left)),s=Math.max(s,Math.round(d.left+d.width))}}catch(_){u.e(_)}finally{u.f()}}else{var h,f=(0,o.Z)(e.selections);try{for(f.s();!(h=f.n()).done;){var p=h.value;if(p.startLineNumber!==p.endLineNumber)return null;var g=this._visibleRangesForLineRange(p.startLineNumber,p.startColumn,p.endColumn);if(!g)return null;var v,m=(0,o.Z)(g.ranges);try{for(m.s();!(v=m.n()).done;){var y=v.value;a=Math.min(a,Math.round(y.left)),s=Math.max(s,Math.round(y.left+y.width))}}catch(_){m.e(_)}finally{m.f()}}}catch(_){f.e(_)}finally{f.f()}}return e.minimalReveal||(a=Math.max(0,a-n.HORIZONTAL_EXTRA_PX),s+=this._revealHorizontalRightPadding),"selections"===e.type&&s-a>t.width?null:{scrollLeft:this._computeMinimumScrolling(i,r,a,s),maxHorizontalOffset:s}}},{key:"_computeMinimumScrolling",value:function(e,t,n,i,r,o){r=!!r,o=!!o;var a=(t|=0)-(e|=0);return(i|=0)-(n|=0)<a?r?n:o?Math.max(0,i-a):n<e?n:i>t?Math.max(0,i-a):e:n}}]),n}(te);Wt.HORIZONTAL_EXTRA_PX=30;var Ut=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n),(i=t.call(this))._context=e;var r=i._context.configuration.options.get(133);return i._decorationsLeft=r.decorationsLeft,i._decorationsWidth=r.decorationsWidth,i._renderResult=null,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),this._renderResult=null,(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options.get(133);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"_getDecorations",value:function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,r=0,o=t.length;r<o;r++){var a=t[r],s=a.options.linesDecorationsClassName;s&&(n[i++]=new Ot(a.range.startLineNumber,a.range.endLineNumber,s));var l=a.options.firstLineDecorationClassName;l&&(n[i++]=new Ot(a.range.startLineNumber,a.range.startLineNumber,l))}return n}},{key:"prepareRender",value:function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',o=[],a=t;a<=n;a++){for(var s=a-t,l=i[s],c="",u=0,d=l.length;u<d;u++)c+='<div class="cldr '+l[u]+r;o[s]=c}this._renderResult=o}},{key:"render",value:function(e,t){return this._renderResult?this._renderResult[t-e]:""}}]),n}(Rt),Gt=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this))._context=e,i._renderResult=null,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),this._renderResult=null,(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){return!0}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"_getDecorations",value:function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,r=0,o=t.length;r<o;r++){var a=t[r],s=a.options.marginClassName;s&&(n[i++]=new Ot(a.range.startLineNumber,a.range.endLineNumber,s))}return n}},{key:"prepareRender",value:function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=[],o=t;o<=n;o++){for(var a=o-t,s=i[a],l="",c=0,u=s.length;c<u;c++)l+='<div class="cmdr '+s[c]+'" style=""></div>';r[a]=l}this._renderResult=r}},{key:"render",value:function(e,t){return this._renderResult?this._renderResult[t-e]:""}}]),n}(Rt),Kt=n(1082),Yt=function(){function e(t,n,i,r){(0,d.Z)(this,e),this._rgba8Brand=void 0,this.r=e._clamp(t),this.g=e._clamp(n),this.b=e._clamp(i),this.a=e._clamp(r)}return(0,h.Z)(e,[{key:"equals",value:function(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}}],[{key:"_clamp",value:function(e){return e<0?0:e>255?255:0|e}}]),e}();Yt.Empty=new Yt(0,0,0,0);var qt=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,d.Z)(this,n),(e=t.call(this))._onDidChange=new C.Q5,e.onDidChange=e._onDidChange.event,e._updateColorMap(),e._register(rt.RW.onDidChange((function(t){t.changedColorMap&&e._updateColorMap()}))),e}return(0,h.Z)(n,[{key:"_updateColorMap",value:function(){var e=rt.RW.getColorMap();if(!e)return this._colors=[Yt.Empty],void(this._backgroundIsLight=!0);this._colors=[Yt.Empty];for(var t=1;t<e.length;t++){var n=e[t].rgba;this._colors[t]=new Yt(n.r,n.g,n.b,Math.round(255*n.a))}var i=e[2].getRelativeLuminance();this._backgroundIsLight=i>=.5,this._onDidChange.fire(void 0)}},{key:"getColor",value:function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}},{key:"backgroundIsLight",value:function(){return this._backgroundIsLight}}],[{key:"getInstance",value:function(){return this._INSTANCE||(this._INSTANCE=(0,S.dk)(new n)),this._INSTANCE}}]),n}(S.JT);qt._INSTANCE=null;var $t=n(53599),Xt=function(){for(var e=[],t=32;t<=126;t++)e.push(t);return e.push(65533),e}(),Qt=n(54540),Jt=function(){function e(t,n){(0,d.Z)(this,e),this.scale=n,this._minimapCharRendererBrand=void 0,this.charDataNormal=e.soften(t,.8),this.charDataLight=e.soften(t,50/60)}return(0,h.Z)(e,[{key:"renderChar",value:function(e,t,n,i,r,o,a,s,l,c,u){var d=1*this.scale,h=2*this.scale,f=u?1:h;if(t+d>e.width||n+f>e.height)console.warn("bad render request outside image data");else for(var p=c?this.charDataLight:this.charDataNormal,g=function(e,t){return(e-=32)<0||e>96?t<=2?(e+96)%96:95:e}(i,l),v=4*e.width,m=a.r,y=a.g,_=a.b,b=r.r-m,C=r.g-y,S=r.b-_,w=Math.max(o,s),k=e.data,x=g*d*h,E=n*v+4*t,T=0;T<f;T++){for(var N=E,I=0;I<d;I++){var D=p[x++]/255*(o/255);k[N++]=m+b*D,k[N++]=y+C*D,k[N++]=_+S*D,k[N++]=w}E+=v}}},{key:"blockRenderChar",value:function(e,t,n,i,r,o,a,s){var l=1*this.scale,c=2*this.scale,u=s?1:c;if(t+l>e.width||n+u>e.height)console.warn("bad render request outside image data");else for(var d=4*e.width,h=r/255*.5,f=o.r,p=o.g,g=o.b,v=f+(i.r-f)*h,m=p+(i.g-p)*h,y=g+(i.b-g)*h,_=Math.max(r,a),b=e.data,C=n*d+4*t,S=0;S<u;S++){for(var w=C,k=0;k<l;k++)b[w++]=v,b[w++]=m,b[w++]=y,b[w++]=_;C+=d}}}],[{key:"soften",value:function(e,t){for(var n=new Uint8ClampedArray(e.length),i=0,r=e.length;i<r;i++)n[i]=(0,Qt.K)(e[i]*t);return n}}]),e}(),en=n(11541),tn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},nn=function(e){for(var t=new Uint8ClampedArray(e.length/2),n=0;n<e.length;n+=2)t[n>>1]=tn[e[n]]<<4|15&tn[e[n+1]];return t},rn={1:(0,en.I)((function(){return nn("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")})),2:(0,en.I)((function(){return nn("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")}))},on=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,null,[{key:"create",value:function(t,n){return this.lastCreated&&t===this.lastCreated.scale&&n===this.lastFontFamily?this.lastCreated:(i=rn[t]?new Jt(rn[t](),t):e.createFromSampleData(e.createSampleData(n).data,t),this.lastFontFamily=n,this.lastCreated=i,i);var i}},{key:"createSampleData",value:function(e){var t=document.createElement("canvas"),n=t.getContext("2d");t.style.height="".concat(16,"px"),t.height=16,t.width=960,t.style.width="960px",n.fillStyle="#ffffff",n.font="bold ".concat(16,"px ",e),n.textBaseline="middle";var i,r=0,a=(0,o.Z)(Xt);try{for(a.s();!(i=a.n()).done;){var s=i.value;n.fillText(String.fromCharCode(s),r,8),r+=10}}catch(l){a.e(l)}finally{a.f()}return n.getImageData(0,0,960,16)}},{key:"createFromSampleData",value:function(t,n){if(61440!==t.length)throw new Error("Unexpected source in MinimapCharRenderer");var i=e._downsample(t,n);return new Jt(i,n)}},{key:"_downsampleChar",value:function(e,t,n,i,r){for(var o=1*r,a=2*r,s=i,l=0,c=0;c<a;c++)for(var u=c/a*16,d=(c+1)/a*16,h=0;h<o;h++){for(var f=h/o*10,p=(h+1)/o*10,g=0,v=0,m=u;m<d;m++)for(var y=t+3840*Math.floor(m),_=1-(m-Math.floor(m)),b=f;b<p;b++){var C=1-(b-Math.floor(b)),S=y+4*Math.floor(b),w=C*_;v+=w,g+=e[S]*e[S+3]/255*w}var k=g/v;l=Math.max(l,k),n[s++]=(0,Qt.K)(k)}return l}},{key:"_downsample",value:function(e,t){for(var n=2*t*1*t,i=96*n,r=new Uint8ClampedArray(i),o=0,a=0,s=0,l=0;l<96;l++)s=Math.max(s,this._downsampleChar(e,a,r,o,t)),o+=n,a+=40;if(s>0)for(var c=255/s,u=0;u<i;u++)r[u]*=c;return r}}]),e}(),an=n(36550),sn=function(){function e(t,n,i){var r=this;(0,d.Z)(this,e);var o=t.options,a=o.get(131),s=o.get(133),l=s.minimap,c=o.get(46),u=o.get(67);this.renderMinimap=l.renderMinimap,this.size=u.size,this.minimapHeightIsEditorHeight=l.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=o.get(96),this.showSlider=u.showSlider,this.autohide=u.autohide,this.pixelRatio=a,this.typicalHalfwidthCharacterWidth=c.typicalHalfwidthCharacterWidth,this.lineHeight=o.get(61),this.minimapLeft=l.minimapLeft,this.minimapWidth=l.minimapWidth,this.minimapHeight=s.height,this.canvasInnerWidth=l.minimapCanvasInnerWidth,this.canvasInnerHeight=l.minimapCanvasInnerHeight,this.canvasOuterWidth=l.minimapCanvasOuterWidth,this.canvasOuterHeight=l.minimapCanvasOuterHeight,this.isSampling=l.minimapIsSampling,this.editorHeight=s.height,this.fontScale=l.minimapScale,this.minimapLineHeight=l.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.charRenderer=(0,en.I)((function(){return on.create(r.fontScale,c.fontFamily)})),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=e._getMinimapBackground(n,this.defaultBackgroundColor),this.foregroundAlpha=e._getMinimapForegroundOpacity(n)}return(0,h.Z)(e,[{key:"equals",value:function(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}],[{key:"_getMinimapBackground",value:function(e,t){var n=e.getColor(Dt.kVY);return n?new Yt(n.rgba.r,n.rgba.g,n.rgba.b,Math.round(255*n.rgba.a)):t}},{key:"_getMinimapForegroundOpacity",value:function(e){var t=e.getColor(Dt.Itd);return t?Yt._clamp(Math.round(255*t.rgba.a)):255}}]),e}(),ln=function(){function e(t,n,i,r,o,a,s,l){(0,d.Z)(this,e),this.scrollTop=t,this.scrollHeight=n,this.sliderNeeded=i,this._computedSliderRatio=r,this.sliderTop=o,this.sliderHeight=a,this.startLineNumber=s,this.endLineNumber=l}return(0,h.Z)(e,[{key:"getDesiredScrollTopFromDelta",value:function(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}},{key:"getDesiredScrollTopFromTouchLocation",value:function(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}}],[{key:"create",value:function(t,n,i,r,o,a,s,l,c,u,d){var h,f,p=t.pixelRatio,g=t.minimapLineHeight,v=Math.floor(t.canvasInnerHeight/g),m=t.lineHeight;if(t.minimapHeightIsEditorHeight){var y=l*t.lineHeight+(t.scrollBeyondLastLine?o-t.lineHeight:0),_=Math.max(1,Math.floor(o*o/y)),b=Math.max(0,t.minimapHeight-_),C=b/(u-o),S=c*C,w=b>0,k=Math.floor(t.canvasInnerHeight/t.minimapLineHeight);return new e(c,u,w,C,S,_,1,Math.min(s,k))}if(a&&i!==s){var x=i-n+1;h=Math.floor(x*g/p)}else{var E=o/m;h=Math.floor(E*g/p)}f=t.scrollBeyondLastLine?(s-1)*g/p:Math.max(0,s*g/p-h);var T=(f=Math.min(t.minimapHeight-h,f))/(u-o),N=c*T,I=0;t.scrollBeyondLastLine&&(I=o/m-1);if(v>=s+I){return new e(c,u,f>0,T,N,h,1,s)}var D=Math.max(1,Math.floor(n-N*p/g));return d&&d.scrollHeight===u&&(d.scrollTop>c&&(D=Math.min(D,d.startLineNumber)),d.scrollTop<c&&(D=Math.max(D,d.startLineNumber))),new e(c,u,!0,T,(n-D+(c-r)/m)*g/p,h,D,Math.min(s,D+v-1))}}]),e}(),cn=function(){function e(t){(0,d.Z)(this,e),this.dy=t}return(0,h.Z)(e,[{key:"onContentChanged",value:function(){this.dy=-1}},{key:"onTokensChanged",value:function(){this.dy=-1}}]),e}();cn.INVALID=new cn(-1);var un=function(){function e(t,n,i){(0,d.Z)(this,e),this.renderedLayout=t,this._imageData=n,this._renderedLines=new pt((function(){return cn.INVALID})),this._renderedLines._set(t.startLineNumber,i)}return(0,h.Z)(e,[{key:"linesEquals",value:function(e){if(!this.scrollEquals(e))return!1;for(var t=this._renderedLines._get().lines,n=0,i=t.length;n<i;n++)if(-1===t[n].dy)return!1;return!0}},{key:"scrollEquals",value:function(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}},{key:"_get",value:function(){var e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}},{key:"onLinesChanged",value:function(e,t){return this._renderedLines.onLinesChanged(e,t)}},{key:"onLinesDeleted",value:function(e,t){this._renderedLines.onLinesDeleted(e,t)}},{key:"onLinesInserted",value:function(e,t){this._renderedLines.onLinesInserted(e,t)}},{key:"onTokensChanged",value:function(e){return this._renderedLines.onTokensChanged(e)}}]),e}(),dn=function(){function e(t,n,i,r){(0,d.Z)(this,e),this._backgroundFillData=e._createBackgroundFillData(n,i,r),this._buffers=[t.createImageData(n,i),t.createImageData(n,i)],this._lastUsedBuffer=0}return(0,h.Z)(e,[{key:"getBuffer",value:function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}}],[{key:"_createBackgroundFillData",value:function(e,t,n){for(var i=n.r,r=n.g,o=n.b,a=n.a,s=new Uint8ClampedArray(e*t*4),l=0,c=0;c<t;c++)for(var u=0;u<e;u++)s[l]=i,s[l+1]=r,s[l+2]=o,s[l+3]=a,l+=4;return s}}]),e}(),hn=function(){function e(t,n){(0,d.Z)(this,e),this.samplingRatio=t,this.minimapLines=n}return(0,h.Z)(e,[{key:"modelLineToMinimapLine",value:function(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}},{key:"modelLineRangeToMinimapLineRange",value:function(e,t){for(var n=this.modelLineToMinimapLine(e)-1;n>0&&this.minimapLines[n-1]>=e;)n--;for(var i=this.modelLineToMinimapLine(t)-1;i+1<this.minimapLines.length&&this.minimapLines[i+1]<=t;)i++;if(n===i){var r=this.minimapLines[n];if(r<e||r>t)return null}return[n+1,i+1]}},{key:"decorationLineRangeToMinimapLineRange",value:function(e,t){var n=this.modelLineToMinimapLine(e),i=this.modelLineToMinimapLine(t);return e!==t&&i===n&&(i===this.minimapLines.length?n>1&&n--:i++),[n,i]}},{key:"onLinesDeleted",value:function(e){for(var t=e.toLineNumber-e.fromLineNumber+1,n=this.minimapLines.length,i=0,r=this.minimapLines.length-1;r>=0&&!(this.minimapLines[r]<e.fromLineNumber);r--)this.minimapLines[r]<=e.toLineNumber?(this.minimapLines[r]=Math.max(1,e.fromLineNumber-1),n=Math.min(n,r),i=Math.max(i,r)):this.minimapLines[r]-=t;return[n,i]}},{key:"onLinesInserted",value:function(e){for(var t=e.toLineNumber-e.fromLineNumber+1,n=this.minimapLines.length-1;n>=0&&!(this.minimapLines[n]<e.fromLineNumber);n--)this.minimapLines[n]+=t}}],[{key:"compute",value:function(t,n,i){if(0===t.renderMinimap||!t.isSampling)return[null,[]];var r=t.pixelRatio,o=t.lineHeight,a=t.scrollBeyondLastLine,s=M.gk.computeContainedMinimapLineCount({viewLineCount:n,scrollBeyondLastLine:a,height:t.editorHeight,lineHeight:o,pixelRatio:r}).minimapLineCount,l=n/s,c=l/2;if(!i||0===i.minimapLines.length){var u=[];if(u[0]=1,s>1){for(var d=0,h=s-1;d<h;d++)u[d]=Math.round(d*l+c);u[s-1]=n}return[new e(l,u),[]]}for(var f=i.minimapLines,p=f.length,g=[],v=0,m=0,y=1,_=[],b=null,C=0;C<s;C++){for(var S=Math.max(y,Math.round(C*l)),w=Math.max(S,Math.round((C+1)*l));v<p&&f[v]<S;){if(_.length<10){var k=v+1+m;b&&"deleted"===b.type&&b._oldIndex===v-1?b.deleteToLineNumber++:(b={type:"deleted",_oldIndex:v,deleteFromLineNumber:k,deleteToLineNumber:k},_.push(b)),m--}v++}var x=void 0;if(v<p&&f[v]<=w)x=f[v],v++;else if(x=0===C?1:C+1===s?n:Math.round(C*l+c),_.length<10){var E=v+1+m;b&&"inserted"===b.type&&b._i===C-1?b.insertToLineNumber++:(b={type:"inserted",_i:C,insertFromLineNumber:E,insertToLineNumber:E},_.push(b)),m++}g[C]=x,y=x}if(_.length<10)for(;v<p;){var T=v+1+m;b&&"deleted"===b.type&&b._oldIndex===v-1?b.deleteToLineNumber++:(b={type:"deleted",_oldIndex:v,deleteFromLineNumber:T,deleteToLineNumber:T},_.push(b)),m--,v++}else _=[{type:"flush"}];return[new e(l,g),_]}}]),e}(),fn=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var r;(0,d.Z)(this,n),(r=t.call(this,e)).tokensColorTracker=qt.getInstance(),r._selections=[],r._minimapSelections=null,r.options=new sn(r._context.configuration,r._context.theme,r.tokensColorTracker);var o=hn.compute(r.options,r._context.viewModel.getLineCount(),null),s=(0,i.Z)(o,1)[0];return r._samplingState=s,r._shouldCheckSampling=!1,r._actual=new pn(e.theme,(0,a.Z)(r)),r}return(0,h.Z)(n,[{key:"dispose",value:function(){this._actual.dispose(),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"getDomNode",value:function(){return this._actual.getDomNode()}},{key:"_onOptionsMaybeChanged",value:function(){var e=new sn(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}},{key:"onConfigurationChanged",value:function(e){return this._onOptionsMaybeChanged()}},{key:"onCursorStateChanged",value:function(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}},{key:"onDecorationsChanged",value:function(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}},{key:"onFlushed",value:function(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}},{key:"onLinesChanged",value:function(e){if(this._samplingState){var t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.fromLineNumber+e.count-1);return!!t&&this._actual.onLinesChanged(t[0],t[1]-t[0]+1)}return this._actual.onLinesChanged(e.fromLineNumber,e.count)}},{key:"onLinesDeleted",value:function(e){if(this._samplingState){var t=this._samplingState.onLinesDeleted(e),n=(0,i.Z)(t,2),r=n[0],o=n[1];return r<=o&&this._actual.onLinesChanged(r+1,o-r+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber)}},{key:"onLinesInserted",value:function(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}},{key:"onScrollChanged",value:function(e){return this._actual.onScrollChanged()}},{key:"onThemeChanged",value:function(e){return this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}},{key:"onTokensChanged",value:function(e){if(this._samplingState){var t,n=[],i=(0,o.Z)(e.ranges);try{for(i.s();!(t=i.n()).done;){var r=t.value,a=this._samplingState.modelLineRangeToMinimapLineRange(r.fromLineNumber,r.toLineNumber);a&&n.push({fromLineNumber:a[0],toLineNumber:a[1]})}}catch(s){i.e(s)}finally{i.f()}return!!n.length&&this._actual.onTokensChanged(n)}return this._actual.onTokensChanged(e.ranges)}},{key:"onTokensColorsChanged",value:function(e){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}},{key:"onZonesChanged",value:function(e){return this._actual.onZonesChanged()}},{key:"prepareRender",value:function(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}},{key:"render",value:function(e){var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),n=this._samplingState.modelLineToMinimapLine(n));var i={viewportContainsWhitespaceGaps:e.viewportData.whitespaceViewportData.length>0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:n,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(i)}},{key:"_recreateLineSampling",value:function(){this._minimapSelections=null;var e=Boolean(this._samplingState),t=hn.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState),n=(0,i.Z)(t,2),r=n[0],a=n[1];if(this._samplingState=r,e&&this._samplingState){var s,l=(0,o.Z)(a);try{for(l.s();!(s=l.n()).done;){var c=s.value;switch(c.type){case"deleted":this._actual.onLinesDeleted(c.deleteFromLineNumber,c.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(c.insertFromLineNumber,c.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}}catch(u){l.e(u)}finally{l.f()}}}},{key:"getLineCount",value:function(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}},{key:"getRealLineCount",value:function(){return this._context.viewModel.getLineCount()}},{key:"getLineContent",value:function(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}},{key:"getLineMaxColumn",value:function(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}},{key:"getMinimapLinesRenderingData",value:function(e,t,n){if(this._samplingState){for(var i=[],r=0,o=t-e+1;r<o;r++)n[r]?i[r]=this._context.viewModel.getViewLineData(this._samplingState.minimapLines[e+r-1]):i[r]=null;return i}return this._context.viewModel.getMinimapLinesRenderingData(e,t,n).data}},{key:"getSelections",value:function(){if(null===this._minimapSelections)if(this._samplingState){this._minimapSelections=[];var e,t=(0,o.Z)(this._selections);try{for(t.s();!(e=t.n()).done;){var n=e.value,r=this._samplingState.decorationLineRangeToMinimapLineRange(n.startLineNumber,n.endLineNumber),a=(0,i.Z)(r,2),s=a[0],l=a[1];this._minimapSelections.push(new Y.Y(s,n.startColumn,l,n.endColumn))}}catch(c){t.e(c)}finally{t.f()}}else this._minimapSelections=this._selections;return this._minimapSelections}},{key:"getMinimapDecorationsInViewport",value:function(e,t){var n;if(this._samplingState){var i=this._samplingState.minimapLines[e-1],r=this._samplingState.minimapLines[t-1];n=new Ee.e(i,1,r,this._context.viewModel.getLineMaxColumn(r))}else n=new Ee.e(e,1,t,this._context.viewModel.getLineMaxColumn(t));var a=this._context.viewModel.getDecorationsInViewport(n);if(this._samplingState){var s,l=[],c=(0,o.Z)(a);try{for(c.s();!(s=c.n()).done;){var u=s.value;if(u.options.minimap){var d=u.range,h=this._samplingState.modelLineToMinimapLine(d.startLineNumber),f=this._samplingState.modelLineToMinimapLine(d.endLineNumber);l.push(new $t.$l(new Ee.e(h,d.startColumn,f,d.endColumn),u.options))}}}catch(p){c.e(p)}finally{c.f()}return l}return a}},{key:"getOptions",value:function(){return this._context.viewModel.model.getOptions()}},{key:"revealLineNumber",value:function(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new Ee.e(e,1,e,1),1,0)}},{key:"setScrollTop",value:function(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}]),n}(te),pn=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i){var r;return(0,d.Z)(this,n),(r=t.call(this))._renderDecorations=!1,r._gestureInProgress=!1,r._theme=e,r._model=i,r._lastRenderData=null,r._buffers=null,r._selectionColor=r._theme.getColor(Dt.ov3),r._domNode=(0,q.X)(document.createElement("div")),ne.write(r._domNode,8),r._domNode.setClassName(r._getMinimapDomNodeClassName()),r._domNode.setPosition("absolute"),r._domNode.setAttribute("role","presentation"),r._domNode.setAttribute("aria-hidden","true"),r._shadow=(0,q.X)(document.createElement("div")),r._shadow.setClassName("minimap-shadow-hidden"),r._domNode.appendChild(r._shadow),r._canvas=(0,q.X)(document.createElement("canvas")),r._canvas.setPosition("absolute"),r._canvas.setLeft(0),r._domNode.appendChild(r._canvas),r._decorationsCanvas=(0,q.X)(document.createElement("canvas")),r._decorationsCanvas.setPosition("absolute"),r._decorationsCanvas.setClassName("minimap-decorations-layer"),r._decorationsCanvas.setLeft(0),r._domNode.appendChild(r._decorationsCanvas),r._slider=(0,q.X)(document.createElement("div")),r._slider.setPosition("absolute"),r._slider.setClassName("minimap-slider"),r._slider.setLayerHinting(!0),r._slider.setContain("strict"),r._domNode.appendChild(r._slider),r._sliderHorizontal=(0,q.X)(document.createElement("div")),r._sliderHorizontal.setPosition("absolute"),r._sliderHorizontal.setClassName("minimap-slider-horizontal"),r._slider.appendChild(r._sliderHorizontal),r._applyLayout(),r._pointerDownListener=_.addStandardDisposableListener(r._domNode.domNode,_.EventType.POINTER_DOWN,(function(e){if(e.preventDefault(),0!==r._model.options.renderMinimap&&r._lastRenderData)if("proportional"===r._model.options.size){var t=r._model.options.minimapLineHeight,n=r._model.options.canvasInnerHeight/r._model.options.canvasOuterHeight*e.offsetY,i=Math.floor(n/t)+r._lastRenderData.renderedLayout.startLineNumber;i=Math.min(i,r._model.getLineCount()),r._model.revealLineNumber(i)}else if(0===e.button&&r._lastRenderData){var o=_.getDomNodePagePosition(r._slider.domNode),a=o.top+o.height/2;r._startSliderDragging(e,a,r._lastRenderData.renderedLayout)}})),r._sliderPointerMoveMonitor=new Kt.C,r._sliderPointerDownListener=_.addStandardDisposableListener(r._slider.domNode,_.EventType.POINTER_DOWN,(function(e){e.preventDefault(),e.stopPropagation(),0===e.button&&r._lastRenderData&&r._startSliderDragging(e,e.pageY,r._lastRenderData.renderedLayout)})),r._gestureDisposable=$.o.addTarget(r._domNode.domNode),r._sliderTouchStartListener=_.addDisposableListener(r._domNode.domNode,$.t.Start,(function(e){e.preventDefault(),e.stopPropagation(),r._lastRenderData&&(r._slider.toggleClassName("active",!0),r._gestureInProgress=!0,r.scrollDueToTouchEvent(e))}),{passive:!1}),r._sliderTouchMoveListener=_.addDisposableListener(r._domNode.domNode,$.t.Change,(function(e){e.preventDefault(),e.stopPropagation(),r._lastRenderData&&r._gestureInProgress&&r.scrollDueToTouchEvent(e)}),{passive:!1}),r._sliderTouchEndListener=_.addStandardDisposableListener(r._domNode.domNode,$.t.End,(function(e){e.preventDefault(),e.stopPropagation(),r._gestureInProgress=!1,r._slider.toggleClassName("active",!1)})),r}return(0,h.Z)(n,[{key:"_startSliderDragging",value:function(e,t,n){var i=this;if(e.target&&e.target instanceof Element){var r=e.pageX;this._slider.toggleClassName("active",!0);var o=function(e,o){var a=Math.abs(o-r);if(T.ED&&a>140)i._model.setScrollTop(n.scrollTop);else{var s=e-t;i._model.setScrollTop(n.getDesiredScrollTopFromDelta(s))}};e.pageY!==t&&o(e.pageY,r),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(function(e){return o(e.pageY,e.pageX)}),(function(){i._slider.toggleClassName("active",!1)}))}}},{key:"scrollDueToTouchEvent",value:function(e){var t=this._domNode.domNode.getBoundingClientRect().top,n=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(n)}},{key:"dispose",value:function(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"_getMinimapDomNodeClassName",value:function(){var e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}},{key:"getDomNode",value:function(){return this._domNode}},{key:"_applyLayout",value:function(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}},{key:"_getBuffer",value:function(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new dn(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}},{key:"onDidChangeOptions",value:function(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}},{key:"onSelectionChanged",value:function(){return this._renderDecorations=!0,!0}},{key:"onDecorationsChanged",value:function(){return this._renderDecorations=!0,!0}},{key:"onFlushed",value:function(){return this._lastRenderData=null,!0}},{key:"onLinesChanged",value:function(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}},{key:"onLinesDeleted",value:function(e,t){var n;return null===(n=this._lastRenderData)||void 0===n||n.onLinesDeleted(e,t),!0}},{key:"onLinesInserted",value:function(e,t){var n;return null===(n=this._lastRenderData)||void 0===n||n.onLinesInserted(e,t),!0}},{key:"onScrollChanged",value:function(){return this._renderDecorations=!0,!0}},{key:"onThemeChanged",value:function(){return this._selectionColor=this._theme.getColor(Dt.ov3),this._renderDecorations=!0,!0}},{key:"onTokensChanged",value:function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}},{key:"onTokensColorsChanged",value:function(){return this._lastRenderData=null,this._buffers=null,!0}},{key:"onZonesChanged",value:function(){return this._lastRenderData=null,!0}},{key:"render",value:function(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var t=ln.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}},{key:"renderDecorations",value:function(e){if(this._renderDecorations){this._renderDecorations=!1;var t=this._model.getSelections();t.sort(Ee.e.compareRangesUsingStarts);var n=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);n.sort((function(e,t){return(e.options.zIndex||0)-(t.options.zIndex||0)}));var i=this._model.options,r=i.canvasInnerWidth,o=i.canvasInnerHeight,a=this._model.options.minimapLineHeight,s=this._model.options.minimapCharWidth,l=this._model.getOptions().tabSize,c=this._decorationsCanvas.domNode.getContext("2d");c.clearRect(0,0,r,o);var u=new gn(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(c,t,u,e,a),this._renderDecorationsLineHighlights(c,n,u,e,a);var d=new gn(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(c,t,d,e,a,l,s,r),this._renderDecorationsHighlights(c,n,d,e,a,l,s,r)}}},{key:"_renderSelectionLineHighlights",value:function(e,t,n,i,r){if(this._selectionColor&&!this._selectionColor.isTransparent()){e.fillStyle=this._selectionColor.transparent(.5).toString();var a,s=0,l=0,c=(0,o.Z)(t);try{for(c.s();!(a=c.n()).done;){var u=a.value,d=Math.max(i.startLineNumber,u.startLineNumber),h=Math.min(i.endLineNumber,u.endLineNumber);if(!(d>h)){for(var f=d;f<=h;f++)n.set(f,!0);var p=(d-i.startLineNumber)*r,g=(h-i.startLineNumber)*r+r;l>=p||(l>s&&e.fillRect(M.y0,s,e.canvas.width,l-s),s=p),l=g}}}catch(v){c.e(v)}finally{c.f()}l>s&&e.fillRect(M.y0,s,e.canvas.width,l-s)}}},{key:"_renderDecorationsLineHighlights",value:function(e,t,n,i,r){for(var o=new Map,a=t.length-1;a>=0;a--){var s=t[a],l=s.options.minimap;if(l&&l.position===an.F5.Inline){var c=Math.max(i.startLineNumber,s.range.startLineNumber),u=Math.min(i.endLineNumber,s.range.endLineNumber);if(!(c>u)){var d=l.getColor(this._theme.value);if(d&&!d.isTransparent()){var h=o.get(d.toString());h||(h=d.transparent(.5).toString(),o.set(d.toString(),h)),e.fillStyle=h;for(var f=c;f<=u;f++)if(!n.has(f)){n.set(f,!0);var p=(c-i.startLineNumber)*r;e.fillRect(M.y0,p,e.canvas.width,r)}}}}}}},{key:"_renderSelectionsHighlights",value:function(e,t,n,i,r,a,s,l){if(this._selectionColor&&!this._selectionColor.isTransparent()){var c,u=(0,o.Z)(t);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=Math.max(i.startLineNumber,d.startLineNumber),f=Math.min(i.endLineNumber,d.endLineNumber);if(!(h>f))for(var p=h;p<=f;p++)this.renderDecorationOnLine(e,n,d,this._selectionColor,i,p,r,r,a,s,l)}}catch(g){u.e(g)}finally{u.f()}}}},{key:"_renderDecorationsHighlights",value:function(e,t,n,i,r,a,s,l){var c,u=(0,o.Z)(t);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=d.options.minimap;if(h){var f=Math.max(i.startLineNumber,d.range.startLineNumber),p=Math.min(i.endLineNumber,d.range.endLineNumber);if(!(f>p)){var g=h.getColor(this._theme.value);if(g&&!g.isTransparent())for(var v=f;v<=p;v++)switch(h.position){case an.F5.Inline:this.renderDecorationOnLine(e,n,d.range,g,i,v,r,r,a,s,l);continue;case an.F5.Gutter:var m=(v-i.startLineNumber)*r;this.renderDecoration(e,g,2,m,2,r);continue}}}}}catch(y){u.e(y)}finally{u.f()}}},{key:"renderDecorationOnLine",value:function(e,t,n,i,r,o,a,s,l,c,u){var d=(o-r.startLineNumber)*s;if(!(d+a<0||d>this._model.options.canvasInnerHeight)){var h=n.startLineNumber,f=n.endLineNumber,p=h===o?n.startColumn:1,g=f===o?n.endColumn:this._model.getLineMaxColumn(o),v=this.getXOffsetForPosition(t,o,p,l,c,u),m=this.getXOffsetForPosition(t,o,g,l,c,u);this.renderDecoration(e,i,v,d,m-v,a)}}},{key:"getXOffsetForPosition",value:function(e,t,n,i,r,o){if(1===n)return M.y0;if((n-1)*r>=o)return o;var a=e.get(t);if(!a){var s=this._model.getLineContent(t);a=[M.y0];for(var l=M.y0,c=1;c<s.length+1;c++){var u=s.charCodeAt(c-1),d=l+(9===u?i*r:Ye.K7(u)?2*r:r);if(d>=o){a[c]=o;break}a[c]=d,l=d}e.set(t,a)}return n-1<a.length?a[n-1]:o}},{key:"renderDecoration",value:function(e,t,n,i,r,o){e.fillStyle=t&&t.toString()||"",e.fillRect(n,i,r,o)}},{key:"renderLines",value:function(e){var t=e.startLineNumber,r=e.endLineNumber,o=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var a=this._lastRenderData._get();return new un(e,a.imageData,a.lines)}var s=this._getBuffer();if(!s)return null;for(var l=n._renderUntouchedLines(s,t,r,o,this._lastRenderData),c=(0,i.Z)(l,3),u=c[0],d=c[1],h=c[2],f=this._model.getMinimapLinesRenderingData(t,r,h),p=this._model.getOptions().tabSize,g=this._model.options.defaultBackgroundColor,v=this._model.options.backgroundColor,m=this._model.options.foregroundAlpha,y=this._model.tokensColorTracker,_=y.backgroundIsLight(),b=this._model.options.renderMinimap,C=this._model.options.charRenderer(),S=this._model.options.fontScale,w=this._model.options.minimapCharWidth,k=(1===b?2:3)*S,x=o>k?Math.floor((o-k)/2):0,E=v.a/255,T=new Yt(Math.round((v.r-g.r)*E+g.r),Math.round((v.g-g.g)*E+g.g),Math.round((v.b-g.b)*E+g.b),255),N=0,I=[],D=0,L=r-t+1;D<L;D++)h[D]&&n._renderLine(s,T,v.a,_,b,w,y,m,C,N,x,p,f[D],S,o),I[D]=new cn(N),N+=o;var O=-1===u?0:u,R=(-1===d?s.height:d)-O;return this._canvas.domNode.getContext("2d").putImageData(s,0,0,0,O,s.width,R),new un(e,s,I)}}],[{key:"_renderUntouchedLines",value:function(e,t,n,i,r){var o=[];if(!r){for(var a=0,s=n-t+1;a<s;a++)o[a]=!0;return[-1,-1,o]}for(var l=r._get(),c=l.imageData.data,u=l.rendLineNumberStart,d=l.lines,h=d.length,f=e.width,p=e.data,g=(n-t+1)*i*f*4,v=-1,m=-1,y=-1,_=-1,b=-1,C=-1,S=0,w=t;w<=n;w++){var k=w-t,x=w-u,E=x>=0&&x<h?d[x].dy:-1;if(-1!==E){var T=E*f*4,N=(E+i)*f*4,I=S*f*4,D=(S+i)*f*4;_===T&&C===I?(_=N,C=D):(-1!==y&&(p.set(c.subarray(y,_),b),-1===v&&0===y&&y===b&&(v=_),-1===m&&_===g&&y===b&&(m=y)),y=T,_=N,b=I,C=D),o[k]=!1,S+=i}else o[k]=!0,S+=i}return-1!==y&&(p.set(c.subarray(y,_),b),-1===v&&0===y&&y===b&&(v=_),-1===m&&_===g&&y===b&&(m=y)),[-1===v?-1:v/(4*f),-1===m?-1:m/(4*f),o]}},{key:"_renderLine",value:function(e,t,n,i,r,o,a,s,l,c,u,d,h,f,p){for(var g=h.content,v=h.tokens,m=e.width-o,y=1===p,_=M.y0,b=0,C=0,S=0,w=v.getCount();S<w;S++)for(var k=v.getEndOffset(S),x=v.getForeground(S),E=a.getColor(x);b<k;b++){if(_>m)return;var T=g.charCodeAt(b);if(9===T){var N=d-(b+C)%d;C+=N-1,_+=N*o}else if(32===T)_+=o;else for(var I=Ye.K7(T)?2:1,D=0;D<I;D++)if(2===r?l.blockRenderChar(e,_,c+u,E,s,t,n,y):l.renderChar(e,_,c+u,T,E,s,t,n,f,i,y),(_+=o)>m)return}}}]),n}(S.JT),gn=function(){function e(t,n,i){(0,d.Z)(this,e),this._startLineNumber=t,this._endLineNumber=n,this._defaultValue=i,this._values=[];for(var r=0,o=this._endLineNumber-this._startLineNumber+1;r<o;r++)this._values[r]=i}return(0,h.Z)(e,[{key:"has",value:function(e){return this.get(e)!==this._defaultValue}},{key:"set",value:function(e,t){e<this._startLineNumber||e>this._endLineNumber||(this._values[e-this._startLineNumber]=t)}},{key:"get",value:function(e){return e<this._startLineNumber||e>this._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}]),e}();(0,Je.Ic)((function(e,t){var n=e.getColor(Dt.CA6);n&&t.addRule(".monaco-editor .minimap-slider .minimap-slider-horizontal { background: ".concat(n,"; }"));var i=e.getColor(Dt.Xy4);i&&t.addRule(".monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ".concat(i,"; }"));var r=e.getColor(Dt.brw);r&&t.addRule(".monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ".concat(r,"; }"));var o=e.getColor(Dt._wn);o&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: ".concat(o," -6px 0 6px -6px inset; }"))}));var vn=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n);var r=(i=t.call(this,e))._context.configuration.options.get(133);return i._widgets={},i._verticalScrollbarWidth=r.verticalScrollbarWidth,i._minimapWidth=r.minimap.minimapWidth,i._horizontalScrollbarHeight=r.horizontalScrollbarHeight,i._editorHeight=r.height,i._editorWidth=r.width,i._domNode=(0,q.X)(document.createElement("div")),ne.write(i._domNode,4),i._domNode.setClassName("overlayWidgets"),i}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this),this._widgets={}}},{key:"getDomNode",value:function(){return this._domNode}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options.get(133);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}},{key:"addWidget",value:function(e){var t=(0,q.X)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}},{key:"setWidgetPosition",value:function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)}},{key:"removeWidget",value:function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}}},{key:"_renderWidget",value:function(e){var t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){var n=t.domNode.clientHeight;t.setTop(this._editorHeight-n-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.setTop("")}},{key:"prepareRender",value:function(e){}},{key:"render",value:function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),n=0,i=t.length;n<i;n++){var r=t[n];this._renderWidget(this._widgets[r])}}}]),n}(te),mn=function(){function e(t,n){(0,d.Z)(this,e);var r=t.options;this.lineHeight=r.get(61),this.pixelRatio=r.get(131),this.overviewRulerLanes=r.get(76),this.renderBorder=r.get(75);var o=n.getColor(Qe.zw);this.borderColor=o?o.toString():null,this.hideCursor=r.get(54);var a=n.getColor(Qe.n0);this.cursorColor=a?a.transparent(.7).toString():null,this.themeType=n.type;var s=r.get(67),l=s.enabled,c=s.side,u=n.getColor(Qe.e_),h=rt.RW.getDefaultBackground(),f=null;void 0!==u?f=u:l&&(f=h),this.backgroundColor=null===f||"left"===c?null:ot.Il.Format.CSS.formatHex(f);var p=r.get(133).overviewRuler;this.top=p.top,this.right=p.right,this.domWidth=p.width,this.domHeight=p.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);var g=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),v=(0,i.Z)(g,2),m=v[0],y=v[1];this.x=m,this.w=y}return(0,h.Z)(e,[{key:"_initLanes",value:function(e,t,n){var i=t-e;if(n>=3){var r=Math.floor(i/3),o=Math.floor(i/3),a=i-r-o,s=e+r;return[[0,e,s,e,e+r+a,e,s,e],[0,r,a,r+a,o,r+a+o,a+o,r+a+o]]}if(2===n){var l=Math.floor(i/2),c=i-l;return[[0,e,e,e,e+l,e,e,e],[0,l,l,l,c,l+c,l+c,l+c]]}return[[0,e,e,e,e,e,e,e],[0,i,i,i,i,i,i,i]]}},{key:"equals",value:function(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}]),e}(),yn=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this,e))._domNode=(0,q.X)(document.createElement("canvas")),i._domNode.setClassName("decorationsOverviewRuler"),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._domNode.setContain("strict"),i._domNode.setAttribute("aria-hidden","true"),i._updateSettings(!1),i._tokensColorTrackerListener=rt.RW.onDidChange((function(e){e.changedColorMap&&i._updateSettings(!0)})),i._cursorPositions=[],i}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this),this._tokensColorTrackerListener.dispose()}},{key:"_updateSettings",value:function(e){var t=new mn(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}},{key:"onConfigurationChanged",value:function(e){return this._updateSettings(!1)}},{key:"onCursorStateChanged",value:function(e){this._cursorPositions=[];for(var t=0,n=e.selections.length;t<n;t++)this._cursorPositions[t]=e.selections[t].getPosition();return this._cursorPositions.sort(xe.L.compare),!0}},{key:"onDecorationsChanged",value:function(e){return!!e.affectsOverviewRuler}},{key:"onFlushed",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollHeightChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"onThemeChanged",value:function(e){return this._updateSettings(!1)}},{key:"getDomNode",value:function(){return this._domNode.domNode}},{key:"prepareRender",value:function(e){}},{key:"render",value:function(e){this._render()}},{key:"_render",value:function(){if(0===this._settings.overviewRulerLanes)return this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:""),void this._domNode.setDisplay("none");this._domNode.setDisplay("block");var e=this._settings.canvasWidth,t=this._settings.canvasHeight,n=this._settings.lineHeight,i=this._context.viewLayout,r=t/this._context.viewLayout.getScrollHeight(),a=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme),s=6*this._settings.pixelRatio|0,l=s/2|0,c=this._domNode.domNode.getContext("2d");null===this._settings.backgroundColor?c.clearRect(0,0,e,t):(c.fillStyle=this._settings.backgroundColor,c.fillRect(0,0,e,t));var u=this._settings.x,d=this._settings.w;a.sort($t.SQ.cmp);var h,f=(0,o.Z)(a);try{for(f.s();!(h=f.n()).done;){var p=h.value,g=p.color,v=p.data;c.fillStyle=g;for(var m=0,y=0,_=0,b=0,C=v.length/3;b<C;b++){var S=v[3*b],w=v[3*b+1],k=v[3*b+2],x=i.getVerticalOffsetForLineNumber(w)*r|0,E=(i.getVerticalOffsetForLineNumber(k)+n)*r|0;if(E-x<s){var T=(x+E)/2|0;T<l?T=l:T+l>t&&(T=t-l),x=T-l,E=T+l}x>_+1||S!==m?(0!==b&&c.fillRect(u[m],y,d[m],_-y),m=S,y=x,_=E):E>_&&(_=E)}c.fillRect(u[m],y,d[m],_-y)}}catch(H){f.e(H)}finally{f.f()}if(!this._settings.hideCursor&&this._settings.cursorColor){var N=2*this._settings.pixelRatio|0,I=N/2|0,D=this._settings.x[7],L=this._settings.w[7];c.fillStyle=this._settings.cursorColor;for(var O=-100,R=-100,A=0,M=this._cursorPositions.length;A<M;A++){var P=this._cursorPositions[A],Z=i.getVerticalOffsetForLineNumber(P.lineNumber)*r|0;Z<I?Z=I:Z+I>t&&(Z=t-I);var F=Z-I,B=F+N;F>R+1?(0!==A&&c.fillRect(D,O,L,R-O),O=F,R=B):B>R&&(R=B)}c.fillRect(D,O,L,R-O)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(c.beginPath(),c.lineWidth=1,c.strokeStyle=this._settings.borderColor,c.moveTo(0,0),c.lineTo(0,t),c.stroke(),c.moveTo(0,0),c.lineTo(e,0),c.stroke())}}]),n}(te),_n=n(47799),bn=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i){var r;(0,d.Z)(this,n),(r=t.call(this))._context=e;var o=r._context.configuration.options;return r._domNode=(0,q.X)(document.createElement("canvas")),r._domNode.setClassName(i),r._domNode.setPosition("absolute"),r._domNode.setLayerHinting(!0),r._domNode.setContain("strict"),r._zoneManager=new _n.Tj((function(e){return r._context.viewLayout.getVerticalOffsetForLineNumber(e)})),r._zoneManager.setDOMWidth(0),r._zoneManager.setDOMHeight(0),r._zoneManager.setOuterHeight(r._context.viewLayout.getScrollHeight()),r._zoneManager.setLineHeight(o.get(61)),r._zoneManager.setPixelRatio(o.get(131)),r._context.addEventHandler((0,a.Z)(r)),r}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options;return e.hasChanged(61)&&(this._zoneManager.setLineHeight(t.get(61)),this._render()),e.hasChanged(131)&&(this._zoneManager.setPixelRatio(t.get(131)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}},{key:"onFlushed",value:function(e){return this._render(),!0}},{key:"onScrollChanged",value:function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}},{key:"onZonesChanged",value:function(e){return this._render(),!0}},{key:"getDomNode",value:function(){return this._domNode.domNode}},{key:"setLayout",value:function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,(t=this._zoneManager.setDOMHeight(e.height)||t)&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}},{key:"setZones",value:function(e){this._zoneManager.setZones(e),this._render()}},{key:"_render",value:function(){if(0===this._zoneManager.getOuterHeight())return!1;var e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),i=this._zoneManager.getId2Color(),r=this._domNode.domNode.getContext("2d");return r.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(r,n,i,e),!0}},{key:"_renderOneLane",value:function(e,t,n,i){var r,a=0,s=0,l=0,c=(0,o.Z)(t);try{for(c.s();!(r=c.n()).done;){var u=r.value,d=u.colorId,h=u.from,f=u.to;d!==a?(e.fillRect(0,s,i,l-s),a=d,e.fillStyle=n[a],s=h,l=f):l>=h?l=Math.max(l,f):(e.fillRect(0,s,i,l-s),s=h,l=f)}}catch(p){c.e(p)}finally{c.f()}e.fillRect(0,s,i,l-s)}}]),n}(ee),Cn=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n),(i=t.call(this,e)).domNode=(0,q.X)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.domNode.setClassName("view-rulers"),i._renderedRulers=[];var r=i._context.configuration.options;return i._rulers=r.get(93),i._typicalHalfwidthCharacterWidth=r.get(46).typicalHalfwidthCharacterWidth,i}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options;return this._rulers=t.get(93),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}},{key:"onScrollChanged",value:function(e){return e.scrollHeightChanged}},{key:"prepareRender",value:function(e){}},{key:"_ensureRulersCount",value:function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e<t)for(var n=this._context.viewModel.model.getOptions().tabSize,i=t-e;i>0;){var r=(0,q.X)(document.createElement("div"));r.setClassName("view-ruler"),r.setWidth(n),this.domNode.appendChild(r),this._renderedRulers.push(r),i--}else for(var o=e-t;o>0;){var a=this._renderedRulers.pop();this.domNode.removeChild(a),o--}}},{key:"render",value:function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t<n;t++){var i=this._renderedRulers[t],r=this._rulers[t];i.setBoxShadow(r.color?"1px 0 0 0 ".concat(r.color," inset"):""),i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(r.column*this._typicalHalfwidthCharacterWidth)}}}]),n}(te);(0,Je.Ic)((function(e,t){var n=e.getColor(Qe.zk);n&&t.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ".concat(n," inset; }"))}));var Sn=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n),(i=t.call(this,e))._scrollTop=0,i._width=0,i._updateWidth(),i._shouldShow=!1;var r=i._context.configuration.options.get(94);return i._useShadows=r.useShadows,i._domNode=(0,q.X)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"_updateShouldShow",value:function(){var e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}},{key:"getDomNode",value:function(){return this._domNode}},{key:"_updateWidth",value:function(){var e=this._context.configuration.options.get(133);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.verticalScrollbarWidth}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options.get(94);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}},{key:"onScrollChanged",value:function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}},{key:"prepareRender",value:function(e){}},{key:"render",value:function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}]),n}(te);(0,Je.Ic)((function(e,t){var n=e.getColor(Dt._wn);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: ".concat(n," 0 6px 6px -6px inset; }"))}));var wn=(0,h.Z)((function e(t){(0,d.Z)(this,e),this.left=t.left,this.width=t.width,this.startStyle=null,this.endStyle=null})),kn=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.lineNumber=t,this.ranges=n}));function xn(e){return new wn(e)}function En(e){return new kn(e.lineNumber,e.ranges.map(xn))}var Tn=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n),(i=t.call(this))._previousFrameVisibleRangesWithStyle=[],i._context=e;var r=i._context.configuration.options;return i._lineHeight=r.get(61),i._roundedSelection=r.get(92),i._typicalHalfwidthCharacterWidth=r.get(46).typicalHalfwidthCharacterWidth,i._selections=[],i._renderResult=null,i._context.addEventHandler((0,a.Z)(i)),i}return(0,h.Z)(n,[{key:"dispose",value:function(){this._context.removeEventHandler(this),this._renderResult=null,(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}},{key:"onCursorStateChanged",value:function(e){return this._selections=e.selections.slice(0),!0}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"_visibleRangesHaveGaps",value:function(e){for(var t=0,n=e.length;t<n;t++){if(e[t].ranges.length>1)return!0}return!1}},{key:"_enrichVisibleRangesWithStyle",value:function(e,t,n){var i=this._typicalHalfwidthCharacterWidth/4,r=null,o=null;if(n&&n.length>0&&t.length>0){var a=t[0].lineNumber;if(a===e.startLineNumber)for(var s=0;!r&&s<n.length;s++)n[s].lineNumber===a&&(r=n[s].ranges[0]);var l=t[t.length-1].lineNumber;if(l===e.endLineNumber)for(var c=n.length-1;!o&&c>=0;c--)n[c].lineNumber===l&&(o=n[c].ranges[0]);r&&!r.startStyle&&(r=null),o&&!o.startStyle&&(o=null)}for(var u=0,d=t.length;u<d;u++){var h=t[u].ranges[0],f=h.left,p=h.left+h.width,g={top:0,bottom:0},v={top:0,bottom:0};if(u>0){var m=t[u-1].ranges[0].left,y=t[u-1].ranges[0].left+t[u-1].ranges[0].width;Nn(f-m)<i?g.top=2:f>m&&(g.top=1),Nn(p-y)<i?v.top=2:m<p&&p<y&&(v.top=1)}else r&&(g.top=r.startStyle.top,v.top=r.endStyle.top);if(u+1<d){var _=t[u+1].ranges[0].left,b=t[u+1].ranges[0].left+t[u+1].ranges[0].width;Nn(f-_)<i?g.bottom=2:_<f&&f<b&&(g.bottom=1),Nn(p-b)<i?v.bottom=2:p<b&&(v.bottom=1)}else o&&(g.bottom=o.startStyle.bottom,v.bottom=o.endStyle.bottom);h.startStyle=g,h.endStyle=v}}},{key:"_getVisibleRangesWithStyle",value:function(e,t,n){var i=(t.linesVisibleRangesForRange(e,!0)||[]).map(En);return!this._visibleRangesHaveGaps(i)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,i,n),i}},{key:"_createSelectionPiece",value:function(e,t,n,i,r){return'<div class="cslr '+n+'" style="top:'+e.toString()+"px;left:"+i.toString()+"px;width:"+r.toString()+"px;height:"+t+'px;"></div>'}},{key:"_actualRenderOneSelection",value:function(e,t,i,r){if(0!==r.length)for(var o=!!r[0].ranges[0].startStyle,a=this._lineHeight.toString(),s=(this._lineHeight-1).toString(),l=r[0].lineNumber,c=r[r.length-1].lineNumber,u=0,d=r.length;u<d;u++){for(var h=r[u],f=h.lineNumber,p=f-t,g=i&&(f===c||f===l)?s:a,v=i&&f===l?1:0,m="",y="",_=0,b=h.ranges.length;_<b;_++){var C=h.ranges[_];if(o){var S=C.startStyle,w=C.endStyle;if(1===S.top||1===S.bottom){m+=this._createSelectionPiece(v,g,n.SELECTION_CLASS_NAME,C.left-n.ROUNDED_PIECE_WIDTH,n.ROUNDED_PIECE_WIDTH);var k=n.EDITOR_BACKGROUND_CLASS_NAME;1===S.top&&(k+=" "+n.SELECTION_TOP_RIGHT),1===S.bottom&&(k+=" "+n.SELECTION_BOTTOM_RIGHT),m+=this._createSelectionPiece(v,g,k,C.left-n.ROUNDED_PIECE_WIDTH,n.ROUNDED_PIECE_WIDTH)}if(1===w.top||1===w.bottom){m+=this._createSelectionPiece(v,g,n.SELECTION_CLASS_NAME,C.left+C.width,n.ROUNDED_PIECE_WIDTH);var x=n.EDITOR_BACKGROUND_CLASS_NAME;1===w.top&&(x+=" "+n.SELECTION_TOP_LEFT),1===w.bottom&&(x+=" "+n.SELECTION_BOTTOM_LEFT),m+=this._createSelectionPiece(v,g,x,C.left+C.width,n.ROUNDED_PIECE_WIDTH)}}var E=n.SELECTION_CLASS_NAME;if(o){var T=C.startStyle,N=C.endStyle;0===T.top&&(E+=" "+n.SELECTION_TOP_LEFT),0===T.bottom&&(E+=" "+n.SELECTION_BOTTOM_LEFT),0===N.top&&(E+=" "+n.SELECTION_TOP_RIGHT),0===N.bottom&&(E+=" "+n.SELECTION_BOTTOM_RIGHT)}y+=this._createSelectionPiece(v,g,E,C.left,C.width)}e[p][0]+=m,e[p][1]+=y}}},{key:"prepareRender",value:function(e){for(var t=[],n=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,o=n;o<=r;o++){t[o-n]=["",""]}for(var a=[],s=0,l=this._selections.length;s<l;s++){var c=this._selections[s];if(c.isEmpty())a[s]=null;else{var u=this._getVisibleRangesWithStyle(c,e,this._previousFrameVisibleRangesWithStyle[s]);a[s]=u,this._actualRenderOneSelection(t,n,this._selections.length>1,u)}}this._previousFrameVisibleRangesWithStyle=a,this._renderResult=t.map((function(e){var t=(0,i.Z)(e,2);return t[0]+t[1]}))}},{key:"render",value:function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}]),n}(Xe);function Nn(e){return e<0?-e:e}Tn.SELECTION_CLASS_NAME="selected-text",Tn.SELECTION_TOP_LEFT="top-left-radius",Tn.SELECTION_BOTTOM_LEFT="bottom-left-radius",Tn.SELECTION_TOP_RIGHT="top-right-radius",Tn.SELECTION_BOTTOM_RIGHT="bottom-right-radius",Tn.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",Tn.ROUNDED_PIECE_WIDTH=10,(0,Je.Ic)((function(e,t){var n=e.getColor(Dt.hEj);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: ".concat(n,"; }"));var i=e.getColor(Dt.ES4);i&&t.addRule(".monaco-editor .selected-text { background-color: ".concat(i,"; }"));var r=e.getColor(Dt.yb5);r&&!r.isTransparent()&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: ".concat(r,"; }"))}));var In=(0,h.Z)((function e(t,n,i,r,o,a){(0,d.Z)(this,e),this.top=t,this.left=n,this.width=i,this.height=r,this.textContent=o,this.textContentClassName=a})),Dn=function(){function e(t){(0,d.Z)(this,e),this._context=t;var n=this._context.configuration.options,i=n.get(46);this._cursorStyle=n.get(24),this._lineHeight=n.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(n.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,q.X)(document.createElement("div")),this._domNode.setClassName("cursor ".concat(it.S)),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,qe.N)(this._domNode,i),this._domNode.setDisplay("none"),this._position=new xe.L(1,1),this._lastRenderedContent="",this._renderData=null}return(0,h.Z)(e,[{key:"getDomNode",value:function(){return this._domNode}},{key:"getPosition",value:function(){return this._position}},{key:"show",value:function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}},{key:"hide",value:function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options,n=t.get(46);return this._cursorStyle=t.get(24),this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),(0,qe.N)(this._domNode,n),!0}},{key:"onCursorPositionChanged",value:function(e){return this._position=e,!0}},{key:"_getGraphemeAwarePosition",value:function(){var e=this._position,t=e.lineNumber,n=e.column,r=this._context.viewModel.getLineContent(t),o=Ye.J_(r,n-1),a=(0,i.Z)(o,2),s=a[0],l=a[1];return[new xe.L(t,s+1),r.substring(s,l)]}},{key:"_prepareRender",value:function(e){var t="",n=this._getGraphemeAwarePosition(),r=(0,i.Z)(n,2),o=r[0],a=r[1];if(this._cursorStyle===M.d2.Line||this._cursorStyle===M.d2.LineThin){var s,l=e.visibleRangeForPosition(o);if(!l||l.outsideRenderedLine)return null;this._cursorStyle===M.d2.Line?(s=_.computeScreenAwareSize(this._lineCursorWidth>0?this._lineCursorWidth:2))>2&&(t=a):s=_.computeScreenAwareSize(1);var c=l.left;s>=2&&c>=1&&(c-=1);var u=e.getVerticalOffsetForLineNumber(o.lineNumber)-e.bigNumbersDelta;return new In(u,c,s,this._lineHeight,t,"")}var d=e.linesVisibleRangesForRange(new Ee.e(o.lineNumber,o.column,o.lineNumber,o.column+a.length),!1);if(!d||0===d.length)return null;var h=d[0];if(h.outsideRenderedLine||0===h.ranges.length)return null;var f=h.ranges[0],p="\t"===a||f.width<1?this._typicalHalfwidthCharacterWidth:f.width,g="";if(this._cursorStyle===M.d2.Block){var v=this._context.viewModel.getViewLineData(o.lineNumber);t=a;var m=v.tokens.findTokenIndexAtOffset(o.column-1);g=v.tokens.getClassName(m)}var y=e.getVerticalOffsetForLineNumber(o.lineNumber)-e.bigNumbersDelta,b=this._lineHeight;return this._cursorStyle!==M.d2.Underline&&this._cursorStyle!==M.d2.UnderlineThin||(y+=this._lineHeight-2,b=2),new In(y,f.left,p,b,t,g)}},{key:"prepareRender",value:function(e){this._renderData=this._prepareRender(e)}},{key:"render",value:function(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor ".concat(it.S," ").concat(this._renderData.textContentClassName)),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}]),e}(),Ln=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n);var r=(i=t.call(this,e))._context.configuration.options;return i._readOnly=r.get(83),i._cursorBlinking=r.get(22),i._cursorStyle=r.get(24),i._cursorSmoothCaretAnimation=r.get(23),i._selectionIsEmpty=!0,i._isComposingInput=!1,i._isVisible=!1,i._primaryCursor=new Dn(i._context),i._secondaryCursors=[],i._renderData=[],i._domNode=(0,q.X)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._updateDomClassName(),i._domNode.appendChild(i._primaryCursor.getDomNode()),i._startCursorBlinkAnimation=new Q._F,i._cursorFlatBlinkInterval=new Q.zh,i._blinkingEnabled=!1,i._editorHasFocus=!1,i._updateBlinking(),i}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}},{key:"getDomNode",value:function(){return this._domNode}},{key:"onCompositionStart",value:function(e){return this._isComposingInput=!0,this._updateBlinking(),!0}},{key:"onCompositionEnd",value:function(e){return this._isComposingInput=!1,this._updateBlinking(),!0}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(var n=0,i=this._secondaryCursors.length;n<i;n++)this._secondaryCursors[n].onConfigurationChanged(e);return!0}},{key:"_onCursorPositionChanged",value:function(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length)for(var n=t.length-this._secondaryCursors.length,i=0;i<n;i++){var r=new Dn(this._context);this._domNode.domNode.insertBefore(r.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(r)}else if(this._secondaryCursors.length>t.length)for(var o=this._secondaryCursors.length-t.length,a=0;a<o;a++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1);for(var s=0;s<t.length;s++)this._secondaryCursors[s].onCursorPositionChanged(t[s])}},{key:"onCursorStateChanged",value:function(e){for(var t=[],n=0,i=e.selections.length;n<i;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));var r=e.selections[0].isEmpty();return this._selectionIsEmpty!==r&&(this._selectionIsEmpty=r,this._updateDomClassName()),!0}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onFlushed",value:function(e){return!0}},{key:"onFocusChanged",value:function(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}},{key:"onLinesChanged",value:function(e){return!0}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return!0}},{key:"onTokensChanged",value:function(e){var t=function(t){for(var n=0,i=e.ranges.length;n<i;n++)if(e.ranges[n].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[n].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;var n,i=(0,o.Z)(this._secondaryCursors);try{for(i.s();!(n=i.n()).done;){if(t(n.value.getPosition()))return!0}}catch(r){i.e(r)}finally{i.f()}return!1}},{key:"onZonesChanged",value:function(e){return!0}},{key:"_getCursorBlinking",value:function(){return this._isComposingInput?0:this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}},{key:"_updateBlinking",value:function(){var e=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var t=this._getCursorBlinking(),i=0===t,r=5===t;i?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),i||r||(1===t?this._cursorFlatBlinkInterval.cancelAndSet((function(){e._isVisible?e._hide():e._show()}),n.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet((function(){e._blinkingEnabled=!0,e._updateDomClassName()}),n.BLINK_INTERVAL))}},{key:"_updateDomClassName",value:function(){this._domNode.setClassName(this._getClassName())}},{key:"_getClassName",value:function(){var e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case M.d2.Line:e+=" cursor-line-style";break;case M.d2.Block:e+=" cursor-block-style";break;case M.d2.Underline:e+=" cursor-underline-style";break;case M.d2.LineThin:e+=" cursor-line-thin-style";break;case M.d2.BlockOutline:e+=" cursor-block-outline-style";break;case M.d2.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}},{key:"_show",value:function(){this._primaryCursor.show();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}},{key:"_hide",value:function(){this._primaryCursor.hide();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}},{key:"prepareRender",value:function(e){this._primaryCursor.prepareRender(e);for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].prepareRender(e)}},{key:"render",value:function(e){var t=[],n=0,i=this._primaryCursor.render(e);i&&(t[n++]=i);for(var r=0,o=this._secondaryCursors.length;r<o;r++){var a=this._secondaryCursors[r].render(e);a&&(t[n++]=a)}this._renderData=t}},{key:"getLastRenderData",value:function(){return this._renderData}}]),n}(te);Ln.BLINK_INTERVAL=500,(0,Je.Ic)((function(e,t){var n=e.getColor(Qe.n0);if(n){var i=e.getColor(Qe.fY);i||(i=n.opposite()),t.addRule(".monaco-editor .inputarea.ime-input { caret-color: ".concat(n,"; }")),t.addRule(".monaco-editor .cursors-layer .cursor { background-color: ".concat(n,"; border-color: ").concat(n,"; color: ").concat(i,"; }")),(0,he.c3)(e.type)&&t.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ".concat(i,"; border-right: 1px solid ").concat(i,"; }"))}}));var On=function(){throw new Error("Invalid change accessor")},Rn=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;(0,d.Z)(this,n);var r=(i=t.call(this,e))._context.configuration.options,o=r.get(133);return i._lineHeight=r.get(61),i._contentWidth=o.contentWidth,i._contentLeft=o.contentLeft,i.domNode=(0,q.X)(document.createElement("div")),i.domNode.setClassName("view-zones"),i.domNode.setPosition("absolute"),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.marginDomNode=(0,q.X)(document.createElement("div")),i.marginDomNode.setClassName("margin-view-zones"),i.marginDomNode.setPosition("absolute"),i.marginDomNode.setAttribute("role","presentation"),i.marginDomNode.setAttribute("aria-hidden","true"),i._zones={},i}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this),this._zones={}}},{key:"_recomputeWhitespacesProps",value:function(){var e,t=this,n=this._context.viewLayout.getWhitespaces(),i=new Map,r=(0,o.Z)(n);try{for(r.s();!(e=r.n()).done;){var a=e.value;i.set(a.id,a)}}catch(l){r.e(l)}finally{r.f()}var s=!1;return this._context.viewModel.changeWhitespace((function(e){for(var n=Object.keys(t._zones),r=0,o=n.length;r<o;r++){var a=n[r],l=t._zones[a],c=t._computeWhitespaceProps(l.delegate);l.isInHiddenArea=c.isInHiddenArea;var u=i.get(a);!u||u.afterLineNumber===c.afterViewLineNumber&&u.height===c.heightInPx||(e.changeOneWhitespace(a,c.afterViewLineNumber,c.heightInPx),t._safeCallOnComputedHeight(l.delegate,c.heightInPx),s=!0)}})),s}},{key:"onConfigurationChanged",value:function(e){var t=this._context.configuration.options,n=t.get(133);return this._lineHeight=t.get(61),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,e.hasChanged(61)&&this._recomputeWhitespacesProps(),!0}},{key:"onLineMappingChanged",value:function(e){return this._recomputeWhitespacesProps()}},{key:"onLinesDeleted",value:function(e){return!0}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged||e.scrollWidthChanged}},{key:"onZonesChanged",value:function(e){return!0}},{key:"onLinesInserted",value:function(e){return!0}},{key:"_getZoneOrdinal",value:function(e){return"undefined"!==typeof e.afterColumn?e.afterColumn:1e4}},{key:"_computeWhitespaceProps",value:function(e){if(0===e.afterLineNumber)return{isInHiddenArea:!1,afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};var t,n;if("undefined"!==typeof e.afterColumn)t=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{var i=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new xe.L(i,this._context.viewModel.model.getLineMaxColumn(i))}n=t.column===this._context.viewModel.model.getLineMaxColumn(t.lineNumber)?this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber+1,column:1}):this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber,column:t.column+1});var r=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t,e.afterColumnAffinity),o=this._context.viewModel.coordinatesConverter.modelPositionIsVisible(n);return{isInHiddenArea:!o,afterViewLineNumber:r.lineNumber,heightInPx:o?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}}},{key:"changeViewZones",value:function(e){var t=this,n=!1;return this._context.viewModel.changeWhitespace((function(i){var r={addZone:function(e){return n=!0,t._addZone(i,e)},removeZone:function(e){e&&(n=t._removeZone(i,e)||n)},layoutZone:function(e){e&&(n=t._layoutZone(i,e)||n)}};!function(e,t){try{e(t)}catch(n){(0,b.dL)(n)}}(e,r),r.addZone=On,r.removeZone=On,r.layoutZone=On})),n}},{key:"_addZone",value:function(e,t){var n=this._computeWhitespaceProps(t),i={whitespaceId:e.insertWhitespace(n.afterViewLineNumber,this._getZoneOrdinal(t),n.heightInPx,n.minWidthInPx),delegate:t,isInHiddenArea:n.isInHiddenArea,isVisible:!1,domNode:(0,q.X)(t.domNode),marginDomNode:t.marginDomNode?(0,q.X)(t.marginDomNode):null};return this._safeCallOnComputedHeight(i.delegate,n.heightInPx),i.domNode.setPosition("absolute"),i.domNode.domNode.style.width="100%",i.domNode.setDisplay("none"),i.domNode.setAttribute("monaco-view-zone",i.whitespaceId),this.domNode.appendChild(i.domNode),i.marginDomNode&&(i.marginDomNode.setPosition("absolute"),i.marginDomNode.domNode.style.width="100%",i.marginDomNode.setDisplay("none"),i.marginDomNode.setAttribute("monaco-view-zone",i.whitespaceId),this.marginDomNode.appendChild(i.marginDomNode)),this._zones[i.whitespaceId]=i,this.setShouldRender(),i.whitespaceId}},{key:"_removeZone",value:function(e,t){if(this._zones.hasOwnProperty(t)){var n=this._zones[t];return delete this._zones[t],e.removeWhitespace(n.whitespaceId),n.domNode.removeAttribute("monaco-visible-view-zone"),n.domNode.removeAttribute("monaco-view-zone"),n.domNode.domNode.parentNode.removeChild(n.domNode.domNode),n.marginDomNode&&(n.marginDomNode.removeAttribute("monaco-visible-view-zone"),n.marginDomNode.removeAttribute("monaco-view-zone"),n.marginDomNode.domNode.parentNode.removeChild(n.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}},{key:"_layoutZone",value:function(e,t){if(this._zones.hasOwnProperty(t)){var n=this._zones[t],i=this._computeWhitespaceProps(n.delegate);return n.isInHiddenArea=i.isInHiddenArea,e.changeOneWhitespace(n.whitespaceId,i.afterViewLineNumber,i.heightInPx),this._safeCallOnComputedHeight(n.delegate,i.heightInPx),this.setShouldRender(),!0}return!1}},{key:"shouldSuppressMouseDownOnViewZone",value:function(e){if(this._zones.hasOwnProperty(e)){var t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}},{key:"_heightInPixels",value:function(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}},{key:"_minWidthInPixels",value:function(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0}},{key:"_safeCallOnComputedHeight",value:function(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(n){(0,b.dL)(n)}}},{key:"_safeCallOnDomNodeTop",value:function(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(n){(0,b.dL)(n)}}},{key:"prepareRender",value:function(e){}},{key:"render",value:function(e){var t,n=e.viewportData.whitespaceViewportData,i={},r=!1,a=(0,o.Z)(n);try{for(a.s();!(t=a.n()).done;){var s=t.value;this._zones[s.id].isInHiddenArea||(i[s.id]=s,r=!0)}}catch(v){a.e(v)}finally{a.f()}for(var l=Object.keys(this._zones),c=0,u=l.length;c<u;c++){var d=l[c],h=this._zones[d],f=0,p=0,g="none";i.hasOwnProperty(d)?(f=i[d].verticalOffset-e.bigNumbersDelta,p=i[d].height,g="block",h.isVisible||(h.domNode.setAttribute("monaco-visible-view-zone","true"),h.isVisible=!0),this._safeCallOnDomNodeTop(h.delegate,e.getScrolledTopFromAbsoluteTop(i[d].verticalOffset))):(h.isVisible&&(h.domNode.removeAttribute("monaco-visible-view-zone"),h.isVisible=!1),this._safeCallOnDomNodeTop(h.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),h.domNode.setTop(f),h.domNode.setHeight(p),h.domNode.setDisplay(g),h.marginDomNode&&(h.marginDomNode.setTop(f),h.marginDomNode.setHeight(p),h.marginDomNode.setDisplay(g))}r&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}]),n}(te);var An=function(){function e(t){(0,d.Z)(this,e),this._theme=t}return(0,h.Z)(e,[{key:"type",get:function(){return this._theme.type}},{key:"value",get:function(){return this._theme}},{key:"update",value:function(e){this._theme=e}},{key:"getColor",value:function(e){return this._theme.getColor(e)}}]),e}(),Mn=function(){function e(t,n,i){(0,d.Z)(this,e),this.configuration=t,this.theme=new An(n),this.viewModel=i,this.viewLayout=i.viewLayout}return(0,h.Z)(e,[{key:"addEventHandler",value:function(e){this.viewModel.addViewEventHandler(e)}},{key:"removeEventHandler",value:function(e){this.viewModel.removeViewEventHandler(e)}}]),e}(),Pn=function(){function e(t,n,i,r){(0,d.Z)(this,e),this.selections=t,this.startLineNumber=0|n.startLineNumber,this.endLineNumber=0|n.endLineNumber,this.relativeVerticalOffset=n.relativeVerticalOffset,this.bigNumbersDelta=0|n.bigNumbersDelta,this.whitespaceViewportData=i,this._model=r,this.visibleRange=new Ee.e(n.startLineNumber,this._model.getLineMinColumn(n.startLineNumber),n.endLineNumber,this._model.getLineMaxColumn(n.endLineNumber))}return(0,h.Z)(e,[{key:"getViewLineRenderingData",value:function(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}},{key:"getDecorationsInViewport",value:function(){return this._model.getDecorationsInViewport(this.visibleRange)}}]),e}(),Zn=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this,e)).blocks=[],i.contentWidth=-1,i.domNode=(0,q.X)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.domNode.setClassName("blockDecorations-container"),i.update(),i}return(0,h.Z)(n,[{key:"update",value:function(){var e=!1,t=this._context.configuration.options.get(133),n=t.contentWidth-t.verticalScrollbarWidth;return this.contentWidth!==n&&(this.contentWidth=n,e=!0),e}},{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"onConfigurationChanged",value:function(e){return this.update()}},{key:"onScrollChanged",value:function(e){return e.scrollTopChanged||e.scrollLeftChanged}},{key:"onDecorationsChanged",value:function(e){return!0}},{key:"onZonesChanged",value:function(e){return!0}},{key:"prepareRender",value:function(e){}},{key:"render",value:function(e){var t,n=0,i=e.getDecorationsInViewport(),r=(0,o.Z)(i);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a.options.blockClassName){var s=this.blocks[n];s||(s=this.blocks[n]=(0,q.X)(document.createElement("div")),this.domNode.appendChild(s));var l=e.getVerticalOffsetForLineNumber(a.range.startLineNumber),c=e.getVerticalOffsetForLineNumber(a.range.endLineNumber+1);s.setClassName("blockDecorations-block "+a.options.blockClassName),s.setLeft(e.scrollLeft),s.setWidth(this.contentWidth),s.setTop(l),s.setHeight(c-l),n++}}}catch(d){r.e(d)}finally{r.f()}for(var u=n;u<this.blocks.length;u++)this.blocks[u].domNode.remove();this.blocks.length=n}}]),n}(te),Fn=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r,o,s,l){var c;(0,d.Z)(this,n),(c=t.call(this))._selections=[new Y.Y(1,1,1,1)],c._renderAnimationFrame=null;var u=new dt(i,o,s,e);c._context=new Mn(i,r,o),c._context.addEventHandler((0,a.Z)(c)),c._viewParts=[],c._textAreaHandler=new lt(c._context,u,c._createTextAreaHandlerHelper()),c._viewParts.push(c._textAreaHandler),c._linesContent=(0,q.X)(document.createElement("div")),c._linesContent.setClassName("lines-content monaco-editor-background"),c._linesContent.setPosition("absolute"),c.domNode=(0,q.X)(document.createElement("div")),c.domNode.setClassName(c._getEditorClassName()),c.domNode.setAttribute("role","code"),c._overflowGuardContainer=(0,q.X)(document.createElement("div")),ne.write(c._overflowGuardContainer,3),c._overflowGuardContainer.setClassName("overflow-guard"),c._scrollbar=new Lt(c._context,c._linesContent,c.domNode,c._overflowGuardContainer),c._viewParts.push(c._scrollbar),c._viewLines=new Wt(c._context,c._linesContent),c._viewZones=new Rn(c._context),c._viewParts.push(c._viewZones);var h=new yn(c._context);c._viewParts.push(h);var f=new Sn(c._context);c._viewParts.push(f);var p=new _t(c._context);c._viewParts.push(p),p.addDynamicOverlay(new Et(c._context)),p.addDynamicOverlay(new Tn(c._context)),p.addDynamicOverlay(new Bt(c._context)),p.addDynamicOverlay(new Nt(c._context));var g=new bt(c._context);c._viewParts.push(g),g.addDynamicOverlay(new Tt(c._context)),g.addDynamicOverlay(new At(c._context)),g.addDynamicOverlay(new Gt(c._context)),g.addDynamicOverlay(new Ut(c._context)),g.addDynamicOverlay(new et(c._context));var v=new tt(c._context);v.getDomNode().appendChild(c._viewZones.marginDomNode),v.getDomNode().appendChild(g.getDomNode()),c._viewParts.push(v),c._contentWidgets=new St(c._context,c.domNode),c._viewParts.push(c._contentWidgets),c._viewCursors=new Ln(c._context),c._viewParts.push(c._viewCursors),c._overlayWidgets=new vn(c._context),c._viewParts.push(c._overlayWidgets);var m=new Cn(c._context);c._viewParts.push(m);var y=new Zn(c._context);c._viewParts.push(y);var _=new fn(c._context);if(c._viewParts.push(_),h){var b=c._scrollbar.getOverviewRulerLayoutInfo();b.parent.insertBefore(h.getDomNode(),b.insertBefore)}return c._linesContent.appendChild(p.getDomNode()),c._linesContent.appendChild(m.domNode),c._linesContent.appendChild(y.domNode),c._linesContent.appendChild(c._viewZones.domNode),c._linesContent.appendChild(c._viewLines.getDomNode()),c._linesContent.appendChild(c._contentWidgets.domNode),c._linesContent.appendChild(c._viewCursors.getDomNode()),c._overflowGuardContainer.appendChild(v.getDomNode()),c._overflowGuardContainer.appendChild(c._scrollbar.getDomNode()),c._overflowGuardContainer.appendChild(f.getDomNode()),c._overflowGuardContainer.appendChild(c._textAreaHandler.textArea),c._overflowGuardContainer.appendChild(c._textAreaHandler.textAreaCover),c._overflowGuardContainer.appendChild(c._overlayWidgets.getDomNode()),c._overflowGuardContainer.appendChild(_.getDomNode()),c.domNode.appendChild(c._overflowGuardContainer),l?l.appendChild(c._contentWidgets.overflowingContentWidgetsDomNode.domNode):c.domNode.appendChild(c._contentWidgets.overflowingContentWidgetsDomNode),c._applyLayout(),c._pointerHandler=c._register(new Ke(c._context,u,c._createPointerHandlerHelper())),c}return(0,h.Z)(n,[{key:"_flushAccumulatedAndRenderNow",value:function(){this._renderNow()}},{key:"_createPointerHandlerHelper",value:function(){var e=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:function(){e.focus()},dispatchTextAreaEvent:function(t){e._textAreaHandler.textArea.domNode.dispatchEvent(t)},getLastRenderData:function(){var t=e._viewCursors.getLastRenderData()||[],n=e._textAreaHandler.getLastRenderData();return new Le(t,n)},shouldSuppressMouseDownOnViewZone:function(t){return e._viewZones.shouldSuppressMouseDownOnViewZone(t)},shouldSuppressMouseDownOnWidget:function(t){return e._contentWidgets.shouldSuppressMouseDownOnWidget(t)},getPositionFromDOMInfo:function(t,n){return e._flushAccumulatedAndRenderNow(),e._viewLines.getPositionFromDOMInfo(t,n)},visibleRangeForPosition:function(t,n){return e._flushAccumulatedAndRenderNow(),e._viewLines.visibleRangeForPosition(new xe.L(t,n))},getLineWidth:function(t){return e._flushAccumulatedAndRenderNow(),e._viewLines.getLineWidth(t)}}}},{key:"_createTextAreaHandlerHelper",value:function(){var e=this;return{visibleRangeForPosition:function(t){return e._flushAccumulatedAndRenderNow(),e._viewLines.visibleRangeForPosition(t)}}}},{key:"_applyLayout",value:function(){var e=this._context.configuration.options.get(133);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}},{key:"_getEditorClassName",value:function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(130)+" "+(0,Je.m6)(this._context.theme.type)+e}},{key:"handleEvents",value:function(e){(0,s.Z)((0,l.Z)(n.prototype),"handleEvents",this).call(this,e),this._scheduleRender()}},{key:"onConfigurationChanged",value:function(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}},{key:"onCursorStateChanged",value:function(e){return this._selections=e.selections,!1}},{key:"onFocusChanged",value:function(e){return this.domNode.setClassName(this._getEditorClassName()),!1}},{key:"onThemeChanged",value:function(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}},{key:"dispose",value:function(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();var e,t=(0,o.Z)(this._viewParts);try{for(t.s();!(e=t.n()).done;){e.value.dispose()}}catch(i){t.e(i)}finally{t.f()}(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"_scheduleRender",value:function(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=_.runAtThisOrScheduleAtNextAnimationFrame(this._onRenderScheduled.bind(this),100))}},{key:"_onRenderScheduled",value:function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}},{key:"_renderNow",value:function(){var e=this;!function(e){try{e()}catch(t){(0,b.dL)(t)}}((function(){return e._actualRender()}))}},{key:"_getViewPartsToRender",value:function(){var e,t=[],n=0,i=(0,o.Z)(this._viewParts);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.shouldRender()&&(t[n++]=r)}}catch(a){i.e(a)}finally{i.f()}return t}},{key:"_actualRender",value:function(){if(_.isInDOM(this.domNode.domNode)){var e=this._getViewPartsToRender();if(this._viewLines.shouldRender()||0!==e.length){var t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);var n=new Pn(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(n),this._viewLines.shouldRender()&&(this._viewLines.renderText(n),this._viewLines.onDidRender(),e=this._getViewPartsToRender());var i,r=new ie(this._context.viewLayout,n,this._viewLines),a=(0,o.Z)(e);try{for(a.s();!(i=a.n()).done;){i.value.prepareRender(r)}}catch(u){a.e(u)}finally{a.f()}var s,l=(0,o.Z)(e);try{for(l.s();!(s=l.n()).done;){var c=s.value;c.render(r),c.onDidRender()}}catch(u){l.e(u)}finally{l.f()}}}}},{key:"delegateVerticalScrollbarPointerDown",value:function(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}},{key:"restoreState",value:function(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop},1),this._context.viewModel.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},1)}},{key:"getOffsetForColumn",value:function(e,t){var n=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),i=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n);this._flushAccumulatedAndRenderNow();var r=this._viewLines.visibleRangeForPosition(new xe.L(i.lineNumber,i.column));return r?r.left:-1}},{key:"getTargetAtClientPoint",value:function(e,t){var n=this._pointerHandler.getTargetAtClientPoint(e,t);return n?ht.convertViewToModelMouseTarget(n,this._context.viewModel.coordinatesConverter):null}},{key:"createOverviewRuler",value:function(e){return new bn(this._context,e)}},{key:"change",value:function(e){this._viewZones.changeViewZones(e),this._scheduleRender()}},{key:"render",value:function(e,t){if(t){this._viewLines.forceShouldRender();var n,i=(0,o.Z)(this._viewParts);try{for(i.s();!(n=i.n()).done;){n.value.forceShouldRender()}}catch(r){i.e(r)}finally{i.f()}}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}},{key:"focus",value:function(){this._textAreaHandler.focusTextArea()}},{key:"isFocused",value:function(){return this._textAreaHandler.isFocused()}},{key:"setAriaOptions",value:function(e){this._textAreaHandler.setAriaOptions(e)}},{key:"addContentWidget",value:function(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}},{key:"layoutContentWidget",value:function(e){var t,n,i=e.position&&e.position.range||null;if(null===i){var r=e.position?e.position.position:null;null!==r&&(i=new Ee.e(r.lineNumber,r.column,r.lineNumber,r.column))}var o=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,i,o,null!==(n=null===(t=e.position)||void 0===t?void 0:t.positionAffinity)&&void 0!==n?n:null),this._scheduleRender()}},{key:"removeContentWidget",value:function(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}},{key:"addOverlayWidget",value:function(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}},{key:"layoutOverlayWidget",value:function(e){var t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}},{key:"removeOverlayWidget",value:function(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}]),n}(ee);var Bn=n(21577),Hn=function(){function e(t){(0,d.Z)(this,e),this._selTrackedRange=null,this._trackSelection=!0,this._setState(t,new Bn.rS(new Ee.e(1,1,1,1),0,new xe.L(1,1),0),new Bn.rS(new Ee.e(1,1,1,1),0,new xe.L(1,1),0))}return(0,h.Z)(e,[{key:"dispose",value:function(e){this._removeTrackedRange(e)}},{key:"startTrackingSelection",value:function(e){this._trackSelection=!0,this._updateTrackedRange(e)}},{key:"stopTrackingSelection",value:function(e){this._trackSelection=!1,this._removeTrackedRange(e)}},{key:"_updateTrackedRange",value:function(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}},{key:"_removeTrackedRange",value:function(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}},{key:"asCursorState",value:function(){return new Bn.Vi(this.modelState,this.viewState)}},{key:"readSelectionFromMarkers",value:function(e){var t=e.model._getTrackedRange(this._selTrackedRange);return Y.Y.fromRange(t,this.modelState.selection.getDirection())}},{key:"ensureValidState",value:function(e){this._setState(e,this.modelState,this.viewState)}},{key:"setState",value:function(e,t,n){this._setState(e,t,n)}},{key:"_setState",value:function(t,n,i){if(i&&(i=e._validateViewState(t.viewModel,i)),n){var r=t.model.validateRange(n.selectionStart),o=n.selectionStart.equalsRange(r)?n.selectionStartLeftoverVisibleColumns:0,a=t.model.validatePosition(n.position),s=n.position.equals(a)?n.leftoverVisibleColumns:0;n=new Bn.rS(r,o,a,s)}else{if(!i)return;var l=t.model.validateRange(t.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),c=t.model.validatePosition(t.coordinatesConverter.convertViewPositionToModelPosition(i.position));n=new Bn.rS(l,i.selectionStartLeftoverVisibleColumns,c,i.leftoverVisibleColumns)}if(i){var u=t.coordinatesConverter.validateViewRange(i.selectionStart,n.selectionStart),d=t.coordinatesConverter.validateViewPosition(i.position,n.position);i=new Bn.rS(u,n.selectionStartLeftoverVisibleColumns,d,n.leftoverVisibleColumns)}else{var h=t.coordinatesConverter.convertModelPositionToViewPosition(new xe.L(n.selectionStart.startLineNumber,n.selectionStart.startColumn)),f=t.coordinatesConverter.convertModelPositionToViewPosition(new xe.L(n.selectionStart.endLineNumber,n.selectionStart.endColumn)),p=new Ee.e(h.lineNumber,h.column,f.lineNumber,f.column),g=t.coordinatesConverter.convertModelPositionToViewPosition(n.position);i=new Bn.rS(p,n.selectionStartLeftoverVisibleColumns,g,n.leftoverVisibleColumns)}this.modelState=n,this.viewState=i,this._updateTrackedRange(t)}}],[{key:"_validatePositionWithCache",value:function(e,t,n,i){return t.equals(n)?i:e.normalizePosition(t,2)}},{key:"_validateViewState",value:function(e,t){var n=t.position,i=t.selectionStart.getStartPosition(),r=t.selectionStart.getEndPosition(),o=e.normalizePosition(n,2),a=this._validatePositionWithCache(e,i,n,o),s=this._validatePositionWithCache(e,r,i,a);return n.equals(o)&&i.equals(a)&&r.equals(s)?t:new Bn.rS(Ee.e.fromPositions(a,s),t.selectionStartLeftoverVisibleColumns+i.column-a.column,o,t.leftoverVisibleColumns+n.column-o.column)}}]),e}(),zn=function(){function e(t){(0,d.Z)(this,e),this.context=t,this.cursors=[new Hn(t)],this.lastAddedCursorIndex=0}return(0,h.Z)(e,[{key:"dispose",value:function(){var e,t=(0,o.Z)(this.cursors);try{for(t.s();!(e=t.n()).done;){e.value.dispose(this.context)}}catch(n){t.e(n)}finally{t.f()}}},{key:"startTrackingSelections",value:function(){var e,t=(0,o.Z)(this.cursors);try{for(t.s();!(e=t.n()).done;){e.value.startTrackingSelection(this.context)}}catch(n){t.e(n)}finally{t.f()}}},{key:"stopTrackingSelections",value:function(){var e,t=(0,o.Z)(this.cursors);try{for(t.s();!(e=t.n()).done;){e.value.stopTrackingSelection(this.context)}}catch(n){t.e(n)}finally{t.f()}}},{key:"updateContext",value:function(e){this.context=e}},{key:"ensureValidState",value:function(){var e,t=(0,o.Z)(this.cursors);try{for(t.s();!(e=t.n()).done;){e.value.ensureValidState(this.context)}}catch(n){t.e(n)}finally{t.f()}}},{key:"readSelectionFromMarkers",value:function(){var e=this;return this.cursors.map((function(t){return t.readSelectionFromMarkers(e.context)}))}},{key:"getAll",value:function(){return this.cursors.map((function(e){return e.asCursorState()}))}},{key:"getViewPositions",value:function(){return this.cursors.map((function(e){return e.viewState.position}))}},{key:"getTopMostViewPosition",value:function(){return(0,x.VJ)(this.cursors,(0,x.tT)((function(e){return e.viewState.position}),xe.L.compare)).viewState.position}},{key:"getBottomMostViewPosition",value:function(){return(0,x.jV)(this.cursors,(0,x.tT)((function(e){return e.viewState.position}),xe.L.compare)).viewState.position}},{key:"getSelections",value:function(){return this.cursors.map((function(e){return e.modelState.selection}))}},{key:"getViewSelections",value:function(){return this.cursors.map((function(e){return e.viewState.selection}))}},{key:"setSelections",value:function(e){this.setStates(Bn.Vi.fromModelSelections(e))}},{key:"getPrimaryCursor",value:function(){return this.cursors[0].asCursorState()}},{key:"setStates",value:function(e){null!==e&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}},{key:"_setSecondaryStates",value:function(e){var t=this.cursors.length-1,n=e.length;if(t<n)for(var i=n-t,r=0;r<i;r++)this._addSecondaryCursor();else if(t>n)for(var o=t-n,a=0;a<o;a++)this._removeSecondaryCursor(this.cursors.length-2);for(var s=0;s<n;s++)this.cursors[s+1].setState(this.context,e[s].modelState,e[s].viewState)}},{key:"killSecondaryCursors",value:function(){this._setSecondaryStates([])}},{key:"_addSecondaryCursor",value:function(){this.cursors.push(new Hn(this.context)),this.lastAddedCursorIndex=this.cursors.length-1}},{key:"getLastAddedCursorIndex",value:function(){return 1===this.cursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}},{key:"_removeSecondaryCursor",value:function(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}},{key:"normalize",value:function(){if(1!==this.cursors.length){for(var e=this.cursors.slice(0),t=[],n=0,i=e.length;n<i;n++)t.push({index:n,selection:e[n].modelState.selection});t.sort((0,x.tT)((function(e){return e.selection}),Ee.e.compareRangesUsingStarts));for(var r=0;r<t.length-1;r++){var a=t[r],s=t[r+1],l=a.selection,c=s.selection;if(this.context.cursorConfig.multiCursorMergeOverlapping){if(c.isEmpty()||l.isEmpty()?c.getStartPosition().isBeforeOrEqual(l.getEndPosition()):c.getStartPosition().isBefore(l.getEndPosition())){var u=a.index<s.index?r:r+1,d=a.index<s.index?r+1:r,h=t[d].index,f=t[u].index,p=t[d].selection,g=t[u].selection;if(!p.equalsSelection(g)){var v=p.plusRange(g),m=p.selectionStartLineNumber===p.startLineNumber&&p.selectionStartColumn===p.startColumn,y=g.selectionStartLineNumber===g.startLineNumber&&g.selectionStartColumn===g.startColumn,_=void 0;h===this.lastAddedCursorIndex?(_=m,this.lastAddedCursorIndex=f):_=y;var b=void 0;b=_?new Y.Y(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn):new Y.Y(v.endLineNumber,v.endColumn,v.startLineNumber,v.startColumn),t[u].selection=b;var C=Bn.Vi.fromModelSelection(b);e[f].setState(this.context,C.modelState,C.viewState)}var S,w=(0,o.Z)(t);try{for(w.s();!(S=w.n()).done;){var k=S.value;k.index>h&&k.index--}}catch(E){w.e(E)}finally{w.f()}e.splice(h,1),t.splice(d,1),this._removeSecondaryCursor(h-1),r--}}}}}}]),e}(),jn=(0,h.Z)((function e(t,n,i,r){(0,d.Z)(this,e),this._cursorContextBrand=void 0,this.model=t,this.viewModel=n,this.coordinatesConverter=i,this.cursorConfig=r})),Vn=n(99046),Wn=n(28776),Un=n(86104),Gn=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=0})),Kn=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=1})),Yn=function(){function e(t){(0,d.Z)(this,e),this.type=2,this._source=t}return(0,h.Z)(e,[{key:"hasChanged",value:function(e){return this._source.hasChanged(e)}}]),e}(),qn=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.type=3,this.selections=t,this.modelSelections=n})),$n=(0,h.Z)((function e(t){(0,d.Z)(this,e),this.type=4,t?(this.affectsMinimap=t.affectsMinimap,this.affectsOverviewRuler=t.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)})),Xn=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=5})),Qn=(0,h.Z)((function e(t){(0,d.Z)(this,e),this.type=6,this.isFocused=t})),Jn=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=7})),ei=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=8})),ti=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.fromLineNumber=t,this.count=n,this.type=9})),ni=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.type=10,this.fromLineNumber=t,this.toLineNumber=n})),ii=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.type=11,this.fromLineNumber=t,this.toLineNumber=n})),ri=(0,h.Z)((function e(t,n,i,r,o,a,s){(0,d.Z)(this,e),this.source=t,this.minimalReveal=n,this.range=i,this.selections=r,this.verticalType=o,this.revealHorizontal=a,this.scrollType=s,this.type=12})),oi=(0,h.Z)((function e(t){(0,d.Z)(this,e),this.type=13,this.scrollWidth=t.scrollWidth,this.scrollLeft=t.scrollLeft,this.scrollHeight=t.scrollHeight,this.scrollTop=t.scrollTop,this.scrollWidthChanged=t.scrollWidthChanged,this.scrollLeftChanged=t.scrollLeftChanged,this.scrollHeightChanged=t.scrollHeightChanged,this.scrollTopChanged=t.scrollTopChanged})),ai=(0,h.Z)((function e(t){(0,d.Z)(this,e),this.theme=t,this.type=14})),si=(0,h.Z)((function e(t){(0,d.Z)(this,e),this.type=15,this.ranges=t})),li=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=16})),ci=(0,h.Z)((function e(){(0,d.Z)(this,e),this.type=17})),ui=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,d.Z)(this,n),(e=t.call(this))._onEvent=e._register(new C.Q5),e.onEvent=e._onEvent.event,e._eventHandlers=[],e._viewEventQueue=null,e._isConsumingViewEventQueue=!1,e._collector=null,e._collectorCnt=0,e._outgoingEvents=[],e}return(0,h.Z)(n,[{key:"emitOutgoingEvent",value:function(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}},{key:"_addOutgoingEvent",value:function(e){for(var t=0,n=this._outgoingEvents.length;t<n;t++){var i=this._outgoingEvents[t].kind===e.kind?this._outgoingEvents[t].attemptToMerge(e):null;if(i)return void(this._outgoingEvents[t]=i)}this._outgoingEvents.push(e)}},{key:"_emitOutgoingEvents",value:function(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;var e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}},{key:"addViewEventHandler",value:function(e){for(var t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}},{key:"removeViewEventHandler",value:function(e){for(var t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}},{key:"beginEmitViewEvents",value:function(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new di),this._collector}},{key:"endEmitViewEvents",value:function(){if(this._collectorCnt--,0===this._collectorCnt){var e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;var n,i=(0,o.Z)(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;this._addOutgoingEvent(r)}}catch(a){i.e(a)}finally{i.f()}t.length>0&&this._emitMany(t)}this._emitOutgoingEvents()}},{key:"emitSingleViewEvent",value:function(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}},{key:"_emitMany",value:function(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}},{key:"_consumeViewEventQueue",value:function(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}},{key:"_doConsumeQueue",value:function(){for(;this._viewEventQueue;){var e=this._viewEventQueue;this._viewEventQueue=null;var t,n=this._eventHandlers.slice(0),i=(0,o.Z)(n);try{for(i.s();!(t=i.n()).done;){t.value.handleEvents(e)}}catch(r){i.e(r)}finally{i.f()}}}}]),n}(S.JT),di=function(){function e(){(0,d.Z)(this,e),this.viewEvents=[],this.outgoingEvents=[]}return(0,h.Z)(e,[{key:"emitViewEvent",value:function(e){this.viewEvents.push(e)}},{key:"emitOutgoingEvent",value:function(e){this.outgoingEvents.push(e)}}]),e}(),hi=function(){function e(t,n,i,r){(0,d.Z)(this,e),this.kind=0,this._oldContentWidth=t,this._oldContentHeight=n,this.contentWidth=i,this.contentHeight=r,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!this.contentWidthChanged&&!this.contentHeightChanged}},{key:"attemptToMerge",value:function(t){return t.kind!==this.kind?null:new e(this._oldContentWidth,this._oldContentHeight,t.contentWidth,t.contentHeight)}}]),e}(),fi=function(){function e(t,n){(0,d.Z)(this,e),this.kind=1,this.oldHasFocus=t,this.hasFocus=n}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return this.oldHasFocus===this.hasFocus}},{key:"attemptToMerge",value:function(t){return t.kind!==this.kind?null:new e(this.oldHasFocus,t.hasFocus)}}]),e}(),pi=function(){function e(t,n,i,r,o,a,s,l){(0,d.Z)(this,e),this.kind=2,this._oldScrollWidth=t,this._oldScrollLeft=n,this._oldScrollHeight=i,this._oldScrollTop=r,this.scrollWidth=o,this.scrollLeft=a,this.scrollHeight=s,this.scrollTop=l,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}},{key:"attemptToMerge",value:function(t){return t.kind!==this.kind?null:new e(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,t.scrollWidth,t.scrollLeft,t.scrollHeight,t.scrollTop)}}]),e}(),gi=function(){function e(){(0,d.Z)(this,e),this.kind=3}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!1}},{key:"attemptToMerge",value:function(e){return e.kind!==this.kind?null:this}}]),e}(),vi=function(){function e(){(0,d.Z)(this,e),this.kind=4}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!1}},{key:"attemptToMerge",value:function(e){return e.kind!==this.kind?null:this}}]),e}(),mi=function(){function e(t,n,i,r,o,a,s){(0,d.Z)(this,e),this.kind=6,this.oldSelections=t,this.selections=n,this.oldModelVersionId=i,this.modelVersionId=r,this.source=o,this.reason=a,this.reachedMaxCursorCount=s}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return e._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}},{key:"attemptToMerge",value:function(t){return t.kind!==this.kind?null:new e(this.oldSelections,t.selections,this.oldModelVersionId,t.modelVersionId,t.source,t.reason,this.reachedMaxCursorCount||t.reachedMaxCursorCount)}}],[{key:"_selectionsAreEqual",value:function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(!e[i].equalsSelection(t[i]))return!1;return!0}}]),e}(),yi=function(){function e(){(0,d.Z)(this,e),this.kind=5}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!1}},{key:"attemptToMerge",value:function(e){return e.kind!==this.kind?null:this}}]),e}(),_i=function(){function e(t){(0,d.Z)(this,e),this.event=t,this.kind=7}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!1}},{key:"attemptToMerge",value:function(e){return null}}]),e}(),bi=function(){function e(t){(0,d.Z)(this,e),this.event=t,this.kind=8}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!1}},{key:"attemptToMerge",value:function(e){return null}}]),e}(),Ci=function(){function e(t){(0,d.Z)(this,e),this.event=t,this.kind=9}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!1}},{key:"attemptToMerge",value:function(e){return null}}]),e}(),Si=function(){function e(t){(0,d.Z)(this,e),this.event=t,this.kind=10}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!1}},{key:"attemptToMerge",value:function(e){return null}}]),e}(),wi=function(){function e(t){(0,d.Z)(this,e),this.event=t,this.kind=11}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!1}},{key:"attemptToMerge",value:function(e){return null}}]),e}(),ki=function(){function e(t){(0,d.Z)(this,e),this.event=t,this.kind=12}return(0,h.Z)(e,[{key:"isNoOp",value:function(){return!1}},{key:"attemptToMerge",value:function(e){return null}}]),e}(),xi=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r,o){var a;return(0,d.Z)(this,n),(a=t.call(this))._model=e,a._knownModelVersionId=a._model.getVersionId(),a._viewModel=i,a._coordinatesConverter=r,a.context=new jn(a._model,a._viewModel,a._coordinatesConverter,o),a._cursors=new zn(a.context),a._hasFocus=!1,a._isHandling=!1,a._compositionState=null,a._columnSelectData=null,a._autoClosedActions=[],a._prevEditOperationType=0,a}return(0,h.Z)(n,[{key:"dispose",value:function(){this._cursors.dispose(),this._autoClosedActions=(0,S.B9)(this._autoClosedActions),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"updateConfiguration",value:function(e){this.context=new jn(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}},{key:"onLineMappingChanged",value:function(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}},{key:"setHasFocus",value:function(e){this._hasFocus=e}},{key:"_validateAutoClosedActions",value:function(){if(this._autoClosedActions.length>0)for(var e=this._cursors.getSelections(),t=0;t<this._autoClosedActions.length;t++){var n=this._autoClosedActions[t];n.isValid(e)||(n.dispose(),this._autoClosedActions.splice(t,1),t--)}}},{key:"getPrimaryCursorState",value:function(){return this._cursors.getPrimaryCursor()}},{key:"getLastAddedCursorIndex",value:function(){return this._cursors.getLastAddedCursorIndex()}},{key:"getCursorStates",value:function(){return this._cursors.getAll()}},{key:"setStates",value:function(e,t,i,r){var o=!1;null!==r&&r.length>n.MAX_CURSOR_COUNT&&(r=r.slice(0,n.MAX_CURSOR_COUNT),o=!0);var a=Ei.from(this._model,this);return this._cursors.setStates(r),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,a,o)}},{key:"setCursorColumnSelectData",value:function(e){this._columnSelectData=e}},{key:"revealPrimary",value:function(e,t,n,i,r,o){var a=this._cursors.getViewPositions(),s=null,l=null;a.length>1?l=this._cursors.getViewSelections():s=Ee.e.fromPositions(a[0],a[0]),e.emitViewEvent(new ri(t,n,s,l,i,r,o))}},{key:"saveState",value:function(){for(var e=[],t=this._cursors.getSelections(),n=0,i=t.length;n<i;n++){var r=t[n];e.push({inSelectionMode:!r.isEmpty(),selectionStart:{lineNumber:r.selectionStartLineNumber,column:r.selectionStartColumn},position:{lineNumber:r.positionLineNumber,column:r.positionColumn}})}return e}},{key:"restoreState",value:function(e,t){for(var n=[],i=0,r=t.length;i<r;i++){var o=t[i],a=1,s=1;o.position&&o.position.lineNumber&&(a=o.position.lineNumber),o.position&&o.position.column&&(s=o.position.column);var l=a,c=s;o.selectionStart&&o.selectionStart.lineNumber&&(l=o.selectionStart.lineNumber),o.selectionStart&&o.selectionStart.column&&(c=o.selectionStart.column),n.push({selectionStartLineNumber:l,selectionStartColumn:c,positionLineNumber:a,positionColumn:s})}this.setStates(e,"restoreState",0,Bn.Vi.fromModelSelections(n)),this.revealPrimary(e,"restoreState",!1,0,!0,1)}},{key:"onModelContentChanged",value:function(e,t){if(t instanceof Un.D8){if(this._isHandling)return;this._isHandling=!0;try{this.setStates(e,"modelChange",0,this.getCursorStates())}finally{this._isHandling=!1}}else{var n=t.rawContentChangedEvent;if(this._knownModelVersionId=n.versionId,this._isHandling)return;var i=n.containsEvent(1);if(this._prevEditOperationType=0,i)this._cursors.dispose(),this._cursors=new zn(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&n.resultingSelection&&n.resultingSelection.length>0){var r=Bn.Vi.fromModelSelections(n.resultingSelection);this.setStates(e,"modelChange",n.isUndoing?5:n.isRedoing?6:2,r)&&this.revealPrimary(e,"modelChange",!1,0,!0,0)}else{var o=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,Bn.Vi.fromModelSelections(o))}}}},{key:"getSelection",value:function(){return this._cursors.getPrimaryCursor().modelState.selection}},{key:"getTopMostViewPosition",value:function(){return this._cursors.getTopMostViewPosition()}},{key:"getBottomMostViewPosition",value:function(){return this._cursors.getBottomMostViewPosition()}},{key:"getCursorColumnSelectData",value:function(){if(this._columnSelectData)return this._columnSelectData;var e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),n=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:n.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,n)}}},{key:"getSelections",value:function(){return this._cursors.getSelections()}},{key:"setSelections",value:function(e,t,n,i){this.setStates(e,t,i,Bn.Vi.fromModelSelections(n))}},{key:"getPrevEditOperationType",value:function(){return this._prevEditOperationType}},{key:"setPrevEditOperationType",value:function(e){this._prevEditOperationType=e}},{key:"_pushAutoClosedAction",value:function(e,t){for(var n=[],i=[],r=0,o=e.length;r<o;r++)n.push({range:e[r],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),i.push({range:t[r],options:{description:"auto-closed-enclosing",stickiness:1}});var a=this._model.deltaDecorations([],n),s=this._model.deltaDecorations([],i);this._autoClosedActions.push(new Ti(this._model,a,s))}},{key:"_executeEditOperation",value:function(e){if(e){e.shouldPushStackElementBefore&&this._model.pushStackElement();var t=Ni.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);for(var n=[],i=[],r=0;r<e.commands.length;r++){var o=e.commands[r];o instanceof Wn.g_&&o.enclosingRange&&o.closeCharacterRange&&(n.push(o.closeCharacterRange),i.push(o.enclosingRange))}n.length>0&&this._pushAutoClosedAction(n,i),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}}},{key:"_interpretCommandResult",value:function(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}},{key:"_emitStateChangedIfNecessary",value:function(e,t,n,i,r){var o=Ei.from(this._model,this);if(o.equals(i))return!1;var a=this._cursors.getSelections(),s=this._cursors.getViewSelections();if(e.emitViewEvent(new qn(s,a)),!i||i.cursorState.length!==o.cursorState.length||o.cursorState.some((function(e,t){return!e.modelState.equals(i.cursorState[t].modelState)}))){var l=i?i.cursorState.map((function(e){return e.modelState.selection})):null,c=i?i.modelVersionId:0;e.emitOutgoingEvent(new mi(l,a,c,o.modelVersionId,t||"keyboard",n,r))}return!0}},{key:"_findAutoClosingPairs",value:function(e){if(!e.length)return null;for(var t=[],n=0,i=e.length;n<i;n++){var r=e[n];if(!r.text||r.text.indexOf("\n")>=0)return null;var o=r.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!o)return null;var a=o[1],s=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(a);if(!s||1!==s.length)return null;var l=s[0].open,c=r.text.length-o[2].length-1,u=r.text.lastIndexOf(l,c-1);if(-1===u)return null;t.push([u,c])}return t}},{key:"executeEdits",value:function(e,t,n,r){var o=this,a=null;"snippet"===t&&(a=this._findAutoClosingPairs(n)),a&&(n[0]._isTracked=!0);var s=[],l=[],c=this._model.pushEditOperations(this.getSelections(),n,(function(e){if(a)for(var t=0,n=a.length;t<n;t++){var c=(0,i.Z)(a[t],2),u=c[0],d=c[1],h=e[t],f=h.range.startLineNumber,p=h.range.startColumn-1+u,g=h.range.startColumn-1+d;s.push(new Ee.e(f,g+1,f,g+2)),l.push(new Ee.e(f,p+1,f,g+2))}var v=r(e);return v&&(o._isHandling=!0),v}));c&&(this._isHandling=!1,this.setSelections(e,t,c,0)),s.length>0&&this._pushAutoClosedAction(s,l)}},{key:"_executeEdit",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!this.context.cursorConfig.readOnly){var r=Ei.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(o){(0,b.dL)(o)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,n,i,r,!1)&&this.revealPrimary(t,n,!1,0,!0,0)}}},{key:"getAutoClosedCharacters",value:function(){return Ti.getAllAutoClosedCharacters(this._autoClosedActions)}},{key:"startComposition",value:function(e){this._compositionState=new Di(this._model,this.getSelections())}},{key:"endComposition",value:function(e,t){var n=this,i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit((function(){"keyboard"===t&&n._executeEditOperation(Wn.u6.compositionEndWithInterceptors(n._prevEditOperationType,n.context.cursorConfig,n._model,i,n.getSelections(),n.getAutoClosedCharacters()))}),e,t)}},{key:"type",value:function(e,t,n){var i=this;this._executeEdit((function(){if("keyboard"===n)for(var e=t.length,r=0;r<e;){var o=Ye.vH(t,r),a=t.substr(r,o);i._executeEditOperation(Wn.u6.typeWithInterceptors(!!i._compositionState,i._prevEditOperationType,i.context.cursorConfig,i._model,i.getSelections(),i.getAutoClosedCharacters(),a)),r+=o}else i._executeEditOperation(Wn.u6.typeWithoutInterceptors(i._prevEditOperationType,i.context.cursorConfig,i._model,i.getSelections(),t))}),e,n)}},{key:"compositionType",value:function(e,t,n,i,r,o){var a=this;if(0!==t.length||0!==n||0!==i)this._executeEdit((function(){a._executeEditOperation(Wn.u6.compositionType(a._prevEditOperationType,a.context.cursorConfig,a._model,a.getSelections(),t,n,i,r))}),e,o);else if(0!==r){var s=this.getSelections().map((function(e){var t=e.getPosition();return new Y.Y(t.lineNumber,t.column+r,t.lineNumber,t.column+r)}));this.setSelections(e,o,s,0)}}},{key:"paste",value:function(e,t,n,i,r){var o=this;this._executeEdit((function(){o._executeEditOperation(Wn.u6.paste(o.context.cursorConfig,o._model,o.getSelections(),t,n,i||[]))}),e,r,4)}},{key:"cut",value:function(e,t){var n=this;this._executeEdit((function(){n._executeEditOperation(Vn.A.cut(n.context.cursorConfig,n._model,n.getSelections()))}),e,t)}},{key:"executeCommand",value:function(e,t,n){var i=this;this._executeEdit((function(){i._cursors.killSecondaryCursors(),i._executeEditOperation(new Bn.Tp(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,n)}},{key:"executeCommands",value:function(e,t,n){var i=this;this._executeEdit((function(){i._executeEditOperation(new Bn.Tp(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,n)}}]),n}(S.JT);xi.MAX_CURSOR_COUNT=1e4;var Ei=function(){function e(t,n){(0,d.Z)(this,e),this.modelVersionId=t,this.cursorState=n}return(0,h.Z)(e,[{key:"equals",value:function(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(var t=0,n=this.cursorState.length;t<n;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}],[{key:"from",value:function(t,n){return new e(t.getVersionId(),n.getCursorStates())}}]),e}(),Ti=function(){function e(t,n,i){(0,d.Z)(this,e),this._model=t,this._autoClosedCharactersDecorations=n,this._autoClosedEnclosingDecorations=i}return(0,h.Z)(e,[{key:"dispose",value:function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}},{key:"getAutoClosedCharactersRanges",value:function(){for(var e=[],t=0;t<this._autoClosedCharactersDecorations.length;t++){var n=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);n&&e.push(n)}return e}},{key:"isValid",value:function(e){for(var t=[],n=0;n<this._autoClosedEnclosingDecorations.length;n++){var i=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[n]);if(i&&(t.push(i),i.startLineNumber!==i.endLineNumber))return!1}t.sort(Ee.e.compareRangesUsingStarts),e.sort(Ee.e.compareRangesUsingStarts);for(var r=0;r<e.length;r++){if(r>=t.length)return!1;if(!t[r].strictContainsRange(e[r]))return!1}return!0}}],[{key:"getAllAutoClosedCharacters",value:function(e){var t,n=[],i=(0,o.Z)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n=n.concat(r.getAutoClosedCharactersRanges())}}catch(a){i.e(a)}finally{i.f()}return n}}]),e}(),Ni=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,null,[{key:"executeCommands",value:function(e,t,n){for(var i={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},r=this._innerExecuteCommands(i,n),o=0,a=i.trackedRanges.length;o<a;o++)i.model._setTrackedRange(i.trackedRanges[o],null,0);return r}},{key:"_innerExecuteCommands",value:function(e,t){if(this._arrayIsEmpty(t))return null;var n=this._getEditOperations(e,t);if(0===n.operations.length)return null;var i=n.operations,r=this._getLoserCursorMap(i);if(r.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var a=[],s=0,l=i.length;s<l;s++)r.hasOwnProperty(i[s].identifier.major.toString())||a.push(i[s]);n.hadTrackedEditOperation&&a.length>0&&(a[0]._isTracked=!0);var c=e.model.pushEditOperations(e.selectionsBefore,a,(function(n){for(var i=[],r=0;r<e.selectionsBefore.length;r++)i[r]=[];var a,s=(0,o.Z)(n);try{for(s.s();!(a=s.n()).done;){var l=a.value;l.identifier&&i[l.identifier.major].push(l)}}catch(f){s.e(f)}finally{s.f()}for(var c=function(e,t){return e.identifier.minor-t.identifier.minor},u=[],d=function(n){i[n].length>0?(i[n].sort(c),u[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return i[n]},getTrackedSelection:function(t){var n=parseInt(t,10),i=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new Y.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new Y.Y(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):u[n]=e.selectionsBefore[n]},h=0;h<e.selectionsBefore.length;h++)d(h);return u}));c||(c=e.selectionsBefore);var u=[];for(var d in r)r.hasOwnProperty(d)&&u.push(parseInt(d,10));u.sort((function(e,t){return t-e}));for(var h=0,f=u;h<f.length;h++){var p=f[h];c.splice(p,1)}return c}},{key:"_arrayIsEmpty",value:function(e){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0}},{key:"_getEditOperations",value:function(e,t){for(var n=[],i=!1,r=0,o=t.length;r<o;r++){var a=t[r];if(a){var s=this._getEditOperationsFromCommand(e,r,a);n=n.concat(s.operations),i=i||s.hadTrackedEditOperation}}return{operations:n,hadTrackedEditOperation:i}}},{key:"_getEditOperationsFromCommand",value:function(e,t,n){var i=[],r=0,o=function(e,o){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Ee.e.isEmpty(e)&&""===o||i.push({identifier:{major:t,minor:r++},range:e,text:o,forceMoveMarkers:a,isAutoWhitespaceEdit:n.insertsAutoWhitespace})},a=!1,s={addEditOperation:o,addTrackedEditOperation:function(e,t,n){a=!0,o(e,t,n)},trackSelection:function(t,n){var i,r=Y.Y.liftSelection(t);if(r.isEmpty())if("boolean"===typeof n)i=n?2:3;else{var o=e.model.getLineMaxColumn(r.startLineNumber);i=r.startColumn===o?2:3}else i=1;var a=e.trackedRanges.length,s=e.model._setTrackedRange(null,r,i);return e.trackedRanges[a]=s,e.trackedRangesDirection[a]=r.getDirection(),a.toString()}};try{n.getEditOperations(e.model,s)}catch(l){return(0,b.dL)(l),{operations:[],hadTrackedEditOperation:!1}}return{operations:i,hadTrackedEditOperation:a}}},{key:"_getLoserCursorMap",value:function(e){(e=e.slice(0)).sort((function(e,t){return-Ee.e.compareRangesUsingEnds(e.range,t.range)}));for(var t={},n=1;n<e.length;n++){var i=e[n-1],r=e[n];if(Ee.e.getStartPosition(i.range).isBefore(Ee.e.getEndPosition(r.range))){var o=void 0;t[(o=i.identifier.major>r.identifier.major?i.identifier.major:r.identifier.major).toString()]=!0;for(var a=0;a<e.length;a++)e[a].identifier.major===o&&(e.splice(a,1),a<n&&n--,a--);n>0&&n--}}return t}}]),e}(),Ii=(0,h.Z)((function e(t,n,i){(0,d.Z)(this,e),this.text=t,this.startSelection=n,this.endSelection=i})),Di=function(){function e(t,n){(0,d.Z)(this,e),this._original=e._capture(t,n)}return(0,h.Z)(e,[{key:"deduceOutcome",value:function(t,n){if(!this._original)return null;var i=e._capture(t,n);if(!i)return null;if(this._original.length!==i.length)return null;for(var r=[],o=0,a=this._original.length;o<a;o++)r.push(e._deduceOutcome(this._original[o],i[o]));return r}}],[{key:"_capture",value:function(e,t){var n,i=[],r=(0,o.Z)(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.startLineNumber!==a.endLineNumber)return null;i.push(new Ii(e.getLineContent(a.startLineNumber),a.startColumn-1,a.endColumn-1))}}catch(s){r.e(s)}finally{r.f()}return i}},{key:"_deduceOutcome",value:function(e,t){var n=Math.min(e.startSelection,t.startSelection,Ye.Mh(e.text,t.text)),i=Math.min(e.text.length-e.endSelection,t.text.length-t.endSelection,Ye.P1(e.text,t.text)),r=e.text.substring(n,e.text.length-i),o=t.text.substring(n,t.text.length-i);return new Wn.Nu(r,e.startSelection-n,e.endSelection-n,o,t.startSelection-n,t.endSelection-n)}}]),e}(),Li=n(52070),Oi=n(70956),Ri=n(67245),Ai=n(70845),Mi=n(24092),Pi=n(11252),Zi=n(57970),Fi=function(){function e(){(0,d.Z)(this,e),this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}return(0,h.Z)(e,[{key:"insert",value:function(e){this._hasPending=!0,this._inserts.push(e)}},{key:"change",value:function(e){this._hasPending=!0,this._changes.push(e)}},{key:"remove",value:function(e){this._hasPending=!0,this._removes.push(e)}},{key:"mustCommit",value:function(){return this._hasPending}},{key:"commit",value:function(e){if(this._hasPending){var t=this._inserts,n=this._changes,i=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,n,i)}}}]),e}(),Bi=(0,h.Z)((function e(t,n,i,r,o){(0,d.Z)(this,e),this.id=t,this.afterLineNumber=n,this.ordinal=i,this.height=r,this.minWidth=o,this.prefixSum=0})),Hi=function(){function e(t,n,i,r){(0,d.Z)(this,e),this._instanceId=Ye.PJ(++e.INSTANCE_COUNT),this._pendingChanges=new Fi,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=t,this._lineHeight=n,this._paddingTop=i,this._paddingBottom=r}return(0,h.Z)(e,[{key:"setLineHeight",value:function(e){this._checkPendingChanges(),this._lineHeight=e}},{key:"setPadding",value:function(e,t){this._paddingTop=e,this._paddingBottom=t}},{key:"onFlushed",value:function(e){this._checkPendingChanges(),this._lineCount=e}},{key:"changeWhitespace",value:function(e){var t=this,n=!1;try{e({insertWhitespace:function(e,i,r,o){n=!0,e|=0,i|=0,r|=0,o|=0;var a=t._instanceId+ ++t._lastWhitespaceId;return t._pendingChanges.insert(new Bi(a,e,i,r,o)),a},changeOneWhitespace:function(e,i,r){n=!0,i|=0,r|=0,t._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:r})},removeWhitespace:function(e){n=!0,t._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return n}},{key:"_commitPendingChanges",value:function(e,t,n){if((e.length>0||n.length>0)&&(this._minWidth=-1),e.length+t.length+n.length<=1){var i,r=(0,o.Z)(e);try{for(r.s();!(i=r.n()).done;){var a=i.value;this._insertWhitespace(a)}}catch(k){r.e(k)}finally{r.f()}var s,l=(0,o.Z)(t);try{for(l.s();!(s=l.n()).done;){var c=s.value;this._changeOneWhitespace(c.id,c.newAfterLineNumber,c.newHeight)}}catch(k){l.e(k)}finally{l.f()}var u,d=(0,o.Z)(n);try{for(d.s();!(u=d.n()).done;){var h=u.value,f=this._findWhitespaceIndex(h.id);-1!==f&&this._removeWhitespace(f)}}catch(k){d.e(k)}finally{d.f()}}else{var p,g=new Set,v=(0,o.Z)(n);try{for(v.s();!(p=v.n()).done;){var m=p.value;g.add(m.id)}}catch(k){v.e(k)}finally{v.f()}var y,_=new Map,b=(0,o.Z)(t);try{for(b.s();!(y=b.n()).done;){var C=y.value;_.set(C.id,C)}}catch(k){b.e(k)}finally{b.f()}var S=function(e){var t,n=[],i=(0,o.Z)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;if(!g.has(r.id)){if(_.has(r.id)){var a=_.get(r.id);r.afterLineNumber=a.newAfterLineNumber,r.height=a.newHeight}n.push(r)}}}catch(k){i.e(k)}finally{i.f()}return n},w=S(this._arr).concat(S(e));w.sort((function(e,t){return e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber})),this._arr=w,this._prefixSumValidIndex=-1}}},{key:"_checkPendingChanges",value:function(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}},{key:"_insertWhitespace",value:function(t){var n=e.findInsertionIndex(this._arr,t.afterLineNumber,t.ordinal);this._arr.splice(n,0,t),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1)}},{key:"_findWhitespaceIndex",value:function(e){for(var t=this._arr,n=0,i=t.length;n<i;n++)if(t[n].id===e)return n;return-1}},{key:"_changeOneWhitespace",value:function(e,t,n){var i=this._findWhitespaceIndex(e);if(-1!==i&&(this._arr[i].height!==n&&(this._arr[i].height=n,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1)),this._arr[i].afterLineNumber!==t)){var r=this._arr[i];this._removeWhitespace(i),r.afterLineNumber=t,this._insertWhitespace(r)}}},{key:"_removeWhitespace",value:function(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}},{key:"onLinesDeleted",value:function(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(var n=0,i=this._arr.length;n<i;n++){var r=this._arr[n].afterLineNumber;e<=r&&r<=t?this._arr[n].afterLineNumber=e-1:r>t&&(this._arr[n].afterLineNumber-=t-e+1)}}},{key:"onLinesInserted",value:function(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(var n=0,i=this._arr.length;n<i;n++){e<=this._arr[n].afterLineNumber&&(this._arr[n].afterLineNumber+=t-e+1)}}},{key:"getWhitespacesTotalHeight",value:function(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}},{key:"getWhitespacesAccumulatedHeight",value:function(e){this._checkPendingChanges(),e|=0;var t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(var n=t;n<=e;n++)this._arr[n].prefixSum=this._arr[n-1].prefixSum+this._arr[n].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}},{key:"getLinesTotalHeight",value:function(){return this._checkPendingChanges(),this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}},{key:"getWhitespaceAccumulatedHeightBeforeLineNumber",value:function(e){this._checkPendingChanges(),e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)}},{key:"_findLastWhitespaceBeforeLineNumber",value:function(e){e|=0;for(var t=this._arr,n=0,i=t.length-1;n<=i;){var r=n+((i-n|0)/2|0)|0;if(t[r].afterLineNumber<e){if(r+1>=t.length||t[r+1].afterLineNumber>=e)return r;n=r+1|0}else i=r-1|0}return-1}},{key:"_findFirstWhitespaceAfterLineNumber",value:function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1}},{key:"getFirstWhitespaceIndexAfterLineNumber",value:function(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}},{key:"getVerticalOffsetForLineNumber",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._checkPendingChanges(),t=(e|=0)>1?this._lineHeight*(e-1):0;var i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(n?1:0));return t+i+this._paddingTop}},{key:"getVerticalOffsetAfterLineNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._checkPendingChanges(),e|=0;var n=this._lineHeight*e,i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0));return n+i+this._paddingTop}},{key:"getWhitespaceMinWidth",value:function(){if(this._checkPendingChanges(),-1===this._minWidth){for(var e=0,t=0,n=this._arr.length;t<n;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}},{key:"isAfterLines",value:function(e){return this._checkPendingChanges(),e>this.getLinesTotalHeight()}},{key:"isInTopPadding",value:function(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e<this._paddingTop)}},{key:"isInBottomPadding",value:function(e){return 0!==this._paddingBottom&&(this._checkPendingChanges(),e>=this.getLinesTotalHeight()-this._paddingBottom)}},{key:"getLineNumberAtOrAfterVerticalOffset",value:function(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;for(var t=0|this._lineCount,n=this._lineHeight,i=1,r=t;i<r;){var o=(i+r)/2|0,a=0|this.getVerticalOffsetForLineNumber(o);if(e>=a+n)i=o+1;else{if(e>=a)return o;r=o}}return i>t?t:i}},{key:"getLinesViewportData",value:function(e,t){this._checkPendingChanges(),e|=0,t|=0;var n,i,r=this._lineHeight,o=0|this.getLineNumberAtOrAfterVerticalOffset(e),a=0|this.getVerticalOffsetForLineNumber(o),s=0|this._lineCount,l=0|this.getFirstWhitespaceIndexAfterLineNumber(o),c=0|this.getWhitespacesCount();-1===l?(l=c,i=s+1,n=0):(i=0|this.getAfterLineNumberForWhitespaceIndex(l),n=0|this.getHeightForWhitespaceIndex(l));var u=a,d=u,h=5e5,f=0;a>=h&&(f=Math.floor(a/h)*h,d-=f=Math.floor(f/r)*r);for(var p=[],g=e+(t-e)/2,v=-1,m=o;m<=s;m++){if(-1===v){(u<=g&&g<u+r||u>g)&&(v=m)}for(u+=r,p[m-o]=d,d+=r;i===m;)d+=n,u+=n,++l>=c?i=s+1:(i=0|this.getAfterLineNumberForWhitespaceIndex(l),n=0|this.getHeightForWhitespaceIndex(l));if(u>=t){s=m;break}}-1===v&&(v=s);var y=0|this.getVerticalOffsetForLineNumber(s),_=o,b=s;return _<b&&a<e&&_++,_<b&&y+r>t&&b--,{bigNumbersDelta:f,startLineNumber:o,endLineNumber:s,relativeVerticalOffset:p,centeredLineNumber:v,completelyVisibleStartLineNumber:_,completelyVisibleEndLineNumber:b}}},{key:"getVerticalOffsetForWhitespaceIndex",value:function(e){this._checkPendingChanges(),e|=0;var t=this.getAfterLineNumberForWhitespaceIndex(e);return(t>=1?this._lineHeight*t:0)+(e>0?this.getWhitespacesAccumulatedHeight(e-1):0)+this._paddingTop}},{key:"getWhitespaceIndexAtOrAfterVerticallOffset",value:function(e){this._checkPendingChanges(),e|=0;var t=0,n=this.getWhitespacesCount()-1;if(n<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(n)+this.getHeightForWhitespaceIndex(n))return-1;for(;t<n;){var i=Math.floor((t+n)/2),r=this.getVerticalOffsetForWhitespaceIndex(i);if(e>=r+this.getHeightForWhitespaceIndex(i))t=i+1;else{if(e>=r)return i;n=i}}return t}},{key:"getWhitespaceAtVerticalOffset",value:function(e){this._checkPendingChanges(),e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;var i=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:i}}},{key:"getWhitespaceViewportData",value:function(e,t){this._checkPendingChanges(),e|=0,t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this.getWhitespacesCount()-1;if(n<0)return[];for(var r=[],o=n;o<=i;o++){var a=this.getVerticalOffsetForWhitespaceIndex(o),s=this.getHeightForWhitespaceIndex(o);if(a>=t)break;r.push({id:this.getIdForWhitespaceIndex(o),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:a,height:s})}return r}},{key:"getWhitespaces",value:function(){return this._checkPendingChanges(),this._arr.slice(0)}},{key:"getWhitespacesCount",value:function(){return this._checkPendingChanges(),this._arr.length}},{key:"getIdForWhitespaceIndex",value:function(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}},{key:"getAfterLineNumberForWhitespaceIndex",value:function(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}},{key:"getHeightForWhitespaceIndex",value:function(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}],[{key:"findInsertionIndex",value:function(e,t,n){for(var i=0,r=e.length;i<r;){var o=i+r>>>1;t===e[o].afterLineNumber?n<e[o].ordinal?r=o:i=o+1:t<e[o].afterLineNumber?r=o:i=o+1}return i}}]),e}();Hi.INSTANCE_COUNT=0;var zi=function(){function e(t,n,i,r){(0,d.Z)(this,e),(t|=0)<0&&(t=0),(n|=0)<0&&(n=0),(i|=0)<0&&(i=0),(r|=0)<0&&(r=0),this.width=t,this.contentWidth=n,this.scrollWidth=Math.max(t,n),this.height=i,this.contentHeight=r,this.scrollHeight=Math.max(i,r)}return(0,h.Z)(e,[{key:"equals",value:function(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}]),e}(),ji=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i){var r;return(0,d.Z)(this,n),(r=t.call(this))._onDidContentSizeChange=r._register(new C.Q5),r.onDidContentSizeChange=r._onDidContentSizeChange.event,r._dimensions=new zi(0,0,0,0),r._scrollable=r._register(new Zi.Rm({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:i})),r.onDidScroll=r._scrollable.onScroll,r}return(0,h.Z)(n,[{key:"getScrollable",value:function(){return this._scrollable}},{key:"setSmoothScrollDuration",value:function(e){this._scrollable.setSmoothScrollDuration(e)}},{key:"validateScrollPosition",value:function(e){return this._scrollable.validateScrollPosition(e)}},{key:"getScrollDimensions",value:function(){return this._dimensions}},{key:"setScrollDimensions",value:function(e){if(!this._dimensions.equals(e)){var t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);var n=t.contentWidth!==e.contentWidth,i=t.contentHeight!==e.contentHeight;(n||i)&&this._onDidContentSizeChange.fire(new hi(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}}},{key:"getFutureScrollPosition",value:function(){return this._scrollable.getFutureScrollPosition()}},{key:"getCurrentScrollPosition",value:function(){return this._scrollable.getCurrentScrollPosition()}},{key:"setScrollPositionNow",value:function(e){this._scrollable.setScrollPositionNow(e)}},{key:"setScrollPositionSmooth",value:function(e){this._scrollable.setScrollPositionSmooth(e)}}]),n}(S.JT),Vi=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r){var o;(0,d.Z)(this,n),(o=t.call(this))._configuration=e;var a=o._configuration.options,s=a.get(133),l=a.get(77);return o._linesLayout=new Hi(i,a.get(61),l.top,l.bottom),o._scrollable=o._register(new ji(0,r)),o._configureSmoothScrollDuration(),o._scrollable.setScrollDimensions(new zi(s.contentWidth,0,s.height,0)),o.onDidScroll=o._scrollable.onDidScroll,o.onDidContentSizeChange=o._scrollable.onDidContentSizeChange,o._updateHeight(),o}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"getScrollable",value:function(){return this._scrollable.getScrollable()}},{key:"onHeightMaybeChanged",value:function(){this._updateHeight()}},{key:"_configureSmoothScrollDuration",value:function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(105)?125:0)}},{key:"onConfigurationChanged",value:function(e){var t=this._configuration.options;if(e.hasChanged(61)&&this._linesLayout.setLineHeight(t.get(61)),e.hasChanged(77)){var n=t.get(77);this._linesLayout.setPadding(n.top,n.bottom)}if(e.hasChanged(133)){var i=t.get(133),r=i.contentWidth,o=i.height,a=this._scrollable.getScrollDimensions(),s=a.contentWidth;this._scrollable.setScrollDimensions(new zi(r,a.contentWidth,o,this._getContentHeight(r,o,s)))}else this._updateHeight();e.hasChanged(105)&&this._configureSmoothScrollDuration()}},{key:"onFlushed",value:function(e){this._linesLayout.onFlushed(e)}},{key:"onLinesDeleted",value:function(e,t){this._linesLayout.onLinesDeleted(e,t)}},{key:"onLinesInserted",value:function(e,t){this._linesLayout.onLinesInserted(e,t)}},{key:"_getHorizontalScrollbarHeight",value:function(e,t){var n=this._configuration.options.get(94);return 2===n.horizontal||e>=t?0:n.horizontalScrollbarSize}},{key:"_getContentHeight",value:function(e,t,n){var i=this._configuration.options,r=this._linesLayout.getLinesTotalHeight();return i.get(96)?r+=Math.max(0,t-i.get(61)-i.get(77).bottom):r+=this._getHorizontalScrollbarHeight(e,n),r}},{key:"_updateHeight",value:function(){var e=this._scrollable.getScrollDimensions(),t=e.width,n=e.height,i=e.contentWidth;this._scrollable.setScrollDimensions(new zi(t,e.contentWidth,n,this._getContentHeight(t,n,i)))}},{key:"getCurrentViewport",value:function(){var e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new $t.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}},{key:"getFutureViewport",value:function(){var e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new $t.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}},{key:"_computeContentWidth",value:function(e){var t=this._configuration.options,n=t.get(134),i=t.get(46),r=t.get(133);if(n.isViewportWrapping){var o=t.get(67);return e>r.contentWidth+i.typicalHalfwidthCharacterWidth&&o.enabled&&"right"===o.side?e+r.verticalScrollbarWidth:e}var a=t.get(95)*i.typicalHalfwidthCharacterWidth,s=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+a+r.verticalScrollbarWidth,s)}},{key:"setMaxLineWidth",value:function(e){var t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new zi(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}},{key:"saveState",value:function(){var e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft}}},{key:"changeWhitespace",value:function(e){var t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}},{key:"getVerticalOffsetForLineNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}},{key:"getVerticalOffsetAfterLineNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}},{key:"isAfterLines",value:function(e){return this._linesLayout.isAfterLines(e)}},{key:"isInTopPadding",value:function(e){return this._linesLayout.isInTopPadding(e)}},{key:"isInBottomPadding",value:function(e){return this._linesLayout.isInBottomPadding(e)}},{key:"getLineNumberAtVerticalOffset",value:function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}},{key:"getWhitespaceAtVerticalOffset",value:function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}},{key:"getLinesViewportData",value:function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}},{key:"getLinesViewportDataAtScrollTop",value:function(e){var t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}},{key:"getWhitespaceViewportData",value:function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}},{key:"getWhitespaces",value:function(){return this._linesLayout.getWhitespaces()}},{key:"getContentWidth",value:function(){return this._scrollable.getScrollDimensions().contentWidth}},{key:"getScrollWidth",value:function(){return this._scrollable.getScrollDimensions().scrollWidth}},{key:"getContentHeight",value:function(){return this._scrollable.getScrollDimensions().contentHeight}},{key:"getScrollHeight",value:function(){return this._scrollable.getScrollDimensions().scrollHeight}},{key:"getCurrentScrollLeft",value:function(){return this._scrollable.getCurrentScrollPosition().scrollLeft}},{key:"getCurrentScrollTop",value:function(){return this._scrollable.getCurrentScrollPosition().scrollTop}},{key:"validateScrollPosition",value:function(e){return this._scrollable.validateScrollPosition(e)}},{key:"setScrollPosition",value:function(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}},{key:"deltaScrollNow",value:function(e,t){var n=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})}}]),n}(S.JT),Wi=n(39268),Ui=n(90532);function Gi(e,t){return null===e?t?Yi.INSTANCE:qi.INSTANCE:new Ki(e,t)}var Ki=function(){function e(t,n){(0,d.Z)(this,e),this._projectionData=t,this._isVisible=n}return(0,h.Z)(e,[{key:"isVisible",value:function(){return this._isVisible}},{key:"setVisible",value:function(e){return this._isVisible=e,this}},{key:"getProjectionData",value:function(){return this._projectionData}},{key:"getViewLineCount",value:function(){return this._isVisible?this._projectionData.getOutputLineCount():0}},{key:"getViewLineContent",value:function(e,t,n){var i=this;this._assertVisible();var r,o=n>0?this._projectionData.breakOffsets[n-1]:0,a=this._projectionData.breakOffsets[n];if(null!==this._projectionData.injectionOffsets){var s=this._projectionData.injectionOffsets.map((function(e,t){return new Un.gk(0,0,e+1,i._projectionData.injectionOptions[t],0)}));r=Un.gk.applyInjectedText(e.getLineContent(t),s).substring(o,a)}else r=e.getValueInRange({startLineNumber:t,startColumn:o+1,endLineNumber:t,endColumn:a+1});return n>0&&(r=Xi(this._projectionData.wrappedTextIndentLength)+r),r}},{key:"getViewLineLength",value:function(e,t,n){return this._assertVisible(),this._projectionData.getLineLength(n)}},{key:"getViewLineMinColumn",value:function(e,t,n){return this._assertVisible(),this._projectionData.getMinOutputOffset(n)+1}},{key:"getViewLineMaxColumn",value:function(e,t,n){return this._assertVisible(),this._projectionData.getMaxOutputOffset(n)+1}},{key:"getViewLineData",value:function(e,t,n){var i=new Array;return this.getViewLinesData(e,t,n,1,0,[!0],i),i[0]}},{key:"getViewLinesData",value:function(e,t,n,i,r,o,a){this._assertVisible();var s,l=this._projectionData,c=l.injectionOffsets,u=l.injectionOptions,d=null;if(c){d=[];for(var h=0,f=0,p=0;p<l.getOutputLineCount();p++){var g=new Array;d[p]=g;for(var v=p>0?l.breakOffsets[p-1]:0,m=l.breakOffsets[p];f<c.length;){var y=u[f].content.length,_=c[f]+h,b=_+y;if(_>m)break;if(v<b){var C=u[f];if(C.inlineClassName){var S=p>0?l.wrappedTextIndentLength:0,w=S+Math.max(_-v,0),k=S+Math.min(b-v,m);w!==k&&g.push(new $t.Wx(w,k,C.inlineClassName,C.inlineClassNameAffectsLetterSpacing))}}if(!(b<=m))break;h+=y,f++}}}s=c?e.tokenization.getLineTokens(t).withInserted(c.map((function(e,t){return{offset:e,text:u[t].content,tokenMetadata:Ui.A.defaultTokenMetadata}}))):e.tokenization.getLineTokens(t);for(var x=n;x<n+i;x++){var E=r+x-n;o[E]?a[E]=this._getViewLineData(s,d?d[x]:null,x):a[E]=null}}},{key:"_getViewLineData",value:function(e,t,n){this._assertVisible();var i=this._projectionData,r=n>0?i.wrappedTextIndentLength:0,o=n>0?i.breakOffsets[n-1]:0,a=i.breakOffsets[n],s=e.sliceAndInflate(o,a,r),l=s.getLineContent();n>0&&(l=Xi(i.wrappedTextIndentLength)+l);var c=this._projectionData.getMinOutputOffset(n)+1,u=l.length+1,d=n+1<this.getViewLineCount(),h=0===n?0:i.breakOffsetsVisibleColumn[n-1];return new $t.IP(l,d,c,u,h,s,t)}},{key:"getModelColumnOfViewPosition",value:function(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}},{key:"getViewPositionOfModelPosition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;this._assertVisible();var i=this._projectionData.translateToOutputPosition(t-1,n);return i.toPosition(e)}},{key:"getViewLineNumberOfModelPosition",value:function(e,t){return this._assertVisible(),e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}},{key:"normalizePosition",value:function(e,t,n){var i=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,n).toPosition(i)}},{key:"getInjectedTextAt",value:function(e,t){return this._projectionData.getInjectedText(e,t-1)}},{key:"_assertVisible",value:function(){if(!this._isVisible)throw new Error("Not supported")}}]),e}(),Yi=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,[{key:"isVisible",value:function(){return!0}},{key:"setVisible",value:function(e){return e?this:qi.INSTANCE}},{key:"getProjectionData",value:function(){return null}},{key:"getViewLineCount",value:function(){return 1}},{key:"getViewLineContent",value:function(e,t,n){return e.getLineContent(t)}},{key:"getViewLineLength",value:function(e,t,n){return e.getLineLength(t)}},{key:"getViewLineMinColumn",value:function(e,t,n){return e.getLineMinColumn(t)}},{key:"getViewLineMaxColumn",value:function(e,t,n){return e.getLineMaxColumn(t)}},{key:"getViewLineData",value:function(e,t,n){var i=e.tokenization.getLineTokens(t),r=i.getLineContent();return new $t.IP(r,!1,1,r.length+1,0,i.inflate(),null)}},{key:"getViewLinesData",value:function(e,t,n,i,r,o,a){o[r]?a[r]=this.getViewLineData(e,t,0):a[r]=null}},{key:"getModelColumnOfViewPosition",value:function(e,t){return t}},{key:"getViewPositionOfModelPosition",value:function(e,t){return new xe.L(e,t)}},{key:"getViewLineNumberOfModelPosition",value:function(e,t){return e}},{key:"normalizePosition",value:function(e,t,n){return t}},{key:"getInjectedTextAt",value:function(e,t){return null}}]),e}();Yi.INSTANCE=new Yi;var qi=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,[{key:"isVisible",value:function(){return!1}},{key:"setVisible",value:function(e){return e?Yi.INSTANCE:this}},{key:"getProjectionData",value:function(){return null}},{key:"getViewLineCount",value:function(){return 0}},{key:"getViewLineContent",value:function(e,t,n){throw new Error("Not supported")}},{key:"getViewLineLength",value:function(e,t,n){throw new Error("Not supported")}},{key:"getViewLineMinColumn",value:function(e,t,n){throw new Error("Not supported")}},{key:"getViewLineMaxColumn",value:function(e,t,n){throw new Error("Not supported")}},{key:"getViewLineData",value:function(e,t,n){throw new Error("Not supported")}},{key:"getViewLinesData",value:function(e,t,n,i,r,o,a){throw new Error("Not supported")}},{key:"getModelColumnOfViewPosition",value:function(e,t){throw new Error("Not supported")}},{key:"getViewPositionOfModelPosition",value:function(e,t){throw new Error("Not supported")}},{key:"getViewLineNumberOfModelPosition",value:function(e,t){throw new Error("Not supported")}},{key:"normalizePosition",value:function(e,t,n){throw new Error("Not supported")}},{key:"getInjectedTextAt",value:function(e,t){throw new Error("Not supported")}}]),e}();qi.INSTANCE=new qi;var $i=[""];function Xi(e){if(e>=$i.length)for(var t=1;t<=e;t++)$i[t]=Qi(t);return $i[e]}function Qi(e){return new Array(e+1).join(" ")}var Ji=n(33679),er=function(){function e(t,n,i,r,o,a,s,l,c){(0,d.Z)(this,e),this._editorId=t,this.model=n,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=r,this.fontInfo=o,this.tabSize=a,this.wrappingStrategy=s,this.wrappingColumn=l,this.wrappingIndent=c,this._constructLines(!0,null)}return(0,h.Z)(e,[{key:"dispose",value:function(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}},{key:"createCoordinatesConverter",value:function(){return new ir(this)}},{key:"_constructLines",value:function(e,t){var n=this;this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));for(var i=this.model.getLinesContent(),r=this.model.getInjectedTextDecorations(this._editorId),o=i.length,a=this.createLineBreaksComputer(),s=new x.H9(Un.gk.fromDecorations(r)),l=function(e){var n=s.takeWhile((function(t){return t.lineNumber===e+1}));a.addRequest(i[e],n,t?t[e]:null)},c=0;c<o;c++)l(c);for(var u=a.finalize(),d=[],h=this.hiddenAreasDecorationIds.map((function(e){return n.model.getDecorationRange(e)})).sort(Ee.e.compareRangesUsingStarts),f=1,p=0,g=-1,v=g+1<h.length?p+1:o+2,m=0;m<o;m++){var y=m+1;y===v&&(f=h[++g].startLineNumber,p=h[g].endLineNumber,v=g+1<h.length?p+1:o+2);var _=y>=f&&y<=p,b=Gi(u[m],!_);d[m]=b.getViewLineCount(),this.modelLineProjections[m]=b}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new Ji.Ck(d)}},{key:"getHiddenAreas",value:function(){var e=this;return this.hiddenAreasDecorationIds.map((function(t){return e.model.getDecorationRange(t)}))}},{key:"setHiddenAreas",value:function(e){var t=this,n=function(e){if(0===e.length)return[];var t=e.slice();t.sort(Ee.e.compareRangesUsingStarts);for(var n=[],i=t[0].startLineNumber,r=t[0].endLineNumber,o=1,a=t.length;o<a;o++){var s=t[o];s.startLineNumber>r+1?(n.push(new Ee.e(i,1,r,1)),i=s.startLineNumber,r=s.endLineNumber):s.endLineNumber>r&&(r=s.endLineNumber)}return n.push(new Ee.e(i,1,r,1)),n}(e.map((function(e){return t.model.validateRange(e)}))),i=this.hiddenAreasDecorationIds.map((function(e){return t.model.getDecorationRange(e)})).sort(Ee.e.compareRangesUsingStarts);if(n.length===i.length){for(var r=!1,o=0;o<n.length;o++)if(!n[o].equalsRange(i[o])){r=!0;break}if(!r)return!1}var a=n.map((function(e){return{range:e,options:Ai.qx.EMPTY}}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,a);for(var s=n,l=1,c=0,u=-1,d=u+1<s.length?c+1:this.modelLineProjections.length+2,h=!1,f=0;f<this.modelLineProjections.length;f++){var p=f+1;p===d&&(l=s[++u].startLineNumber,c=s[u].endLineNumber,d=u+1<s.length?c+1:this.modelLineProjections.length+2);var g=!1;if(p>=l&&p<=c?this.modelLineProjections[f].isVisible()&&(this.modelLineProjections[f]=this.modelLineProjections[f].setVisible(!1),g=!0):(h=!0,this.modelLineProjections[f].isVisible()||(this.modelLineProjections[f]=this.modelLineProjections[f].setVisible(!0),g=!0)),g){var v=this.modelLineProjections[f].getViewLineCount();this.projectedModelLineLineCounts.setValue(f,v)}}return h||this.setHiddenAreas([]),!0}},{key:"modelPositionIsVisible",value:function(e,t){return!(e<1||e>this.modelLineProjections.length)&&this.modelLineProjections[e-1].isVisible()}},{key:"getModelLineViewLineCount",value:function(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}},{key:"setTabSize",value:function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}},{key:"setWrappingSettings",value:function(e,t,n,i){var r=this.fontInfo.equals(e),o=this.wrappingStrategy===t,a=this.wrappingColumn===n,s=this.wrappingIndent===i;if(r&&o&&a&&s)return!1;var l=r&&o&&!a&&s;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=n,this.wrappingIndent=i;var c=null;if(l){c=[];for(var u=0,d=this.modelLineProjections.length;u<d;u++)c[u]=this.modelLineProjections[u].getProjectionData()}return this._constructLines(!1,c),!0}},{key:"createLineBreaksComputer",value:function(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)}},{key:"onModelFlushed",value:function(){this._constructLines(!0,null)}},{key:"onModelLinesDeleted",value:function(e,t,n){if(!e||e<=this._validModelVersionId)return null;var i=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,r=this.projectedModelLineLineCounts.getPrefixSum(n);return this.modelLineProjections.splice(t-1,n-t+1),this.projectedModelLineLineCounts.removeValues(t-1,n-t+1),new ni(i,r)}},{key:"onModelLinesInserted",value:function(e,t,n,i){if(!e||e<=this._validModelVersionId)return null;for(var r=t>2&&!this.modelLineProjections[t-2].isVisible(),o=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,a=0,s=[],l=[],c=0,u=i.length;c<u;c++){var d=Gi(i[c],!r);s.push(d);var h=d.getViewLineCount();a+=h,l[c]=h}return this.modelLineProjections=this.modelLineProjections.slice(0,t-1).concat(s).concat(this.modelLineProjections.slice(t-1)),this.projectedModelLineLineCounts.insertValues(t-1,l),new ii(o,o+a-1)}},{key:"onModelLineChanged",value:function(e,t,n){if(null!==e&&e<=this._validModelVersionId)return[!1,null,null,null];var i=t-1,r=this.modelLineProjections[i].getViewLineCount(),o=Gi(n,this.modelLineProjections[i].isVisible());this.modelLineProjections[i]=o;var a=this.modelLineProjections[i].getViewLineCount(),s=!1,l=0,c=-1,u=0,d=-1,h=0,f=-1;return r>a?(f=(h=(c=(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1)+a-1)+1)+(r-a)-1,s=!0):r<a?(d=(u=(c=(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1)+r-1)+1)+(a-r)-1,s=!0):c=(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1)+a-1,this.projectedModelLineLineCounts.setValue(i,a),[s,l<=c?new ti(l,c-l+1):null,u<=d?new ii(u,d):null,h<=f?new ni(h,f):null]}},{key:"acceptVersionId",value:function(e){this._validModelVersionId=e,1!==this.modelLineProjections.length||this.modelLineProjections[0].isVisible()||this.setHiddenAreas([])}},{key:"getViewLineCount",value:function(){return this.projectedModelLineLineCounts.getTotalSum()}},{key:"_toValidViewLineNumber",value:function(e){if(e<1)return 1;var t=this.getViewLineCount();return e>t?t:0|e}},{key:"getActiveIndentGuide",value:function(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);var i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),r=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),o=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),a=this.model.guides.getActiveIndentGuide(i.lineNumber,r.lineNumber,o.lineNumber),s=this.convertModelPositionToViewPosition(a.startLineNumber,1),l=this.convertModelPositionToViewPosition(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber));return{startLineNumber:s.lineNumber,endLineNumber:l.lineNumber,indent:a.indent}}},{key:"getViewLineInfo",value:function(e){e=this._toValidViewLineNumber(e);var t=this.projectedModelLineLineCounts.getIndexOf(e-1),n=t.index,i=t.remainder;return new tr(n+1,i)}},{key:"getMinColumnOfViewLine",value:function(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}},{key:"getMaxColumnOfViewLine",value:function(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}},{key:"getModelStartPositionOfViewLine",value:function(e){var t=this.modelLineProjections[e.modelLineNumber-1],n=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),i=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,n);return new xe.L(e.modelLineNumber,i)}},{key:"getModelEndPositionOfViewLine",value:function(e){var t=this.modelLineProjections[e.modelLineNumber-1],n=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),i=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,n);return new xe.L(e.modelLineNumber,i)}},{key:"getViewLineInfosGroupedByModelRanges",value:function(e,t){for(var n=this.getViewLineInfo(e),i=this.getViewLineInfo(t),r=new Array,o=this.getModelStartPositionOfViewLine(n),a=new Array,s=n.modelLineNumber;s<=i.modelLineNumber;s++){var l=this.modelLineProjections[s-1];if(l.isVisible())for(var c=s===n.modelLineNumber?n.modelLineWrappedLineIdx:0,u=s===i.modelLineNumber?i.modelLineWrappedLineIdx+1:l.getViewLineCount(),d=c;d<u;d++)a.push(new tr(s,d));if(!l.isVisible()&&o){var h=new xe.L(s-1,this.model.getLineMaxColumn(s-1)+1),f=Ee.e.fromPositions(o,h);r.push(new nr(f,a)),a=[],o=null}else l.isVisible()&&!o&&(o=new xe.L(s,1))}if(o){var p=Ee.e.fromPositions(o,this.getModelEndPositionOfViewLine(i));r.push(new nr(p,a))}return r}},{key:"getViewLinesBracketGuides",value:function(e,t,n,i){var r,a=this,s=n?this.convertViewPositionToModelPosition(n.lineNumber,n.column):null,l=[],c=(0,o.Z)(this.getViewLineInfosGroupedByModelRanges(e,t));try{for(c.s();!(r=c.n()).done;){var u,d=r.value,h=d.modelRange.startLineNumber,f=this.model.guides.getLinesBracketGuides(h,d.modelRange.endLineNumber,s,i),p=(0,o.Z)(d.viewLines);try{var g=function(){var e=u.value,t=f[e.modelLineNumber-h].map((function(t){if(-1!==t.forWrappedLinesAfterColumn&&a.modelLineProjections[e.modelLineNumber-1].getViewPositionOfModelPosition(0,t.forWrappedLinesAfterColumn).lineNumber>=e.modelLineWrappedLineIdx)return;if(-1!==t.forWrappedLinesBeforeOrAtColumn&&a.modelLineProjections[e.modelLineNumber-1].getViewPositionOfModelPosition(0,t.forWrappedLinesBeforeOrAtColumn).lineNumber<e.modelLineWrappedLineIdx)return;if(!t.horizontalLine)return t;var n=-1;if(-1!==t.column){var i=a.modelLineProjections[e.modelLineNumber-1].getViewPositionOfModelPosition(0,t.column);if(i.lineNumber===e.modelLineWrappedLineIdx)n=i.column;else if(i.lineNumber<e.modelLineWrappedLineIdx)n=a.getMinColumnOfViewLine(e);else if(i.lineNumber>e.modelLineWrappedLineIdx)return}var r=a.convertModelPositionToViewPosition(e.modelLineNumber,t.horizontalLine.endColumn),o=a.modelLineProjections[e.modelLineNumber-1].getViewPositionOfModelPosition(0,t.horizontalLine.endColumn);return o.lineNumber===e.modelLineWrappedLineIdx?new Ft.UO(t.visibleColumn,n,t.className,new Ft.vW(t.horizontalLine.top,r.column),-1,-1):o.lineNumber<e.modelLineWrappedLineIdx||-1!==t.visibleColumn?void 0:new Ft.UO(t.visibleColumn,n,t.className,new Ft.vW(t.horizontalLine.top,a.getMaxColumnOfViewLine(e)),-1,-1)}));l.push(t.filter((function(e){return!!e})))};for(p.s();!(u=p.n()).done;)g()}catch(v){p.e(v)}finally{p.f()}}}catch(v){c.e(v)}finally{c.f()}return l}},{key:"getViewLinesIndentGuides",value:function(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),r=[],o=[],a=[],s=n.lineNumber-1,l=i.lineNumber-1,c=null,u=s;u<=l;u++){var d=this.modelLineProjections[u];if(d.isVisible()){var h=d.getViewLineNumberOfModelPosition(0,u===s?n.column:1),f=d.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(u+1)),p=f-h+1,g=0;p>1&&1===d.getViewLineMinColumn(this.model,u+1,f)&&(g=0===h?1:2),o.push(p),a.push(g),null===c&&(c=new xe.L(u+1,0))}else null!==c&&(r=r.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,u)),c=null)}null!==c&&(r=r.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,i.lineNumber)),c=null);for(var v=t-e+1,m=new Array(v),y=0,_=0,b=r.length;_<b;_++){var C=r[_],S=Math.min(v-y,o[_]),w=a[_],k=void 0;k=2===w?0:1===w?1:S;for(var x=0;x<S;x++)x===k&&(C=0),m[y++]=C}return m}},{key:"getViewLineContent",value:function(e){var t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineContent(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}},{key:"getViewLineLength",value:function(e){var t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineLength(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}},{key:"getViewLineMinColumn",value:function(e){var t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMinColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}},{key:"getViewLineMaxColumn",value:function(e){var t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMaxColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}},{key:"getViewLineData",value:function(e){var t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineData(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}},{key:"getViewLinesData",value:function(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var i=this.projectedModelLineLineCounts.getIndexOf(e-1),r=e,o=i.index,a=i.remainder,s=[],l=o,c=this.model.getLineCount();l<c;l++){var u=this.modelLineProjections[l];if(u.isVisible()){var d=l===o?a:0,h=u.getViewLineCount()-d,f=!1;if(r+h>t&&(f=!0,h=t-r+1),u.getViewLinesData(this.model,l+1,d,h,r-e,n,s),r+=h,f)break}}return s}},{key:"validateViewPosition",value:function(e,t,n){e=this._toValidViewLineNumber(e);var i=this.projectedModelLineLineCounts.getIndexOf(e-1),r=i.index,o=i.remainder,a=this.modelLineProjections[r],s=a.getViewLineMinColumn(this.model,r+1,o),l=a.getViewLineMaxColumn(this.model,r+1,o);t<s&&(t=s),t>l&&(t=l);var c=a.getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new xe.L(r+1,c)).equals(n)?new xe.L(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)}},{key:"validateViewRange",value:function(e,t){var n=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new Ee.e(n.lineNumber,n.column,i.lineNumber,i.column)}},{key:"convertViewPositionToModelPosition",value:function(e,t){var n=this.getViewLineInfo(e),i=this.modelLineProjections[n.modelLineNumber-1].getModelColumnOfViewPosition(n.modelLineWrappedLineIdx,t);return this.model.validatePosition(new xe.L(n.modelLineNumber,i))}},{key:"convertViewRangeToModelRange",value:function(e){var t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new Ee.e(t.lineNumber,t.column,n.lineNumber,n.column)}},{key:"convertModelPositionToViewPosition",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,i=this.model.validatePosition(new xe.L(e,t)),r=i.lineNumber,o=i.column,a=r-1,s=!1;a>0&&!this.modelLineProjections[a].isVisible();)a--,s=!0;if(0===a&&!this.modelLineProjections[a].isVisible())return new xe.L(1,1);var l=1+this.projectedModelLineLineCounts.getPrefixSum(a);return s?this.modelLineProjections[a].getViewPositionOfModelPosition(l,this.model.getLineMaxColumn(a+1),n):this.modelLineProjections[r-1].getViewPositionOfModelPosition(l,o,n)}},{key:"convertModelRangeToViewRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.isEmpty()){var n=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return Ee.e.fromPositions(n)}var i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),r=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new Ee.e(i.lineNumber,i.column,r.lineNumber,r.column)}},{key:"getViewLineNumberOfModelPosition",value:function(e,t){var n=e-1;if(this.modelLineProjections[n].isVisible()){var i=1+this.projectedModelLineLineCounts.getPrefixSum(n);return this.modelLineProjections[n].getViewLineNumberOfModelPosition(i,t)}for(;n>0&&!this.modelLineProjections[n].isVisible();)n--;if(0===n&&!this.modelLineProjections[n].isVisible())return 1;var r=1+this.projectedModelLineLineCounts.getPrefixSum(n);return this.modelLineProjections[n].getViewLineNumberOfModelPosition(r,this.model.getLineMaxColumn(n+1))}},{key:"getDecorationsInRange",value:function(e,t,n){var i=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),r=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(r.lineNumber-i.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new Ee.e(i.lineNumber,1,r.lineNumber,r.column),t,n);for(var a=[],s=i.lineNumber-1,l=r.lineNumber-1,c=null,u=s;u<=l;u++){if(this.modelLineProjections[u].isVisible())null===c&&(c=new xe.L(u+1,u===s?i.column:1));else if(null!==c){var d=this.model.getLineMaxColumn(u);a=a.concat(this.model.getDecorationsInRange(new Ee.e(c.lineNumber,c.column,u,d),t,n)),c=null}}null!==c&&(a=a.concat(this.model.getDecorationsInRange(new Ee.e(c.lineNumber,c.column,r.lineNumber,r.column),t,n)),c=null),a.sort((function(e,t){var n=Ee.e.compareRangesUsingStarts(e.range,t.range);return 0===n?e.id<t.id?-1:e.id>t.id?1:0:n}));var h,f=[],p=0,g=null,v=(0,o.Z)(a);try{for(v.s();!(h=v.n()).done;){var m=h.value,y=m.id;g!==y&&(g=y,f[p++]=m)}}catch(_){v.e(_)}finally{v.f()}return f}},{key:"getInjectedTextAt",value:function(e){var t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}},{key:"normalizePosition",value:function(e,t){var n=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[n.modelLineNumber-1].normalizePosition(n.modelLineWrappedLineIdx,e,t)}},{key:"getLineIndentColumn",value:function(e){var t=this.getViewLineInfo(e);return 0===t.modelLineWrappedLineIdx?this.model.getLineIndentColumn(t.modelLineNumber):0}}]),e}();var tr=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.modelLineNumber=t,this.modelLineWrappedLineIdx=n})),nr=(0,h.Z)((function e(t,n){(0,d.Z)(this,e),this.modelRange=t,this.viewLines=n})),ir=function(){function e(t){(0,d.Z)(this,e),this._lines=t}return(0,h.Z)(e,[{key:"convertViewPositionToModelPosition",value:function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}},{key:"convertViewRangeToModelRange",value:function(e){return this._lines.convertViewRangeToModelRange(e)}},{key:"validateViewPosition",value:function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}},{key:"validateViewRange",value:function(e,t){return this._lines.validateViewRange(e,t)}},{key:"convertModelPositionToViewPosition",value:function(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}},{key:"convertModelRangeToViewRange",value:function(e,t){return this._lines.convertModelRangeToViewRange(e,t)}},{key:"modelPositionIsVisible",value:function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}},{key:"getModelLineViewLineCount",value:function(e){return this._lines.getModelLineViewLineCount(e)}},{key:"getViewLineNumberOfModelPosition",value:function(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}]),e}(),rr=function(){function e(t){(0,d.Z)(this,e),this.model=t}return(0,h.Z)(e,[{key:"dispose",value:function(){}},{key:"createCoordinatesConverter",value:function(){return new or(this)}},{key:"getHiddenAreas",value:function(){return[]}},{key:"setHiddenAreas",value:function(e){return!1}},{key:"setTabSize",value:function(e){return!1}},{key:"setWrappingSettings",value:function(e,t,n,i){return!1}},{key:"createLineBreaksComputer",value:function(){var e=[];return{addRequest:function(t,n,i){e.push(null)},finalize:function(){return e}}}},{key:"onModelFlushed",value:function(){}},{key:"onModelLinesDeleted",value:function(e,t,n){return new ni(t,n)}},{key:"onModelLinesInserted",value:function(e,t,n,i){return new ii(t,n)}},{key:"onModelLineChanged",value:function(e,t,n){return[!1,new ti(t,1),null,null]}},{key:"acceptVersionId",value:function(e){}},{key:"getViewLineCount",value:function(){return this.model.getLineCount()}},{key:"getActiveIndentGuide",value:function(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}}},{key:"getViewLinesBracketGuides",value:function(e,t,n){return new Array(t-e+1).fill([])}},{key:"getViewLinesIndentGuides",value:function(e,t){for(var n=t-e+1,i=new Array(n),r=0;r<n;r++)i[r]=0;return i}},{key:"getViewLineContent",value:function(e){return this.model.getLineContent(e)}},{key:"getViewLineLength",value:function(e){return this.model.getLineLength(e)}},{key:"getViewLineMinColumn",value:function(e){return this.model.getLineMinColumn(e)}},{key:"getViewLineMaxColumn",value:function(e){return this.model.getLineMaxColumn(e)}},{key:"getViewLineData",value:function(e){var t=this.model.tokenization.getLineTokens(e),n=t.getLineContent();return new $t.IP(n,!1,1,n.length+1,0,t.inflate(),null)}},{key:"getViewLinesData",value:function(e,t,n){var i=this.model.getLineCount();e=Math.min(Math.max(1,e),i),t=Math.min(Math.max(1,t),i);for(var r=[],o=e;o<=t;o++){var a=o-e;r[a]=n[a]?this.getViewLineData(o):null}return r}},{key:"getDecorationsInRange",value:function(e,t,n){return this.model.getDecorationsInRange(e,t,n)}},{key:"normalizePosition",value:function(e,t){return this.model.normalizePosition(e,t)}},{key:"getLineIndentColumn",value:function(e){return this.model.getLineIndentColumn(e)}},{key:"getInjectedTextAt",value:function(e){return null}}]),e}(),or=function(){function e(t){(0,d.Z)(this,e),this._lines=t}return(0,h.Z)(e,[{key:"_validPosition",value:function(e){return this._lines.model.validatePosition(e)}},{key:"_validRange",value:function(e){return this._lines.model.validateRange(e)}},{key:"convertViewPositionToModelPosition",value:function(e){return this._validPosition(e)}},{key:"convertViewRangeToModelRange",value:function(e){return this._validRange(e)}},{key:"validateViewPosition",value:function(e,t){return this._validPosition(t)}},{key:"validateViewRange",value:function(e,t){return this._validRange(t)}},{key:"convertModelPositionToViewPosition",value:function(e){return this._validPosition(e)}},{key:"convertModelRangeToViewRange",value:function(e){return this._validRange(e)}},{key:"modelPositionIsVisible",value:function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}},{key:"getModelLineViewLineCount",value:function(e){return 1}},{key:"getViewLineNumberOfModelPosition",value:function(e,t){return e}}]),e}(),ar=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r,o,s,l,c,u){var h;if((0,d.Z)(this,n),(h=t.call(this)).languageConfigurationService=c,h._themeService=u,h._editorId=e,h._configuration=i,h.model=r,h._eventDispatcher=new ui,h.onEvent=h._eventDispatcher.onEvent,h.cursorConfig=new Bn.LM(h.model.getLanguageId(),h.model.getOptions(),h._configuration,h.languageConfigurationService),h._tokenizeViewportSoon=h._register(new Q.pY((function(){return h.tokenizeViewport()}),50)),h._updateConfigurationViewLineCount=h._register(new Q.pY((function(){return h._updateConfigurationViewLineCountNow()}),0)),h._hasFocus=!1,h._viewportStart=sr.create(h.model),h.model.isTooLargeForTokenization())h._lines=new rr(h.model);else{var f=h._configuration.options,p=f.get(46),g=f.get(127),v=f.get(134),m=f.get(126);h._lines=new er(h._editorId,h.model,o,s,p,h.model.getOptions().tabSize,g,v.wrappingColumn,m)}return h.coordinatesConverter=h._lines.createCoordinatesConverter(),h._cursor=h._register(new xi(r,(0,a.Z)(h),h.coordinatesConverter,h.cursorConfig)),h.viewLayout=h._register(new Vi(h._configuration,h.getLineCount(),l)),h._register(h.viewLayout.onDidScroll((function(e){e.scrollTopChanged&&h._tokenizeViewportSoon.schedule(),e.scrollTopChanged&&h._viewportStart.invalidate(),h._eventDispatcher.emitSingleViewEvent(new oi(e)),h._eventDispatcher.emitOutgoingEvent(new pi(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),h._register(h.viewLayout.onDidContentSizeChange((function(e){h._eventDispatcher.emitOutgoingEvent(e)}))),h._decorations=new Wi.CU(h._editorId,h.model,h._configuration,h._lines,h.coordinatesConverter),h._registerModelEvents(),h._register(h._configuration.onDidChangeFast((function(e){try{var t=h._eventDispatcher.beginEmitViewEvents();h._onConfigurationChanged(t,e)}finally{h._eventDispatcher.endEmitViewEvents()}}))),h._register(qt.getInstance().onDidChange((function(){h._eventDispatcher.emitSingleViewEvent(new li)}))),h._register(h._themeService.onDidColorThemeChange((function(e){h._invalidateDecorationsColorCache(),h._eventDispatcher.emitSingleViewEvent(new ai(e))}))),h._updateConfigurationViewLineCountNow(),h}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}},{key:"createLineBreaksComputer",value:function(){return this._lines.createLineBreaksComputer()}},{key:"addViewEventHandler",value:function(e){this._eventDispatcher.addViewEventHandler(e)}},{key:"removeViewEventHandler",value:function(e){this._eventDispatcher.removeViewEventHandler(e)}},{key:"_updateConfigurationViewLineCountNow",value:function(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}},{key:"tokenizeViewport",value:function(){var e,t=this.viewLayout.getLinesViewportData(),n=new Ee.e(t.startLineNumber,this.getLineMinColumn(t.startLineNumber),t.endLineNumber,this.getLineMaxColumn(t.endLineNumber)),i=this._toModelVisibleRanges(n),r=(0,o.Z)(i);try{for(r.s();!(e=r.n()).done;){var a=e.value;this.model.tokenization.tokenizeViewport(a.startLineNumber,a.endLineNumber)}}catch(s){r.e(s)}finally{r.f()}}},{key:"setHasFocus",value:function(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new Qn(e)),this._eventDispatcher.emitOutgoingEvent(new fi(!e,e))}},{key:"onCompositionStart",value:function(){this._eventDispatcher.emitSingleViewEvent(new Gn)}},{key:"onCompositionEnd",value:function(){this._eventDispatcher.emitSingleViewEvent(new Kn)}},{key:"_onConfigurationChanged",value:function(e,t){var n=null;if(this._viewportStart.isValid){var i=new xe.L(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber));n=this.coordinatesConverter.convertViewPositionToModelPosition(i)}var r=!1,o=this._configuration.options,a=o.get(46),s=o.get(127),l=o.get(134),c=o.get(126);if(this._lines.setWrappingSettings(a,s,l.wrappingColumn,c)&&(e.emitViewEvent(new Xn),e.emitViewEvent(new ei),e.emitViewEvent(new $n(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(r=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(83)&&(this._decorations.reset(),e.emitViewEvent(new $n(null))),e.emitViewEvent(new Yn(t)),this.viewLayout.onConfigurationChanged(t),r&&n){var u=this.coordinatesConverter.convertModelPositionToViewPosition(n),d=this.viewLayout.getVerticalOffsetForLineNumber(u.lineNumber);this.viewLayout.setScrollPosition({scrollTop:d+this._viewportStart.startLineDelta},1)}Bn.LM.shouldRecreate(t)&&(this.cursorConfig=new Bn.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}},{key:"_registerModelEvents",value:function(){var e=this;this._register(this.model.onDidChangeContentOrInjectedText((function(t){try{var n,r=e._eventDispatcher.beginEmitViewEvents(),a=!1,s=!1,l=t instanceof Un.fV?t.rawContentChangedEvent.changes:t.changes,c=t instanceof Un.fV?t.rawContentChangedEvent.versionId:null,u=e._lines.createLineBreaksComputer(),d=(0,o.Z)(l);try{for(d.s();!(n=d.n()).done;){var h=n.value;switch(h.changeType){case 4:for(var f=0;f<h.detail.length;f++){var p=h.detail[f],g=h.injectedTexts[f];g&&(g=g.filter((function(t){return!t.ownerId||t.ownerId===e._editorId}))),u.addRequest(p,g,null)}break;case 2:var v=null;h.injectedText&&(v=h.injectedText.filter((function(t){return!t.ownerId||t.ownerId===e._editorId}))),u.addRequest(h.detail,v,null)}}}catch(F){d.e(F)}finally{d.f()}var m,y=u.finalize(),_=new x.H9(y),b=(0,o.Z)(l);try{for(b.s();!(m=b.n()).done;){var C=m.value;switch(C.changeType){case 1:e._lines.onModelFlushed(),r.emitViewEvent(new Xn),e._decorations.reset(),e.viewLayout.onFlushed(e.getLineCount()),a=!0;break;case 3:var S=e._lines.onModelLinesDeleted(c,C.fromLineNumber,C.toLineNumber);null!==S&&(r.emitViewEvent(S),e.viewLayout.onLinesDeleted(S.fromLineNumber,S.toLineNumber)),a=!0;break;case 4:var w=_.takeCount(C.detail.length),k=e._lines.onModelLinesInserted(c,C.fromLineNumber,C.toLineNumber,w);null!==k&&(r.emitViewEvent(k),e.viewLayout.onLinesInserted(k.fromLineNumber,k.toLineNumber)),a=!0;break;case 2:var E=_.dequeue(),T=e._lines.onModelLineChanged(c,C.lineNumber,E),N=(0,i.Z)(T,4),I=N[0],D=N[1],L=N[2],O=N[3];s=I,D&&r.emitViewEvent(D),L&&(r.emitViewEvent(L),e.viewLayout.onLinesInserted(L.fromLineNumber,L.toLineNumber)),O&&(r.emitViewEvent(O),e.viewLayout.onLinesDeleted(O.fromLineNumber,O.toLineNumber))}}}catch(F){b.e(F)}finally{b.f()}null!==c&&e._lines.acceptVersionId(c),e.viewLayout.onHeightMaybeChanged(),!a&&s&&(r.emitViewEvent(new ei),r.emitViewEvent(new $n(null)),e._cursor.onLineMappingChanged(r),e._decorations.onLineMappingChanged())}finally{e._eventDispatcher.endEmitViewEvents()}var R=e._viewportStart.isValid;if(e._viewportStart.invalidate(),e._configuration.setModelLineCount(e.model.getLineCount()),e._updateConfigurationViewLineCountNow(),!e._hasFocus&&e.model.getAttachedEditorCount()>=2&&R){var A=e.model._getTrackedRange(e._viewportStart.modelTrackedRange);if(A){var M=e.coordinatesConverter.convertModelPositionToViewPosition(A.getStartPosition()),P=e.viewLayout.getVerticalOffsetForLineNumber(M.lineNumber);e.viewLayout.setScrollPosition({scrollTop:P+e._viewportStart.startLineDelta},1)}}try{var Z=e._eventDispatcher.beginEmitViewEvents();t instanceof Un.fV&&Z.emitOutgoingEvent(new Si(t.contentChangedEvent)),e._cursor.onModelContentChanged(Z,t)}finally{e._eventDispatcher.endEmitViewEvents()}e._tokenizeViewportSoon.schedule()}))),this._register(this.model.onDidChangeTokens((function(t){for(var n=[],i=0,r=t.ranges.length;i<r;i++){var o=t.ranges[i],a=e.coordinatesConverter.convertModelPositionToViewPosition(new xe.L(o.fromLineNumber,1)).lineNumber,s=e.coordinatesConverter.convertModelPositionToViewPosition(new xe.L(o.toLineNumber,e.model.getLineMaxColumn(o.toLineNumber))).lineNumber;n[i]={fromLineNumber:a,toLineNumber:s}}e._eventDispatcher.emitSingleViewEvent(new si(n)),t.tokenizationSupportChanged&&e._tokenizeViewportSoon.schedule(),e._eventDispatcher.emitOutgoingEvent(new ki(t))}))),this._register(this.model.onDidChangeLanguageConfiguration((function(t){e._eventDispatcher.emitSingleViewEvent(new Jn),e.cursorConfig=new Bn.LM(e.model.getLanguageId(),e.model.getOptions(),e._configuration,e.languageConfigurationService),e._cursor.updateConfiguration(e.cursorConfig),e._eventDispatcher.emitOutgoingEvent(new Ci(t))}))),this._register(this.model.onDidChangeLanguage((function(t){e.cursorConfig=new Bn.LM(e.model.getLanguageId(),e.model.getOptions(),e._configuration,e.languageConfigurationService),e._cursor.updateConfiguration(e.cursorConfig),e._eventDispatcher.emitOutgoingEvent(new bi(t))}))),this._register(this.model.onDidChangeOptions((function(t){if(e._lines.setTabSize(e.model.getOptions().tabSize)){try{var n=e._eventDispatcher.beginEmitViewEvents();n.emitViewEvent(new Xn),n.emitViewEvent(new ei),n.emitViewEvent(new $n(null)),e._cursor.onLineMappingChanged(n),e._decorations.onLineMappingChanged(),e.viewLayout.onFlushed(e.getLineCount())}finally{e._eventDispatcher.endEmitViewEvents()}e._updateConfigurationViewLineCount.schedule()}e.cursorConfig=new Bn.LM(e.model.getLanguageId(),e.model.getOptions(),e._configuration,e.languageConfigurationService),e._cursor.updateConfiguration(e.cursorConfig),e._eventDispatcher.emitOutgoingEvent(new wi(t))}))),this._register(this.model.onDidChangeDecorations((function(t){e._decorations.onModelDecorationsChanged(),e._eventDispatcher.emitSingleViewEvent(new $n(t)),e._eventDispatcher.emitOutgoingEvent(new _i(t))})))}},{key:"setHiddenAreas",value:function(e){var t=!1;try{var n=this._eventDispatcher.beginEmitViewEvents();(t=this._lines.setHiddenAreas(e))&&(n.emitViewEvent(new Xn),n.emitViewEvent(new ei),n.emitViewEvent(new $n(null)),this._cursor.onLineMappingChanged(n),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),t&&this._eventDispatcher.emitOutgoingEvent(new vi)}},{key:"getVisibleRangesPlusViewportAboveBelow",value:function(){var e=this._configuration.options.get(133),t=this._configuration.options.get(61),n=Math.max(20,Math.round(e.height/t)),i=this.viewLayout.getLinesViewportData(),r=Math.max(1,i.completelyVisibleStartLineNumber-n),o=Math.min(this.getLineCount(),i.completelyVisibleEndLineNumber+n);return this._toModelVisibleRanges(new Ee.e(r,this.getLineMinColumn(r),o,this.getLineMaxColumn(o)))}},{key:"getVisibleRanges",value:function(){var e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}},{key:"getHiddenAreas",value:function(){return this._lines.getHiddenAreas()}},{key:"_toModelVisibleRanges",value:function(e){var t=this.coordinatesConverter.convertViewRangeToModelRange(e),n=this._lines.getHiddenAreas();if(0===n.length)return[t];for(var i=[],r=0,o=t.startLineNumber,a=t.startColumn,s=t.endLineNumber,l=t.endColumn,c=0,u=n.length;c<u;c++){var d=n[c].startLineNumber,h=n[c].endLineNumber;h<o||(d>s||(o<d&&(i[r++]=new Ee.e(o,a,d-1,this.model.getLineMaxColumn(d-1))),o=h+1,a=1))}return(o<s||o===s&&a<l)&&(i[r++]=new Ee.e(o,a,s,l)),i}},{key:"getCompletelyVisibleViewRange",value:function(){var e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new Ee.e(t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))}},{key:"getCompletelyVisibleViewRangeAtScrollTop",value:function(e){var t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,i=t.completelyVisibleEndLineNumber;return new Ee.e(n,this.getLineMinColumn(n),i,this.getLineMaxColumn(i))}},{key:"saveState",value:function(){var e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),i=this.coordinatesConverter.convertViewPositionToModelPosition(new xe.L(n,this.getLineMinColumn(n))),r=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:i,firstPositionDeltaTop:r}}},{key:"reduceRestoreState",value:function(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);var t=this.model.validatePosition(e.firstPosition),n=this.coordinatesConverter.convertModelPositionToViewPosition(t),i=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:i}}},{key:"_reduceRestoreStateCompatibility",value:function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}},{key:"getTabSize",value:function(){return this.model.getOptions().tabSize}},{key:"getLineCount",value:function(){return this._lines.getViewLineCount()}},{key:"setViewport",value:function(e,t,n){this._viewportStart.update(this,e)}},{key:"getActiveIndentGuide",value:function(e,t,n){return this._lines.getActiveIndentGuide(e,t,n)}},{key:"getLinesIndentGuides",value:function(e,t){return this._lines.getViewLinesIndentGuides(e,t)}},{key:"getBracketGuidesInRangeByLine",value:function(e,t,n,i){return this._lines.getViewLinesBracketGuides(e,t,n,i)}},{key:"getLineContent",value:function(e){return this._lines.getViewLineContent(e)}},{key:"getLineLength",value:function(e){return this._lines.getViewLineLength(e)}},{key:"getLineMinColumn",value:function(e){return this._lines.getViewLineMinColumn(e)}},{key:"getLineMaxColumn",value:function(e){return this._lines.getViewLineMaxColumn(e)}},{key:"getLineFirstNonWhitespaceColumn",value:function(e){var t=Ye.LC(this.getLineContent(e));return-1===t?0:t+1}},{key:"getLineLastNonWhitespaceColumn",value:function(e){var t=Ye.ow(this.getLineContent(e));return-1===t?0:t+2}},{key:"getDecorationsInViewport",value:function(e){return this._decorations.getDecorationsViewportData(e).decorations}},{key:"getInjectedTextAt",value:function(e){return this._lines.getInjectedTextAt(e)}},{key:"getViewportViewLineRenderingData",value:function(e,t){var n=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,n)}},{key:"getViewLineRenderingData",value:function(e){var t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}},{key:"_getViewLineRenderingData",value:function(e,t){var n=this.model.mightContainRTL(),i=this.model.mightContainNonBasicASCII(),r=this.getTabSize(),o=this._lines.getViewLineData(e);return o.inlineDecorations&&(t=[].concat((0,Mt.Z)(t),(0,Mt.Z)(o.inlineDecorations.map((function(t){return t.toInlineDecoration(e)}))))),new $t.wA(o.minColumn,o.maxColumn,o.content,o.continuesWithWrappedLine,n,i,o.tokens,t,r,o.startVisibleColumn)}},{key:"getViewLineData",value:function(e){return this._lines.getViewLineData(e)}},{key:"getMinimapLinesRenderingData",value:function(e,t,n){var i=this._lines.getViewLinesData(e,t,n);return new $t.ud(this.getTabSize(),i)}},{key:"getAllOverviewRulerDecorations",value:function(e){var t,n=this.model.getOverviewRulerDecorations(this._editorId,(0,M.$J)(this._configuration.options)),i=new lr,r=(0,o.Z)(n);try{for(r.s();!(t=r.n()).done;){var a=t.value,s=a.options,l=s.overviewRuler;if(l){var c=l.position;if(0!==c){var u=l.getColor(e.value),d=this.coordinatesConverter.getViewLineNumberOfModelPosition(a.range.startLineNumber,a.range.startColumn),h=this.coordinatesConverter.getViewLineNumberOfModelPosition(a.range.endLineNumber,a.range.endColumn);i.accept(u,s.zIndex,d,h,c)}}}}catch(f){r.e(f)}finally{r.f()}return i.asArray}},{key:"_invalidateDecorationsColorCache",value:function(){var e,t=this.model.getOverviewRulerDecorations(),n=(0,o.Z)(t);try{for(n.s();!(e=n.n()).done;){var i=e.value,r=i.options.overviewRuler;r&&r.invalidateCachedColor();var a=i.options.minimap;a&&a.invalidateCachedColor()}}catch(s){n.e(s)}finally{n.f()}}},{key:"getValueInRange",value:function(e,t){var n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)}},{key:"deduceModelPositionRelativeToViewPosition",value:function(e,t,n){var i=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=n:t+=n);var r=this.model.getOffsetAt(i)+t;return this.model.getPositionAt(r)}},{key:"getPlainTextToCopy",value:function(e,t,n){var i=n?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(Ee.e.compareRangesUsingStarts);var r,a=!1,s=!1,l=(0,o.Z)(e);try{for(l.s();!(r=l.n()).done;){r.value.isEmpty()?a=!0:s=!0}}catch(S){l.e(S)}finally{l.f()}if(!s){if(!t)return"";for(var c=e.map((function(e){return e.startLineNumber})),u="",d=0;d<c.length;d++)d>0&&c[d-1]===c[d]||(u+=this.model.getLineContent(c[d])+i);return u}if(a&&t){var h,f=[],p=0,g=(0,o.Z)(e);try{for(g.s();!(h=g.n()).done;){var v=h.value,m=v.startLineNumber;v.isEmpty()?m!==p&&f.push(this.model.getLineContent(m)):f.push(this.model.getValueInRange(v,n?2:0)),p=m}}catch(S){g.e(S)}finally{g.f()}return 1===f.length?f[0]:f}var y,_=[],b=(0,o.Z)(e);try{for(b.s();!(y=b.n()).done;){var C=y.value;C.isEmpty()||_.push(this.model.getValueInRange(C,n?2:0))}}catch(S){b.e(S)}finally{b.f()}return 1===_.length?_[0]:_}},{key:"getRichTextToCopy",value:function(e,t){var n=this.model.getLanguageId();if(n===Mi.bd)return null;if(1!==e.length)return null;var i=e[0];if(i.isEmpty()){if(!t)return null;var r=i.startLineNumber;i=new Ee.e(r,this.model.getLineMinColumn(r),r,this.model.getLineMaxColumn(r))}var o,a=this._configuration.options.get(46),s=this._getColorMap();if(/[:;\\\/<>]/.test(a.fontFamily)||a.fontFamily===M.hL.fontFamily)o=M.hL.fontFamily;else{if(o=(o=a.fontFamily).replace(/"/g,"'"),!/[,']/.test(o))/[+ ]/.test(o)&&(o="'".concat(o,"'"));o="".concat(o,", ").concat(M.hL.fontFamily)}return{mode:n,html:'<div style="'+"color: ".concat(s[1],";")+"background-color: ".concat(s[2],";")+"font-family: ".concat(o,";")+"font-weight: ".concat(a.fontWeight,";")+"font-size: ".concat(a.fontSize,"px;")+"line-height: ".concat(a.lineHeight,"px;")+'white-space: pre;">'+this._getHTMLToCopy(i,s)+"</div>"}}},{key:"_getHTMLToCopy",value:function(e,t){for(var n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn,a=this.getTabSize(),s="",l=n;l<=r;l++){var c=this.model.tokenization.getLineTokens(l),u=c.getLineContent(),d=l===n?i-1:0,h=l===r?o-1:u.length;s+=""===u?"<br>":(0,Pi.Fq)(u,c.inflate(),t,d,h,a,T.ED)}return s}},{key:"_getColorMap",value:function(){var e=rt.RW.getColorMap(),t=["#000000"];if(e)for(var n=1,i=e.length;n<i;n++)t[n]=ot.Il.Format.CSS.formatHex(e[n]);return t}},{key:"getPrimaryCursorState",value:function(){return this._cursor.getPrimaryCursorState()}},{key:"getLastAddedCursorIndex",value:function(){return this._cursor.getLastAddedCursorIndex()}},{key:"getCursorStates",value:function(){return this._cursor.getCursorStates()}},{key:"setCursorStates",value:function(e,t,n){var i=this;return this._withViewEventsCollector((function(r){return i._cursor.setStates(r,e,t,n)}))}},{key:"getCursorColumnSelectData",value:function(){return this._cursor.getCursorColumnSelectData()}},{key:"getCursorAutoClosedCharacters",value:function(){return this._cursor.getAutoClosedCharacters()}},{key:"setCursorColumnSelectData",value:function(e){this._cursor.setCursorColumnSelectData(e)}},{key:"getPrevEditOperationType",value:function(){return this._cursor.getPrevEditOperationType()}},{key:"setPrevEditOperationType",value:function(e){this._cursor.setPrevEditOperationType(e)}},{key:"getSelection",value:function(){return this._cursor.getSelection()}},{key:"getSelections",value:function(){return this._cursor.getSelections()}},{key:"getPosition",value:function(){return this._cursor.getPrimaryCursorState().modelState.position}},{key:"setSelections",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._withViewEventsCollector((function(r){return n._cursor.setSelections(r,e,t,i)}))}},{key:"saveCursorState",value:function(){return this._cursor.saveState()}},{key:"restoreCursorState",value:function(e){var t=this;this._withViewEventsCollector((function(n){return t._cursor.restoreState(n,e)}))}},{key:"_executeCursorEdit",value:function(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new yi):this._withViewEventsCollector(e)}},{key:"executeEdits",value:function(e,t,n){var i=this;this._executeCursorEdit((function(r){return i._cursor.executeEdits(r,e,t,n)}))}},{key:"startComposition",value:function(){var e=this;this._executeCursorEdit((function(t){return e._cursor.startComposition(t)}))}},{key:"endComposition",value:function(e){var t=this;this._executeCursorEdit((function(n){return t._cursor.endComposition(n,e)}))}},{key:"type",value:function(e,t){var n=this;this._executeCursorEdit((function(i){return n._cursor.type(i,e,t)}))}},{key:"compositionType",value:function(e,t,n,i,r){var o=this;this._executeCursorEdit((function(a){return o._cursor.compositionType(a,e,t,n,i,r)}))}},{key:"paste",value:function(e,t,n,i){var r=this;this._executeCursorEdit((function(o){return r._cursor.paste(o,e,t,n,i)}))}},{key:"cut",value:function(e){var t=this;this._executeCursorEdit((function(n){return t._cursor.cut(n,e)}))}},{key:"executeCommand",value:function(e,t){var n=this;this._executeCursorEdit((function(i){return n._cursor.executeCommand(i,e,t)}))}},{key:"executeCommands",value:function(e,t){var n=this;this._executeCursorEdit((function(i){return n._cursor.executeCommands(i,e,t)}))}},{key:"revealPrimaryCursor",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._withViewEventsCollector((function(r){return n._cursor.revealPrimary(r,e,i,0,t,0)}))}},{key:"revealTopMostCursor",value:function(e){var t=this._cursor.getTopMostViewPosition(),n=new Ee.e(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((function(t){return t.emitViewEvent(new ri(e,!1,n,null,0,!0,0))}))}},{key:"revealBottomMostCursor",value:function(e){var t=this._cursor.getBottomMostViewPosition(),n=new Ee.e(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((function(t){return t.emitViewEvent(new ri(e,!1,n,null,0,!0,0))}))}},{key:"revealRange",value:function(e,t,n,i,r){this._withViewEventsCollector((function(o){return o.emitViewEvent(new ri(e,!1,n,null,i,t,r))}))}},{key:"changeWhitespace",value:function(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new ci),this._eventDispatcher.emitOutgoingEvent(new gi))}},{key:"_withViewEventsCollector",value:function(e){try{return e(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}},{key:"normalizePosition",value:function(e,t){return this._lines.normalizePosition(e,t)}},{key:"getLineIndentColumn",value:function(e){return this._lines.getLineIndentColumn(e)}}]),n}(S.JT),sr=function(){function e(t,n,i,r,o){(0,d.Z)(this,e),this._model=t,this._viewLineNumber=n,this._isValid=i,this._modelTrackedRange=r,this._startLineDelta=o}return(0,h.Z)(e,[{key:"viewLineNumber",get:function(){return this._viewLineNumber}},{key:"isValid",get:function(){return this._isValid}},{key:"modelTrackedRange",get:function(){return this._modelTrackedRange}},{key:"startLineDelta",get:function(){return this._startLineDelta}},{key:"dispose",value:function(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}},{key:"update",value:function(e,t){var n=e.coordinatesConverter.convertViewPositionToModelPosition(new xe.L(t,e.getLineMinColumn(t))),i=e.model._setTrackedRange(this._modelTrackedRange,new Ee.e(n.lineNumber,n.column,n.lineNumber,n.column),1),r=e.viewLayout.getVerticalOffsetForLineNumber(t),o=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=i,this._startLineDelta=o-r}},{key:"invalidate",value:function(){this._isValid=!1}}],[{key:"create",value:function(t){var n=t._setTrackedRange(null,new Ee.e(1,1,1,1),1);return new e(t,1,!1,n,0)}}]),e}(),lr=function(){function e(){(0,d.Z)(this,e),this._asMap=Object.create(null),this.asArray=[]}return(0,h.Z)(e,[{key:"accept",value:function(e,t,n,i,r){var o=this._asMap[e];if(o){var a=o.data,s=a[a.length-3],l=a[a.length-1];if(s===r&&l+1>=n)return void(i>l&&(a[a.length-1]=i));a.push(r,n,i)}else{var c=new $t.SQ(e,t,[r,n,i]);this._asMap[e]=c,this.asArray.push(c)}}}]),e}(),cr=n(11133),ur=n(34509),dr=n(36888),hr=n(64919),fr=n(15493),pr=n(54410),gr=function(){function e(t,n,i,r,o){(0,d.Z)(this,e),this.injectionOffsets=t,this.injectionOptions=n,this.breakOffsets=i,this.breakOffsetsVisibleColumn=r,this.wrappedTextIndentLength=o}return(0,h.Z)(e,[{key:"getOutputLineCount",value:function(){return this.breakOffsets.length}},{key:"getMinOutputOffset",value:function(e){return e>0?this.wrappedTextIndentLength:0}},{key:"getLineLength",value:function(e){var t=e>0?this.breakOffsets[e-1]:0,n=this.breakOffsets[e]-t;return e>0&&(n+=this.wrappedTextIndentLength),n}},{key:"getMaxOutputOffset",value:function(e){return this.getLineLength(e)}},{key:"translateToInputOffset",value:function(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));var n=0===e?t:this.breakOffsets[e-1]+t;if(null!==this.injectionOffsets)for(var i=0;i<this.injectionOffsets.length&&n>this.injectionOffsets[i];i++)n<this.injectionOffsets[i]+this.injectionOptions[i].content.length?n=this.injectionOffsets[i]:n-=this.injectionOptions[i].content.length;return n}},{key:"translateToOutputPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=e;if(null!==this.injectionOffsets)for(var i=0;i<this.injectionOffsets.length&&!(e<this.injectionOffsets[i])&&(1===t||e!==this.injectionOffsets[i]);i++)n+=this.injectionOptions[i].content.length;return this.offsetInInputWithInjectionsToOutputPosition(n,t)}},{key:"offsetInInputWithInjectionsToOutputPosition",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=0,i=this.breakOffsets.length-1,r=0,o=0;n<=i;){r=n+(i-n)/2|0;var a=this.breakOffsets[r];if(o=r>0?this.breakOffsets[r-1]:0,0===t)if(e<=o)i=r-1;else{if(!(e>a))break;n=r+1}else if(e<o)i=r-1;else{if(!(e>=a))break;n=r+1}}var s=e-o;return r>0&&(s+=this.wrappedTextIndentLength),new _r(r,s)}},{key:"normalizeOutputPosition",value:function(e,t,n){if(null!==this.injectionOffsets){var i=this.outputPositionToOffsetInInputWithInjections(e,t),r=this.normalizeOffsetInInputWithInjectionsAroundInjections(i,n);if(r!==i)return this.offsetInInputWithInjectionsToOutputPosition(r,n)}if(0===n){if(e>0&&t===this.getMinOutputOffset(e))return new _r(e-1,this.getMaxOutputOffset(e-1))}else if(1===n){if(e<this.getOutputLineCount()-1&&t===this.getMaxOutputOffset(e))return new _r(e+1,this.getMinOutputOffset(e+1))}return new _r(e,t)}},{key:"outputPositionToOffsetInInputWithInjections",value:function(e,t){return e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}},{key:"normalizeOffsetInInputWithInjectionsAroundInjections",value:function(e,t){var n=this.getInjectedTextAtOffset(e);if(!n)return e;if(2===t){if(e===n.offsetInInputWithInjections+n.length&&vr(this.injectionOptions[n.injectedTextIndex].cursorStops))return n.offsetInInputWithInjections+n.length;var i=n.offsetInInputWithInjections;if(mr(this.injectionOptions[n.injectedTextIndex].cursorStops))return i;for(var r=n.injectedTextIndex-1;r>=0&&this.injectionOffsets[r]===this.injectionOffsets[n.injectedTextIndex]&&!vr(this.injectionOptions[r].cursorStops)&&(i-=this.injectionOptions[r].content.length,!mr(this.injectionOptions[r].cursorStops));)r--;return i}if(1===t||4===t){for(var o=n.offsetInInputWithInjections+n.length,a=n.injectedTextIndex;a+1<this.injectionOffsets.length&&this.injectionOffsets[a+1]===this.injectionOffsets[a];)o+=this.injectionOptions[a+1].content.length,a++;return o}if(0===t||3===t){for(var s=n.offsetInInputWithInjections,l=n.injectedTextIndex;l-1>=0&&this.injectionOffsets[l-1]===this.injectionOffsets[l];)s-=this.injectionOptions[l-1].content.length,l--;return s}(0,Pt.vE)(t)}},{key:"getInjectedText",value:function(e,t){var n=this.outputPositionToOffsetInInputWithInjections(e,t),i=this.getInjectedTextAtOffset(n);return i?{options:this.injectionOptions[i.injectedTextIndex]}:null}},{key:"getInjectedTextAtOffset",value:function(e){var t=this.injectionOffsets,n=this.injectionOptions;if(null!==t)for(var i=0,r=0;r<t.length;r++){var o=n[r].content.length,a=t[r]+i,s=t[r]+i+o;if(a>e)break;if(e<=s)return{injectedTextIndex:r,offsetInInputWithInjections:a,length:o};i+=o}}}]),e}();function vr(e){return null===e||void 0===e||(e===an.RM.Right||e===an.RM.Both)}function mr(e){return null===e||void 0===e||(e===an.RM.Left||e===an.RM.Both)}var yr,_r=function(){function e(t,n){(0,d.Z)(this,e),this.outputLineIndex=t,this.outputOffset=n}return(0,h.Z)(e,[{key:"toString",value:function(){return"".concat(this.outputLineIndex,":").concat(this.outputOffset)}},{key:"toPosition",value:function(e){return new xe.L(e+this.outputLineIndex,this.outputOffset+1)}}]),e}(),br=function(){function e(t,n){(0,d.Z)(this,e),this.classifier=new Cr(t,n)}return(0,h.Z)(e,[{key:"createLineBreaksComputer",value:function(e,t,n,i){var r=this,o=[],a=[],s=[];return{addRequest:function(e,t,n){o.push(e),a.push(t),s.push(n)},finalize:function(){for(var l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,c=[],u=0,d=o.length;u<d;u++){var h=a[u],f=s[u];!f||f.injectionOptions||h?c[u]=xr(r.classifier,o[u],h,t,n,l,i):c[u]=kr(r.classifier,f,o[u],t,n,l,i)}return Sr.length=0,wr.length=0,c}}}}],[{key:"create",value:function(t){return new e(t.get(122),t.get(121))}}]),e}(),Cr=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i){var r;(0,d.Z)(this,n),r=t.call(this,0);for(var o=0;o<e.length;o++)r.set(e.charCodeAt(o),1);for(var a=0;a<i.length;a++)r.set(i.charCodeAt(a),2);return r}return(0,h.Z)(n,[{key:"get",value:function(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}]),n}(pr.N),Sr=[],wr=[];function kr(e,t,n,i,r,o,a){if(-1===r)return null;var s=n.length;if(s<=1)return null;var l=t.breakOffsets,c=t.breakOffsetsVisibleColumn,u=Ir(n,i,r,o,a),d=r-u,h=Sr,f=wr,p=0,g=0,v=0,m=r,y=l.length,_=0;if(_>=0)for(var b=Math.abs(c[_]-m);_+1<y;){var C=Math.abs(c[_+1]-m);if(C>=b)break;b=C,_++}for(;_<y;){var S=_<0?0:l[_],w=_<0?0:c[_];g>S&&(S=g,w=v);var k=0,x=0,E=0,T=0;if(w<=m){for(var N=w,I=0===S?0:n.charCodeAt(S-1),D=0===S?0:e.get(I),L=!0,O=S;O<s;O++){var R=O,A=n.charCodeAt(O),M=void 0,P=void 0;if(Ye.ZG(A)?(O++,M=0,P=2):(M=e.get(A),P=Er(A,N,i,o)),R>g&&Nr(I,D,A,M)&&(k=R,x=N),(N+=P)>m){R>g?(E=R,T=N-P):(E=O+1,T=N),N-x>d&&(k=0),L=!1;break}I=A,D=M}if(L){p>0&&(h[p]=l[l.length-1],f[p]=c[l.length-1],p++);break}}if(0===k){for(var Z=w,F=n.charCodeAt(S),B=e.get(F),H=!1,z=S-1;z>=g;z--){var j=z+1,V=n.charCodeAt(z);if(9===V){H=!0;break}var W=void 0,U=void 0;if(Ye.YK(V)?(z--,W=0,U=2):(W=e.get(V),U=Ye.K7(V)?o:1),Z<=m){if(0===E&&(E=j,T=Z),Z<=m-d)break;if(Nr(V,W,F,B)){k=j,x=Z;break}}Z-=U,F=V,B=W}if(0!==k){var G=d-(T-x);if(G<=i){var K=n.charCodeAt(E);G-(Ye.ZG(K)?2:Er(K,T,i,o))<0&&(k=0)}}if(H){_--;continue}}if(0===k&&(k=E,x=T),k<=g){var Y=n.charCodeAt(g);Ye.ZG(Y)?(k=g+2,x=v+2):(k=g+1,x=v+Er(Y,v,i,o))}for(g=k,h[p]=k,v=x,f[p]=x,p++,m=x+d;_<0||_<y&&c[_]<x;)_++;for(var q=Math.abs(c[_]-m);_+1<y;){var $=Math.abs(c[_+1]-m);if($>=q)break;q=$,_++}}return 0===p?null:(h.length=p,f.length=p,Sr=t.breakOffsets,wr=t.breakOffsetsVisibleColumn,t.breakOffsets=h,t.breakOffsetsVisibleColumn=f,t.wrappedTextIndentLength=u,t)}function xr(e,t,n,i,r,o,a){var s,l,c=Un.gk.applyInjectedText(t,n);if(n&&n.length>0?(s=n.map((function(e){return e.options})),l=n.map((function(e){return e.column-1}))):(s=null,l=null),-1===r)return s?new gr(l,s,[c.length],[],0):null;var u=c.length;if(u<=1)return s?new gr(l,s,[c.length],[],0):null;var d=Ir(c,i,r,o,a),h=r-d,f=[],p=[],g=0,v=0,m=0,y=r,_=c.charCodeAt(0),b=e.get(_),C=Er(_,0,i,o),S=1;Ye.ZG(_)&&(C+=1,_=c.charCodeAt(1),b=e.get(_),S++);for(var w=S;w<u;w++){var k=w,x=c.charCodeAt(w),E=void 0,T=void 0;Ye.ZG(x)?(w++,E=0,T=2):(E=e.get(x),T=Er(x,C,i,o)),Nr(_,b,x,E)&&(v=k,m=C),(C+=T)>y&&((0===v||C-m>h)&&(v=k,m=C-T),f[g]=v,p[g]=m,g++,y=m+h,v=0),_=x,b=E}return 0!==g||n&&0!==n.length?(f[g]=u,p[g]=C,new gr(l,s,f,p,d)):null}function Er(e,t,n,i){return 9===e?n-t%n:Ye.K7(e)||e<32?i:1}function Tr(e,t){return t-e%t}function Nr(e,t,n,i){return 32!==n&&(2===t&&2!==i||1!==t&&1===i||3===t&&2!==i||3===i&&1!==t)}function Ir(e,t,n,i,r){var o=0;if(0!==r){var a=Ye.LC(e);if(-1!==a){for(var s=0;s<a;s++){o+=9===e.charCodeAt(s)?Tr(o,t):1}for(var l=3===r?2:2===r?1:0,c=0;c<l;c++){o+=Tr(o,t)}o+i>n&&(o=0)}}return o}var Dr=null===(yr=window.trustedTypes)||void 0===yr?void 0:yr.createPolicy("domLineBreaksComputer",{createHTML:function(e){return e}}),Lr=function(){function e(){(0,d.Z)(this,e)}return(0,h.Z)(e,[{key:"createLineBreaksComputer",value:function(e,t,n,i){var r=[],o=[];return{addRequest:function(e,t,n){r.push(e),o.push(t)},finalize:function(){return function(e,t,n,i,r,o){var a;function s(t){var n=o[t];if(n){var i=Un.gk.applyInjectedText(e[t],n),r=n.map((function(e){return e.options})),a=n.map((function(e){return e.column-1}));return new gr(a,r,[i.length],[],0)}return null}if(-1===i){for(var l=[],c=0,u=e.length;c<u;c++)l[c]=s(c);return l}var d=Math.round(i*t.typicalHalfwidthCharacterWidth),h=3===r?2:2===r?1:0,f=Math.round(n*h),p=Math.ceil(t.spaceWidth*f),g=document.createElement("div");(0,qe.N)(g,t);for(var v=(0,ft.l$)(1e4),m=[],y=[],_=[],b=[],C=[],S=0;S<e.length;S++){var w=Un.gk.applyInjectedText(e[S],o[S]),k=0,x=0,E=d;if(0!==r)if(-1===(k=Ye.LC(w)))k=0;else{for(var T=0;T<k;T++){x+=9===w.charCodeAt(T)?n-x%n:1}var N=Math.ceil(t.spaceWidth*x);N+t.typicalFullwidthCharacterWidth>d?(k=0,x=0):E=d-N}var I=w.substr(k),D=Or(I,x,n,E,v,p);m[S]=k,y[S]=x,_[S]=I,b[S]=D[0],C[S]=D[1]}var L=v.build(),O=null!==(a=null===Dr||void 0===Dr?void 0:Dr.createHTML(L))&&void 0!==a?a:L;g.innerHTML=O,g.style.position="absolute",g.style.top="10000",g.style.wordWrap="break-word",document.body.appendChild(g);for(var R=document.createRange(),A=Array.prototype.slice.call(g.children,0),M=[],P=0;P<e.length;P++){var Z=Rr(R,A[P],_[P],b[P]);if(null!==Z){for(var F=m[P],B=y[P]+f,H=C[P],z=[],j=0,V=Z.length;j<V;j++)z[j]=H[Z[j]];if(0!==F)for(var W=0,U=Z.length;W<U;W++)Z[W]+=F;var G=void 0,K=void 0,Y=o[P];Y?(G=Y.map((function(e){return e.options})),K=Y.map((function(e){return e.column-1}))):(G=null,K=null),M[P]=new gr(K,G,Z,z,B)}else M[P]=s(P)}return document.body.removeChild(g),M}(r,e,t,n,i,o)}}}}],[{key:"create",value:function(){return new e}}]),e}();function Or(e,t,n,i,r,o){if(0!==o){var a=String(o);r.appendASCIIString('<div style="text-indent: -'),r.appendASCIIString(a),r.appendASCIIString("px; padding-left: "),r.appendASCIIString(a),r.appendASCIIString("px; box-sizing: border-box; width:")}else r.appendASCIIString('<div style="width:');r.appendASCIIString(String(i)),r.appendASCIIString('px;">');var s=e.length,l=t,c=0,u=[],d=[],h=0<s?e.charCodeAt(0):0;r.appendASCIIString("<span>");for(var f=0;f<s;f++){0!==f&&f%16384===0&&r.appendASCIIString("</span><span>"),u[f]=c,d[f]=l;var p=h;h=f+1<s?e.charCodeAt(f+1):0;var g=1,v=1;switch(p){case 9:v=g=n-l%n;for(var m=1;m<=g;m++)m<g?r.write1(160):r.appendASCII(32);break;case 32:32===h?r.write1(160):r.appendASCII(32);break;case 60:r.appendASCIIString("<");break;case 62:r.appendASCIIString(">");break;case 38:r.appendASCIIString("&");break;case 0:r.appendASCIIString("�");break;case 65279:case 8232:case 8233:case 133:r.write1(65533);break;default:Ye.K7(p)&&v++,p<32?r.write1(9216+p):r.write1(p)}c+=g,l+=v}return r.appendASCIIString("</span>"),u[e.length]=c,d[e.length]=l,r.appendASCIIString("</div>"),[u,d]}function Rr(e,t,n,i){if(n.length<=1)return null;var r=Array.prototype.slice.call(t.children,0),o=[];try{Ar(e,r,i,0,null,n.length-1,null,o)}catch(a){return console.log(a),null}return 0===o.length?null:(o.push(n.length),o)}function Ar(e,t,n,i,r,o,a,s){if(i!==o&&(r=r||Mr(e,t,n[i],n[i+1]),a=a||Mr(e,t,n[o],n[o+1]),!(Math.abs(r[0].top-a[0].top)<=.1)))if(i+1!==o){var l=i+(o-i)/2|0,c=Mr(e,t,n[l],n[l+1]);Ar(e,t,n,i,r,l,c,s),Ar(e,t,n,l,c,o,a,s)}else s.push(o)}function Mr(e,t,n,i){return e.setStart(t[n/16384|0].firstChild,n%16384),e.setEnd(t[i/16384|0].firstChild,i%16384),e.getClientRects()}var Pr=n(97290),Zr=n(29662),Fr=n(53584),Br=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Hr=function(e,t){return function(n,i){t(n,i,e)}},zr=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},jr=0,Vr=function(){function e(t,n,i,r,o){(0,d.Z)(this,e),this.model=t,this.viewModel=n,this.view=i,this.hasRealView=r,this.listenersToRemove=o}return(0,h.Z)(e,[{key:"dispose",value:function(){(0,S.B9)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}]),e}(),Wr=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,s,l,c,u,h,f,g,v,m,y){var S;(0,d.Z)(this,n),(S=t.call(this)).languageConfigurationService=m,S._deliveryQueue=new C.F3,S._onDidDispose=S._register(new C.Q5),S.onDidDispose=S._onDidDispose.event,S._onDidChangeModelContent=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidChangeModelContent=S._onDidChangeModelContent.event,S._onDidChangeModelLanguage=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidChangeModelLanguage=S._onDidChangeModelLanguage.event,S._onDidChangeModelLanguageConfiguration=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidChangeModelLanguageConfiguration=S._onDidChangeModelLanguageConfiguration.event,S._onDidChangeModelOptions=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidChangeModelOptions=S._onDidChangeModelOptions.event,S._onDidChangeModelDecorations=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidChangeModelDecorations=S._onDidChangeModelDecorations.event,S._onDidChangeModelTokens=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidChangeModelTokens=S._onDidChangeModelTokens.event,S._onDidChangeConfiguration=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidChangeConfiguration=S._onDidChangeConfiguration.event,S._onDidChangeModel=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidChangeModel=S._onDidChangeModel.event,S._onDidChangeCursorPosition=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidChangeCursorPosition=S._onDidChangeCursorPosition.event,S._onDidChangeCursorSelection=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidChangeCursorSelection=S._onDidChangeCursorSelection.event,S._onDidAttemptReadOnlyEdit=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidAttemptReadOnlyEdit=S._onDidAttemptReadOnlyEdit.event,S._onDidLayoutChange=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidLayoutChange=S._onDidLayoutChange.event,S._editorTextFocus=S._register(new Ur({deliveryQueue:S._deliveryQueue})),S.onDidFocusEditorText=S._editorTextFocus.onDidChangeToTrue,S.onDidBlurEditorText=S._editorTextFocus.onDidChangeToFalse,S._editorWidgetFocus=S._register(new Ur({deliveryQueue:S._deliveryQueue})),S.onDidFocusEditorWidget=S._editorWidgetFocus.onDidChangeToTrue,S.onDidBlurEditorWidget=S._editorWidgetFocus.onDidChangeToFalse,S._onWillType=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onWillType=S._onWillType.event,S._onDidType=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidType=S._onDidType.event,S._onDidCompositionStart=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidCompositionStart=S._onDidCompositionStart.event,S._onDidCompositionEnd=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidCompositionEnd=S._onDidCompositionEnd.event,S._onDidPaste=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidPaste=S._onDidPaste.event,S._onMouseUp=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onMouseUp=S._onMouseUp.event,S._onMouseDown=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onMouseDown=S._onMouseDown.event,S._onMouseDrag=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onMouseDrag=S._onMouseDrag.event,S._onMouseDrop=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onMouseDrop=S._onMouseDrop.event,S._onMouseDropCanceled=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onMouseDropCanceled=S._onMouseDropCanceled.event,S._onDropIntoEditor=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDropIntoEditor=S._onDropIntoEditor.event,S._onContextMenu=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onContextMenu=S._onContextMenu.event,S._onMouseMove=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onMouseMove=S._onMouseMove.event,S._onMouseLeave=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onMouseLeave=S._onMouseLeave.event,S._onMouseWheel=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onMouseWheel=S._onMouseWheel.event,S._onKeyUp=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onKeyUp=S._onKeyUp.event,S._onKeyDown=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onKeyDown=S._onKeyDown.event,S._onDidContentSizeChange=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidContentSizeChange=S._onDidContentSizeChange.event,S._onDidScrollChange=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidScrollChange=S._onDidScrollChange.event,S._onDidChangeViewZones=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidChangeViewZones=S._onDidChangeViewZones.event,S._onDidChangeHiddenAreas=S._register(new C.Q5({deliveryQueue:S._deliveryQueue})),S.onDidChangeHiddenAreas=S._onDidChangeHiddenAreas.event,S._bannerDomNode=null,S._dropIntoEditorDecorations=S.createDecorationsCollection();var w,k=Object.assign({},i);S._domElement=e,S._overflowWidgetsDomNode=k.overflowWidgetsDomNode,delete k.overflowWidgetsDomNode,S._id=++jr,S._decorationTypeKeysToIds={},S._decorationTypeSubtypes={},S._telemetryData=s.telemetryData,S._configuration=S._register(S._createConfiguration(s.isSimpleWidget||!1,k,v)),S._register(S._configuration.onDidChange((function(e){S._onDidChangeConfiguration.fire(e);var t=S._configuration.options;if(e.hasChanged(133)){var n=t.get(133);S._onDidLayoutChange.fire(n)}}))),S._contextKeyService=S._register(h.createScoped(S._domElement)),S._notificationService=g,S._codeEditorService=c,S._commandService=u,S._themeService=f,S._register(new Gr((0,a.Z)(S),S._contextKeyService)),S._register(new Kr((0,a.Z)(S),S._contextKeyService,y)),S._instantiationService=l.createChild(new hr.y([ur.i6,S._contextKeyService])),S._modelData=null,S._contributions={},S._actions={},S._focusTracker=new Yr(e),S._register(S._focusTracker.onChange((function(){S._editorWidgetFocus.setValue(S._focusTracker.hasFocus())}))),S._contentWidgets={},S._overlayWidgets={},w=Array.isArray(s.contributions)?s.contributions:p.Uc.getEditorContributions();var x,E=(0,o.Z)(w);try{for(E.s();!(x=E.n()).done;){var T=x.value;if(S._contributions[T.id])(0,b.dL)(new Error("Cannot have two contributions with the same id ".concat(T.id)));else try{var N=S._instantiationService.createInstance(T.ctor,(0,a.Z)(S));S._contributions[T.id]=N}catch(D){(0,b.dL)(D)}}}catch(D){E.e(D)}finally{E.f()}p.Uc.getEditorActions().forEach((function(e){if(S._actions[e.id])(0,b.dL)(new Error("Cannot have two actions with the same id ".concat(e.id)));else{var t=new Li.p(e.id,e.label,e.alias,(0,Pt.f6)(e.precondition),(function(){return S._instantiationService.invokeFunction((function(t){return Promise.resolve(e.runEditorCommand(t,(0,a.Z)(S),null))}))}),S._contextKeyService);S._actions[t.id]=t}}));var I=function(){return!S._configuration.options.get(83)&&S._configuration.options.get(32).enabled};return S._register(new _.DragAndDropObserver(S._domElement,{onDragEnter:function(){},onDragOver:function(e){if(I()){var t=S.getTargetAtClientPoint(e.clientX,e.clientY);(null===t||void 0===t?void 0:t.position)&&S.showDropIndicatorAt(t.position)}},onDrop:function(e){return zr((0,a.Z)(S),void 0,void 0,(0,r.Z)().mark((function t(){var n;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(I()){t.next=2;break}return t.abrupt("return");case 2:if(this.removeDropIndicator(),e.dataTransfer){t.next=5;break}return t.abrupt("return");case 5:(null===(n=this.getTargetAtClientPoint(e.clientX,e.clientY))||void 0===n?void 0:n.position)&&this._onDropIntoEditor.fire({position:n.position,event:e});case 7:case"end":return t.stop()}}),t,this)})))},onDragLeave:function(){S.removeDropIndicator()},onDragEnd:function(){S.removeDropIndicator()}})),S._codeEditorService.addCodeEditor((0,a.Z)(S)),S}return(0,h.Z)(n,[{key:"isSimpleWidget",get:function(){return this._configuration.isSimpleWidget}},{key:"_createConfiguration",value:function(e,t,n){return new z(e,t,this._domElement,n)}},{key:"getId",value:function(){return this.getEditorType()+":"+this._id}},{key:"getEditorType",value:function(){return Oi.g.ICodeEditor}},{key:"dispose",value:function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var e=Object.keys(this._contributions),t=0,i=e.length;t<i;t++){var r=e[t];this._contributions[r].dispose()}this._contributions={},this._actions={},this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"invokeWithinContext",value:function(e){return this._instantiationService.invokeFunction(e)}},{key:"updateOptions",value:function(e){this._configuration.updateOptions(e||{})}},{key:"getOptions",value:function(){return this._configuration.options}},{key:"getOption",value:function(e){return this._configuration.options.get(e)}},{key:"getRawOptions",value:function(){return this._configuration.getRawOptions()}},{key:"getOverflowWidgetsDomNode",value:function(){return this._overflowWidgetsDomNode}},{key:"getConfiguredWordAtPosition",value:function(e){return this._modelData?Pr.w.getWordAtPosition(this._modelData.model,this._configuration.options.get(119),e):null}},{key:"getValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!this._modelData)return"";var t=!(!e||!e.preserveBOM),n=0;return e&&e.lineEnding&&"\n"===e.lineEnding?n=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(n=2),this._modelData.model.getValue(n,t)}},{key:"setValue",value:function(e){this._modelData&&this._modelData.model.setValue(e)}},{key:"getModel",value:function(){return this._modelData?this._modelData.model:null}},{key:"setModel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=e;if((null!==this._modelData||null!==t)&&(!this._modelData||this._modelData.model!==t)){var n=this.hasTextFocus(),i=this._detachModel();this._attachModel(t),n&&this.hasModel()&&this.focus();var r={oldModelUrl:i?i.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(r),this._postDetachModelCleanup(i)}}},{key:"_removeDecorationTypes",value:function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var e in this._decorationTypeSubtypes){var t=this._decorationTypeSubtypes[e];for(var n in t)this._removeDecorationType(e+"-"+n)}this._decorationTypeSubtypes={}}}},{key:"getVisibleRanges",value:function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}},{key:"getVisibleRangesPlusViewportAboveBelow",value:function(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}},{key:"getWhitespaces",value:function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}},{key:"getTopForLineNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._modelData?n._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}},{key:"getTopForPosition",value:function(e,t){return this._modelData?n._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}},{key:"getBottomForLineNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._modelData?n._getVerticalOffsetAfterPosition(this._modelData,e,1,t):-1}},{key:"setHiddenAreas",value:function(e){var t;null===(t=this._modelData)||void 0===t||t.viewModel.setHiddenAreas(e.map((function(e){return Ee.e.lift(e)})))}},{key:"getVisibleColumnFromPosition",value:function(e){if(!this._modelData)return e.column;var t=this._modelData.model.validatePosition(e),n=this._modelData.model.getOptions().tabSize;return Te.i.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,n)+1}},{key:"getPosition",value:function(){return this._modelData?this._modelData.viewModel.getPosition():null}},{key:"setPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";if(this._modelData){if(!xe.L.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}},{key:"_sendRevealRange",value:function(e,t,n,i){if(this._modelData){if(!Ee.e.isIRange(e))throw new Error("Invalid arguments");var r=this._modelData.model.validateRange(e),o=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(r);this._modelData.viewModel.revealRange("api",n,o,t,i)}}},{key:"revealLine",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealLine(e,0,t)}},{key:"revealLineInCenter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealLine(e,1,t)}},{key:"revealLineInCenterIfOutsideViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealLine(e,2,t)}},{key:"revealLineNearTop",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealLine(e,5,t)}},{key:"_revealLine",value:function(e,t,n){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new Ee.e(e,1,e,1),t,!1,n)}},{key:"revealPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealPosition(e,0,!0,t)}},{key:"revealPositionInCenter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealPosition(e,1,!0,t)}},{key:"revealPositionInCenterIfOutsideViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealPosition(e,2,!0,t)}},{key:"revealPositionNearTop",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealPosition(e,5,!0,t)}},{key:"_revealPosition",value:function(e,t,n,i){if(!xe.L.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new Ee.e(e.lineNumber,e.column,e.lineNumber,e.column),t,n,i)}},{key:"getSelection",value:function(){return this._modelData?this._modelData.viewModel.getSelection():null}},{key:"getSelections",value:function(){return this._modelData?this._modelData.viewModel.getSelections():null}},{key:"setSelection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api",n=Y.Y.isISelection(e),i=Ee.e.isIRange(e);if(!n&&!i)throw new Error("Invalid arguments");if(n)this._setSelectionImpl(e,t);else if(i){var r={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(r,t)}}},{key:"_setSelectionImpl",value:function(e,t){if(this._modelData){var n=new Y.Y(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[n])}}},{key:"revealLines",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._revealLines(e,t,0,n)}},{key:"revealLinesInCenter",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._revealLines(e,t,1,n)}},{key:"revealLinesInCenterIfOutsideViewport",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._revealLines(e,t,2,n)}},{key:"revealLinesNearTop",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._revealLines(e,t,5,n)}},{key:"_revealLines",value:function(e,t,n,i){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new Ee.e(e,1,t,1),n,!1,i)}},{key:"revealRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._revealRange(e,n?1:0,i,t)}},{key:"revealRangeInCenter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,1,!0,t)}},{key:"revealRangeInCenterIfOutsideViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,2,!0,t)}},{key:"revealRangeNearTop",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,5,!0,t)}},{key:"revealRangeNearTopIfOutsideViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,6,!0,t)}},{key:"revealRangeAtTop",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,3,!0,t)}},{key:"_revealRange",value:function(e,t,n,i){if(!Ee.e.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(Ee.e.lift(e),t,n,i)}},{key:"setSelections",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(var i=0,r=e.length;i<r;i++)if(!Y.Y.isISelection(e[i]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,e,n)}}},{key:"getContentWidth",value:function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}},{key:"getScrollWidth",value:function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}},{key:"getScrollLeft",value:function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}},{key:"getContentHeight",value:function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}},{key:"getScrollHeight",value:function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}},{key:"getScrollTop",value:function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}},{key:"setScrollLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollLeft:e},t)}}},{key:"setScrollTop",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollTop:e},t)}}},{key:"setScrollPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._modelData&&this._modelData.viewModel.viewLayout.setScrollPosition(e,t)}},{key:"saveViewState",value:function(){if(!this._modelData)return null;for(var e={},t=0,n=Object.keys(this._contributions);t<n.length;t++){var i=n[t],r=this._contributions[i];"function"===typeof r.saveViewState&&(e[i]=r.saveViewState())}return{cursorState:this._modelData.viewModel.saveCursorState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}}},{key:"restoreViewState",value:function(e){if(this._modelData&&this._modelData.hasRealView){var t=e;if(t&&t.cursorState&&t.viewState){var n=t.cursorState;Array.isArray(n)?n.length>0&&this._modelData.viewModel.restoreCursorState(n):this._modelData.viewModel.restoreCursorState([n]);for(var i=t.contributionsState||{},r=Object.keys(this._contributions),o=0,a=r.length;o<a;o++){var s=r[o],l=this._contributions[s];"function"===typeof l.restoreViewState&&l.restoreViewState(i[s])}var c=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(c)}}}},{key:"getContribution",value:function(e){return this._contributions[e]||null}},{key:"getActions",value:function(){for(var e=[],t=Object.keys(this._actions),n=0,i=t.length;n<i;n++){var r=t[n];e.push(this._actions[r])}return e}},{key:"getSupportedActions",value:function(){var e=this.getActions();return e=e.filter((function(e){return e.isSupported()}))}},{key:"getAction",value:function(e){return this._actions[e]||null}},{key:"trigger",value:function(e,t,n){switch(n=n||{},t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":var i=n;return void this._type(e,i.text||"");case"replacePreviousChar":var r=n;return void this._compositionType(e,r.text||"",r.replaceCharCnt||0,0,0);case"compositionType":var o=n;return void this._compositionType(e,o.text||"",o.replacePrevCharCnt||0,o.replaceNextCharCnt||0,o.positionDelta||0);case"paste":var a=n;return void this._paste(e,a.text||"",a.pasteOnNewLine||!1,a.multicursorText||null,a.mode||null);case"cut":return void this._cut(e)}var s=this.getAction(t);s?Promise.resolve(s.run()).then(void 0,b.dL):this._modelData&&(this._triggerEditorCommand(e,t,n)||this._triggerCommand(t,n))}},{key:"_triggerCommand",value:function(e,t){this._commandService.executeCommand(e,t)}},{key:"_startComposition",value:function(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}},{key:"_endComposition",value:function(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}},{key:"_type",value:function(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}},{key:"_compositionType",value:function(e,t,n,i,r){this._modelData&&this._modelData.viewModel.compositionType(t,n,i,r,e)}},{key:"_paste",value:function(e,t,n,i,r){if(this._modelData&&0!==t.length){var o=this._modelData.viewModel,a=o.getSelection().getStartPosition();o.paste(t,n,i,e);var s=o.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({range:new Ee.e(a.lineNumber,a.column,s.lineNumber,s.column),languageId:r})}}},{key:"_cut",value:function(e){this._modelData&&this._modelData.viewModel.cut(e)}},{key:"_triggerEditorCommand",value:function(e,t,n){var i=this,r=p.Uc.getEditorCommand(t);return!!r&&((n=n||{}).source=e,this._instantiationService.invokeFunction((function(e){Promise.resolve(r.runEditorCommand(e,i,n)).then(void 0,b.dL)})),!0)}},{key:"_getViewModel",value:function(){return this._modelData?this._modelData.viewModel:null}},{key:"pushUndoStop",value:function(){return!!this._modelData&&(!this._configuration.options.get(83)&&(this._modelData.model.pushStackElement(),!0))}},{key:"popUndoStop",value:function(){return!!this._modelData&&(!this._configuration.options.get(83)&&(this._modelData.model.popStackElement(),!0))}},{key:"executeEdits",value:function(e,t,n){return!!this._modelData&&(!this._configuration.options.get(83)&&(i=n?Array.isArray(n)?function(){return n}:n:function(){return null},this._modelData.viewModel.executeEdits(e,t,i),!0));var i}},{key:"executeCommand",value:function(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}},{key:"executeCommands",value:function(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}},{key:"createDecorationsCollection",value:function(e){return new qr(this,e)}},{key:"changeDecorations",value:function(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}},{key:"getLineDecorations",value:function(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,(0,M.$J)(this._configuration.options)):null}},{key:"getDecorationsInRange",value:function(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,(0,M.$J)(this._configuration.options)):null}},{key:"deltaDecorations",value:function(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}},{key:"removeDecorations",value:function(e){this._modelData&&0!==e.length&&this._modelData.model.changeDecorations((function(t){t.deltaDecorations(e,[])}))}},{key:"removeDecorationsByType",value:function(e){var t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}},{key:"getLayoutInfo",value:function(){return this._configuration.options.get(133)}},{key:"createOverviewRuler",value:function(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}},{key:"getContainerDomNode",value:function(){return this._domElement}},{key:"getDomNode",value:function(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}},{key:"delegateVerticalScrollbarPointerDown",value:function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarPointerDown(e)}},{key:"layout",value:function(e){this._configuration.observeContainer(e),this.render()}},{key:"focus",value:function(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}},{key:"hasTextFocus",value:function(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}},{key:"hasWidgetFocus",value:function(){return this._focusTracker&&this._focusTracker.hasFocus()}},{key:"addContentWidget",value:function(e){var t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}},{key:"layoutContentWidget",value:function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(n)}}},{key:"removeContentWidget",value:function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(n)}}},{key:"addOverlayWidget",value:function(e){var t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}},{key:"layoutOverlayWidget",value:function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(n)}}},{key:"removeOverlayWidget",value:function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(n)}}},{key:"changeViewZones",value:function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}},{key:"getTargetAtClientPoint",value:function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}},{key:"getScrolledVisiblePosition",value:function(e){if(!this._modelData||!this._modelData.hasRealView)return null;var t=this._modelData.model.validatePosition(e),i=this._configuration.options,r=i.get(133);return{top:n._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+r.glyphMarginWidth+r.lineNumbersWidth+r.decorationsWidth-this.getScrollLeft(),height:i.get(61)}}},{key:"getOffsetForColumn",value:function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)}},{key:"setAriaOptions",value:function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}},{key:"applyFontInfo",value:function(e){(0,qe.N)(e,this._configuration.options.get(46))}},{key:"setBanner",value:function(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}},{key:"_attachModel",value:function(e){var t=this;if(e){var n=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount()),e.onBeforeAttached();var r=new ar(this._id,this._configuration,e,Lr.create(),br.create(this._configuration.options),(function(e){return _.scheduleAtNextAnimationFrame(e)}),this.languageConfigurationService,this._themeService);n.push(e.onWillDispose((function(){return t.setModel(null)}))),n.push(r.onEvent((function(n){switch(n.kind){case 0:t._onDidContentSizeChange.fire(n);break;case 1:t._editorTextFocus.setValue(n.hasFocus);break;case 2:t._onDidScrollChange.fire(n);break;case 3:t._onDidChangeViewZones.fire();break;case 4:t._onDidChangeHiddenAreas.fire();break;case 5:t._onDidAttemptReadOnlyEdit.fire();break;case 6:n.reachedMaxCursorCount&&t._notificationService.warn(y.NC("cursors.maximum","The number of cursors has been limited to {0}.",xi.MAX_CURSOR_COUNT));for(var i=[],r=0,o=n.selections.length;r<o;r++)i[r]=n.selections[r].getPosition();var a={position:i[0],secondaryPositions:i.slice(1),reason:n.reason,source:n.source};t._onDidChangeCursorPosition.fire(a);var s={selection:n.selections[0],secondarySelections:n.selections.slice(1),modelVersionId:n.modelVersionId,oldSelections:n.oldSelections,oldModelVersionId:n.oldModelVersionId,source:n.source,reason:n.reason};t._onDidChangeCursorSelection.fire(s);break;case 7:t._onDidChangeModelDecorations.fire(n.event);break;case 8:t._domElement.setAttribute("data-mode-id",e.getLanguageId()),t._onDidChangeModelLanguage.fire(n.event);break;case 9:t._onDidChangeModelLanguageConfiguration.fire(n.event);break;case 10:t._onDidChangeModelContent.fire(n.event);break;case 11:t._onDidChangeModelOptions.fire(n.event);break;case 12:t._onDidChangeModelTokens.fire(n.event)}})));var o=this._createView(r),a=(0,i.Z)(o,2),s=a[0],l=a[1];if(l){this._domElement.appendChild(s.domNode.domNode);for(var c=Object.keys(this._contentWidgets),u=0,d=c.length;u<d;u++){var h=c[u];s.addContentWidget(this._contentWidgets[h])}for(var f=0,p=(c=Object.keys(this._overlayWidgets)).length;f<p;f++){var g=c[f];s.addOverlayWidget(this._overlayWidgets[g])}s.render(!1,!0),s.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Vr(e,r,s,l,n)}else this._modelData=null}},{key:"_createView",value:function(e){var t,n=this;t=this.isSimpleWidget?{paste:function(e,t,i,r){n._paste("keyboard",e,t,i,r)},type:function(e){n._type("keyboard",e)},compositionType:function(e,t,i,r){n._compositionType("keyboard",e,t,i,r)},startComposition:function(){n._startComposition()},endComposition:function(){n._endComposition("keyboard")},cut:function(){n._cut("keyboard")}}:{paste:function(e,t,i,r){var o={text:e,pasteOnNewLine:t,multicursorText:i,mode:r};n._commandService.executeCommand("paste",o)},type:function(e){var t={text:e};n._commandService.executeCommand("type",t)},compositionType:function(e,t,i,r){if(i||r){var o={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:r};n._commandService.executeCommand("compositionType",o)}else{var a={text:e,replaceCharCnt:t};n._commandService.executeCommand("replacePreviousChar",a)}},startComposition:function(){n._commandService.executeCommand("compositionStart",{})},endComposition:function(){n._commandService.executeCommand("compositionEnd",{})},cut:function(){n._commandService.executeCommand("cut",{})}};var i=new ht(e.coordinatesConverter);return i.onKeyDown=function(e){return n._onKeyDown.fire(e)},i.onKeyUp=function(e){return n._onKeyUp.fire(e)},i.onContextMenu=function(e){return n._onContextMenu.fire(e)},i.onMouseMove=function(e){return n._onMouseMove.fire(e)},i.onMouseLeave=function(e){return n._onMouseLeave.fire(e)},i.onMouseDown=function(e){return n._onMouseDown.fire(e)},i.onMouseUp=function(e){return n._onMouseUp.fire(e)},i.onMouseDrag=function(e){return n._onMouseDrag.fire(e)},i.onMouseDrop=function(e){return n._onMouseDrop.fire(e)},i.onMouseDropCanceled=function(e){return n._onMouseDropCanceled.fire(e)},i.onMouseWheel=function(e){return n._onMouseWheel.fire(e)},[new Fn(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode),!0]}},{key:"_postDetachModelCleanup",value:function(e){null===e||void 0===e||e.removeAllDecorationsWithOwnerId(this._id)}},{key:"_detachModel",value:function(){if(!this._modelData)return null;var e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),e}},{key:"_removeDecorationType",value:function(e){this._codeEditorService.removeDecorationType(e)}},{key:"hasModel",value:function(){return null!==this._modelData}},{key:"showDropIndicatorAt",value:function(e){var t=[{range:new Ee.e(e.lineNumber,e.column,e.lineNumber,e.column),options:n.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}},{key:"removeDropIndicator",value:function(){this._dropIntoEditorDecorations.clear()}}],[{key:"_getVerticalOffsetAfterPosition",value:function(e,t,n,i){var r=e.model.validatePosition({lineNumber:t,column:n}),o=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(r);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(o.lineNumber,i)}},{key:"_getVerticalOffsetForPosition",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e.model.validatePosition({lineNumber:t,column:n}),o=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(r);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber,i)}}]),n}(S.JT);Wr.dropIntoEditorDecorationOptions=Ai.qx.register({description:"workbench-dnd-target",className:"dnd-target"}),Wr=Br([Hr(3,dr.TG),Hr(4,K.$),Hr(5,cr.Hy),Hr(6,ur.i6),Hr(7,Je.XE),Hr(8,fr.lT),Hr(9,F.F),Hr(10,Zr.c_),Hr(11,Fr.p)],Wr);var Ur=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this))._emitterOptions=e,i._onDidChangeToTrue=i._register(new C.Q5(i._emitterOptions)),i.onDidChangeToTrue=i._onDidChangeToTrue.event,i._onDidChangeToFalse=i._register(new C.Q5(i._emitterOptions)),i.onDidChangeToFalse=i._onDidChangeToFalse.event,i._value=0,i}return(0,h.Z)(n,[{key:"setValue",value:function(e){var t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}]),n}(S.JT),Gr=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i){var r;return(0,d.Z)(this,n),(r=t.call(this))._editor=e,i.createKey("editorId",e.getId()),r._editorSimpleInput=Ri.u.editorSimpleInput.bindTo(i),r._editorFocus=Ri.u.focus.bindTo(i),r._textInputFocus=Ri.u.textInputFocus.bindTo(i),r._editorTextFocus=Ri.u.editorTextFocus.bindTo(i),r._editorTabMovesFocus=Ri.u.tabMovesFocus.bindTo(i),r._editorReadonly=Ri.u.readOnly.bindTo(i),r._inDiffEditor=Ri.u.inDiffEditor.bindTo(i),r._editorColumnSelection=Ri.u.columnSelection.bindTo(i),r._hasMultipleSelections=Ri.u.hasMultipleSelections.bindTo(i),r._hasNonEmptySelection=Ri.u.hasNonEmptySelection.bindTo(i),r._canUndo=Ri.u.canUndo.bindTo(i),r._canRedo=Ri.u.canRedo.bindTo(i),r._register(r._editor.onDidChangeConfiguration((function(){return r._updateFromConfig()}))),r._register(r._editor.onDidChangeCursorSelection((function(){return r._updateFromSelection()}))),r._register(r._editor.onDidFocusEditorWidget((function(){return r._updateFromFocus()}))),r._register(r._editor.onDidBlurEditorWidget((function(){return r._updateFromFocus()}))),r._register(r._editor.onDidFocusEditorText((function(){return r._updateFromFocus()}))),r._register(r._editor.onDidBlurEditorText((function(){return r._updateFromFocus()}))),r._register(r._editor.onDidChangeModel((function(){return r._updateFromModel()}))),r._register(r._editor.onDidChangeConfiguration((function(){return r._updateFromModel()}))),r._updateFromConfig(),r._updateFromSelection(),r._updateFromFocus(),r._updateFromModel(),r._editorSimpleInput.set(r._editor.isSimpleWidget),r}return(0,h.Z)(n,[{key:"_updateFromConfig",value:function(){var e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(132)),this._editorReadonly.set(e.get(83)),this._inDiffEditor.set(e.get(56)),this._editorColumnSelection.set(e.get(18))}},{key:"_updateFromSelection",value:function(){var e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((function(e){return!e.isEmpty()})))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}},{key:"_updateFromFocus",value:function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}},{key:"_updateFromModel",value:function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}]),n}(S.JT),Kr=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r){var o;(0,d.Z)(this,n),(o=t.call(this))._editor=e,o._contextKeyService=i,o._languageFeaturesService=r,o._langId=Ri.u.languageId.bindTo(i),o._hasCompletionItemProvider=Ri.u.hasCompletionItemProvider.bindTo(i),o._hasCodeActionsProvider=Ri.u.hasCodeActionsProvider.bindTo(i),o._hasCodeLensProvider=Ri.u.hasCodeLensProvider.bindTo(i),o._hasDefinitionProvider=Ri.u.hasDefinitionProvider.bindTo(i),o._hasDeclarationProvider=Ri.u.hasDeclarationProvider.bindTo(i),o._hasImplementationProvider=Ri.u.hasImplementationProvider.bindTo(i),o._hasTypeDefinitionProvider=Ri.u.hasTypeDefinitionProvider.bindTo(i),o._hasHoverProvider=Ri.u.hasHoverProvider.bindTo(i),o._hasDocumentHighlightProvider=Ri.u.hasDocumentHighlightProvider.bindTo(i),o._hasDocumentSymbolProvider=Ri.u.hasDocumentSymbolProvider.bindTo(i),o._hasReferenceProvider=Ri.u.hasReferenceProvider.bindTo(i),o._hasRenameProvider=Ri.u.hasRenameProvider.bindTo(i),o._hasSignatureHelpProvider=Ri.u.hasSignatureHelpProvider.bindTo(i),o._hasInlayHintsProvider=Ri.u.hasInlayHintsProvider.bindTo(i),o._hasDocumentFormattingProvider=Ri.u.hasDocumentFormattingProvider.bindTo(i),o._hasDocumentSelectionFormattingProvider=Ri.u.hasDocumentSelectionFormattingProvider.bindTo(i),o._hasMultipleDocumentFormattingProvider=Ri.u.hasMultipleDocumentFormattingProvider.bindTo(i),o._hasMultipleDocumentSelectionFormattingProvider=Ri.u.hasMultipleDocumentSelectionFormattingProvider.bindTo(i),o._isInWalkThrough=Ri.u.isInWalkThroughSnippet.bindTo(i);var a=function(){return o._update()};return o._register(e.onDidChangeModel(a)),o._register(e.onDidChangeModelLanguage(a)),o._register(r.completionProvider.onDidChange(a)),o._register(r.codeActionProvider.onDidChange(a)),o._register(r.codeLensProvider.onDidChange(a)),o._register(r.definitionProvider.onDidChange(a)),o._register(r.declarationProvider.onDidChange(a)),o._register(r.implementationProvider.onDidChange(a)),o._register(r.typeDefinitionProvider.onDidChange(a)),o._register(r.hoverProvider.onDidChange(a)),o._register(r.documentHighlightProvider.onDidChange(a)),o._register(r.documentSymbolProvider.onDidChange(a)),o._register(r.referenceProvider.onDidChange(a)),o._register(r.renameProvider.onDidChange(a)),o._register(r.documentFormattingEditProvider.onDidChange(a)),o._register(r.documentRangeFormattingEditProvider.onDidChange(a)),o._register(r.signatureHelpProvider.onDidChange(a)),o._register(r.inlayHintsProvider.onDidChange(a)),a(),o}return(0,h.Z)(n,[{key:"dispose",value:function(){(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"reset",value:function(){var e=this;this._contextKeyService.bufferChangeEvents((function(){e._langId.reset(),e._hasCompletionItemProvider.reset(),e._hasCodeActionsProvider.reset(),e._hasCodeLensProvider.reset(),e._hasDefinitionProvider.reset(),e._hasDeclarationProvider.reset(),e._hasImplementationProvider.reset(),e._hasTypeDefinitionProvider.reset(),e._hasHoverProvider.reset(),e._hasDocumentHighlightProvider.reset(),e._hasDocumentSymbolProvider.reset(),e._hasReferenceProvider.reset(),e._hasRenameProvider.reset(),e._hasDocumentFormattingProvider.reset(),e._hasDocumentSelectionFormattingProvider.reset(),e._hasSignatureHelpProvider.reset(),e._isInWalkThrough.reset()}))}},{key:"_update",value:function(){var e=this,t=this._editor.getModel();t?this._contextKeyService.bufferChangeEvents((function(){e._langId.set(t.getLanguageId()),e._hasCompletionItemProvider.set(e._languageFeaturesService.completionProvider.has(t)),e._hasCodeActionsProvider.set(e._languageFeaturesService.codeActionProvider.has(t)),e._hasCodeLensProvider.set(e._languageFeaturesService.codeLensProvider.has(t)),e._hasDefinitionProvider.set(e._languageFeaturesService.definitionProvider.has(t)),e._hasDeclarationProvider.set(e._languageFeaturesService.declarationProvider.has(t)),e._hasImplementationProvider.set(e._languageFeaturesService.implementationProvider.has(t)),e._hasTypeDefinitionProvider.set(e._languageFeaturesService.typeDefinitionProvider.has(t)),e._hasHoverProvider.set(e._languageFeaturesService.hoverProvider.has(t)),e._hasDocumentHighlightProvider.set(e._languageFeaturesService.documentHighlightProvider.has(t)),e._hasDocumentSymbolProvider.set(e._languageFeaturesService.documentSymbolProvider.has(t)),e._hasReferenceProvider.set(e._languageFeaturesService.referenceProvider.has(t)),e._hasRenameProvider.set(e._languageFeaturesService.renameProvider.has(t)),e._hasSignatureHelpProvider.set(e._languageFeaturesService.signatureHelpProvider.has(t)),e._hasInlayHintsProvider.set(e._languageFeaturesService.inlayHintsProvider.has(t)),e._hasDocumentFormattingProvider.set(e._languageFeaturesService.documentFormattingEditProvider.has(t)||e._languageFeaturesService.documentRangeFormattingEditProvider.has(t)),e._hasDocumentSelectionFormattingProvider.set(e._languageFeaturesService.documentRangeFormattingEditProvider.has(t)),e._hasMultipleDocumentFormattingProvider.set(e._languageFeaturesService.documentFormattingEditProvider.all(t).length+e._languageFeaturesService.documentRangeFormattingEditProvider.all(t).length>1),e._hasMultipleDocumentSelectionFormattingProvider.set(e._languageFeaturesService.documentRangeFormattingEditProvider.all(t).length>1),e._isInWalkThrough.set(t.uri.scheme===w.lg.walkThroughSnippet)})):this.reset()}}]),n}(S.JT),Yr=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this))._onChange=i._register(new C.Q5),i.onChange=i._onChange.event,i._hasFocus=!1,i._domFocusTracker=i._register(_.trackFocus(e)),i._register(i._domFocusTracker.onDidFocus((function(){i._hasFocus=!0,i._onChange.fire(void 0)}))),i._register(i._domFocusTracker.onDidBlur((function(){i._hasFocus=!1,i._onChange.fire(void 0)}))),i}return(0,h.Z)(n,[{key:"hasFocus",value:function(){return this._hasFocus}}]),n}(S.JT),qr=function(){function e(t,n){(0,d.Z)(this,e),this._editor=t,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(n)&&n.length>0&&this.set(n)}return(0,h.Z)(e,[{key:"length",get:function(){return this._decorationIds.length}},{key:"onDidChange",value:function(e,t,n){var i=this;return this._editor.onDidChangeModelDecorations((function(n){i._isChangingDecorations||e.call(t,n)}),n)}},{key:"getRange",value:function(e){return this._editor.hasModel()?e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e]):null}},{key:"getRanges",value:function(){if(!this._editor.hasModel())return[];var e,t=this._editor.getModel(),n=[],i=(0,o.Z)(this._decorationIds);try{for(i.s();!(e=i.n()).done;){var r=e.value,a=t.getDecorationRange(r);a&&n.push(a)}}catch(s){i.e(s)}finally{i.f()}return n}},{key:"has",value:function(e){return this._decorationIds.includes(e.id)}},{key:"clear",value:function(){0!==this._decorationIds.length&&this.set([])}},{key:"set",value:function(e){var t=this;try{this._isChangingDecorations=!0,this._editor.changeDecorations((function(n){t._decorationIds=n.deltaDecorations(t._decorationIds,e)}))}finally{this._isChangingDecorations=!1}}}]),e}(),$r=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),Xr=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function Qr(e){return $r+encodeURIComponent(e.toString())+Xr}var Jr=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),eo=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');(0,Je.Ic)((function(e,t){var n=e.getColor(Dt.b6y);n&&t.addRule(".monaco-editor .".concat("squiggly-error"," { border-bottom: 4px double ",n,"; }"));var i=e.getColor(Dt.lXJ);i&&t.addRule(".monaco-editor .".concat("squiggly-error",' { background: url("data:image/svg+xml,',Qr(i),'") repeat-x bottom left; }'));var r=e.getColor(Dt.L_H);r&&t.addRule(".monaco-editor .".concat("squiggly-error","::before { display: block; content: ''; width: 100%; height: 100%; background: ",r,"; }"));var o=e.getColor(Dt.pW3);o&&t.addRule(".monaco-editor .".concat("squiggly-warning"," { border-bottom: 4px double ",o,"; }"));var a=e.getColor(Dt.uoC);a&&t.addRule(".monaco-editor .".concat("squiggly-warning",' { background: url("data:image/svg+xml,',Qr(a),'") repeat-x bottom left; }'));var s=e.getColor(Dt.gpD);s&&t.addRule(".monaco-editor .".concat("squiggly-warning","::before { display: block; content: ''; width: 100%; height: 100%; background: ",s,"; }"));var l=e.getColor(Dt.T83);l&&t.addRule(".monaco-editor .".concat("squiggly-info"," { border-bottom: 4px double ",l,"; }"));var c=e.getColor(Dt.c63);c&&t.addRule(".monaco-editor .".concat("squiggly-info",' { background: url("data:image/svg+xml,',Qr(c),'") repeat-x bottom left; }'));var u=e.getColor(Dt.few);u&&t.addRule(".monaco-editor .".concat("squiggly-info","::before { display: block; content: ''; width: 100%; height: 100%; background: ",u,"; }"));var d=e.getColor(Dt.fEB);d&&t.addRule(".monaco-editor .".concat("squiggly-hint"," { border-bottom: 2px dotted ",d,"; }"));var h=e.getColor(Dt.Dut);h&&t.addRule(".monaco-editor .".concat("squiggly-hint",' { background: url("data:image/svg+xml,',function(e){return Jr+encodeURIComponent(e.toString())+eo}(h),'") no-repeat bottom left; }'));var f=e.getColor(Qe.zu);f&&t.addRule(".monaco-editor.showUnused .".concat("squiggly-inline-unnecessary"," { opacity: ",f.rgba.a,"; }"));var p=e.getColor(Qe.kp);p&&t.addRule(".monaco-editor.showUnused .".concat("squiggly-unnecessary"," { border-bottom: 2px dashed ",p,"; }"));var g=e.getColor(Dt.NOs)||"inherit";t.addRule(".monaco-editor.showDeprecated .".concat("squiggly-inline-deprecated"," { text-decoration: line-through; text-decoration-color: ",g,"}"))}))},96535:function(e,t,n){"use strict";n.d(t,{H:function(){return w}});var i=n(15671),r=n(43144),o=n(97326),a=n(60136),s=n(27277),l=n(11752),c=n(61120),u=n(63656),d=n(98596),h=n(36492),f=n(11133),p=n(34509),g=n(36888),v=n(15493),m=n(64014),y=n(41330),_=n(29662),b=n(53584),C=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},S=function(e,t){return function(n,i){t(n,i,e)}},w=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,r,a,s,u,d,h,f,p,g,v,m){var y,_;return(0,i.Z)(this,n),(_=t.call(this,e,Object.assign(Object.assign({},a.getRawOptions()),{overflowWidgetsDomNode:a.getOverflowWidgetsDomNode()}),{},s,u,d,h,f,p,g,v,m))._parentEditor=a,_._overwriteOptions=r,(0,l.Z)((y=(0,o.Z)(_),(0,c.Z)(n.prototype)),"updateOptions",y).call(y,_._overwriteOptions),_._register(a.onDidChangeConfiguration((function(e){return _._onParentConfigurationChanged(e)}))),_}return(0,r.Z)(n,[{key:"getParentEditor",value:function(){return this._parentEditor}},{key:"_onParentConfigurationChanged",value:function(e){(0,l.Z)((0,c.Z)(n.prototype),"updateOptions",this).call(this,this._parentEditor.getRawOptions()),(0,l.Z)((0,c.Z)(n.prototype),"updateOptions",this).call(this,this._overwriteOptions)}},{key:"updateOptions",value:function(e){u.jB(this._overwriteOptions,e,!0),(0,l.Z)((0,c.Z)(n.prototype),"updateOptions",this).call(this,this._overwriteOptions)}}]),n}(h.Gm);w=C([S(3,g.TG),S(4,d.$),S(5,f.Hy),S(6,p.i6),S(7,m.XE),S(8,v.lT),S(9,y.F),S(10,_.c_),S(11,b.p)],w)},76469:function(e,t,n){"use strict";n.d(t,{OY:function(){return s},Sj:function(){return l},T4:function(){return a},Uo:function(){return c},hP:function(){return u}});var i=n(15671),r=n(43144),o=n(23145),a=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,i.Z)(this,e),this._range=t,this._text=n,this.insertsAutoWhitespace=r}return(0,r.Z)(e,[{key:"getEditOperations",value:function(e,t){t.addTrackedEditOperation(this._range,this._text)}},{key:"computeCursorState",value:function(e,t){var n=t.getInverseEditOperations()[0].range;return o.Y.fromPositions(n.getEndPosition())}}]),e}(),s=function(){function e(t,n){(0,i.Z)(this,e),this._range=t,this._text=n}return(0,r.Z)(e,[{key:"getEditOperations",value:function(e,t){t.addTrackedEditOperation(this._range,this._text)}},{key:"computeCursorState",value:function(e,t){var n=t.getInverseEditOperations()[0].range;return o.Y.fromRange(n,0)}}]),e}(),l=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,i.Z)(this,e),this._range=t,this._text=n,this.insertsAutoWhitespace=r}return(0,r.Z)(e,[{key:"getEditOperations",value:function(e,t){t.addTrackedEditOperation(this._range,this._text)}},{key:"computeCursorState",value:function(e,t){var n=t.getInverseEditOperations()[0].range;return o.Y.fromPositions(n.getStartPosition())}}]),e}(),c=function(){function e(t,n,r,o){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,i.Z)(this,e),this._range=t,this._text=n,this._columnDeltaOffset=o,this._lineNumberDeltaOffset=r,this.insertsAutoWhitespace=a}return(0,r.Z)(e,[{key:"getEditOperations",value:function(e,t){t.addTrackedEditOperation(this._range,this._text)}},{key:"computeCursorState",value:function(e,t){var n=t.getInverseEditOperations()[0].range;return o.Y.fromPositions(n.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}]),e}(),u=function(){function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(0,i.Z)(this,e),this._range=t,this._text=n,this._initialSelection=r,this._forceMoveMarkers=o,this._selectionId=null}return(0,r.Z)(e,[{key:"getEditOperations",value:function(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}},{key:"computeCursorState",value:function(e,t){return t.getTrackedSelection(this._selectionId)}}]),e}()},55634:function(e,t,n){"use strict";n.d(t,{U:function(){return g}});var i=n(15671),r=n(43144),o=n(32377),a=n(29349),s=n(80133),l=n(23145),c=n(4048),u=n(29662),d=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},h=function(e,t){return function(n,i){t(n,i,e)}},f=Object.create(null);function p(e,t){if(t<=0)return"";f[e]||(f[e]=["",e]);for(var n=f[e],i=n.length;i<=t;i++)n[i]=n[i-1]+e;return n[t]}var g=function(){function e(t,n,r){(0,i.Z)(this,e),this._languageConfigurationService=r,this._opts=n,this._selection=t,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return(0,r.Z)(e,[{key:"_addEditOperation",value:function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)}},{key:"getEditOperations",value:function(t,n){var i=this._selection.startLineNumber,r=this._selection.endLineNumber;1===this._selection.endColumn&&i!==r&&(r-=1);var l=this._opts,u=l.tabSize,d=l.indentSize,h=l.insertSpaces,f=i===r;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);for(var g=0,v=0,m=i;m<=r;m++,g=v){v=0;var y=t.getLineContent(m),_=o.LC(y);if((!this._opts.isUnshift||0!==y.length&&0!==_)&&(f||this._opts.isUnshift||0!==y.length)){if(-1===_&&(_=y.length),m>1)if(a.i.visibleColumnFromColumn(y,_+1,u)%d!==0&&t.tokenization.isCheapToTokenize(m-1)){var b=(0,c.A)(this._opts.autoIndent,t,new s.e(m-1,t.getLineMaxColumn(m-1),m-1,t.getLineMaxColumn(m-1)),this._languageConfigurationService);if(b){if(v=g,b.appendText)for(var C=0,S=b.appendText.length;C<S&&v<d&&32===b.appendText.charCodeAt(C);C++)v++;b.removeText&&(v=Math.max(0,v-b.removeText));for(var w=0;w<v&&(0!==_&&32===y.charCodeAt(_-1));w++)_--}}if(!this._opts.isUnshift||0!==_){var k=void 0;k=this._opts.isUnshift?e.unshiftIndent(y,_+1,u,d,h):e.shiftIndent(y,_+1,u,d,h),this._addEditOperation(n,new s.e(m,1,m,_+1),k),m!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=_+1)}}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&0===t.getLineLength(i)&&(this._useLastEditRangeForCursorEndPosition=!0);for(var x=h?p(" ",d):"\t",E=i;E<=r;E++){var T=t.getLineContent(E),N=o.LC(T);if((!this._opts.isUnshift||0!==T.length&&0!==N)&&((f||this._opts.isUnshift||0!==T.length)&&(-1===N&&(N=T.length),!this._opts.isUnshift||0!==N)))if(this._opts.isUnshift){N=Math.min(N,d);for(var I=0;I<N;I++){if(9===T.charCodeAt(I)){N=I+1;break}}this._addEditOperation(n,new s.e(E,1,E,N+1),"")}else this._addEditOperation(n,new s.e(E,1,E,1),x),E!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=n.trackSelection(this._selection)}},{key:"computeCursorState",value:function(e,t){if(this._useLastEditRangeForCursorEndPosition){var n=t.getInverseEditOperations()[0];return new l.Y(n.range.endLineNumber,n.range.endColumn,n.range.endLineNumber,n.range.endColumn)}var i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var r=this._selection.startColumn;return i.startColumn<=r?i:0===i.getDirection()?new l.Y(i.startLineNumber,r,i.endLineNumber,i.endColumn):new l.Y(i.endLineNumber,i.endColumn,i.startLineNumber,r)}return i}}],[{key:"unshiftIndent",value:function(e,t,n,i,r){var o=a.i.visibleColumnFromColumn(e,t,n);if(r){var s=p(" ",i);return p(s,a.i.prevIndentTabStop(o,i)/i)}return p("\t",a.i.prevRenderTabStop(o,n)/n)}},{key:"shiftIndent",value:function(e,t,n,i,r){var o=a.i.visibleColumnFromColumn(e,t,n);if(r){var s=p(" ",i);return p(s,a.i.nextIndentTabStop(o,i)/i)}return p("\t",a.i.nextRenderTabStop(o,n)/n)}}]),e}();g=d([h(2,u.c_)],g)},35243:function(e,t,n){"use strict";n.d(t,{Pe:function(){return b},ei:function(){return _},wk:function(){return c}});var i=n(37762),r=n(64472),o=n(54589),a=n(27722),s=n(50818),l=n(69077),c=Object.freeze({id:"editor",order:5,type:"object",title:a.NC("editorConfigurationTitle","Editor"),scope:5}),u=Object.assign(Object.assign({},c),{properties:{"editor.tabSize":{type:"number",default:o.D.tabSize,minimum:1,markdownDescription:a.NC("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:o.D.insertSpaces,markdownDescription:a.NC("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:o.D.detectIndentation,markdownDescription:a.NC("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:o.D.trimAutoWhitespace,description:a.NC("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:o.D.largeFileOptimizations,description:a.NC("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:a.NC("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[a.NC("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),a.NC("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),a.NC("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:a.NC("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[a.NC("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),a.NC("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),a.NC("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:a.NC("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:a.NC("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:a.NC("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.language.brackets":{type:["array","null"],default:null,description:a.NC("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:a.NC("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:a.NC("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:a.NC("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:a.NC("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:a.NC("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:a.NC("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:50,description:a.NC("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:a.NC("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:!0,description:a.NC("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:a.NC("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:a.NC("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:a.NC("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[a.NC("wordWrap.off","Lines will never wrap."),a.NC("wordWrap.on","Lines will wrap at the viewport width."),a.NC("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});var d,h,f=(0,i.Z)(r.Bc);try{for(f.s();!(d=f.n()).done;){var p=d.value,g=p.schema;if("undefined"!==typeof g)if("undefined"!==typeof(h=g).type||"undefined"!==typeof h.anyOf)u.properties["editor.".concat(p.name)]=g;else for(var v in g)Object.hasOwnProperty.call(g,v)&&(u.properties[v]=g[v])}}catch(C){f.e(C)}finally{f.f()}var m=null;function y(){return null===m&&(m=Object.create(null),Object.keys(u.properties).forEach((function(e){m[e]=!0}))),m}function _(e){return y()["editor.".concat(e)]||!1}function b(e){return y()["diffEditor.".concat(e)]||!1}l.B.as(s.IP.Configuration).registerConfiguration(u)},64472:function(e,t,n){"use strict";n.d(t,{$J:function(){return re},Av:function(){return le},BH:function(){return we},Bb:function(){return _},Bc:function(){return Ce},LJ:function(){return b},NY:function(){return O},O7:function(){return E},Zc:function(){return N},d2:function(){return M},gk:function(){return K},hL:function(){return be},n0:function(){return z},qt:function(){return ce},rk:function(){return S},y0:function(){return y}});var i=n(29439),r=n(4942),o=n(11752),a=n(61120),s=n(37762),l=n(60136),c=n(27277),u=n(15671),d=n(43144),h=n(27722),f=n(73616),p=n(37591),g=n(29671),v=n(63656),m=n(54589),y=8,_=function(){function e(t){(0,u.Z)(this,e),this._values=t}return(0,d.Z)(e,[{key:"hasChanged",value:function(e){return this._values[e]}}]),e}(),b=(0,d.Z)((function e(){(0,u.Z)(this,e),this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0})),C=function(){function e(t,n,i,r){(0,u.Z)(this,e),this.id=t,this.name=n,this.defaultValue=i,this.schema=r}return(0,d.Z)(e,[{key:"applyUpdate",value:function(e,t){return w(e,t)}},{key:"compute",value:function(e,t,n){return n}}]),e}(),S=(0,d.Z)((function e(t,n){(0,u.Z)(this,e),this.newValue=t,this.didChange=n}));function w(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return new S(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){var n=Array.isArray(e)&&Array.isArray(t)&&g.fS(e,t);return new S(t,!n)}var i=!1;for(var r in t)if(t.hasOwnProperty(r)){var o=w(e[r],t[r]);o.didChange&&(e[r]=o.newValue,i=!0)}return new S(e,i)}var k=function(){function e(t){(0,u.Z)(this,e),this.schema=void 0,this.id=t,this.name="_never_",this.defaultValue=void 0}return(0,d.Z)(e,[{key:"applyUpdate",value:function(e,t){return w(e,t)}},{key:"validate",value:function(e){return this.defaultValue}}]),e}(),x=function(){function e(t,n,i,r){(0,u.Z)(this,e),this.id=t,this.name=n,this.defaultValue=i,this.schema=r}return(0,d.Z)(e,[{key:"applyUpdate",value:function(e,t){return w(e,t)}},{key:"validate",value:function(e){return"undefined"===typeof e?this.defaultValue:e}},{key:"compute",value:function(e,t,n){return n}}]),e}();function E(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}var T=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return(0,u.Z)(this,n),"undefined"!==typeof o&&(o.type="boolean",o.default=r),t.call(this,e,i,r,o)}return(0,d.Z)(n,[{key:"validate",value:function(e){return E(e,this.defaultValue)}}]),n}(x);function N(e,t,n,i){if("undefined"===typeof e)return t;var r=parseInt(e,10);return isNaN(r)?t:(r=Math.max(n,r),0|(r=Math.min(i,r)))}var I=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o,a){var s,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return(0,u.Z)(this,n),"undefined"!==typeof l&&(l.type="integer",l.default=r,l.minimum=o,l.maximum=a),(s=t.call(this,e,i,r,l)).minimum=o,s.maximum=a,s}return(0,d.Z)(n,[{key:"validate",value:function(e){return n.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}],[{key:"clampedInt",value:function(e,t,n,i){return N(e,t,n,i)}}]),n}(x),D=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o,a){var s;return(0,u.Z)(this,n),"undefined"!==typeof a&&(a.type="number",a.default=r),(s=t.call(this,e,i,r,a)).validationFn=o,s}return(0,d.Z)(n,[{key:"validate",value:function(e){return this.validationFn(n.float(e,this.defaultValue))}}],[{key:"clamp",value:function(e,t,n){return e<t?t:e>n?n:e}},{key:"float",value:function(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;var n=parseFloat(e);return isNaN(n)?t:n}}]),n}(x),L=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return(0,u.Z)(this,n),"undefined"!==typeof o&&(o.type="string",o.default=r),t.call(this,e,i,r,o)}return(0,d.Z)(n,[{key:"validate",value:function(e){return n.string(e,this.defaultValue)}}],[{key:"string",value:function(e,t){return"string"!==typeof e?t:e}}]),n}(x);function O(e,t,n){return"string"!==typeof e||-1===n.indexOf(e)?t:e}var R=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o){var a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return(0,u.Z)(this,n),"undefined"!==typeof s&&(s.type="string",s.enum=o,s.default=r),(a=t.call(this,e,i,r,s))._allowedValues=o,a}return(0,d.Z)(n,[{key:"validate",value:function(e){return O(e,this.defaultValue,this._allowedValues)}}]),n}(x),A=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o,a,s){var l,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0;return(0,u.Z)(this,n),"undefined"!==typeof c&&(c.type="string",c.enum=a,c.default=o),(l=t.call(this,e,i,r,c))._allowedValues=a,l._convert=s,l}return(0,d.Z)(n,[{key:"validate",value:function(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}]),n}(C);var M,P=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[h.NC("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),h.NC("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),h.NC("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:h.NC("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}return(0,d.Z)(n,[{key:"validate",value:function(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}},{key:"compute",value:function(e,t,n){return 0===n?e.accessibilitySupport:n}}]),n}(C),Z=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={insertSpace:!0,ignoreEmptyLines:!0};return t.call(this,19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:h.NC("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:h.NC("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){if(!e||"object"!==typeof e)return this.defaultValue;var t=e;return{insertSpace:E(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:E(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}]),n}(C);!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"}(M||(M={}));var F=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,130)}return(0,d.Z)(n,[{key:"compute",value:function(e,t,n){var i=["monaco-editor"];return t.get(35)&&i.push(t.get(35)),e.extraEditorClassName&&i.push(e.extraEditorClassName),"default"===t.get(68)?i.push("mouse-default"):"copy"===t.get(68)&&i.push("mouse-copy"),t.get(102)&&i.push("showUnused"),t.get(128)&&i.push("showDeprecated"),i.join(" ")}}]),n}(k),B=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,33,"emptySelectionClipboard",!0,{description:h.NC("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}return(0,d.Z)(n,[{key:"compute",value:function(e,t,n){return n&&e.emptySelectionClipboard}}]),n}(T),H=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};return t.call(this,37,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:h.NC("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[h.NC("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),h.NC("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),h.NC("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:h.NC("find.seedSearchStringFromSelection","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:[h.NC("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),h.NC("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),h.NC("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:h.NC("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:h.NC("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:f.dz},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:h.NC("find.addExtraSpaceOnTop","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:h.NC("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){if(!e||"object"!==typeof e)return this.defaultValue;var t=e;return{cursorMoveOnType:E(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"===typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":O(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":O(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:E(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:E(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:E(t.loop,this.defaultValue.loop)}}}]),n}(C),z=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,47,"fontLigatures",n.OFF,{anyOf:[{type:"boolean",description:h.NC("fontLigatures","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:h.NC("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:h.NC("fontLigaturesGeneral","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})}return(0,d.Z)(n,[{key:"validate",value:function(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?n.OFF:"true"===e?n.ON:e:Boolean(e)?n.ON:n.OFF}}]),n}(C);z.OFF='"liga" off, "calt" off',z.ON='"liga" on, "calt" on';var j=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,46)}return(0,d.Z)(n,[{key:"compute",value:function(e,t,n){return e.fontInfo}}]),n}(k),V=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,48,"fontSize",be.fontSize,{type:"number",minimum:6,maximum:100,default:be.fontSize,description:h.NC("fontSize","Controls the font size in pixels.")})}return(0,d.Z)(n,[{key:"validate",value:function(e){var t=D.float(e,this.defaultValue);return 0===t?be.fontSize:D.clamp(t,6,100)}},{key:"compute",value:function(e,t,n){return e.fontInfo.fontSize}}]),n}(x),W=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,49,"fontWeight",be.fontWeight,{anyOf:[{type:"number",minimum:n.MINIMUM_VALUE,maximum:n.MAXIMUM_VALUE,errorMessage:h.NC("fontWeightErrorMessage",'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:n.SUGGESTION_VALUES}],default:be.fontWeight,description:h.NC("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}return(0,d.Z)(n,[{key:"validate",value:function(e){return"normal"===e||"bold"===e?e:String(I.clampedInt(e,be.fontWeight,n.MINIMUM_VALUE,n.MAXIMUM_VALUE))}}]),n}(C);W.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],W.MINIMUM_VALUE=1,W.MAXIMUM_VALUE=1e3;var U=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},i={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[h.NC("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),h.NC("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),h.NC("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},r=["","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"];return t.call(this,53,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:h.NC("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:h.NC("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:h.NC("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleDeclarations":Object.assign({description:h.NC("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleImplementations":Object.assign({description:h.NC("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleReferences":Object.assign({description:h.NC("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},i),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:r,description:h.NC("alternativeDefinitionCommand","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:r,description:h.NC("alternativeTypeDefinitionCommand","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:r,description:h.NC("alternativeDeclarationCommand","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:r,description:h.NC("alternativeImplementationCommand","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:r,description:h.NC("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){var t,n,i,r,o;if(!e||"object"!==typeof e)return this.defaultValue;var a=e;return{multiple:O(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=a.multipleDefinitions)&&void 0!==t?t:O(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(n=a.multipleTypeDefinitions)&&void 0!==n?n:O(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(i=a.multipleDeclarations)&&void 0!==i?i:O(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(r=a.multipleImplementations)&&void 0!==r?r:O(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(o=a.multipleReferences)&&void 0!==o?o:O(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:L.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:L.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:L.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:L.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:L.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}]),n}(C),G=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={enabled:!0,delay:300,sticky:!0,above:!0};return t.call(this,55,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:h.NC("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:h.NC("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:h.NC("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:h.NC("hover.above","Prefer showing hovers above the line, if there's space.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){if(!e||"object"!==typeof e)return this.defaultValue;var t=e;return{enabled:E(t.enabled,this.defaultValue.enabled),delay:I.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:E(t.sticky,this.defaultValue.sticky),above:E(t.above,this.defaultValue.above)}}}]),n}(C),K=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,133)}return(0,d.Z)(n,[{key:"compute",value:function(e,t,i){return n.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})}}],[{key:"computeContainedMinimapLineCount",value:function(e){var t=e.height/e.lineHeight,n=e.scrollBeyondLastLine?t-1:0,i=(e.viewLineCount+n)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:n,desiredRatio:i,minimapLineCount:Math.floor(e.viewLineCount/i)}}},{key:"_computeMinimapLayout",value:function(e,t){var i=e.outerWidth,r=e.outerHeight,o=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(o*r),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:r};var a=t.stableMinimapLayoutInput,s=a&&e.outerHeight===a.outerHeight&&e.lineHeight===a.lineHeight&&e.typicalHalfwidthCharacterWidth===a.typicalHalfwidthCharacterWidth&&e.pixelRatio===a.pixelRatio&&e.scrollBeyondLastLine===a.scrollBeyondLastLine&&e.minimap.enabled===a.minimap.enabled&&e.minimap.side===a.minimap.side&&e.minimap.size===a.minimap.size&&e.minimap.showSlider===a.minimap.showSlider&&e.minimap.renderCharacters===a.minimap.renderCharacters&&e.minimap.maxColumn===a.minimap.maxColumn&&e.minimap.scale===a.minimap.scale&&e.verticalScrollbarWidth===a.verticalScrollbarWidth&&e.isViewportWrapping===a.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,u=e.scrollBeyondLastLine,d=e.minimap.renderCharacters,h=o>=2?Math.round(2*e.minimap.scale):e.minimap.scale,f=e.minimap.maxColumn,p=e.minimap.size,g=e.minimap.side,v=e.verticalScrollbarWidth,m=e.viewLineCount,_=e.remainingWidth,b=e.isViewportWrapping,C=d?2:3,S=Math.floor(o*r),w=S/o,k=!1,x=!1,E=C*h,T=h/o,N=1;if("fill"===p||"fit"===p){var I=n.computeContainedMinimapLineCount({viewLineCount:m,scrollBeyondLastLine:u,height:r,lineHeight:l,pixelRatio:o}),D=I.typicalViewportLineCount,L=I.extraLinesBeyondLastLine,O=I.desiredRatio;if(m/I.minimapLineCount>1)k=!0,x=!0,E=1,T=(h=1)/o;else{var R=!1,A=h+1;if("fit"===p){var M=Math.ceil((m+L)*E);b&&s&&_<=t.stableFitRemainingWidth?(R=!0,A=t.stableFitMaxMinimapScale):R=M>S}if("fill"===p||R){k=!0;var P=h;E=Math.min(l*o,Math.max(1,Math.floor(1/O))),b&&s&&_<=t.stableFitRemainingWidth&&(A=t.stableFitMaxMinimapScale),(h=Math.min(A,Math.max(1,Math.floor(E/C))))>P&&(N=Math.min(2,h/P)),T=h/o/N,S=Math.ceil(Math.max(D,m+L)*E),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=_,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}var Z=Math.floor(f*T),F=Math.min(Z,Math.max(0,Math.floor((_-v-2)*T/(c+T)))+y),B=Math.floor(o*F),H=B/o;return{renderMinimap:d?1:2,minimapLeft:"left"===g?0:i-F-v,minimapWidth:F,minimapHeightIsEditorHeight:k,minimapIsSampling:x,minimapScale:h,minimapLineHeight:E,minimapCanvasInnerWidth:B=Math.floor(B*N),minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:H,minimapCanvasOuterHeight:w}}},{key:"computeLayout",value:function(e,t){var i,r=0|t.outerWidth,o=0|t.outerHeight,a=0|t.lineHeight,s=0|t.lineNumbersDigitCount,l=t.typicalHalfwidthCharacterWidth,c=t.maxDigitWidth,u=t.pixelRatio,d=t.viewLineCount,h=e.get(125),f="inherit"===h?e.get(124):h,p="inherit"===f?e.get(120):f,g=e.get(123),v=e.get(2),m=t.isDominatedByLongLines,y=e.get(52),_=0!==e.get(62).renderType,C=e.get(63),S=e.get(96),w=e.get(67),k=e.get(94),x=k.verticalScrollbarSize,E=k.verticalHasArrows,T=k.arrowSize,N=k.horizontalScrollbarSize,D=e.get(60),L=e.get(39),O="never"!==e.get(101);if("string"===typeof D&&/^\d+(\.\d+)?ch$/.test(D)){var R=parseFloat(D.substr(0,D.length-2));i=I.clampedInt(R*l,0,0,1e3)}else i=I.clampedInt(D,0,0,1e3);L&&O&&(i+=16);var A=0;if(_){var M=Math.max(s,C);A=Math.round(M*c)}var P=0;y&&(P=a);var Z=0,F=Z+P,B=F+A,H=B+i,z=r-P-A-i,j=!1,V=!1,W=-1;2!==v&&("inherit"===f&&m?(j=!0,V=!0):"on"===p||"bounded"===p?V=!0:"wordWrapColumn"===p&&(W=g));var U=n._computeMinimapLayout({outerWidth:r,outerHeight:o,lineHeight:a,typicalHalfwidthCharacterWidth:l,pixelRatio:u,scrollBeyondLastLine:S,minimap:w,verticalScrollbarWidth:x,viewLineCount:d,remainingWidth:z,isViewportWrapping:V},t.memory||new b);0!==U.renderMinimap&&0===U.minimapLeft&&(Z+=U.minimapWidth,F+=U.minimapWidth,B+=U.minimapWidth,H+=U.minimapWidth);var G=z-U.minimapWidth,K=Math.max(1,Math.floor((G-x-2)/l)),Y=E?T:0;return V&&(W=Math.max(1,K),"bounded"===p&&(W=Math.min(W,g))),{width:r,height:o,glyphMarginLeft:Z,glyphMarginWidth:P,lineNumbersLeft:F,lineNumbersWidth:A,decorationsLeft:B,decorationsWidth:i,contentLeft:H,contentWidth:G,minimap:U,viewportColumn:K,isWordWrapMinified:j,isViewportWrapping:V,wrappingColumn:W,verticalScrollbarWidth:x,horizontalScrollbarHeight:N,overviewRuler:{top:Y,width:x,height:o-2*Y,right:0}}}}]),n}(k),Y=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={enabled:!0};return t.call(this,59,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:h.NC("codeActions","Enables the code action lightbulb in the editor.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){return e&&"object"===typeof e?{enabled:E(e.enabled,this.defaultValue.enabled)}:this.defaultValue}}]),n}(C),q=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={stickyScroll:{enabled:!1}};return t.call(this,34,"experimental",e,{"editor.experimental.stickyScroll.enabled":{type:"boolean",default:e.stickyScroll.enabled,description:h.NC("editor.experimental.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){var t;return e&&"object"===typeof e?{stickyScroll:{enabled:E(null===(t=e.stickyScroll)||void 0===t?void 0:t.enabled,this.defaultValue.stickyScroll.enabled)}}:this.defaultValue}}]),n}(C),$=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};return t.call(this,129,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:h.NC("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[h.NC("editor.inlayHints.on","Inlay hints are enabled"),h.NC("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding `Ctrl+Alt`"),h.NC("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding `Ctrl+Alt`"),h.NC("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:h.NC("inlayHints.fontSize","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:h.NC("inlayHints.fontFamily","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:h.NC("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){if(!e||"object"!==typeof e)return this.defaultValue;var t=e;return"boolean"===typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:O(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:I.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:L.string(t.fontFamily,this.defaultValue.fontFamily),padding:E(t.padding,this.defaultValue.padding)}}}]),n}(C),X=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,61,"lineHeight",be.lineHeight,(function(e){return D.clamp(e,0,150)}),{markdownDescription:h.NC("lineHeight","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.")})}return(0,d.Z)(n,[{key:"compute",value:function(e,t,n){return e.fontInfo.lineHeight}}]),n}(D),Q=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};return t.call(this,67,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:h.NC("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:h.NC("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[h.NC("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),h.NC("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),h.NC("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:h.NC("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:h.NC("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:h.NC("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:h.NC("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:h.NC("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:h.NC("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){if(!e||"object"!==typeof e)return this.defaultValue;var t=e;return{enabled:E(t.enabled,this.defaultValue.enabled),autohide:E(t.autohide,this.defaultValue.autohide),size:O(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:O(t.side,this.defaultValue.side,["right","left"]),showSlider:O(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:E(t.renderCharacters,this.defaultValue.renderCharacters),scale:I.clampedInt(t.scale,1,1,3),maxColumn:I.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}]),n}(C);var J=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,77,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:h.NC("padding.top","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:h.NC("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){if(!e||"object"!==typeof e)return this.defaultValue;var t=e;return{top:I.clampedInt(t.top,0,0,1e3),bottom:I.clampedInt(t.bottom,0,0,1e3)}}}]),n}(C),ee=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={enabled:!0,cycle:!1};return t.call(this,78,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:h.NC("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:h.NC("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){if(!e||"object"!==typeof e)return this.defaultValue;var t=e;return{enabled:E(t.enabled,this.defaultValue.enabled),cycle:E(t.cycle,this.defaultValue.cycle)}}}]),n}(C),te=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,131)}return(0,d.Z)(n,[{key:"compute",value:function(e,t,n){return e.pixelRatio}}]),n}(k),ne=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;(0,u.Z)(this,n);var i={other:"on",comments:"off",strings:"off"},r=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[h.NC("on","Quick suggestions show inside the suggest widget"),h.NC("inline","Quick suggestions show as ghost text"),h.NC("off","Quick suggestions are disabled")]}];return(e=t.call(this,81,"quickSuggestions",i,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:r,default:i.strings,description:h.NC("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:r,default:i.comments,description:h.NC("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:r,default:i.other,description:h.NC("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:i,markdownDescription:h.NC("quickSuggestions","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#")})).defaultValue=i,e}return(0,d.Z)(n,[{key:"validate",value:function(e){if("boolean"===typeof e){var t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!==typeof e)return this.defaultValue;var n=e.other,i=e.comments,r=e.strings,o=["on","inline","off"];return{other:"boolean"===typeof n?n?"on":"off":O(n,this.defaultValue.other,o),comments:"boolean"===typeof i?i?"on":"off":O(i,this.defaultValue.comments,o),strings:"boolean"===typeof r?r?"on":"off":O(r,this.defaultValue.strings,o)}}}]),n}(C),ie=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,62,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[h.NC("lineNumbers.off","Line numbers are not rendered."),h.NC("lineNumbers.on","Line numbers are rendered as absolute number."),h.NC("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),h.NC("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:h.NC("lineNumbers","Controls the display of line numbers.")})}return(0,d.Z)(n,[{key:"validate",value:function(e){var 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}}}]),n}(C);function re(e){var t=e.get(89);return"editable"===t?e.get(83):"on"!==t}var oe=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e=[],i={type:"number",description:h.NC("rulers.size","Number of monospace characters at which this editor ruler will render.")};return t.call(this,93,"rulers",e,{type:"array",items:{anyOf:[i,{type:["object"],properties:{column:i,color:{type:"string",description:h.NC("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:h.NC("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}return(0,d.Z)(n,[{key:"validate",value:function(e){if(Array.isArray(e)){var t,n=[],i=(0,s.Z)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;if("number"===typeof r)n.push({column:I.clampedInt(r,0,0,1e4),color:null});else if(r&&"object"===typeof r){var o=r;n.push({column:I.clampedInt(o.column,0,0,1e4),color:o.color})}}}catch(a){i.e(a)}finally{i.f()}return n.sort((function(e,t){return e.column-t.column})),n}return this.defaultValue}}]),n}(C);function ae(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}var se=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var 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};return t.call(this,94,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[h.NC("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),h.NC("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),h.NC("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:h.NC("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[h.NC("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),h.NC("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),h.NC("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:h.NC("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:h.NC("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:h.NC("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:h.NC("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){if(!e||"object"!==typeof e)return this.defaultValue;var t=e,n=I.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=I.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:I.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:ae(t.vertical,this.defaultValue.vertical),horizontal:ae(t.horizontal,this.defaultValue.horizontal),useShadows:E(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:E(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:E(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:E(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:E(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:I.clampedInt(t.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:i,verticalSliderSize:I.clampedInt(t.verticalSliderSize,i,0,1e3),scrollByPage:E(t.scrollByPage,this.defaultValue.scrollByPage)}}}]),n}(C),le="inUntrustedWorkspace",ce={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"},ue=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;(0,u.Z)(this,n);var i={nonBasicASCII:le,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:le,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};return t.call(this,115,"unicodeHighlight",i,(e={},(0,r.Z)(e,ce.nonBasicASCII,{restricted:!0,type:["boolean","string"],enum:[!0,!1,le],default:i.nonBasicASCII,description:h.NC("unicodeHighlight.nonBasicASCII","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.")}),(0,r.Z)(e,ce.invisibleCharacters,{restricted:!0,type:"boolean",default:i.invisibleCharacters,description:h.NC("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")}),(0,r.Z)(e,ce.ambiguousCharacters,{restricted:!0,type:"boolean",default:i.ambiguousCharacters,description:h.NC("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")}),(0,r.Z)(e,ce.includeComments,{restricted:!0,type:["boolean","string"],enum:[!0,!1,le],default:i.includeComments,description:h.NC("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to unicode highlighting.")}),(0,r.Z)(e,ce.includeStrings,{restricted:!0,type:["boolean","string"],enum:[!0,!1,le],default:i.includeStrings,description:h.NC("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to unicode highlighting.")}),(0,r.Z)(e,ce.allowedCharacters,{restricted:!0,type:"object",default:i.allowedCharacters,description:h.NC("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}}),(0,r.Z)(e,ce.allowedLocales,{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:i.allowedLocales,description:h.NC("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}),e))}return(0,d.Z)(n,[{key:"applyUpdate",value:function(e,t){var i=!1;t.allowedCharacters&&e&&(v.fS(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&e&&(v.fS(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0));var r=(0,o.Z)((0,a.Z)(n.prototype),"applyUpdate",this).call(this,e,t);return i?new S(r.newValue,!0):r}},{key:"validate",value:function(e){if(!e||"object"!==typeof e)return this.defaultValue;var t=e;return{nonBasicASCII:pe(t.nonBasicASCII,le,[!0,!1,le]),invisibleCharacters:E(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:E(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:pe(t.includeComments,le,[!0,!1,le]),includeStrings:pe(t.includeStrings,le,[!0,!1,le]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}},{key:"validateBooleanMap",value:function(e,t){if("object"!==typeof e||!e)return t;for(var n={},r=0,o=Object.entries(e);r<o.length;r++){var a=(0,i.Z)(o[r],2),s=a[0];!0===a[1]&&(n[s]=!0)}return n}}]),n}(C),de=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={enabled:!0,mode:"subwordSmart"};return t.call(this,57,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:h.NC("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){if(!e||"object"!==typeof e)return this.defaultValue;var t=e;return{enabled:E(t.enabled,this.defaultValue.enabled),mode:O(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}]),n}(C),he=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={enabled:m.D.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:m.D.bracketPairColorizationOptions.independentColorPoolPerBracketType};return t.call(this,12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:h.NC("bracketPairColorization.enabled","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:h.NC("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){if(!e||"object"!==typeof e)return this.defaultValue;var t=e;return{enabled:E(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:E(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}]),n}(C),fe=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};return t.call(this,13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[h.NC("editor.guides.bracketPairs.true","Enables bracket pair guides."),h.NC("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),h.NC("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:h.NC("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[h.NC("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),h.NC("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),h.NC("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:h.NC("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:h.NC("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:h.NC("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[h.NC("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),h.NC("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),h.NC("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:h.NC("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){if(!e||"object"!==typeof e)return this.defaultValue;var t=e;return{bracketPairs:pe(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:pe(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:E(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:E(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:pe(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}]),n}(C);function pe(e,t,n){var i=n.indexOf(e);return-1===i?t:n[i]}var ge=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!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};return t.call(this,108,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[h.NC("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),h.NC("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:h.NC("suggest.insertMode","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:h.NC("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:h.NC("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:h.NC("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:h.NC("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:h.NC("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:h.NC("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:h.NC("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:h.NC("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:h.NC("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:h.NC("deprecated","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:h.NC("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){if(!e||"object"!==typeof e)return this.defaultValue;var t=e;return{insertMode:O(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:E(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:E(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:E(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:E(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:E(t.showIcons,this.defaultValue.showIcons),showStatusBar:E(t.showStatusBar,this.defaultValue.showStatusBar),preview:E(t.preview,this.defaultValue.preview),previewMode:O(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:E(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:E(t.showMethods,this.defaultValue.showMethods),showFunctions:E(t.showFunctions,this.defaultValue.showFunctions),showConstructors:E(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:E(t.showDeprecated,this.defaultValue.showDeprecated),showFields:E(t.showFields,this.defaultValue.showFields),showVariables:E(t.showVariables,this.defaultValue.showVariables),showClasses:E(t.showClasses,this.defaultValue.showClasses),showStructs:E(t.showStructs,this.defaultValue.showStructs),showInterfaces:E(t.showInterfaces,this.defaultValue.showInterfaces),showModules:E(t.showModules,this.defaultValue.showModules),showProperties:E(t.showProperties,this.defaultValue.showProperties),showEvents:E(t.showEvents,this.defaultValue.showEvents),showOperators:E(t.showOperators,this.defaultValue.showOperators),showUnits:E(t.showUnits,this.defaultValue.showUnits),showValues:E(t.showValues,this.defaultValue.showValues),showConstants:E(t.showConstants,this.defaultValue.showConstants),showEnums:E(t.showEnums,this.defaultValue.showEnums),showEnumMembers:E(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:E(t.showKeywords,this.defaultValue.showKeywords),showWords:E(t.showWords,this.defaultValue.showWords),showColors:E(t.showColors,this.defaultValue.showColors),showFiles:E(t.showFiles,this.defaultValue.showFiles),showReferences:E(t.showReferences,this.defaultValue.showReferences),showFolders:E(t.showFolders,this.defaultValue.showFolders),showTypeParameters:E(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:E(t.showSnippets,this.defaultValue.showSnippets),showUsers:E(t.showUsers,this.defaultValue.showUsers),showIssues:E(t.showIssues,this.defaultValue.showIssues)}}}]),n}(C),ve=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,104,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:h.NC("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}return(0,d.Z)(n,[{key:"validate",value:function(e){return e&&"object"===typeof e?{selectLeadingAndTrailingWhitespace:E(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}:this.defaultValue}}]),n}(C),me=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,132)}return(0,d.Z)(n,[{key:"compute",value:function(e,t,n){return!!t.get(83)||e.tabFocusMode}}]),n}(k);var ye=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.call(this,134)}return(0,d.Z)(n,[{key:"compute",value:function(e,t,n){var i=t.get(133);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:i.isWordWrapMinified,isViewportWrapping:i.isViewportWrapping,wrappingColumn:i.wrappingColumn}}}]),n}(k),_e=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){(0,u.Z)(this,n);var e={enabled:!0};return t.call(this,32,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:h.NC("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}return(0,d.Z)(n,[{key:"validate",value:function(e){return e&&"object"===typeof e?{enabled:E(e.enabled,this.defaultValue.enabled)}:this.defaultValue}}]),n}(C),be={fontFamily:f.dz?"Menlo, Monaco, 'Courier New', monospace":f.IJ?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:f.dz?12:14,lineHeight:0,letterSpacing:0},Ce=[];function Se(e){return Ce[e.id]=e,e}var we={acceptSuggestionOnCommitCharacter:Se(new T(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:h.NC("acceptSuggestionOnCommitCharacter","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:Se(new R(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",h.NC("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:h.NC("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Se(new P),accessibilityPageSize:Se(new I(3,"accessibilityPageSize",10,1,1073741824,{description:h.NC("accessibilityPageSize","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.")})),ariaLabel:Se(new L(4,"ariaLabel",h.NC("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:Se(new R(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",h.NC("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),h.NC("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:h.NC("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:Se(new R(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",h.NC("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:h.NC("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Se(new R(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",h.NC("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:h.NC("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Se(new R(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",h.NC("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),h.NC("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:h.NC("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Se(new A(9,"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:[h.NC("editor.autoIndent.none","The editor will not insert indentation automatically."),h.NC("editor.autoIndent.keep","The editor will keep the current line's indentation."),h.NC("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),h.NC("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),h.NC("editor.autoIndent.full","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:h.NC("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Se(new T(10,"automaticLayout",!1)),autoSurround:Se(new R(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[h.NC("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),h.NC("editor.autoSurround.quotes","Surround with quotes but not brackets."),h.NC("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:h.NC("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Se(new he),bracketPairGuides:Se(new fe),stickyTabStops:Se(new T(106,"stickyTabStops",!1,{description:h.NC("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Se(new T(14,"codeLens",!0,{description:h.NC("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Se(new L(15,"codeLensFontFamily","",{description:h.NC("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:Se(new I(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:h.NC("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, 90% of `#editor.fontSize#` is used.")})),colorDecorators:Se(new T(17,"colorDecorators",!0,{description:h.NC("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:Se(new T(18,"columnSelection",!1,{description:h.NC("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:Se(new Z),contextmenu:Se(new T(20,"contextmenu",!0)),copyWithSyntaxHighlighting:Se(new T(21,"copyWithSyntaxHighlighting",!0,{description:h.NC("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Se(new A(22,"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:h.NC("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:Se(new T(23,"cursorSmoothCaretAnimation",!1,{description:h.NC("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Se(new A(24,"cursorStyle",M.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return M.Line;case"block":return M.Block;case"underline":return M.Underline;case"line-thin":return M.LineThin;case"block-outline":return M.BlockOutline;case"underline-thin":return M.UnderlineThin}}),{description:h.NC("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:Se(new I(25,"cursorSurroundingLines",0,0,1073741824,{description:h.NC("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Se(new R(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[h.NC("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),h.NC("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:h.NC("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:Se(new I(27,"cursorWidth",0,0,1073741824,{markdownDescription:h.NC("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Se(new T(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:Se(new T(29,"disableMonospaceOptimizations",!1)),domReadOnly:Se(new T(30,"domReadOnly",!1)),dragAndDrop:Se(new T(31,"dragAndDrop",!0,{description:h.NC("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Se(new B),dropIntoEditor:Se(new _e),experimental:Se(new q),extraEditorClassName:Se(new L(35,"extraEditorClassName","")),fastScrollSensitivity:Se(new D(36,"fastScrollSensitivity",5,(function(e){return e<=0?5:e}),{markdownDescription:h.NC("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:Se(new H),fixedOverflowWidgets:Se(new T(38,"fixedOverflowWidgets",!1)),folding:Se(new T(39,"folding",!0,{description:h.NC("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:Se(new R(40,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[h.NC("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),h.NC("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:h.NC("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:Se(new T(41,"foldingHighlight",!0,{description:h.NC("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Se(new T(42,"foldingImportsByDefault",!1,{description:h.NC("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:Se(new I(43,"foldingMaximumRegions",5e3,10,65e3,{description:h.NC("foldingMaximumRegions","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:Se(new T(44,"unfoldOnClickAfterEndOfLine",!1,{description:h.NC("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Se(new L(45,"fontFamily",be.fontFamily,{description:h.NC("fontFamily","Controls the font family.")})),fontInfo:Se(new j),fontLigatures2:Se(new z),fontSize:Se(new V),fontWeight:Se(new W),formatOnPaste:Se(new T(50,"formatOnPaste",!1,{description:h.NC("formatOnPaste","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:Se(new T(51,"formatOnType",!1,{description:h.NC("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Se(new T(52,"glyphMargin",!0,{description:h.NC("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Se(new U),hideCursorInOverviewRuler:Se(new T(54,"hideCursorInOverviewRuler",!1,{description:h.NC("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:Se(new G),inDiffEditor:Se(new T(56,"inDiffEditor",!1)),letterSpacing:Se(new D(58,"letterSpacing",be.letterSpacing,(function(e){return D.clamp(e,-5,20)}),{description:h.NC("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:Se(new Y),lineDecorationsWidth:Se(new x(60,"lineDecorationsWidth",10)),lineHeight:Se(new X),lineNumbers:Se(new ie),lineNumbersMinChars:Se(new I(63,"lineNumbersMinChars",5,1,300)),linkedEditing:Se(new T(64,"linkedEditing",!1,{description:h.NC("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:Se(new T(65,"links",!0,{description:h.NC("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Se(new R(66,"matchBrackets","always",["always","near","never"],{description:h.NC("matchBrackets","Highlight matching brackets.")})),minimap:Se(new Q),mouseStyle:Se(new R(68,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Se(new D(69,"mouseWheelScrollSensitivity",1,(function(e){return 0===e?1:e}),{markdownDescription:h.NC("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Se(new T(70,"mouseWheelZoom",!1,{markdownDescription:h.NC("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Se(new T(71,"multiCursorMergeOverlapping",!0,{description:h.NC("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Se(new A(72,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?f.dz?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[h.NC("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),h.NC("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:h.NC({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"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).")})),multiCursorPaste:Se(new R(73,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[h.NC("multiCursorPaste.spread","Each cursor pastes a single line of the text."),h.NC("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:h.NC("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:Se(new T(74,"occurrencesHighlight",!0,{description:h.NC("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:Se(new T(75,"overviewRulerBorder",!0,{description:h.NC("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Se(new I(76,"overviewRulerLanes",3,0,3)),padding:Se(new J),parameterHints:Se(new ee),peekWidgetDefaultFocus:Se(new R(79,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[h.NC("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),h.NC("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:h.NC("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:Se(new T(80,"definitionLinkOpensInPeek",!1,{description:h.NC("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Se(new ne),quickSuggestionsDelay:Se(new I(82,"quickSuggestionsDelay",10,0,1073741824,{description:h.NC("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Se(new T(83,"readOnly",!1)),renameOnType:Se(new T(84,"renameOnType",!1,{description:h.NC("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:h.NC("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Se(new T(85,"renderControlCharacters",!0,{description:h.NC("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Se(new T(86,"renderFinalNewline",!0,{description:h.NC("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:Se(new R(87,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",h.NC("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:h.NC("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Se(new T(88,"renderLineHighlightOnlyWhenFocus",!1,{description:h.NC("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Se(new R(89,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Se(new R(90,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",h.NC("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),h.NC("renderWhitespace.selection","Render whitespace characters only on selected text."),h.NC("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:h.NC("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Se(new I(91,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:Se(new T(92,"roundedSelection",!0,{description:h.NC("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:Se(new oe),scrollbar:Se(new se),scrollBeyondLastColumn:Se(new I(95,"scrollBeyondLastColumn",4,0,1073741824,{description:h.NC("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Se(new T(96,"scrollBeyondLastLine",!0,{description:h.NC("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Se(new T(97,"scrollPredominantAxis",!0,{description:h.NC("scrollPredominantAxis","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:Se(new T(98,"selectionClipboard",!0,{description:h.NC("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:f.IJ})),selectionHighlight:Se(new T(99,"selectionHighlight",!0,{description:h.NC("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Se(new T(100,"selectOnLineNumbers",!0)),showFoldingControls:Se(new R(101,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[h.NC("showFoldingControls.always","Always show the folding controls."),h.NC("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),h.NC("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:h.NC("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:Se(new T(102,"showUnused",!0,{description:h.NC("showUnused","Controls fading out of unused code.")})),showDeprecated:Se(new T(128,"showDeprecated",!0,{description:h.NC("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:Se(new $),snippetSuggestions:Se(new R(103,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[h.NC("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),h.NC("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),h.NC("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),h.NC("snippetSuggestions.none","Do not show snippet suggestions.")],description:h.NC("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Se(new ve),smoothScrolling:Se(new T(105,"smoothScrolling",!1,{description:h.NC("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Se(new I(107,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Se(new ge),inlineSuggest:Se(new de),suggestFontSize:Se(new I(109,"suggestFontSize",0,0,1e3,{markdownDescription:h.NC("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:Se(new I(110,"suggestLineHeight",0,0,1e3,{markdownDescription:h.NC("suggestLineHeight","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:Se(new T(111,"suggestOnTriggerCharacters",!0,{description:h.NC("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Se(new R(112,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[h.NC("suggestSelection.first","Always select the first suggestion."),h.NC("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),h.NC("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:h.NC("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Se(new R(113,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[h.NC("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),h.NC("tabCompletion.off","Disable tab completions."),h.NC("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:h.NC("tabCompletion","Enables tab completions.")})),tabIndex:Se(new I(114,"tabIndex",0,-1,1073741824)),unicodeHighlight:Se(new ue),unusualLineTerminators:Se(new R(116,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[h.NC("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),h.NC("unusualLineTerminators.off","Unusual line terminators are ignored."),h.NC("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:h.NC("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:Se(new T(117,"useShadowDOM",!0)),useTabStops:Se(new T(118,"useTabStops",!0,{description:h.NC("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:Se(new L(119,"wordSeparators",p.vu,{description:h.NC("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Se(new R(120,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[h.NC("wordWrap.off","Lines will never wrap."),h.NC("wordWrap.on","Lines will wrap at the viewport width."),h.NC({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),h.NC({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:h.NC({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Se(new L(121,"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:Se(new L(122,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:Se(new I(123,"wordWrapColumn",80,1,1073741824,{markdownDescription:h.NC({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Se(new R(124,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Se(new R(125,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:Se(new A(126,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],(function(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}),{enumDescriptions:[h.NC("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),h.NC("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),h.NC("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),h.NC("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:h.NC("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:Se(new R(127,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[h.NC("wrappingStrategy.simple","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."),h.NC("wrappingStrategy.advanced","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.")],description:h.NC("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:Se(new F),pixelRatio:Se(new te),tabFocusMode:Se(new me),layoutInfo:Se(new K),wrappingInfo:Se(new ye)}},80282:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var i=n(15671),r=n(43144),o=n(73097),a=new(function(){function e(){(0,i.Z)(this,e),this._zoomLevel=0,this._onDidChangeZoomLevel=new o.Q5,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return(0,r.Z)(e,[{key:"getZoomLevel",value:function(){return this._zoomLevel}},{key:"setZoomLevel",value:function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}]),e}())},4539:function(e,t,n){"use strict";n.d(t,{E4:function(){return d},pR:function(){return h}});var i=n(60136),r=n(27277),o=n(15671),a=n(43144),s=n(73616),l=n(64472),c=n(80282),u=s.dz?1.5:1.35,d=function(){function e(t){(0,o.Z)(this,e),this._bareFontInfoBrand=void 0,this.pixelRatio=t.pixelRatio,this.fontFamily=String(t.fontFamily),this.fontWeight=String(t.fontWeight),this.fontSize=t.fontSize,this.fontFeatureSettings=t.fontFeatureSettings,this.lineHeight=0|t.lineHeight,this.letterSpacing=t.letterSpacing}return(0,a.Z)(e,[{key:"getId",value:function(){return"".concat(this.pixelRatio,"-").concat(this.fontFamily,"-").concat(this.fontWeight,"-").concat(this.fontSize,"-").concat(this.fontFeatureSettings,"-").concat(this.lineHeight,"-").concat(this.letterSpacing)}},{key:"getMassagedFontFamily",value:function(){var t=l.hL.fontFamily,n=e._wrapInQuotes(this.fontFamily);return t&&this.fontFamily!==t?"".concat(n,", ").concat(t):n}}],[{key:"createFromValidatedSettings",value:function(t,n,i){var r=t.get(45),o=t.get(49),a=t.get(48),s=t.get(47),l=t.get(61),c=t.get(58);return e._create(r,o,a,s,l,c,n,i)}},{key:"_create",value:function(t,n,i,r,o,a,s,l){0===o?o=u*i:o<8&&(o*=i),(o=Math.round(o))<8&&(o=8);var d=1+(l?0:.1*c.C.getZoomLevel());return new e({pixelRatio:s,fontFamily:t,fontWeight:n,fontSize:i*=d,fontFeatureSettings:r,lineHeight:o*=d,letterSpacing:a})}},{key:"_wrapInQuotes",value:function(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?'"'.concat(e,'"'):e}}]),e}(),h=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,e))._editorStylingBrand=void 0,r.version=1,r.isTrusted=i,r.isMonospace=e.isMonospace,r.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,r.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,r.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,r.spaceWidth=e.spaceWidth,r.middotWidth=e.middotWidth,r.wsmiddotWidth=e.wsmiddotWidth,r.maxDigitWidth=e.maxDigitWidth,r}return(0,a.Z)(n,[{key:"equals",value:function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}]),n}(d)},54410:function(e,t,n){"use strict";n.d(t,{N:function(){return a},q:function(){return s}});var i=n(15671),r=n(43144),o=n(54540),a=function(){function e(t){(0,i.Z)(this,e);var n=(0,o.K)(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}return(0,r.Z)(e,[{key:"set",value:function(e,t){var n=(0,o.K)(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}},{key:"get",value:function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}],[{key:"_createAsciiMap",value:function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t}}]),e}(),s=function(){function e(){(0,i.Z)(this,e),this._actual=new a(0)}return(0,r.Z)(e,[{key:"add",value:function(e){this._actual.set(e,1)}},{key:"has",value:function(e){return 1===this._actual.get(e)}}]),e}()},29349:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var i=n(15671),r=n(43144),o=n(32377),a=function(){function e(){(0,i.Z)(this,e)}return(0,r.Z)(e,null,[{key:"_nextVisibleColumn",value:function(t,n,i){return 9===t?e.nextRenderTabStop(n,i):o.K7(t)||o.C8(t)?n+2:n+1}},{key:"visibleColumnFromColumn",value:function(e,t,n){for(var i=Math.min(t-1,e.length),r=e.substring(0,i),a=new o.W1(r),s=0;!a.eol();){var l=o.ZH(r,i,a.offset);a.nextGraphemeLength(),s=this._nextVisibleColumn(l,s,n)}return s}},{key:"columnFromVisibleColumn",value:function(e,t,n){if(t<=0)return 1;for(var i=e.length,r=new o.W1(e),a=0,s=1;!r.eol();){var l=o.ZH(e,i,r.offset);r.nextGraphemeLength();var c=this._nextVisibleColumn(l,a,n),u=r.offset+1;if(c>=t)return c-t<t-a?u:s;a=c,s=u}return i+1}},{key:"nextRenderTabStop",value:function(e,t){return e+t-e%t}},{key:"nextIndentTabStop",value:function(e,t){return e+t-e%t}},{key:"prevRenderTabStop",value:function(e,t){return Math.max(0,e-1-(e-1)%t)}},{key:"prevIndentTabStop",value:function(e,t){return Math.max(0,e-1-(e-1)%t)}}]),e}()},3055:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var i=n(15671),r=n(43144),o=n(80133),a=function(){function e(){(0,i.Z)(this,e)}return(0,r.Z)(e,null,[{key:"insert",value:function(e,t){return{range:new o.e(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}},{key:"delete",value:function(e){return{range:e,text:null}}},{key:"replace",value:function(e,t){return{range:e,text:t}}},{key:"replaceMove",value:function(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}]),e}()},29700:function(e,t,n){"use strict";n.d(t,{CE:function(){return H},DD:function(){return C},DS:function(){return K},Dl:function(){return k},HV:function(){return te},IO:function(){return O},Jn:function(){return q},Kh:function(){return l},L7:function(){return ee},Mm:function(){return c},N5:function(){return L},Qb:function(){return X},Re:function(){return P},TC:function(){return w},To:function(){return J},UP:function(){return z},Vs:function(){return B},YF:function(){return $},Ym:function(){return y},eS:function(){return Z},e_:function(){return E},f9:function(){return ne},fY:function(){return g},hw:function(){return _},kp:function(){return N},lK:function(){return M},lS:function(){return Y},m$:function(){return G},m1:function(){return V},m3:function(){return Q},m9:function(){return A},n0:function(){return p},oV:function(){return U},r0:function(){return j},tR:function(){return m},ts:function(){return W},x3:function(){return D},zJ:function(){return F},zk:function(){return S},zu:function(){return I},zw:function(){return x}});var i=n(27722),r=n(62458),o=n(32379),a=n(64014),s=n(59632),l=(0,o.P6G)("editor.lineHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},i.NC("lineHighlight","Background color for the highlight of line at the cursor position.")),c=(0,o.P6G)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:o.lRK},i.NC("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),u=(0,o.P6G)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},i.NC("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),d=(0,o.P6G)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:o.xL1,hcLight:o.xL1},i.NC("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),h=(0,o.P6G)("editor.symbolHighlightBackground",{dark:o.MUv,light:o.MUv,hcDark:null,hcLight:null},i.NC("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),f=(0,o.P6G)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:o.xL1,hcLight:o.xL1},i.NC("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),p=(0,o.P6G)("editorCursor.foreground",{dark:"#AEAFAD",light:r.Il.black,hcDark:r.Il.white,hcLight:"#0F4A85"},i.NC("caret","Color of the editor cursor.")),g=(0,o.P6G)("editorCursor.background",null,i.NC("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),v=(0,o.P6G)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},i.NC("editorWhitespaces","Color of whitespace characters in the editor.")),m=(0,o.P6G)("editorIndentGuide.background",{dark:v,light:v,hcDark:v,hcLight:v},i.NC("editorIndentGuides","Color of the editor indentation guides.")),y=(0,o.P6G)("editorIndentGuide.activeBackground",{dark:v,light:v,hcDark:v,hcLight:v},i.NC("editorActiveIndentGuide","Color of the active editor indentation guides.")),_=(0,o.P6G)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:r.Il.white,hcLight:"#292929"},i.NC("editorLineNumbers","Color of editor line numbers.")),b=(0,o.P6G)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:o.xL1,hcLight:o.xL1},i.NC("editorActiveLineNumber","Color of editor active line number"),!1,i.NC("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),C=(0,o.P6G)("editorLineNumber.activeForeground",{dark:b,light:b,hcDark:b,hcLight:b},i.NC("editorActiveLineNumber","Color of editor active line number")),S=(0,o.P6G)("editorRuler.foreground",{dark:"#5A5A5A",light:r.Il.lightgrey,hcDark:r.Il.white,hcLight:"#292929"},i.NC("editorRuler","Color of the editor rulers.")),w=((0,o.P6G)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},i.NC("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,o.P6G)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},i.NC("editorBracketMatchBackground","Background color behind matching brackets"))),k=(0,o.P6G)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:o.lRK,hcLight:o.lRK},i.NC("editorBracketMatchBorder","Color for matching brackets boxes")),x=(0,o.P6G)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},i.NC("editorOverviewRulerBorder","Color of the overview ruler border.")),E=(0,o.P6G)("editorOverviewRuler.background",null,i.NC("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),T=(0,o.P6G)("editorGutter.background",{dark:o.cvW,light:o.cvW,hcDark:o.cvW,hcLight:o.cvW},i.NC("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),N=(0,o.P6G)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:r.Il.fromHex("#fff").transparent(.8),hcLight:o.lRK},i.NC("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),I=(0,o.P6G)("editorUnnecessaryCode.opacity",{dark:r.Il.fromHex("#000a"),light:r.Il.fromHex("#0007"),hcDark:null,hcLight:null},i.NC("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),D=(0,o.P6G)("editorGhostText.border",{dark:null,light:null,hcDark:r.Il.fromHex("#fff").transparent(.8),hcLight:r.Il.fromHex("#292929").transparent(.8)},i.NC("editorGhostTextBorder","Border color of ghost text in the editor.")),L=(0,o.P6G)("editorGhostText.foreground",{dark:r.Il.fromHex("#ffffff56"),light:r.Il.fromHex("#0007"),hcDark:null,hcLight:null},i.NC("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),O=(0,o.P6G)("editorGhostText.background",{dark:null,light:null,hcDark:null,hcLight:null},i.NC("editorGhostTextBackground","Background color of the ghost text in the editor.")),R=new r.Il(new r.VS(0,122,204,.6)),A=(0,o.P6G)("editorOverviewRuler.rangeHighlightForeground",{dark:R,light:R,hcDark:R,hcLight:R},i.NC("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),M=(0,o.P6G)("editorOverviewRuler.errorForeground",{dark:new r.Il(new r.VS(255,18,18,.7)),light:new r.Il(new r.VS(255,18,18,.7)),hcDark:new r.Il(new r.VS(255,50,50,1)),hcLight:"#B5200D"},i.NC("overviewRuleError","Overview ruler marker color for errors.")),P=(0,o.P6G)("editorOverviewRuler.warningForeground",{dark:o.uoC,light:o.uoC,hcDark:o.pW3,hcLight:o.pW3},i.NC("overviewRuleWarning","Overview ruler marker color for warnings.")),Z=(0,o.P6G)("editorOverviewRuler.infoForeground",{dark:o.c63,light:o.c63,hcDark:o.T83,hcLight:o.T83},i.NC("overviewRuleInfo","Overview ruler marker color for infos.")),F=(0,o.P6G)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},i.NC("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),B=(0,o.P6G)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},i.NC("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),H=(0,o.P6G)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},i.NC("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),z=(0,o.P6G)("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),j=(0,o.P6G)("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),V=(0,o.P6G)("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),W=(0,o.P6G)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new r.Il(new r.VS(255,18,18,.8)),light:new r.Il(new r.VS(255,18,18,.8)),hcDark:new r.Il(new r.VS(255,50,50,1)),hcLight:""},i.NC("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),U=(0,o.P6G)("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),G=(0,o.P6G)("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),K=(0,o.P6G)("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),Y=(0,o.P6G)("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),q=(0,o.P6G)("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),$=(0,o.P6G)("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),X=(0,o.P6G)("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),Q=(0,o.P6G)("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),J=(0,o.P6G)("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),ee=(0,o.P6G)("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),te=(0,o.P6G)("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),ne=(0,o.P6G)("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},i.NC("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,o.P6G)("editorUnicodeHighlight.border",{dark:"#BD9B03",light:"#CEA33D",hcDark:"#ff0000",hcLight:""},i.NC("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,o.P6G)("editorUnicodeHighlight.background",{dark:"#bd9b0326",light:"#cea33d14",hcDark:"#00000000",hcLight:""},i.NC("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,a.Ic)((function(e,t){var n=e.getColor(o.cvW);n&&t.addRule(".monaco-editor, .monaco-editor-background { background-color: ".concat(n,"; }"));var i=e.getColor(l),r=i&&!i.isTransparent()?i:n;r&&t.addRule(".monaco-editor .inputarea.ime-input { background-color: ".concat(r,"; }"));var a=e.getColor(o.NOs);a&&t.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: ".concat(a,"; }"));var c=e.getColor(T);c&&t.addRule(".monaco-editor .margin { background-color: ".concat(c,"; }"));var p=e.getColor(u);p&&t.addRule(".monaco-editor .rangeHighlight { background-color: ".concat(p,"; }"));var g=e.getColor(d);g&&t.addRule(".monaco-editor .rangeHighlight { border: 1px ".concat((0,s.c3)(e.type)?"dotted":"solid"," ").concat(g,"; }"));var m=e.getColor(h);m&&t.addRule(".monaco-editor .symbolHighlight { background-color: ".concat(m,"; }"));var y=e.getColor(f);y&&t.addRule(".monaco-editor .symbolHighlight { border: 1px ".concat((0,s.c3)(e.type)?"dotted":"solid"," ").concat(y,"; }"));var _=e.getColor(v);_&&(t.addRule(".monaco-editor .mtkw { color: ".concat(_," !important; }")),t.addRule(".monaco-editor .mtkz { color: ".concat(_," !important; }")))}))},37561:function(e,t,n){"use strict";function i(e){for(var t=0,n=0,i=0,r=0,o=0,a=e.length;o<a;o++){var s=e.charCodeAt(o);13===s?(0===t&&(n=o),t++,o+1<a&&10===e.charCodeAt(o+1)?(r|=2,o++):r|=3,i=o+1):10===s&&(r|=1,0===t&&(n=o),t++,i=o+1)}return 0===t&&(n=e.length),[t,n,e.length-i,r]}n.d(t,{Q:function(){return i}})},35643:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var i=n(32377),r=n(29349);function o(e,t,n){var o=i.LC(e);return-1===o&&(o=e.length),function(e,t,n){for(var i=0,o=0;o<e.length;o++)"\t"===e.charAt(o)?i=r.i.nextIndentTabStop(i,t):i++;var a="";if(!n){var s=Math.floor(i/t);i%=t;for(var l=0;l<s;l++)a+="\t"}for(var c=0;c<i;c++)a+=" ";return a}(e.substring(0,o),t,n)+e.substring(o)}},38622:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var i=n(15671),r=n(43144),o=function(){function e(t,n){(0,i.Z)(this,e),this.lineNumber=t,this.column=n}return(0,r.Z)(e,[{key:"with",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lineNumber,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.column;return t===this.lineNumber&&n===this.column?this:new e(t,n)}},{key:"delta",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.with(this.lineNumber+e,this.column+t)}},{key:"equals",value:function(t){return e.equals(this,t)}},{key:"isBefore",value:function(t){return e.isBefore(this,t)}},{key:"isBeforeOrEqual",value:function(t){return e.isBeforeOrEqual(this,t)}},{key:"clone",value:function(){return new e(this.lineNumber,this.column)}},{key:"toString",value:function(){return"("+this.lineNumber+","+this.column+")"}}],[{key:"equals",value:function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}},{key:"isBefore",value:function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}},{key:"isBeforeOrEqual",value:function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}},{key:"compare",value:function(e,t){var n=0|e.lineNumber,i=0|t.lineNumber;return n===i?(0|e.column)-(0|t.column):n-i}},{key:"lift",value:function(t){return new e(t.lineNumber,t.column)}},{key:"isIPosition",value:function(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}}]),e}()},80133:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var i=n(15671),r=n(43144),o=n(38622),a=function(){function e(t,n,r,o){(0,i.Z)(this,e),t>r||t===r&&n>o?(this.startLineNumber=r,this.startColumn=o,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=o)}return(0,r.Z)(e,[{key:"isEmpty",value:function(){return e.isEmpty(this)}},{key:"containsPosition",value:function(t){return e.containsPosition(this,t)}},{key:"containsRange",value:function(t){return e.containsRange(this,t)}},{key:"strictContainsRange",value:function(t){return e.strictContainsRange(this,t)}},{key:"plusRange",value:function(t){return e.plusRange(this,t)}},{key:"intersectRanges",value:function(t){return e.intersectRanges(this,t)}},{key:"equalsRange",value:function(t){return e.equalsRange(this,t)}},{key:"getEndPosition",value:function(){return e.getEndPosition(this)}},{key:"getStartPosition",value:function(){return e.getStartPosition(this)}},{key:"toString",value:function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}},{key:"setEndPosition",value:function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)}},{key:"setStartPosition",value:function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)}},{key:"collapseToStart",value:function(){return e.collapseToStart(this)}},{key:"toJSON",value:function(){return this}}],[{key:"isEmpty",value:function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}},{key:"containsPosition",value:function(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}},{key:"strictContainsPosition",value:function(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}},{key:"containsRange",value:function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}},{key:"strictContainsRange",value:function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}},{key:"plusRange",value:function(t,n){var i,r,o,a;return n.startLineNumber<t.startLineNumber?(i=n.startLineNumber,r=n.startColumn):n.startLineNumber===t.startLineNumber?(i=n.startLineNumber,r=Math.min(n.startColumn,t.startColumn)):(i=t.startLineNumber,r=t.startColumn),n.endLineNumber>t.endLineNumber?(o=n.endLineNumber,a=n.endColumn):n.endLineNumber===t.endLineNumber?(o=n.endLineNumber,a=Math.max(n.endColumn,t.endColumn)):(o=t.endLineNumber,a=t.endColumn),new e(i,r,o,a)}},{key:"intersectRanges",value:function(t,n){var i=t.startLineNumber,r=t.startColumn,o=t.endLineNumber,a=t.endColumn,s=n.startLineNumber,l=n.startColumn,c=n.endLineNumber,u=n.endColumn;return i<s?(i=s,r=l):i===s&&(r=Math.max(r,l)),o>c?(o=c,a=u):o===c&&(a=Math.min(a,u)),i>o||i===o&&r>a?null:new e(i,r,o,a)}},{key:"equalsRange",value:function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}},{key:"getEndPosition",value:function(e){return new o.L(e.endLineNumber,e.endColumn)}},{key:"getStartPosition",value:function(e){return new o.L(e.startLineNumber,e.startColumn)}},{key:"collapseToStart",value:function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}},{key:"fromPositions",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return new e(t.lineNumber,t.column,n.lineNumber,n.column)}},{key:"lift",value:function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}},{key:"isIRange",value:function(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}},{key:"areIntersectingOrTouching",value:function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}},{key:"areIntersecting",value:function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}},{key:"compareRangesUsingStarts",value:function(e,t){if(e&&t){var n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){var r=0|e.startColumn,o=0|t.startColumn;if(r===o){var a=0|e.endLineNumber,s=0|t.endLineNumber;return a===s?(0|e.endColumn)-(0|t.endColumn):a-s}return r-o}return n-i}return(e?1:0)-(t?1:0)}},{key:"compareRangesUsingEnds",value:function(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}},{key:"spansMultipleLines",value:function(e){return e.endLineNumber>e.startLineNumber}}]),e}()},23145:function(e,t,n){"use strict";n.d(t,{Y:function(){return l}});var i=n(15671),r=n(43144),o=n(60136),a=n(27277),s=n(38622),l=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,r,o,a){var s;return(0,i.Z)(this,n),(s=t.call(this,e,r,o,a)).selectionStartLineNumber=e,s.selectionStartColumn=r,s.positionLineNumber=o,s.positionColumn=a,s}return(0,r.Z)(n,[{key:"toString",value:function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}},{key:"equalsSelection",value:function(e){return n.selectionsEqual(this,e)}},{key:"getDirection",value:function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}},{key:"setEndPosition",value:function(e,t){return 0===this.getDirection()?new n(this.startLineNumber,this.startColumn,e,t):new n(e,t,this.startLineNumber,this.startColumn)}},{key:"getPosition",value:function(){return new s.L(this.positionLineNumber,this.positionColumn)}},{key:"getSelectionStart",value:function(){return new s.L(this.selectionStartLineNumber,this.selectionStartColumn)}},{key:"setStartPosition",value:function(e,t){return 0===this.getDirection()?new n(e,t,this.endLineNumber,this.endColumn):new n(this.endLineNumber,this.endColumn,e,t)}}],[{key:"selectionsEqual",value:function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}},{key:"fromPositions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new n(e.lineNumber,e.column,t.lineNumber,t.column)}},{key:"fromRange",value:function(e,t){return 0===t?new n(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new n(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}},{key:"liftSelection",value:function(e){return new n(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}},{key:"selectionsArrEqual",value:function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}},{key:"isISelection",value:function(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}},{key:"createWithDirection",value:function(e,t,i,r,o){return 0===o?new n(e,t,i,r):new n(i,r,e,t)}}]),n}(n(80133).e)},1293:function(e,t,n){"use strict";n.d(t,{kH:function(){return p},l$:function(){return f},lZ:function(){return g},oe:function(){return h}});var i,r,o,a=n(15671),s=n(43144),l=n(32377),c=n(73616),u=n(82175);function d(){return i||(i=new TextDecoder("UTF-16LE")),i}function h(){return o||(o=c.r()?d():(r||(r=new TextDecoder("UTF-16BE")),r)),o}var f,p,g="undefined"!==typeof TextDecoder;function v(e,t,n){for(var i=[],r=0,o=0;o<n;o++){var a=u.mP(e,t);t+=2,i[r++]=String.fromCharCode(a)}return i.join("")}g?(f=function(e){return new m(e)},p=function(e,t,n){var i=new Uint16Array(e.buffer,t,n);if(n>0&&(65279===i[0]||65534===i[0]))return v(e,t,n);return d().decode(i)}):(f=function(e){return new y},p=v);var m=function(){function e(t){(0,a.Z)(this,e),this._capacity=0|t,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return(0,s.Z)(e,[{key:"reset",value:function(){this._completedStrings=null,this._bufferLength=0}},{key:"build",value:function(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}},{key:"_buildBuffer",value:function(){if(0===this._bufferLength)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return h().decode(e)}},{key:"_flushBuffer",value:function(){var e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}},{key:"write1",value:function(e){var t=this._capacity-this._bufferLength;t<=1&&(0===t||l.ZG(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}},{key:"appendASCII",value:function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}},{key:"appendASCIIString",value:function(e){var t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)}}]),e}(),y=function(){function e(){(0,a.Z)(this,e),this._pieces=[],this._piecesLen=0}return(0,s.Z)(e,[{key:"reset",value:function(){this._pieces=[],this._piecesLen=0}},{key:"build",value:function(){return this._pieces.join("")}},{key:"write1",value:function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}},{key:"appendASCII",value:function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}},{key:"appendASCIIString",value:function(e){this._pieces[this._piecesLen++]=e}}]),e}()},70768:function(e,t,n){"use strict";n.d(t,{b:function(){return u},q:function(){return c}});var i=n(29439),r=n(15671),o=n(43144),a=n(82175),s=n(1293);function l(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}var c=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.oldPosition=t,this.oldText=n,this.newPosition=i,this.newText=o}return(0,o.Z)(e,[{key:"oldLength",get:function(){return this.oldText.length}},{key:"oldEnd",get:function(){return this.oldPosition+this.oldText.length}},{key:"newLength",get:function(){return this.newText.length}},{key:"newEnd",get:function(){return this.newPosition+this.newText.length}},{key:"toString",value:function(){return 0===this.oldText.length?"(insert@".concat(this.oldPosition,' "').concat(l(this.newText),'")'):0===this.newText.length?"(delete@".concat(this.oldPosition,' "').concat(l(this.oldText),'")'):"(replace@".concat(this.oldPosition,' "').concat(l(this.oldText),'" with "').concat(l(this.newText),'")')}},{key:"writeSize",value:function(){return 8+e._writeStringSize(this.oldText)+e._writeStringSize(this.newText)}},{key:"write",value:function(t,n){return a.T4(t,this.oldPosition,n),n+=4,a.T4(t,this.newPosition,n),n+=4,n=e._writeString(t,this.oldText,n),n=e._writeString(t,this.newText,n)}}],[{key:"_writeStringSize",value:function(e){return 4+2*e.length}},{key:"_writeString",value:function(e,t,n){var i=t.length;a.T4(e,i,n),n+=4;for(var r=0;r<i;r++)a.oq(e,t.charCodeAt(r),n),n+=2;return n}},{key:"_readString",value:function(e,t){var n=a.Ag(e,t);return t+=4,(0,s.kH)(e,t,n)}},{key:"read",value:function(t,n,i){var r=a.Ag(t,n);n+=4;var o=a.Ag(t,n);n+=4;var s=e._readString(t,n);n+=e._writeStringSize(s);var l=e._readString(t,n);return n+=e._writeStringSize(l),i.push(new e(r,s,o,l)),n}}]),e}();function u(e,t){return null===e||0===e.length?t:new d(e,t).compress()}var d=function(){function e(t,n){(0,r.Z)(this,e),this._prevEdits=t,this._currEdits=n,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}return(0,o.Z)(e,[{key:"compress",value:function(){for(var t=0,n=0,r=this._getPrev(t),o=this._getCurr(n);t<this._prevLen||n<this._currLen;)if(null!==r)if(null!==o)if(o.oldEnd<=r.newPosition)this._acceptCurr(o),o=this._getCurr(++n);else if(r.newEnd<=o.oldPosition)this._acceptPrev(r),r=this._getPrev(++t);else if(o.oldPosition<r.newPosition){var a=e._splitCurr(o,r.newPosition-o.oldPosition),s=(0,i.Z)(a,2),l=s[0],u=s[1];this._acceptCurr(l),o=u}else if(r.newPosition<o.oldPosition){var d=e._splitPrev(r,o.oldPosition-r.newPosition),h=(0,i.Z)(d,2),f=h[0],p=h[1];this._acceptPrev(f),r=p}else{var g=void 0,v=void 0;if(o.oldEnd===r.newEnd)g=r,v=o,r=this._getPrev(++t),o=this._getCurr(++n);else if(o.oldEnd<r.newEnd){var m=e._splitPrev(r,o.oldLength),y=(0,i.Z)(m,2);g=y[0],v=o,r=y[1],o=this._getCurr(++n)}else{var _=e._splitCurr(o,r.newLength),b=(0,i.Z)(_,2),C=b[0],S=b[1];g=r,v=C,r=this._getPrev(++t),o=S}this._result[this._resultLen++]=new c(g.oldPosition,g.oldText,v.newPosition,v.newText),this._prevDeltaOffset+=g.newLength-g.oldLength,this._currDeltaOffset+=v.newLength-v.oldLength}else this._acceptPrev(r),r=this._getPrev(++t);else this._acceptCurr(o),o=this._getCurr(++n);var w=e._merge(this._result);return e._removeNoOps(w)}},{key:"_acceptCurr",value:function(t){this._result[this._resultLen++]=e._rebaseCurr(this._prevDeltaOffset,t),this._currDeltaOffset+=t.newLength-t.oldLength}},{key:"_getCurr",value:function(e){return e<this._currLen?this._currEdits[e]:null}},{key:"_acceptPrev",value:function(t){this._result[this._resultLen++]=e._rebasePrev(this._currDeltaOffset,t),this._prevDeltaOffset+=t.newLength-t.oldLength}},{key:"_getPrev",value:function(e){return e<this._prevLen?this._prevEdits[e]:null}}],[{key:"_rebaseCurr",value:function(e,t){return new c(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}},{key:"_rebasePrev",value:function(e,t){return new c(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}},{key:"_splitPrev",value:function(e,t){var n=e.newText.substr(0,t),i=e.newText.substr(t);return[new c(e.oldPosition,e.oldText,e.newPosition,n),new c(e.oldEnd,"",e.newPosition+t,i)]}},{key:"_splitCurr",value:function(e,t){var n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new c(e.oldPosition,n,e.newPosition,e.newText),new c(e.oldPosition+t,i,e.newEnd,"")]}},{key:"_merge",value:function(e){if(0===e.length)return e;for(var t=[],n=0,i=e[0],r=1;r<e.length;r++){var o=e[r];i.oldEnd===o.oldPosition?i=new c(i.oldPosition,i.oldText+o.oldText,i.newPosition,i.newText+o.newText):(t[n++]=i,i=o)}return t[n++]=i,t}},{key:"_removeNoOps",value:function(e){if(0===e.length)return e;for(var t=[],n=0,i=0;i<e.length;i++){var r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}]),e}()},54589:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var i={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},3109:function(e,t,n){"use strict";n.d(t,{u:function(){return l}});var i=n(43144),r=n(15671),o=n(60136),a=n(27277),s=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;(0,r.Z)(this,n),i=t.call(this,0);for(var o=0,a=e.length;o<a;o++)i.set(e.charCodeAt(o),2);return i.set(32,1),i.set(9,1),i}return(0,i.Z)(n)}(n(54410).N);var l=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e(n)),t[n]}}((function(e){return new s(e)}))},37591:function(e,t,n){"use strict";n.d(t,{Af:function(){return s},eq:function(){return l},t2:function(){return u},vu:function(){return a}});var i=n(37762),r=n(94016),o=n(17832),a="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";var s=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n="(-?\\d*\\.\\d\\w*)|([^",r=(0,i.Z)(a);try{for(r.s();!(e=r.n()).done;){var o=e.value;t.indexOf(o)>=0||(n+="\\"+o)}}catch(s){r.e(s)}finally{r.f()}return n+="\\s]+)",new RegExp(n,"g")}();function l(e){var t=s;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}var c=new o.S;function u(e,t,n,i,o){if(o||(o=r.$.first(c)),n.length>o.maxLen){var a=e-o.maxLen/2;return a<0?a=0:i+=a,u(e,t,n=n.substring(a,e+o.maxLen/2),i,o)}for(var s=Date.now(),l=e-1-i,h=-1,f=null,p=1;!(Date.now()-s>=o.timeBudget);p++){var g=l-o.windowSize*p;t.lastIndex=Math.max(0,g);var v=d(t,n,l,h);if(!v&&f)break;if(f=v,g<=0)break;h=g}if(f){var m={word:f[0],startColumn:i+1+f.index,endColumn:i+1+f.index+f[0].length};return t.lastIndex=0,m}return null}function d(e,t,n,i){for(var r;r=e.exec(t);){var o=r.index||0;if(o<=n&&e.lastIndex>=n)return r;if(i>0&&o>i)return null}return null}c.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},79355:function(e,t,n){"use strict";n.d(t,{l:function(){return s}});var i=n(29439),r=n(15671),o=n(43144),a=n(29349),s=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,null,[{key:"whitespaceVisibleColumn",value:function(e,t,n){for(var i=e.length,r=0,o=-1,s=-1,l=0;l<i;l++){if(l===t)return[o,s,r];switch(r%n===0&&(o=l,s=r),e.charCodeAt(l)){case 32:r+=1;break;case 9:r=a.i.nextRenderTabStop(r,n);break;default:return[-1,-1,-1]}}return t===i?[o,s,r]:[-1,-1,-1]}},{key:"atomicPosition",value:function(t,n,r,o){var s,l=t.length,c=e.whitespaceVisibleColumn(t,n,r),u=(0,i.Z)(c,3),d=u[0],h=u[1],f=u[2];if(-1===f)return-1;switch(o){case 0:s=!0;break;case 1:s=!1;break;case 2:if(f%r===0)return n;s=f%r<=r/2}if(s){if(-1===d)return-1;for(var p=h,g=d;g<l;++g){if(p===h+r)return d;switch(t.charCodeAt(g)){case 32:p+=1;break;case 9:p=a.i.nextRenderTabStop(p,r);break;default:return-1}}return p===h+r?d:-1}for(var v=a.i.nextRenderTabStop(f,r),m=f,y=n;y<l;y++){if(m===v)return y;switch(t.charCodeAt(y)){case 32:m+=1;break;case 9:m=a.i.nextRenderTabStop(m,r);break;default:return-1}}return m===v?l:-1}}]),e}()},99046:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var i=n(37762),r=n(15671),o=n(43144),a=n(32377),s=n(76469),l=n(21577),c=n(29349),u=n(20699),d=n(80133),h=n(38622),f=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,null,[{key:"deleteRight",value:function(e,t,n,i){for(var r=[],o=3!==e,a=0,l=i.length;a<l;a++){var c=i[a],h=c;if(h.isEmpty()){var f=c.getPosition(),p=u.o.right(t,n,f);h=new d.e(p.lineNumber,p.column,f.lineNumber,f.column)}h.isEmpty()?r[a]=null:(h.startLineNumber!==h.endLineNumber&&(o=!0),r[a]=new s.T4(h,""))}return[o,r]}},{key:"isAutoClosingPairDelete",value:function(e,t,n,r,o,a,s){if("never"===t&&"never"===n)return!1;if("never"===e)return!1;for(var c=0,u=a.length;c<u;c++){var d=a[c],h=d.getPosition();if(!d.isEmpty())return!1;var f=o.getLineContent(h.lineNumber);if(h.column<2||h.column>=f.length+1)return!1;var p=f.charAt(h.column-2),g=r.get(p);if(!g)return!1;if((0,l.LN)(p)){if("never"===n)return!1}else if("never"===t)return!1;var v,m=f.charAt(h.column-1),y=!1,_=(0,i.Z)(g);try{for(_.s();!(v=_.n()).done;){var b=v.value;b.open===p&&b.close===m&&(y=!0)}}catch(x){_.e(x)}finally{_.f()}if(!y)return!1;if("auto"===e){for(var C=!1,S=0,w=s.length;S<w;S++){var k=s[S];if(h.lineNumber===k.startLineNumber&&h.column===k.startColumn){C=!0;break}}if(!C)return!1}}return!0}},{key:"_runAutoClosingPairDelete",value:function(e,t,n){for(var i=[],r=0,o=n.length;r<o;r++){var a=n[r].getPosition(),l=new d.e(a.lineNumber,a.column-1,a.lineNumber,a.column+1);i[r]=new s.T4(l,"")}return[!0,i]}},{key:"deleteLeft",value:function(t,n,i,r,o){if(this.isAutoClosingPairDelete(n.autoClosingDelete,n.autoClosingBrackets,n.autoClosingQuotes,n.autoClosingPairs.autoClosingPairsOpenByEnd,i,r,o))return this._runAutoClosingPairDelete(n,i,r);for(var a=[],l=2!==t,c=0,u=r.length;c<u;c++){var d=e.getDeleteRange(r[c],i,n);d.isEmpty()?a[c]=null:(d.startLineNumber!==d.endLineNumber&&(l=!0),a[c]=new s.T4(d,""))}return[l,a]}},{key:"getDeleteRange",value:function(t,n,i){if(!t.isEmpty())return t;var r=t.getPosition();if(i.useTabStops&&r.column>1){var o=n.getLineContent(r.lineNumber),s=a.LC(o),l=-1===s?o.length+1:s+1;if(r.column<=l){var u=i.visibleColumnFromColumn(n,r),h=c.i.prevIndentTabStop(u,i.indentSize),f=i.columnFromVisibleColumn(n,r.lineNumber,h);return new d.e(r.lineNumber,f,r.lineNumber,r.column)}}return d.e.fromPositions(e.getPositionAfterDeleteLeft(r,n),r)}},{key:"getPositionAfterDeleteLeft",value:function(e,t){if(e.column>1){var n=a.oH(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,n+1)}if(e.lineNumber>1){var i=e.lineNumber-1;return new h.L(i,t.getLineMaxColumn(i))}return e}},{key:"cut",value:function(e,t,n){var i=[],r=null;n.sort((function(e,t){return h.L.compare(e.getStartPosition(),t.getEndPosition())}));for(var o=0,a=n.length;o<a;o++){var c=n[o];if(c.isEmpty())if(e.emptySelectionClipboard){var u=c.getPosition(),f=void 0,p=void 0,g=void 0,v=void 0;u.lineNumber<t.getLineCount()?(f=u.lineNumber,p=1,g=u.lineNumber+1,v=1):u.lineNumber>1&&(null===r||void 0===r?void 0:r.endLineNumber)!==u.lineNumber?(f=u.lineNumber-1,p=t.getLineMaxColumn(u.lineNumber-1),g=u.lineNumber,v=t.getLineMaxColumn(u.lineNumber)):(f=u.lineNumber,p=1,g=u.lineNumber,v=t.getLineMaxColumn(u.lineNumber));var m=new d.e(f,p,g,v);r=m,m.isEmpty()?i[o]=null:i[o]=new s.T4(m,"")}else i[o]=null;else i[o]=new s.T4(c,"")}return new l.Tp(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}]),e}()},36756:function(e,t,n){"use strict";n.d(t,{N:function(){return i},P:function(){return h}});var i,r=n(15671),o=n(43144),a=n(85294),s=n(21577),l=n(20699),c=n(97290),u=n(38622),d=n(80133),h=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,null,[{key:"addCursorDown",value:function(e,t,n){for(var i=[],r=0,o=0,a=t.length;o<a;o++){var c=t[o];i[r++]=new s.Vi(c.modelState,c.viewState),i[r++]=n?s.Vi.fromModelState(l.o.translateDown(e.cursorConfig,e.model,c.modelState)):s.Vi.fromViewState(l.o.translateDown(e.cursorConfig,e,c.viewState))}return i}},{key:"addCursorUp",value:function(e,t,n){for(var i=[],r=0,o=0,a=t.length;o<a;o++){var c=t[o];i[r++]=new s.Vi(c.modelState,c.viewState),i[r++]=n?s.Vi.fromModelState(l.o.translateUp(e.cursorConfig,e.model,c.modelState)):s.Vi.fromViewState(l.o.translateUp(e.cursorConfig,e,c.viewState))}return i}},{key:"moveToBeginningOfLine",value:function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r];i[r]=this._moveToLineStart(e,a,n)}return i}},{key:"_moveToLineStart",value:function(e,t,n){var i=t.viewState.position.column,r=i===t.modelState.position.column,o=t.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(o);return r||i===a?this._moveToLineStartByModel(e,t,n):this._moveToLineStartByView(e,t,n)}},{key:"_moveToLineStartByView",value:function(e,t,n){return s.Vi.fromViewState(l.o.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,n))}},{key:"_moveToLineStartByModel",value:function(e,t,n){return s.Vi.fromModelState(l.o.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,n))}},{key:"moveToEndOfLine",value:function(e,t,n,i){for(var r=[],o=0,a=t.length;o<a;o++){var s=t[o];r[o]=this._moveToLineEnd(e,s,n,i)}return r}},{key:"_moveToLineEnd",value:function(e,t,n,i){var r=t.viewState.position,o=e.getLineMaxColumn(r.lineNumber),a=r.column===o,s=t.modelState.position,l=e.model.getLineMaxColumn(s.lineNumber),c=o-r.column===l-s.column;return a||c?this._moveToLineEndByModel(e,t,n,i):this._moveToLineEndByView(e,t,n,i)}},{key:"_moveToLineEndByView",value:function(e,t,n,i){return s.Vi.fromViewState(l.o.moveToEndOfLine(e.cursorConfig,e,t.viewState,n,i))}},{key:"_moveToLineEndByModel",value:function(e,t,n,i){return s.Vi.fromModelState(l.o.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,n,i))}},{key:"expandLineSelection",value:function(e,t){for(var n=[],i=0,r=t.length;i<r;i++){var o=t[i],a=o.modelState.selection.startLineNumber,l=e.model.getLineCount(),c=o.modelState.selection.endLineNumber,h=void 0;c===l?h=e.model.getLineMaxColumn(l):(c++,h=1),n[i]=s.Vi.fromModelState(new s.rS(new d.e(a,1,a,1),0,new u.L(c,h),0))}return n}},{key:"moveToBeginningOfBuffer",value:function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r];i[r]=s.Vi.fromModelState(l.o.moveToBeginningOfBuffer(e.cursorConfig,e.model,a.modelState,n))}return i}},{key:"moveToEndOfBuffer",value:function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r];i[r]=s.Vi.fromModelState(l.o.moveToEndOfBuffer(e.cursorConfig,e.model,a.modelState,n))}return i}},{key:"selectAll",value:function(e,t){var n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return s.Vi.fromModelState(new s.rS(new d.e(1,1,1,1),0,new u.L(n,i),0))}},{key:"line",value:function(e,t,n,i,r){var o=e.model.validatePosition(i),a=r?e.coordinatesConverter.validateViewPosition(new u.L(r.lineNumber,r.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);if(!n||!t.modelState.hasSelection()){var l=e.model.getLineCount(),c=o.lineNumber+1,h=1;return c>l&&(c=l,h=e.model.getLineMaxColumn(c)),s.Vi.fromModelState(new s.rS(new d.e(o.lineNumber,1,c,h),0,new u.L(c,h),0))}var f=t.modelState.selectionStart.getStartPosition().lineNumber;if(o.lineNumber<f)return s.Vi.fromViewState(t.viewState.move(t.modelState.hasSelection(),a.lineNumber,1,0));if(o.lineNumber>f){var p=e.getLineCount(),g=a.lineNumber+1,v=1;return g>p&&(g=p,v=e.getLineMaxColumn(g)),s.Vi.fromViewState(t.viewState.move(t.modelState.hasSelection(),g,v,0))}var m=t.modelState.selectionStart.getEndPosition();return s.Vi.fromModelState(t.modelState.move(t.modelState.hasSelection(),m.lineNumber,m.column,0))}},{key:"word",value:function(e,t,n,i){var r=e.model.validatePosition(i);return s.Vi.fromModelState(c.w.word(e.cursorConfig,e.model,t.modelState,n,r))}},{key:"cancelSelection",value:function(e,t){if(!t.modelState.hasSelection())return new s.Vi(t.modelState,t.viewState);var n=t.viewState.position.lineNumber,i=t.viewState.position.column;return s.Vi.fromViewState(new s.rS(new d.e(n,i,n,i),0,new u.L(n,i),0))}},{key:"moveTo",value:function(e,t,n,i,r){var o=e.model.validatePosition(i),a=r?e.coordinatesConverter.validateViewPosition(new u.L(r.lineNumber,r.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);return s.Vi.fromViewState(t.viewState.move(n,a.lineNumber,a.column,0))}},{key:"simpleMove",value:function(e,t,n,i,r,o){switch(n){case 0:return 4===o?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,r);case 1:return 4===o?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,r);case 2:return 2===o?this._moveUpByViewLines(e,t,i,r):this._moveUpByModelLines(e,t,i,r);case 3:return 2===o?this._moveDownByViewLines(e,t,i,r):this._moveDownByModelLines(e,t,i,r);case 4:return 2===o?t.map((function(t){return s.Vi.fromViewState(l.o.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,i))})):t.map((function(t){return s.Vi.fromModelState(l.o.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,i))}));case 5:return 2===o?t.map((function(t){return s.Vi.fromViewState(l.o.moveToNextBlankLine(e.cursorConfig,e,t.viewState,i))})):t.map((function(t){return s.Vi.fromModelState(l.o.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,i))}));case 6:return this._moveToViewMinColumn(e,t,i);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 8:return this._moveToViewCenterColumn(e,t,i);case 9:return this._moveToViewMaxColumn(e,t,i);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,i);default:return null}}},{key:"viewportMove",value:function(e,t,n,i,r){var o=e.getCompletelyVisibleViewRange(),a=e.coordinatesConverter.convertViewRangeToModelRange(o);switch(n){case 11:var s=this._firstLineNumberInRange(e.model,a,r),l=e.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(e,t[0],i,s,l)];case 13:var c=this._lastLineNumberInRange(e.model,a,r),u=e.model.getLineFirstNonWhitespaceColumn(c);return[this._moveToModelPosition(e,t[0],i,c,u)];case 12:var d=Math.round((a.startLineNumber+a.endLineNumber)/2),h=e.model.getLineFirstNonWhitespaceColumn(d);return[this._moveToModelPosition(e,t[0],i,d,h)];case 14:for(var f=[],p=0,g=t.length;p<g;p++){var v=t[p];f[p]=this.findPositionInViewportIfOutside(e,v,o,i)}return f;default:return null}}},{key:"findPositionInViewportIfOutside",value:function(e,t,n,i){var r,o=t.viewState.position.lineNumber;if(n.startLineNumber<=o&&o<=n.endLineNumber-1)return new s.Vi(t.modelState,t.viewState);r=o>n.endLineNumber-1?n.endLineNumber-1:o<n.startLineNumber?n.startLineNumber:o;var a=l.o.vertical(e.cursorConfig,e,o,t.viewState.position.column,t.viewState.leftoverVisibleColumns,r,!1);return s.Vi.fromViewState(t.viewState.move(i,a.lineNumber,a.column,a.leftoverVisibleColumns))}},{key:"_firstLineNumberInRange",value:function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.min(t.endLineNumber,i+n-1)}},{key:"_lastLineNumberInRange",value:function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.max(i,t.endLineNumber-n+1)}},{key:"_moveLeft",value:function(e,t,n,i){return t.map((function(t){return s.Vi.fromViewState(l.o.moveLeft(e.cursorConfig,e,t.viewState,n,i))}))}},{key:"_moveHalfLineLeft",value:function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r],c=a.viewState.position.lineNumber,u=Math.round(e.getLineContent(c).length/2);i[r]=s.Vi.fromViewState(l.o.moveLeft(e.cursorConfig,e,a.viewState,n,u))}return i}},{key:"_moveRight",value:function(e,t,n,i){return t.map((function(t){return s.Vi.fromViewState(l.o.moveRight(e.cursorConfig,e,t.viewState,n,i))}))}},{key:"_moveHalfLineRight",value:function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r],c=a.viewState.position.lineNumber,u=Math.round(e.getLineContent(c).length/2);i[r]=s.Vi.fromViewState(l.o.moveRight(e.cursorConfig,e,a.viewState,n,u))}return i}},{key:"_moveDownByViewLines",value:function(e,t,n,i){for(var r=[],o=0,a=t.length;o<a;o++){var c=t[o];r[o]=s.Vi.fromViewState(l.o.moveDown(e.cursorConfig,e,c.viewState,n,i))}return r}},{key:"_moveDownByModelLines",value:function(e,t,n,i){for(var r=[],o=0,a=t.length;o<a;o++){var c=t[o];r[o]=s.Vi.fromModelState(l.o.moveDown(e.cursorConfig,e.model,c.modelState,n,i))}return r}},{key:"_moveUpByViewLines",value:function(e,t,n,i){for(var r=[],o=0,a=t.length;o<a;o++){var c=t[o];r[o]=s.Vi.fromViewState(l.o.moveUp(e.cursorConfig,e,c.viewState,n,i))}return r}},{key:"_moveUpByModelLines",value:function(e,t,n,i){for(var r=[],o=0,a=t.length;o<a;o++){var c=t[o];r[o]=s.Vi.fromModelState(l.o.moveUp(e.cursorConfig,e.model,c.modelState,n,i))}return r}},{key:"_moveToViewPosition",value:function(e,t,n,i,r){return s.Vi.fromViewState(t.viewState.move(n,i,r,0))}},{key:"_moveToModelPosition",value:function(e,t,n,i,r){return s.Vi.fromModelState(t.modelState.move(n,i,r,0))}},{key:"_moveToViewMinColumn",value:function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r],s=a.viewState.position.lineNumber,l=e.getLineMinColumn(s);i[r]=this._moveToViewPosition(e,a,n,s,l)}return i}},{key:"_moveToViewFirstNonWhitespaceColumn",value:function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r],s=a.viewState.position.lineNumber,l=e.getLineFirstNonWhitespaceColumn(s);i[r]=this._moveToViewPosition(e,a,n,s,l)}return i}},{key:"_moveToViewCenterColumn",value:function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r],s=a.viewState.position.lineNumber,l=Math.round((e.getLineMaxColumn(s)+e.getLineMinColumn(s))/2);i[r]=this._moveToViewPosition(e,a,n,s,l)}return i}},{key:"_moveToViewMaxColumn",value:function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r],s=a.viewState.position.lineNumber,l=e.getLineMaxColumn(s);i[r]=this._moveToViewPosition(e,a,n,s,l)}return i}},{key:"_moveToViewLastNonWhitespaceColumn",value:function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r],s=a.viewState.position.lineNumber,l=e.getLineLastNonWhitespaceColumn(s);i[r]=this._moveToViewPosition(e,a,n,s,l)}return i}}]),e}();!function(e){e.description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!a.Kn(e))return!1;var t=e;return!!a.HD(t.to)&&(!(!a.o8(t.select)&&!a.jn(t.select))&&(!(!a.o8(t.by)&&!a.HD(t.by))&&!(!a.o8(t.value)&&!a.hj(t.value))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=function(t){if(!t.to)return null;var n;switch(t.to){case e.RawDirection.Left:n=0;break;case e.RawDirection.Right:n=1;break;case e.RawDirection.Up:n=2;break;case e.RawDirection.Down:n=3;break;case e.RawDirection.PrevBlankLine:n=4;break;case e.RawDirection.NextBlankLine:n=5;break;case e.RawDirection.WrappedLineStart:n=6;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:n=7;break;case e.RawDirection.WrappedLineColumnCenter:n=8;break;case e.RawDirection.WrappedLineEnd:n=9;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:n=10;break;case e.RawDirection.ViewPortTop:n=11;break;case e.RawDirection.ViewPortBottom:n=13;break;case e.RawDirection.ViewPortCenter:n=12;break;case e.RawDirection.ViewPortIfOutside:n=14;break;default:return null}var i=0;switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Character:i=3;break;case e.RawUnit.HalfLine:i=4}return{direction:n,unit:i,select:!!t.select,value:t.value||1}}}(i||(i={}))},20699:function(e,t,n){"use strict";n.d(t,{o:function(){return h}});var i=n(43144),r=n(15671),o=n(21577),a=n(29349),s=n(38622),l=n(80133),c=n(32377),u=n(79355),d=(0,i.Z)((function e(t,n,i){(0,r.Z)(this,e),this._cursorPositionBrand=void 0,this.lineNumber=t,this.column=n,this.leftoverVisibleColumns=i})),h=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,null,[{key:"leftPosition",value:function(e,t){if(t.column>e.getLineMinColumn(t.lineNumber))return t.delta(void 0,-c.HO(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){var n=t.lineNumber-1;return new s.L(n,e.getLineMaxColumn(n))}return t}},{key:"leftPositionAtomicSoftTabs",value:function(e,t,n){if(t.column<=e.getLineIndentColumn(t.lineNumber)){var i=e.getLineMinColumn(t.lineNumber),r=e.getLineContent(t.lineNumber),o=u.l.atomicPosition(r,t.column-1,n,0);if(-1!==o&&o+1>=i)return new s.L(t.lineNumber,o+1)}return this.leftPosition(e,t)}},{key:"left",value:function(t,n,i){var r=t.stickyTabStops?e.leftPositionAtomicSoftTabs(n,i,t.tabSize):e.leftPosition(n,i);return new d(r.lineNumber,r.column,0)}},{key:"moveLeft",value:function(t,n,i,r,o){var a,s;if(i.hasSelection()&&!r)a=i.selection.startLineNumber,s=i.selection.startColumn;else{var l=i.position.delta(void 0,-(o-1)),c=n.normalizePosition(e.clipPositionColumn(l,n),0),u=e.left(t,n,c);a=u.lineNumber,s=u.column}return i.move(r,a,s,0)}},{key:"clipPositionColumn",value:function(t,n){return new s.L(t.lineNumber,e.clipRange(t.column,n.getLineMinColumn(t.lineNumber),n.getLineMaxColumn(t.lineNumber)))}},{key:"clipRange",value:function(e,t,n){return e<t?t:e>n?n:e}},{key:"rightPosition",value:function(e,t,n){return n<e.getLineMaxColumn(t)?n+=c.vH(e.getLineContent(t),n-1):t<e.getLineCount()&&(t+=1,n=e.getLineMinColumn(t)),new s.L(t,n)}},{key:"rightPositionAtomicSoftTabs",value:function(e,t,n,i,r){if(n<e.getLineIndentColumn(t)){var o=e.getLineContent(t),a=u.l.atomicPosition(o,n-1,i,1);if(-1!==a)return new s.L(t,a+1)}return this.rightPosition(e,t,n)}},{key:"right",value:function(t,n,i){var r=t.stickyTabStops?e.rightPositionAtomicSoftTabs(n,i.lineNumber,i.column,t.tabSize,t.indentSize):e.rightPosition(n,i.lineNumber,i.column);return new d(r.lineNumber,r.column,0)}},{key:"moveRight",value:function(t,n,i,r,o){var a,s;if(i.hasSelection()&&!r)a=i.selection.endLineNumber,s=i.selection.endColumn;else{var l=i.position.delta(void 0,o-1),c=n.normalizePosition(e.clipPositionColumn(l,n),1),u=e.right(t,n,c);a=u.lineNumber,s=u.column}return i.move(r,a,s,0)}},{key:"vertical",value:function(e,t,n,i,r,o,l,c){var u=a.i.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize)+r,h=t.getLineCount(),f=1===n&&1===i,p=n===h&&i===t.getLineMaxColumn(n),g=o<n?f:p;if((n=o)<1?(n=1,i=l?t.getLineMinColumn(n):Math.min(t.getLineMaxColumn(n),i)):n>h?(n=h,i=l?t.getLineMaxColumn(n):Math.min(t.getLineMaxColumn(n),i)):i=e.columnFromVisibleColumn(t,n,u),r=g?0:u-a.i.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),void 0!==c){var v=new s.L(n,i),m=t.normalizePosition(v,c);r+=i-m.column,n=m.lineNumber,i=m.column}return new d(n,i,r)}},{key:"down",value:function(e,t,n,i,r,o,a){return this.vertical(e,t,n,i,r,n+o,a,4)}},{key:"moveDown",value:function(t,n,i,r,o){var a,s;i.hasSelection()&&!r?(a=i.selection.endLineNumber,s=i.selection.endColumn):(a=i.position.lineNumber,s=i.position.column);var l=e.down(t,n,a,s,i.leftoverVisibleColumns,o,!0);return i.move(r,l.lineNumber,l.column,l.leftoverVisibleColumns)}},{key:"translateDown",value:function(t,n,i){var r=i.selection,a=e.down(t,n,r.selectionStartLineNumber,r.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),c=e.down(t,n,r.positionLineNumber,r.positionColumn,i.leftoverVisibleColumns,1,!1);return new o.rS(new l.e(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new s.L(c.lineNumber,c.column),c.leftoverVisibleColumns)}},{key:"up",value:function(e,t,n,i,r,o,a){return this.vertical(e,t,n,i,r,n-o,a,3)}},{key:"moveUp",value:function(t,n,i,r,o){var a,s;i.hasSelection()&&!r?(a=i.selection.startLineNumber,s=i.selection.startColumn):(a=i.position.lineNumber,s=i.position.column);var l=e.up(t,n,a,s,i.leftoverVisibleColumns,o,!0);return i.move(r,l.lineNumber,l.column,l.leftoverVisibleColumns)}},{key:"translateUp",value:function(t,n,i){var r=i.selection,a=e.up(t,n,r.selectionStartLineNumber,r.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),c=e.up(t,n,r.positionLineNumber,r.positionColumn,i.leftoverVisibleColumns,1,!1);return new o.rS(new l.e(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new s.L(c.lineNumber,c.column),c.leftoverVisibleColumns)}},{key:"_isBlankLine",value:function(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}},{key:"moveToPrevBlankLine",value:function(e,t,n,i){for(var r=n.position.lineNumber;r>1&&this._isBlankLine(t,r);)r--;for(;r>1&&!this._isBlankLine(t,r);)r--;return n.move(i,r,t.getLineMinColumn(r),0)}},{key:"moveToNextBlankLine",value:function(e,t,n,i){for(var r=t.getLineCount(),o=n.position.lineNumber;o<r&&this._isBlankLine(t,o);)o++;for(;o<r&&!this._isBlankLine(t,o);)o++;return n.move(i,o,t.getLineMinColumn(o),0)}},{key:"moveToBeginningOfLine",value:function(e,t,n,i){var r,o=n.position.lineNumber,a=t.getLineMinColumn(o),s=t.getLineFirstNonWhitespaceColumn(o)||a;return r=n.position.column===s?a:s,n.move(i,o,r,0)}},{key:"moveToEndOfLine",value:function(e,t,n,i,r){var o=n.position.lineNumber,a=t.getLineMaxColumn(o);return n.move(i,o,a,r?1073741824-a:0)}},{key:"moveToBeginningOfBuffer",value:function(e,t,n,i){return n.move(i,1,1,0)}},{key:"moveToEndOfBuffer",value:function(e,t,n,i){var r=t.getLineCount(),o=t.getLineMaxColumn(r);return n.move(i,r,o,0)}}]),e}()},28776:function(e,t,n){"use strict";n.d(t,{Nu:function(){return N},u6:function(){return E},g_:function(){return T}});var i=n(11752),r=n(61120),o=n(60136),a=n(27277),s=n(37762),l=n(15671),c=n(43144),u=n(14173),d=n(32377),h=n(76469),f=n(55634),p=n(80133),g=n(23145),v=function(){function e(t,n,i){(0,l.Z)(this,e),this._range=t,this._charBeforeSelection=n,this._charAfterSelection=i}return(0,c.Z)(e,[{key:"getEditOperations",value:function(e,t){t.addTrackedEditOperation(new p.e(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new p.e(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}},{key:"computeCursorState",value:function(e,t){var n=t.getInverseEditOperations(),i=n[0].range,r=n[1].range;return new g.Y(i.endLineNumber,i.endColumn,r.endLineNumber,r.endColumn-this._charAfterSelection.length)}}]),e}(),m=function(){function e(t,n,i){(0,l.Z)(this,e),this._position=t,this._text=n,this._charAfter=i}return(0,c.Z)(e,[{key:"getEditOperations",value:function(e,t){t.addTrackedEditOperation(new p.e(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}},{key:"computeCursorState",value:function(e,t){var n=t.getInverseEditOperations()[0].range;return new g.Y(n.endLineNumber,n.startColumn,n.endLineNumber,n.endColumn-this._charAfter.length)}}]),e}(),y=n(21577),_=n(3109),b=n(38622),C=n(67517),S=n(29662),w=n(89575),k=n(9651),x=n(4048),E=function(){function e(){(0,l.Z)(this,e)}return(0,c.Z)(e,null,[{key:"indent",value:function(e,t,n){if(null===t||null===n)return[];for(var i=[],r=0,o=n.length;r<o;r++)i[r]=new f.U(n[r],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return i}},{key:"outdent",value:function(e,t,n){for(var i=[],r=0,o=n.length;r<o;r++)i[r]=new f.U(n[r],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return i}},{key:"shiftIndent",value:function(e,t,n){return n=n||1,f.U.shiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)}},{key:"unshiftIndent",value:function(e,t,n){return n=n||1,f.U.unshiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)}},{key:"_distributedPaste",value:function(e,t,n,i){for(var r=[],o=0,a=n.length;o<a;o++)r[o]=new h.T4(n[o],i[o]);return new y.Tp(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}},{key:"_simplePaste",value:function(e,t,n,i,r){for(var o=[],a=0,s=n.length;a<s;a++){var l=n[a],c=l.getPosition();if(r&&!l.isEmpty()&&(r=!1),r&&i.indexOf("\n")!==i.length-1&&(r=!1),r){var u=new p.e(c.lineNumber,1,c.lineNumber,1);o[a]=new h.hP(u,i,l,!0)}else o[a]=new h.T4(l,i)}return new y.Tp(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}},{key:"_distributePasteToCursors",value:function(e,t,n,i,r){if(i)return null;if(1===t.length)return null;if(r&&r.length===t.length)return r;if("spread"===e.multiCursorPaste){10===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1)),13===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1));var o=d.uq(n);if(o.length===t.length)return o}return null}},{key:"paste",value:function(e,t,n,i,r,o){var a=this._distributePasteToCursors(e,n,i,r,o);return a?(n=n.sort(p.e.compareRangesUsingStarts),this._distributedPaste(e,t,n,a)):this._simplePaste(e,t,n,i,r)}},{key:"_goodIndentForLine",value:function(t,n,i){var r=null,o="",a=(0,k.r7)(t.autoIndent,n,i,!1,t.languageConfigurationService);if(a)r=a.action,o=a.indentation;else if(i>1){var s;for(s=i-1;s>=1;s--){var l=n.getLineContent(s);if(d.ow(l)>=0)break}if(s<1)return null;var c=n.getLineMaxColumn(s),u=(0,x.A)(t.autoIndent,n,new p.e(s,c,s,c),t.languageConfigurationService);u&&(o=u.indentation+u.appendText)}return r&&(r===C.wU.Indent&&(o=e.shiftIndent(t,o)),r===C.wU.Outdent&&(o=e.unshiftIndent(t,o)),o=t.normalizeIndentation(o)),o||null}},{key:"_replaceJumpToNextIndent",value:function(e,t,n,i){var r="",o=n.getStartPosition();if(e.insertSpaces)for(var a=e.visibleColumnFromColumn(t,o),s=e.indentSize,l=s-a%s,c=0;c<l;c++)r+=" ";else r="\t";return new h.T4(n,r,i)}},{key:"tab",value:function(e,t,n){for(var i=[],r=0,o=n.length;r<o;r++){var a=n[r];if(a.isEmpty()){var s=t.getLineContent(a.startLineNumber);if(/^\s*$/.test(s)&&t.tokenization.isCheapToTokenize(a.startLineNumber)){var l=this._goodIndentForLine(e,t,a.startLineNumber);l=l||"\t";var c=e.normalizeIndentation(l);if(!s.startsWith(c)){i[r]=new h.T4(new p.e(a.startLineNumber,1,a.startLineNumber,s.length+1),c,!0);continue}}i[r]=this._replaceJumpToNextIndent(e,t,a,!0)}else{if(a.startLineNumber===a.endLineNumber){var u=t.getLineMaxColumn(a.startLineNumber);if(1!==a.startColumn||a.endColumn!==u){i[r]=this._replaceJumpToNextIndent(e,t,a,!1);continue}}i[r]=new f.U(a,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return i}},{key:"compositionType",value:function(e,t,n,i,r,o,a,s){var l=this,c=i.map((function(e){return l._compositionType(n,e,r,o,a,s)}));return new y.Tp(4,c,{shouldPushStackElementBefore:D(e,4),shouldPushStackElementAfter:!1})}},{key:"_compositionType",value:function(e,t,n,i,r,o){if(!t.isEmpty())return null;var a=t.getPosition(),s=Math.max(1,a.column-i),l=Math.min(e.getLineMaxColumn(a.lineNumber),a.column+r),c=new p.e(a.lineNumber,s,a.lineNumber,l);return e.getValueInRange(c)===n&&0===o?null:new h.Uo(c,n,0,o)}},{key:"_typeCommand",value:function(e,t,n){return n?new h.Sj(e,t,!0):new h.T4(e,t,!0)}},{key:"_enter",value:function(t,n,i,r){if(0===t.autoIndent)return e._typeCommand(r,"\n",i);if(!n.tokenization.isCheapToTokenize(r.getStartPosition().lineNumber)||1===t.autoIndent){var o=n.getLineContent(r.startLineNumber),a=d.V8(o).substring(0,r.startColumn-1);return e._typeCommand(r,"\n"+t.normalizeIndentation(a),i)}var s=(0,x.A)(t.autoIndent,n,r,t.languageConfigurationService);if(s){if(s.indentAction===C.wU.None)return e._typeCommand(r,"\n"+t.normalizeIndentation(s.indentation+s.appendText),i);if(s.indentAction===C.wU.Indent)return e._typeCommand(r,"\n"+t.normalizeIndentation(s.indentation+s.appendText),i);if(s.indentAction===C.wU.IndentOutdent){var l=t.normalizeIndentation(s.indentation),c=t.normalizeIndentation(s.indentation+s.appendText),u="\n"+c+"\n"+l;return i?new h.Sj(r,u,!0):new h.Uo(r,u,-1,c.length-l.length,!0)}if(s.indentAction===C.wU.Outdent){var f=e.unshiftIndent(t,s.indentation);return e._typeCommand(r,"\n"+t.normalizeIndentation(f+s.appendText),i)}}var p=n.getLineContent(r.startLineNumber),g=d.V8(p).substring(0,r.startColumn-1);if(t.autoIndent>=4){var v=(0,k.UF)(t.autoIndent,n,r,{unshiftIndent:function(n){return e.unshiftIndent(t,n)},shiftIndent:function(n){return e.shiftIndent(t,n)},normalizeIndentation:function(e){return t.normalizeIndentation(e)}},t.languageConfigurationService);if(v){var m=t.visibleColumnFromColumn(n,r.getEndPosition()),y=r.endColumn,_=n.getLineContent(r.endLineNumber),b=d.LC(_);if(r=b>=0?r.setEndPosition(r.endLineNumber,Math.max(r.endColumn,b+1)):r.setEndPosition(r.endLineNumber,n.getLineMaxColumn(r.endLineNumber)),i)return new h.Sj(r,"\n"+t.normalizeIndentation(v.afterEnter),!0);var S=0;return y<=b+1&&(t.insertSpaces||(m=Math.ceil(m/t.indentSize)),S=Math.min(m+1-t.normalizeIndentation(v.afterEnter).length-1,0)),new h.Uo(r,"\n"+t.normalizeIndentation(v.afterEnter),0,S,!0)}}return e._typeCommand(r,"\n"+t.normalizeIndentation(g),i)}},{key:"_isAutoIndentType",value:function(e,t,n){if(e.autoIndent<4)return!1;for(var i=0,r=n.length;i<r;i++)if(!t.tokenization.isCheapToTokenize(n[i].getEndPosition().lineNumber))return!1;return!0}},{key:"_runAutoIndentType",value:function(t,n,i,r){var o=(0,S.u0)(n,i.startLineNumber,i.startColumn),a=(0,k.$9)(t.autoIndent,n,i,r,{shiftIndent:function(n){return e.shiftIndent(t,n)},unshiftIndent:function(n){return e.unshiftIndent(t,n)}},t.languageConfigurationService);if(null===a)return null;if(a!==t.normalizeIndentation(o)){var s=n.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===s?e._typeCommand(new p.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),t.normalizeIndentation(a)+r,!1):e._typeCommand(new p.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),t.normalizeIndentation(a)+n.getLineContent(i.startLineNumber).substring(s-1,i.startColumn-1)+r,!1)}return null}},{key:"_isAutoClosingOvertype",value:function(e,t,n,i,r){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(r))return!1;for(var o=0,a=n.length;o<a;o++){var s=n[o];if(!s.isEmpty())return!1;var l=s.getPosition(),c=t.getLineContent(l.lineNumber);if(c.charAt(l.column-1)!==r)return!1;var u=(0,y.LN)(r);if(92===(l.column>2?c.charCodeAt(l.column-2):0)&&u)return!1;if("auto"===e.autoClosingOvertype){for(var d=!1,h=0,f=i.length;h<f;h++){var p=i[h];if(l.lineNumber===p.startLineNumber&&l.column===p.startColumn){d=!0;break}}if(!d)return!1}}return!0}},{key:"_runAutoClosingOvertype",value:function(e,t,n,i,r){for(var o=[],a=0,s=i.length;a<s;a++){var l=i[a].getPosition(),c=new p.e(l.lineNumber,l.column,l.lineNumber,l.column+1);o[a]=new h.T4(c,r)}return new y.Tp(4,o,{shouldPushStackElementBefore:D(e,4),shouldPushStackElementAfter:!1})}},{key:"_isBeforeClosingBrace",value:function(e,t){var n=t.charAt(0),i=e.autoClosingPairs.autoClosingPairsOpenByStart.get(n)||[],r=e.autoClosingPairs.autoClosingPairsCloseByStart.get(n)||[],o=i.some((function(e){return t.startsWith(e.open)})),a=r.some((function(e){return t.startsWith(e.close)}));return!o&&a}},{key:"_findAutoClosingPairOpen",value:function(e,t,n,i){var r=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(i);if(!r)return null;var o,a=null,l=(0,s.Z)(r);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(null===a||c.open.length>a.open.length){var u,d=!0,h=(0,s.Z)(n);try{for(h.s();!(u=h.n()).done;){var f=u.value;if(t.getValueInRange(new p.e(f.lineNumber,f.column-c.open.length+1,f.lineNumber,f.column))+i!==c.open){d=!1;break}}}catch(g){h.e(g)}finally{h.f()}d&&(a=c)}}}catch(g){l.e(g)}finally{l.f()}return a}},{key:"_findContainedAutoClosingPair",value:function(e,t){if(t.open.length<=1)return null;var n,i=t.close.charAt(t.close.length-1),r=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[],o=null,a=(0,s.Z)(r);try{for(a.s();!(n=a.n()).done;){var l=n.value;l.open!==t.open&&t.open.includes(l.open)&&t.close.endsWith(l.close)&&(!o||l.open.length>o.open.length)&&(o=l)}}catch(c){a.e(c)}finally{a.f()}return o}},{key:"_getAutoClosingPairClose",value:function(t,n,i,r,o){var a=(0,y.LN)(r),l=a?t.autoClosingQuotes:t.autoClosingBrackets,c=a?t.shouldAutoCloseBefore.quote:t.shouldAutoCloseBefore.bracket;if("never"===l)return null;var u,d=(0,s.Z)(i);try{for(d.s();!(u=d.n()).done;){if(!u.value.isEmpty())return null}}catch(Z){d.e(Z)}finally{d.f()}var h=i.map((function(e){var t=e.getPosition();return o?{lineNumber:t.lineNumber,beforeColumn:t.column-r.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}})),f=this._findAutoClosingPairOpen(t,n,h.map((function(e){return new b.L(e.lineNumber,e.beforeColumn)})),r);if(!f)return null;var p,g=this._findContainedAutoClosingPair(t,f),v=g?g.close:"",m=!0,C=(0,s.Z)(h);try{for(C.s();!(p=C.n()).done;){var S=p.value,k=S.lineNumber,x=S.beforeColumn,E=S.afterColumn,T=n.getLineContent(k),N=T.substring(0,x-1),I=T.substring(E-1);if(I.startsWith(v)||(m=!1),I.length>0){var D=I.charAt(0);if(!e._isBeforeClosingBrace(t,I)&&!c(D))return null}if(1===f.open.length&&("'"===r||'"'===r)&&"always"!==l){var L=(0,_.u)(t.wordSeparators);if(N.length>0){var O=N.charCodeAt(N.length-1);if(0===L.get(O))return null}}if(!n.tokenization.isCheapToTokenize(k))return null;n.tokenization.forceTokenization(k);var R=n.tokenization.getLineTokens(k),A=(0,w.wH)(R,x-1);if(!f.shouldAutoClose(A,x-A.firstCharOffset))return null;var M=f.findNeutralCharacter();if(M){var P=n.tokenization.getTokenTypeIfInsertingCharacter(k,x,M);if(!f.isOK(P))return null}}}catch(Z){C.e(Z)}finally{C.f()}return m?f.close.substring(0,f.close.length-v.length):f.close}},{key:"_runAutoClosingOpenCharType",value:function(e,t,n,i,r,o,a){for(var s=[],l=0,c=i.length;l<c;l++){var u=i[l];s[l]=new T(u,r,!o,a)}return new y.Tp(4,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}},{key:"_shouldSurroundChar",value:function(e,t){return(0,y.LN)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}},{key:"_isSurroundSelectionType",value:function(t,n,i,r){if(!e._shouldSurroundChar(t,r)||!t.surroundingPairs.hasOwnProperty(r))return!1;var o,a=(0,y.LN)(r),l=(0,s.Z)(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(c.isEmpty())return!1;for(var u=!0,d=c.startLineNumber;d<=c.endLineNumber;d++){var h=n.getLineContent(d),f=d===c.startLineNumber?c.startColumn-1:0,p=d===c.endLineNumber?c.endColumn-1:h.length,g=h.substring(f,p);if(/[^ \t]/.test(g)){u=!1;break}}if(u)return!1;if(a&&c.startLineNumber===c.endLineNumber&&c.startColumn+1===c.endColumn){var v=n.getValueInRange(c);if((0,y.LN)(v))return!1}}}catch(m){l.e(m)}finally{l.f()}return!0}},{key:"_runSurroundSelectionType",value:function(e,t,n,i,r){for(var o=[],a=0,s=i.length;a<s;a++){var l=i[a],c=t.surroundingPairs[r];o[a]=new v(l,r,c)}return new y.Tp(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}},{key:"_isTypeInterceptorElectricChar",value:function(e,t,n){return!(1!==n.length||!t.tokenization.isCheapToTokenize(n[0].getEndPosition().lineNumber))}},{key:"_typeInterceptorElectricChar",value:function(e,t,n,i,r){if(!t.electricChars.hasOwnProperty(r)||!i.isEmpty())return null;var o=i.getPosition();n.tokenization.forceTokenization(o.lineNumber);var a,s=n.tokenization.getLineTokens(o.lineNumber);try{a=t.onElectricCharacter(r,s,o.column)}catch(w){return(0,u.dL)(w),null}if(!a)return null;if(a.matchOpenBracket){var l=(s.getLineContent()+r).lastIndexOf(a.matchOpenBracket)+1,c=n.bracketPairs.findMatchingBracketUp(a.matchOpenBracket,{lineNumber:o.lineNumber,column:l},500);if(c){if(c.startLineNumber===o.lineNumber)return null;var f=n.getLineContent(c.startLineNumber),g=d.V8(f),v=t.normalizeIndentation(g),m=n.getLineContent(o.lineNumber),_=n.getLineFirstNonWhitespaceColumn(o.lineNumber)||o.column,b=v+m.substring(_-1,o.column-1)+r,C=new p.e(o.lineNumber,1,o.lineNumber,o.column),S=new h.T4(C,b);return new y.Tp(I(b,e),[S],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}},{key:"compositionEndWithInterceptors",value:function(t,n,i,r,o,a){if(!r)return null;var l,c=null,u=(0,s.Z)(r);try{for(u.s();!(l=u.n()).done;){var d=l.value;if(null===c)c=d.insertedText;else if(c!==d.insertedText)return null}}catch(R){u.e(R)}finally{u.f()}if(!c||1!==c.length)return null;var f,g=c,v=!1,_=(0,s.Z)(r);try{for(_.s();!(f=_.n()).done;){if(0!==f.value.deletedText.length){v=!0;break}}}catch(R){_.e(R)}finally{_.f()}if(v){if(!e._shouldSurroundChar(n,g)||!n.surroundingPairs.hasOwnProperty(g))return null;var b,C=(0,y.LN)(g),S=(0,s.Z)(r);try{for(S.s();!(b=S.n()).done;){var w=b.value;if(0!==w.deletedSelectionStart||w.deletedSelectionEnd!==w.deletedText.length)return null;if(/^[ \t]+$/.test(w.deletedText))return null;if(C&&(0,y.LN)(w.deletedText))return null}}catch(R){S.e(R)}finally{S.f()}var k,x=[],E=(0,s.Z)(o);try{for(E.s();!(k=E.n()).done;){var T=k.value;if(!T.isEmpty())return null;x.push(T.getPosition())}}catch(R){E.e(R)}finally{E.f()}if(x.length!==r.length)return null;for(var N=[],I=0,D=x.length;I<D;I++)N.push(new m(x[I],r[I].deletedText,g));return new y.Tp(4,N,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(n,i,o,a,g)){var L=o.map((function(e){return new h.T4(new p.e(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)}));return new y.Tp(4,L,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var O=this._getAutoClosingPairClose(n,i,o,g,!0);return null!==O?this._runAutoClosingOpenCharType(t,n,i,o,g,!0,O):null}},{key:"typeWithInterceptors",value:function(t,n,i,r,o,a,s){if(!t&&"\n"===s){for(var l=[],c=0,u=o.length;c<u;c++)l[c]=e._enter(i,r,!1,o[c]);return new y.Tp(4,l,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!t&&this._isAutoIndentType(i,r,o)){for(var d=[],f=!1,p=0,g=o.length;p<g;p++)if(d[p]=this._runAutoIndentType(i,r,o[p],s),!d[p]){f=!0;break}if(!f)return new y.Tp(4,d,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(i,r,o,a,s))return this._runAutoClosingOvertype(n,i,r,o,s);if(!t){var v=this._getAutoClosingPairClose(i,r,o,s,!1);if(v)return this._runAutoClosingOpenCharType(n,i,r,o,s,!1,v)}if(!t&&this._isSurroundSelectionType(i,r,o,s))return this._runSurroundSelectionType(n,i,r,o,s);if(!t&&this._isTypeInterceptorElectricChar(i,r,o)){var m=this._typeInterceptorElectricChar(n,i,r,o[0],s);if(m)return m}for(var _=[],b=0,C=o.length;b<C;b++)_[b]=new h.T4(o[b],s);var S=I(s,n);return new y.Tp(S,_,{shouldPushStackElementBefore:D(n,S),shouldPushStackElementAfter:!1})}},{key:"typeWithoutInterceptors",value:function(e,t,n,i,r){for(var o=[],a=0,s=i.length;a<s;a++)o[a]=new h.T4(i[a],r);var l=I(r,e);return new y.Tp(l,o,{shouldPushStackElementBefore:D(e,l),shouldPushStackElementAfter:!1})}},{key:"lineInsertBefore",value:function(e,t,n){if(null===t||null===n)return[];for(var i=[],r=0,o=n.length;r<o;r++){var a=n[r].positionLineNumber;if(1===a)i[r]=new h.Sj(new p.e(1,1,1,1),"\n");else{a--;var s=t.getLineMaxColumn(a);i[r]=this._enter(e,t,!1,new p.e(a,s,a,s))}}return i}},{key:"lineInsertAfter",value:function(e,t,n){if(null===t||null===n)return[];for(var i=[],r=0,o=n.length;r<o;r++){var a=n[r].positionLineNumber,s=t.getLineMaxColumn(a);i[r]=this._enter(e,t,!1,new p.e(a,s,a,s))}return i}},{key:"lineBreakInsert",value:function(e,t,n){for(var i=[],r=0,o=n.length;r<o;r++)i[r]=this._enter(e,t,!0,n[r]);return i}}]),e}(),T=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r,o){var a;return(0,l.Z)(this,n),(a=t.call(this,e,(r?i:"")+o,0,-o.length))._openCharacter=i,a._closeCharacter=o,a.closeCharacterRange=null,a.enclosingRange=null,a}return(0,c.Z)(n,[{key:"computeCursorState",value:function(e,t){var o=t.getInverseEditOperations()[0].range;return this.closeCharacterRange=new p.e(o.startLineNumber,o.endColumn-this._closeCharacter.length,o.endLineNumber,o.endColumn),this.enclosingRange=new p.e(o.startLineNumber,o.endColumn-this._openCharacter.length-this._closeCharacter.length,o.endLineNumber,o.endColumn),(0,i.Z)((0,r.Z)(n.prototype),"computeCursorState",this).call(this,e,t)}}]),n}(h.Uo),N=(0,c.Z)((function e(t,n,i,r,o,a){(0,l.Z)(this,e),this.deletedText=t,this.deletedSelectionStart=n,this.deletedSelectionEnd=i,this.insertedText=r,this.insertedSelectionStart=o,this.insertedSelectionEnd=a}));function I(e,t){return" "===e?5===t||6===t?6:5:4}function D(e,t){return!(!O(e)||O(t))||5!==e&&L(e)!==L(t)}function L(e){return 6===e||5===e?"space":e}function O(e){return 4===e||5===e||6===e}},97290:function(e,t,n){"use strict";n.d(t,{L:function(){return p},w:function(){return f}});var i=n(60136),r=n(27277),o=n(15671),a=n(43144),s=n(32377),l=n(21577),c=n(99046),u=n(3109),d=n(38622),h=n(80133),f=function(){function e(){(0,o.Z)(this,e)}return(0,a.Z)(e,null,[{key:"_createWord",value:function(e,t,n,i,r){return{start:i,end:r,wordType:t,nextCharClass:n}}},{key:"_findPreviousWordOnLine",value:function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(i,e,n)}},{key:"_doFindPreviousWordOnLine",value:function(e,t,n){for(var i=0,r=n.column-2;r>=0;r--){var o=e.charCodeAt(r),a=t.get(o);if(0===a){if(2===i)return this._createWord(e,i,a,r+1,this._findEndOfWord(e,t,i,r+1));i=1}else if(2===a){if(1===i)return this._createWord(e,i,a,r+1,this._findEndOfWord(e,t,i,r+1));i=2}else if(1===a&&0!==i)return this._createWord(e,i,a,r+1,this._findEndOfWord(e,t,i,r+1))}return 0!==i?this._createWord(e,i,1,0,this._findEndOfWord(e,t,i,0)):null}},{key:"_findEndOfWord",value:function(e,t,n,i){for(var r=e.length,o=i;o<r;o++){var a=e.charCodeAt(o),s=t.get(a);if(1===s)return o;if(1===n&&2===s)return o;if(2===n&&0===s)return o}return r}},{key:"_findNextWordOnLine",value:function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindNextWordOnLine(i,e,n)}},{key:"_doFindNextWordOnLine",value:function(e,t,n){for(var i=0,r=e.length,o=n.column-1;o<r;o++){var a=e.charCodeAt(o),s=t.get(a);if(0===s){if(2===i)return this._createWord(e,i,s,this._findStartOfWord(e,t,i,o-1),o);i=1}else if(2===s){if(1===i)return this._createWord(e,i,s,this._findStartOfWord(e,t,i,o-1),o);i=2}else if(1===s&&0!==i)return this._createWord(e,i,s,this._findStartOfWord(e,t,i,o-1),o)}return 0!==i?this._createWord(e,i,1,this._findStartOfWord(e,t,i,r-1),r):null}},{key:"_findStartOfWord",value:function(e,t,n,i){for(var r=i;r>=0;r--){var o=e.charCodeAt(r),a=t.get(o);if(1===a)return r+1;if(1===n&&2===a)return r+1;if(2===n&&0===a)return r+1}return 0}},{key:"moveWordLeft",value:function(t,n,i,r){var o=i.lineNumber,a=i.column;1===a&&o>1&&(o-=1,a=n.getLineMaxColumn(o));var s=e._findPreviousWordOnLine(t,n,new d.L(o,a));if(0===r)return new d.L(o,s?s.start+1:1);if(1===r)return s&&2===s.wordType&&s.end-s.start===1&&0===s.nextCharClass&&(s=e._findPreviousWordOnLine(t,n,new d.L(o,s.start+1))),new d.L(o,s?s.start+1:1);if(3===r){for(;s&&2===s.wordType;)s=e._findPreviousWordOnLine(t,n,new d.L(o,s.start+1));return new d.L(o,s?s.start+1:1)}return s&&a<=s.end+1&&(s=e._findPreviousWordOnLine(t,n,new d.L(o,s.start+1))),new d.L(o,s?s.end+1:1)}},{key:"_moveWordPartLeft",value:function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(1===t.column)return n>1?new d.L(n-1,e.getLineMaxColumn(n-1)):t;for(var r=e.getLineContent(n),o=t.column-1;o>1;o--){var a=r.charCodeAt(o-2),l=r.charCodeAt(o-1);if(95===a&&95!==l)return new d.L(n,o);if((s.mK(a)||s.T5(a))&&s.df(l))return new d.L(n,o);if(s.df(a)&&s.df(l)&&o+1<i){var c=r.charCodeAt(o);if(s.mK(c)||s.T5(c))return new d.L(n,o)}}return new d.L(n,1)}},{key:"moveWordRight",value:function(t,n,i,r){var o=i.lineNumber,a=i.column,s=!1;a===n.getLineMaxColumn(o)&&o<n.getLineCount()&&(s=!0,o+=1,a=1);var l=e._findNextWordOnLine(t,n,new d.L(o,a));if(2===r)l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=e._findNextWordOnLine(t,n,new d.L(o,l.end+1))),a=l?l.end+1:n.getLineMaxColumn(o);else if(3===r){for(s&&(a=0);l&&(2===l.wordType||l.start+1<=a);)l=e._findNextWordOnLine(t,n,new d.L(o,l.end+1));a=l?l.start+1:n.getLineMaxColumn(o)}else l&&!s&&a>=l.start+1&&(l=e._findNextWordOnLine(t,n,new d.L(o,l.end+1))),a=l?l.start+1:n.getLineMaxColumn(o);return new d.L(o,a)}},{key:"_moveWordPartRight",value:function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(t.column===i)return n<e.getLineCount()?new d.L(n+1,1):t;for(var r=e.getLineContent(n),o=t.column+1;o<i;o++){var a=r.charCodeAt(o-2),l=r.charCodeAt(o-1);if(95!==a&&95===l)return new d.L(n,o);if((s.mK(a)||s.T5(a))&&s.df(l))return new d.L(n,o);if(s.df(a)&&s.df(l)&&o+1<i){var c=r.charCodeAt(o);if(s.mK(c)||s.T5(c))return new d.L(n,o)}}return new d.L(n,i)}},{key:"_deleteWordLeftWhitespace",value:function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-2,r=s.ow(n,i);return r+1<i?new h.e(t.lineNumber,r+2,t.lineNumber,t.column):null}},{key:"deleteWordLeft",value:function(t,n){var i=t.wordSeparators,r=t.model,o=t.selection,a=t.whitespaceHeuristics;if(!o.isEmpty())return o;if(c.A.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,t.model,[t.selection],t.autoClosedCharacters)){var s=t.selection.getPosition();return new h.e(s.lineNumber,s.column-1,s.lineNumber,s.column+1)}var l=new d.L(o.positionLineNumber,o.positionColumn),u=l.lineNumber,f=l.column;if(1===u&&1===f)return null;if(a){var p=this._deleteWordLeftWhitespace(r,l);if(p)return p}var g=e._findPreviousWordOnLine(i,r,l);return 0===n?g?f=g.start+1:f>1?f=1:(u--,f=r.getLineMaxColumn(u)):(g&&f<=g.end+1&&(g=e._findPreviousWordOnLine(i,r,new d.L(u,g.start+1))),g?f=g.end+1:f>1?f=1:(u--,f=r.getLineMaxColumn(u))),new h.e(u,f,l.lineNumber,l.column)}},{key:"deleteInsideWord",value:function(e,t,n){if(!n.isEmpty())return n;var i=new d.L(n.positionLineNumber,n.positionColumn),r=this._deleteInsideWordWhitespace(t,i);return r||this._deleteInsideWordDetermineDeleteRange(e,t,i)}},{key:"_charAtIsWhitespace",value:function(e,t){var n=e.charCodeAt(t);return 32===n||9===n}},{key:"_deleteInsideWordWhitespace",value:function(e,t){var n=e.getLineContent(t.lineNumber),i=n.length;if(0===i)return null;var r=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(n,r))return null;var o=Math.min(t.column-1,i-1);if(!this._charAtIsWhitespace(n,o))return null;for(;r>0&&this._charAtIsWhitespace(n,r-1);)r--;for(;o+1<i&&this._charAtIsWhitespace(n,o+1);)o++;return new h.e(t.lineNumber,r+1,t.lineNumber,o+2)}},{key:"_deleteInsideWordDetermineDeleteRange",value:function(t,n,i){var r=this,o=n.getLineContent(i.lineNumber),a=o.length;if(0===a)return i.lineNumber>1?new h.e(i.lineNumber-1,n.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<n.getLineCount()?new h.e(i.lineNumber,1,i.lineNumber+1,1):new h.e(i.lineNumber,1,i.lineNumber,1);var s=function(e){return e.start+1<=i.column&&i.column<=e.end+1},l=function(e,t){return e=Math.min(e,i.column),t=Math.max(t,i.column),new h.e(i.lineNumber,e,i.lineNumber,t)},c=function(e){for(var t=e.start+1,n=e.end+1,i=!1;n-1<a&&r._charAtIsWhitespace(o,n-1);)i=!0,n++;if(!i)for(;t>1&&r._charAtIsWhitespace(o,t-2);)t--;return l(t,n)},u=e._findPreviousWordOnLine(t,n,i);if(u&&s(u))return c(u);var d=e._findNextWordOnLine(t,n,i);return d&&s(d)?c(d):u&&d?l(u.end+1,d.start+1):u?l(u.start+1,u.end+1):d?l(d.start+1,d.end+1):l(1,a+1)}},{key:"_deleteWordPartLeft",value:function(t,n){if(!n.isEmpty())return n;var i=n.getPosition(),r=e._moveWordPartLeft(t,i);return new h.e(i.lineNumber,i.column,r.lineNumber,r.column)}},{key:"_findFirstNonWhitespaceChar",value:function(e,t){for(var n=e.length,i=t;i<n;i++){var r=e.charAt(i);if(" "!==r&&"\t"!==r)return i}return n}},{key:"_deleteWordRightWhitespace",value:function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-1,r=this._findFirstNonWhitespaceChar(n,i);return i+1<r?new h.e(t.lineNumber,t.column,t.lineNumber,r+1):null}},{key:"deleteWordRight",value:function(t,n){var i=t.wordSeparators,r=t.model,o=t.selection,a=t.whitespaceHeuristics;if(!o.isEmpty())return o;var s=new d.L(o.positionLineNumber,o.positionColumn),l=s.lineNumber,c=s.column,u=r.getLineCount(),f=r.getLineMaxColumn(l);if(l===u&&c===f)return null;if(a){var p=this._deleteWordRightWhitespace(r,s);if(p)return p}var g=e._findNextWordOnLine(i,r,s);return 2===n?g?c=g.end+1:c<f||l===u?c=f:(l++,c=(g=e._findNextWordOnLine(i,r,new d.L(l,1)))?g.start+1:r.getLineMaxColumn(l)):(g&&c>=g.start+1&&(g=e._findNextWordOnLine(i,r,new d.L(l,g.end+1))),g?c=g.start+1:c<f||l===u?c=f:(l++,c=(g=e._findNextWordOnLine(i,r,new d.L(l,1)))?g.start+1:r.getLineMaxColumn(l))),new h.e(l,c,s.lineNumber,s.column)}},{key:"_deleteWordPartRight",value:function(t,n){if(!n.isEmpty())return n;var i=n.getPosition(),r=e._moveWordPartRight(t,i);return new h.e(i.lineNumber,i.column,r.lineNumber,r.column)}},{key:"_createWordAtPosition",value:function(e,t,n){var i=new h.e(t,n.start+1,t,n.end+1);return{word:e.getValueInRange(i),startColumn:i.startColumn,endColumn:i.endColumn}}},{key:"getWordAtPosition",value:function(t,n,i){var r=(0,u.u)(n),o=e._findPreviousWordOnLine(r,t,i);if(o&&1===o.wordType&&o.start<=i.column-1&&i.column-1<=o.end)return e._createWordAtPosition(t,i.lineNumber,o);var a=e._findNextWordOnLine(r,t,i);return a&&1===a.wordType&&a.start<=i.column-1&&i.column-1<=a.end?e._createWordAtPosition(t,i.lineNumber,a):null}},{key:"word",value:function(t,n,i,r,o){var a,s,c,f,p=(0,u.u)(t.wordSeparators),g=e._findPreviousWordOnLine(p,n,o),v=e._findNextWordOnLine(p,n,o);if(!r)return g&&1===g.wordType&&g.start<=o.column-1&&o.column-1<=g.end?(a=g.start+1,s=g.end+1):v&&1===v.wordType&&v.start<=o.column-1&&o.column-1<=v.end?(a=v.start+1,s=v.end+1):(a=g?g.end+1:1,s=v?v.start+1:n.getLineMaxColumn(o.lineNumber)),new l.rS(new h.e(o.lineNumber,a,o.lineNumber,s),0,new d.L(o.lineNumber,s),0);g&&1===g.wordType&&g.start<o.column-1&&o.column-1<g.end?(c=g.start+1,f=g.end+1):v&&1===v.wordType&&v.start<o.column-1&&o.column-1<v.end?(c=v.start+1,f=v.end+1):(c=o.column,f=o.column);var m,y=o.lineNumber;if(i.selectionStart.containsPosition(o))m=i.selectionStart.endColumn;else if(o.isBeforeOrEqual(i.selectionStart.getStartPosition())){m=c;var _=new d.L(y,m);i.selectionStart.containsPosition(_)&&(m=i.selectionStart.endColumn)}else{m=f;var b=new d.L(y,m);i.selectionStart.containsPosition(b)&&(m=i.selectionStart.startColumn)}return i.move(!0,y,m,0)}}]),e}(),p=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,null,[{key:"deleteWordPartLeft",value:function(e){var t=g([f.deleteWordLeft(e,0),f.deleteWordLeft(e,2),f._deleteWordPartLeft(e.model,e.selection)]);return t.sort(h.e.compareRangesUsingEnds),t[2]}},{key:"deleteWordPartRight",value:function(e){var t=g([f.deleteWordRight(e,0),f.deleteWordRight(e,2),f._deleteWordPartRight(e.model,e.selection)]);return t.sort(h.e.compareRangesUsingStarts),t[0]}},{key:"moveWordPartLeft",value:function(e,t,n){var i=g([f.moveWordLeft(e,t,n,0),f.moveWordLeft(e,t,n,2),f._moveWordPartLeft(t,n)]);return i.sort(d.L.compare),i[2]}},{key:"moveWordPartRight",value:function(e,t,n){var i=g([f.moveWordRight(e,t,n,0),f.moveWordRight(e,t,n,2),f._moveWordPartRight(t,n)]);return i.sort(d.L.compare),i[0]}}]),n}(f);function g(e){return e.filter((function(e){return Boolean(e)}))}},21577:function(e,t,n){"use strict";n.d(t,{LM:function(){return g},LN:function(){return C},Tp:function(){return b},Vi:function(){return v},rS:function(){return _}});var i=n(37762),r=n(15671),o=n(43144),a=n(38622),s=n(80133),l=n(23145),c=n(89575),u=n(29349),d=n(35643),h=function(){return!0},f=function(){return!1},p=function(e){return" "===e||"\t"===e},g=function(){function e(t,n,o,a){(0,r.Z)(this,e),this.languageConfigurationService=a,this._cursorMoveConfigurationBrand=void 0,this._languageId=t;var s=o.options,l=s.get(133);this.readOnly=s.get(83),this.tabSize=n.tabSize,this.indentSize=n.indentSize,this.insertSpaces=n.insertSpaces,this.stickyTabStops=s.get(106),this.lineHeight=s.get(61),this.pageSize=Math.max(1,Math.floor(l.height/this.lineHeight)-2),this.useTabStops=s.get(118),this.wordSeparators=s.get(119),this.emptySelectionClipboard=s.get(33),this.copyWithSyntaxHighlighting=s.get(21),this.multiCursorMergeOverlapping=s.get(71),this.multiCursorPaste=s.get(73),this.autoClosingBrackets=s.get(5),this.autoClosingQuotes=s.get(8),this.autoClosingDelete=s.get(6),this.autoClosingOvertype=s.get(7),this.autoSurround=s.get(11),this.autoIndent=s.get(9),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(t,this.autoClosingQuotes),bracket:this._getShouldAutoClose(t,this.autoClosingBrackets)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(t).getAutoClosingPairs();var c=this.languageConfigurationService.getLanguageConfiguration(t).getSurroundingPairs();if(c){var u,d=(0,i.Z)(c);try{for(d.s();!(u=d.n()).done;){var h=u.value;this.surroundingPairs[h.open]=h.close}}catch(f){d.e(f)}finally{d.f()}}}return(0,o.Z)(e,[{key:"electricChars",get:function(){var e;if(!this._electricChars){this._electricChars={};var t=null===(e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)||void 0===e?void 0:e.getElectricCharacters();if(t){var n,r=(0,i.Z)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;this._electricChars[o]=!0}}catch(a){r.e(a)}finally{r.f()}}}return this._electricChars}},{key:"onElectricCharacter",value:function(e,t,n){var i=(0,c.wH)(t,n-1),r=this.languageConfigurationService.getLanguageConfiguration(i.languageId).electricCharacter;return r?r.onElectricCharacter(e,i,n-i.firstCharOffset):null}},{key:"normalizeIndentation",value:function(e){return(0,d.x)(e,this.indentSize,this.insertSpaces)}},{key:"_getShouldAutoClose",value:function(e,t){switch(t){case"beforeWhitespace":return p;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e);case"always":return h;case"never":return f}}},{key:"_getLanguageDefinedShouldAutoClose",value:function(e){var t=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet();return function(e){return-1!==t.indexOf(e)}}},{key:"visibleColumnFromColumn",value:function(e,t){return u.i.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}},{key:"columnFromVisibleColumn",value:function(e,t,n){var i=u.i.columnFromVisibleColumn(e.getLineContent(t),n,this.tabSize),r=e.getLineMinColumn(t);if(i<r)return r;var o=e.getLineMaxColumn(t);return i>o?o:i}}],[{key:"shouldRecreate",value:function(e){return e.hasChanged(133)||e.hasChanged(119)||e.hasChanged(33)||e.hasChanged(71)||e.hasChanged(73)||e.hasChanged(5)||e.hasChanged(8)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(118)||e.hasChanged(61)||e.hasChanged(83)}}]),e}(),v=function(){function e(t,n){(0,r.Z)(this,e),this._cursorStateBrand=void 0,this.modelState=t,this.viewState=n}return(0,o.Z)(e,[{key:"equals",value:function(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}],[{key:"fromModelState",value:function(e){return new m(e)}},{key:"fromViewState",value:function(e){return new y(e)}},{key:"fromModelSelection",value:function(t){var n=l.Y.liftSelection(t),i=new _(s.e.fromPositions(n.getSelectionStart()),0,n.getPosition(),0);return e.fromModelState(i)}},{key:"fromModelSelections",value:function(e){for(var t=[],n=0,i=e.length;n<i;n++)t[n]=this.fromModelSelection(e[n]);return t}}]),e}(),m=(0,o.Z)((function e(t){(0,r.Z)(this,e),this.modelState=t,this.viewState=null})),y=(0,o.Z)((function e(t){(0,r.Z)(this,e),this.modelState=null,this.viewState=t})),_=function(){function e(t,n,i,o){(0,r.Z)(this,e),this._singleCursorStateBrand=void 0,this.selectionStart=t,this.selectionStartLeftoverVisibleColumns=n,this.position=i,this.leftoverVisibleColumns=o,this.selection=e._computeSelection(this.selectionStart,this.position)}return(0,o.Z)(e,[{key:"equals",value:function(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}},{key:"hasSelection",value:function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}},{key:"move",value:function(t,n,i,r){return t?new e(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new a.L(n,i),r):new e(new s.e(n,i,n,i),r,new a.L(n,i),r)}}],[{key:"_computeSelection",value:function(e,t){return e.isEmpty()||!t.isBeforeOrEqual(e.getStartPosition())?l.Y.fromPositions(e.getStartPosition(),t):l.Y.fromPositions(e.getEndPosition(),t)}}]),e}(),b=(0,o.Z)((function e(t,n,i){(0,r.Z)(this,e),this._editOperationResultBrand=void 0,this.type=t,this.commands=n,this.shouldPushStackElementBefore=i.shouldPushStackElementBefore,this.shouldPushStackElementAfter=i.shouldPushStackElementAfter}));function C(e){return"'"===e||'"'===e||"`"===e}},52070:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var i=n(15671),r=n(43144),o=function(){function e(t,n,r,o,a,s){(0,i.Z)(this,e),this.id=t,this.label=n,this.alias=r,this._precondition=o,this._run=a,this._contextKeyService=s}return(0,r.Z)(e,[{key:"isSupported",value:function(){return this._contextKeyService.contextMatchesRules(this._precondition)}},{key:"run",value:function(){return this.isSupported()?this._run():Promise.resolve(void 0)}}]),e}()},70956:function(e,t,n){"use strict";n.d(t,{g:function(){return i}});var i={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},67245:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var i,r=n(27722),o=n(34509);!function(e){e.editorSimpleInput=new o.uy("editorSimpleInput",!1,!0),e.editorTextFocus=new o.uy("editorTextFocus",!1,r.NC("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new o.uy("editorFocus",!1,r.NC("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new o.uy("textInputFocus",!1,r.NC("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new o.uy("editorReadonly",!1,r.NC("editorReadonly","Whether the editor is read only")),e.inDiffEditor=new o.uy("inDiffEditor",!1,r.NC("inDiffEditor","Whether the context is a diff editor")),e.columnSelection=new o.uy("editorColumnSelection",!1,r.NC("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new o.uy("editorHasSelection",!1,r.NC("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new o.uy("editorHasMultipleSelections",!1,r.NC("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new o.uy("editorTabMovesFocus",!1,r.NC("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInWalkThroughSnippet=new o.uy("isInEmbeddedEditor",!1,!0),e.canUndo=new o.uy("canUndo",!1,!0),e.canRedo=new o.uy("canRedo",!1,!0),e.hoverVisible=new o.uy("editorHoverVisible",!1,r.NC("editorHoverVisible","Whether the editor hover is visible")),e.inCompositeEditor=new o.uy("inCompositeEditor",void 0,r.NC("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new o.uy("editorLangId","",r.NC("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new o.uy("editorHasCompletionItemProvider",!1,r.NC("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new o.uy("editorHasCodeActionsProvider",!1,r.NC("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new o.uy("editorHasCodeLensProvider",!1,r.NC("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new o.uy("editorHasDefinitionProvider",!1,r.NC("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new o.uy("editorHasDeclarationProvider",!1,r.NC("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new o.uy("editorHasImplementationProvider",!1,r.NC("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new o.uy("editorHasTypeDefinitionProvider",!1,r.NC("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new o.uy("editorHasHoverProvider",!1,r.NC("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new o.uy("editorHasDocumentHighlightProvider",!1,r.NC("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new o.uy("editorHasDocumentSymbolProvider",!1,r.NC("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new o.uy("editorHasReferenceProvider",!1,r.NC("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new o.uy("editorHasRenameProvider",!1,r.NC("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new o.uy("editorHasSignatureHelpProvider",!1,r.NC("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new o.uy("editorHasInlayHintsProvider",!1,r.NC("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new o.uy("editorHasDocumentFormattingProvider",!1,r.NC("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new o.uy("editorHasDocumentSelectionFormattingProvider",!1,r.NC("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new o.uy("editorHasMultipleDocumentFormattingProvider",!1,r.NC("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new o.uy("editorHasMultipleDocumentSelectionFormattingProvider",!1,r.NC("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))}(i||(i={}))},56124:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var i=n(15671),r=n(43144),o=function(){function e(){(0,i.Z)(this,e)}return(0,r.Z)(e,null,[{key:"getLanguageId",value:function(e){return(255&e)>>>0}},{key:"getTokenType",value:function(e){return(768&e)>>>8}},{key:"containsBalancedBrackets",value:function(e){return 0!==(1024&e)}},{key:"getFontStyle",value:function(e){return(30720&e)>>>11}},{key:"getForeground",value:function(e){return(16744448&e)>>>15}},{key:"getBackground",value:function(e){return(4278190080&e)>>>24}},{key:"getClassNameFromMetadata",value:function(e){var t="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}},{key:"getInlineStyleFromMetadata",value:function(e,t){var n=this.getForeground(e),i=this.getFontStyle(e),r="color: ".concat(t[n],";");1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;");var o="";return 4&i&&(o+=" underline"),8&i&&(o+=" line-through"),o&&(r+="text-decoration:".concat(o,";")),r}},{key:"getPresentationFromMetadata",value:function(e){var t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}]),e}()},12905:function(e,t,n){"use strict";n.d(t,{mY:function(){return T},gX:function(){return i},MY:function(){return a},DI:function(){return x},AD:function(){return I},gl:function(){return N},bw:function(){return r},WW:function(){return o},uZ:function(){return s},WU:function(){return w},RW:function(){return D},hG:function(){return k},vx:function(){return E}});var i,r,o,a,s,l=n(15671),c=n(43144),u=n(2801),d=n(72112),h=n(80133),f=n(11752),p=n(61120),g=n(60136),v=n(27277),m=n(74165),y=n(73097),_=n(11860),b=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},C=function(){function e(){(0,l.Z)(this,e),this._map=new Map,this._factories=new Map,this._onDidChange=new y.Q5,this.onDidChange=this._onDidChange.event,this._colorMap=null}return(0,c.Z)(e,[{key:"fire",value:function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}},{key:"register",value:function(e,t){var n=this;return this._map.set(e,t),this.fire([e]),(0,_.OF)((function(){n._map.get(e)===t&&(n._map.delete(e),n.fire([e]))}))}},{key:"registerFactory",value:function(e,t){var n,i=this;null===(n=this._factories.get(e))||void 0===n||n.dispose();var r=new S(this,e,t);return this._factories.set(e,r),(0,_.OF)((function(){var t=i._factories.get(e);t&&t===r&&(i._factories.delete(e),t.dispose())}))}},{key:"getOrCreate",value:function(e){return b(this,void 0,void 0,(0,m.Z)().mark((function t(){var n,i;return(0,m.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=this.get(e))){t.next=3;break}return t.abrupt("return",n);case 3:if((i=this._factories.get(e))&&!i.isResolved){t.next=6;break}return t.abrupt("return",null);case 6:return t.next=8,i.resolve();case 8:return t.abrupt("return",this.get(e));case 9:case"end":return t.stop()}}),t,this)})))}},{key:"get",value:function(e){return this._map.get(e)||null}},{key:"isResolved",value:function(e){if(this.get(e))return!0;var t=this._factories.get(e);return!(t&&!t.isResolved)}},{key:"setColorMap",value:function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}},{key:"getColorMap",value:function(){return this._colorMap}},{key:"getDefaultBackground",value:function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}]),e}(),S=function(e){(0,g.Z)(n,e);var t=(0,v.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this))._registry=e,o._languageId=i,o._factory=r,o._isDisposed=!1,o._resolvePromise=null,o._isResolved=!1,o}return(0,c.Z)(n,[{key:"isResolved",get:function(){return this._isResolved}},{key:"dispose",value:function(){this._isDisposed=!0,(0,f.Z)((0,p.Z)(n.prototype),"dispose",this).call(this)}},{key:"resolve",value:function(){return b(this,void 0,void 0,(0,m.Z)().mark((function e(){return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._resolvePromise||(this._resolvePromise=this._create()),e.abrupt("return",this._resolvePromise);case 2:case"end":return e.stop()}}),e,this)})))}},{key:"_create",value:function(){return b(this,void 0,void 0,(0,m.Z)().mark((function e(){var t;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve(this._factory.createTokenizationSupport());case 2:t=e.sent,this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t));case 5:case"end":return e.stop()}}),e,this)})))}}]),n}(_.JT),w=function(){function e(t,n,i){(0,l.Z)(this,e),this._tokenBrand=void 0,this.offset=t,this.type=n,this.language=i}return(0,c.Z)(e,[{key:"toString",value:function(){return"("+this.offset+", "+this.type+")"}}]),e}(),k=(0,c.Z)((function e(t,n){(0,l.Z)(this,e),this._tokenizationResultBrand=void 0,this.tokens=t,this.endState=n})),x=(0,c.Z)((function e(t,n){(0,l.Z)(this,e),this._encodedTokenizationResultBrand=void 0,this.tokens=t,this.endState=n}));function E(e){return e&&d.o.isUri(e.uri)&&h.e.isIRange(e.range)&&(h.e.isIRange(e.originSelectionRange)||h.e.isIRange(e.targetSelectionRange))}!function(e){var t=new Map;t.set(0,u.lA.symbolMethod),t.set(1,u.lA.symbolFunction),t.set(2,u.lA.symbolConstructor),t.set(3,u.lA.symbolField),t.set(4,u.lA.symbolVariable),t.set(5,u.lA.symbolClass),t.set(6,u.lA.symbolStruct),t.set(7,u.lA.symbolInterface),t.set(8,u.lA.symbolModule),t.set(9,u.lA.symbolProperty),t.set(10,u.lA.symbolEvent),t.set(11,u.lA.symbolOperator),t.set(12,u.lA.symbolUnit),t.set(13,u.lA.symbolValue),t.set(15,u.lA.symbolEnum),t.set(14,u.lA.symbolConstant),t.set(15,u.lA.symbolEnum),t.set(16,u.lA.symbolEnumMember),t.set(17,u.lA.symbolKeyword),t.set(27,u.lA.symbolSnippet),t.set(18,u.lA.symbolText),t.set(19,u.lA.symbolColor),t.set(20,u.lA.symbolFile),t.set(21,u.lA.symbolReference),t.set(22,u.lA.symbolCustomColor),t.set(23,u.lA.symbolFolder),t.set(24,u.lA.symbolTypeParameter),t.set(25,u.lA.account),t.set(26,u.lA.issues),e.toIcon=function(e){var n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=u.lA.symbolProperty),n};var 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",27),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),e.fromString=function(e,t){var i=n.get(e);return"undefined"!==typeof i||t||(i=9),i}}(i||(i={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(r||(r={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(o||(o={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(a||(a={})),function(e){var t=new Map;t.set(0,u.lA.symbolFile),t.set(1,u.lA.symbolModule),t.set(2,u.lA.symbolNamespace),t.set(3,u.lA.symbolPackage),t.set(4,u.lA.symbolClass),t.set(5,u.lA.symbolMethod),t.set(6,u.lA.symbolProperty),t.set(7,u.lA.symbolField),t.set(8,u.lA.symbolConstructor),t.set(9,u.lA.symbolEnum),t.set(10,u.lA.symbolInterface),t.set(11,u.lA.symbolFunction),t.set(12,u.lA.symbolVariable),t.set(13,u.lA.symbolConstant),t.set(14,u.lA.symbolString),t.set(15,u.lA.symbolNumber),t.set(16,u.lA.symbolBoolean),t.set(17,u.lA.symbolArray),t.set(18,u.lA.symbolObject),t.set(19,u.lA.symbolKey),t.set(20,u.lA.symbolNull),t.set(21,u.lA.symbolEnumMember),t.set(22,u.lA.symbolStruct),t.set(23,u.lA.symbolEvent),t.set(24,u.lA.symbolOperator),t.set(25,u.lA.symbolTypeParameter),e.toIcon=function(e){var n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=u.lA.symbolProperty),n}}(s||(s={}));var T,N,I=(0,c.Z)((function e(t){(0,l.Z)(this,e),this.value=t}));I.Comment=new I("comment"),I.Imports=new I("imports"),I.Region=new I("region"),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(T||(T={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(N||(N={}));var D=new C},9651:function(e,t,n){"use strict";n.d(t,{$9:function(){return d},UF:function(){return u},n8:function(){return c},r7:function(){return l},tI:function(){return h}});var i=n(32377),r=n(67517),o=n(89575),a=n(29662);function s(e,t,n){var i=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){var r,o=-1;for(r=t-1;r>=1;r--){if(e.tokenization.getLanguageIdAtPosition(r,0)!==i)return o;var a=e.getLineContent(r);if(!n.shouldIgnore(a)&&!/^\s+$/.test(a)&&""!==a)return r;o=r}}return-1}function l(e,t,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4?arguments[4]:void 0;if(e<4)return null;var l=a.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!l)return null;if(n<=1)return{indentation:"",action:null};var c=s(t,n,l);if(c<0)return null;if(c<1)return{indentation:"",action:null};var u=t.getLineContent(c);if(l.shouldIncrease(u)||l.shouldIndentNextLine(u))return{indentation:i.V8(u),action:r.wU.Indent,line:c};if(l.shouldDecrease(u))return{indentation:i.V8(u),action:null,line:c};if(1===c)return{indentation:i.V8(t.getLineContent(c)),action:null,line:c};var d=c-1,h=l.getIndentMetadata(t.getLineContent(d));if(!(3&h)&&4&h){for(var f=0,p=d-1;p>0;p--)if(!l.shouldIndentNextLine(t.getLineContent(p))){f=p;break}return{indentation:i.V8(t.getLineContent(f+1)),action:null,line:f+1}}if(o)return{indentation:i.V8(t.getLineContent(c)),action:null,line:c};for(var g=c;g>0;g--){var v=t.getLineContent(g);if(l.shouldIncrease(v))return{indentation:i.V8(v),action:r.wU.Indent,line:g};if(l.shouldIndentNextLine(v)){for(var m=0,y=g-1;y>0;y--)if(!l.shouldIndentNextLine(t.getLineContent(g))){m=y;break}return{indentation:i.V8(t.getLineContent(m+1)),action:null,line:m+1}}if(l.shouldDecrease(v))return{indentation:i.V8(v),action:null,line:g}}return{indentation:i.V8(t.getLineContent(1)),action:null,line:1}}function c(e,t,n,o,a,s){if(e<4)return null;var c=s.getLanguageConfiguration(n);if(!c)return null;var u=s.getLanguageConfiguration(n).indentRulesSupport;if(!u)return null;var d=l(e,t,o,void 0,s),h=t.getLineContent(o);if(d){var f=d.line;if(void 0!==f){var p=c.onEnter(e,"",t.getLineContent(f),"");if(p){var g=i.V8(t.getLineContent(f));return p.removeText&&(g=g.substring(0,g.length-p.removeText)),p.indentAction===r.wU.Indent||p.indentAction===r.wU.IndentOutdent?g=a.shiftIndent(g):p.indentAction===r.wU.Outdent&&(g=a.unshiftIndent(g)),u.shouldDecrease(h)&&(g=a.unshiftIndent(g)),p.appendText&&(g+=p.appendText),i.V8(g)}}return u.shouldDecrease(h)?d.action===r.wU.Indent?d.indentation:a.unshiftIndent(d.indentation):d.action===r.wU.Indent?a.shiftIndent(d.indentation):d.indentation}return null}function u(e,t,n,s,c){if(e<4)return null;t.tokenization.forceTokenization(n.startLineNumber);var u,d,h=t.tokenization.getLineTokens(n.startLineNumber),f=(0,o.wH)(h,n.startColumn-1),p=f.getLineContent(),g=!1;(f.firstCharOffset>0&&h.getLanguageId(0)!==f.languageId?(g=!0,u=p.substr(0,n.startColumn-1-f.firstCharOffset)):u=h.getLineContent().substring(0,n.startColumn-1),n.isEmpty())?d=p.substr(n.startColumn-1-f.firstCharOffset):d=(0,a.n2)(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-f.firstCharOffset);var v=c.getLanguageConfiguration(f.languageId).indentRulesSupport;if(!v)return null;var m=u,y=i.V8(u),_={tokenization:{getLineTokens:function(e){return t.tokenization.getLineTokens(e)},getLanguageId:function(){return t.getLanguageId()},getLanguageIdAtPosition:function(e,n){return t.getLanguageIdAtPosition(e,n)}},getLineContent:function(e){return e===n.startLineNumber?m:t.getLineContent(e)}},b=i.V8(h.getLineContent()),C=l(e,_,n.startLineNumber+1,void 0,c);if(!C){var S=g?b:y;return{beforeEnter:S,afterEnter:S}}var w=g?b:C.indentation;return C.action===r.wU.Indent&&(w=s.shiftIndent(w)),v.shouldDecrease(d)&&(w=s.unshiftIndent(w)),{beforeEnter:g?b:y,afterEnter:w}}function d(e,t,n,i,o,s){if(e<4)return null;var c=(0,a.n2)(t,n.startLineNumber,n.startColumn);if(c.firstCharOffset)return null;var u=s.getLanguageConfiguration(c.languageId).indentRulesSupport;if(!u)return null;var d,h=c.getLineContent(),f=h.substr(0,n.startColumn-1-c.firstCharOffset);n.isEmpty()?d=h.substr(n.startColumn-1-c.firstCharOffset):d=(0,a.n2)(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-c.firstCharOffset);if(!u.shouldDecrease(f+d)&&u.shouldDecrease(f+i+d)){var p=l(e,t,n.startLineNumber,!1,s);if(!p)return null;var g=p.indentation;return p.action!==r.wU.Indent&&(g=o.unshiftIndent(g)),g}return null}function h(e,t,n){var i=n.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return i?t<1||t>e.getLineCount()?null:i.getIndentMetadata(e.getLineContent(t)):null}},4048:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i=n(67517),r=n(29662);function o(e,t,n,o){var a=(0,r.n2)(t,n.startLineNumber,n.startColumn),s=o.getLanguageConfiguration(a.languageId);if(!s)return null;var l,c=a.getLineContent(),u=c.substr(0,n.startColumn-1-a.firstCharOffset);n.isEmpty()?l=c.substr(n.startColumn-1-a.firstCharOffset):l=(0,r.n2)(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-a.firstCharOffset);var d="";if(n.startLineNumber>1&&0===a.firstCharOffset){var h=(0,r.n2)(t,n.startLineNumber-1);h.languageId===a.languageId&&(d=h.getLineContent())}var f=s.onEnter(e,d,u,l);if(!f)return null;var p=f.indentAction,g=f.appendText,v=f.removeText||0;g?p===i.wU.Indent&&(g="\t"+g):g=p===i.wU.Indent||p===i.wU.IndentOutdent?"\t":"";var m=(0,r.u0)(t,n.startLineNumber,n.startColumn);return v&&(m=m.substring(0,m.length-v)),{indentAction:p,appendText:g,removeText:v,indentation:m}}},72762:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});var i=(0,n(36888).yh)("languageService")},67517:function(e,t,n){"use strict";n.d(t,{V6:function(){return s},c$:function(){return l},wU:function(){return i}});var i,r=n(37762),o=n(15671),a=n(43144);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(i||(i={}));var s=function(){function e(t){if((0,o.Z)(this,e),this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=t.open,this.close=t.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(t.notIn))for(var n=0,i=t.notIn.length;n<i;n++){switch(t.notIn[n]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}return(0,a.Z)(e,[{key:"isOK",value:function(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}},{key:"shouldAutoClose",value:function(e,t){if(0===e.getTokenCount())return!0;var n=e.findTokenIndexAtOffset(t-2),i=e.getStandardTokenType(n);return this.isOK(i)}},{key:"_findNeutralCharacterInRange",value:function(e,t){for(var n=e;n<=t;n++){var i=String.fromCharCode(n);if(!this.open.includes(i)&&!this.close.includes(i))return i}return null}},{key:"findNeutralCharacter",value:function(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}]),e}(),l=(0,a.Z)((function e(t){(0,o.Z)(this,e),this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;var n,i=(0,r.Z)(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;c(this.autoClosingPairsOpenByStart,a.open.charAt(0),a),c(this.autoClosingPairsOpenByEnd,a.open.charAt(a.open.length-1),a),c(this.autoClosingPairsCloseByStart,a.close.charAt(0),a),c(this.autoClosingPairsCloseByEnd,a.close.charAt(a.close.length-1),a),1===a.close.length&&1===a.open.length&&c(this.autoClosingPairsCloseSingleChar,a.close,a)}}catch(s){i.e(s)}finally{i.f()}}));function c(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}},29662:function(e,t,n){"use strict";n.d(t,{c_:function(){return F},u0:function(){return j},n2:function(){return V}});var i=n(37762),r=n(29439),o=n(60136),a=n(27277),s=n(15671),l=n(43144),c=n(73097),u=n(11860),d=n(32377),h=n(37591),f=n(67517),p=n(89575),g=function(){function e(t){if((0,s.Z)(this,e),t.autoClosingPairs?this._autoClosingPairs=t.autoClosingPairs.map((function(e){return new f.V6(e)})):t.brackets?this._autoClosingPairs=t.brackets.map((function(e){return new f.V6({open:e[0],close:e[1]})})):this._autoClosingPairs=[],t.__electricCharacterSupport&&t.__electricCharacterSupport.docComment){var n=t.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new f.V6({open:n.open,close:n.close||""}))}this._autoCloseBefore="string"===typeof t.autoCloseBefore?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}return(0,l.Z)(e,[{key:"getAutoClosingPairs",value:function(){return this._autoClosingPairs}},{key:"getAutoCloseBeforeSet",value:function(){return this._autoCloseBefore}},{key:"getSurroundingPairs",value:function(){return this._surroundingPairs}}]),e}();g.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t";var v=n(29671),m=n(20598),y=function(){function e(t){(0,s.Z)(this,e),this._richEditBrackets=t}return(0,l.Z)(e,[{key:"getElectricCharacters",value:function(){var e=[];if(this._richEditBrackets){var t,n=(0,i.Z)(this._richEditBrackets.brackets);try{for(n.s();!(t=n.n()).done;){var r,o=t.value,a=(0,i.Z)(o.close);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=s.charAt(s.length-1);e.push(l)}}catch(c){a.e(c)}finally{a.f()}}}catch(c){n.e(c)}finally{n.f()}}return(0,v.EB)(e)}},{key:"onElectricCharacter",value:function(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;var i=t.findTokenIndexAtOffset(n-1);if((0,p.Bu)(t.getStandardTokenType(i)))return null;var r=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,n-1)+e,a=m.Vr.findPrevBracketInRange(r,1,o,0,o.length);if(!a)return null;var s=o.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[s])return null;var l=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:s}:null}}]),e}();function _(e){return e.global&&(e.lastIndex=0),!0}var b=function(){function e(t){(0,s.Z)(this,e),this._indentationRules=t}return(0,l.Z)(e,[{key:"shouldIncrease",value:function(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&_(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}},{key:"shouldDecrease",value:function(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&_(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}},{key:"shouldIndentNextLine",value:function(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&_(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}},{key:"shouldIgnore",value:function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&_(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}},{key:"getIndentMetadata",value:function(e){var t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}]),e}(),C=n(14173),S=function(){function e(t){var n=this;(0,s.Z)(this,e),(t=t||{}).brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach((function(t){var i=e._createOpenBracketRegExp(t[0]),r=e._createCloseBracketRegExp(t[1]);i&&r&&n._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:r})})),this._regExpRules=t.onEnterRules||[]}return(0,l.Z)(e,[{key:"onEnter",value:function(e,t,n,i){if(e>=3)for(var r=0,o=this._regExpRules.length;r<o;r++){var a=this._regExpRules[r];if([{reg:a.beforeText,text:n},{reg:a.afterText,text:i},{reg:a.previousLineText,text:t}].every((function(e){return!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text))})))return a.action}if(e>=2&&n.length>0&&i.length>0)for(var s=0,l=this._brackets.length;s<l;s++){var c=this._brackets[s];if(c.openRegExp.test(n)&&c.closeRegExp.test(i))return{indentAction:f.wU.IndentOutdent}}if(e>=2&&n.length>0)for(var u=0,d=this._brackets.length;u<d;u++){if(this._brackets[u].openRegExp.test(n))return{indentAction:f.wU.Indent}}return null}}],[{key:"_createOpenBracketRegExp",value:function(t){var n=d.ec(t);return/\B/.test(n.charAt(0))||(n="\\b"+n),n+="\\s*$",e._safeRegExp(n)}},{key:"_createCloseBracketRegExp",value:function(t){var n=d.ec(t);return/\B/.test(n.charAt(n.length-1))||(n+="\\b"),n="^\\s*"+n,e._safeRegExp(n)}},{key:"_safeRegExp",value:function(e){try{return new RegExp(e)}catch(t){return(0,C.dL)(t),null}}}]),e}(),w=n(36888),k=n(87984),x=n(72762),E=n(77896),T=n(24092),N=n(93433),I=n(15887),D=function(){function e(t,n){var o,a=this;(0,s.Z)(this,e),this.languageId=t,o=n.colorizedBracketPairs?L(n.colorizedBracketPairs.map((function(e){return[e[0],e[1]]}))):n.brackets?L(n.brackets.map((function(e){return[e[0],e[1]]})).filter((function(e){return!("<"===e[0]&&">"===e[1])}))):[];var l,c=new I.b((function(e){var t=new Set;return{info:new R(a,e,t),closing:t}})),u=new I.b((function(e){var t=new Set;return{info:new A(a,e,t),opening:t}})),d=(0,i.Z)(o);try{for(d.s();!(l=d.n()).done;){var h=(0,r.Z)(l.value,2),f=h[0],p=h[1],g=c.get(f),v=u.get(p);g.closing.add(v.info),v.opening.add(g.info)}}catch(m){d.e(m)}finally{d.f()}this._openingBrackets=new Map((0,N.Z)(c.cachedValues).map((function(e){var t=(0,r.Z)(e,2);return[t[0],t[1].info]}))),this._closingBrackets=new Map((0,N.Z)(u.cachedValues).map((function(e){var t=(0,r.Z)(e,2);return[t[0],t[1].info]})))}return(0,l.Z)(e,[{key:"openingBrackets",get:function(){return(0,N.Z)(this._openingBrackets.values())}},{key:"closingBrackets",get:function(){return(0,N.Z)(this._closingBrackets.values())}},{key:"getOpeningBracketInfo",value:function(e){return this._openingBrackets.get(e)}},{key:"getClosingBracketInfo",value:function(e){return this._closingBrackets.get(e)}},{key:"getBracketInfo",value:function(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}]),e}();function L(e){return e.filter((function(e){var t=(0,r.Z)(e,2),n=t[0],i=t[1];return""!==n&&""!==i}))}var O=function(){function e(t,n){(0,s.Z)(this,e),this.config=t,this.bracketText=n}return(0,l.Z)(e,[{key:"languageId",get:function(){return this.config.languageId}}]),e}(),R=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r){var o;return(0,s.Z)(this,n),(o=t.call(this,e,i)).openedBrackets=r,o.isOpeningBracket=!0,o}return(0,l.Z)(n)}(O),A=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r){var o;return(0,s.Z)(this,n),(o=t.call(this,e,i)).closedBrackets=r,o.isOpeningBracket=!1,o}return(0,l.Z)(n,[{key:"closes",value:function(e){if(e.languageId===this.languageId&&e.config!==this.config)throw new C.he("Brackets from different language configuration cannot be used.");return this.closedBrackets.has(e)}},{key:"getClosedBrackets",value:function(){return(0,N.Z)(this.closedBrackets)}}]),n}(O),M=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},P=function(e,t){return function(n,i){t(n,i,e)}},Z=function(){function e(t){(0,s.Z)(this,e),this.languageId=t}return(0,l.Z)(e,[{key:"affects",value:function(e){return!this.languageId||this.languageId===e}}]),e}(),F=(0,w.yh)("languageConfigurationService"),B=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,o){var a;(0,s.Z)(this,n),(a=t.call(this)).configurationService=e,a.languageService=o,a._registry=a._register(new Y),a.onDidChangeEmitter=a._register(new c.Q5),a.onDidChange=a.onDidChangeEmitter.event,a.configurations=new Map;var l=new Set(Object.values(H));return a._register(a.configurationService.onDidChangeConfiguration((function(e){var t=e.change.keys.some((function(e){return l.has(e)})),n=e.change.overrides.filter((function(e){var t=(0,r.Z)(e,2);t[0];return t[1].some((function(e){return l.has(e)}))})).map((function(e){return(0,r.Z)(e,1)[0]}));if(t)a.configurations.clear(),a.onDidChangeEmitter.fire(new Z(void 0));else{var o,s=(0,i.Z)(n);try{for(s.s();!(o=s.n()).done;){var c=o.value;a.languageService.isRegisteredLanguageId(c)&&(a.configurations.delete(c),a.onDidChangeEmitter.fire(new Z(c)))}}catch(u){s.e(u)}finally{s.f()}}}))),a._register(a._registry.onDidChange((function(e){a.configurations.delete(e.languageId),a.onDidChangeEmitter.fire(new Z(e.languageId))}))),a}return(0,l.Z)(n,[{key:"register",value:function(e,t,n){return this._registry.register(e,t,n)}},{key:"getLanguageConfiguration",value:function(e){var t=this.configurations.get(e);return t||(t=function(e,t,n,i){var r=t.getLanguageConfiguration(e);if(!r){if(!i.isRegisteredLanguageId(e))throw new Error('Language id "'.concat(e,'" is not configured nor known'));r=new q(e,{})}var o=function(e,t){var n=t.getValue(H.brackets,{overrideIdentifier:e}),i=t.getValue(H.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:z(n),colorizedBracketPairs:z(i)}}(r.languageId,n),a=U([r.underlyingConfig,o]);return new q(r.languageId,a)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}}]),n}(u.JT);B=M([P(0,k.Ui),P(1,x.O)],B);var H={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function z(e){if(Array.isArray(e))return e.map((function(e){if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((function(e){return!!e}))}function j(e,t,n){var i=e.getLineContent(t),r=d.V8(i);return r.length>n-1&&(r=r.substring(0,n-1)),r}function V(e,t,n){e.tokenization.forceTokenization(t);var i=e.tokenization.getLineTokens(t),r="undefined"===typeof n?e.getLineMaxColumn(t)-1:n-1;return(0,p.wH)(i,r)}var W=function(){function e(t){(0,s.Z)(this,e),this.languageId=t,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}return(0,l.Z)(e,[{key:"register",value:function(e,t){var n=this,i=new G(e,t,++this._order);return this._entries.push(i),this._resolved=null,(0,u.OF)((function(){for(var e=0;e<n._entries.length;e++)if(n._entries[e]===i){n._entries.splice(e,1),n._resolved=null;break}}))}},{key:"getResolvedConfiguration",value:function(){if(!this._resolved){var e=this._resolve();e&&(this._resolved=new q(this.languageId,e))}return this._resolved}},{key:"_resolve",value:function(){return 0===this._entries.length?null:(this._entries.sort(G.cmp),U(this._entries.map((function(e){return e.configuration}))))}}]),e}();function U(e){var t,n={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0},r=(0,i.Z)(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;n={comments:o.comments||n.comments,brackets:o.brackets||n.brackets,wordPattern:o.wordPattern||n.wordPattern,indentationRules:o.indentationRules||n.indentationRules,onEnterRules:o.onEnterRules||n.onEnterRules,autoClosingPairs:o.autoClosingPairs||n.autoClosingPairs,surroundingPairs:o.surroundingPairs||n.surroundingPairs,autoCloseBefore:o.autoCloseBefore||n.autoCloseBefore,folding:o.folding||n.folding,colorizedBracketPairs:o.colorizedBracketPairs||n.colorizedBracketPairs,__electricCharacterSupport:o.__electricCharacterSupport||n.__electricCharacterSupport}}}catch(a){r.e(a)}finally{r.f()}return n}var G=function(){function e(t,n,i){(0,s.Z)(this,e),this.configuration=t,this.priority=n,this.order=i}return(0,l.Z)(e,null,[{key:"cmp",value:function(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}]),e}(),K=(0,l.Z)((function e(t){(0,s.Z)(this,e),this.languageId=t})),Y=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,s.Z)(this,n),(e=t.call(this))._entries=new Map,e._onDidChange=e._register(new c.Q5),e.onDidChange=e._onDidChange.event,e._register(e.register(T.bd,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0)),e}return(0,l.Z)(n,[{key:"register",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this._entries.get(e);r||(r=new W(e),this._entries.set(e,r));var o=r.register(t,i);return this._onDidChange.fire(new K(e)),(0,u.OF)((function(){o.dispose(),n._onDidChange.fire(new K(e))}))}},{key:"getLanguageConfiguration",value:function(e){var t=this._entries.get(e);return(null===t||void 0===t?void 0:t.getResolvedConfiguration())||null}}]),n}(u.JT),q=function(){function e(t,n){(0,s.Z)(this,e),this.languageId=t,this.underlyingConfig=n,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new S(this.underlyingConfig):null,this.comments=e._handleComments(this.underlyingConfig),this.characterPair=new g(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||h.Af,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new b(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new D(t,this.underlyingConfig)}return(0,l.Z)(e,[{key:"getWordDefinition",value:function(){return(0,h.eq)(this.wordDefinition)}},{key:"brackets",get:function(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new m.EA(this.languageId,this.underlyingConfig.brackets)),this._brackets}},{key:"electricCharacter",get:function(){return this._electricCharacter||(this._electricCharacter=new y(this.brackets)),this._electricCharacter}},{key:"onEnter",value:function(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}},{key:"getAutoClosingPairs",value:function(){return new f.c$(this.characterPair.getAutoClosingPairs())}},{key:"getAutoCloseBeforeSet",value:function(){return this.characterPair.getAutoCloseBeforeSet()}},{key:"getSurroundingPairs",value:function(){return this.characterPair.getSurroundingPairs()}}],[{key:"_handleComments",value:function(e){var t=e.comments;if(!t)return null;var n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){var i=(0,r.Z)(t.blockComment,2),o=i[0],a=i[1];n.blockCommentStartToken=o,n.blockCommentEndToken=a}return n}}]),e}();(0,E.z)(F,B)},24092:function(e,t,n){"use strict";n.d(t,{bd:function(){return d},dQ:function(){return u}});var i=n(15671),r=n(43144),o=n(27722),a=n(73097),s=n(69077),l=n(62684),c=n(50818),u=new(function(){function e(){(0,i.Z)(this,e),this._onDidChangeLanguages=new a.Q5,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}return(0,r.Z)(e,[{key:"registerLanguage",value:function(e){var t=this;return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:function(){for(var n=0,i=t._languages.length;n<i;n++)if(t._languages[n]===e)return void t._languages.splice(n,1)}}}},{key:"getLanguages",value:function(){return this._languages}}]),e}());s.B.add("editor.modesRegistry",u);var d="plaintext";u.registerLanguage({id:d,extensions:[".txt"],aliases:[o.NC("plainText.alias","Plain Text"),"text"],mimetypes:[l.v.text]}),s.B.as(c.IP.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},38584:function(e,t,n){"use strict";n.d(t,{Dy:function(){return l},Ri:function(){return s},TJ:function(){return a}});var i=n(15671),r=n(43144),o=n(12905),a=new(function(){function e(){(0,i.Z)(this,e)}return(0,r.Z)(e,[{key:"clone",value:function(){return this}},{key:"equals",value:function(e){return this===e}}]),e}());function s(e,t){return new o.hG([new o.WU(0,"",e)],t)}function l(e,t){var n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e<<0|2<<24)>>>0,new o.DI(n,null===t?a:t)}},89575:function(e,t,n){"use strict";n.d(t,{Bu:function(){return s},wH:function(){return o}});var i=n(15671),r=n(43144);function o(e,t){for(var n=e.getCount(),i=e.findTokenIndexAtOffset(t),r=e.getLanguageId(i),o=i;o+1<n&&e.getLanguageId(o+1)===r;)o++;for(var s=i;s>0&&e.getLanguageId(s-1)===r;)s--;return new a(e,r,s,o+1,e.getStartOffset(s),e.getEndOffset(o))}var a=function(){function e(t,n,r,o,a,s){(0,i.Z)(this,e),this._scopedLineTokensBrand=void 0,this._actual=t,this.languageId=n,this._firstTokenIndex=r,this._lastTokenIndex=o,this.firstCharOffset=a,this._lastCharOffset=s}return(0,r.Z)(e,[{key:"getLineContent",value:function(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}},{key:"getActualLineContentBefore",value:function(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}},{key:"getTokenCount",value:function(){return this._lastTokenIndex-this._firstTokenIndex}},{key:"findTokenIndexAtOffset",value:function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}},{key:"getStandardTokenType",value:function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}]),e}();function s(e){return 0!==(3&e)}},20598:function(e,t,n){"use strict";n.d(t,{EA:function(){return d},Vr:function(){return y}});var i=n(29439),r=n(37762),o=n(15671),a=n(43144),s=n(32377),l=n(1293),c=n(80133),u=function(){function e(t,n,i,r,a,s){(0,o.Z)(this,e),this._richEditBracketBrand=void 0,this.languageId=t,this.index=n,this.open=i,this.close=r,this.forwardRegex=a,this.reversedRegex=s,this._openSet=e._toSet(this.open),this._closeSet=e._toSet(this.close)}return(0,a.Z)(e,[{key:"isOpen",value:function(e){return this._openSet.has(e)}},{key:"isClose",value:function(e){return this._closeSet.has(e)}}],[{key:"_toSet",value:function(e){var t,n=new Set,i=(0,r.Z)(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;n.add(o)}}catch(a){i.e(a)}finally{i.f()}return n}}]),e}();var d=(0,a.Z)((function e(t,n){(0,o.Z)(this,e),this._richEditBracketsBrand=void 0;var a=function(e){var t=e.length;e=e.map((function(e){return[e[0].toLowerCase(),e[1].toLowerCase()]}));for(var n=[],r=0;r<t;r++)n[r]=r;for(var o=function(e,t){var n=(0,i.Z)(e,2),r=n[0],o=n[1],a=(0,i.Z)(t,2),s=a[0],l=a[1];return r===s||r===l||o===s||o===l},a=function(e,i){for(var r=Math.min(e,i),o=Math.max(e,i),a=0;a<t;a++)n[a]===o&&(n[a]=r)},s=0;s<t;s++)for(var l=e[s],c=s+1;c<t;c++)o(l,e[c])&&a(n[s],n[c]);for(var u=[],d=0;d<t;d++){for(var h=[],f=[],p=0;p<t;p++)if(n[p]===d){var g=(0,i.Z)(e[p],2),v=g[0],m=g[1];h.push(v),f.push(m)}h.length>0&&u.push({open:h,close:f})}return u}(n);this.brackets=a.map((function(e,n){return new u(t,n,e.open,e.close,function(e,t,n,i){var r=[];r=(r=r.concat(e)).concat(t);for(var o=0,a=r.length;o<a;o++)h(r[o],n,i,r);return(r=p(r)).sort(f),r.reverse(),v(r)}(e.open,e.close,a,n),function(e,t,n,i){var r=[];r=(r=r.concat(e)).concat(t);for(var o=0,a=r.length;o<a;o++)h(r[o],n,i,r);return(r=p(r)).sort(f),r.reverse(),v(r.map(m))}(e.open,e.close,a,n))})),this.forwardRegex=function(e){var t,n=[],i=(0,r.Z)(e);try{for(i.s();!(t=i.n()).done;){var o,a=t.value,s=(0,r.Z)(a.open);try{for(s.s();!(o=s.n()).done;){var l=o.value;n.push(l)}}catch(h){s.e(h)}finally{s.f()}var c,u=(0,r.Z)(a.close);try{for(u.s();!(c=u.n()).done;){var d=c.value;n.push(d)}}catch(h){u.e(h)}finally{u.f()}}}catch(h){i.e(h)}finally{i.f()}return v(n=p(n))}(this.brackets),this.reversedRegex=function(e){var t,n=[],i=(0,r.Z)(e);try{for(i.s();!(t=i.n()).done;){var o,a=t.value,s=(0,r.Z)(a.open);try{for(s.s();!(o=s.n()).done;){var l=o.value;n.push(l)}}catch(h){s.e(h)}finally{s.f()}var c,u=(0,r.Z)(a.close);try{for(u.s();!(c=u.n()).done;){var d=c.value;n.push(d)}}catch(h){u.e(h)}finally{u.f()}}}catch(h){i.e(h)}finally{i.f()}return v((n=p(n)).map(m))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;var s,l=(0,r.Z)(this.brackets);try{for(l.s();!(s=l.n()).done;){var c,d=s.value,g=(0,r.Z)(d.open);try{for(g.s();!(c=g.n()).done;){var y=c.value;this.textIsBracket[y]=d,this.textIsOpenBracket[y]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,y.length)}}catch(S){g.e(S)}finally{g.f()}var _,b=(0,r.Z)(d.close);try{for(b.s();!(_=b.n()).done;){var C=_.value;this.textIsBracket[C]=d,this.textIsOpenBracket[C]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,C.length)}}catch(S){b.e(S)}finally{b.f()}}}catch(S){l.e(S)}finally{l.f()}}));function h(e,t,n,i){for(var o=0,a=t.length;o<a;o++)if(o!==n){var s,l=t[o],c=(0,r.Z)(l.open);try{for(c.s();!(s=c.n()).done;){var u=s.value;u.indexOf(e)>=0&&i.push(u)}}catch(p){c.e(p)}finally{c.f()}var d,h=(0,r.Z)(l.close);try{for(h.s();!(d=h.n()).done;){var f=d.value;f.indexOf(e)>=0&&i.push(f)}}catch(p){h.e(p)}finally{h.f()}}}function f(e,t){return e.length-t.length}function p(e){if(e.length<=1)return e;var t,n=[],i=new Set,o=(0,r.Z)(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;i.has(a)||(n.push(a),i.add(a))}}catch(s){o.e(s)}finally{o.f()}return n}function g(e){var t=/^[\w ]+$/.test(e);return e=s.ec(e),t?"\\b".concat(e,"\\b"):e}function v(e){var t="(".concat(e.map(g).join(")|("),")");return s.GF(t,!0)}var m=function(){var e=null,t=null;return function(n){return e!==n&&(t=function(e){if(l.lZ){for(var t=new Uint16Array(e.length),n=0,i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return l.oe().decode(t)}for(var r=[],o=0,a=e.length-1;a>=0;a--)r[o++]=e.charAt(a);return r.join("")}(e=n)),t}}(),y=function(){function e(){(0,o.Z)(this,e)}return(0,a.Z)(e,null,[{key:"_findPrevBracketInText",value:function(e,t,n,i){var r=n.match(e);if(!r)return null;var o=n.length-(r.index||0),a=r[0].length,s=i+o;return new c.e(t,s-a+1,t,s+1)}},{key:"findPrevBracketInRange",value:function(e,t,n,i,r){var o=m(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,o,i)}},{key:"findNextBracketInText",value:function(e,t,n,i){var r=n.match(e);if(!r)return null;var o=r.index||0,a=r[0].length;if(0===a)return null;var s=i+o;return new c.e(t,s+1,t,s+1+a)}},{key:"findNextBracketInRange",value:function(e,t,n,i,r){var o=n.substring(i,r);return this.findNextBracketInText(e,t,o,i)}}]),e}()},11252:function(e,t,n){"use strict";n.d(t,{C2:function(){return u},Fq:function(){return d}});var i=n(74165),r=n(32377),o=n(90532),a=n(12905),s=n(38584),l=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},c={getInitialState:function(){return s.TJ},tokenizeEncoded:function(e,t,n){return(0,s.Dy)(0,n)}};function u(e,t,n){return l(this,void 0,void 0,(0,i.Z)().mark((function r(){var o;return(0,i.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(n){i.next=2;break}return i.abrupt("return",h(t,e.languageIdCodec,c));case 2:return i.next=4,a.RW.getOrCreate(n);case 4:return o=i.sent,i.abrupt("return",h(t,e.languageIdCodec,o||c));case 6:case"end":return i.stop()}}),r)})))}function d(e,t,n,i,r,o,a){for(var s="<div>",l=i,c=0,u=!0,d=0,h=t.getCount();d<h;d++){var f=t.getEndOffset(d);if(!(f<=i)){for(var p="";l<f&&l<r;l++){var g=e.charCodeAt(l);switch(g){case 9:var v=o-(l+c)%o;for(c+=v-1;v>0;)a&&u?(p+=" ",u=!1):(p+=" ",u=!0),v--;break;case 60:p+="<",u=!1;break;case 62:p+=">",u=!1;break;case 38:p+="&",u=!1;break;case 0:p+="�",u=!1;break;case 65279:case 8232:case 8233:case 133:p+="\ufffd",u=!1;break;case 13:p+="​",u=!1;break;case 32:a&&u?(p+=" ",u=!1):(p+=" ",u=!0);break;default:p+=String.fromCharCode(g),u=!1}}if(s+='<span style="'.concat(t.getInlineStyle(d,n),'">').concat(p,"</span>"),f>r||l>=r)break}}return s+="</div>"}function h(e,t,n){for(var i='<div class="monaco-tokenized-source">',a=r.uq(e),s=n.getInitialState(),l=0,c=a.length;l<c;l++){var u=a[l];l>0&&(i+="<br/>");var d=n.tokenizeEncoded(u,!0,s);o.A.convertToEndOffset(d.tokens,u.length);for(var h=new o.A(d.tokens,u,t).inflate(),f=0,p=0,g=h.getCount();p<g;p++){var v=h.getClassName(p),m=h.getEndOffset(p);i+='<span class="'.concat(v,'">').concat(r.YU(u.substring(f,m)),"</span>"),f=m}s=d.endState}return i+="</div>"}},36550:function(e,t,n){"use strict";n.d(t,{F5:function(){return r},Hf:function(){return d},Qi:function(){return h},RM:function(){return o},Tx:function(){return f},dJ:function(){return c},je:function(){return p},pt:function(){return g},sh:function(){return i},tk:function(){return u}});var i,r,o,a=n(15671),s=n(43144),l=n(63656);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(i||(i={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(r||(r={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(o||(o={}));var c=function(){function e(t){(0,a.Z)(this,e),this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|t.tabSize),this.indentSize=0|t.tabSize,this.insertSpaces=Boolean(t.insertSpaces),this.defaultEOL=0|t.defaultEOL,this.trimAutoWhitespace=Boolean(t.trimAutoWhitespace),this.bracketPairColorizationOptions=t.bracketPairColorizationOptions}return(0,s.Z)(e,[{key:"equals",value:function(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,l.fS)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}},{key:"createChangeEvent",value:function(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}]),e}(),u=(0,s.Z)((function e(t,n){(0,a.Z)(this,e),this._findMatchBrand=void 0,this.range=t,this.matches=n}));function d(e){return e&&"function"===typeof e.read}var h=(0,s.Z)((function e(t,n,i,r,o,s){(0,a.Z)(this,e),this.identifier=t,this.range=n,this.text=i,this.forceMoveMarkers=r,this.isAutoWhitespaceEdit=o,this._isTracked=s})),f=(0,s.Z)((function e(t,n,i){(0,a.Z)(this,e),this.regex=t,this.wordSeparators=n,this.simpleSearch=i})),p=(0,s.Z)((function e(t,n,i){(0,a.Z)(this,e),this.reverseEdits=t,this.changes=n,this.trimAutoWhitespaceLineNumbers=i}));function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},79993:function(e,t,n){"use strict";n.d(t,{BH:function(){return b},Dm:function(){return S},Kd:function(){return h},Y0:function(){return f},n2:function(){return C}});var i=n(93433),r=n(60136),o=n(27277),a=n(15671),s=n(43144),l=n(29349),c=n(81172),u=n(2679),d=function(){function e(t){(0,a.Z)(this,e),this._length=t}return(0,s.Z)(e,[{key:"length",get:function(){return this._length}}]),e}(),h=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e,i,r,o,s){var l;return(0,a.Z)(this,n),(l=t.call(this,e)).openingBracket=i,l.child=r,l.closingBracket=o,l.missingOpeningBracketIds=s,l}return(0,s.Z)(n,[{key:"kind",get:function(){return 2}},{key:"listHeight",get:function(){return 0}},{key:"childrenLength",get:function(){return 3}},{key:"getChild",value:function(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}},{key:"children",get:function(){var e=new Array;return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}},{key:"canBeReused",value:function(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}},{key:"deepClone",value:function(){return new n(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}},{key:"computeMinIndentation",value:function(e,t){return this.child?this.child.computeMinIndentation((0,c.Ii)(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}],[{key:"create",value:function(e,t,i){var r=e.length;return t&&(r=(0,c.Ii)(r,t.length)),i&&(r=(0,c.Ii)(r,i.length)),new n(r,e,t,i,t?t.missingOpeningBracketIds:u.tS.getEmpty())}}]),n}(d),f=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e,i,r){var o;return(0,a.Z)(this,n),(o=t.call(this,e)).listHeight=i,o._missingOpeningBracketIds=r,o.cachedMinIndentation=-1,o}return(0,s.Z)(n,[{key:"kind",get:function(){return 4}},{key:"missingOpeningBracketIds",get:function(){return this._missingOpeningBracketIds}},{key:"throwIfImmutable",value:function(){}},{key:"makeLastElementMutable",value:function(){this.throwIfImmutable();var e=this.childrenLength;if(0!==e){var t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}}},{key:"makeFirstElementMutable",value:function(){if(this.throwIfImmutable(),0!==this.childrenLength){var e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}}},{key:"canBeReused",value:function(e){if(e.intersects(this.missingOpeningBracketIds))return!1;for(var t,n=this;4===n.kind&&(t=n.childrenLength)>0;)n=n.getChild(t-1);return n.canBeReused(e)}},{key:"handleChildrenChanged",value:function(){this.throwIfImmutable();for(var e=this.childrenLength,t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds,i=1;i<e;i++){var r=this.getChild(i);t=(0,c.Ii)(t,r.length),n=n.merge(r.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}},{key:"computeMinIndentation",value:function(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;for(var n=Number.MAX_SAFE_INTEGER,i=e,r=0;r<this.childrenLength;r++){var o=this.getChild(r);o&&(n=Math.min(n,o.computeMinIndentation(i,t)),i=(0,c.Ii)(i,o.length))}return this.cachedMinIndentation=n,n}}],[{key:"create23",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e.length,o=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(r=(0,c.Ii)(r,t.length),o=o.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");r=(0,c.Ii)(r,n.length),o=o.merge(n.missingOpeningBracketIds)}return i?new g(r,e.listHeight+1,e,t,n,o):new p(r,e.listHeight+1,e,t,n,o)}},{key:"getEmpty",value:function(){return new m(c.xl,0,[],u.tS.getEmpty())}}]),n}(d),p=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e,i,r,o,s,l){var c;return(0,a.Z)(this,n),(c=t.call(this,e,i,l))._item1=r,c._item2=o,c._item3=s,c}return(0,s.Z)(n,[{key:"childrenLength",get:function(){return null!==this._item3?3:2}},{key:"getChild",value:function(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}},{key:"setChild",value:function(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}},{key:"children",get:function(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}},{key:"item1",get:function(){return this._item1}},{key:"item2",get:function(){return this._item2}},{key:"item3",get:function(){return this._item3}},{key:"deepClone",value:function(){return new n(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}},{key:"appendChildOfSameHeight",value:function(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}},{key:"unappendChild",value:function(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();var e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}},{key:"prependChildOfSameHeight",value:function(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}},{key:"unprependChild",value:function(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();var e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}},{key:"toMutable",value:function(){return this}}]),n}(f),g=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"toMutable",value:function(){return new p(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}},{key:"throwIfImmutable",value:function(){throw new Error("this instance is immutable")}}]),n}(p),v=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e,i,r,o){var s;return(0,a.Z)(this,n),(s=t.call(this,e,i,o))._children=r,s}return(0,s.Z)(n,[{key:"childrenLength",get:function(){return this._children.length}},{key:"getChild",value:function(e){return this._children[e]}},{key:"setChild",value:function(e,t){this._children[e]=t}},{key:"children",get:function(){return this._children}},{key:"deepClone",value:function(){for(var e=new Array(this._children.length),t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new n(this.length,this.listHeight,e,this.missingOpeningBracketIds)}},{key:"appendChildOfSameHeight",value:function(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}},{key:"unappendChild",value:function(){this.throwIfImmutable();var e=this._children.pop();return this.handleChildrenChanged(),e}},{key:"prependChildOfSameHeight",value:function(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}},{key:"unprependChild",value:function(){this.throwIfImmutable();var e=this._children.shift();return this.handleChildrenChanged(),e}},{key:"toMutable",value:function(){return this}}]),n}(f),m=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"toMutable",value:function(){return new v(this.length,this.listHeight,(0,i.Z)(this.children),this.missingOpeningBracketIds)}},{key:"throwIfImmutable",value:function(){throw new Error("this instance is immutable")}}]),n}(v),y=[],_=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"listHeight",get:function(){return 0}},{key:"childrenLength",get:function(){return 0}},{key:"getChild",value:function(e){return null}},{key:"children",get:function(){return y}},{key:"deepClone",value:function(){return this}}]),n}(d),b=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"kind",get:function(){return 0}},{key:"missingOpeningBracketIds",get:function(){return u.tS.getEmpty()}},{key:"canBeReused",value:function(e){return!0}},{key:"computeMinIndentation",value:function(e,t){for(var n=(0,c.Hw)(e),i=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,r=(0,c.W9)((0,c.Ii)(e,this.length))+1,o=Number.MAX_SAFE_INTEGER,a=i;a<=r;a++){var s=t.getLineFirstNonWhitespaceColumn(a),u=t.getLineContent(a);if(0!==s){var d=l.i.visibleColumnFromColumn(u,s,t.getOptions().tabSize);o=Math.min(o,d)}}return o}}]),n}(_),C=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e,i,r){var o;return(0,a.Z)(this,n),(o=t.call(this,e)).bracketInfo=i,o.bracketIds=r,o}return(0,s.Z)(n,[{key:"kind",get:function(){return 1}},{key:"missingOpeningBracketIds",get:function(){return u.tS.getEmpty()}},{key:"text",get:function(){return this.bracketInfo.bracketText}},{key:"languageId",get:function(){return this.bracketInfo.languageId}},{key:"canBeReused",value:function(e){return!1}},{key:"computeMinIndentation",value:function(e,t){return Number.MAX_SAFE_INTEGER}}],[{key:"create",value:function(e,t,i){return new n(e,t,i)}}]),n}(_),S=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e,i){var r;return(0,a.Z)(this,n),(r=t.call(this,i)).missingOpeningBracketIds=e,r}return(0,s.Z)(n,[{key:"kind",get:function(){return 3}},{key:"canBeReused",value:function(e){return!e.intersects(this.missingOpeningBracketIds)}},{key:"computeMinIndentation",value:function(e,t){return Number.MAX_SAFE_INTEGER}}]),n}(_)},10235:function(e,t,n){"use strict";n.d(t,{Q:function(){return a},Y:function(){return s}});var i=n(43144),r=n(15671),o=n(81172),a=(0,i.Z)((function e(t,n,i){(0,r.Z)(this,e),this.startOffset=t,this.endOffset=n,this.newLength=i})),s=function(){function e(t,n){(0,r.Z)(this,e),this.documentLength=n,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=t.map((function(e){return l.from(e)}))}return(0,i.Z)(e,[{key:"getOffsetBeforeChange",value:function(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}},{key:"getDistanceToNextChange",value:function(e){this.adjustNextEdit(e);var t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):this.documentLength;return(0,o.BE)(e,n)}},{key:"translateOldToCur",value:function(e){return e.lineCount===this.deltaLineIdxInOld?(0,o.Hg)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):(0,o.Hg)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}},{key:"translateCurToOld",value:function(e){var t=(0,o.Hw)(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,o.Hg)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):(0,o.Hg)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}},{key:"adjustNextEdit",value:function(e){for(;this.nextEditIdx<this.edits.length;){var t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!(0,o.By)(n,e))break;this.nextEditIdx++;var i=(0,o.Hw)(n),r=(0,o.Hw)(this.translateOldToCur(t.endOffsetBeforeObj)),a=i.lineCount-r.lineCount;this.deltaOldToNewLineCount+=a;var s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,l=i.columnCount-r.columnCount;this.deltaOldToNewColumnCount=s+l,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}]),e}(),l=function(){function e(t,n,i){(0,r.Z)(this,e),this.endOffsetBeforeObj=(0,o.Hw)(n),this.endOffsetAfterObj=(0,o.Hw)((0,o.Ii)(t,i)),this.offsetObj=(0,o.Hw)(t)}return(0,i.Z)(e,null,[{key:"from",value:function(t){return new e(t.startOffset,t.endOffset,t.newLength)}}]),e}()},36915:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(29439),r=n(37762),o=n(93433),a=n(15671),s=n(43144),l=n(32377),c=n(79993),u=n(81172),d=n(2679),h=n(31497),f=function(){function e(t){(0,a.Z)(this,e),this.map=t,this.hasRegExp=!1,this._regExpGlobal=null}return(0,s.Z)(e,[{key:"getRegExpStr",value:function(){if(this.isEmpty)return null;var e=(0,o.Z)(this.map.keys());return e.sort(),e.reverse(),e.map((function(e){return function(e){var t=(0,l.ec)(e);/^[\w ]+/.test(e)&&(t="\\b".concat(t));/[\w ]+$/.test(e)&&(t="".concat(t,"\\b"));return t}(e)})).join("|")}},{key:"regExpGlobal",get:function(){if(!this.hasRegExp){var e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}},{key:"getToken",value:function(e){return this.map.get(e.toLowerCase())}},{key:"findClosingTokenText",value:function(e){var t,n=(0,r.Z)(this.map);try{for(n.s();!(t=n.n()).done;){var o=(0,i.Z)(t.value,2),a=o[0],s=o[1];if(2===s.kind&&s.bracketIds.intersects(e))return a}}catch(l){n.e(l)}finally{n.f()}}},{key:"isEmpty",get:function(){return 0===this.map.size}}],[{key:"createFromLanguage",value:function(t,n){function i(e){return n.getKey("".concat(e.languageId,":::").concat(e.bracketText))}var o,a=new Map,s=(0,r.Z)(t.bracketsNew.openingBrackets);try{for(s.s();!(o=s.n()).done;){var l=o.value,f=(0,u.Hg)(0,l.bracketText.length),p=i(l),g=d.tS.getEmpty().add(p,d.Qw);a.set(l.bracketText,new h.WU(f,1,p,g,c.n2.create(f,l,g)))}}catch(x){s.e(x)}finally{s.f()}var v,m=(0,r.Z)(t.bracketsNew.closingBrackets);try{for(m.s();!(v=m.n()).done;){var y,_=v.value,b=(0,u.Hg)(0,_.bracketText.length),C=d.tS.getEmpty(),S=_.getClosedBrackets(),w=(0,r.Z)(S);try{for(w.s();!(y=w.n()).done;){var k=y.value;C=C.add(i(k),d.Qw)}}catch(x){w.e(x)}finally{w.f()}a.set(_.bracketText,new h.WU(b,2,i(S[0]),C,c.n2.create(b,_,C)))}}catch(x){m.e(x)}finally{m.f()}return new e(a)}}]),e}();var p=function(){function e(t,n){(0,a.Z)(this,e),this.denseKeyProvider=t,this.getLanguageConfiguration=n,this.languageIdToBracketTokens=new Map}return(0,s.Z)(e,[{key:"didLanguageChange",value:function(e){return this.languageIdToBracketTokens.has(e)}},{key:"getSingleLanguageBracketTokens",value:function(e){var t=this.languageIdToBracketTokens.get(e);return t||(t=f.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}]),e}()},81172:function(e,t,n){"use strict";n.d(t,{BE:function(){return m},By:function(){return _},F_:function(){return g},Hg:function(){return h},Hw:function(){return f},Ii:function(){return v},PZ:function(){return C},Qw:function(){return S},VR:function(){return y},W9:function(){return p},Zq:function(){return b},av:function(){return l},oR:function(){return w},xd:function(){return u},xl:function(){return c}});var i=n(15671),r=n(43144),o=n(32377),a=n(80133),s=function(){function e(t,n){(0,i.Z)(this,e),this.lineCount=t,this.columnCount=n}return(0,r.Z)(e,[{key:"toString",value:function(){return"".concat(this.lineCount,",").concat(this.columnCount)}}]),e}();function l(e,t,n,i){return e!==n?h(n-e,i):h(0,i-t)}s.zero=new s(0,0);var c=0;function u(e){return 0===e}var d=Math.pow(2,26);function h(e,t){return e*d+t}function f(e){var t=e,n=Math.floor(t/d);return new s(n,t-n*d)}function p(e){return Math.floor(e/d)}function g(e){return e}function v(e,t){return t<d?e+t:e-e%d+t}function m(e,t){var n=e,i=t;if(i-n<=0)return c;var r=Math.floor(n/d),o=Math.floor(i/d),a=i-o*d;return r===o?h(0,a-(n-r*d)):h(o-r,a)}function y(e,t){return e<t}function _(e,t){return e<=t}function b(e,t){return e>=t}function C(e){return h(e.lineNumber-1,e.column-1)}function S(e,t){var n=e,i=Math.floor(n/d),r=n-i*d,o=t,s=Math.floor(o/d),l=o-s*d;return new a.e(i+1,r+1,s+1,l+1)}function w(e){var t=(0,o.uq)(e);return h(t.length-1,t[t.length-1].length)}},96778:function(e,t,n){"use strict";n.d(t,{w:function(){return g}});var i=n(15671),r=n(43144),o=n(79993),a=n(10235),s=n(2679),l=n(81172);function c(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(0===e.length)return null;if(1===e.length)return e[0];for(var n=e.length;n>3;){for(var i=n>>1,r=0;r<i;r++){var a=r<<1;e[r]=o.Y0.create23(e[a],e[a+1],a+3===n?e[a+2]:null,t)}n=i}return o.Y0.create23(e[0],e[1],n>=3?e[2]:null,t)}function u(e,t){return Math.abs(e.listHeight-t.listHeight)}function d(e,t){return e.listHeight===t.listHeight?o.Y0.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){var n,i=e=e.toMutable(),r=new Array;for(;;){if(t.listHeight===i.listHeight){n=t;break}if(4!==i.kind)throw new Error("unexpected");r.push(i),i=i.makeLastElementMutable()}for(var a=r.length-1;a>=0;a--){var s=r[a];n?s.childrenLength>=3?n=o.Y0.create23(s.unappendChild(),n,null,!1):(s.appendChildOfSameHeight(n),n=void 0):s.handleChildrenChanged()}return n?o.Y0.create23(e,n,null,!1):e}(e,t):function(e,t){var n=e=e.toMutable(),i=new Array;for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeFirstElementMutable()}for(var r=t,a=i.length-1;a>=0;a--){var s=i[a];r?s.childrenLength>=3?r=o.Y0.create23(r,s.unprependChild(),null,!1):(s.prependChildOfSameHeight(r),r=void 0):s.handleChildrenChanged()}return r?o.Y0.create23(r,e,null,!1):e}(t,e)}var h=function(){function e(t){(0,i.Z)(this,e),this.lastOffset=l.xl,this.nextNodes=[t],this.offsets=[l.xl],this.idxs=[]}return(0,r.Z)(e,[{key:"readLongestNodeAt",value:function(e,t){if((0,l.VR)(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){var n=p(this.nextNodes);if(!n)return;var i=p(this.offsets);if((0,l.VR)(e,i))return;if((0,l.VR)(i,e))if((0,l.Ii)(i,n.length)<=e)this.nextNodeAfterCurrent();else{var r=f(n);-1!==r?(this.nextNodes.push(n.getChild(r)),this.offsets.push(i),this.idxs.push(r)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;var o=f(n);if(-1===o)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(o)),this.offsets.push(i),this.idxs.push(o)}}}},{key:"nextNodeAfterCurrent",value:function(){for(;;){var e=p(this.offsets),t=p(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;var n=p(this.nextNodes),i=f(n,this.idxs[this.idxs.length-1]);if(-1!==i){this.nextNodes.push(n.getChild(i)),this.offsets.push((0,l.Ii)(e,t.length)),this.idxs[this.idxs.length-1]=i;break}this.idxs.pop()}}}]),e}();function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function p(e){return e.length>0?e[e.length-1]:void 0}function g(e,t,n,i){return new v(e,t,n,i).parseDocument()}var v=function(){function e(t,n,r,o){if((0,i.Z)(this,e),this.tokenizer=t,this.createImmutableLists=o,this._itemsConstructed=0,this._itemsFromCache=0,r&&o)throw new Error("Not supported");this.oldNodeReader=r?new h(r):void 0,this.positionMapper=new a.Y(n,t.length)}return(0,r.Z)(e,[{key:"parseDocument",value:function(){this._itemsConstructed=0,this._itemsFromCache=0;var e=this.parseList(s.tS.getEmpty());return e||(e=o.Y0.getEmpty()),e}},{key:"parseList",value:function(e){for(var t=new Array;;){var n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;var i=this.parseChild(e);4===i.kind&&0===i.childrenLength||t.push(i)}var r=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];var t=0;function n(){if(t>=e.length)return null;var n=t,i=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===i;)t++;return t-n>=2?c(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}var i=n(),r=n();if(!r)return i;for(var o=n();o;o=n())u(i,r)<=u(r,o)?(i=d(i,r),r=o):r=d(r,o);return d(i,r)}(t):c(t,this.createImmutableLists);return r}},{key:"parseChild",value:function(e){if(this.oldNodeReader){var t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(!(0,l.xd)(t)){var n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(function(n){return!!(0,l.VR)(n.length,t)&&n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}this._itemsConstructed++;var i=this.tokenizer.read();switch(i.kind){case 2:return new o.Dm(i.bracketIds,i.length);case 0:return i.astNode;case 1:var r=e.merge(i.bracketIds),a=this.parseList(r),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===i.bracketId||s.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),o.Kd.create(i.astNode,a,s.astNode)):o.Kd.create(i.astNode,a,null);default:throw new Error("unexpected")}}}]),e}()},2679:function(e,t,n){"use strict";n.d(t,{FE:function(){return l},Qw:function(){return s},tS:function(){return a}});var i=n(15671),r=n(43144),o=new Array,a=function(){function e(t,n){(0,i.Z)(this,e),this.items=t,this.additionalItems=n}return(0,r.Z)(e,[{key:"add",value:function(t,n){var i=n.getKey(t),r=i>>5;if(0===r){var o=1<<i|this.items;return o===this.items?this:e.create(o,this.additionalItems)}r--;for(var a=this.additionalItems.slice(0);a.length<r;)a.push(0);return a[r]|=1<<(31&i),e.create(this.items,a)}},{key:"merge",value:function(t){var n=this.items|t.items;if(this.additionalItems===o&&t.additionalItems===o)return n===this.items?this:n===t.items?t:e.create(n,o);for(var i=new Array,r=0;r<Math.max(this.additionalItems.length,t.additionalItems.length);r++){var a=this.additionalItems[r]||0,s=t.additionalItems[r]||0;i.push(a|s)}return e.create(n,i)}},{key:"intersects",value:function(e){if(0!==(this.items&e.items))return!0;for(var t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}],[{key:"create",value:function(t,n){if(t<=128&&0===n.length){var i=e.cache[t];return i||(i=new e(t,n),e.cache[t]=i),i}return new e(t,n)}},{key:"getEmpty",value:function(){return this.empty}}]),e}();a.cache=new Array(129),a.empty=a.create(0,o);var s={getKey:function(e){return e}},l=function(){function e(){(0,i.Z)(this,e),this.items=new Map}return(0,r.Z)(e,[{key:"getKey",value:function(e){var t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}]),e}()},31497:function(e,t,n){"use strict";n.d(t,{WU:function(){return u},g:function(){return f},xH:function(){return d}});var i=n(43144),r=n(15671),o=n(14173),a=n(56124),s=n(79993),l=n(81172),c=n(2679),u=(0,i.Z)((function e(t,n,i,o,a){(0,r.Z)(this,e),this.length=t,this.kind=n,this.bracketId=i,this.bracketIds=o,this.astNode=a})),d=function(){function e(t,n){(0,r.Z)(this,e),this.textModel=t,this.bracketTokens=n,this.reader=new h(this.textModel,this.bracketTokens),this._offset=l.xl,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=t.getLineCount(),this.textBufferLastLineLength=t.getLineLength(this.textBufferLineCount)}return(0,i.Z)(e,[{key:"offset",get:function(){return this._offset}},{key:"length",get:function(){return(0,l.Hg)(this.textBufferLineCount,this.textBufferLastLineLength)}},{key:"skip",value:function(e){this.didPeek=!1,this._offset=(0,l.Ii)(this._offset,e);var t=(0,l.Hw)(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}},{key:"read",value:function(){var e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=(0,l.Ii)(this._offset,e.length)),e}},{key:"peek",value:function(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}]),e}(),h=function(){function e(t,n){(0,r.Z)(this,e),this.textModel=t,this.bracketTokens=n,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=t.getLineCount(),this.textBufferLastLineLength=t.getLineLength(this.textBufferLineCount)}return(0,i.Z)(e,[{key:"setPosition",value:function(e,t){e===this.lineIdx?(this.lineCharOffset=t,this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset)):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}},{key:"read",value:function(){if(this.peekedToken){var e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=(0,l.F_)(e.length),e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));for(var t=this.lineIdx,n=this.lineCharOffset,i=0;;){var r=this.lineTokens,o=r.getCount(),d=null;if(this.lineTokenOffset<o){for(var h=r.getMetadata(this.lineTokenOffset);this.lineTokenOffset+1<o&&h===r.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;var f=0===a.N.getTokenType(h),p=a.N.containsBalancedBrackets(h),g=r.getEndOffset(this.lineTokenOffset);if(p&&f&&this.lineCharOffset<g){var v=r.getLanguageId(this.lineTokenOffset),m=this.line.substring(this.lineCharOffset,g),y=this.bracketTokens.getSingleLanguageBracketTokens(v),_=y.regExpGlobal;if(_){_.lastIndex=0;var b=_.exec(m);b&&(d=y.getToken(b[0]))&&(this.lineCharOffset+=b.index)}}if(i+=g-this.lineCharOffset,d){if(t!==this.lineIdx||n!==this.lineCharOffset){this.peekedToken=d;break}return this.lineCharOffset+=(0,l.F_)(d.length),d}this.lineTokenOffset++,this.lineCharOffset=g}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,(i+=33)>1e3)break}if(i>1500)break}var C=(0,l.av)(t,n,this.lineIdx,this.lineCharOffset);return new u(C,0,-1,c.tS.getEmpty(),new s.BH(C))}}]),e}(),f=function(){function e(t,n){(0,r.Z)(this,e),this.text=t,this._offset=l.xl,this.idx=0;for(var i,o=n.getRegExpStr(),a=o?new RegExp(o+"|\n","gi"):null,d=[],h=0,f=0,p=0,g=0,v=new Array,m=0;m<60;m++)v.push(new u((0,l.Hg)(0,m),0,-1,c.tS.getEmpty(),new s.BH((0,l.Hg)(0,m))));for(var y=new Array,_=0;_<60;_++)y.push(new u((0,l.Hg)(1,_),0,-1,c.tS.getEmpty(),new s.BH((0,l.Hg)(1,_))));if(a)for(a.lastIndex=0;null!==(i=a.exec(t));){var b=i.index,C=i[0];if("\n"===C)h++,f=b+1;else{if(p!==b){var S=void 0;if(g===h){var w=b-p;if(w<v.length)S=v[w];else{var k=(0,l.Hg)(0,w);S=new u(k,0,-1,c.tS.getEmpty(),new s.BH(k))}}else{var x=h-g,E=b-f;if(1===x&&E<y.length)S=y[E];else{var T=(0,l.Hg)(x,E);S=new u(T,0,-1,c.tS.getEmpty(),new s.BH(T))}}d.push(S)}d.push(n.getToken(C)),p=b+C.length,g=h}}var N=t.length;if(p!==N){var I=g===h?(0,l.Hg)(0,N-p):(0,l.Hg)(h-g,N-f);d.push(new u(I,0,-1,c.tS.getEmpty(),new s.BH(I)))}this.length=(0,l.Hg)(h,N-f),this.tokens=d}return(0,i.Z)(e,[{key:"offset",get:function(){return this._offset}},{key:"read",value:function(){return this.tokens[this.idx++]||null}},{key:"peek",value:function(){return this.tokens[this.idx]||null}},{key:"skip",value:function(e){throw new o.B8}}]),e}()},1169:function(e,t,n){"use strict";n.d(t,{NL:function(){return _},e9:function(){return y}});var i=n(37762),r=n(15671),o=n(43144),a=n(27722),s=n(14173),l=n(23145),c=n(72112),u=n(70768),d=n(82175),h=n(41175);function f(e){return e.toString()}var p=function(){function e(t,n,i,o,a,s,l){(0,r.Z)(this,e),this.beforeVersionId=t,this.afterVersionId=n,this.beforeEOL=i,this.afterEOL=o,this.beforeCursorState=a,this.afterCursorState=s,this.changes=l}return(0,o.Z)(e,[{key:"append",value:function(e,t,n,i,r){t.length>0&&(this.changes=(0,u.b)(this.changes,t)),this.afterEOL=n,this.afterVersionId=i,this.afterCursorState=r}},{key:"serialize",value:function(){var t,n=10+e._writeSelectionsSize(this.beforeCursorState)+e._writeSelectionsSize(this.afterCursorState)+4,r=(0,i.Z)(this.changes);try{for(r.s();!(t=r.n()).done;){n+=t.value.writeSize()}}catch(c){r.e(c)}finally{r.f()}var o=new Uint8Array(n),a=0;d.T4(o,this.beforeVersionId,a),a+=4,d.T4(o,this.afterVersionId,a),a+=4,d.Cg(o,this.beforeEOL,a),a+=1,d.Cg(o,this.afterEOL,a),a+=1,a=e._writeSelections(o,this.beforeCursorState,a),a=e._writeSelections(o,this.afterCursorState,a),d.T4(o,this.changes.length,a),a+=4;var s,l=(0,i.Z)(this.changes);try{for(l.s();!(s=l.n()).done;){a=s.value.write(o,a)}}catch(c){l.e(c)}finally{l.f()}return o.buffer}}],[{key:"create",value:function(t,n){var i=t.getAlternativeVersionId(),r=m(t);return new e(i,i,r,r,n,n,[])}},{key:"_writeSelectionsSize",value:function(e){return 4+16*(e?e.length:0)}},{key:"_writeSelections",value:function(e,t,n){if(d.T4(e,t?t.length:0,n),n+=4,t){var r,o=(0,i.Z)(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;d.T4(e,a.selectionStartLineNumber,n),n+=4,d.T4(e,a.selectionStartColumn,n),n+=4,d.T4(e,a.positionLineNumber,n),n+=4,d.T4(e,a.positionColumn,n),n+=4}}catch(s){o.e(s)}finally{o.f()}}return n}},{key:"_readSelections",value:function(e,t,n){var i=d.Ag(e,t);t+=4;for(var r=0;r<i;r++){var o=d.Ag(e,t);t+=4;var a=d.Ag(e,t);t+=4;var s=d.Ag(e,t);t+=4;var c=d.Ag(e,t);t+=4,n.push(new l.Y(o,a,s,c))}return t}},{key:"deserialize",value:function(t){var n=new Uint8Array(t),i=0,r=d.Ag(n,i);i+=4;var o=d.Ag(n,i);i+=4;var a=d.Q$(n,i);i+=1;var s=d.Q$(n,i);i+=1;var l=[];i=e._readSelections(n,i,l);var c=[];i=e._readSelections(n,i,c);var h=d.Ag(n,i);i+=4;for(var f=[],p=0;p<h;p++)i=u.q.read(n,i,f);return new e(r,o,a,s,l,c,f)}}]),e}(),g=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.label=t,this.code=n,this.model=i,this._data=p.create(i,o)}return(0,o.Z)(e,[{key:"type",get:function(){return 0}},{key:"resource",get:function(){return c.o.isUri(this.model)?this.model:this.model.uri}},{key:"toString",value:function(){return(this._data instanceof p?this._data:p.deserialize(this._data)).changes.map((function(e){return e.toString()})).join(", ")}},{key:"matchesResource",value:function(e){return(c.o.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}},{key:"setModel",value:function(e){this.model=e}},{key:"canAppend",value:function(e){return this.model===e&&this._data instanceof p}},{key:"append",value:function(e,t,n,i,r){this._data instanceof p&&this._data.append(e,t,n,i,r)}},{key:"close",value:function(){this._data instanceof p&&(this._data=this._data.serialize())}},{key:"open",value:function(){this._data instanceof p||(this._data=p.deserialize(this._data))}},{key:"undo",value:function(){if(c.o.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof p&&(this._data=this._data.serialize());var e=p.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}},{key:"redo",value:function(){if(c.o.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof p&&(this._data=this._data.serialize());var e=p.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}},{key:"heapSize",value:function(){return this._data instanceof p&&(this._data=this._data.serialize()),this._data.byteLength+168}}]),e}(),v=function(){function e(t,n,o){(0,r.Z)(this,e),this.label=t,this.code=n,this.type=1,this._isOpen=!0,this._editStackElementsArr=o.slice(0),this._editStackElementsMap=new Map;var a,s=(0,i.Z)(this._editStackElementsArr);try{for(s.s();!(a=s.n()).done;){var l=a.value,c=f(l.resource);this._editStackElementsMap.set(c,l)}}catch(u){s.e(u)}finally{s.f()}this._delegate=null}return(0,o.Z)(e,[{key:"resources",get:function(){return this._editStackElementsArr.map((function(e){return e.resource}))}},{key:"prepareUndoRedo",value:function(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}},{key:"matchesResource",value:function(e){var t=f(e);return this._editStackElementsMap.has(t)}},{key:"setModel",value:function(e){var t=f(c.o.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}},{key:"canAppend",value:function(e){if(!this._isOpen)return!1;var t=f(e.uri);return!!this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).canAppend(e)}},{key:"append",value:function(e,t,n,i,r){var o=f(e.uri);this._editStackElementsMap.get(o).append(e,t,n,i,r)}},{key:"close",value:function(){this._isOpen=!1}},{key:"open",value:function(){}},{key:"undo",value:function(){this._isOpen=!1;var e,t=(0,i.Z)(this._editStackElementsArr);try{for(t.s();!(e=t.n()).done;){e.value.undo()}}catch(n){t.e(n)}finally{t.f()}}},{key:"redo",value:function(){var e,t=(0,i.Z)(this._editStackElementsArr);try{for(t.s();!(e=t.n()).done;){e.value.redo()}}catch(n){t.e(n)}finally{t.f()}}},{key:"heapSize",value:function(e){var t=f(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}},{key:"split",value:function(){return this._editStackElementsArr}},{key:"toString",value:function(){var e,t=[],n=(0,i.Z)(this._editStackElementsArr);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push("".concat((0,h.EZ)(r.resource),": ").concat(r))}}catch(o){n.e(o)}finally{n.f()}return"{".concat(t.join(", "),"}")}}]),e}();function m(e){return"\n"===e.getEOL()?0:1}function y(e){return!!e&&(e instanceof g||e instanceof v)}var _=function(){function e(t,n){(0,r.Z)(this,e),this._model=t,this._undoRedoService=n}return(0,o.Z)(e,[{key:"pushStackElement",value:function(){var e=this._undoRedoService.getLastElement(this._model.uri);y(e)&&e.close()}},{key:"popStackElement",value:function(){var e=this._undoRedoService.getLastElement(this._model.uri);y(e)&&e.open()}},{key:"clear",value:function(){this._undoRedoService.removeElements(this._model.uri)}},{key:"_getOrCreateEditStackElement",value:function(e){var t=this._undoRedoService.getLastElement(this._model.uri);if(y(t)&&t.canAppend(this._model))return t;var n=new g(a.NC("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(n),n}},{key:"pushEOL",value:function(e){var t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],m(this._model),this._model.getAlternativeVersionId(),null)}},{key:"pushEditOperation",value:function(t,n,i){var r=this._getOrCreateEditStackElement(t),o=this._model.applyEdits(n,!0),a=e._computeCursorState(i,o),s=o.map((function(e,t){return{index:t,textChange:e.textChange}}));return s.sort((function(e,t){return e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition})),r.append(this._model,s.map((function(e){return e.textChange})),m(this._model),this._model.getAlternativeVersionId(),a),a}}],[{key:"_computeCursorState",value:function(e,t){try{return e?e(t):null}catch(n){return(0,s.dL)(n),null}}}]),e}()},99825:function(e,t,n){"use strict";n.d(t,{W:function(){return v},l:function(){return g}});var i=n(37762),r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(29671),c=n(32377),u=n(29349),d=n(80133),h=n(35508),f=n(15889),p=n(38050),g=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).textModel=e,o.languageConfigurationService=i,o}return(0,o.Z)(n,[{key:"getLanguageConfiguration",value:function(e){return this.languageConfigurationService.getLanguageConfiguration(e)}},{key:"_computeIndentLevel",value:function(e){return(0,f.q)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}},{key:"getActiveIndentGuide",value:function(e,t,n){var i=this;this.assertNotDisposed();var r=this.textModel.getLineCount();if(e<1||e>r)throw new Error("Illegal value for lineNumber");for(var o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,a=Boolean(o&&o.offSide),s=-2,l=-1,c=-2,u=-1,d=function(e){if(-1!==s&&(-2===s||s>e-1)){s=-1,l=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){s=t,l=n;break}}}if(-2===c){c=-1,u=-1;for(var o=e;o<r;o++){var a=i._computeIndentLevel(o);if(a>=0){c=o,u=a;break}}}},h=-2,f=-1,p=-2,g=-1,v=function(e){if(-2===h){h=-1,f=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){h=t,f=n;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,g=-1;for(var o=e;o<r;o++){var a=i._computeIndentLevel(o);if(a>=0){p=o,g=a;break}}}},m=0,y=!0,_=0,b=!0,C=0,S=0,w=0;y||b;w++){var k=e-w,x=e+w;w>1&&(k<1||k<t)&&(y=!1),w>1&&(x>r||x>n)&&(b=!1),w>5e4&&(y=!1,b=!1);var E=-1;if(y&&k>=1){var T=this._computeIndentLevel(k-1);T>=0?(c=k-1,u=T,E=Math.ceil(T/this.textModel.getOptions().indentSize)):(d(k),E=this._getIndentLevelForWhitespaceLine(a,l,u))}var N=-1;if(b&&x<=r){var I=this._computeIndentLevel(x-1);I>=0?(h=x-1,f=I,N=Math.ceil(I/this.textModel.getOptions().indentSize)):(v(x),N=this._getIndentLevelForWhitespaceLine(a,f,g))}if(0!==w){if(1===w){if(x<=r&&N>=0&&S+1===N){y=!1,m=x,_=x,C=N;continue}if(k>=1&&E>=0&&E-1===S){b=!1,m=k,_=k,C=E;continue}if(m=e,_=e,0===(C=S))return{startLineNumber:m,endLineNumber:_,indent:C}}y&&(E>=C?m=k:y=!1),b&&(N>=C?_=x:b=!1)}else S=E}return{startLineNumber:m,endLineNumber:_,indent:C}}},{key:"getLinesBracketGuides",value:function(e,t,n,r){for(var o,a=[],s=e;s<=t;s++)a.push([]);var u=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new d.e(e,1,t,this.textModel.getLineMaxColumn(t))),h=void 0;if(n&&u.length>0){var f=(e<=n.lineNumber&&n.lineNumber<=t?u:this.textModel.bracketPairs.getBracketPairsInRange(d.e.fromPositions(n))).filter((function(e){return d.e.strictContainsPosition(e.range,n)}));h=null===(o=(0,l.dF)(f,(function(e){return true})))||void 0===o?void 0:o.range}var g,m=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,y=new v,_=(0,i.Z)(u);try{for(_.s();!(g=_.n()).done;){var b=g.value;if(b.closingBracketRange){var C=h&&b.range.equalsRange(h);if(C||r.includeInactive){var S=y.getInlineClassName(b.nestingLevel,b.nestingLevelOfEqualBracketType,m)+(r.highlightActive&&C?" "+y.activeClassName:""),w=b.openingBracketRange.getStartPosition(),k=b.closingBracketRange.getStartPosition(),x=r.horizontalGuides===p.s6.Enabled||r.horizontalGuides===p.s6.EnabledForActive&&C;if(b.range.startLineNumber!==b.range.endLineNumber){var E=this.getVisibleColumnFromPosition(k),T=this.getVisibleColumnFromPosition(b.openingBracketRange.getStartPosition()),N=Math.min(T,E,b.minVisibleColumnIndentation+1),I=!1;c.LC(this.textModel.getLineContent(b.closingBracketRange.startLineNumber))<b.closingBracketRange.startColumn-1&&(I=!0);for(var D=Math.max(w.lineNumber,e),L=Math.min(k.lineNumber,t),O=I?1:0,R=D;R<L+O;R++)a[R-e].push(new p.UO(N,-1,S,null,R===w.lineNumber?w.column:-1,R===k.lineNumber?k.column:-1));x&&(w.lineNumber>=e&&T>N&&a[w.lineNumber-e].push(new p.UO(N,-1,S,new p.vW(!1,w.column),-1,-1)),k.lineNumber<=t&&E>N&&a[k.lineNumber-e].push(new p.UO(N,-1,S,new p.vW(!I,k.column),-1,-1)))}else x&&a[b.range.startLineNumber-e].push(new p.UO(-1,b.openingBracketRange.getEndPosition().column,S,new p.vW(!1,k.column),-1,-1))}}}}catch(P){_.e(P)}finally{_.f()}for(var A=0,M=a;A<M.length;A++){M[A].sort((function(e,t){return e.visibleColumn-t.visibleColumn}))}return a}},{key:"getVisibleColumnFromPosition",value:function(e){return u.i.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}},{key:"getLinesIndentGuides",value:function(e,t){this.assertNotDisposed();var n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");for(var i=this.textModel.getOptions(),r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,o=Boolean(r&&r.offSide),a=new Array(t-e+1),s=-2,l=-1,c=-2,u=-1,d=e;d<=t;d++){var h=d-e,f=this._computeIndentLevel(d-1);if(f>=0)s=d-1,l=f,a[h]=Math.ceil(f/i.indentSize);else{if(-2===s){s=-1,l=-1;for(var p=d-2;p>=0;p--){var g=this._computeIndentLevel(p);if(g>=0){s=p,l=g;break}}}if(-1!==c&&(-2===c||c<d-1)){c=-1,u=-1;for(var v=d;v<n;v++){var m=this._computeIndentLevel(v);if(m>=0){c=v,u=m;break}}}a[h]=this._getIndentLevelForWhitespaceLine(o,l,u)}}return a}},{key:"_getIndentLevelForWhitespaceLine",value:function(e,t,n){var i=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/i.indentSize):t===n||e?Math.ceil(n/i.indentSize):1+Math.floor(n/i.indentSize)}}]),n}(h.U),v=function(){function e(){(0,r.Z)(this,e),this.activeClassName="indent-active"}return(0,o.Z)(e,[{key:"getInlineClassName",value:function(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}},{key:"getInlineClassNameOfLevel",value:function(e){return"bracket-indent-guide lvl-".concat(e%30)}}]),e}()},33679:function(e,t,n){"use strict";n.d(t,{Ck:function(){return l},oQ:function(){return s}});var i=n(15671),r=n(43144),o=n(29671),a=n(54540),s=function(){function e(t){(0,i.Z)(this,e),this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return(0,r.Z)(e,[{key:"insertValues",value:function(e,t){e=(0,a.A)(e);var n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}},{key:"setValue",value:function(e,t){return e=(0,a.A)(e),t=(0,a.A)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}},{key:"removeValues",value:function(e,t){e=(0,a.A)(e),t=(0,a.A)(t);var n=this.values,i=this.prefixSum;if(e>=n.length)return!1;var r=n.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}},{key:"getTotalSum",value:function(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}},{key:"getPrefixSum",value:function(e){return e<0?0:(e=(0,a.A)(e),this._getPrefixSum(e))}},{key:"_getPrefixSum",value:function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}},{key:"getIndexOf",value:function(e){e=Math.floor(e),this.getTotalSum();for(var t=0,n=this.values.length-1,i=0,r=0,o=0;t<=n;)if(i=t+(n-t)/2|0,e<(o=(r=this.prefixSum[i])-this.values[i]))n=i-1;else{if(!(e>=r))break;t=i+1}return new c(i,e-o)}}]),e}(),l=function(){function e(t){(0,i.Z)(this,e),this._values=t,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}return(0,r.Z)(e,[{key:"getTotalSum",value:function(){return this._ensureValid(),this._indexBySum.length}},{key:"getPrefixSum",value:function(e){return this._ensureValid(),0===e?0:this._prefixSum[e-1]}},{key:"getIndexOf",value:function(e){this._ensureValid();var t=this._indexBySum[e],n=t>0?this._prefixSum[t-1]:0;return new c(t,e-n)}},{key:"removeValues",value:function(e,t){this._values.splice(e,t),this._invalidate(e)}},{key:"insertValues",value:function(e,t){this._values=(0,o.Zv)(this._values,e,t),this._invalidate(e)}},{key:"_invalidate",value:function(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}},{key:"_ensureValid",value:function(){if(!this._isValid){for(var e=this._validEndIndex+1,t=this._values.length;e<t;e++){var n=this._values[e],i=e>0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+n;for(var r=0;r<n;r++)this._indexBySum[i+r]=e}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}},{key:"setValue",value:function(e,t){this._values[e]!==t&&(this._values[e]=t,this._invalidate(e))}}]),e}(),c=(0,r.Z)((function e(t,n){(0,i.Z)(this,e),this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}))},70845:function(e,t,n){"use strict";n.d(t,{HS:function(){return Pt},qx:function(){return Zt},yO:function(){return Nt}});var i=n(37762),r=n(29439),o=n(97326),a=n(11752),s=n(61120),l=n(60136),c=n(27277),u=n(15671),d=n(43144),h=n(29671),f=n(62458),p=n(14173),g=n(73097),v=n(11860),m=n(32377),y=n(72112),_=n(37561),b=n(35643),C=n(38622),S=n(80133),w=n(23145),k=n(54589),x=n(72762),E=n(29662),T=n(36550),N=(0,d.Z)((function e(t,n,i,r){(0,u.Z)(this,e),this.range=t,this.nestingLevel=n,this.nestingLevelOfEqualBracketType=i,this.isInvalid=r})),I=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o,a,s,l){var c;return(0,u.Z)(this,n),(c=t.call(this,e,i,r,o,a,s)).minVisibleColumnIndentation=l,c}return(0,d.Z)(n)}(function(){function e(t,n,i,r,o,a){(0,u.Z)(this,e),this.range=t,this.openingBracketRange=n,this.closingBracketRange=i,this.nestingLevel=r,this.nestingLevelOfEqualBracketType=o,this.bracketPairNode=a}return(0,d.Z)(e,[{key:"openingBracketInfo",get:function(){return this.bracketPairNode.openingBracket.bracketInfo}}]),e}()),D=n(10235),L=n(36915),O=n(81172),R=n(96778),A=n(2679),M=n(31497),P=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){var r;if((0,u.Z)(this,n),(r=t.call(this)).textModel=e,r.getLanguageConfiguration=i,r.didChangeEmitter=new g.Q5,r.denseKeyProvider=new A.FE,r.brackets=new L.Z(r.denseKeyProvider,r.getLanguageConfiguration),r.onDidChange=r.didChangeEmitter.event,0===e.tokenization.backgroundTokenizationState){var o=r.brackets.getSingleLanguageBracketTokens(r.textModel.getLanguageId()),a=new M.g(r.textModel.getValue(),o);r.initialAstWithoutTokens=(0,R.w)(a,[],void 0,!0),r.astWithTokens=r.initialAstWithoutTokens}else 2===e.tokenization.backgroundTokenizationState?(r.initialAstWithoutTokens=void 0,r.astWithTokens=r.parseDocumentFromTextBuffer([],void 0,!1)):1===e.tokenization.backgroundTokenizationState&&(r.initialAstWithoutTokens=r.parseDocumentFromTextBuffer([],void 0,!0),r.astWithTokens=r.initialAstWithoutTokens);return r}return(0,d.Z)(n,[{key:"didLanguageChange",value:function(e){return this.brackets.didLanguageChange(e)}},{key:"handleDidChangeBackgroundTokenizationState",value:function(){if(2===this.textModel.tokenization.backgroundTokenizationState){var e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}},{key:"handleDidChangeTokens",value:function(e){var t=e.ranges.map((function(e){return new D.Q((0,O.Hg)(e.fromLineNumber-1,0),(0,O.Hg)(e.toLineNumber,0),(0,O.Hg)(e.toLineNumber-e.fromLineNumber+1,0))}));this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}},{key:"handleContentChanged",value:function(e){var t=e.changes.map((function(e){var t=S.e.lift(e.range);return new D.Q((0,O.PZ)(t.getStartPosition()),(0,O.PZ)(t.getEndPosition()),(0,O.oR)(e.text))})).reverse();this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(t,this.initialAstWithoutTokens,!1))}},{key:"parseDocumentFromTextBuffer",value:function(e,t,n){var i=t,r=new M.xH(this.textModel,this.brackets);return(0,R.w)(r,e,i,n)}},{key:"getBracketsInRange",value:function(e){var t=(0,O.Hg)(e.startLineNumber-1,e.startColumn-1),n=(0,O.Hg)(e.endLineNumber-1,e.endColumn-1),i=new Array,r=this.initialAstWithoutTokens||this.astWithTokens;return B(r,O.xl,r.length,t,n,i,0,new Map),i}},{key:"getBracketPairsInRange",value:function(e,t){var n=new Array,i=(0,O.PZ)(e.getStartPosition()),r=(0,O.PZ)(e.getEndPosition()),o=this.initialAstWithoutTokens||this.astWithTokens,a=new H(n,t,this.textModel);return z(o,O.xl,o.length,i,r,a,0,new Map),n}},{key:"getFirstBracketAfter",value:function(e){var t=this.initialAstWithoutTokens||this.astWithTokens;return F(t,O.xl,t.length,(0,O.PZ)(e))}},{key:"getFirstBracketBefore",value:function(e){var t=this.initialAstWithoutTokens||this.astWithTokens;return Z(t,O.xl,t.length,(0,O.PZ)(e))}}]),n}(v.JT);function Z(e,t,n,r){if(4===e.kind||2===e.kind){var o,a=[],s=(0,i.Z)(e.children);try{for(s.s();!(o=s.n()).done;){var l=o.value;n=(0,O.Ii)(t,l.length),a.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n}}catch(g){s.e(g)}finally{s.f()}for(var c=a.length-1;c>=0;c--){var u=a[c],d=u.nodeOffsetStart,h=u.nodeOffsetEnd;if((0,O.VR)(d,r)){var f=Z(e.children[c],d,h,r);if(f)return f}}return null}if(3===e.kind)return null;if(1===e.kind){var p=(0,O.Qw)(t,n);return{bracketInfo:e.bracketInfo,range:p}}return null}function F(e,t,n,r){if(4===e.kind||2===e.kind){var o,a=(0,i.Z)(e.children);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(n=(0,O.Ii)(t,s.length),(0,O.VR)(r,n)){var l=F(s,t,n,r);if(l)return l}t=n}}catch(u){a.e(u)}finally{a.f()}return null}if(3===e.kind)return null;if(1===e.kind){var c=(0,O.Qw)(t,n);return{bracketInfo:e.bracketInfo,range:c}}return null}function B(e,t,n,r,o,a,s,l){if(!(s>200))if(4===e.kind){var c,u=(0,i.Z)(e.children);try{for(u.s();!(c=u.n()).done;){var d=c.value;n=(0,O.Ii)(t,d.length),(0,O.By)(t,o)&&(0,O.Zq)(n,r)&&B(d,t,n,r,o,a,s,l),t=n}}catch(C){u.e(C)}finally{u.f()}}else if(2===e.kind){var h=0;if(l){var f=l.get(e.openingBracket.text);void 0===f&&(f=0),h=f,f++,l.set(e.openingBracket.text,f)}var p=e.openingBracket;if(n=(0,O.Ii)(t,p.length),(0,O.By)(t,o)&&(0,O.Zq)(n,r)){var g=(0,O.Qw)(t,n);a.push(new N(g,s,h,!e.closingBracket))}if(t=n,e.child){var v=e.child;n=(0,O.Ii)(t,v.length),(0,O.By)(t,o)&&(0,O.Zq)(n,r)&&B(v,t,n,r,o,a,s+1,l),t=n}if(e.closingBracket){var m=e.closingBracket;if(n=(0,O.Ii)(t,m.length),(0,O.By)(t,o)&&(0,O.Zq)(n,r)){var y=(0,O.Qw)(t,n);a.push(new N(y,s,h,!1))}t=n}null===l||void 0===l||l.set(e.openingBracket.text,h)}else if(3===e.kind){var _=(0,O.Qw)(t,n);a.push(new N(_,s-1,0,!0))}else if(1===e.kind){var b=(0,O.Qw)(t,n);a.push(new N(b,s-1,0,!1))}}var H=(0,d.Z)((function e(t,n,i){(0,u.Z)(this,e),this.result=t,this.includeMinIndentation=n,this.textModel=i}));function z(e,t,n,r,o,a,s,l){var c;if(!(s>200))if(2===e.kind){var u=0;if(l){var d=l.get(e.openingBracket.text);void 0===d&&(d=0),u=d,d++,l.set(e.openingBracket.text,d)}var h=(0,O.Ii)(t,e.openingBracket.length),f=-1;if(a.includeMinIndentation&&(f=e.computeMinIndentation(t,a.textModel)),a.result.push(new I((0,O.Qw)(t,n),(0,O.Qw)(t,h),e.closingBracket?(0,O.Qw)((0,O.Ii)(h,(null===(c=e.child)||void 0===c?void 0:c.length)||O.xl),n):void 0,s,u,e,f)),t=h,e.child){var p=e.child;n=(0,O.Ii)(t,p.length),(0,O.By)(t,o)&&(0,O.Zq)(n,r)&&z(p,t,n,r,o,a,s+1,l)}null===l||void 0===l||l.set(e.openingBracket.text,u)}else{var g,v=t,m=(0,i.Z)(e.children);try{for(m.s();!(g=m.n()).done;){var y=g.value,_=v;v=(0,O.Ii)(v,y.length),(0,O.By)(_,o)&&(0,O.By)(r,v)&&z(y,_,v,r,o,a,s,l)}}catch(b){m.e(b)}finally{m.f()}}}var j=n(89575),V=n(20598),W=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){var r;return(0,u.Z)(this,n),(r=t.call(this)).textModel=e,r.languageConfigurationService=i,r.bracketPairsTree=r._register(new v.XK),r.onDidChangeEmitter=new g.Q5,r.onDidChange=r.onDidChangeEmitter.event,r.bracketsRequested=!1,r._register(r.languageConfigurationService.onDidChange((function(e){var t;e.languageId&&!(null===(t=r.bracketPairsTree.value)||void 0===t?void 0:t.object.didLanguageChange(e.languageId))||(r.bracketPairsTree.clear(),r.updateBracketPairsTree())}))),r}return(0,d.Z)(n,[{key:"canBuildAST",get:function(){return this.textModel.getValueLength()<=5e6}},{key:"handleDidChangeOptions",value:function(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}},{key:"handleDidChangeLanguage",value:function(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}},{key:"handleDidChangeContent",value:function(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleContentChanged(e)}},{key:"handleDidChangeBackgroundTokenizationState",value:function(){var e;null===(e=this.bracketPairsTree.value)||void 0===e||e.object.handleDidChangeBackgroundTokenizationState()}},{key:"handleDidChangeTokens",value:function(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleDidChangeTokens(e)}},{key:"updateBracketPairsTree",value:function(){var e,t,n=this;if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){var i=new v.SL;this.bracketPairsTree.value=(e=i.add(new P(this.textModel,(function(e){return n.languageConfigurationService.getLanguageConfiguration(e)}))),t=i,{object:e,dispose:function(){return null===t||void 0===t?void 0:t.dispose()}}),i.add(this.bracketPairsTree.value.object.onDidChange((function(e){return n.onDidChangeEmitter.fire(e)}))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}},{key:"getBracketPairsInRange",value:function(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!1))||[]}},{key:"getBracketPairsInRangeWithMinIndentation",value:function(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!0))||[]}},{key:"getBracketsInRange",value:function(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketsInRange(e))||[]}},{key:"findMatchingBracketUp",value:function(e,t,n){var i=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(i.lineNumber,i.column);if(this.canBuildAST){var o=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew.getClosingBracketInfo(e);if(!o)return null;var a=(0,h.dF)(this.getBracketPairsInRange(S.e.fromPositions(t,t))||[],(function(e){return o.closes(e.openingBracketInfo)}));return a?a.openingBracketRange:null}var s=e.toLowerCase(),l=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!l)return null;var c=l.textIsBracket[s];return c?K(this._findMatchingBracketUp(c,i,U(n))):null}},{key:"matchBracket",value:function(e,t){if(this.canBuildAST){var n=(0,h.jV)(this.getBracketPairsInRange(S.e.fromPositions(e,e)).filter((function(t){return void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e))})),(0,h.tT)((function(t){return t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange}),S.e.compareRangesUsingStarts));return n?[n.openingBracketRange,n.closingBracketRange]:null}var i=U(t);return this._matchBracket(this.textModel.validatePosition(e),i)}},{key:"_establishBracketSearchOffsets",value:function(e,t,n,i){for(var r=t.getCount(),o=t.getLanguageId(i),a=Math.max(0,e.column-1-n.maxBracketLength),s=i-1;s>=0;s--){var l=t.getEndOffset(s);if(l<=a)break;if((0,j.Bu)(t.getStandardTokenType(s))||t.getLanguageId(s)!==o){a=l;break}}for(var c=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength),u=i+1;u<r;u++){var d=t.getStartOffset(u);if(d>=c)break;if((0,j.Bu)(t.getStandardTokenType(u))||t.getLanguageId(u)!==o){c=d;break}}return{searchStartOffset:a,searchEndOffset:c}}},{key:"_matchBracket",value:function(e,t){var n=e.lineNumber,i=this.textModel.tokenization.getLineTokens(n),r=this.textModel.getLineContent(n),o=i.findTokenIndexAtOffset(e.column-1);if(o<0)return null;var a=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(o)).brackets;if(a&&!(0,j.Bu)(i.getStandardTokenType(o))){for(var s=this._establishBracketSearchOffsets(e,i,a,o),l=s.searchStartOffset,c=s.searchEndOffset,u=null;;){var d=V.Vr.findNextBracketInRange(a.forwardRegex,n,r,l,c);if(!d)break;if(d.startColumn<=e.column&&e.column<=d.endColumn){var h=r.substring(d.startColumn-1,d.endColumn-1).toLowerCase(),f=this._matchFoundBracket(d,a.textIsBracket[h],a.textIsOpenBracket[h],t);if(f){if(f instanceof G)return null;u=f}}l=d.endColumn-1}if(u)return u}if(o>0&&i.getStartOffset(o)===e.column-1){var p=o-1,g=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(p)).brackets;if(g&&!(0,j.Bu)(i.getStandardTokenType(p))){var v=this._establishBracketSearchOffsets(e,i,g,p),m=v.searchStartOffset,y=v.searchEndOffset,_=V.Vr.findPrevBracketInRange(g.reversedRegex,n,r,m,y);if(_&&_.startColumn<=e.column&&e.column<=_.endColumn){var b=r.substring(_.startColumn-1,_.endColumn-1).toLowerCase(),C=this._matchFoundBracket(_,g.textIsBracket[b],g.textIsOpenBracket[b],t);if(C)return C instanceof G?null:C}}}return null}},{key:"_matchFoundBracket",value:function(e,t,n,i){if(!t)return null;var r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof G?r:[e,r]:null}},{key:"_findMatchingBracketUp",value:function(e,t,n){for(var i=e.languageId,r=e.reversedRegex,o=-1,a=0,s=function(t,i,s,l){for(;;){if(n&&++a%100===0&&!n())return G.INSTANCE;var c=V.Vr.findPrevBracketInRange(r,t,i,s,l);if(!c)break;var u=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(u)?o++:e.isClose(u)&&o--,0===o)return c;l=c.startColumn-1}return null},l=t.lineNumber;l>=1;l--){var c=this.textModel.tokenization.getLineTokens(l),u=c.getCount(),d=this.textModel.getLineContent(l),h=u-1,f=d.length,p=d.length;l===t.lineNumber&&(h=c.findTokenIndexAtOffset(t.column-1),f=t.column-1,p=t.column-1);for(var g=!0;h>=0;h--){var v=c.getLanguageId(h)===i&&!(0,j.Bu)(c.getStandardTokenType(h));if(v)g?f=c.getStartOffset(h):(f=c.getStartOffset(h),p=c.getEndOffset(h));else if(g&&f!==p){var m=s(l,d,f,p);if(m)return m}g=v}if(g&&f!==p){var y=s(l,d,f,p);if(y)return y}}return null}},{key:"_findMatchingBracketDown",value:function(e,t,n){for(var i=e.languageId,r=e.forwardRegex,o=1,a=0,s=function(t,i,s,l){for(;;){if(n&&++a%100===0&&!n())return G.INSTANCE;var c=V.Vr.findNextBracketInRange(r,t,i,s,l);if(!c)break;var u=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(u)?o++:e.isClose(u)&&o--,0===o)return c;s=c.endColumn-1}return null},l=this.textModel.getLineCount(),c=t.lineNumber;c<=l;c++){var u=this.textModel.tokenization.getLineTokens(c),d=u.getCount(),h=this.textModel.getLineContent(c),f=0,p=0,g=0;c===t.lineNumber&&(f=u.findTokenIndexAtOffset(t.column-1),p=t.column-1,g=t.column-1);for(var v=!0;f<d;f++){var m=u.getLanguageId(f)===i&&!(0,j.Bu)(u.getStandardTokenType(f));if(m)v||(p=u.getStartOffset(f)),g=u.getEndOffset(f);else if(v&&p!==g){var y=s(c,h,p,g);if(y)return y}v=m}if(v&&p!==g){var _=s(c,h,p,g);if(_)return _}}return null}},{key:"findPrevBracket",value:function(e){var t,n=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getFirstBracketBefore(n))||null;for(var i=null,r=null,o=null,a=n.lineNumber;a>=1;a--){var s=this.textModel.tokenization.getLineTokens(a),l=s.getCount(),c=this.textModel.getLineContent(a),u=l-1,d=c.length,h=c.length;if(a===n.lineNumber){u=s.findTokenIndexAtOffset(n.column-1),d=n.column-1,h=n.column-1;var f=s.getLanguageId(u);i!==f&&(i=f,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,o=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}for(var p=!0;u>=0;u--){var g=s.getLanguageId(u);if(i!==g){if(r&&o&&p&&d!==h){var v=V.Vr.findPrevBracketInRange(r.reversedRegex,a,c,d,h);if(v)return this._toFoundBracket(o,v);p=!1}i=g,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,o=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}var m=!!r&&!(0,j.Bu)(s.getStandardTokenType(u));if(m)p?d=s.getStartOffset(u):(d=s.getStartOffset(u),h=s.getEndOffset(u));else if(o&&r&&p&&d!==h){var y=V.Vr.findPrevBracketInRange(r.reversedRegex,a,c,d,h);if(y)return this._toFoundBracket(o,y)}p=m}if(o&&r&&p&&d!==h){var _=V.Vr.findPrevBracketInRange(r.reversedRegex,a,c,d,h);if(_)return this._toFoundBracket(o,_)}}return null}},{key:"findNextBracket",value:function(e){var t,n=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getFirstBracketAfter(n))||null;for(var i=this.textModel.getLineCount(),r=null,o=null,a=null,s=n.lineNumber;s<=i;s++){var l=this.textModel.tokenization.getLineTokens(s),c=l.getCount(),u=this.textModel.getLineContent(s),d=0,h=0,f=0;if(s===n.lineNumber){d=l.findTokenIndexAtOffset(n.column-1),h=n.column-1,f=n.column-1;var p=l.getLanguageId(d);r!==p&&(r=p,o=this.languageConfigurationService.getLanguageConfiguration(r).brackets,a=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew)}for(var g=!0;d<c;d++){var v=l.getLanguageId(d);if(r!==v){if(a&&o&&g&&h!==f){var m=V.Vr.findNextBracketInRange(o.forwardRegex,s,u,h,f);if(m)return this._toFoundBracket(a,m);g=!1}r=v,o=this.languageConfigurationService.getLanguageConfiguration(r).brackets,a=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew}var y=!!o&&!(0,j.Bu)(l.getStandardTokenType(d));if(y)g||(h=l.getStartOffset(d)),f=l.getEndOffset(d);else if(a&&o&&g&&h!==f){var _=V.Vr.findNextBracketInRange(o.forwardRegex,s,u,h,f);if(_)return this._toFoundBracket(a,_)}g=y}if(a&&o&&g&&h!==f){var b=V.Vr.findNextBracketInRange(o.forwardRegex,s,u,h,f);if(b)return this._toFoundBracket(a,b)}}return null}},{key:"findEnclosingBrackets",value:function(e,t){var n=this,i=this.textModel.validatePosition(e);if(this.canBuildAST){var r=S.e.fromPositions(i),o=(0,h.dF)(this.getBracketPairsInRange(S.e.fromPositions(i,i)),(function(e){return void 0!==e.closingBracketRange&&e.range.strictContainsRange(r)}));return o?[o.openingBracketRange,o.closingBracketRange]:null}for(var a=U(t),s=this.textModel.getLineCount(),l=new Map,c=[],u=function(e,t){if(!l.has(e)){for(var n=[],i=0,r=t?t.brackets.length:0;i<r;i++)n[i]=0;l.set(e,n)}c=l.get(e)},d=0,f=function(e,t,i,r,o){for(;;){if(a&&++d%100===0&&!a())return G.INSTANCE;var s=V.Vr.findNextBracketInRange(e.forwardRegex,t,i,r,o);if(!s)break;var l=i.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),u=e.textIsBracket[l];if(u&&(u.isOpen(l)?c[u.index]++:u.isClose(l)&&c[u.index]--,-1===c[u.index]))return n._matchFoundBracket(s,u,!1,a);r=s.endColumn-1}return null},p=null,g=null,v=i.lineNumber;v<=s;v++){var m=this.textModel.tokenization.getLineTokens(v),y=m.getCount(),_=this.textModel.getLineContent(v),b=0,C=0,w=0;if(v===i.lineNumber){b=m.findTokenIndexAtOffset(i.column-1),C=i.column-1,w=i.column-1;var k=m.getLanguageId(b);p!==k&&u(p=k,g=this.languageConfigurationService.getLanguageConfiguration(p).brackets)}for(var x=!0;b<y;b++){var E=m.getLanguageId(b);if(p!==E){if(g&&x&&C!==w){var T=f(g,v,_,C,w);if(T)return K(T);x=!1}u(p=E,g=this.languageConfigurationService.getLanguageConfiguration(p).brackets)}var N=!!g&&!(0,j.Bu)(m.getStandardTokenType(b));if(N)x||(C=m.getStartOffset(b)),w=m.getEndOffset(b);else if(g&&x&&C!==w){var I=f(g,v,_,C,w);if(I)return K(I)}x=N}if(g&&x&&C!==w){var D=f(g,v,_,C,w);if(D)return K(D)}}return null}},{key:"_toFoundBracket",value:function(e,t){if(!t)return null;var n=this.textModel.getValueInRange(t);n=n.toLowerCase();var i=e.getBracketInfo(n);return i?{range:t,bracketInfo:i}:null}}]),n}(v.JT);function U(e){if("undefined"===typeof e)return function(){return!0};var t=Date.now();return function(){return Date.now()-t<=e}}var G=(0,d.Z)((function e(){(0,u.Z)(this,e),this._searchCanceledBrand=void 0}));function K(e){return e instanceof G?null:e}G.INSTANCE=new G;var Y=n(29700),q=n(64014),$=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,u.Z)(this,n),(i=t.call(this)).textModel=e,i.colorProvider=new X,i.onDidChangeEmitter=new g.Q5,i.onDidChange=i.onDidChangeEmitter.event,i.colorizationOptions=e.getOptions().bracketPairColorizationOptions,i._register(e.bracketPairs.onDidChange((function(e){i.onDidChangeEmitter.fire()}))),i}return(0,d.Z)(n,[{key:"handleDidChangeOptions",value:function(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}},{key:"getDecorationsInRange",value:function(e,t,n){if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];var r,o=new Array,a=this.textModel.bracketPairs.getBracketsInRange(e),s=(0,i.Z)(a);try{for(s.s();!(r=s.n()).done;){var l=r.value;o.push({id:"bracket".concat(l.range.toString(),"-").concat(l.nestingLevel),options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(l,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:l.range})}}catch(c){s.e(c)}finally{s.f()}return o}},{key:"getAllDecorations",value:function(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new S.e(1,1,this.textModel.getLineCount(),1),e,t):[]}}]),n}(v.JT),X=function(){function e(){(0,u.Z)(this,e),this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}return(0,d.Z)(e,[{key:"getInlineClassName",value:function(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}},{key:"getInlineClassNameOfLevel",value:function(e){return"bracket-highlighting-".concat(e%30)}}]),e}();(0,q.Ic)((function(e,t){var n=[Y.zJ,Y.Vs,Y.CE,Y.UP,Y.r0,Y.m1],i=new X;t.addRule(".monaco-editor .".concat(i.unexpectedClosingBracketClassName," { color: ").concat(e.getColor(Y.ts),"; }"));for(var r=n.map((function(t){return e.getColor(t)})).filter((function(e){return!!e})).filter((function(e){return!e.isTransparent()})),o=0;o<30;o++){var a=r[o%r.length];t.addRule(".monaco-editor .".concat(i.getInlineClassNameOfLevel(o)," { color: ").concat(a,"; }"))}}));var Q=n(1169),J=n(99825),ee=(0,d.Z)((function e(){(0,u.Z)(this,e),this.spacesDiff=0,this.looksLikeAlignment=!1}));function te(e,t,n,i,r){var o;for(r.spacesDiff=0,r.looksLikeAlignment=!1,o=0;o<t&&o<i;o++){if(e.charCodeAt(o)!==n.charCodeAt(o))break}for(var a=0,s=0,l=o;l<t;l++){32===e.charCodeAt(l)?a++:s++}for(var c=0,u=0,d=o;d<i;d++){32===n.charCodeAt(d)?c++:u++}if(!(a>0&&s>0)&&!(c>0&&u>0)){var h=Math.abs(s-u),f=Math.abs(a-c);if(0===h)return r.spacesDiff=f,void(f>0&&0<=c-1&&c-1<e.length&&c<n.length&&32!==n.charCodeAt(c)&&32===e.charCodeAt(c-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));f%h!==0||(r.spacesDiff=f/h)}}function ne(e,t,n){for(var i=Math.min(e.getLineCount(),1e4),r=0,o=0,a="",s=0,l=[0,0,0,0,0,0,0,0,0],c=new ee,u=1;u<=i;u++){for(var d=e.getLineLength(u),h=e.getLineContent(u),f=d<=65536,p=!1,g=0,v=0,m=0,y=0,_=d;y<_;y++){var b=f?h.charCodeAt(y):e.getLineCharCode(u,y);if(9===b)m++;else{if(32!==b){p=!0,g=y;break}v++}}if(p&&(m>0?r++:v>1&&o++,te(a,s,h,g,c),!c.looksLikeAlignment||n&&t===c.spacesDiff)){var C=c.spacesDiff;C<=8&&l[C]++,a=h,s=g}}var S=n;r!==o&&(S=r<o);var w=t;if(S){var k=S?0:.1*i;[2,4,6,8,3,5,7].forEach((function(e){var t=l[e];t>k&&(k=t,w=e)})),4===w&&l[4]>0&&l[2]>0&&l[2]>=l[4]/2&&(w=2)}return{insertSpaces:S,tabSize:w}}function ie(e){return(1&e.metadata)>>>0}function re(e,t){e.metadata=254&e.metadata|t<<0}function oe(e){return(2&e.metadata)>>>1===1}function ae(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function se(e){return(4&e.metadata)>>>2===1}function le(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function ce(e,t){e.metadata=231&e.metadata|t<<3}function ue(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}var de=function(){function e(t,n,i){(0,u.Z)(this,e),this.metadata=0,this.parent=this,this.left=this,this.right=this,re(this,1),this.start=n,this.end=i,this.delta=0,this.maxEnd=i,this.id=t,this.ownerId=0,this.options=null,le(this,!1),ce(this,1),ue(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=n,this.cachedAbsoluteEnd=i,this.range=null,ae(this,!1)}return(0,d.Z)(e,[{key:"reset",value:function(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}},{key:"setOptions",value:function(e){this.options=e;var t=this.options.className;le(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),ce(this,this.options.stickiness),ue(this,this.options.collapseOnReplaceEdit)}},{key:"setCachedOffsets",value:function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}},{key:"detach",value:function(){this.parent=null,this.left=null,this.right=null}}]),e}(),he=new de(null,0,0);he.parent=he,he.left=he,he.right=he,re(he,0);var fe=function(){function e(){(0,u.Z)(this,e),this.root=he,this.requestNormalizeDelta=!1}return(0,d.Z)(e,[{key:"intervalSearch",value:function(e,t,n,i,r){return this.root===he?[]:function(e,t,n,i,r,o){var a=e.root,s=0,l=0,c=0,u=[],d=0;for(;a!==he;)if(oe(a))ae(a.left,!1),ae(a.right,!1),a===a.parent.right&&(s-=a.parent.delta),a=a.parent;else{if(!oe(a.left)){if(s+a.maxEnd<t){ae(a,!0);continue}if(a.left!==he){a=a.left;continue}}if((l=s+a.start)>n)ae(a,!0);else{if((c=s+a.end)>=t){a.setCachedOffsets(l,c,o);var h=!0;i&&a.ownerId&&a.ownerId!==i&&(h=!1),r&&se(a)&&(h=!1),h&&(u[d++]=a)}ae(a,!0),a.right===he||oe(a.right)||(s+=a.delta,a=a.right)}}return ae(e.root,!1),u}(this,e,t,n,i,r)}},{key:"search",value:function(e,t,n){return this.root===he?[]:function(e,t,n,i){var r=e.root,o=0,a=0,s=0,l=[],c=0;for(;r!==he;)if(oe(r))ae(r.left,!1),ae(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),r=r.parent;else if(r.left===he||oe(r.left)){a=o+r.start,s=o+r.end,r.setCachedOffsets(a,s,i);var u=!0;t&&r.ownerId&&r.ownerId!==t&&(u=!1),n&&se(r)&&(u=!1),u&&(l[c++]=r),ae(r,!0),r.right===he||oe(r.right)||(o+=r.delta,r=r.right)}else r=r.left;return ae(e.root,!1),l}(this,e,t,n)}},{key:"collectNodesFromOwner",value:function(e){return function(e,t){var n=e.root,i=[],r=0;for(;n!==he;)oe(n)?(ae(n.left,!1),ae(n.right,!1),n=n.parent):n.left===he||oe(n.left)?(n.ownerId===t&&(i[r++]=n),ae(n,!0),n.right===he||oe(n.right)||(n=n.right)):n=n.left;return ae(e.root,!1),i}(this,e)}},{key:"collectNodesPostOrder",value:function(){return function(e){var t=e.root,n=[],i=0;for(;t!==he;)oe(t)?(ae(t.left,!1),ae(t.right,!1),t=t.parent):t.left===he||oe(t.left)?t.right===he||oe(t.right)?(n[i++]=t,ae(t,!0)):t=t.right:t=t.left;return ae(e.root,!1),n}(this)}},{key:"insert",value:function(e){ve(this,e),this._normalizeDeltaIfNecessary()}},{key:"delete",value:function(e){me(this,e),this._normalizeDeltaIfNecessary()}},{key:"resolveNode",value:function(e,t){for(var n=e,i=0;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;var r=n.start+i,o=n.end+i;n.setCachedOffsets(r,o,t)}},{key:"acceptReplace",value:function(e,t,n,i){for(var r=function(e,t,n){var i=e.root,r=0,o=0,a=0,s=[],l=0;for(;i!==he;)if(oe(i))ae(i.left,!1),ae(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!oe(i.left)){if(r+i.maxEnd<t){ae(i,!0);continue}if(i.left!==he){i=i.left;continue}}(o=r+i.start)>n?ae(i,!0):((a=r+i.end)>=t&&(i.setCachedOffsets(o,a,0),s[l++]=i),ae(i,!0),i.right===he||oe(i.right)||(r+=i.delta,i=i.right))}return ae(e.root,!1),s}(this,e,e+t),o=0,a=r.length;o<a;o++){me(this,r[o])}this._normalizeDeltaIfNecessary(),function(e,t,n,i){var r=e.root,o=0,a=i-(n-t);for(;r!==he;)if(oe(r))ae(r.left,!1),ae(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),Se(r),r=r.parent;else{if(!oe(r.left)){if(o+r.maxEnd<t){ae(r,!0);continue}if(r.left!==he){r=r.left;continue}}o+r.start>n?(r.start+=a,r.end+=a,r.delta+=a,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),ae(r,!0)):(ae(r,!0),r.right===he||oe(r.right)||(o+=r.delta,r=r.right))}ae(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(var s=0,l=r.length;s<l;s++){var c=r[s];c.start=c.cachedAbsoluteStart,c.end=c.cachedAbsoluteEnd,ge(c,e,e+t,n,i),c.maxEnd=c.end,ve(this,c)}this._normalizeDeltaIfNecessary()}},{key:"_normalizeDeltaIfNecessary",value:function(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){var t=e.root,n=0;for(;t!==he;)t.left===he||oe(t.left)?t.right===he||oe(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,Se(t),ae(t,!0),ae(t.left,!1),ae(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;ae(e.root,!1)}(this))}}]),e}();function pe(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function ge(e,t,n,i,r){var o=function(e){return(24&e.metadata)>>>3}(e),a=0===o||2===o,s=1===o||2===o,l=n-t,c=i,u=Math.min(l,c),d=e.start,h=!1,f=e.end,p=!1;t<=d&&f<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,h=!0,e.end=t,p=!0);var g=r?1:l>0?2:0;if(!h&&pe(d,a,t,g)&&(h=!0),!p&&pe(f,s,t,g)&&(p=!0),u>0&&!r){var v=l>c?2:0;!h&&pe(d,a,t+u,v)&&(h=!0),!p&&pe(f,s,t+u,v)&&(p=!0)}var m=r?1:0;!h&&pe(d,a,n,m)&&(e.start=t+c,h=!0),!p&&pe(f,s,n,m)&&(e.end=t+c,p=!0);var y=c-l;h||(e.start=Math.max(0,d+y)),p||(e.end=Math.max(0,f+y)),e.start>e.end&&(e.end=e.start)}function ve(e,t){if(e.root===he)return t.parent=he,t.left=he,t.right=he,re(t,0),e.root=t,e.root;!function(e,t){var n=0,i=e.root,r=t.start,o=t.end;for(;;){if(ke(r,o,i.start+n,i.end+n)<0){if(i.left===he){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===he){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=he,t.right=he,re(t,1)}(e,t),we(t.parent);for(var n=t;n!==e.root&&1===ie(n.parent);)if(n.parent===n.parent.parent.left){var i=n.parent.parent.right;1===ie(i)?(re(n.parent,0),re(i,0),re(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&_e(e,n=n.parent),re(n.parent,0),re(n.parent.parent,1),be(e,n.parent.parent))}else{var r=n.parent.parent.left;1===ie(r)?(re(n.parent,0),re(r,0),re(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&be(e,n=n.parent),re(n.parent,0),re(n.parent.parent,1),_e(e,n.parent.parent))}return re(e.root,0),t}function me(e,t){var n,i;if(t.left===he?(i=t,(n=t.right).delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===he?(n=t.left,i=t):((n=(i=function(e){for(;e.left!==he;)e=e.left;return e}(t.right)).right).start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,re(n,0),t.detach(),ye(),Se(n),void(e.root.parent=he);var r,o=1===ie(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,re(i,ie(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==he&&(i.left.parent=i),i.right!==he&&(i.right.parent=i)),t.detach(),o)return we(n.parent),i!==t&&(we(i),we(i.parent)),void ye();for(we(n),we(n.parent),i!==t&&(we(i),we(i.parent));n!==e.root&&0===ie(n);)n===n.parent.left?(1===ie(r=n.parent.right)&&(re(r,0),re(n.parent,1),_e(e,n.parent),r=n.parent.right),0===ie(r.left)&&0===ie(r.right)?(re(r,1),n=n.parent):(0===ie(r.right)&&(re(r.left,0),re(r,1),be(e,r),r=n.parent.right),re(r,ie(n.parent)),re(n.parent,0),re(r.right,0),_e(e,n.parent),n=e.root)):(1===ie(r=n.parent.left)&&(re(r,0),re(n.parent,1),be(e,n.parent),r=n.parent.left),0===ie(r.left)&&0===ie(r.right)?(re(r,1),n=n.parent):(0===ie(r.left)&&(re(r.right,0),re(r,1),_e(e,r),r=n.parent.left),re(r,ie(n.parent)),re(n.parent,0),re(r.left,0),be(e,n.parent),n=e.root));re(n,0),ye()}function ye(){he.parent=he,he.delta=0,he.start=0,he.end=0}function _e(e,t){var n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==he&&(n.left.parent=t),n.parent=t.parent,t.parent===he?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,Se(t),Se(n)}function be(e,t){var n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==he&&(n.right.parent=t),n.parent=t.parent,t.parent===he?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,Se(t),Se(n)}function Ce(e){var t=e.end;if(e.left!==he){var n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==he){var i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function Se(e){e.maxEnd=Ce(e)}function we(e){for(;e!==he;){var t=Ce(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function ke(e,t,n,i){return e===n?t-i:e-n}var xe=function(){function e(t,n){(0,u.Z)(this,e),this.piece=t,this.color=n,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return(0,d.Z)(e,[{key:"next",value:function(){if(this.right!==Ee)return Te(this.right);for(var e=this;e.parent!==Ee&&e.parent.left!==e;)e=e.parent;return e.parent===Ee?Ee:e.parent}},{key:"prev",value:function(){if(this.left!==Ee)return Ne(this.left);for(var e=this;e.parent!==Ee&&e.parent.right!==e;)e=e.parent;return e.parent===Ee?Ee:e.parent}},{key:"detach",value:function(){this.parent=null,this.left=null,this.right=null}}]),e}(),Ee=new xe(null,0);function Te(e){for(;e.left!==Ee;)e=e.left;return e}function Ne(e){for(;e.right!==Ee;)e=e.right;return e}function Ie(e){return e===Ee?0:e.size_left+e.piece.length+Ie(e.right)}function De(e){return e===Ee?0:e.lf_left+e.piece.lineFeedCnt+De(e.right)}function Le(){Ee.parent=Ee}function Oe(e,t){var n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==Ee&&(n.left.parent=t),n.parent=t.parent,t.parent===Ee?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function Re(e,t){var n=t.left;t.left=n.right,n.right!==Ee&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===Ee?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Ae(e,t){var n,i;if(n=t.left===Ee?(i=t).right:t.right===Ee?(i=t).left:(i=Te(t.right)).right,i===e.root)return e.root=n,n.color=0,t.detach(),Le(),void(e.root.parent=Ee);var r=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,Ze(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,Ze(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Ee&&(i.left.parent=i),i.right!==Ee&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,Ze(e,i)),t.detach(),n.parent.left===n){var o=Ie(n),a=De(n);if(o!==n.parent.size_left||a!==n.parent.lf_left){var s=o-n.parent.size_left,l=a-n.parent.lf_left;n.parent.size_left=o,n.parent.lf_left=a,Pe(e,n.parent,s,l)}}if(Ze(e,n.parent),r)Le();else{for(var c;n!==e.root&&0===n.color;)n===n.parent.left?(1===(c=n.parent.right).color&&(c.color=0,n.parent.color=1,Oe(e,n.parent),c=n.parent.right),0===c.left.color&&0===c.right.color?(c.color=1,n=n.parent):(0===c.right.color&&(c.left.color=0,c.color=1,Re(e,c),c=n.parent.right),c.color=n.parent.color,n.parent.color=0,c.right.color=0,Oe(e,n.parent),n=e.root)):(1===(c=n.parent.left).color&&(c.color=0,n.parent.color=1,Re(e,n.parent),c=n.parent.left),0===c.left.color&&0===c.right.color?(c.color=1,n=n.parent):(0===c.left.color&&(c.right.color=0,c.color=1,Oe(e,c),c=n.parent.left),c.color=n.parent.color,n.parent.color=0,c.left.color=0,Re(e,n.parent),n=e.root));n.color=0,Le()}}function Me(e,t){for(Ze(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){var n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Oe(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Re(e,t.parent.parent))}else{var i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Re(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Oe(e,t.parent.parent))}e.root.color=0}function Pe(e,t,n,i){for(;t!==e.root&&t!==Ee;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function Ze(e,t){var n,i;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=Ie((t=t.parent).left)-t.size_left,i=De(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}Ee.parent=Ee,Ee.left=Ee,Ee.right=Ee,Ee.color=0;var Fe=n(25207),Be=65535;function He(e){var t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}var ze=(0,d.Z)((function e(t,n,i,r,o){(0,u.Z)(this,e),this.lineStarts=t,this.cr=n,this.lf=i,this.crlf=r,this.isBasicASCII=o}));function je(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[0],i=1,r=0,o=e.length;r<o;r++){var a=e.charCodeAt(r);13===a?r+1<o&&10===e.charCodeAt(r+1)?(n[i++]=r+2,r++):n[i++]=r+1:10===a&&(n[i++]=r+1)}return t?He(n):n}var Ve=(0,d.Z)((function e(t,n,i,r,o){(0,u.Z)(this,e),this.bufferIndex=t,this.start=n,this.end=i,this.lineFeedCnt=r,this.length=o})),We=(0,d.Z)((function e(t,n){(0,u.Z)(this,e),this.buffer=t,this.lineStarts=n})),Ue=function(){function e(t,n){var i=this;(0,u.Z)(this,e),this._pieces=[],this._tree=t,this._BOM=n,this._index=0,t.root!==Ee&&t.iterate(t.root,(function(e){return e!==Ee&&i._pieces.push(e.piece),!0}))}return(0,d.Z)(e,[{key:"read",value:function(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}]),e}(),Ge=function(){function e(t){(0,u.Z)(this,e),this._limit=t,this._cache=[]}return(0,d.Z)(e,[{key:"get",value:function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}},{key:"get2",value:function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}},{key:"set",value:function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}},{key:"validate",value:function(e){for(var t=!1,n=this._cache,r=0;r<n.length;r++){var o=n[r];(null===o.node.parent||o.nodeStartOffset>=e)&&(n[r]=null,t=!0)}if(t){var a,s=[],l=(0,i.Z)(n);try{for(l.s();!(a=l.n()).done;){var c=a.value;null!==c&&s.push(c)}}catch(u){l.e(u)}finally{l.f()}this._cache=s}}}]),e}(),Ke=function(){function e(t,n,i){(0,u.Z)(this,e),this.create(t,n,i)}return(0,d.Z)(e,[{key:"create",value:function(e,t,n){this._buffers=[new We("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Ee,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;for(var i=null,r=0,o=e.length;r<o;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=je(e[r].buffer));var a=new Ve(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,a)}this._searchCache=new Ge(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}},{key:"normalizeEOL",value:function(e){var t=this,n=65535-Math.floor(21845),i=2*n,r="",o=0,a=[];if(this.iterate(this.root,(function(s){var l=t.getNodeContent(s),c=l.length;if(o<=n||o+c<i)return r+=l,o+=c,!0;var u=r.replace(/\r\n|\r|\n/g,e);return a.push(new We(u,je(u))),r=l,o=c,!0})),o>0){var s=r.replace(/\r\n|\r|\n/g,e);a.push(new We(s,je(s)))}this.create(a,e,!0)}},{key:"getEOL",value:function(){return this._EOL}},{key:"setEOL",value:function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}},{key:"createSnapshot",value:function(e){return new Ue(this,e)}},{key:"getOffsetAt",value:function(e,t){for(var n=0,i=this.root;i!==Ee;)if(i.left!==Ee&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e)return(n+=i.size_left)+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1);e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n}},{key:"getPositionAt",value:function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,i=e;t!==Ee;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){var o=i-this.getOffsetAt(n+1,1);return new C.L(n+1,o+1)}return new C.L(n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===Ee){var a=i-e-this.getOffsetAt(n+1,1);return new C.L(n+1,a+1)}t=t.right}return new C.L(1,1)}},{key:"getValueInRange",value:function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}},{key:"getValueInRange2",value:function(e,t){if(e.node===t.node){var n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}var o=e.node,a=this._buffers[o.piece.bufferIndex].buffer,s=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start),l=a.substring(s+e.remainder,s+o.piece.length);for(o=o.next();o!==Ee;){var c=this._buffers[o.piece.bufferIndex].buffer,u=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);if(o===t.node){l+=c.substring(u,u+t.remainder);break}l+=c.substr(u,o.piece.length),o=o.next()}return l}},{key:"getLinesContent",value:function(){var e=this,t=[],n=0,i="",r=!1;return this.iterate(this.root,(function(o){if(o===Ee)return!0;var a=o.piece,s=a.length;if(0===s)return!0;var l=e._buffers[a.bufferIndex].buffer,c=e._buffers[a.bufferIndex].lineStarts,u=a.start.line,d=a.end.line,h=c[u]+a.start.column;if(r&&(10===l.charCodeAt(h)&&(h++,s--),t[n++]=i,i="",r=!1,0===s))return!0;if(u===d)return e._EOLNormalized||13!==l.charCodeAt(h+s-1)?i+=l.substr(h,s):(r=!0,i+=l.substr(h,s-1)),!0;i+=e._EOLNormalized?l.substring(h,Math.max(h,c[u+1]-e._EOLLength)):l.substring(h,c[u+1]).replace(/(\r\n|\r|\n)$/,""),t[n++]=i;for(var f=u+1;f<d;f++)i=e._EOLNormalized?l.substring(c[f],c[f+1]-e._EOLLength):l.substring(c[f],c[f+1]).replace(/(\r\n|\r|\n)$/,""),t[n++]=i;return e._EOLNormalized||13!==l.charCodeAt(c[d]+a.end.column-1)?i=l.substr(c[d],a.end.column):(r=!0,0===a.end.column?n--:i=l.substr(c[d],a.end.column-1)),!0})),r&&(t[n++]=i,i=""),t[n++]=i,t}},{key:"getLength",value:function(){return this._length}},{key:"getLineCount",value:function(){return this._lineCnt}},{key:"getLineContent",value:function(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}},{key:"_getCharCode",value:function(e){if(e.remainder===e.node.piece.length){var t=e.node.next();if(!t)return 0;var n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}var r=this._buffers[e.node.piece.bufferIndex],o=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return r.buffer.charCodeAt(o)}},{key:"getLineCharCode",value:function(e,t){var n=this.nodeAt2(e,t+1);return this._getCharCode(n)}},{key:"getLineLength",value:function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}},{key:"findMatchesInNode",value:function(e,t,n,i,r,o,a,s,l,c,u){var d,h,f,p=this._buffers[e.piece.bufferIndex],g=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),v=this.offsetInBuffer(e.piece.bufferIndex,r),m=this.offsetInBuffer(e.piece.bufferIndex,o),y={line:0,column:0};t._wordSeparators?(h=p.buffer.substring(v,m),f=function(e){return e+v},t.reset(0)):(h=p.buffer,f=function(e){return e},t.reset(v));do{if(d=t.next(h)){if(f(d.index)>=m)return c;this.positionInBuffer(e,f(d.index)-g,y);var _=this.getLineFeedCnt(e.piece.bufferIndex,r,y),b=y.line===r.line?y.column-r.column+i:y.column+1,C=b+d[0].length;if(u[c++]=(0,Fe.iE)(new S.e(n+_,b,n+_,C),d,s),f(d.index)+d[0].length>=m)return c;if(c>=l)return c}}while(d);return c}},{key:"findMatchesLineByLine",value:function(e,t,n,i){var r=[],o=0,a=new Fe.sz(t.wordSeparators,t.regex),s=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===s)return[];var l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];var c=this.positionInBuffer(s.node,s.remainder),u=this.positionInBuffer(l.node,l.remainder);if(s.node===l.node)return this.findMatchesInNode(s.node,a,e.startLineNumber,e.startColumn,c,u,t,n,i,o,r),r;for(var d=e.startLineNumber,h=s.node;h!==l.node;){var f=this.getLineFeedCnt(h.piece.bufferIndex,c,h.piece.end);if(f>=1){var p=this._buffers[h.piece.bufferIndex].lineStarts,g=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),v=p[c.line+f],m=d===e.startLineNumber?e.startColumn:1;if((o=this.findMatchesInNode(h,a,d,m,c,this.positionInBuffer(h,v-g),t,n,i,o,r))>=i)return r;d+=f}var y=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var _=this.getLineContent(d).substring(y,e.endColumn-1);return o=this._findMatchesInLine(t,a,_,e.endLineNumber,y,o,r,n,i),r}if((o=this._findMatchesInLine(t,a,this.getLineContent(d).substr(y),d,y,o,r,n,i))>=i)return r;d++,h=(s=this.nodeAt2(d,1)).node,c=this.positionInBuffer(s.node,s.remainder)}if(d===e.endLineNumber){var b=d===e.startLineNumber?e.startColumn-1:0,C=this.getLineContent(d).substring(b,e.endColumn-1);return o=this._findMatchesInLine(t,a,C,e.endLineNumber,b,o,r,n,i),r}var S=d===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(l.node,a,d,S,c,u,t,n,i,o,r),r}},{key:"_findMatchesInLine",value:function(e,t,n,i,r,o,a,s,l){var c,u=e.wordSeparators;if(!s&&e.simpleSearch){for(var d=e.simpleSearch,h=d.length,f=n.length,p=-h;-1!==(p=n.indexOf(d,p+h));)if((!u||(0,Fe.cM)(u,n,f,p,h))&&(a[o++]=new T.tk(new S.e(i,p+1+r,i,p+1+h+r),null),o>=l))return o;return o}t.reset(0);do{if((c=t.next(n))&&(a[o++]=(0,Fe.iE)(new S.e(i,c.index+1+r,i,c.index+1+c[0].length+r),c,s),o>=l))return o}while(c);return o}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Ee){var i=this.nodeAt(e),r=i.node,o=i.remainder,a=i.nodeStartOffset,s=r.piece,l=s.bufferIndex,c=this.positionInBuffer(r,o);if(0===r.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&a+s.length===e&&t.length<Be)return this.appendToNode(r,t),void this.computeBufferMetadata();if(a===e)this.insertContentToNodeLeft(t,r),this._searchCache.validate(e);else if(a+r.piece.length>e){var u=[],d=new Ve(s.bufferIndex,c,s.end,this.getLineFeedCnt(s.bufferIndex,c,s.end),this.offsetInBuffer(l,s.end)-this.offsetInBuffer(l,c));if(this.shouldCheckCRLF()&&this.endWithCR(t)){var h=this.nodeCharCodeAt(r,o);if(10===h){var f={line:d.start.line+1,column:0};d=new Ve(d.bufferIndex,f,d.end,this.getLineFeedCnt(d.bufferIndex,f,d.end),d.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){var p=this.nodeCharCodeAt(r,o-1);if(13===p){var g=this.positionInBuffer(r,o-1);this.deleteNodeTail(r,g),t="\r"+t,0===r.piece.length&&u.push(r)}else this.deleteNodeTail(r,c)}else this.deleteNodeTail(r,c);var v=this.createNewPieces(t);d.length>0&&this.rbInsertRight(r,d);for(var m=r,y=0;y<v.length;y++)m=this.rbInsertRight(m,v[y]);this.deleteNodes(u)}else this.insertContentToNodeRight(t,r)}else for(var _=this.createNewPieces(t),b=this.rbInsertLeft(null,_[0]),C=1;C<_.length;C++)b=this.rbInsertRight(b,_[C]);this.computeBufferMetadata()}},{key:"delete",value:function(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",!(t<=0||this.root===Ee)){var n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,o=i.node;if(r===o){var a=this.positionInBuffer(r,n.remainder),s=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){var l=r.next();return Ae(this,r),this.validateCRLFWithPrevNode(l),void this.computeBufferMetadata()}return this.deleteNodeHead(r,s),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,a),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,a,s),void this.computeBufferMetadata())}var c=[],u=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,u),this._searchCache.validate(e),0===r.piece.length&&c.push(r);var d=this.positionInBuffer(o,i.remainder);this.deleteNodeHead(o,d),0===o.piece.length&&c.push(o);for(var h=r.next();h!==Ee&&h!==o;h=h.next())c.push(h);var f=0===r.piece.length?r.prev():r;this.deleteNodes(c),this.validateCRLFWithNextNode(f),this.computeBufferMetadata()}}},{key:"insertContentToNodeLeft",value:function(e,t){var n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){var i=t.piece,r={line:i.start.line+1,column:0},o=new Ve(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=o,e+="\n",Pe(this,t,-1,-1),0===t.piece.length&&n.push(t)}for(var a=this.createNewPieces(e),s=this.rbInsertLeft(t,a[a.length-1]),l=a.length-2;l>=0;l--)s=this.rbInsertLeft(s,a[l]);this.validateCRLFWithPrevNode(s),this.deleteNodes(n)}},{key:"insertContentToNodeRight",value:function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]),r=i,o=1;o<n.length;o++)r=this.rbInsertRight(r,n[o]);this.validateCRLFWithPrevNode(i)}},{key:"positionInBuffer",value:function(e,t,n){for(var i=e.piece,r=e.piece.bufferIndex,o=this._buffers[r].lineStarts,a=o[i.start.line]+i.start.column+t,s=i.start.line,l=i.end.line,c=0,u=0,d=0;s<=l&&(d=o[c=s+(l-s)/2|0],c!==l);)if(u=o[c+1],a<d)l=c-1;else{if(!(a>=u))break;s=c+1}return n?(n.line=c,n.column=a-d,null):{line:c,column:a-d}}},{key:"getLineFeedCnt",value:function(e,t,n){if(0===n.column)return n.line-t.line;var i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;var r=i[n.line+1],o=i[n.line]+n.column;if(r>o+1)return n.line-t.line;var a=o-1;return 13===this._buffers[e].buffer.charCodeAt(a)?n.line-t.line+1:n.line-t.line}},{key:"offsetInBuffer",value:function(e,t){return this._buffers[e].lineStarts[t.line]+t.column}},{key:"deleteNodes",value:function(e){for(var t=0;t<e.length;t++)Ae(this,e[t])}},{key:"createNewPieces",value:function(e){if(e.length>Be){for(var t=[];e.length>Be;){var n=e.charCodeAt(65534),i=void 0;13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,Be),e=e.substring(Be));var r=je(i);t.push(new Ve(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new We(i,r))}var o=je(e);return t.push(new Ve(this._buffers.length,{line:0,column:0},{line:o.length-1,column:e.length-o[o.length-1]},o.length-1,e.length)),this._buffers.push(new We(e,o)),t}var a=this._buffers[0].buffer.length,s=je(e,!1),l=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===a&&0!==a&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},l=this._lastChangeBufferPos;for(var c=0;c<s.length;c++)s[c]+=a+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(s.slice(1)),this._buffers[0].buffer+="_"+e,a+=1}else{if(0!==a)for(var u=0;u<s.length;u++)s[u]+=a;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(s.slice(1)),this._buffers[0].buffer+=e}var d=this._buffers[0].buffer.length,h=this._buffers[0].lineStarts.length-1,f={line:h,column:d-this._buffers[0].lineStarts[h]},p=new Ve(0,l,f,this.getLineFeedCnt(0,l,f),d-a);return this._lastChangeBufferPos=f,[p]}},{key:"getLineRawContent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.root,i="",r=this._searchCache.get2(e);if(r){n=r.node;var o=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),a=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){var l=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return a.substring(s+o,s+l-t)}i=a.substring(s+o,s+n.piece.length)}else for(var c=0,u=e;n!==Ee;)if(n.left!==Ee&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var d=this.getAccumulatedValue(n,e-n.lf_left-2),h=this.getAccumulatedValue(n,e-n.lf_left-1),f=this._buffers[n.piece.bufferIndex].buffer,p=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return c+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:c,nodeStartLineNumber:u-(e-1-n.lf_left)}),f.substring(p+d,p+h-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){var g=this.getAccumulatedValue(n,e-n.lf_left-2),v=this._buffers[n.piece.bufferIndex].buffer,m=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=v.substring(m+g,m+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,c+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Ee;){var y=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){var _=this.getAccumulatedValue(n,0),b=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=y.substring(b,b+_-t)}var C=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=y.substr(C,n.piece.length),n=n.next()}return i}},{key:"computeBufferMetadata",value:function(){for(var e=this.root,t=1,n=0;e!==Ee;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}},{key:"getIndexOf",value:function(e,t){var n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var o=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(o!==r)return{index:o,remainder:0}}return{index:r,remainder:i.column}}},{key:"getAccumulatedValue",value:function(e,t){if(t<0)return 0;var n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}},{key:"deleteNodeTail",value:function(e,t){var n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),o=t,a=this.offsetInBuffer(n.bufferIndex,o),s=this.getLineFeedCnt(n.bufferIndex,n.start,o),l=s-i,c=a-r,u=n.length+c;e.piece=new Ve(n.bufferIndex,n.start,o,s,u),Pe(this,e,c,l)}},{key:"deleteNodeHead",value:function(e,t){var n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),o=t,a=this.getLineFeedCnt(n.bufferIndex,o,n.end),s=a-i,l=r-this.offsetInBuffer(n.bufferIndex,o),c=n.length+l;e.piece=new Ve(n.bufferIndex,o,n.end,a,c),Pe(this,e,l,s)}},{key:"shrinkNode",value:function(e,t,n){var i=e.piece,r=i.start,o=i.end,a=i.length,s=i.lineFeedCnt,l=t,c=this.getLineFeedCnt(i.bufferIndex,i.start,l),u=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new Ve(i.bufferIndex,i.start,l,c,u),Pe(this,e,u-a,c-s);var d=new Ve(i.bufferIndex,n,o,this.getLineFeedCnt(i.bufferIndex,n,o),this.offsetInBuffer(i.bufferIndex,o)-this.offsetInBuffer(i.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)}},{key:"appendToNode",value:function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var r=je(t,!1),o=0;o<r.length;o++)r[o]+=i;if(n){var a=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-a}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));var s=this._buffers[0].lineStarts.length-1,l={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},c=e.piece.length+t.length,u=e.piece.lineFeedCnt,d=this.getLineFeedCnt(0,e.piece.start,l),h=d-u;e.piece=new Ve(e.piece.bufferIndex,e.piece.start,l,d,c),this._lastChangeBufferPos=l,Pe(this,e,t.length,h)}},{key:"nodeAt",value:function(e){var t=this.root,n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};for(var i=0;t!==Ee;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;var r={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(r),r}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null}},{key:"nodeAt2",value:function(e,t){for(var n=this.root,i=0;n!==Ee;)if(n.left!==Ee&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var r=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,o),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){var a=this.getAccumulatedValue(n,e-n.lf_left-2);if(a+t-1<=n.piece.length)return{node:n,remainder:a+t-1,nodeStartOffset:i};t-=n.piece.length-a;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Ee;){if(n.piece.lineFeedCnt>0){var s=this.getAccumulatedValue(n,0),l=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,s),nodeStartOffset:l}}if(n.piece.length>=t-1)return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)};t-=n.piece.length,n=n.next()}return null}},{key:"nodeCharCodeAt",value:function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}},{key:"offsetOfNode",value:function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}},{key:"shouldCheckCRLF",value:function(){return!(this._EOLNormalized&&"\n"===this._EOL)}},{key:"startWithLF",value:function(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===Ee||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;return i!==n.length-1&&(!(n[i+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r))}},{key:"endWithCR",value:function(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==Ee&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}},{key:"validateCRLFWithPrevNode",value:function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}},{key:"validateCRLFWithNextNode",value:function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}},{key:"fixCRLF",value:function(e,t){var n,i=[],r=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var o=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new Ve(e.piece.bufferIndex,e.piece.start,n,a,o),Pe(this,e,-1,-1),0===e.piece.length&&i.push(e);var s={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,s,t.piece.end);t.piece=new Ve(t.piece.bufferIndex,s,t.piece.end,c,l),Pe(this,t,-1,-1),0===t.piece.length&&i.push(t);var u=this.createNewPieces("\r\n");this.rbInsertRight(e,u[0]);for(var d=0;d<i.length;d++)Ae(this,i[d])}},{key:"adjustCarriageReturnFromNext",value:function(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Ae(this,n);else{var i=n.piece,r={line:i.start.line+1,column:0},o=i.length-1,a=this.getLineFeedCnt(i.bufferIndex,r,i.end);n.piece=new Ve(i.bufferIndex,r,i.end,a,o),Pe(this,n,-1,-1)}return!0}}return!1}},{key:"iterate",value:function(e,t){if(e===Ee)return t(Ee);var n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}},{key:"getNodeContent",value:function(e){if(e===Ee)return"";var t=this._buffers[e.piece.bufferIndex],n=e.piece,i=this.offsetInBuffer(n.bufferIndex,n.start),r=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(i,r)}},{key:"getPieceContent",value:function(e){var t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,i)}},{key:"rbInsertRight",value:function(e,t){var n=new xe(t,1);if(n.left=Ee,n.right=Ee,n.parent=Ee,n.size_left=0,n.lf_left=0,this.root===Ee)this.root=n,n.color=0;else if(e.right===Ee)e.right=n,n.parent=e;else{var i=Te(e.right);i.left=n,n.parent=i}return Me(this,n),n}},{key:"rbInsertLeft",value:function(e,t){var n=new xe(t,1);if(n.left=Ee,n.right=Ee,n.parent=Ee,n.size_left=0,n.lf_left=0,this.root===Ee)this.root=n,n.color=0;else if(e.left===Ee)e.left=n,n.parent=e;else{var i=Ne(e.left);i.right=n,n.parent=i}return Me(this,n),n}}]),e}(),Ye=n(70768),qe=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o,a,s,l){var c;return(0,u.Z)(this,n),(c=t.call(this))._onDidChangeContent=c._register(new g.Q5),c._BOM=i,c._mightContainNonBasicASCII=!s,c._mightContainRTL=o,c._mightContainUnusualLineTerminators=a,c._pieceTree=new Ke(e,r,l),c}return(0,d.Z)(n,[{key:"mightContainRTL",value:function(){return this._mightContainRTL}},{key:"mightContainUnusualLineTerminators",value:function(){return this._mightContainUnusualLineTerminators}},{key:"resetMightContainUnusualLineTerminators",value:function(){this._mightContainUnusualLineTerminators=!1}},{key:"mightContainNonBasicASCII",value:function(){return this._mightContainNonBasicASCII}},{key:"getBOM",value:function(){return this._BOM}},{key:"getEOL",value:function(){return this._pieceTree.getEOL()}},{key:"createSnapshot",value:function(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}},{key:"getOffsetAt",value:function(e,t){return this._pieceTree.getOffsetAt(e,t)}},{key:"getPositionAt",value:function(e){return this._pieceTree.getPositionAt(e)}},{key:"getRangeAt",value:function(e,t){var n=e+t,i=this.getPositionAt(e),r=this.getPositionAt(n);return new S.e(i.lineNumber,i.column,r.lineNumber,r.column)}},{key:"getValueInRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.isEmpty())return"";var n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}},{key:"getValueLengthInRange",value:function(e){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;var t=this.getOffsetAt(e.startLineNumber,e.startColumn),n=this.getOffsetAt(e.endLineNumber,e.endColumn);return n-t}},{key:"getCharacterCountInRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._mightContainNonBasicASCII){for(var n=0,i=e.startLineNumber,r=e.endLineNumber,o=i;o<=r;o++)for(var a=this.getLineContent(o),s=o===i?e.startColumn-1:0,l=o===r?e.endColumn-1:a.length,c=s;c<l;c++)m.ZG(a.charCodeAt(c))?(n+=1,c+=1):n+=1;return n+=this._getEndOfLine(t).length*(r-i)}return this.getValueLengthInRange(e,t)}},{key:"getLength",value:function(){return this._pieceTree.getLength()}},{key:"getLineCount",value:function(){return this._pieceTree.getLineCount()}},{key:"getLinesContent",value:function(){return this._pieceTree.getLinesContent()}},{key:"getLineContent",value:function(e){return this._pieceTree.getLineContent(e)}},{key:"getLineCharCode",value:function(e,t){return this._pieceTree.getLineCharCode(e,t)}},{key:"getLineLength",value:function(e){return this._pieceTree.getLineLength(e)}},{key:"getLineFirstNonWhitespaceColumn",value:function(e){var t=m.LC(this.getLineContent(e));return-1===t?0:t+1}},{key:"getLineLastNonWhitespaceColumn",value:function(e){var t=m.ow(this.getLineContent(e));return-1===t?0:t+2}},{key:"_getEndOfLine",value:function(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}},{key:"setEOL",value:function(e){this._pieceTree.setEOL(e)}},{key:"applyEdits",value:function(e,t,i){for(var o=this._mightContainRTL,a=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,l=!0,c=[],u=0;u<e.length;u++){var d=e[u];l&&d._isTracked&&(l=!1);var h=d.range;if(d.text){var f=!0;s||(s=f=!m.$i(d.text)),!o&&f&&(o=m.Ut(d.text)),!a&&f&&(a=m.ab(d.text))}var p="",g=0,v=0,y=0;if(d.text){var b,C=(0,_.Q)(d.text),S=(0,r.Z)(C,4);g=S[0],v=S[1],y=S[2],b=S[3];var w=this.getEOL();p=0===b||b===("\r\n"===w?2:1)?d.text:d.text.replace(/\r\n|\r|\n/g,w)}c[u]={sortIndex:u,identifier:d.identifier||null,range:h,rangeOffset:this.getOffsetAt(h.startLineNumber,h.startColumn),rangeLength:this.getValueLengthInRange(h),text:p,eolCount:g,firstLineLength:v,lastLineLength:y,forceMoveMarkers:Boolean(d.forceMoveMarkers),isAutoWhitespaceEdit:d.isAutoWhitespaceEdit||!1}}c.sort(n._sortOpsAscending);for(var k=!1,x=0,E=c.length-1;x<E;x++){var N=c[x].range.getEndPosition(),I=c[x+1].range.getStartPosition();if(I.isBeforeOrEqual(N)){if(I.isBefore(N))throw new Error("Overlapping ranges are not allowed!");k=!0}}l&&(c=this._reduceOperations(c));var D=i||t?n._getInverseEditRanges(c):[],L=[];if(t)for(var O=0;O<c.length;O++){var R=c[O],A=D[O];if(R.isAutoWhitespaceEdit&&R.range.isEmpty())for(var M=A.startLineNumber;M<=A.endLineNumber;M++){var P="";M===A.startLineNumber&&(P=this.getLineContent(R.range.startLineNumber),-1!==m.LC(P))||L.push({lineNumber:M,oldContent:P})}}var Z=null;if(i){var F=0;Z=[];for(var B=0;B<c.length;B++){var H=c[B],z=D[B],j=this.getValueInRange(H.range),V=H.rangeOffset+F;F+=H.text.length-j.length,Z[B]={sortIndex:H.sortIndex,identifier:H.identifier,range:z,text:j,textChange:new Ye.q(H.rangeOffset,j,V,H.text)}}k||Z.sort((function(e,t){return e.sortIndex-t.sortIndex}))}this._mightContainRTL=o,this._mightContainUnusualLineTerminators=a,this._mightContainNonBasicASCII=s;var W=this._doApplyEdits(c),U=null;if(t&&L.length>0){L.sort((function(e,t){return t.lineNumber-e.lineNumber})),U=[];for(var G=0,K=L.length;G<K;G++){var Y=L[G].lineNumber;if(!(G>0&&L[G-1].lineNumber===Y)){var q=L[G].oldContent,$=this.getLineContent(Y);0!==$.length&&$!==q&&-1===m.LC($)&&U.push(Y)}}}return this._onDidChangeContent.fire(),new T.je(Z,W,U)}},{key:"_reduceOperations",value:function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}},{key:"_toSingleEditOperation",value:function(e){for(var t=!1,n=e[0].range,i=e[e.length-1].range,o=new S.e(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn),a=n.startLineNumber,s=n.startColumn,l=[],c=0,u=e.length;c<u;c++){var d=e[c],h=d.range;t=t||d.forceMoveMarkers,l.push(this.getValueInRange(new S.e(a,s,h.startLineNumber,h.startColumn))),d.text.length>0&&l.push(d.text),a=h.endLineNumber,s=h.endColumn}var f=l.join(""),p=(0,_.Q)(f),g=(0,r.Z)(p,3),v=g[0],m=g[1],y=g[2];return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),text:f,eolCount:v,firstLineLength:m,lastLineLength:y,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}},{key:"_doApplyEdits",value:function(e){e.sort(n._sortOpsDescending);for(var t=[],i=0;i<e.length;i++){var r=e[i],o=r.range.startLineNumber,a=r.range.startColumn,s=r.range.endLineNumber,l=r.range.endColumn;if(o!==s||a!==l||0!==r.text.length){r.text?(this._pieceTree.delete(r.rangeOffset,r.rangeLength),this._pieceTree.insert(r.rangeOffset,r.text,!0)):this._pieceTree.delete(r.rangeOffset,r.rangeLength);var c=new S.e(o,a,s,l);t.push({range:c,rangeLength:r.rangeLength,text:r.text,rangeOffset:r.rangeOffset,forceMoveMarkers:r.forceMoveMarkers})}}return t}},{key:"findMatchesLineByLine",value:function(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)}}],[{key:"_getInverseEditRanges",value:function(e){for(var t=[],n=0,i=0,r=null,o=0,a=e.length;o<a;o++){var s=e[o],l=void 0,c=void 0;r?r.range.endLineNumber===s.range.startLineNumber?(l=n,c=i+(s.range.startColumn-r.range.endColumn)):(l=n+(s.range.startLineNumber-r.range.endLineNumber),c=s.range.startColumn):(l=s.range.startLineNumber,c=s.range.startColumn);var u=void 0;if(s.text.length>0){var d=s.eolCount+1;u=1===d?new S.e(l,c,l,c+s.firstLineLength):new S.e(l,c,l+d-1,s.lastLineLength+1)}else u=new S.e(l,c,l,c);n=u.endLineNumber,i=u.endColumn,t.push(u),r=s}return t}},{key:"_sortOpsAscending",value:function(e,t){var n=S.e.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}},{key:"_sortOpsDescending",value:function(e,t){var n=S.e.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}]),n}(v.JT),$e=function(){function e(t,n,i,r,o,a,s,l,c){(0,u.Z)(this,e),this._chunks=t,this._bom=n,this._cr=i,this._lf=r,this._crlf=o,this._containsRTL=a,this._containsUnusualLineTerminators=s,this._isBasicASCII=l,this._normalizeEOL=c}return(0,d.Z)(e,[{key:"_getEOL",value:function(e){var t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}},{key:"create",value:function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var i=0,r=n.length;i<r;i++){var o=n[i].buffer.replace(/\r\n|\r|\n/g,t),a=je(o);n[i]=new We(o,a)}var s=new qe(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:s,disposable:s}}}]),e}(),Xe=function(){function e(){(0,u.Z)(this,e),this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}return(0,d.Z)(e,[{key:"acceptChunk",value:function(e){if(0!==e.length){0===this.chunks.length&&m.uS(e)&&(this.BOM=m.c1,e=e.substr(1));var t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}}},{key:"_acceptChunk1",value:function(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}},{key:"_acceptChunk2",value:function(e){var t=function(e,t){e.length=0,e[0]=0;for(var n=1,i=0,r=0,o=0,a=!0,s=0,l=t.length;s<l;s++){var c=t.charCodeAt(s);13===c?s+1<l&&10===t.charCodeAt(s+1)?(o++,e[n++]=s+2,s++):(i++,e[n++]=s+1):10===c?(r++,e[n++]=s+1):a&&9!==c&&(c<32||c>126)&&(a=!1)}var u=new ze(He(e),i,r,o,a);return e.length=0,u}(this._tmpLineStarts,e);this.chunks.push(new We(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=m.Ut(e)),this.isBasicASCII||this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=m.ab(e))}},{key:"finish",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._finish(),new $e(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}},{key:"_finish",value:function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=je(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}]),e}(),Qe=n(37591),Je=n(35508),et=n(90532),tt=n(12905),nt=n(38584),it=n(25),rt=function(){function e(t,n){(0,u.Z)(this,e),this._startLineNumber=t,this._tokens=n}return(0,d.Z)(e,[{key:"startLineNumber",get:function(){return this._startLineNumber}},{key:"endLineNumber",get:function(){return this._startLineNumber+this._tokens.length-1}},{key:"getLineTokens",value:function(e){return this._tokens[e-this._startLineNumber]}},{key:"appendLineTokens",value:function(e){this._tokens.push(e)}}]),e}(),ot=function(){function e(){(0,u.Z)(this,e),this._tokens=[]}return(0,d.Z)(e,[{key:"add",value:function(e,t){if(this._tokens.length>0){var n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new rt(e,[t]))}},{key:"finalize",value:function(){return this._tokens}}]),e}(),at=n(60022),st=n(73616),lt=function(){function e(t){(0,u.Z)(this,e),this._default=t,this._store=[]}return(0,d.Z)(e,[{key:"get",value:function(e){return e<this._store.length?this._store[e]:this._default}},{key:"set",value:function(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}},{key:"delete",value:function(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}},{key:"insert",value:function(e,t){if(!(0===t||e>=this._store.length)){for(var n=[],i=0;i<t;i++)n[i]=this._default;this._store=h.Zv(this._store,e,n)}}}]),e}(),ct=function(){function e(t,n){(0,u.Z)(this,e),this.tokenizationSupport=t,this.initialState=n,this._lineBeginState=new lt(null),this._lineNeedsTokenization=new lt(!0),this._firstLineNeedsTokenization=0,this._lineBeginState.set(0,this.initialState)}return(0,d.Z)(e,[{key:"invalidLineStartIndex",get:function(){return this._firstLineNeedsTokenization}},{key:"markMustBeTokenized",value:function(e){this._lineNeedsTokenization.set(e,!0),this._firstLineNeedsTokenization=Math.min(this._firstLineNeedsTokenization,e)}},{key:"getBeginState",value:function(e){return this._lineBeginState.get(e)}},{key:"setEndState",value:function(e,t,n){if(this._lineNeedsTokenization.set(t,!1),this._firstLineNeedsTokenization=t+1,t!==e-1){var i=this._lineBeginState.get(t+1);if(null===i||!n.equals(i))return this._lineBeginState.set(t+1,n),void this.markMustBeTokenized(t+1);for(var r=t+1;r<e&&!this._lineNeedsTokenization.get(r);)r++;this._firstLineNeedsTokenization=r}}},{key:"applyEdits",value:function(e,t){this.markMustBeTokenized(e.startLineNumber-1),this._lineBeginState.delete(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineNeedsTokenization.delete(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineBeginState.insert(e.startLineNumber,t),this._lineNeedsTokenization.insert(e.startLineNumber,t)}}]),e}(),ut=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r){var o;return(0,u.Z)(this,n),(o=t.call(this))._textModel=e,o._tokenizationPart=i,o._languageIdCodec=r,o._isScheduled=!1,o._isDisposed=!1,o._tokenizationStateStore=null,o._register(tt.RW.onDidChange((function(e){var t=o._textModel.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&(o._resetTokenizationState(),o._tokenizationPart.clearTokens())}))),o._resetTokenizationState(),o}return(0,d.Z)(n,[{key:"dispose",value:function(){this._isDisposed=!0,(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}},{key:"handleDidChangeContent",value:function(e){if(e.isFlush)this._resetTokenizationState();else{if(this._tokenizationStateStore)for(var t=0,n=e.changes.length;t<n;t++){var i=e.changes[t],o=(0,_.Q)(i.text),a=(0,r.Z)(o,1)[0];this._tokenizationStateStore.applyEdits(i.range,a)}this._beginBackgroundTokenization()}}},{key:"handleDidChangeAttached",value:function(){this._beginBackgroundTokenization()}},{key:"handleDidChangeLanguage",value:function(e){this._resetTokenizationState(),this._tokenizationPart.clearTokens()}},{key:"_resetTokenizationState",value:function(){var e=function(e,t){if(e.isTooLargeForTokenization())return[null,null];var n,i=tt.RW.get(t.getLanguageId());if(!i)return[null,null];try{n=i.getInitialState()}catch(r){return(0,p.dL)(r),[null,null]}return[i,n]}(this._textModel,this._tokenizationPart),t=(0,r.Z)(e,2),n=t[0],i=t[1];this._tokenizationStateStore=n&&i?new ct(n,i):null,this._beginBackgroundTokenization()}},{key:"_beginBackgroundTokenization",value:function(){var e=this;!this._isScheduled&&this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,at.To)((function(t){e._isScheduled=!1,e._backgroundTokenizeWithDeadline(t)})))}},{key:"_backgroundTokenizeWithDeadline",value:function(e){var t=this,n=Date.now()+e.timeRemaining();!function e(){!t._isDisposed&&t._textModel.isAttachedToEditor()&&t._hasLinesToTokenize()&&(t._backgroundTokenizeForAtLeast1ms(),Date.now()<n?(0,st.fn)(e):t._beginBackgroundTokenization())}()}},{key:"_backgroundTokenizeForAtLeast1ms",value:function(){var e=this._textModel.getLineCount(),t=new ot,n=it.G.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._tokenizationPart.setTokens(t.finalize(),this._isTokenizationComplete())}},{key:"tokenizeViewport",value:function(e,t){var n=new ot;this._tokenizeViewport(n,e,t),this._tokenizationPart.setTokens(n.finalize(),this._isTokenizationComplete())}},{key:"reset",value:function(){this._resetTokenizationState(),this._tokenizationPart.clearTokens()}},{key:"forceTokenization",value:function(e){var t=new ot;this._updateTokensUntilLine(t,e),this._tokenizationPart.setTokens(t.finalize(),this._isTokenizationComplete())}},{key:"getTokenTypeIfInsertingCharacter",value:function(e,t){if(!this._tokenizationStateStore)return 0;this.forceTokenization(e.lineNumber);var n=this._tokenizationStateStore.getBeginState(e.lineNumber-1);if(!n)return 0;var i=this._textModel.getLanguageId(),r=this._textModel.getLineContent(e.lineNumber),o=r.substring(0,e.column-1)+t+r.substring(e.column-1),a=dt(this._languageIdCodec,i,this._tokenizationStateStore.tokenizationSupport,o,!0,n),s=new et.A(a.tokens,o,this._languageIdCodec);if(0===s.getCount())return 0;var l=s.findTokenIndexAtOffset(e.column-1);return s.getStandardTokenType(l)}},{key:"tokenizeLineWithEdit",value:function(e,t,n){var i=e.lineNumber,r=e.column;if(!this._tokenizationStateStore)return null;this.forceTokenization(i);var o=this._tokenizationStateStore.getBeginState(i-1);if(!o)return null;var a=this._textModel.getLineContent(i),s=a.substring(0,r-1)+n+a.substring(r-1+t),l=this._textModel.getLanguageIdAtPosition(i,0),c=dt(this._languageIdCodec,l,this._tokenizationStateStore.tokenizationSupport,s,!0,o);return new et.A(c.tokens,s,this._languageIdCodec)}},{key:"isCheapToTokenize",value:function(e){if(!this._tokenizationStateStore)return!0;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(e>t)&&(e<t||this._textModel.getLineLength(e)<2048)}},{key:"_hasLinesToTokenize",value:function(){return!!this._tokenizationStateStore&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()}},{key:"_isTokenizationComplete",value:function(){return!!this._tokenizationStateStore&&this._tokenizationStateStore.invalidLineStartIndex>=this._textModel.getLineCount()}},{key:"_tokenizeOneInvalidLine",value:function(e){if(!this._tokenizationStateStore||!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t}},{key:"_updateTokensUntilLine",value:function(e,t){if(this._tokenizationStateStore)for(var n=this._textModel.getLanguageId(),i=this._textModel.getLineCount(),r=t-1,o=this._tokenizationStateStore.invalidLineStartIndex;o<=r;o++){var a=this._textModel.getLineContent(o+1),s=this._tokenizationStateStore.getBeginState(o),l=dt(this._languageIdCodec,n,this._tokenizationStateStore.tokenizationSupport,a,!0,s);e.add(o+1,l.tokens),this._tokenizationStateStore.setEndState(i,o,l.endState),o=this._tokenizationStateStore.invalidLineStartIndex-1}}},{key:"_tokenizeViewport",value:function(e,t,n){if(this._tokenizationStateStore&&!(n<=this._tokenizationStateStore.invalidLineStartIndex))if(t<=this._tokenizationStateStore.invalidLineStartIndex)this._updateTokensUntilLine(e,n);else{for(var i=this._textModel.getLineFirstNonWhitespaceColumn(t),r=[],o=null,a=t-1;i>1&&a>=1;a--){var s=this._textModel.getLineFirstNonWhitespaceColumn(a);if(0!==s&&(s<i&&(r.push(this._textModel.getLineContent(a)),i=s,o=this._tokenizationStateStore.getBeginState(a-1))))break}o||(o=this._tokenizationStateStore.initialState);for(var l=this._textModel.getLanguageId(),c=o,u=r.length-1;u>=0;u--){c=dt(this._languageIdCodec,l,this._tokenizationStateStore.tokenizationSupport,r[u],!1,c).endState}for(var d=t;d<=n;d++){var h=this._textModel.getLineContent(d),f=dt(this._languageIdCodec,l,this._tokenizationStateStore.tokenizationSupport,h,!0,c);e.add(d,f.tokens),this._tokenizationStateStore.markMustBeTokenized(d-1),c=f.endState}}}}]),n}(v.JT);function dt(e,t,n,i,r,o){var a=null;if(n)try{a=n.tokenizeEncoded(i,r,o.clone())}catch(s){(0,p.dL)(s)}return a||(a=(0,nt.Dy)(e.encodeLanguageId(t),o)),et.A.convertToEndOffset(a.tokens,i.length),a}var ht=new Uint32Array(0).buffer,ft=function(){function e(){(0,u.Z)(this,e)}return(0,d.Z)(e,null,[{key:"deleteBeginning",value:function(t,n){return null===t||t===ht?t:e.delete(t,0,n)}},{key:"deleteEnding",value:function(t,n){if(null===t||t===ht)return t;var i=pt(t),r=i[i.length-2];return e.delete(t,n,r)}},{key:"delete",value:function(e,t,n){if(null===e||e===ht||t===n)return e;var i=pt(e),r=i.length>>>1;if(0===t&&i[i.length-2]===n)return ht;var o,a,s=et.A.findIndexInTokensArray(i,t),l=s>0?i[s-1<<1]:0;if(n<i[s<<1]){for(var c=n-t,u=s;u<r;u++)i[u<<1]-=c;return e}l!==t?(i[s<<1]=t,o=s+1<<1,a=t):(o=s<<1,a=l);for(var d=n-t,h=s+1;h<r;h++){var f=i[h<<1]-d;f>a&&(i[o++]=f,i[o++]=i[1+(h<<1)],a=f)}if(o===i.length)return e;var p=new Uint32Array(o);return p.set(i.subarray(0,o),0),p.buffer}},{key:"append",value:function(e,t){if(t===ht)return e;if(e===ht)return t;if(null===e)return e;if(null===t)return null;var n=pt(e),i=pt(t),r=i.length>>>1,o=new Uint32Array(n.length+i.length);o.set(n,0);for(var a=n.length,s=n[n.length-2],l=0;l<r;l++)o[a++]=i[l<<1]+s,o[a++]=i[1+(l<<1)];return o.buffer}},{key:"insert",value:function(e,t,n){if(null===e||e===ht)return e;var i=pt(e),r=i.length>>>1,o=et.A.findIndexInTokensArray(i,t);o>0&&(i[o-1<<1]===t&&o--);for(var a=o;a<r;a++)i[a<<1]+=n;return e}}]),e}();function pt(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var gt=n(56124),vt=function(){function e(t){(0,u.Z)(this,e),this._lineTokens=[],this._len=0,this._languageIdCodec=t}return(0,d.Z)(e,[{key:"flush",value:function(){this._lineTokens=[],this._len=0}},{key:"getTokens",value:function(e,t,n){var i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==ht)return new et.A(pt(i),n,this._languageIdCodec);var r=new Uint32Array(2);return r[0]=n.length,r[1]=mt(this._languageIdCodec.encodeLanguageId(e)),new et.A(r,n,this._languageIdCodec)}},{key:"_ensureLine",value:function(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}},{key:"_deleteLines",value:function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}},{key:"_insertLines",value:function(e,t){if(0!==t){for(var n=[],i=0;i<t;i++)n[i]=null;this._lineTokens=h.Zv(this._lineTokens,e,n),this._len+=t}}},{key:"setTokens",value:function(t,n,i,r,o){var a=e._massageTokens(this._languageIdCodec.encodeLanguageId(t),i,r);this._ensureLine(n);var s=this._lineTokens[n];return this._lineTokens[n]=a,!!o&&!e._equals(s,a)}},{key:"acceptEdit",value:function(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new C.L(e.startLineNumber,e.startColumn),t,n)}},{key:"_acceptDeleteRange",value:function(e){var t=e.startLineNumber-1;if(!(t>=this._len))if(e.startLineNumber!==e.endLineNumber){this._lineTokens[t]=ft.deleteEnding(this._lineTokens[t],e.startColumn-1);var n=e.endLineNumber-1,i=null;n<this._len&&(i=ft.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=ft.append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}else{if(e.startColumn===e.endColumn)return;this._lineTokens[t]=ft.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1)}}},{key:"_acceptInsertText",value:function(e,t,n){if(0!==t||0!==n){var i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=ft.deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=ft.insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=ft.insert(this._lineTokens[i],e.column-1,n))}}}],[{key:"_massageTokens",value:function(e,t,n){var i=n?pt(n):null;if(0===t){var r=!1;if(i&&i.length>1&&(r=gt.N.getLanguageId(i[1])!==e),!r)return ht}if(!i||0===i.length){var o=new Uint32Array(2);return o[0]=t,o[1]=mt(e),o.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}},{key:"_equals",value:function(e,t){if(!e||!t)return!e&&!t;var n=pt(e),i=pt(t);if(n.length!==i.length)return!1;for(var r=0,o=n.length;r<o;r++)if(n[r]!==i[r])return!1;return!0}}]),e}();function mt(e){return(32768|e<<0|2<<24|1024)>>>0}var yt=function(){function e(t){(0,u.Z)(this,e),this._pieces=[],this._isComplete=!1,this._languageIdCodec=t}return(0,d.Z)(e,[{key:"flush",value:function(){this._pieces=[],this._isComplete=!1}},{key:"isEmpty",value:function(){return 0===this._pieces.length}},{key:"set",value:function(e,t){this._pieces=e||[],this._isComplete=t}},{key:"setPartial",value:function(e,t){var n=e;if(t.length>0){var i=t[0].getRange(),o=t[t.length-1].getRange();if(!i||!o)return e;n=e.plusRange(i).plusRange(o)}for(var a=null,s=0,l=this._pieces.length;s<l;s++){var c=this._pieces[s];if(!(c.endLineNumber<n.startLineNumber)){if(c.startLineNumber>n.endLineNumber){a=a||{index:s};break}if(c.removeTokens(n),c.isEmpty())this._pieces.splice(s,1),s--,l--;else if(!(c.endLineNumber<n.startLineNumber))if(c.startLineNumber>n.endLineNumber)a=a||{index:s};else{var u=c.split(n),d=(0,r.Z)(u,2),f=d[0],p=d[1];f.isEmpty()?a=a||{index:s}:p.isEmpty()||(this._pieces.splice(s,1,f,p),s++,l++,a=a||{index:s})}}}return a=a||{index:this._pieces.length},t.length>0&&(this._pieces=h.Zv(this._pieces,a.index,t)),n}},{key:"isComplete",value:function(){return this._isComplete}},{key:"addSparseTokens",value:function(t,n){if(0===n.getLineContent().length)return n;var i=this._pieces;if(0===i.length)return n;var r=i[e._findFirstPieceWithLine(i,t)].getLineTokens(t);if(!r)return n;for(var o=n.getCount(),a=r.getCount(),s=0,l=[],c=0,u=0,d=function(e,t){e!==u&&(u=e,l[c++]=e,l[c++]=t)},h=0;h<a;h++){for(var f=r.getStartCharacter(h),p=r.getEndCharacter(h),g=r.getMetadata(h),v=((1&g?2048:0)|(2&g?4096:0)|(4&g?8192:0)|(8&g?16384:0)|(16&g?16744448:0)|(32&g?4278190080:0))>>>0,m=~v>>>0;s<o&&n.getEndOffset(s)<=f;)d(n.getEndOffset(s),n.getMetadata(s)),s++;for(s<o&&n.getStartOffset(s)<f&&d(f,n.getMetadata(s));s<o&&n.getEndOffset(s)<p;)d(n.getEndOffset(s),n.getMetadata(s)&m|g&v),s++;if(s<o)d(p,n.getMetadata(s)&m|g&v),n.getEndOffset(s)===p&&s++;else{var y=Math.min(Math.max(0,s-1),o-1);d(p,n.getMetadata(y)&m|g&v)}}for(;s<o;)d(n.getEndOffset(s),n.getMetadata(s)),s++;return new et.A(new Uint32Array(l),n.getLineContent(),this._languageIdCodec)}},{key:"acceptEdit",value:function(e,t,n,r,o){var a,s=(0,i.Z)(this._pieces);try{for(s.s();!(a=s.n()).done;){a.value.acceptEdit(e,t,n,r,o)}}catch(l){s.e(l)}finally{s.f()}}}],[{key:"_findFirstPieceWithLine",value:function(e,t){for(var n=0,i=e.length-1;n<i;){var r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){for(;r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber;)r--;return r}i=r-1}}return n}}]),e}(),_t=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,a,s){var l;return(0,u.Z)(this,n),(l=t.call(this))._languageService=e,l._languageConfigurationService=i,l._textModel=r,l.bracketPairsTextModelPart=a,l._languageId=s,l._onDidChangeLanguage=l._register(new g.Q5),l.onDidChangeLanguage=l._onDidChangeLanguage.event,l._onDidChangeLanguageConfiguration=l._register(new g.Q5),l.onDidChangeLanguageConfiguration=l._onDidChangeLanguageConfiguration.event,l._onDidChangeTokens=l._register(new g.Q5),l.onDidChangeTokens=l._onDidChangeTokens.event,l._backgroundTokenizationState=0,l._onBackgroundTokenizationStateChanged=l._register(new g.Q5),l._tokens=new vt(l._languageService.languageIdCodec),l._semanticTokens=new yt(l._languageService.languageIdCodec),l._tokenization=new ut(r,(0,o.Z)(l),l._languageService.languageIdCodec),l._languageRegistryListener=l._languageConfigurationService.onDidChange((function(e){e.affects(l._languageId)&&l._onDidChangeLanguageConfiguration.fire({})})),l}return(0,d.Z)(n,[{key:"acceptEdit",value:function(e,t,n,i,r){this._tokens.acceptEdit(e,n,i),this._semanticTokens.acceptEdit(e,n,i,r,t.length>0?t.charCodeAt(0):0)}},{key:"handleDidChangeAttached",value:function(){this._tokenization.handleDidChangeAttached()}},{key:"flush",value:function(){this._tokens.flush(),this._semanticTokens.flush()}},{key:"handleDidChangeContent",value:function(e){this._tokenization.handleDidChangeContent(e)}},{key:"dispose",value:function(){this._languageRegistryListener.dispose(),this._tokenization.dispose(),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}},{key:"backgroundTokenizationState",get:function(){return this._backgroundTokenizationState}},{key:"handleTokenizationProgress",value:function(e){if(2!==this._backgroundTokenizationState){var t=e?2:1;this._backgroundTokenizationState!==t&&(this._backgroundTokenizationState=t,this.bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState(),this._onBackgroundTokenizationStateChanged.fire())}}},{key:"setTokens",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(0!==e.length){for(var n=[],i=0,r=e.length;i<r;i++){for(var o=e[i],a=0,s=0,l=!1,c=o.startLineNumber;c<=o.endLineNumber;c++)if(l)this._tokens.setTokens(this._languageId,c-1,this._textModel.getLineLength(c),o.getLineTokens(c),!1),s=c;else{var u=this._tokens.setTokens(this._languageId,c-1,this._textModel.getLineLength(c),o.getLineTokens(c),!0);u&&(l=!0,a=c,s=c)}l&&n.push({fromLineNumber:a,toLineNumber:s})}n.length>0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:n})}this.handleTokenizationProgress(t)}},{key:"setSemanticTokens",value:function(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}},{key:"hasCompleteSemanticTokens",value:function(){return this._semanticTokens.isComplete()}},{key:"hasSomeSemanticTokens",value:function(){return!this._semanticTokens.isEmpty()}},{key:"setPartialSemanticTokens",value:function(e,t){if(!this.hasCompleteSemanticTokens()){var n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}}},{key:"tokenizeViewport",value:function(e,t){e=Math.max(1,e),t=Math.min(this._textModel.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}},{key:"clearTokens",value:function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}},{key:"_emitModelTokensChangedEvent",value:function(e){this._textModel._isDisposing()||(this.bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}},{key:"resetTokenization",value:function(){this._tokenization.reset()}},{key:"forceTokenization",value:function(e){if(e<1||e>this._textModel.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}},{key:"isCheapToTokenize",value:function(e){return this._tokenization.isCheapToTokenize(e)}},{key:"tokenizeIfCheap",value:function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}},{key:"getLineTokens",value:function(e){if(e<1||e>this._textModel.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}},{key:"_getLineTokens",value:function(e){var t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._languageId,e-1,t);return this._semanticTokens.addSparseTokens(e,n)}},{key:"getTokenTypeIfInsertingCharacter",value:function(e,t,n){var i=this._textModel.validatePosition(new C.L(e,t));return this._tokenization.getTokenTypeIfInsertingCharacter(i,n)}},{key:"tokenizeLineWithEdit",value:function(e,t,n){var i=this._textModel.validatePosition(e);return this._tokenization.tokenizeLineWithEdit(i,t,n)}},{key:"getLanguageConfiguration",value:function(e){return this._languageConfigurationService.getLanguageConfiguration(e)}},{key:"getWordAtPosition",value:function(e){this.assertNotDisposed();var t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),o=this._getLineTokens(t.lineNumber),a=o.findTokenIndexAtOffset(t.column-1),s=n._findLanguageBoundaries(o,a),l=(0,r.Z)(s,2),c=l[0],u=l[1],d=(0,Qe.t2)(t.column,this.getLanguageConfiguration(o.getLanguageId(a)).getWordDefinition(),i.substring(c,u),c);if(d&&d.startColumn<=e.column&&e.column<=d.endColumn)return d;if(a>0&&c===t.column-1){var h=n._findLanguageBoundaries(o,a-1),f=(0,r.Z)(h,2),p=f[0],g=f[1],v=(0,Qe.t2)(t.column,this.getLanguageConfiguration(o.getLanguageId(a-1)).getWordDefinition(),i.substring(p,g),p);if(v&&v.startColumn<=e.column&&e.column<=v.endColumn)return v}return null}},{key:"getWordUntilPosition",value:function(e){var t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}},{key:"getLanguageId",value:function(){return this._languageId}},{key:"getLanguageIdAtPosition",value:function(e,t){var n=this._textModel.validatePosition(new C.L(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}},{key:"setLanguageId",value:function(e){if(this._languageId!==e){var t={oldLanguage:this._languageId,newLanguage:e};this._languageId=e,this.bracketPairsTextModelPart.handleDidChangeLanguage(t),this._tokenization.handleDidChangeLanguage(t),this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}}}],[{key:"_findLanguageBoundaries",value:function(e,t){for(var n=e.getLanguageId(t),i=0,r=t;r>=0&&e.getLanguageId(r)===n;r--)i=e.getStartOffset(r);for(var o=e.getLineContent().length,a=t,s=e.getCount();a<s&&e.getLanguageId(a)===n;a++)o=e.getEndOffset(a);return[i,o]}}]),n}(Je.U),bt=n(86104),Ct=n(25530),St=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},wt=function(e,t){return function(n,i){t(n,i,e)}};function kt(e,t){return("string"===typeof e?function(e){var t=new Xe;return t.acceptChunk(e),t.finish()}(e):T.Hf(e)?function(e){for(var t,n=new Xe;"string"===typeof(t=e.read());)n.acceptChunk(t);return n.finish()}(e):e).create(t)}var xt=0,Et=function(){function e(t){(0,u.Z)(this,e),this._source=t,this._eos=!1}return(0,d.Z)(e,[{key:"read",value:function(){if(this._eos)return null;for(var e=[],t=0,n=0;;){var i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}}}]),e}(),Tt=function(){throw new Error("Invalid change accessor")},Nt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r){var a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4?arguments[4]:void 0,c=arguments.length>5?arguments[5]:void 0,d=arguments.length>6?arguments[6]:void 0;(0,u.Z)(this,n),(a=t.call(this))._undoRedoService=l,a._languageService=c,a._languageConfigurationService=d,a._onWillDispose=a._register(new g.Q5),a.onWillDispose=a._onWillDispose.event,a._onDidChangeDecorations=a._register(new Ht((function(e){return a.handleBeforeFireDecorationsChangedEvent(e)}))),a.onDidChangeDecorations=a._onDidChangeDecorations.event,a._onDidChangeOptions=a._register(new g.Q5),a.onDidChangeOptions=a._onDidChangeOptions.event,a._onDidChangeAttached=a._register(new g.Q5),a.onDidChangeAttached=a._onDidChangeAttached.event,a._onDidChangeInjectedText=a._register(new g.Q5),a._eventEmitter=a._register(new zt),a._deltaDecorationCallCnt=0,xt++,a.id="$model"+xt,a.isForSimpleWidget=r.isForSimpleWidget,a._associatedResource="undefined"===typeof s||null===s?y.o.parse("inmemory://model/"+xt):s,a._attachedEditorCount=0;var h=kt(e,r.defaultEOL),f=h.textBuffer,p=h.disposable;a._buffer=f,a._bufferDisposable=p,a._options=n.resolveOptions(a._buffer,r),a._bracketPairs=a._register(new W((0,o.Z)(a),a._languageConfigurationService)),a._guidesTextModelPart=a._register(new J.l((0,o.Z)(a),a._languageConfigurationService)),a._decorationProvider=a._register(new $((0,o.Z)(a))),a._tokenizationTextModelPart=new _t(a._languageService,a._languageConfigurationService,(0,o.Z)(a),a._bracketPairs,i);var v=a._buffer.getLineCount(),_=a._buffer.getValueLengthInRange(new S.e(1,1,v,a._buffer.getLineLength(v)+1),0);return r.largeFileOptimizations?a._isTooLargeForTokenization=_>n.LARGE_FILE_SIZE_THRESHOLD||v>n.LARGE_FILE_LINE_COUNT_THRESHOLD:a._isTooLargeForTokenization=!1,a._isTooLargeForSyncing=_>n.MODEL_SYNC_LIMIT,a._versionId=1,a._alternativeVersionId=1,a._initialUndoRedoSnapshot=null,a._isDisposed=!1,a.__isDisposing=!1,a._instanceId=m.PJ(xt),a._lastDecorationId=0,a._decorations=Object.create(null),a._decorationsTree=new Lt,a._commandManager=new Q.NL((0,o.Z)(a),a._undoRedoService),a._isUndoing=!1,a._isRedoing=!1,a._trimAutoWhitespaceLines=null,a._register(a._decorationProvider.onDidChange((function(){a._onDidChangeDecorations.beginDeferredEmit(),a._onDidChangeDecorations.fire(),a._onDidChangeDecorations.endDeferredEmit()}))),a}return(0,d.Z)(n,[{key:"onDidChangeLanguage",get:function(){return this._tokenizationTextModelPart.onDidChangeLanguage}},{key:"onDidChangeLanguageConfiguration",get:function(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}},{key:"onDidChangeTokens",get:function(){return this._tokenizationTextModelPart.onDidChangeTokens}},{key:"onDidChangeContent",value:function(e){return this._eventEmitter.slowEvent((function(t){return e(t.contentChangedEvent)}))}},{key:"onDidChangeContentOrInjectedText",value:function(e){return(0,v.F8)(this._eventEmitter.fastEvent((function(t){return e(t)})),this._onDidChangeInjectedText.event((function(t){return e(t)})))}},{key:"_isDisposing",value:function(){return this.__isDisposing}},{key:"tokenization",get:function(){return this._tokenizationTextModelPart}},{key:"bracketPairs",get:function(){return this._bracketPairs}},{key:"guides",get:function(){return this._guidesTextModelPart}},{key:"dispose",value:function(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this),this._bufferDisposable.dispose(),this.__isDisposing=!1;var e=new qe([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=v.JT.None}},{key:"_assertNotDisposed",value:function(){if(this._isDisposed)throw new Error("Model is disposed!")}},{key:"_emitContentChangedEvent",value:function(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new bt.fV(e,t)))}},{key:"setValue",value:function(e){if(this._assertNotDisposed(),null!==e){var t=kt(e,this._options.defaultEOL),n=t.textBuffer,i=t.disposable;this._setValueFromTextBuffer(n,i)}}},{key:"_createContentChanged2",value:function(e,t,n,i,r,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:r,isRedoing:o,isFlush:a}}},{key:"_setValueFromTextBuffer",value:function(e,t){this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),o=this.getLineMaxColumn(r);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._tokenizationTextModelPart.flush(),this._decorations=Object.create(null),this._decorationsTree=new Lt,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new bt.dQ([new bt.Jx],this._versionId,!1,!1),this._createContentChanged2(new S.e(1,1,r,o),0,i,this.getValue(),!1,!1,!0))}},{key:"setEOL",value:function(e){this._assertNotDisposed();var t=1===e?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),o=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new bt.dQ([new bt.CZ],this._versionId,!1,!1),this._createContentChanged2(new S.e(1,1,r,o),0,i,this.getValue(),!1,!1,!1))}}},{key:"_onBeforeEOLChange",value:function(){this._decorationsTree.ensureAllNodesHaveRanges(this)}},{key:"_onAfterEOLChange",value:function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,i=t.length;n<i;n++){var r=t[n],o=r.range,a=r.cachedAbsoluteStart-r.start,s=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),l=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);r.cachedAbsoluteStart=s,r.cachedAbsoluteEnd=l,r.cachedVersionId=e,r.start=s-a,r.end=l-a,Se(r)}}},{key:"onBeforeAttached",value:function(){this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0))}},{key:"onBeforeDetached",value:function(){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0))}},{key:"isAttachedToEditor",value:function(){return this._attachedEditorCount>0}},{key:"getAttachedEditorCount",value:function(){return this._attachedEditorCount}},{key:"isTooLargeForSyncing",value:function(){return this._isTooLargeForSyncing}},{key:"isTooLargeForTokenization",value:function(){return this._isTooLargeForTokenization}},{key:"isDisposed",value:function(){return this._isDisposed}},{key:"isDominatedByLongLines",value:function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,t=0,n=this._buffer.getLineCount(),i=1;i<=n;i++){var r=this._buffer.getLineLength(i);r>=1e4?t+=r:e+=r}return t>e}},{key:"uri",get:function(){return this._associatedResource}},{key:"getOptions",value:function(){return this._assertNotDisposed(),this._options}},{key:"getFormattingOptions",value:function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}},{key:"updateOptions",value:function(e){this._assertNotDisposed();var t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.indentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,a=new T.dJ({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r,bracketPairColorizationOptions:o});if(!this._options.equals(a)){var s=this._options.createChangeEvent(a);this._options=a,this._bracketPairs.handleDidChangeOptions(s),this._decorationProvider.handleDidChangeOptions(s),this._onDidChangeOptions.fire(s)}}},{key:"detectIndentation",value:function(e,t){this._assertNotDisposed();var n=ne(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}},{key:"normalizeIndentation",value:function(e){return this._assertNotDisposed(),(0,b.x)(e,this._options.indentSize,this._options.insertSpaces)}},{key:"getVersionId",value:function(){return this._assertNotDisposed(),this._versionId}},{key:"mightContainRTL",value:function(){return this._buffer.mightContainRTL()}},{key:"mightContainUnusualLineTerminators",value:function(){return this._buffer.mightContainUnusualLineTerminators()}},{key:"removeUnusualLineTerminators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.findMatches(m.Qe.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((function(e){return{range:e.range,text:null}})),(function(){return null}))}},{key:"mightContainNonBasicASCII",value:function(){return this._buffer.mightContainNonBasicASCII()}},{key:"getAlternativeVersionId",value:function(){return this._assertNotDisposed(),this._alternativeVersionId}},{key:"getInitialUndoRedoSnapshot",value:function(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}},{key:"getOffsetAt",value:function(e){this._assertNotDisposed();var t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}},{key:"getPositionAt",value:function(e){this._assertNotDisposed();var t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}},{key:"_increaseVersionId",value:function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}},{key:"_overwriteVersionId",value:function(e){this._versionId=e}},{key:"_overwriteAlternativeVersionId",value:function(e){this._alternativeVersionId=e}},{key:"_overwriteInitialUndoRedoSnapshot",value:function(e){this._initialUndoRedoSnapshot=e}},{key:"getValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}},{key:"createSnapshot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Et(this._buffer.createSnapshot(e))}},{key:"getValueLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}},{key:"getValueInRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}},{key:"getValueLengthInRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}},{key:"getCharacterCountInRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}},{key:"getLineCount",value:function(){return this._assertNotDisposed(),this._buffer.getLineCount()}},{key:"getLineContent",value:function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}},{key:"getLineLength",value:function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}},{key:"getLinesContent",value:function(){return this._assertNotDisposed(),this._buffer.getLinesContent()}},{key:"getEOL",value:function(){return this._assertNotDisposed(),this._buffer.getEOL()}},{key:"getEndOfLineSequence",value:function(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}},{key:"getLineMinColumn",value:function(e){return this._assertNotDisposed(),1}},{key:"getLineMaxColumn",value:function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}},{key:"getLineFirstNonWhitespaceColumn",value:function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}},{key:"getLineLastNonWhitespaceColumn",value:function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}},{key:"_validateRangeRelaxedNoAllocations",value:function(e){var t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn,r=Math.floor("number"!==typeof n||isNaN(n)?1:n),o=Math.floor("number"!==typeof i||isNaN(i)?1:i);if(r<1)r=1,o=1;else if(r>t)r=t,o=this.getLineMaxColumn(r);else if(o<=1)o=1;else{var a=this.getLineMaxColumn(r);o>=a&&(o=a)}var s=e.endLineNumber,l=e.endColumn,c=Math.floor("number"!==typeof s||isNaN(s)?1:s),u=Math.floor("number"!==typeof l||isNaN(l)?1:l);if(c<1)c=1,u=1;else if(c>t)c=t,u=this.getLineMaxColumn(c);else if(u<=1)u=1;else{var d=this.getLineMaxColumn(c);u>=d&&(u=d)}return n===r&&i===o&&s===c&&l===u&&e instanceof S.e&&!(e instanceof w.Y)?e:new S.e(r,o,c,u)}},{key:"_isValidPosition",value:function(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){var i=this._buffer.getLineCharCode(e,t-2);if(m.ZG(i))return!1}return!0}},{key:"_validatePosition",value:function(e,t,n){var i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(i<1)return new C.L(1,1);if(i>o)return new C.L(o,this.getLineMaxColumn(o));if(r<=1)return new C.L(i,1);var a=this.getLineMaxColumn(i);if(r>=a)return new C.L(i,a);if(1===n){var s=this._buffer.getLineCharCode(i,r-2);if(m.ZG(s))return new C.L(i,r-1)}return new C.L(i,r)}},{key:"validatePosition",value:function(e){return this._assertNotDisposed(),e instanceof C.L&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}},{key:"_isValidRange",value:function(e,t){var n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,o,0))return!1;if(1===t){var a=i>1?this._buffer.getLineCharCode(n,i-2):0,s=o>1&&o<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,o-2):0,l=m.ZG(a),c=m.ZG(s);return!l&&!c}return!0}},{key:"validateRange",value:function(e){if(this._assertNotDisposed(),e instanceof S.e&&!(e instanceof w.Y)&&this._isValidRange(e,1))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,r=t.column,o=n.lineNumber,a=n.column,s=r>1?this._buffer.getLineCharCode(i,r-2):0,l=a>1&&a<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,a-2):0,c=m.ZG(s),u=m.ZG(l);return c||u?i===o&&r===a?new S.e(i,r-1,o,a-1):c&&u?new S.e(i,r-1,o,a+1):c?new S.e(i,r-1,o,a):new S.e(i,r,o,a+1):new S.e(i,r,o,a)}},{key:"modifyPosition",value:function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}},{key:"getFullModelRange",value:function(){this._assertNotDisposed();var e=this.getLineCount();return new S.e(1,1,e,this.getLineMaxColumn(e))}},{key:"findMatchesLineByLine",value:function(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}},{key:"findMatches",value:function(e,t,n,i,r,o){var a=this,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:999;this._assertNotDisposed();var l=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((function(e){return S.e.isIRange(e)}))&&(l=t.map((function(e){return a.validateRange(e)})))),null===l&&(l=[this.getFullModelRange()]),l=l.sort((function(e,t){return e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn}));var c,u=[];if(u.push(l.reduce((function(e,t){return S.e.areIntersecting(e,t)?e.plusRange(t):(u.push(e),t)}))),!n&&e.indexOf("\n")<0){var d=new Fe.bc(e,n,i,r),h=d.parseSearchRequest();if(!h)return[];c=function(e){return a.findMatchesLineByLine(e,h,o,s)}}else c=function(t){return Fe.pM.findMatches(a,new Fe.bc(e,n,i,r),t,o,s)};return u.map(c).reduce((function(e,t){return e.concat(t)}),[])}},{key:"findNextMatch",value:function(e,t,n,i,r,o){this._assertNotDisposed();var a=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var s=new Fe.bc(e,n,i,r).parseSearchRequest();if(!s)return null;var l=this.getLineCount(),c=new S.e(a.lineNumber,a.column,l,this.getLineMaxColumn(l)),u=this.findMatchesLineByLine(c,s,o,1);return Fe.pM.findNextMatch(this,new Fe.bc(e,n,i,r),a,o),u.length>0?u[0]:(c=new S.e(1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber)),(u=this.findMatchesLineByLine(c,s,o,1)).length>0?u[0]:null)}return Fe.pM.findNextMatch(this,new Fe.bc(e,n,i,r),a,o)}},{key:"findPreviousMatch",value:function(e,t,n,i,r,o){this._assertNotDisposed();var a=this.validatePosition(t);return Fe.pM.findPreviousMatch(this,new Fe.bc(e,n,i,r),a,o)}},{key:"pushStackElement",value:function(){this._commandManager.pushStackElement()}},{key:"popStackElement",value:function(){this._commandManager.popStackElement()}},{key:"pushEOL",value:function(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}},{key:"_validateEditOperation",value:function(e){return e instanceof T.Qi?e:new T.Qi(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}},{key:"_validateEditOperations",value:function(e){for(var t=[],n=0,i=e.length;n<i;n++)t[n]=this._validateEditOperation(e[n]);return t}},{key:"pushEditOperations",value:function(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}},{key:"_pushEditOperations",value:function(e,t,n){var i=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){var r=t.map((function(e){return{range:i.validateRange(e.range),text:e.text}})),o=!0;if(e)for(var a=0,s=e.length;a<s;a++){for(var l=e[a],c=!1,u=0,d=r.length;u<d;u++){var h=r[u].range,f=h.startLineNumber>l.endLineNumber,p=l.startLineNumber>h.endLineNumber;if(!f&&!p){c=!0;break}}if(!c){o=!1;break}}if(o)for(var g=0,v=this._trimAutoWhitespaceLines.length;g<v;g++){for(var m=this._trimAutoWhitespaceLines[g],y=this.getLineMaxColumn(m),_=!0,b=0,C=r.length;b<C;b++){var w=r[b].range,k=r[b].text;if(!(m<w.startLineNumber||m>w.endLineNumber)&&(!(m===w.startLineNumber&&w.startColumn===y&&w.isEmpty()&&k&&k.length>0&&"\n"===k.charAt(0))&&!(m===w.startLineNumber&&1===w.startColumn&&w.isEmpty()&&k&&k.length>0&&"\n"===k.charAt(k.length-1)))){_=!1;break}}if(_){var x=new S.e(m,1,m,y);t.push(new T.Qi(null,x,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n)}},{key:"_applyUndo",value:function(e,t,n,i){var r=this,o=e.map((function(e){var t=r.getPositionAt(e.newPosition),n=r.getPositionAt(e.newEnd);return{range:new S.e(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(o,t,!0,!1,n,i)}},{key:"_applyRedo",value:function(e,t,n,i){var r=this,o=e.map((function(e){var t=r.getPositionAt(e.oldPosition),n=r.getPositionAt(e.oldEnd);return{range:new S.e(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(o,t,!1,!0,n,i)}},{key:"_applyUndoRedoEdits",value:function(e,t,n,i,r,o){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(o),this._onDidChangeDecorations.endDeferredEmit()}}},{key:"applyEdits",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();var n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}},{key:"_doApplyEdits",value:function(e,t){var n=this,i=this._buffer.getLineCount(),o=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),a=this._buffer.getLineCount(),s=o.changes;if(this._trimAutoWhitespaceLines=o.trimAutoWhitespaceLineNumbers,0!==s.length){for(var l=0,c=s.length;l<c;l++){var u=s[l],d=(0,_.Q)(u.text),f=(0,r.Z)(d,3),p=f[0],g=f[1],v=f[2];this._tokenizationTextModelPart.acceptEdit(u.range,u.text,p,g,v),this._decorationsTree.acceptReplace(u.rangeOffset,u.rangeLength,u.text.length,u.forceMoveMarkers)}var m=[];this._increaseVersionId();for(var y=i,b=0,S=s.length;b<S;b++){var w=s[b],k=(0,_.Q)(w.text),x=(0,r.Z)(k,1)[0];this._onDidChangeDecorations.fire();for(var E=w.range.startLineNumber,T=w.range.endLineNumber,N=T-E,I=x,D=Math.min(N,I),L=I-N,O=a-y-L+E,R=O,A=O+I,M=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new C.L(R,1)),this.getOffsetAt(new C.L(A,this.getLineMaxColumn(A))),0),P=bt.gk.fromDecorations(M),Z=new h.H9(P),F=function(e){var t=E+e,i=O+e;Z.takeFromEndWhile((function(e){return e.lineNumber>i}));var r=Z.takeFromEndWhile((function(e){return e.lineNumber===i}));m.push(new bt.rU(t,n.getLineContent(i),r))},B=D;B>=0;B--)F(B);if(D<N){var H=E+D;m.push(new bt.lN(H+1,T))}if(D<I){for(var z=new h.H9(P),j=E+D,V=I-D,W=a-y-V+j+1,U=[],G=[],K=function(e){var t=W+e;G[e]=n.getLineContent(t),z.takeWhile((function(e){return e.lineNumber<t})),U[e]=z.takeWhile((function(e){return e.lineNumber===t}))},Y=0;Y<V;Y++)K(Y);m.push(new bt.Tx(j+1,E+I,G,U))}y+=L}this._emitContentChangedEvent(new bt.dQ(m,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===o.reverseEdits?void 0:o.reverseEdits}},{key:"undo",value:function(){return this._undoRedoService.undo(this.uri)}},{key:"canUndo",value:function(){return this._undoRedoService.canUndo(this.uri)}},{key:"redo",value:function(){return this._undoRedoService.redo(this.uri)}},{key:"canRedo",value:function(){return this._undoRedoService.canRedo(this.uri)}},{key:"handleBeforeFireDecorationsChangedEvent",value:function(e){var t=this;if(null!==e&&0!==e.size){var n=Array.from(e).map((function(e){return new bt.rU(e,t.getLineContent(e),t._getInjectedTextInLine(e))}));this._onDidChangeInjectedText.fire(new bt.D8(n))}}},{key:"changeDecorations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}},{key:"_changeDecorations",value:function(e,t){var n=this,i={addDecoration:function(t,i){return n._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0]},changeDecoration:function(e,t){n._changeDecorationImpl(e,t)},changeDecorationOptions:function(e,t){n._changeDecorationOptionsImpl(e,Bt(t))},removeDecoration:function(t){n._deltaDecorationsImpl(e,[t],[])},deltaDecorations:function(t,i){return 0===t.length&&0===i.length?[]:n._deltaDecorationsImpl(e,t,i)}},r=null;try{r=t(i)}catch(o){(0,p.dL)(o)}return i.addDecoration=Tt,i.changeDecoration=Tt,i.changeDecorationOptions=Tt,i.removeDecoration=Tt,i.deltaDecorations=Tt,r}},{key:"deltaDecorations",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,p.dL)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}},{key:"_getTrackedRange",value:function(e){return this.getDecorationRange(e)}},{key:"_setTrackedRange",value:function(e,t,n){var i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Ft[n]}])[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;var r=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),a=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),o,a,r),i.setOptions(Ft[n]),this._decorationsTree.insert(i),i.id}},{key:"removeAllDecorationsWithOwnerId",value:function(e){if(!this._isDisposed)for(var t=this._decorationsTree.collectNodesFromOwner(e),n=0,i=t.length;n<i;n++){var r=t[n];this._decorationsTree.delete(r),delete this._decorations[r.id]}}},{key:"getDecorationOptions",value:function(e){var t=this._decorations[e];return t?t.options:null}},{key:"getDecorationRange",value:function(e){var t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}},{key:"getLineDecorations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}},{key:"getLinesDecorations",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=this.getLineCount(),o=Math.min(r,Math.max(1,e)),a=Math.min(r,Math.max(1,t)),s=this.getLineMaxColumn(a),l=new S.e(o,1,a,s),c=this._getDecorationsInRange(l,n,i);return(0,h.vA)(c,this._decorationProvider.getDecorationsInRange(l,n,i)),c}},{key:"getDecorationsInRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.validateRange(e),r=this._getDecorationsInRange(i,t,n);return(0,h.vA)(r,this._decorationProvider.getDecorationsInRange(i,t,n)),r}},{key:"getOverviewRulerDecorations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._decorationsTree.getAll(this,e,t,!0)}},{key:"getInjectedTextDecorations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this._decorationsTree.getAllInjectedText(this,e)}},{key:"_getInjectedTextInLine",value:function(e){var t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),i=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return bt.gk.fromDecorations(i).filter((function(t){return t.lineNumber===e}))}},{key:"getAllDecorations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._decorationsTree.getAll(this,e,t,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t))}},{key:"_getDecorationsInRange",value:function(e,t,n){var i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),r=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,i,r,t,n)}},{key:"getRangeAt",value:function(e,t){return this._buffer.getRangeAt(e,t-e)}},{key:"_changeDecorationImpl",value:function(e,t){var n=this._decorations[e];if(n){if(n.options.after){var i=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber)}if(n.options.before){var r=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}var o=this._validateRangeRelaxedNoAllocations(t),a=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),s=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),a,s,o),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.startLineNumber)}}},{key:"_changeDecorationOptionsImpl",value:function(e,t){var n=this._decorations[e];if(n){var i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){var o=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.endLineNumber)}if(n.options.before||t.before){var a=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.startLineNumber)}i!==r?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}}},{key:"_deltaDecorationsImpl",value:function(e,t,n){for(var i=this.getVersionId(),r=t.length,o=0,a=n.length,s=0,l=new Array(a);o<r||s<a;){var c=null;if(o<r){do{c=this._decorations[t[o++]]}while(!c&&o<r);if(c){if(c.options.after){var u=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(u.endLineNumber)}if(c.options.before){var d=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(d.startLineNumber)}this._decorationsTree.delete(c),this._onDidChangeDecorations.checkAffectedAndFire(c.options)}}if(s<a){if(!c){var h=++this._lastDecorationId,f="".concat(this._instanceId,";").concat(h);c=new de(f,0,0),this._decorations[f]=c}var p=n[s],g=this._validateRangeRelaxedNoAllocations(p.range),v=Bt(p.options),m=this._buffer.getOffsetAt(g.startLineNumber,g.startColumn),y=this._buffer.getOffsetAt(g.endLineNumber,g.endColumn);c.ownerId=e,c.reset(i,m,y,g),c.setOptions(v),c.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(g.endLineNumber),c.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(g.startLineNumber),this._onDidChangeDecorations.checkAffectedAndFire(v),this._decorationsTree.insert(c),l[s]=c.id,s++}else c&&delete this._decorations[c.id]}return l}},{key:"getLanguageId",value:function(){return this.tokenization.getLanguageId()}},{key:"setMode",value:function(e){this.tokenization.setLanguageId(e)}},{key:"getLanguageIdAtPosition",value:function(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}},{key:"getWordAtPosition",value:function(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}},{key:"getWordUntilPosition",value:function(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}},{key:"normalizePosition",value:function(e,t){return e}},{key:"getLineIndentColumn",value:function(e){return function(e){var t,n=0,r=(0,i.Z)(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(" "!==o&&"\t"!==o)break;n++}}catch(a){r.e(a)}finally{r.f()}return n}(this.getLineContent(e))+1}}],[{key:"resolveOptions",value:function(e,t){if(t.detectIndentation){var n=ne(e,t.tabSize,t.insertSpaces);return new T.dJ({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new T.dJ({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}}]),n}(v.JT);function It(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Dt(e){return!!e.options.after||!!e.options.before}Nt.MODEL_SYNC_LIMIT=52428800,Nt.LARGE_FILE_SIZE_THRESHOLD=20971520,Nt.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,Nt.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:k.D.tabSize,indentSize:k.D.indentSize,insertSpaces:k.D.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:k.D.trimAutoWhitespace,largeFileOptimizations:k.D.largeFileOptimizations,bracketPairColorizationOptions:k.D.bracketPairColorizationOptions},Nt=St([wt(4,Ct.tJ),wt(5,x.O),wt(6,E.c_)],Nt);var Lt=function(){function e(){(0,u.Z)(this,e),this._decorationsTree0=new fe,this._decorationsTree1=new fe,this._injectedTextDecorationsTree=new fe}return(0,d.Z)(e,[{key:"ensureAllNodesHaveRanges",value:function(e){this.getAll(e,0,!1,!1)}},{key:"_ensureNodesHaveRanges",value:function(e,t){var n,r=(0,i.Z)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;null===o.range&&(o.range=e.getRangeAt(o.cachedAbsoluteStart,o.cachedAbsoluteEnd))}}catch(a){r.e(a)}finally{r.f()}return t}},{key:"getAllInInterval",value:function(e,t,n,i,r){var o=e.getVersionId(),a=this._intervalSearch(t,n,i,r,o);return this._ensureNodesHaveRanges(e,a)}},{key:"_intervalSearch",value:function(e,t,n,i,r){var o=this._decorationsTree0.intervalSearch(e,t,n,i,r),a=this._decorationsTree1.intervalSearch(e,t,n,i,r),s=this._injectedTextDecorationsTree.intervalSearch(e,t,n,i,r);return o.concat(a).concat(s)}},{key:"getInjectedTextInInterval",value:function(e,t,n,i){var r=e.getVersionId(),o=this._injectedTextDecorationsTree.intervalSearch(t,n,i,!1,r);return this._ensureNodesHaveRanges(e,o).filter((function(e){return e.options.showIfCollapsed||!e.range.isEmpty()}))}},{key:"getAllInjectedText",value:function(e,t){var n=e.getVersionId(),i=this._injectedTextDecorationsTree.search(t,!1,n);return this._ensureNodesHaveRanges(e,i).filter((function(e){return e.options.showIfCollapsed||!e.range.isEmpty()}))}},{key:"getAll",value:function(e,t,n,i){var r=e.getVersionId(),o=this._search(t,n,i,r);return this._ensureNodesHaveRanges(e,o)}},{key:"_search",value:function(e,t,n,i){if(n)return this._decorationsTree1.search(e,t,i);var r=this._decorationsTree0.search(e,t,i),o=this._decorationsTree1.search(e,t,i),a=this._injectedTextDecorationsTree.search(e,t,i);return r.concat(o).concat(a)}},{key:"collectNodesFromOwner",value:function(e){var t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),i=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(i)}},{key:"collectNodesPostOrder",value:function(){var e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}},{key:"insert",value:function(e){Dt(e)?this._injectedTextDecorationsTree.insert(e):It(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}},{key:"delete",value:function(e){Dt(e)?this._injectedTextDecorationsTree.delete(e):It(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}},{key:"getNodeRange",value:function(e,t){var n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}},{key:"_resolveNode",value:function(e,t){Dt(e)?this._injectedTextDecorationsTree.resolveNode(e,t):It(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}},{key:"acceptReplace",value:function(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i),this._injectedTextDecorationsTree.acceptReplace(e,t,n,i)}}]),e}();function Ot(e){return e.replace(/[^a-z0-9\-_]/gi," ")}var Rt=(0,d.Z)((function e(t){(0,u.Z)(this,e),this.color=t.color||"",this.darkColor=t.darkColor||""})),At=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,u.Z)(this,n),(i=t.call(this,e))._resolvedColor=null,i.position="number"===typeof e.position?e.position:T.sh.Center,i}return(0,d.Z)(n,[{key:"getColor",value:function(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}},{key:"invalidateCachedColor",value:function(){this._resolvedColor=null}},{key:"_resolveColor",value:function(e,t){if("string"===typeof e)return e;var n=e?t.getColor(e.id):null;return n?n.toString():""}}]),n}(Rt),Mt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,u.Z)(this,n),(i=t.call(this,e)).position=e.position,i}return(0,d.Z)(n,[{key:"getColor",value:function(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}},{key:"invalidateCachedColor",value:function(){this._resolvedColor=void 0}},{key:"_resolveColor",value:function(e,t){return"string"===typeof e?f.Il.fromHex(e):t.getColor(e.id)}}]),n}(Rt),Pt=function(){function e(t){(0,u.Z)(this,e),this.content=t.content||"",this.inlineClassName=t.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=t.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=t.attachedData||null,this.cursorStops=t.cursorStops||null}return(0,d.Z)(e,null,[{key:"from",value:function(t){return t instanceof e?t:new e(t)}}]),e}(),Zt=function(){function e(t){var n,i;(0,u.Z)(this,e),this.description=t.description,this.blockClassName=t.blockClassName?Ot(t.blockClassName):null,this.stickiness=t.stickiness||0,this.zIndex=t.zIndex||0,this.className=t.className?Ot(t.className):null,this.hoverMessage=t.hoverMessage||null,this.glyphMarginHoverMessage=t.glyphMarginHoverMessage||null,this.isWholeLine=t.isWholeLine||!1,this.showIfCollapsed=t.showIfCollapsed||!1,this.collapseOnReplaceEdit=t.collapseOnReplaceEdit||!1,this.overviewRuler=t.overviewRuler?new At(t.overviewRuler):null,this.minimap=t.minimap?new Mt(t.minimap):null,this.glyphMarginClassName=t.glyphMarginClassName?Ot(t.glyphMarginClassName):null,this.linesDecorationsClassName=t.linesDecorationsClassName?Ot(t.linesDecorationsClassName):null,this.firstLineDecorationClassName=t.firstLineDecorationClassName?Ot(t.firstLineDecorationClassName):null,this.marginClassName=t.marginClassName?Ot(t.marginClassName):null,this.inlineClassName=t.inlineClassName?Ot(t.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=t.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=t.beforeContentClassName?Ot(t.beforeContentClassName):null,this.afterContentClassName=t.afterContentClassName?Ot(t.afterContentClassName):null,this.after=t.after?Pt.from(t.after):null,this.before=t.before?Pt.from(t.before):null,this.hideInCommentTokens=null!==(n=t.hideInCommentTokens)&&void 0!==n&&n,this.hideInStringTokens=null!==(i=t.hideInStringTokens)&&void 0!==i&&i}return(0,d.Z)(e,null,[{key:"register",value:function(t){return new e(t)}},{key:"createDynamic",value:function(t){return new e(t)}}]),e}();Zt.EMPTY=Zt.register({description:"empty"});var Ft=[Zt.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),Zt.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),Zt.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),Zt.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Bt(e){return e instanceof Zt?e:Zt.createDynamic(e)}var Ht=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,u.Z)(this,n),(i=t.call(this)).handleBeforeFire=e,i._actual=i._register(new g.Q5),i.event=i._actual.event,i._affectedInjectedTextLines=null,i._deferredCnt=0,i._shouldFire=!1,i._affectsMinimap=!1,i._affectsOverviewRuler=!1,i}return(0,d.Z)(n,[{key:"beginDeferredEmit",value:function(){this._deferredCnt++}},{key:"endDeferredEmit",value:function(){var e;if(this._deferredCnt--,0===this._deferredCnt){if(this._shouldFire){this.handleBeforeFire(this._affectedInjectedTextLines);var t={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(t)}null===(e=this._affectedInjectedTextLines)||void 0===e||e.clear(),this._affectedInjectedTextLines=null}}},{key:"recordLineAffectedByInjectedText",value:function(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}},{key:"checkAffectedAndFire",value:function(e){this._affectsMinimap||(this._affectsMinimap=!(!e.minimap||!e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!(!e.overviewRuler||!e.overviewRuler.color)),this._shouldFire=!0}},{key:"fire",value:function(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}]),n}(v.JT),zt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,u.Z)(this,n),(e=t.call(this))._fastEmitter=e._register(new g.Q5),e.fastEvent=e._fastEmitter.event,e._slowEmitter=e._register(new g.Q5),e.slowEvent=e._slowEmitter.event,e._deferredCnt=0,e._deferredEvent=null,e}return(0,d.Z)(n,[{key:"beginDeferredEmit",value:function(){this._deferredCnt++}},{key:"endDeferredEmit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;var t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}},{key:"fire",value:function(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}]),n}(v.JT)},35508:function(e,t,n){"use strict";n.d(t,{U:function(){return c}});var i=n(15671),r=n(43144),o=n(11752),a=n(61120),s=n(60136),l=n(27277),c=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,i.Z)(this,n),(e=t.apply(this,arguments))._isDisposed=!1,e}return(0,r.Z)(n,[{key:"dispose",value:function(){(0,o.Z)((0,a.Z)(n.prototype),"dispose",this).call(this),this._isDisposed=!0}},{key:"assertNotDisposed",value:function(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}]),n}(n(11860).JT)},25207:function(e,t,n){"use strict";n.d(t,{bc:function(){return u},cM:function(){return p},iE:function(){return d},pM:function(){return f},sz:function(){return g}});var i=n(15671),r=n(43144),o=n(32377),a=n(3109),s=n(38622),l=n(80133),c=n(36550),u=function(){function e(t,n,r,o){(0,i.Z)(this,e),this.searchString=t,this.isRegex=n,this.matchCase=r,this.wordSeparators=o}return(0,r.Z)(e,[{key:"parseSearchRequest",value:function(){if(""===this.searchString)return null;var e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(var t=0,n=e.length;t<n;t++){var i=e.charCodeAt(t);if(10===i)return!0;if(92===i){if(++t>=n)break;var r=e.charCodeAt(t);if(110===r||114===r||87===r)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;var t=null;try{t=o.GF(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(i){return null}if(!t)return null;var n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new c.Tx(t,this.wordSeparators?(0,a.u)(this.wordSeparators):null,n?this.searchString:null)}}]),e}();function d(e,t,n){if(!n)return new c.tk(e,null);for(var i=[],r=0,o=t.length;r<o;r++)i[r]=t[r];return new c.tk(e,i)}var h=function(){function e(t){(0,i.Z)(this,e);for(var n=[],r=0,o=0,a=t.length;o<a;o++)10===t.charCodeAt(o)&&(n[r++]=o);this._lineFeedsOffsets=n}return(0,r.Z)(e,[{key:"findLineFeedCountBeforeOffset",value:function(e){var t=this._lineFeedsOffsets,n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){var r=n+((i-n)/2>>0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}]),e}(),f=function(){function e(){(0,i.Z)(this,e)}return(0,r.Z)(e,null,[{key:"findMatches",value:function(e,t,n,i,r){var o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,n,new g(o.wordSeparators,o.regex),i,r):this._doFindMatchesLineByLine(e,n,o,i,r):[]}},{key:"_getMultilineMatchRange",value:function(e,t,n,i,r,o){var a,s,c=0;if(a=i?t+r+(c=i.findLineFeedCountBeforeOffset(r)):t+r,i){var u=i.findLineFeedCountBeforeOffset(r+o.length)-c;s=a+o.length+u}else s=a+o.length;var d=e.getPositionAt(a),h=e.getPositionAt(s);return new l.e(d.lineNumber,d.column,h.lineNumber,h.column)}},{key:"_doFindMatchesMultiline",value:function(e,t,n,i,r){var o,a=e.getOffsetAt(t.getStartPosition()),s=e.getValueInRange(t,1),l="\r\n"===e.getEOL()?new h(s):null,c=[],u=0;for(n.reset(0);o=n.next(s);)if(c[u++]=d(this._getMultilineMatchRange(e,a,s,l,o.index,o[0]),o,i),u>=r)return c;return c}},{key:"_doFindMatchesLineByLine",value:function(e,t,n,i,r){var o=[],a=0;if(t.startLineNumber===t.endLineNumber){var s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return a=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,a,o,i,r),o}var l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);a=this._findMatchesInLine(n,l,t.startLineNumber,t.startColumn-1,a,o,i,r);for(var c=t.startLineNumber+1;c<t.endLineNumber&&a<r;c++)a=this._findMatchesInLine(n,e.getLineContent(c),c,0,a,o,i,r);if(a<r){var u=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);a=this._findMatchesInLine(n,u,t.endLineNumber,0,a,o,i,r)}return o}},{key:"_findMatchesInLine",value:function(e,t,n,i,r,o,a,s){var u=e.wordSeparators;if(!a&&e.simpleSearch){for(var h=e.simpleSearch,f=h.length,v=t.length,m=-f;-1!==(m=t.indexOf(h,m+f));)if((!u||p(u,t,v,m,f))&&(o[r++]=new c.tk(new l.e(n,m+1+i,n,m+1+f+i),null),r>=s))return r;return r}var y,_=new g(e.wordSeparators,e.regex);_.reset(0);do{if((y=_.next(t))&&(o[r++]=d(new l.e(n,y.index+1+i,n,y.index+1+y[0].length+i),y,a),r>=s))return r}while(y);return r}},{key:"findNextMatch",value:function(e,t,n,i){var r=t.parseSearchRequest();if(!r)return null;var o=new g(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,o,i):this._doFindNextMatchLineByLine(e,n,o,i)}},{key:"_doFindNextMatchMultiline",value:function(e,t,n,i){var r=new s.L(t.lineNumber,1),o=e.getOffsetAt(r),a=e.getLineCount(),c=e.getValueInRange(new l.e(r.lineNumber,r.column,a,e.getLineMaxColumn(a)),1),u="\r\n"===e.getEOL()?new h(c):null;n.reset(t.column-1);var f=n.next(c);return f?d(this._getMultilineMatchRange(e,o,c,u,f.index,f[0]),f,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new s.L(1,1),n,i):null}},{key:"_doFindNextMatchLineByLine",value:function(e,t,n,i){var r=e.getLineCount(),o=t.lineNumber,a=e.getLineContent(o),s=this._findFirstMatchInLine(n,a,o,t.column,i);if(s)return s;for(var l=1;l<=r;l++){var c=(o+l-1)%r,u=e.getLineContent(c+1),d=this._findFirstMatchInLine(n,u,c+1,1,i);if(d)return d}return null}},{key:"_findFirstMatchInLine",value:function(e,t,n,i,r){e.reset(i-1);var o=e.next(t);return o?d(new l.e(n,o.index+1,n,o.index+1+o[0].length),o,r):null}},{key:"findPreviousMatch",value:function(e,t,n,i){var r=t.parseSearchRequest();if(!r)return null;var o=new g(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,o,i):this._doFindPreviousMatchLineByLine(e,n,o,i)}},{key:"_doFindPreviousMatchMultiline",value:function(e,t,n,i){var r=this._doFindMatchesMultiline(e,new l.e(1,1,t.lineNumber,t.column),n,i,9990);if(r.length>0)return r[r.length-1];var o=e.getLineCount();return t.lineNumber!==o||t.column!==e.getLineMaxColumn(o)?this._doFindPreviousMatchMultiline(e,new s.L(o,e.getLineMaxColumn(o)),n,i):null}},{key:"_doFindPreviousMatchLineByLine",value:function(e,t,n,i){var r=e.getLineCount(),o=t.lineNumber,a=e.getLineContent(o).substring(0,t.column-1),s=this._findLastMatchInLine(n,a,o,i);if(s)return s;for(var l=1;l<=r;l++){var c=(r+o-l-1)%r,u=e.getLineContent(c+1),d=this._findLastMatchInLine(n,u,c+1,i);if(d)return d}return null}},{key:"_findLastMatchInLine",value:function(e,t,n,i){var r,o=null;for(e.reset(0);r=e.next(t);)o=d(new l.e(n,r.index+1,n,r.index+1+r[0].length),r,i);return o}}]),e}();function p(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;var o=t.charCodeAt(i-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){var a=t.charCodeAt(i);if(0!==e.get(a))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;var o=t.charCodeAt(i+r);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){var a=t.charCodeAt(i+r-1);if(0!==e.get(a))return!0}return!1}(e,t,n,i,r)}var g=function(){function e(t,n){(0,i.Z)(this,e),this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return(0,r.Z)(e,[{key:"reset",value:function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}},{key:"next",value:function(e){var t,n=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(!(t=this._searchRegex.exec(e)))return null;var i=t.index,r=t[0].length;if(i===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){o.ZH(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=r,!this._wordSeparators||p(this._wordSeparators,e,n,i,r))return t}while(t);return null}}]),e}()},15889:function(e,t,n){"use strict";function i(e,t){for(var n=0,i=0,r=e.length;i<r;){var o=e.charCodeAt(i);if(32===o)n++;else{if(9!==o)break;n=n-n%t+t}i++}return i===r?-1:n}n.d(t,{q:function(){return i}})},5323:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var i=(0,n(36888).yh)("editorWorkerService")},63689:function(e,t,n){"use strict";n.d(t,{OG:function(){return I},ML:function(){return k},KO:function(){return T},Jc:function(){return S},Vl:function(){return _},Vj:function(){return b}});var i=n(37762),r=n(74165),o=n(43144),a=n(15671),s=n(82784),l=n(14173),c=n(72112),u=n(29257),d=n(11133),h=n(85294),f=n(82175),p=n(73616);function g(e){var t=new Uint32Array(function(e){var t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;var n,r=(0,i.Z)(e.deltas);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.data&&(t+=o.data.length)}}catch(a){r.e(a)}finally{r.f()}}return t}(e)),n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;var r,o=(0,i.Z)(e.deltas);try{for(o.s();!(r=o.n()).done;){var a=r.value;t[n++]=a.start,t[n++]=a.deleteCount,a.data?(t[n++]=a.data.length,t.set(a.data,n),n+=a.data.length):t[n++]=0}}catch(s){o.e(s)}finally{o.f()}}return function(e){var t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return p.r()||function(e){for(var t=0,n=e.length;t<n;t+=4){var i=e[t+0],r=e[t+1],o=e[t+2],a=e[t+3];e[t+0]=a,e[t+1]=o,e[t+2]=r,e[t+3]=i}}(t),f.KN.wrap(t)}(t)}var v=n(80133),m=n(53584),y=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};function _(e){return e&&!!e.data}function b(e){return e&&Array.isArray(e.edits)}var C=(0,o.Z)((function e(t,n,i){(0,a.Z)(this,e),this.provider=t,this.tokens=n,this.error=i}));function S(e,t){return e.has(t)}function w(e,t){var n=e.orderedGroups(t);return n.length>0?n[0]:[]}function k(e,t,n,o,a){return y(this,void 0,void 0,(0,r.Z)().mark((function s(){var l,c,u,d,h,f=this;return(0,r.Z)().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return l=w(e,t),s.next=3,Promise.all(l.map((function(e){return y(f,void 0,void 0,(0,r.Z)().mark((function i(){var s,l;return(0,r.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return l=null,i.prev=1,i.next=4,e.provideDocumentSemanticTokens(t,e===n?o:null,a);case 4:s=i.sent,i.next=11;break;case 7:i.prev=7,i.t0=i.catch(1),l=i.t0,s=null;case 11:return s&&(_(s)||b(s))||(s=null),i.abrupt("return",new C(e,s,l));case 13:case"end":return i.stop()}}),i,null,[[1,7]])})))})));case 3:c=s.sent,u=(0,i.Z)(c),s.prev=5,u.s();case 7:if((d=u.n()).done){s.next=15;break}if(!(h=d.value).error){s.next=11;break}throw h.error;case 11:if(!h.tokens){s.next=13;break}return s.abrupt("return",h);case 13:s.next=7;break;case 15:s.next=20;break;case 17:s.prev=17,s.t0=s.catch(5),u.e(s.t0);case 20:return s.prev=20,u.f(),s.finish(20);case 23:if(!(c.length>0)){s.next=25;break}return s.abrupt("return",c[0]);case 25:return s.abrupt("return",null);case 26:case"end":return s.stop()}}),s,null,[[5,17,20,23]])})))}function x(e,t){var n=e.orderedGroups(t);return n.length>0?n[0]:null}var E=(0,o.Z)((function e(t,n){(0,a.Z)(this,e),this.provider=t,this.tokens=n}));function T(e,t){return e.has(t)}function N(e,t){var n=e.orderedGroups(t);return n.length>0?n[0]:[]}function I(e,t,n,o){return y(this,void 0,void 0,(0,r.Z)().mark((function a(){var s,c,u,d,h,f=this;return(0,r.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=N(e,t),a.next=3,Promise.all(s.map((function(e){return y(f,void 0,void 0,(0,r.Z)().mark((function i(){var a;return(0,r.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,e.provideDocumentRangeSemanticTokens(t,n,o);case 3:a=i.sent,i.next=10;break;case 6:i.prev=6,i.t0=i.catch(0),(0,l.Cp)(i.t0),a=null;case 10:return a&&_(a)||(a=null),i.abrupt("return",new E(e,a));case 12:case"end":return i.stop()}}),i,null,[[0,6]])})))})));case 3:c=a.sent,u=(0,i.Z)(c),a.prev=5,u.s();case 7:if((d=u.n()).done){a.next=13;break}if(!(h=d.value).tokens){a.next=11;break}return a.abrupt("return",h);case 11:a.next=7;break;case 13:a.next=18;break;case 15:a.prev=15,a.t0=a.catch(5),u.e(a.t0);case 18:return a.prev=18,u.f(),a.finish(18);case 21:if(!(c.length>0)){a.next=23;break}return a.abrupt("return",c[0]);case 23:return a.abrupt("return",null);case 24:case"end":return a.stop()}}),a,null,[[5,15,18,21]])})))}d.P0.registerCommand("_provideDocumentSemanticTokensLegend",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return y(void 0,void 0,void 0,(0,r.Z)().mark((function t(){var i,o,a,s,l;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n[0],(0,h.p_)(i instanceof c.o),o=e.get(u.q).getModel(i)){t.next=5;break}return t.abrupt("return",void 0);case 5:if(a=e.get(m.p),s=a.documentSemanticTokensProvider,l=x(s,o)){t.next=9;break}return t.abrupt("return",e.get(d.Hy).executeCommand("_provideDocumentRangeSemanticTokensLegend",i));case 9:return t.abrupt("return",l[0].getLegend());case 10:case"end":return t.stop()}}),t)})))})),d.P0.registerCommand("_provideDocumentSemanticTokens",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return y(void 0,void 0,void 0,(0,r.Z)().mark((function t(){var i,o,a,l,f,p,v,y;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n[0],(0,h.p_)(i instanceof c.o),o=e.get(u.q).getModel(i)){t.next=5;break}return t.abrupt("return",void 0);case 5:if(a=e.get(m.p),S(l=a.documentSemanticTokensProvider,o)){t.next=8;break}return t.abrupt("return",e.get(d.Hy).executeCommand("_provideDocumentRangeSemanticTokens",i,o.getFullModelRange()));case 8:return t.next=10,k(l,o,null,null,s.T.None);case 10:if(f=t.sent){t.next=13;break}return t.abrupt("return",void 0);case 13:if(p=f.provider,(v=f.tokens)&&_(v)){t.next=16;break}return t.abrupt("return",void 0);case 16:return y=g({id:0,type:"full",data:v.data}),v.resultId&&p.releaseDocumentSemanticTokens(v.resultId),t.abrupt("return",y);case 19:case"end":return t.stop()}}),t)})))})),d.P0.registerCommand("_provideDocumentRangeSemanticTokensLegend",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return y(void 0,void 0,void 0,(0,r.Z)().mark((function t(){var i,o,a,l,d,f,p;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n[0],o=n[1],(0,h.p_)(i instanceof c.o),a=e.get(u.q).getModel(i)){t.next=5;break}return t.abrupt("return",void 0);case 5:if(l=e.get(m.p),d=l.documentRangeSemanticTokensProvider,0!==(f=N(d,a)).length){t.next=9;break}return t.abrupt("return",void 0);case 9:if(1!==f.length){t.next=11;break}return t.abrupt("return",f[0].getLegend());case 11:if(o&&v.e.isIRange(o)){t.next=14;break}return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),t.abrupt("return",f[0].getLegend());case 14:return t.next=16,I(d,a,v.e.lift(o),s.T.None);case 16:if(p=t.sent){t.next=19;break}return t.abrupt("return",void 0);case 19:return t.abrupt("return",p.provider.getLegend());case 20:case"end":return t.stop()}}),t)})))})),d.P0.registerCommand("_provideDocumentRangeSemanticTokens",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return y(void 0,void 0,void 0,(0,r.Z)().mark((function t(){var i,o,a,l,d,f;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n[0],o=n[1],(0,h.p_)(i instanceof c.o),(0,h.p_)(v.e.isIRange(o)),a=e.get(u.q).getModel(i)){t.next=6;break}return t.abrupt("return",void 0);case 6:return l=e.get(m.p),d=l.documentRangeSemanticTokensProvider,t.next=9,I(d,a,v.e.lift(o),s.T.None);case 9:if((f=t.sent)&&f.tokens){t.next=12;break}return t.abrupt("return",void 0);case 12:return t.abrupt("return",g({id:0,type:"full",data:f.tokens.data}));case 13:case"end":return t.stop()}}),t)})))}))},98971:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var i,r=n(29439),o=n(37762),a=n(15671),s=n(43144),l=n(57741),c=n(54376),u=n(53710),d=n(77896),h=n(36888),f=n(11561),p=n(83078),g=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},v=function(e,t){return function(n,i){t(n,i,e)}},m=(0,h.yh)("ILanguageFeatureDebounceService");!function(e){var t=new WeakMap,n=0;e.of=function(e){var i=t.get(e);return void 0===i&&(i=++n,t.set(e,i)),i}}(i||(i={}));var y=function(){function e(t,n,i,r,o,s){(0,a.Z)(this,e),this._logService=t,this._name=n,this._registry=i,this._default=r,this._min=o,this._max=s,this._cache=new c.z6(50,.7)}return(0,s.Z)(e,[{key:"_key",value:function(e){return e.id+this._registry.all(e).reduce((function(e,t){return(0,l.SP)(i.of(t),e)}),0)}},{key:"get",value:function(e){var t=this._key(e),n=this._cache.get(t);return n?(0,u.uZ)(n.value,this._min,this._max):this.default()}},{key:"update",value:function(e,t){var n=this._key(e),i=this._cache.get(n);i||(i=new u.N(6),this._cache.set(n,i));var r=(0,u.uZ)(i.update(t),this._min,this._max);return(0,p.xn)(e.uri,"output")||this._logService.trace("[DEBOUNCE: ".concat(this._name,"] for ").concat(e.uri.toString()," is ").concat(r,"ms")),r}},{key:"_overall",value:function(){var e,t=new u.nM,n=(0,o.Z)(this._cache);try{for(n.s();!(e=n.n()).done;){var i=(0,r.Z)(e.value,2)[1];t.update(i.value)}}catch(a){n.e(a)}finally{n.f()}return t.value}},{key:"default",value:function(){var e=0|this._overall()||this._default;return(0,u.uZ)(e,this._min,this._max)}}]),e}(),_=function(){function e(t){(0,a.Z)(this,e),this._logService=t,this._data=new Map}return(0,s.Z)(e,[{key:"for",value:function(e,t,n){var r,o,a,s=null!==(r=null===n||void 0===n?void 0:n.min)&&void 0!==r?r:50,l=null!==(o=null===n||void 0===n?void 0:n.max)&&void 0!==o?o:Math.pow(s,2),c=null!==(a=null===n||void 0===n?void 0:n.key)&&void 0!==a?a:void 0,u="".concat(i.of(e),",").concat(s).concat(c?","+c:""),d=this._data.get(u);return d||(d=new y(this._logService,t,e,0|this._overallAverage()||1.5*s,s,l),this._data.set(u,d)),d}},{key:"_overallAverage",value:function(){var e,t=new u.nM,n=(0,o.Z)(this._data.values());try{for(n.s();!(e=n.n()).done;){var i=e.value;t.update(i.default())}}catch(r){n.e(r)}finally{n.f()}return t.value}}]),e}();_=g([v(0,f.VZ)],_),(0,d.z)(m,_,!0)},53584:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var i=(0,n(36888).yh)("ILanguageFeaturesService")},40729:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var i=(0,n(36888).yh)("markerDecorationsService")},29257:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var i=(0,n(36888).yh)("modelService")},45310:function(e,t,n){"use strict";n.d(t,{b$:function(){return W},e3:function(){return U},tw:function(){return G}});var i=n(11752),r=n(61120),o=n(37762),a=n(97326),s=n(60136),l=n(27277),c=n(15671),u=n(43144),d=n(73097),h=n(11860),f=n(73616),p=n(14173),g=n(70845),v=n(54589),m=n(24092),y=n(72762),_=n(29257),b=n(56903),C=n(87984),S=n(60022),w=n(82784),k=n(64014),x=n(11561),E=n(25530),T=n(57741),N=n(1169),I=n(84855),D=n(6222),L=n(63689),O=n(63656),R=n(29662),A=n(98971),M=n(25),P=n(53584),Z=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},F=function(e,t){return function(n,i){t(n,i,e)}};function B(e){return e.toString()}function H(e){for(var t,n=new T.yP,i=e.createSnapshot();t=i.read();)n.update(t);return n.digest()}var z=function(){function e(t,n,i){(0,c.Z)(this,e),this._modelEventListeners=new h.SL,this.model=t,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(t.onWillDispose((function(){return n(t)}))),this._modelEventListeners.add(t.onDidChangeLanguage((function(e){return i(t,e)})))}return(0,u.Z)(e,[{key:"_disposeLanguageSelection",value:function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}},{key:"dispose",value:function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}},{key:"setLanguage",value:function(e){var t=this;this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange((function(){return t.model.setMode(e.languageId)})),this.model.setMode(e.languageId)}}]),e}(),j=f.IJ||f.dz?1:2,V=(0,u.Z)((function e(t,n,i,r,o,a,s,l){(0,c.Z)(this,e),this.uri=t,this.initialUndoRedoSnapshot=n,this.time=i,this.sharesUndoRedoStack=r,this.heapSize=o,this.sha1=a,this.versionId=s,this.alternativeVersionId=l})),W=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i,r,o,s,l,u,h,f){var p;return(0,c.Z)(this,n),(p=t.call(this))._configurationService=e,p._resourcePropertiesService=i,p._themeService=r,p._logService=o,p._undoRedoService=s,p._languageService=l,p._languageConfigurationService=u,p._languageFeatureDebounceService=h,p._onModelAdded=p._register(new d.Q5),p.onModelAdded=p._onModelAdded.event,p._onModelRemoved=p._register(new d.Q5),p.onModelRemoved=p._onModelRemoved.event,p._onModelModeChanged=p._register(new d.Q5),p.onModelLanguageChanged=p._onModelModeChanged.event,p._modelCreationOptionsByLanguageAndResource=Object.create(null),p._models={},p._disposedModels=new Map,p._disposedModelsHeapSize=0,p._semanticStyling=p._register(new Y(p._themeService,p._languageService,p._logService)),p._register(p._configurationService.onDidChangeConfiguration((function(){return p._updateModelOptions()}))),p._updateModelOptions(),p._register(new K(p._semanticStyling,(0,a.Z)(p),p._themeService,p._configurationService,p._languageFeatureDebounceService,f)),p}return(0,u.Z)(n,[{key:"_getEOL",value:function(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);var n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===f.OS||2===f.OS?"\n":"\r\n"}},{key:"_shouldRestoreUndoStack",value:function(){var e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}},{key:"getCreationOptions",value:function(e,t,i){var r=this._modelCreationOptionsByLanguageAndResource[e+t];if(!r){var o=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:t}),a=this._getEOL(t,e);r=n._readModelOptions({editor:o,eol:a},i),this._modelCreationOptionsByLanguageAndResource[e+t]=r}return r}},{key:"_updateModelOptions",value:function(){var e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var t=Object.keys(this._models),i=0,r=t.length;i<r;i++){var o=t[i],a=this._models[o],s=a.model.getLanguageId(),l=a.model.uri,c=e[s+l],u=this.getCreationOptions(s,l,a.model.isForSimpleWidget);n._setModelOptionsForModel(a.model,u,c)}}},{key:"_insertDisposedModel",value:function(e){this._disposedModels.set(B(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}},{key:"_removeDisposedModel",value:function(e){var t=this._disposedModels.get(B(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(B(e)),t}},{key:"_ensureDisposedModelsHeapSize",value:function(e){if(this._disposedModelsHeapSize>e){var t=[];for(this._disposedModels.forEach((function(e){e.sharesUndoRedoStack||t.push(e)})),t.sort((function(e,t){return e.time-t.time}));t.length>0&&this._disposedModelsHeapSize>e;){var n=t.shift();this._removeDisposedModel(n.uri),null!==n.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(n.initialUndoRedoSnapshot)}}}},{key:"_createModelData",value:function(e,t,n,i){var r=this,a=this.getCreationOptions(t,n,i),s=new g.yO(e,t,a,n,this._undoRedoService,this._languageService,this._languageConfigurationService);if(n&&this._disposedModels.has(B(n))){var l=this._removeDisposedModel(n),c=this._undoRedoService.getElements(n),u=H(s)===l.sha1;if(u||l.sharesUndoRedoStack){var d,h=(0,o.Z)(c.past);try{for(h.s();!(d=h.n()).done;){var f=d.value;(0,N.e9)(f)&&f.matchesResource(n)&&f.setModel(s)}}catch(b){h.e(b)}finally{h.f()}var p,v=(0,o.Z)(c.future);try{for(v.s();!(p=v.n()).done;){var m=p.value;(0,N.e9)(m)&&m.matchesResource(n)&&m.setModel(s)}}catch(b){v.e(b)}finally{v.f()}this._undoRedoService.setElementsValidFlag(n,!0,(function(e){return(0,N.e9)(e)&&e.matchesResource(n)})),u&&(s._overwriteVersionId(l.versionId),s._overwriteAlternativeVersionId(l.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(l.initialUndoRedoSnapshot))}else null!==l.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(l.initialUndoRedoSnapshot)}var y=B(s.uri);if(this._models[y])throw new Error("ModelService: Cannot add model because it already exists!");var _=new z(s,(function(e){return r._onWillDispose(e)}),(function(e,t){return r._onDidChangeLanguage(e,t)}));return this._models[y]=_,_}},{key:"createModel",value:function(e,t,n){var i,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t?(i=this._createModelData(e,t.languageId,n,r),this.setMode(i.model,t)):i=this._createModelData(e,m.bd,n,r),this._onModelAdded.fire(i.model),i.model}},{key:"setMode",value:function(e,t){if(t){var n=this._models[B(e.uri)];n&&n.setLanguage(t)}}},{key:"getModels",value:function(){for(var e=[],t=Object.keys(this._models),n=0,i=t.length;n<i;n++){var r=t[n];e.push(this._models[r].model)}return e}},{key:"getModel",value:function(e){var t=B(e),n=this._models[t];return n?n.model:null}},{key:"getSemanticTokensProviderStyling",value:function(e){return this._semanticStyling.get(e)}},{key:"_schemaShouldMaintainUndoRedoElements",value:function(e){return e.scheme===I.lg.file||e.scheme===I.lg.vscodeRemote||e.scheme===I.lg.vscodeUserData||e.scheme===I.lg.vscodeNotebookCell||"fake-fs"===e.scheme}},{key:"_onWillDispose",value:function(e){var t=B(e.uri),i=this._models[t],r=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString(),a=!1,s=0;if(r||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){var l=this._undoRedoService.getElements(e.uri);if(l.past.length>0||l.future.length>0){var c,u=(0,o.Z)(l.past);try{for(u.s();!(c=u.n()).done;){var d=c.value;(0,N.e9)(d)&&d.matchesResource(e.uri)&&(a=!0,s+=d.heapSize(e.uri),d.setModel(e.uri))}}catch(y){u.e(y)}finally{u.f()}var h,f=(0,o.Z)(l.future);try{for(f.s();!(h=f.n()).done;){var p=h.value;(0,N.e9)(p)&&p.matchesResource(e.uri)&&(a=!0,s+=p.heapSize(e.uri),p.setModel(e.uri))}}catch(y){f.e(y)}finally{f.f()}}}var g=n.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(a)if(!r&&s>g){var v=i.model.getInitialUndoRedoSnapshot();null!==v&&this._undoRedoService.restoreSnapshot(v)}else this._ensureDisposedModelsHeapSize(g-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(function(t){return(0,N.e9)(t)&&t.matchesResource(e.uri)})),this._insertDisposedModel(new V(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),r,s,H(e),e.getVersionId(),e.getAlternativeVersionId()));else if(!r){var m=i.model.getInitialUndoRedoSnapshot();null!==m&&this._undoRedoService.restoreSnapshot(m)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}},{key:"_onDidChangeLanguage",value:function(e,t){var i=t.oldLanguage,r=e.getLanguageId(),o=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),a=this.getCreationOptions(r,e.uri,e.isForSimpleWidget);n._setModelOptionsForModel(e,a,o),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}}],[{key:"_readModelOptions",value:function(e,t){var n,i=v.D.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){var r=parseInt(e.editor.tabSize,10);isNaN(r)||(i=r),i<1&&(i=1)}var o=i;if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){var a=parseInt(e.editor.indentSize,10);isNaN(a)||(o=a),o<1&&(o=1)}var s=v.D.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));var l=j,c=e.eol;"\r\n"===c?l=2:"\n"===c&&(l=1);var u=v.D.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(u="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));var d=v.D.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(d="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));var h=v.D.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));var f=v.D.bracketPairColorizationOptions;return(null===(n=e.editor)||void 0===n?void 0:n.bracketPairColorization)&&"object"===typeof e.editor.bracketPairColorization&&(f={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:i,indentSize:o,insertSpaces:s,detectIndentation:d,defaultEOL:l,trimAutoWhitespace:u,largeFileOptimizations:h,bracketPairColorizationOptions:f}}},{key:"_setModelOptionsForModel",value:function(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,O.fS)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}}]),n}(h.JT);W.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,W=Z([F(0,C.Ui),F(1,b.y),F(2,k.XE),F(3,x.VZ),F(4,E.tJ),F(5,y.O),F(6,R.c_),F(7,A.A),F(8,P.p)],W);var U="editor.semanticHighlighting";function G(e,t,n){var i,r=null===(i=n.getValue(U,{overrideIdentifier:e.getLanguageId(),resource:e.uri}))||void 0===i?void 0:i.enabled;return"boolean"===typeof r?r:t.getColorTheme().semanticHighlighting}var K=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i,r,a,s,l){var u;(0,c.Z)(this,n),(u=t.call(this))._watchers=Object.create(null),u._semanticStyling=e;var d=function(e){u._watchers[e.uri.toString()]=new $(e,u._semanticStyling,r,s,l)},h=function(e,t){t.dispose(),delete u._watchers[e.uri.toString()]},f=function(){var e,t=(0,o.Z)(i.getModels());try{for(t.s();!(e=t.n()).done;){var n=e.value,s=u._watchers[n.uri.toString()];G(n,r,a)?s||d(n):s&&h(n,s)}}catch(l){t.e(l)}finally{t.f()}};return u._register(i.onModelAdded((function(e){G(e,r,a)&&d(e)}))),u._register(i.onModelRemoved((function(e){var t=u._watchers[e.uri.toString()];t&&h(e,t)}))),u._register(a.onDidChangeConfiguration((function(e){e.affectsConfiguration(U)&&f()}))),u._register(r.onDidColorThemeChange(f)),u}return(0,u.Z)(n,[{key:"dispose",value:function(){for(var e=0,t=Object.values(this._watchers);e<t.length;e++){t[e].dispose()}(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this)}}]),n}(h.JT);K=Z([F(1,_.q),F(2,k.XE),F(3,C.Ui),F(4,A.A),F(5,P.p)],K);var Y=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i,r){var o;return(0,c.Z)(this,n),(o=t.call(this))._themeService=e,o._languageService=i,o._logService=r,o._caches=new WeakMap,o._register(o._themeService.onDidColorThemeChange((function(){o._caches=new WeakMap}))),o}return(0,u.Z)(n,[{key:"get",value:function(e){return this._caches.has(e)||this._caches.set(e,new D.$(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}}]),n}(h.JT),q=function(){function e(t,n,i){(0,c.Z)(this,e),this.provider=t,this.resultId=n,this.data=i}return(0,u.Z)(e,[{key:"dispose",value:function(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}]),e}(),$=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i,r,a,s){var l;(0,c.Z)(this,n),(l=t.call(this))._isDisposed=!1,l._model=e,l._semanticStyling=i,l._provider=s.documentSemanticTokensProvider,l._debounceInformation=a.for(l._provider,"DocumentSemanticTokens",{min:n.REQUEST_MIN_DELAY,max:n.REQUEST_MAX_DELAY}),l._fetchDocumentSemanticTokens=l._register(new S.pY((function(){return l._fetchDocumentSemanticTokensNow()}),n.REQUEST_MIN_DELAY)),l._currentDocumentResponse=null,l._currentDocumentRequestCancellationTokenSource=null,l._documentProvidersChangeListeners=[],l._register(l._model.onDidChangeContent((function(){l._fetchDocumentSemanticTokens.isScheduled()||l._fetchDocumentSemanticTokens.schedule(l._debounceInformation.get(l._model))}))),l._register(l._model.onDidChangeLanguage((function(){l._currentDocumentResponse&&(l._currentDocumentResponse.dispose(),l._currentDocumentResponse=null),l._currentDocumentRequestCancellationTokenSource&&(l._currentDocumentRequestCancellationTokenSource.cancel(),l._currentDocumentRequestCancellationTokenSource=null),l._setDocumentSemanticTokens(null,null,null,[]),l._fetchDocumentSemanticTokens.schedule(0)})));var u=function(){(0,h.B9)(l._documentProvidersChangeListeners),l._documentProvidersChangeListeners=[];var t,n=(0,o.Z)(l._provider.all(e));try{for(n.s();!(t=n.n()).done;){var i=t.value;"function"===typeof i.onDidChange&&l._documentProvidersChangeListeners.push(i.onDidChange((function(){return l._fetchDocumentSemanticTokens.schedule(0)})))}}catch(r){n.e(r)}finally{n.f()}};return u(),l._register(l._provider.onDidChange((function(){u(),l._fetchDocumentSemanticTokens.schedule(l._debounceInformation.get(l._model))}))),l._register(r.onDidColorThemeChange((function(e){l._setDocumentSemanticTokens(null,null,null,[]),l._fetchDocumentSemanticTokens.schedule(l._debounceInformation.get(l._model))}))),l._fetchDocumentSemanticTokens.schedule(0),l}return(0,u.Z)(n,[{key:"dispose",value:function(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this)}},{key:"_fetchDocumentSemanticTokensNow",value:function(){var e=this;if(!this._currentDocumentRequestCancellationTokenSource)if((0,L.Jc)(this._provider,this._model)){var t=new w.A,n=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,r=(0,L.ML)(this._provider,this._model,n,i,t.token);this._currentDocumentRequestCancellationTokenSource=t;var o=[],a=this._model.onDidChangeContent((function(e){o.push(e)})),s=new M.G(!1);r.then((function(t){if(e._debounceInformation.update(e._model,s.elapsed()),e._currentDocumentRequestCancellationTokenSource=null,a.dispose(),t){var n=t.provider,i=t.tokens,r=e._semanticStyling.get(n);e._setDocumentSemanticTokens(n,i||null,r,o)}else e._setDocumentSemanticTokens(null,null,null,o)}),(function(t){t&&(p.n2(t)||"string"===typeof t.message&&-1!==t.message.indexOf("busy"))||p.dL(t),e._currentDocumentRequestCancellationTokenSource=null,a.dispose(),o.length>0&&(e._fetchDocumentSemanticTokens.isScheduled()||e._fetchDocumentSemanticTokens.schedule(e._debounceInformation.get(e._model)))}))}else this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1)}},{key:"_setDocumentSemanticTokens",value:function(e,t,i,r){var a=this,s=this._currentDocumentResponse,l=function(){r.length>0&&!a._fetchDocumentSemanticTokens.isScheduled()&&a._fetchDocumentSemanticTokens.schedule(a._debounceInformation.get(a._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&i){if(!t)return this._model.tokenization.setSemanticTokens(null,!0),void l();if((0,L.Vj)(t)){if(!s)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:s.data};else{var c,u=0,d=(0,o.Z)(t.edits);try{for(d.s();!(c=d.n()).done;){var h=c.value;u+=(h.data?h.data.length:0)-h.deleteCount}}catch(O){d.e(O)}finally{d.f()}for(var f=s.data,p=new Uint32Array(f.length+u),g=f.length,v=p.length,m=t.edits.length-1;m>=0;m--){var y=t.edits[m];if(y.start>f.length)return i.warnInvalidEditStart(s.resultId,t.resultId,m,y.start,f.length),void this._model.tokenization.setSemanticTokens(null,!0);var _=g-(y.start+y.deleteCount);_>0&&(n._copy(f,g-_,p,v-_,_),v-=_),y.data&&(n._copy(y.data,0,p,v-y.data.length,y.data.length),v-=y.data.length),g=y.start}g>0&&n._copy(f,0,p,0,g),t={resultId:t.resultId,data:p}}}if((0,L.Vl)(t)){this._currentDocumentResponse=new q(e,t.resultId,t.data);var b=(0,D.h)(t,i,this._model.getLanguageId());if(r.length>0){var C,S=(0,o.Z)(r);try{for(S.s();!(C=S.n()).done;){var w,k=C.value,x=(0,o.Z)(b);try{for(x.s();!(w=x.n()).done;){var E,T=w.value,N=(0,o.Z)(k.changes);try{for(N.s();!(E=N.n()).done;){var I=E.value;T.applyEdit(I.range,I.text)}}catch(O){N.e(O)}finally{N.f()}}}catch(O){x.e(O)}finally{x.f()}}}catch(O){S.e(O)}finally{S.f()}}this._model.tokenization.setSemanticTokens(b,!0)}else this._model.tokenization.setSemanticTokens(null,!0);l()}else this._model.tokenization.setSemanticTokens(null,!1)}}],[{key:"_copy",value:function(e,t,n,i,r){r=Math.min(r,n.length-i,e.length-t);for(var o=0;o<r;o++)n[i+o]=e[t+o]}}]),n}(h.JT);$.REQUEST_MIN_DELAY=300,$.REQUEST_MAX_DELAY=2e3,$=Z([F(2,k.XE),F(3,A.A),F(4,P.p)],$)},95011:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var i=(0,n(36888).yh)("textModelService")},6222:function(e,t,n){"use strict";n.d(t,{$:function(){return _},h:function(){return b}});var i=n(37762),r=n(15671),o=n(43144),a=n(56124),s=n(64014),l=n(11561),c=n(29439),u=n(38622),d=n(80133),h=n(37561),f=function(){function e(t,n){(0,r.Z)(this,e),this._startLineNumber=t,this._tokens=n,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}return(0,o.Z)(e,[{key:"startLineNumber",get:function(){return this._startLineNumber}},{key:"endLineNumber",get:function(){return this._endLineNumber}},{key:"toString",value:function(){return this._tokens.toString(this._startLineNumber)}},{key:"_updateEndLineNumber",value:function(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}},{key:"isEmpty",value:function(){return this._tokens.isEmpty()}},{key:"getLineTokens",value:function(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}},{key:"getRange",value:function(){var e=this._tokens.getRange();return e?new d.e(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}},{key:"removeTokens",value:function(e){var 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()}},{key:"split",value:function(t){var n=t.startLineNumber-this._startLineNumber,i=t.endLineNumber-this._startLineNumber,r=this._tokens.split(n,t.startColumn-1,i,t.endColumn-1),o=(0,c.Z)(r,3),a=o[0],s=o[1],l=o[2];return[new e(this._startLineNumber,a),new e(this._startLineNumber+l,s)]}},{key:"applyEdit",value:function(e,t){var n=(0,h.Q)(t),i=(0,c.Z)(n,3),r=i[0],o=i[1],a=i[2];this.acceptEdit(e,r,o,a,t.length>0?t.charCodeAt(0):0)}},{key:"acceptEdit",value:function(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new u.L(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}},{key:"_acceptDeleteRange",value:function(e){if(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn){var t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){var i=n-t;this._startLineNumber-=i}else{var r=this._tokens.getMaxDeltaLine();if(!(t>=r+1)){if(t<0&&n>=r+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){var 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)}}}}},{key:"_acceptInsertText",value:function(e,t,n,i,r){if(0!==t||0!==n){var o=e.lineNumber-this._startLineNumber;if(o<0)this._startLineNumber+=t;else o>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(o,e.column-1,t,n,i,r)}}}],[{key:"create",value:function(t,n){return new e(t,new p(n))}}]),e}(),p=function(){function e(t){(0,r.Z)(this,e),this._tokens=t,this._tokenCount=t.length/4}return(0,o.Z)(e,[{key:"toString",value:function(e){for(var t=[],n=0;n<this._tokenCount;n++)t.push("(".concat(this._getDeltaLine(n)+e,",").concat(this._getStartCharacter(n),"-").concat(this._getEndCharacter(n),")"));return"[".concat(t.join(","),"]")}},{key:"getMaxDeltaLine",value:function(){var e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}},{key:"getRange",value:function(){var e=this._getTokenCount();if(0===e)return null;var t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new d.e(0,t+1,n,i+1)}},{key:"_getTokenCount",value:function(){return this._tokenCount}},{key:"_getDeltaLine",value:function(e){return this._tokens[4*e]}},{key:"_getStartCharacter",value:function(e){return this._tokens[4*e+1]}},{key:"_getEndCharacter",value:function(e){return this._tokens[4*e+2]}},{key:"isEmpty",value:function(){return 0===this._getTokenCount()}},{key:"getLineTokens",value:function(e){for(var t=0,n=this._getTokenCount()-1;t<n;){var i=t+Math.floor((n-t)/2),r=this._getDeltaLine(i);if(r<e)t=i+1;else{if(!(r>e)){for(var o=i;o>t&&this._getDeltaLine(o-1)===e;)o--;for(var a=i;a<n&&this._getDeltaLine(a+1)===e;)a++;return new g(this._tokens.subarray(4*o,4*a+4))}n=i-1}}return this._getDeltaLine(t)===e?new g(this._tokens.subarray(4*t,4*t+4)):null}},{key:"clear",value:function(){this._tokenCount=0}},{key:"removeTokens",value:function(e,t,n,i){for(var r=this._tokens,o=this._tokenCount,a=0,s=!1,l=0,c=0;c<o;c++){var u=4*c,d=r[u],h=r[u+1],f=r[u+2],p=r[u+3];if((d>e||d===e&&f>=t)&&(d<n||d===n&&h<=i))s=!0;else{if(0===a&&(l=d),s){var g=4*a;r[g]=d-l,r[g+1]=h,r[g+2]=f,r[g+3]=p}a++}}return this._tokenCount=a,l}},{key:"split",value:function(t,n,i,r){for(var o=this._tokens,a=this._tokenCount,s=[],l=[],c=s,u=0,d=0,h=0;h<a;h++){var f=4*h,p=o[f],g=o[f+1],v=o[f+2],m=o[f+3];if(p>t||p===t&&v>=n){if(p<i||p===i&&g<=r)continue;c!==l&&(c=l,u=0,d=p)}c[u++]=p-d,c[u++]=g,c[u++]=v,c[u++]=m}return[new e(new Uint32Array(s)),new e(new Uint32Array(l)),d]}},{key:"acceptDeleteRange",value:function(e,t,n,i,r){for(var o=this._tokens,a=this._tokenCount,s=i-t,l=0,c=!1,u=0;u<a;u++){var d=4*u,h=o[d],f=o[d+1],p=o[d+2],g=o[d+3];if(h<t||h===t&&p<=n)l++;else{if(h===t&&f<n)h===i&&p>r?p-=r-n:p=n;else if(h===t&&f===n){if(!(h===i&&p>r)){c=!0;continue}p-=r-n}else if(h<i||h===i&&f<r){if(!(h===i&&p>r)){c=!0;continue}p=h===t?(f=n)+(p-r):(f=0)+(p-r)}else if(h>i){if(0===s&&!c){l=a;break}h-=s}else{if(!(h===i&&f>=r))throw new Error("Not possible!");e&&0===h&&(f+=e,p+=e),h-=s,f-=r-n,p-=r-n}var v=4*l;o[v]=h,o[v+1]=f,o[v+2]=p,o[v+3]=g,l++}}this._tokenCount=l}},{key:"acceptInsertText",value:function(e,t,n,i,r,o){for(var a=0===n&&1===i&&(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122),s=this._tokens,l=this._tokenCount,c=0;c<l;c++){var u=4*c,d=s[u],h=s[u+1],f=s[u+2];if(!(d<e||d===e&&f<t)){if(d===e&&f===t){if(!a)continue;f+=1}else if(d===e&&h<t&&t<f)0===n?f+=i:f=t;else{if(d===e&&h===t&&a)continue;if(d===e)if(d+=n,0===n)h+=i,f+=i;else{var p=f-h;f=(h=r+(h-t))+p}else d+=n}s[u]=d,s[u+1]=h,s[u+2]=f}}}}]),e}(),g=function(){function e(t){(0,r.Z)(this,e),this._tokens=t}return(0,o.Z)(e,[{key:"getCount",value:function(){return this._tokens.length/4}},{key:"getStartCharacter",value:function(e){return this._tokens[4*e+1]}},{key:"getEndCharacter",value:function(e){return this._tokens[4*e+2]}},{key:"getMetadata",value:function(e){return this._tokens[4*e+3]}}]),e}(),v=n(72762),m=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},y=function(e,t){return function(n,i){t(n,i,e)}},_=function(){function e(t,n,i,o){(0,r.Z)(this,e),this._legend=t,this._themeService=n,this._languageService=i,this._logService=o,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new S}return(0,o.Z)(e,[{key:"getMetadata",value:function(e,t,n){var i,r=this._languageService.languageIdCodec.encodeLanguageId(n),o=this._hashTable.get(e,t,r);if(o)i=o.metadata,this._logService.getLevel()===l.in.Trace&&this._logService.trace("SemanticTokensProviderStyling [CACHED] ".concat(e," / ").concat(t,": foreground ").concat(a.N.getForeground(i),", fontStyle ").concat(a.N.getFontStyle(i).toString(2)));else{var s=this._legend.tokenTypes[e],c=[];if(s){for(var u=t,d=0;u>0&&d<this._legend.tokenModifiers.length;d++)1&u&&c.push(this._legend.tokenModifiers[d]),u>>=1;u>0&&this._logService.getLevel()===l.in.Trace&&(this._logService.trace("SemanticTokensProviderStyling: unknown token modifier index: ".concat(t.toString(2)," for legend: ").concat(JSON.stringify(this._legend.tokenModifiers))),c.push("not-in-legend"));var h=this._themeService.getColorTheme().getTokenStyleMetadata(s,c,n);if("undefined"===typeof h)i=2147483647;else{if(i=0,"undefined"!==typeof h.italic)i|=1|(h.italic?1:0)<<11;if("undefined"!==typeof h.bold)i|=2|(h.bold?2:0)<<11;if("undefined"!==typeof h.underline)i|=4|(h.underline?4:0)<<11;if("undefined"!==typeof h.strikethrough)i|=8|(h.strikethrough?8:0)<<11;if(h.foreground)i|=16|h.foreground<<15;0===i&&(i=2147483647)}}else this._logService.getLevel()===l.in.Trace&&this._logService.trace("SemanticTokensProviderStyling: unknown token type index: ".concat(e," for legend: ").concat(JSON.stringify(this._legend.tokenTypes))),i=2147483647,s="not-in-legend";this._hashTable.add(e,t,r,i),this._logService.getLevel()===l.in.Trace&&this._logService.trace("SemanticTokensProviderStyling ".concat(e," (").concat(s,") / ").concat(t," (").concat(c.join(" "),"): foreground ").concat(a.N.getForeground(i),", fontStyle ").concat(a.N.getFontStyle(i).toString(2)))}return i}},{key:"warnOverlappingSemanticTokens",value:function(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn("Overlapping semantic tokens detected at lineNumber ".concat(e,", column ").concat(t)))}},{key:"warnInvalidLengthSemanticTokens",value:function(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,console.warn("Semantic token with invalid length detected at lineNumber ".concat(e,", column ").concat(t)))}},{key:"warnInvalidEditStart",value:function(e,t,n,i,r){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,console.warn("Invalid semantic tokens edit detected (previousResultId: ".concat(e,", resultId: ").concat(t,") at edit #").concat(n,": The provided start offset ").concat(i," is outside the previous data (length ").concat(r,").")))}}]),e}();function b(e,t,n){for(var i=e.data,r=e.data.length/5|0,o=Math.max(Math.ceil(r/1024),400),a=[],s=0,l=1,c=0;s<r;){var u=s,d=Math.min(u+o,r);if(d<r){for(var h=d;h-1>u&&0===i[5*h];)h--;if(h-1===u){for(var p=d;p+1<r&&0===i[5*p];)p++;d=p}else d=h}for(var g=new Uint32Array(4*(d-u)),v=0,m=0,y=0,_=0;s<d;){var b=5*s,C=i[b],S=i[b+1],w=l+C|0,k=0===C?c+S|0:S,x=k+i[b+2]|0,E=i[b+3],T=i[b+4];if(x<=k)t.warnInvalidLengthSemanticTokens(w,k+1);else if(y===w&&_>k)t.warnOverlappingSemanticTokens(w,k+1);else{var N=t.getMetadata(E,T,n);2147483647!==N&&(0===m&&(m=w),g[v]=w-m,g[v+1]=k,g[v+2]=x,g[v+3]=N,v+=4,y=w,_=x)}l=w,c=k,s++}v!==g.length&&(g=g.subarray(0,v));var I=f.create(m,g);a.push(I)}return a}_=m([y(1,s.XE),y(2,v.O),y(3,l.VZ)],_);var C=(0,o.Z)((function e(t,n,i,o){(0,r.Z)(this,e),this.tokenTypeIndex=t,this.tokenModifierSet=n,this.languageId=i,this.metadata=o,this.next=null})),S=function(){function e(){(0,r.Z)(this,e),this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=e._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<e._SIZES.length?2/3*this._currentLength:0),this._elements=[],e._nullOutEntries(this._elements,this._currentLength)}return(0,o.Z)(e,[{key:"_hash2",value:function(e,t){return(e<<5)-e+t|0}},{key:"_hashFunc",value:function(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}},{key:"get",value:function(e,t,n){for(var i=this._hashFunc(e,t,n),r=this._elements[i];r;){if(r.tokenTypeIndex===e&&r.tokenModifierSet===t&&r.languageId===n)return r;r=r.next}return null}},{key:"add",value:function(t,n,r,o){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){var a=this._elements;this._currentLengthIndex++,this._currentLength=e._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<e._SIZES.length?2/3*this._currentLength:0),this._elements=[],e._nullOutEntries(this._elements,this._currentLength);var s,l=(0,i.Z)(a);try{for(l.s();!(s=l.n()).done;)for(var c=s.value;c;){var u=c.next;c.next=null,this._add(c),c=u}}catch(d){l.e(d)}finally{l.f()}}this._add(new C(t,n,r,o))}},{key:"_add",value:function(e){var t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}],[{key:"_nullOutEntries",value:function(e,t){for(var n=0;n<t;n++)e[n]=null}}]),e}();S._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]},56903:function(e,t,n){"use strict";n.d(t,{V:function(){return r},y:function(){return o}});var i=n(36888),r=(0,i.yh)("textResourceConfigurationService"),o=(0,i.yh)("textResourcePropertiesService")},42454:function(e,t,n){"use strict";n.d(t,{a:function(){return h}});var i=n(37762),r=n(93433),o=n(15671),a=n(43144),s=n(80133),l=n(25207),c=n(32377),u=n(85294),d=n(37591),h=function(){function e(){(0,o.Z)(this,e)}return(0,a.Z)(e,null,[{key:"computeUnicodeHighlights",value:function(e,t,n){var i,r,o=n?n.startLineNumber:1,a=n?n.endLineNumber:e.getLineCount(),h=new f(t),p=h.getCandidateCodePoints();i="allNonBasicAscii"===p?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp("".concat((r=Array.from(p),"[".concat(c.ec(r.map((function(e){return String.fromCodePoint(e)})).join("")),"]"))),"g");var g,v=new l.sz(null,i),m=[],y=!1,_=0,b=0,C=0;e:for(var S=o,w=a;S<=w;S++){var k=e.getLineContent(S),x=k.length;v.reset(0);do{if(g=v.next(k)){var E=g.index,T=g.index+g[0].length;if(E>0){var N=k.charCodeAt(E-1);c.ZG(N)&&E--}if(T+1<x){var I=k.charCodeAt(T-1);c.ZG(I)&&T++}var D=k.substring(E,T),L=(0,d.t2)(E+1,d.Af,k,0),O=h.shouldHighlightNonBasicASCII(D,L?L.word:null);if(0!==O){3===O?_++:2===O?b++:1===O?C++:(0,u.vE)(O);if(m.length>=1e3){y=!0;break e}m.push(new s.e(S,E+1,S,T+1))}}}while(g)}return{ranges:m,hasMore:y,ambiguousCharacterCount:_,invisibleCharacterCount:b,nonBasicAsciiCharacterCount:C}}},{key:"computeUnicodeHighlightReason",value:function(e,t){var n=new f(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:var i=e.codePointAt(0),o=n.ambiguousCharacters.getPrimaryConfusable(i),a=c.ZK.getLocales().filter((function(e){return!c.ZK.getInstance(new Set([].concat((0,r.Z)(t.allowedLocales),[e]))).isAmbiguous(i)}));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:a};case 1:return{kind:2}}}}]),e}();var f=function(){function e(t){(0,o.Z)(this,e),this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=c.ZK.getInstance(new Set(t.allowedLocales))}return(0,a.Z)(e,[{key:"getCandidateCodePoints",value:function(){if(this.options.nonBasicASCII)return"allNonBasicAscii";var e=new Set;if(this.options.invisibleCharacters){var t,n=(0,i.Z)(c.vU.codePoints);try{for(n.s();!(t=n.n()).done;){var r=t.value;p(String.fromCodePoint(r))||e.add(r)}}catch(h){n.e(h)}finally{n.f()}}if(this.options.ambiguousCharacters){var o,a=(0,i.Z)(this.ambiguousCharacters.getConfusableCodePoints());try{for(a.s();!(o=a.n()).done;){var s=o.value;e.add(s)}}catch(h){a.e(h)}finally{a.f()}}var l,u=(0,i.Z)(this.allowedCodePoints);try{for(u.s();!(l=u.n()).done;){var d=l.value;e.delete(d)}}catch(h){u.e(h)}finally{u.f()}return e}},{key:"shouldHighlightNonBasicASCII",value:function(e,t){var n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;var r=!1,o=!1;if(t){var a,s=(0,i.Z)(t);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=l.codePointAt(0),d=c.$i(l);r=r||d,d||this.ambiguousCharacters.isAmbiguous(u)||c.vU.isInvisibleCharacter(u)||(o=!0)}}catch(h){s.e(h)}finally{s.f()}}return!r&&o?0:this.options.invisibleCharacters&&!p(e)&&c.vU.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}]),e}();function p(e){return" "===e||"\n"===e||"\t"===e}},18615:function(e,t,n){"use strict";var i,r,o,a,s,l,c,u,d,h,f,p,g,v,m,y,_,b,C,S,w,k,x,E,T,N,I,D,L,O,R,A,M,P,Z,F,B,H;n.d(t,{E$:function(){return E},F5:function(){return k},Ij:function(){return l},In:function(){return Z},Lu:function(){return I},MG:function(){return x},MY:function(){return h},OI:function(){return B},RM:function(){return y},VD:function(){return C},Vi:function(){return u},WW:function(){return A},ZL:function(){return S},_x:function(){return d},a$:function(){return R},a7:function(){return o},ao:function(){return i},bw:function(){return b},cR:function(){return M},cm:function(){return a},d2:function(){return F},eB:function(){return w},g4:function(){return L},g_:function(){return O},gl:function(){return _},gm:function(){return g},jl:function(){return v},np:function(){return r},py:function(){return N},r3:function(){return c},r4:function(){return P},rf:function(){return f},sh:function(){return T},up:function(){return H},vQ:function(){return D},wT:function(){return p},wU:function(){return m},we:function(){return s}}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(i||(i={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(r||(r={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(o||(o={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(a||(a={})),function(e){e[e.Deprecated=1]="Deprecated"}(s||(s={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(l||(l={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(c||(c={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(u||(u={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(h||(h={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(f||(f={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.dropIntoEditor=32]="dropIntoEditor",e[e.emptySelectionClipboard=33]="emptySelectionClipboard",e[e.experimental=34]="experimental",e[e.extraEditorClassName=35]="extraEditorClassName",e[e.fastScrollSensitivity=36]="fastScrollSensitivity",e[e.find=37]="find",e[e.fixedOverflowWidgets=38]="fixedOverflowWidgets",e[e.folding=39]="folding",e[e.foldingStrategy=40]="foldingStrategy",e[e.foldingHighlight=41]="foldingHighlight",e[e.foldingImportsByDefault=42]="foldingImportsByDefault",e[e.foldingMaximumRegions=43]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=44]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=45]="fontFamily",e[e.fontInfo=46]="fontInfo",e[e.fontLigatures=47]="fontLigatures",e[e.fontSize=48]="fontSize",e[e.fontWeight=49]="fontWeight",e[e.formatOnPaste=50]="formatOnPaste",e[e.formatOnType=51]="formatOnType",e[e.glyphMargin=52]="glyphMargin",e[e.gotoLocation=53]="gotoLocation",e[e.hideCursorInOverviewRuler=54]="hideCursorInOverviewRuler",e[e.hover=55]="hover",e[e.inDiffEditor=56]="inDiffEditor",e[e.inlineSuggest=57]="inlineSuggest",e[e.letterSpacing=58]="letterSpacing",e[e.lightbulb=59]="lightbulb",e[e.lineDecorationsWidth=60]="lineDecorationsWidth",e[e.lineHeight=61]="lineHeight",e[e.lineNumbers=62]="lineNumbers",e[e.lineNumbersMinChars=63]="lineNumbersMinChars",e[e.linkedEditing=64]="linkedEditing",e[e.links=65]="links",e[e.matchBrackets=66]="matchBrackets",e[e.minimap=67]="minimap",e[e.mouseStyle=68]="mouseStyle",e[e.mouseWheelScrollSensitivity=69]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=70]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=71]="multiCursorMergeOverlapping",e[e.multiCursorModifier=72]="multiCursorModifier",e[e.multiCursorPaste=73]="multiCursorPaste",e[e.occurrencesHighlight=74]="occurrencesHighlight",e[e.overviewRulerBorder=75]="overviewRulerBorder",e[e.overviewRulerLanes=76]="overviewRulerLanes",e[e.padding=77]="padding",e[e.parameterHints=78]="parameterHints",e[e.peekWidgetDefaultFocus=79]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=80]="definitionLinkOpensInPeek",e[e.quickSuggestions=81]="quickSuggestions",e[e.quickSuggestionsDelay=82]="quickSuggestionsDelay",e[e.readOnly=83]="readOnly",e[e.renameOnType=84]="renameOnType",e[e.renderControlCharacters=85]="renderControlCharacters",e[e.renderFinalNewline=86]="renderFinalNewline",e[e.renderLineHighlight=87]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=88]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=89]="renderValidationDecorations",e[e.renderWhitespace=90]="renderWhitespace",e[e.revealHorizontalRightPadding=91]="revealHorizontalRightPadding",e[e.roundedSelection=92]="roundedSelection",e[e.rulers=93]="rulers",e[e.scrollbar=94]="scrollbar",e[e.scrollBeyondLastColumn=95]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=96]="scrollBeyondLastLine",e[e.scrollPredominantAxis=97]="scrollPredominantAxis",e[e.selectionClipboard=98]="selectionClipboard",e[e.selectionHighlight=99]="selectionHighlight",e[e.selectOnLineNumbers=100]="selectOnLineNumbers",e[e.showFoldingControls=101]="showFoldingControls",e[e.showUnused=102]="showUnused",e[e.snippetSuggestions=103]="snippetSuggestions",e[e.smartSelect=104]="smartSelect",e[e.smoothScrolling=105]="smoothScrolling",e[e.stickyTabStops=106]="stickyTabStops",e[e.stopRenderingLineAfter=107]="stopRenderingLineAfter",e[e.suggest=108]="suggest",e[e.suggestFontSize=109]="suggestFontSize",e[e.suggestLineHeight=110]="suggestLineHeight",e[e.suggestOnTriggerCharacters=111]="suggestOnTriggerCharacters",e[e.suggestSelection=112]="suggestSelection",e[e.tabCompletion=113]="tabCompletion",e[e.tabIndex=114]="tabIndex",e[e.unicodeHighlighting=115]="unicodeHighlighting",e[e.unusualLineTerminators=116]="unusualLineTerminators",e[e.useShadowDOM=117]="useShadowDOM",e[e.useTabStops=118]="useTabStops",e[e.wordSeparators=119]="wordSeparators",e[e.wordWrap=120]="wordWrap",e[e.wordWrapBreakAfterCharacters=121]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=122]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=123]="wordWrapColumn",e[e.wordWrapOverride1=124]="wordWrapOverride1",e[e.wordWrapOverride2=125]="wordWrapOverride2",e[e.wrappingIndent=126]="wrappingIndent",e[e.wrappingStrategy=127]="wrappingStrategy",e[e.showDeprecated=128]="showDeprecated",e[e.inlayHints=129]="inlayHints",e[e.editorClassName=130]="editorClassName",e[e.pixelRatio=131]="pixelRatio",e[e.tabFocusMode=132]="tabFocusMode",e[e.layoutInfo=133]="layoutInfo",e[e.wrappingInfo=134]="wrappingInfo"}(p||(p={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(g||(g={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(v||(v={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(m||(m={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(y||(y={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(_||(_={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(b||(b={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.Clear=126]="Clear",e[e.MAX_VALUE=127]="MAX_VALUE"}(C||(C={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(S||(S={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(w||(w={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(k||(k={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(x||(x={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(E||(E={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(T||(T={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(N||(N={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(I||(I={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(D||(D={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(L||(L={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(O||(O={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(R||(R={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(A||(A={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(M||(M={})),function(e){e[e.Deprecated=1]="Deprecated"}(P||(P={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(Z||(Z={})),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"}(F||(F={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(B||(B={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(H||(H={}))},22742:function(e,t,n){"use strict";n.d(t,{B8:function(){return c},Oe:function(){return i},UX:function(){return s},aq:function(){return l},iN:function(){return d},ld:function(){return a},qq:function(){return o},ug:function(){return r},xi:function(){return u}});var i,r,o,a,s,l,c,u,d,h=n(27722);!function(e){e.noSelection=h.NC("noSelection","No selection"),e.singleSelectionRange=h.NC("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=h.NC("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=h.NC("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=h.NC("multiSelection","{0} selections"),e.emergencyConfOn=h.NC("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=h.NC("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=h.NC("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=h.NC("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=h.NC("readonlyEditor"," in a read-only code editor"),e.editableEditor=h.NC("editableEditor"," in a code editor"),e.changeConfigToOnMac=h.NC("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=h.NC("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=h.NC("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=h.NC("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=h.NC("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=h.NC("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=h.NC("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=h.NC("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=h.NC("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=h.NC("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=h.NC("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=h.NC("showAccessibilityHelpAction","Show Accessibility Help")}(i||(i={})),function(e){e.inspectTokensAction=h.NC("inspectTokens","Developer: Inspect Tokens")}(r||(r={})),function(e){e.gotoLineActionLabel=h.NC("gotoLineActionLabel","Go to Line/Column...")}(o||(o={})),function(e){e.helpQuickAccessActionLabel=h.NC("helpQuickAccess","Show all Quick Access Providers")}(a||(a={})),function(e){e.quickCommandActionLabel=h.NC("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=h.NC("quickCommandActionHelp","Show And Run Commands")}(s||(s={})),function(e){e.quickOutlineActionLabel=h.NC("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=h.NC("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(l||(l={})),function(e){e.editorViewAccessibleLabel=h.NC("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=h.NC("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(c||(c={})),function(e){e.toggleHighContrast=h.NC("toggleHighContrast","Toggle High Contrast Theme")}(u||(u={})),function(e){e.bulkEditServiceSummary=h.NC("bulkEditServiceSummary","Made {0} edits in {1} files")}(d||(d={}))},86104:function(e,t,n){"use strict";n.d(t,{CZ:function(){return d},D8:function(){return f},Jx:function(){return a},Tx:function(){return u},dQ:function(){return h},fV:function(){return p},gk:function(){return s},lN:function(){return c},rU:function(){return l}});var i=n(37762),r=n(43144),o=n(15671),a=(0,r.Z)((function e(){(0,o.Z)(this,e),this.changeType=1})),s=function(){function e(t,n,i,r,a){(0,o.Z)(this,e),this.ownerId=t,this.lineNumber=n,this.column=i,this.options=r,this.order=a}return(0,r.Z)(e,null,[{key:"applyInjectedText",value:function(e,t){if(!t||0===t.length)return e;var n,r="",o=0,a=(0,i.Z)(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;r+=e.substring(o,s.column-1),o=s.column-1,r+=s.options.content}}catch(l){a.e(l)}finally{a.f()}return r+=e.substring(o)}},{key:"fromDecorations",value:function(t){var n,r=[],o=(0,i.Z)(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;a.options.before&&a.options.before.content.length>0&&r.push(new e(a.ownerId,a.range.startLineNumber,a.range.startColumn,a.options.before,0)),a.options.after&&a.options.after.content.length>0&&r.push(new e(a.ownerId,a.range.endLineNumber,a.range.endColumn,a.options.after,1))}}catch(s){o.e(s)}finally{o.f()}return r.sort((function(e,t){return e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber})),r}}]),e}(),l=(0,r.Z)((function e(t,n,i){(0,o.Z)(this,e),this.changeType=2,this.lineNumber=t,this.detail=n,this.injectedText=i})),c=(0,r.Z)((function e(t,n){(0,o.Z)(this,e),this.changeType=3,this.fromLineNumber=t,this.toLineNumber=n})),u=(0,r.Z)((function e(t,n,i,r){(0,o.Z)(this,e),this.changeType=4,this.injectedTexts=r,this.fromLineNumber=t,this.toLineNumber=n,this.detail=i})),d=(0,r.Z)((function e(){(0,o.Z)(this,e),this.changeType=5})),h=function(){function e(t,n,i,r){(0,o.Z)(this,e),this.changes=t,this.versionId=n,this.isUndoing=i,this.isRedoing=r,this.resultingSelection=null}return(0,r.Z)(e,[{key:"containsEvent",value:function(e){for(var t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}}],[{key:"merge",value:function(t,n){return new e([].concat(t.changes).concat(n.changes),n.versionId,t.isUndoing||n.isUndoing,t.isRedoing||n.isRedoing)}}]),e}(),f=(0,r.Z)((function e(t){(0,o.Z)(this,e),this.changes=t})),p=function(){function e(t,n){(0,o.Z)(this,e),this.rawContentChangedEvent=t,this.contentChangedEvent=n}return(0,r.Z)(e,[{key:"merge",value:function(t){var n=h.merge(this.rawContentChangedEvent,t.rawContentChangedEvent),i=e._mergeChangeEvents(this.contentChangedEvent,t.contentChangedEvent);return new e(n,i)}}],[{key:"_mergeChangeEvents",value:function(e,t){return{changes:[].concat(e.changes).concat(t.changes),eol:t.eol,versionId:t.versionId,isUndoing:e.isUndoing||t.isUndoing,isRedoing:e.isRedoing||t.isRedoing,isFlush:e.isFlush||t.isFlush}}}]),e}()},38050:function(e,t,n){"use strict";n.d(t,{UO:function(){return a},s6:function(){return i},vW:function(){return s}});var i,r=n(43144),o=n(15671);!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(i||(i={}));var a=(0,r.Z)((function e(t,n,i,r,a,s){if((0,o.Z)(this,e),this.visibleColumn=t,this.column=n,this.className=i,this.horizontalLine=r,this.forWrappedLinesAfterColumn=a,this.forWrappedLinesBeforeOrAtColumn=s,-1!==t===(-1!==n))throw new Error})),s=(0,r.Z)((function e(t,n){(0,o.Z)(this,e),this.top=t,this.endColumn=n}))},90532:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n(15671),r=n(43144),o=n(56124),a=function(){function e(t,n,r){(0,i.Z)(this,e),this._lineTokensBrand=void 0,this._tokens=t,this._tokensCount=this._tokens.length>>>1,this._text=n,this._languageIdCodec=r}return(0,r.Z)(e,[{key:"equals",value:function(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)}},{key:"slicedEquals",value:function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var i=t<<1,r=i+(n<<1),o=i;o<r;o++)if(this._tokens[o]!==e._tokens[o])return!1;return!0}},{key:"getLineContent",value:function(){return this._text}},{key:"getCount",value:function(){return this._tokensCount}},{key:"getStartOffset",value:function(e){return e>0?this._tokens[e-1<<1]:0}},{key:"getMetadata",value:function(e){return this._tokens[1+(e<<1)]}},{key:"getLanguageId",value:function(e){var t=this._tokens[1+(e<<1)],n=o.N.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(n)}},{key:"getStandardTokenType",value:function(e){var t=this._tokens[1+(e<<1)];return o.N.getTokenType(t)}},{key:"getForeground",value:function(e){var t=this._tokens[1+(e<<1)];return o.N.getForeground(t)}},{key:"getClassName",value:function(e){var t=this._tokens[1+(e<<1)];return o.N.getClassNameFromMetadata(t)}},{key:"getInlineStyle",value:function(e,t){var n=this._tokens[1+(e<<1)];return o.N.getInlineStyleFromMetadata(n,t)}},{key:"getPresentation",value:function(e){var t=this._tokens[1+(e<<1)];return o.N.getPresentationFromMetadata(t)}},{key:"getEndOffset",value:function(e){return this._tokens[e<<1]}},{key:"findTokenIndexAtOffset",value:function(t){return e.findIndexInTokensArray(this._tokens,t)}},{key:"inflate",value:function(){return this}},{key:"sliceAndInflate",value:function(e,t,n){return new s(this,e,t,n)}},{key:"withInserted",value:function(t){if(0===t.length)return this;for(var n=0,i=0,r="",o=new Array,a=0;;){var s=n<this._tokensCount?this._tokens[n<<1]:-1,l=i<t.length?t[i]:null;if(-1!==s&&(null===l||s<=l.offset)){r+=this._text.substring(a,s);var c=this._tokens[1+(n<<1)];o.push(r.length,c),n++,a=s}else{if(!l)break;if(l.offset>a){r+=this._text.substring(a,l.offset);var u=this._tokens[1+(n<<1)];o.push(r.length,u),a=l.offset}r+=l.text,o.push(r.length,l.tokenMetadata),i++}}return new e(new Uint32Array(o),r,this._languageIdCodec)}}],[{key:"createEmpty",value:function(t,n){var i=e.defaultTokenMetadata,r=new Uint32Array(2);return r[0]=t.length,r[1]=i,new e(r,t,n)}},{key:"convertToEndOffset",value:function(e,t){for(var n=(e.length>>>1)-1,i=0;i<n;i++)e[i<<1]=e[i+1<<1];e[n<<1]=t}},{key:"findIndexInTokensArray",value:function(e,t){if(e.length<=2)return 0;for(var n=0,i=(e.length>>>1)-1;n<i;){var r=n+Math.floor((i-n)/2),o=e[r<<1];if(o===t)return r+1;o<t?n=r+1:o>t&&(i=r)}return n}}]),e}();a.defaultTokenMetadata=33587200;var s=function(){function e(t,n,r,o){(0,i.Z)(this,e),this._source=t,this._startOffset=n,this._endOffset=r,this._deltaOffset=o,this._firstTokenIndex=t.findTokenIndexAtOffset(n),this._tokensCount=0;for(var a=this._firstTokenIndex,s=t.getCount();a<s;a++){if(t.getStartOffset(a)>=r)break;this._tokensCount++}}return(0,r.Z)(e,[{key:"getMetadata",value:function(e){return this._source.getMetadata(this._firstTokenIndex+e)}},{key:"getLanguageId",value:function(e){return this._source.getLanguageId(this._firstTokenIndex+e)}},{key:"getLineContent",value:function(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}},{key:"equals",value:function(t){return t instanceof e&&(this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount))}},{key:"getCount",value:function(){return this._tokensCount}},{key:"getForeground",value:function(e){return this._source.getForeground(this._firstTokenIndex+e)}},{key:"getEndOffset",value:function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}},{key:"getClassName",value:function(e){return this._source.getClassName(this._firstTokenIndex+e)}},{key:"getInlineStyle",value:function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}},{key:"getPresentation",value:function(e){return this._source.getPresentation(this._firstTokenIndex+e)}},{key:"findTokenIndexAtOffset",value:function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}]),e}()},2029:function(e,t,n){"use strict";n.d(t,{Kp:function(){return s},k:function(){return u}});var i=n(37762),r=n(15671),o=n(43144),a=n(32377),s=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.startColumn=t,this.endColumn=n,this.className=i,this.type=o,this._lineDecorationBrand=void 0}return(0,o.Z)(e,null,[{key:"_equals",value:function(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}},{key:"equalsArr",value:function(t,n){var i=t.length;if(i!==n.length)return!1;for(var r=0;r<i;r++)if(!e._equals(t[r],n[r]))return!1;return!0}},{key:"extractWrapped",value:function(t,n,r){if(0===t.length)return t;var o,a=n+1,s=r+1,l=r-n,c=[],u=0,d=(0,i.Z)(t);try{for(d.s();!(o=d.n()).done;){var h=o.value;h.endColumn<=a||h.startColumn>=s||(c[u++]=new e(Math.max(1,h.startColumn-a+1),Math.min(l+1,h.endColumn-a+1),h.className,h.type))}}catch(f){d.e(f)}finally{d.f()}return c}},{key:"filter",value:function(t,n,i,r){if(0===t.length)return[];for(var o=[],a=0,s=0,l=t.length;s<l;s++){var c=t[s],u=c.range;if(!(u.endLineNumber<n||u.startLineNumber>n)&&(!u.isEmpty()||0!==c.type&&3!==c.type)){var d=u.startLineNumber===n?u.startColumn:i,h=u.endLineNumber===n?u.endColumn:r;o[a++]=new e(d,h,c.inlineClassName,c.type)}}return o}},{key:"_typeCompare",value:function(e,t){var n=[2,0,1,3];return n[e]-n[t]}},{key:"compare",value:function(t,n){if(t.startColumn!==n.startColumn)return t.startColumn-n.startColumn;if(t.endColumn!==n.endColumn)return t.endColumn-n.endColumn;var i=e._typeCompare(t.type,n.type);return 0!==i?i:t.className!==n.className?t.className<n.className?-1:1:0}}]),e}(),l=(0,o.Z)((function e(t,n,i,o){(0,r.Z)(this,e),this.startOffset=t,this.endOffset=n,this.className=i,this.metadata=o})),c=function(){function e(){(0,r.Z)(this,e),this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}return(0,o.Z)(e,[{key:"consumeLowerThan",value:function(t,n,i){for(;this.count>0&&this.stopOffsets[0]<t;){for(var r=0;r+1<this.count&&this.stopOffsets[r]===this.stopOffsets[r+1];)r++;i.push(new l(n,this.stopOffsets[r],this.classNames.join(" "),e._metadata(this.metadata))),n=this.stopOffsets[r]+1,this.stopOffsets.splice(0,r+1),this.classNames.splice(0,r+1),this.metadata.splice(0,r+1),this.count-=r+1}return this.count>0&&n<t&&(i.push(new l(n,t-1,this.classNames.join(" "),e._metadata(this.metadata))),n=t),n}},{key:"insert",value:function(e,t,n){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(n);else for(var i=0;i<this.count;i++)if(this.stopOffsets[i]>=e){this.stopOffsets.splice(i,0,e),this.classNames.splice(i,0,t),this.metadata.splice(i,0,n);break}this.count++}}],[{key:"_metadata",value:function(e){for(var t=0,n=0,i=e.length;n<i;n++)t|=e[n];return t}}]),e}(),u=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,null,[{key:"normalize",value:function(e,t){if(0===t.length)return[];for(var n=[],i=new c,r=0,o=0,s=t.length;o<s;o++){var l=t[o],u=l.startColumn,d=l.endColumn,h=l.className,f=1===l.type?2:2===l.type?4:0;if(u>1){var p=e.charCodeAt(u-2);a.ZG(p)&&u--}if(d>1){var g=e.charCodeAt(d-2);a.ZG(g)&&d--}var v=u-1,m=d-2;r=i.consumeLowerThan(v,r,n),0===i.count&&(r=v),i.insert(m,h,f)}return i.consumeLowerThan(1073741824,r,n),n}}]),e}()},15475:function(e,t,n){"use strict";n.d(t,{Nd:function(){return h},zG:function(){return u},IJ:function(){return d},d1:function(){return g},tF:function(){return m}});var i=n(37762),r=n(15671),o=n(43144),a=n(32377),s=n(1293),l=n(2029),c=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.endIndex=t,this.type=n,this.metadata=i,this.containsRTL=o,this._linePartBrand=void 0}return(0,o.Z)(e,[{key:"isWhitespace",value:function(){return!!(1&this.metadata)}},{key:"isPseudoAfter",value:function(){return!!(4&this.metadata)}}]),e}(),u=function(){function e(t,n){(0,r.Z)(this,e),this.startOffset=t,this.endOffset=n}return(0,o.Z)(e,[{key:"equals",value:function(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}]),e}(),d=function(){function e(t,n,i,o,a,s,c,u,d,h,f,p,g,v,m,y,_,b,C){(0,r.Z)(this,e),this.useMonospaceOptimizations=t,this.canUseHalfwidthRightwardsArrow=n,this.lineContent=i,this.continuesWithWrappedLine=o,this.isBasicASCII=a,this.containsRTL=s,this.fauxIndentLength=c,this.lineTokens=u,this.lineDecorations=d.sort(l.Kp.compare),this.tabSize=h,this.startVisibleColumn=f,this.spaceWidth=p,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===y?4:"boundary"===y?1:"selection"===y?2:"trailing"===y?3:0,this.renderControlCharacters=_,this.fontLigatures=b,this.selectionsOnLine=C&&C.sort((function(e,t){return e.startOffset<t.startOffset?-1:1})),Math.abs(v-p)<Math.abs(g-p)?(this.renderSpaceWidth=v,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=g,this.renderSpaceCharCode=183)}return(0,o.Z)(e,[{key:"sameSelection",value:function(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(var t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}},{key:"equals",value:function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&l.Kp.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}]),e}(),h=(0,o.Z)((function e(t,n){(0,r.Z)(this,e),this.partIndex=t,this.charIndex=n})),f=function(){function e(t,n){(0,r.Z)(this,e),this.length=t,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}return(0,o.Z)(e,[{key:"setColumnInfo",value:function(e,t,n,i){var r=(t<<16|n<<0)>>>0;this._data[e-1]=r,this._horizontalOffset[e-1]=i}},{key:"getHorizontalOffset",value:function(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}},{key:"charOffsetToPartData",value:function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}},{key:"getDomPosition",value:function(t){var n=this.charOffsetToPartData(t-1),i=e.getPartIndex(n),r=e.getCharIndex(n);return new h(i,r)}},{key:"getColumn",value:function(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}},{key:"partDataToCharOffset",value:function(t,n,i){if(0===this.length)return 0;for(var r=(t<<16|i<<0)>>>0,o=0,a=this.length-1;o+1<a;){var s=o+a>>>1,l=this._data[s];if(l===r)return s;l>r?a=s:o=s}if(o===a)return o;var c=this._data[o],u=this._data[a];if(c===r)return o;if(u===r)return a;var d=e.getPartIndex(c);return i-e.getCharIndex(c)<=(d!==e.getPartIndex(u)?n:e.getCharIndex(u))-i?o:a}}],[{key:"getPartIndex",value:function(e){return(4294901760&e)>>>16}},{key:"getCharIndex",value:function(e){return(65535&e)>>>0}}]),e}(),p=(0,o.Z)((function e(t,n,i){(0,r.Z)(this,e),this._renderLineOutputBrand=void 0,this.characterMapping=t,this.containsRTL=n,this.containsForeignElements=i}));function g(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendASCIIString("<span>");var n,r=0,o=0,s=0,u=(0,i.Z)(e.lineDecorations);try{for(u.s();!(n=u.n()).done;){var d=n.value;1!==d.type&&2!==d.type||(t.appendASCIIString('<span class="'),t.appendASCIIString(d.className),t.appendASCIIString('"></span>'),1===d.type&&(s|=1,r++),2===d.type&&(s|=2,o++))}}catch(g){u.e(g)}finally{u.f()}t.appendASCIIString("</span>");var h=new f(1,r+o);return h.setColumnInfo(1,r,0,0),new p(h,!1,s)}return t.appendASCIIString("<span><span></span></span>"),new p(new f(0,0),!1,0)}return function(e,t){var n=e.fontIsMonospace,i=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,o=e.lineContent,s=e.len,l=e.isOverflowing,c=e.parts,u=e.fauxIndentLength,d=e.tabSize,h=e.startVisibleColumn,g=e.containsRTL,v=e.spaceWidth,m=e.renderSpaceCharCode,y=e.renderWhitespace,C=e.renderControlCharacters,S=new f(s+1,c.length),w=!1,k=0,x=h,E=0,T=0,N=0;g?t.appendASCIIString('<span dir="ltr">'):t.appendASCIIString("<span>");for(var I=0,D=c.length;I<D;I++){var L=c[I],O=L.endIndex,R=L.type,A=L.containsRTL,M=0!==y&&L.isWhitespace(),P=M&&!n&&("mtkw"===R||!r),Z=k===O&&L.isPseudoAfter();if(E=0,t.appendASCIIString("<span "),A&&t.appendASCIIString('style="unicode-bidi:isolate" '),t.appendASCIIString('class="'),t.appendASCIIString(P?"mtkz":R),t.appendASCII(34),M){for(var F=0,B=k,H=x;B<O;B++){var z=0|(9===o.charCodeAt(B)?d-H%d:1);F+=z,B>=u&&(H+=z)}for(P&&(t.appendASCIIString(' style="width:'),t.appendASCIIString(String(v*F)),t.appendASCIIString('px"')),t.appendASCII(62);k<O;k++){S.setColumnInfo(k+1,I-N,E,T),N=0;var j=void 0,V=void 0;if(9===o.charCodeAt(k)){V=j=d-x%d|0,!i||V>1?t.write1(8594):t.write1(65515);for(var W=2;W<=V;W++)t.write1(160)}else j=2,V=1,t.write1(m),t.write1(8204);E+=j,T+=V,k>=u&&(x+=V)}}else for(t.appendASCII(62);k<O;k++){S.setColumnInfo(k+1,I-N,E,T),N=0;var U=o.charCodeAt(k),G=1,K=1;switch(U){case 9:K=G=d-x%d;for(var Y=1;Y<=G;Y++)t.write1(160);break;case 32:t.write1(160);break;case 60:t.appendASCIIString("<");break;case 62:t.appendASCIIString(">");break;case 38:t.appendASCIIString("&");break;case 0:C?t.write1(9216):t.appendASCIIString("�");break;case 65279:case 8232:case 8233:case 133:t.write1(65533);break;default:a.K7(U)&&K++,C&&U<32?t.write1(9216+U):C&&127===U?t.write1(9249):C&&_(U)?(t.appendASCIIString("[U+"),t.appendASCIIString(b(U)),t.appendASCIIString("]"),K=G=8):t.write1(U)}E+=G,T+=K,k>=u&&(x+=K)}Z?N++:N=0,k>=s&&!w&&L.isPseudoAfter()&&(w=!0,S.setColumnInfo(k+1,I,E,T)),t.appendASCIIString("</span>")}w||S.setColumnInfo(s+1,c.length-1,E,T);l&&t.appendASCIIString("<span>…</span>");return t.appendASCIIString("</span>"),new p(S,g,r)}(function(e){var t,n,r=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<r.length?(t=!0,n=e.stopRenderingLineAfter):(t=!1,n=r.length);var o=function(e,t,n,i,r){var o=[],s=0;i>0&&(o[s++]=new c(i,"",0,!1));for(var l=i,u=0,d=n.getCount();u<d;u++){var h=n.getEndOffset(u);if(!(h<=i)){var f=n.getClassName(u);if(h>=r){var p=!!t&&a.Ut(e.substring(l,r));o[s++]=new c(r,f,0,p);break}var g=!!t&&a.Ut(e.substring(l,h));o[s++]=new c(h,f,0,g),l=h}}return o}(r,e.containsRTL,e.lineTokens,e.fauxIndentLength,n);e.renderControlCharacters&&!e.isBasicASCII&&(o=function(e,t){var n,r=[],o=new c(0,"",0,!1),a=0,s=(0,i.Z)(t);try{for(s.s();!(n=s.n()).done;){for(var l=n.value,u=l.endIndex;a<u;a++){_(e.charCodeAt(a))&&(a>o.endIndex&&(o=new c(a,l.type,l.metadata,l.containsRTL),r.push(o)),o=new c(a+1,"mtkcontrol",l.metadata,!1),r.push(o))}a>o.endIndex&&(o=new c(u,l.type,l.metadata,l.containsRTL),r.push(o))}}catch(g){s.e(g)}finally{s.f()}return r}(r,o));(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace)&&(o=function(e,t,n,i){var r,o=e.continuesWithWrappedLine,s=e.fauxIndentLength,l=e.tabSize,u=e.startVisibleColumn,d=e.useMonospaceOptimizations,h=e.selectionsOnLine,f=1===e.renderWhitespace,p=3===e.renderWhitespace,g=e.renderSpaceWidth!==e.spaceWidth,v=[],m=0,y=0,_=i[y].type,b=i[y].containsRTL,C=i[y].endIndex,S=i.length,w=!1,k=a.LC(t);-1===k?(w=!0,k=n,r=n):r=a.ow(t);for(var x=!1,E=0,T=h&&h[E],N=u%l,I=s;I<n;I++){var D=t.charCodeAt(I);T&&I>=T.endOffset&&(E++,T=h&&h[E]);var L=void 0;if(I<k||I>r)L=!0;else if(9===D)L=!0;else if(32===D)if(f)if(x)L=!0;else{var O=I+1<n?t.charCodeAt(I+1):0;L=32===O||9===O}else L=!0;else L=!1;if(L&&h&&(L=!!T&&T.startOffset<=I&&T.endOffset>I),L&&p&&(L=w||I>r),L&&b&&I>=k&&I<=r&&(L=!1),x){if(!L||!d&&N>=l){if(g)for(var R=(m>0?v[m-1].endIndex:s)+1;R<=I;R++)v[m++]=new c(R,"mtkw",1,!1);else v[m++]=new c(I,"mtkw",1,!1);N%=l}}else(I===C||L&&I>s)&&(v[m++]=new c(I,_,0,b),N%=l);for(9===D?N=l:a.K7(D)?N+=2:N++,x=L;I===C&&++y<S;)_=i[y].type,b=i[y].containsRTL,C=i[y].endIndex}var A=!1;if(x)if(o&&f){var M=n>0?t.charCodeAt(n-1):0,P=n>1?t.charCodeAt(n-2):0;32===M&&32!==P&&9!==P||(A=!0)}else A=!0;if(A)if(g)for(var Z=(m>0?v[m-1].endIndex:s)+1;Z<=n;Z++)v[m++]=new c(Z,"mtkw",1,!1);else v[m++]=new c(n,"mtkw",1,!1);else v[m++]=new c(n,_,0,b);return v}(e,r,n,o));var s=0;if(e.lineDecorations.length>0){for(var u=0,d=e.lineDecorations.length;u<d;u++){var h=e.lineDecorations[u];3===h.type||1===h.type?s|=1:2===h.type&&(s|=2)}o=function(e,t,n,i){i.sort(l.Kp.compare);for(var r=l.k.normalize(e,i),o=r.length,a=0,s=[],u=0,d=0,h=0,f=n.length;h<f;h++){for(var p=n[h],g=p.endIndex,v=p.type,m=p.metadata,y=p.containsRTL;a<o&&r[a].startOffset<g;){var _=r[a];if(_.startOffset>d&&(d=_.startOffset,s[u++]=new c(d,v,m,y)),!(_.endOffset+1<=g)){d=g,s[u++]=new c(d,v+" "+_.className,m|_.metadata,y);break}d=_.endOffset+1,s[u++]=new c(d,v+" "+_.className,m|_.metadata,y),a++}g>d&&(d=g,s[u++]=new c(d,v,m,y))}var b=n[n.length-1].endIndex;if(a<o&&r[a].startOffset===b)for(;a<o&&r[a].startOffset===b;){var C=r[a];s[u++]=new c(d,C.className,C.metadata,!1),a++}return s}(r,0,o,e.lineDecorations)}e.containsRTL||(o=function(e,t,n){var i=0,r=[],o=0;if(n)for(var a=0,s=t.length;a<s;a++){var l=t[a],u=l.endIndex;if(i+50<u){for(var d=l.type,h=l.metadata,f=l.containsRTL,p=-1,g=i,v=i;v<u;v++)32===e.charCodeAt(v)&&(p=v),-1!==p&&v-g>=50&&(r[o++]=new c(p+1,d,h,f),g=p+1,p=-1);g!==u&&(r[o++]=new c(u,d,h,f))}else r[o++]=l;i=u}else for(var m=0,y=t.length;m<y;m++){var _=t[m],b=_.endIndex,C=b-i;if(C>50){for(var S=_.type,w=_.metadata,k=_.containsRTL,x=Math.ceil(C/50),E=1;E<x;E++){var T=i+50*E;r[o++]=new c(T,S,w,k)}r[o++]=new c(b,S,w,k)}else r[o++]=_;i=b}return r}(r,o,!e.isBasicASCII||e.fontLigatures));return new y(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,r,n,t,o,s,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),t)}var v=(0,o.Z)((function e(t,n,i,o){(0,r.Z)(this,e),this.characterMapping=t,this.html=n,this.containsRTL=i,this.containsForeignElements=o}));function m(e){var t=(0,s.l$)(1e4),n=g(e,t);return new v(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}var y=(0,o.Z)((function e(t,n,i,o,a,s,l,c,u,d,h,f,p,g,v){(0,r.Z)(this,e),this.fontIsMonospace=t,this.canUseHalfwidthRightwardsArrow=n,this.lineContent=i,this.len=o,this.isOverflowing=a,this.parts=s,this.containsForeignElements=l,this.fauxIndentLength=c,this.tabSize=u,this.startVisibleColumn=d,this.containsRTL=h,this.spaceWidth=f,this.renderSpaceCharCode=p,this.renderWhitespace=g,this.renderControlCharacters=v}));function _(e){return e<32?9!==e:127===e||(e>=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e)}function b(e){return e.toString(16).toUpperCase().padStart(4,"0")}},53599:function(e,t,n){"use strict";n.d(t,{$l:function(){return f},$t:function(){return d},IP:function(){return c},SQ:function(){return p},Wx:function(){return h},l_:function(){return s},ud:function(){return l},wA:function(){return u}});var i=n(43144),r=n(15671),o=n(32377),a=n(80133),s=(0,i.Z)((function e(t,n,i,o){(0,r.Z)(this,e),this._viewportBrand=void 0,this.top=0|t,this.left=0|n,this.width=0|i,this.height=0|o})),l=(0,i.Z)((function e(t,n){(0,r.Z)(this,e),this.tabSize=t,this.data=n})),c=(0,i.Z)((function e(t,n,i,o,a,s,l){(0,r.Z)(this,e),this._viewLineDataBrand=void 0,this.content=t,this.continuesWithWrappedLine=n,this.minColumn=i,this.maxColumn=o,this.startVisibleColumn=a,this.tokens=s,this.inlineDecorations=l})),u=function(){function e(t,n,i,o,a,s,l,c,u,d){(0,r.Z)(this,e),this.minColumn=t,this.maxColumn=n,this.content=i,this.continuesWithWrappedLine=o,this.isBasicASCII=e.isBasicASCII(i,s),this.containsRTL=e.containsRTL(i,this.isBasicASCII,a),this.tokens=l,this.inlineDecorations=c,this.tabSize=u,this.startVisibleColumn=d}return(0,i.Z)(e,null,[{key:"isBasicASCII",value:function(e,t){return!t||o.$i(e)}},{key:"containsRTL",value:function(e,t,n){return!(t||!n)&&o.Ut(e)}}]),e}(),d=(0,i.Z)((function e(t,n,i){(0,r.Z)(this,e),this.range=t,this.inlineClassName=n,this.type=i})),h=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.startOffset=t,this.endOffset=n,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=o}return(0,i.Z)(e,[{key:"toInlineDecoration",value:function(e){return new d(new a.e(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}]),e}(),f=(0,i.Z)((function e(t,n){(0,r.Z)(this,e),this._viewModelDecorationBrand=void 0,this.range=t,this.options=n})),p=function(){function e(t,n,i){(0,r.Z)(this,e),this.color=t,this.zIndex=n,this.data=i}return(0,i.Z)(e,null,[{key:"cmp",value:function(e,t){return e.zIndex===t.zIndex?e.color<t.color?-1:e.color>t.color?1:0:e.zIndex-t.zIndex}}]),e}()},47799:function(e,t,n){"use strict";n.d(t,{EY:function(){return a},Tj:function(){return s}});var i=n(15671),r=n(43144),o=function(){function e(t,n,r){(0,i.Z)(this,e),this._colorZoneBrand=void 0,this.from=0|t,this.to=0|n,this.colorId=0|r}return(0,r.Z)(e,null,[{key:"compare",value:function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}]),e}(),a=function(){function e(t,n,r,o){(0,i.Z)(this,e),this._overviewRulerZoneBrand=void 0,this.startLineNumber=t,this.endLineNumber=n,this.heightInLines=r,this.color=o,this._colorZone=null}return(0,r.Z)(e,[{key:"setColorZone",value:function(e){this._colorZone=e}},{key:"getColorZones",value:function(){return this._colorZone}}],[{key:"compare",value:function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}}]),e}(),s=function(){function e(t){(0,i.Z)(this,e),this._getVerticalOffsetForLine=t,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}return(0,r.Z)(e,[{key:"getId2Color",value:function(){return this._id2Color}},{key:"setZones",value:function(e){this._zones=e,this._zones.sort(a.compare)}},{key:"setLineHeight",value:function(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}},{key:"setPixelRatio",value:function(e){this._pixelRatio=e,this._colorZonesInvalid=!0}},{key:"getDOMWidth",value:function(){return this._domWidth}},{key:"getCanvasWidth",value:function(){return this._domWidth*this._pixelRatio}},{key:"setDOMWidth",value:function(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}},{key:"getDOMHeight",value:function(){return this._domHeight}},{key:"getCanvasHeight",value:function(){return this._domHeight*this._pixelRatio}},{key:"setDOMHeight",value:function(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}},{key:"getOuterHeight",value:function(){return this._outerHeight}},{key:"setOuterHeight",value:function(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}},{key:"resolveColorZones",value:function(){for(var e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),i=n/Math.floor(this._outerHeight),r=Math.floor(4*this._pixelRatio/2),a=[],s=0,l=this._zones.length;s<l;s++){var c=this._zones[s];if(!e){var u=c.getColorZones();if(u){a.push(u);continue}}var d=this._getVerticalOffsetForLine(c.startLineNumber),h=0===c.heightInLines?this._getVerticalOffsetForLine(c.endLineNumber)+t:d+c.heightInLines*t,f=Math.floor(i*d),p=Math.floor(i*h),g=Math.floor((f+p)/2),v=p-g;v<r&&(v=r),g-v<0&&(g=v),g+v>n&&(g=n-v);var m=c.color,y=this._color2Id[m];y||(y=++this._lastAssignedId,this._color2Id[m]=y,this._id2Color[y]=m);var _=new o(g-v,g+v,y);c.setColorZone(_),a.push(_)}return this._colorZonesInvalid=!1,a.sort(o.compare),a}}]),e}()},39268:function(e,t,n){"use strict";n.d(t,{$t:function(){return d},CU:function(){return c},Fd:function(){return u},zg:function(){return h}});var i=n(15671),r=n(43144),o=n(38622),a=n(80133),s=n(53599),l=n(64472),c=function(){function e(t,n,r,o,a){(0,i.Z)(this,e),this.editorId=t,this.model=n,this.configuration=r,this._linesCollection=o,this._coordinatesConverter=a,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return(0,r.Z)(e,[{key:"_clearCachedModelDecorationsResolver",value:function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}},{key:"dispose",value:function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}},{key:"reset",value:function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}},{key:"onModelDecorationsChanged",value:function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}},{key:"onLineMappingChanged",value:function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}},{key:"_getOrCreateViewModelDecoration",value:function(e){var t=e.id,n=this._decorationsCache[t];if(!n){var i,r=e.range,l=e.options;if(l.isWholeLine){var c=this._coordinatesConverter.convertModelPositionToViewPosition(new o.L(r.startLineNumber,1),0),u=this._coordinatesConverter.convertModelPositionToViewPosition(new o.L(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber)),1);i=new a.e(c.lineNumber,c.column,u.lineNumber,u.column)}else i=this._coordinatesConverter.convertModelRangeToViewRange(r,1);n=new s.$l(i,l),this._decorationsCache[t]=n}return n}},{key:"getDecorationsViewportData",value:function(e){var t=null!==this._cachedModelDecorationsResolver;return(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}},{key:"getInlineDecorationsOnLine",value:function(e){var t=new a.e(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(t).inlineDecorations[0]}},{key:"_getDecorationsInRange",value:function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,l.$J)(this.configuration.options)),n=e.startLineNumber,i=e.endLineNumber,r=[],o=0,c=[],d=n;d<=i;d++)c[d-n]=[];for(var h=0,f=t.length;h<f;h++){var p=t[h],g=p.options;if(u(this.model,p)){var v=this._getOrCreateViewModelDecoration(p),m=v.range;if(r[o++]=v,g.inlineClassName)for(var y=new s.$t(m,g.inlineClassName,g.inlineClassNameAffectsLetterSpacing?3:0),_=Math.max(n,m.startLineNumber),b=Math.min(i,m.endLineNumber),C=_;C<=b;C++)c[C-n].push(y);if(g.beforeContentClassName&&n<=m.startLineNumber&&m.startLineNumber<=i){var S=new s.$t(new a.e(m.startLineNumber,m.startColumn,m.startLineNumber,m.startColumn),g.beforeContentClassName,1);c[m.startLineNumber-n].push(S)}if(g.afterContentClassName&&n<=m.endLineNumber&&m.endLineNumber<=i){var w=new s.$t(new a.e(m.endLineNumber,m.endColumn,m.endLineNumber,m.endColumn),g.afterContentClassName,2);c[m.endLineNumber-n].push(w)}}}return{decorations:r,inlineDecorations:c}}}]),e}();function u(e,t){return(!t.options.hideInCommentTokens||!d(e,t))&&(!t.options.hideInStringTokens||!h(e,t))}function d(e,t){return f(e,t.range,(function(e){return 1===e}))}function h(e,t){return f(e,t.range,(function(e){return 2===e}))}function f(e,t,n){for(var i=t.startLineNumber;i<=t.endLineNumber;i++)for(var r=e.tokenization.getLineTokens(i),o=i===t.startLineNumber,a=i===t.endLineNumber,s=o?r.findTokenIndexAtOffset(t.startColumn-1):0;s<r.getCount();){if(a)if(r.getStartOffset(s)>t.endColumn-1)break;if(!n(r.getStandardTokenType(s)))return!1;s++}return!0}},1791:function(e,t,n){"use strict";n.r(t),n.d(t,{SelectionAnchorSet:function(){return _}});var i=n(74165),r=n(60136),o=n(27277),a=n(15671),s=n(43144),l=n(4801),c=n(61066),u=n(16321),d=n(62381),h=n(23145),f=n(67245),p=n(27722),g=n(34509),v=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},m=function(e,t){return function(n,i){t(n,i,e)}},y=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},_=new g.uy("selectionAnchorSet",!1),b=function(){function e(t,n){var i=this;(0,a.Z)(this,e),this.editor=t,this.selectionAnchorSetContextKey=_.bindTo(n),this.modelChangeListener=t.onDidChangeModel((function(){return i.selectionAnchorSetContextKey.reset()}))}return(0,s.Z)(e,[{key:"setSelectionAnchor",value:function(){var e=this;if(this.editor.hasModel()){var t=this.editor.getPosition();this.editor.changeDecorations((function(n){e.decorationId&&n.removeDecoration(e.decorationId),e.decorationId=n.addDecoration(h.Y.fromPositions(t,t),{description:"selection-anchor",stickiness:1,hoverMessage:(new c.W5).appendText((0,p.NC)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})})),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,l.Z9)((0,p.NC)("anchorSet","Anchor set at {0}:{1}",t.lineNumber,t.column))}}},{key:"goToSelectionAnchor",value:function(){if(this.editor.hasModel()&&this.decorationId){var e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}},{key:"selectFromAnchorToCursor",value:function(){if(this.editor.hasModel()&&this.decorationId){var e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){var t=this.editor.getPosition();this.editor.setSelection(h.Y.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}},{key:"cancelSelectionAnchor",value:function(){var e=this;if(this.decorationId){var t=this.decorationId;this.editor.changeDecorations((function(n){n.removeDecoration(t),e.decorationId=void 0})),this.selectionAnchorSetContextKey.set(!1)}}},{key:"dispose",value:function(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}}],[{key:"get",value:function(t){return t.getContribution(e.ID)}}]),e}();b.ID="editor.contrib.selectionAnchorController",b=v([m(1,g.i6)],b);var C=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"editor.action.setSelectionAnchor",label:(0,p.NC)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:f.u.editorTextFocus,primary:(0,u.gx)(2089,2080),weight:100}})}return(0,s.Z)(n,[{key:"run",value:function(e,t){var n;return y(this,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(n=b.get(t))||void 0===n||n.setSelectionAnchor();case 1:case"end":return e.stop()}}),e)})))}}]),n}(d.R6),S=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"editor.action.goToSelectionAnchor",label:(0,p.NC)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:_})}return(0,s.Z)(n,[{key:"run",value:function(e,t){var n;return y(this,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(n=b.get(t))||void 0===n||n.goToSelectionAnchor();case 1:case"end":return e.stop()}}),e)})))}}]),n}(d.R6),w=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"editor.action.selectFromAnchorToCursor",label:(0,p.NC)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:_,kbOpts:{kbExpr:f.u.editorTextFocus,primary:(0,u.gx)(2089,2089),weight:100}})}return(0,s.Z)(n,[{key:"run",value:function(e,t){var n;return y(this,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(n=b.get(t))||void 0===n||n.selectFromAnchorToCursor();case 1:case"end":return e.stop()}}),e)})))}}]),n}(d.R6),k=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"editor.action.cancelSelectionAnchor",label:(0,p.NC)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:_,kbOpts:{kbExpr:f.u.editorTextFocus,primary:9,weight:100}})}return(0,s.Z)(n,[{key:"run",value:function(e,t){var n;return y(this,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(n=b.get(t))||void 0===n||n.cancelSelectionAnchor();case 1:case"end":return e.stop()}}),e)})))}}]),n}(d.R6);(0,d._K)(b.ID,b),(0,d.Qr)(C),(0,d.Qr)(S),(0,d.Qr)(w),(0,d.Qr)(k)},56816:function(e,t,n){"use strict";n.r(t),n.d(t,{BracketMatchingController:function(){return T}});var i=n(37762),r=n(29439),o=n(15671),a=n(43144),s=n(60136),l=n(27277),c=n(60022),u=n(11860),d=n(62381),h=n(38622),f=n(80133),p=n(23145),g=n(67245),v=n(36550),m=n(70845),y=n(29700),_=n(27722),b=n(48996),C=n(32379),S=n(64014),w=(0,C.P6G)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},_.NC("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),k=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.jumpToBracket",label:_.NC("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:g.u.editorTextFocus,primary:3160,weight:100}})}return(0,a.Z)(n,[{key:"run",value:function(e,t){var n;null===(n=T.get(t))||void 0===n||n.jumpToBracket()}}]),n}(d.R6),x=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.selectToBracket",label:_.NC("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){var i,r=!0;n&&!1===n.selectBrackets&&(r=!1),null===(i=T.get(t))||void 0===i||i.selectToBracket(r)}}]),n}(d.R6),E=(0,a.Z)((function e(t,n,i){(0,o.Z)(this,e),this.position=t,this.brackets=n,this.options=i})),T=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var i;return(0,o.Z)(this,n),(i=t.call(this))._editor=e,i._lastBracketsData=[],i._lastVersionId=0,i._decorations=i._editor.createDecorationsCollection(),i._updateBracketsSoon=i._register(new c.pY((function(){return i._updateBrackets()}),50)),i._matchBrackets=i._editor.getOption(66),i._updateBracketsSoon.schedule(),i._register(e.onDidChangeCursorPosition((function(e){"never"!==i._matchBrackets&&i._updateBracketsSoon.schedule()}))),i._register(e.onDidChangeModelContent((function(e){i._updateBracketsSoon.schedule()}))),i._register(e.onDidChangeModel((function(e){i._lastBracketsData=[],i._updateBracketsSoon.schedule()}))),i._register(e.onDidChangeModelLanguageConfiguration((function(e){i._lastBracketsData=[],i._updateBracketsSoon.schedule()}))),i._register(e.onDidChangeConfiguration((function(e){e.hasChanged(66)&&(i._matchBrackets=i._editor.getOption(66),i._decorations.clear(),i._lastBracketsData=[],i._lastVersionId=0,i._updateBracketsSoon.schedule())}))),i._register(e.onDidBlurEditorWidget((function(){i._updateBracketsSoon.schedule()}))),i._register(e.onDidFocusEditorWidget((function(){i._updateBracketsSoon.schedule()}))),i}return(0,a.Z)(n,[{key:"jumpToBracket",value:function(){if(this._editor.hasModel()){var e=this._editor.getModel(),t=this._editor.getSelections().map((function(t){var n=t.getStartPosition(),i=e.bracketPairs.matchBracket(n),r=null;if(i)i[0].containsPosition(n)&&!i[1].containsPosition(n)?r=i[1].getStartPosition():i[1].containsPosition(n)&&(r=i[0].getStartPosition());else{var o=e.bracketPairs.findEnclosingBrackets(n);if(o)r=o[1].getStartPosition();else{var a=e.bracketPairs.findNextBracket(n);a&&a.range&&(r=a.range.getStartPosition())}}return r?new p.Y(r.lineNumber,r.column,r.lineNumber,r.column):new p.Y(n.lineNumber,n.column,n.lineNumber,n.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}}},{key:"selectToBracket",value:function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=[];this._editor.getSelections().forEach((function(i){var o=i.getStartPosition(),a=t.bracketPairs.matchBracket(o);if(!a&&!(a=t.bracketPairs.findEnclosingBrackets(o))){var s=t.bracketPairs.findNextBracket(o);s&&s.range&&(a=t.bracketPairs.matchBracket(s.range.getStartPosition()))}var l=null,c=null;if(a){a.sort(f.e.compareRangesUsingStarts);var u=a,d=(0,r.Z)(u,2),h=d[0],g=d[1];if(l=e?h.getStartPosition():h.getEndPosition(),c=e?g.getEndPosition():g.getStartPosition(),g.containsPosition(o)){var v=l;l=c,c=v}}l&&c&&n.push(new p.Y(l.lineNumber,l.column,c.lineNumber,c.column))})),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}}},{key:"_updateBrackets",value:function(){if("never"!==this._matchBrackets){this._recomputeBrackets();var e,t=[],n=0,r=(0,i.Z)(this._lastBracketsData);try{for(r.s();!(e=r.n()).done;){var o=e.value,a=o.brackets;a&&(t[n++]={range:a[0],options:o.options},t[n++]={range:a[1],options:o.options})}}catch(s){r.e(s)}finally{r.f()}this._decorations.set(t)}}},{key:"_recomputeBrackets",value:function(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);var e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);var t=this._editor.getModel(),i=t.getVersionId(),r=[];this._lastVersionId===i&&(r=this._lastBracketsData);for(var o=[],a=0,s=0,l=e.length;s<l;s++){var c=e[s];c.isEmpty()&&(o[a++]=c.getStartPosition())}o.length>1&&o.sort(h.L.compare);for(var u=[],d=0,f=0,p=r.length,g=0,v=o.length;g<v;g++){for(var m=o[g];f<p&&r[f].position.isBefore(m);)f++;if(f<p&&r[f].position.equals(m))u[d++]=r[f];else{var y=t.bracketPairs.matchBracket(m,20),_=n._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;y||"always"!==this._matchBrackets||(y=t.bracketPairs.findEnclosingBrackets(m,20),_=n._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),u[d++]=new E(m,y,_)}}this._lastBracketsData=u,this._lastVersionId=i}}],[{key:"get",value:function(e){return e.getContribution(n.ID)}}]),n}(u.JT);T.ID="editor.contrib.bracketMatchingController",T._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=m.qx.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:(0,S.EN)(w),position:v.sh.Center}}),T._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=m.qx.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"}),(0,d._K)(T.ID,T),(0,d.Qr)(x),(0,d.Qr)(k),(0,S.Ic)((function(e,t){var n=e.getColor(y.TC);n&&t.addRule(".monaco-editor .bracket-match { background-color: ".concat(n,"; }"));var i=e.getColor(y.Dl);i&&t.addRule(".monaco-editor .bracket-match { border: 1px solid ".concat(i,"; }"))})),b.BH.appendMenuItem(b.eH.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:_.NC({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},45716:function(e,t,n){"use strict";n.r(t);var i=n(37762),r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(62381),c=n(67245),u=n(80133),d=n(23145),h=function(){function e(t,n){(0,r.Z)(this,e),this._selection=t,this._isMovingLeft=n}return(0,o.Z)(e,[{key:"getEditOperations",value:function(e,t){if(this._selection.startLineNumber===this._selection.endLineNumber&&!this._selection.isEmpty()){var n=this._selection.startLineNumber,i=this._selection.startColumn,r=this._selection.endColumn;if((!this._isMovingLeft||1!==i)&&(this._isMovingLeft||r!==e.getLineMaxColumn(n)))if(this._isMovingLeft){var o=new u.e(n,i-1,n,i),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new u.e(n,r,n,r),a)}else{var s=new u.e(n,r,n,r+1),l=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new u.e(n,i,n,i),l)}}}},{key:"computeCursorState",value:function(e,t){return this._isMovingLeft?new d.Y(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new d.Y(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}]),e}(),f=n(27722),p=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,i)).left=e,o}return(0,o.Z)(n,[{key:"run",value:function(e,t){if(t.hasModel()){var n,r=[],o=t.getSelections(),a=(0,i.Z)(o);try{for(a.s();!(n=a.n()).done;){var s=n.value;r.push(new h(s,this.left))}}catch(l){a.e(l)}finally{a.f()}t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}}]),n}(l.R6),g=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:f.NC("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:c.u.writable})}return(0,o.Z)(n)}(p),v=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,!1,{id:"editor.action.moveCarretRightAction",label:f.NC("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:c.u.writable})}return(0,o.Z)(n)}(p);(0,l.Qr)(g),(0,l.Qr)(v)},17094:function(e,t,n){"use strict";n.r(t);var i=n(37762),r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(62381),c=n(76469),u=n(20699),d=n(80133),h=n(67245),f=n(27722),p=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.transposeLetters",label:f.NC("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:h.u.writable,kbOpts:{kbExpr:h.u.textInputFocus,primary:0,mac:{primary:306},weight:100}})}return(0,o.Z)(n,[{key:"run",value:function(e,t){if(t.hasModel()){var n,r=t.getModel(),o=[],a=t.getSelections(),s=(0,i.Z)(a);try{for(s.s();!(n=s.n()).done;){var l=n.value;if(l.isEmpty()){var h=l.startLineNumber,f=l.startColumn,p=r.getLineMaxColumn(h);if(1!==h||1!==f&&(2!==f||2!==p)){var g=f===p?l.getPosition():u.o.rightPosition(r,l.getPosition().lineNumber,l.getPosition().column),v=u.o.leftPosition(r,g),m=u.o.leftPosition(r,v),y=r.getValueInRange(d.e.fromPositions(m,v)),_=r.getValueInRange(d.e.fromPositions(v,g)),b=d.e.fromPositions(m,g);o.push(new c.T4(b,_+y))}}}}catch(C){s.e(C)}finally{s.f()}o.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop())}}}]),n}(l.R6);(0,l.Qr)(p)},28485:function(e,t,n){"use strict";n.r(t),n.d(t,{CopyAction:function(){return k},CutAction:function(){return w},PasteAction:function(){return x}});var i=n(74165),r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(62865),c=n(73616),u=n(12379),d=n(62381),h=n(98596),f=n(67245),p=n(27722),g=n(48996),v=n(1255),m=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},y="9_cutcopypaste",_=c.tY||document.queryCommandSupported("cut"),b=c.tY||document.queryCommandSupported("copy"),C="undefined"!==typeof navigator.clipboard&&!l.isFirefox||document.queryCommandSupported("paste");function S(e){return e.register(),e}var w=_?S(new d.AJ({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:c.tY?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:g.eH.MenubarEditMenu,group:"2_ccp",title:p.NC({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:g.eH.EditorContext,group:y,title:p.NC("actions.clipboard.cutLabel","Cut"),when:f.u.writable,order:1},{menuId:g.eH.CommandPalette,group:"",title:p.NC("actions.clipboard.cutLabel","Cut"),order:1},{menuId:g.eH.SimpleEditorContext,group:y,title:p.NC("actions.clipboard.cutLabel","Cut"),when:f.u.writable,order:1}]})):void 0,k=b?S(new d.AJ({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:c.tY?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:g.eH.MenubarEditMenu,group:"2_ccp",title:p.NC({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:g.eH.EditorContext,group:y,title:p.NC("actions.clipboard.copyLabel","Copy"),order:2},{menuId:g.eH.CommandPalette,group:"",title:p.NC("actions.clipboard.copyLabel","Copy"),order:1},{menuId:g.eH.SimpleEditorContext,group:y,title:p.NC("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;g.BH.appendMenuItem(g.eH.MenubarEditMenu,{submenu:g.eH.MenubarCopy,title:{value:p.NC("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3}),g.BH.appendMenuItem(g.eH.EditorContext,{submenu:g.eH.EditorContextCopy,title:{value:p.NC("copy as","Copy As"),original:"Copy As"},group:y,order:3}),g.BH.appendMenuItem(g.eH.EditorContext,{submenu:g.eH.EditorContextShare,title:{value:p.NC("share","Share"),original:"Share"},group:"11_share",order:-1});var x=C?S(new d.AJ({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:c.tY?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:g.eH.MenubarEditMenu,group:"2_ccp",title:p.NC({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:g.eH.EditorContext,group:y,title:p.NC("actions.clipboard.pasteLabel","Paste"),when:f.u.writable,order:4},{menuId:g.eH.CommandPalette,group:"",title:p.NC("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:g.eH.SimpleEditorContext,group:y,title:p.NC("actions.clipboard.pasteLabel","Paste"),when:f.u.writable,order:4}]})):void 0,E=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:p.NC("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:f.u.textInputFocus,primary:0,weight:100}})}return(0,o.Z)(n,[{key:"run",value:function(e,t){t.hasModel()&&(!t.getOption(33)&&t.getSelection().isEmpty()||(u.RA.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),u.RA.forceCopyWithSyntaxHighlighting=!1))}}]),n}(d.R6);function T(e,t){e&&(e.addImplementation(1e4,"code-editor",(function(e,n){var i=e.get(h.$).getFocusedCodeEditor();if(i&&i.hasTextFocus()){var r=i.getOption(33),o=i.getSelection();return o&&o.isEmpty()&&!r||document.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",(function(e,n){return document.execCommand(t),!0})))}T(w,"cut"),T(k,"copy"),x&&(x.addImplementation(1e4,"code-editor",(function(e,t){var n=e.get(h.$),r=e.get(v.p),o=n.getFocusedCodeEditor();return!(!o||!o.hasTextFocus())&&(!(!document.execCommand("paste")&&c.$L)||m(void 0,void 0,void 0,(0,i.Z)().mark((function e(){var t,n,a,s,l;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.readText();case 2:""!==(t=e.sent)&&(n=u.Nl.INSTANCE.get(t),a=!1,s=null,l=null,n&&(a=o.getOption(33)&&!!n.isFromEmptySelection,s="undefined"!==typeof n.multicursorText?n.multicursorText:null,l=n.mode),o.trigger("keyboard","paste",{text:t,pasteOnNewLine:a,multicursorText:s,mode:l}));case 4:case"end":return e.stop()}}),e)}))))})),x.addImplementation(0,"generic-dom",(function(e,t){return document.execCommand("paste"),!0}))),b&&(0,d.Qr)(E)},81571:function(e,t,n){"use strict";n.d(t,{Bb:function(){return x},MN:function(){return T},RB:function(){return k},TM:function(){return I},aI:function(){return R},bA:function(){return D},sh:function(){return E},uH:function(){return N}});var i=n(37762),r=n(93433),o=n(60136),a=n(27277),s=n(74165),l=n(15671),c=n(43144),u=n(29671),d=n(82784),h=n(14173),f=n(11860),p=n(72112),g=n(68132),v=n(80133),m=n(23145),y=n(29257),_=n(11133),b=n(47901),C=n(73593),S=n(53584),w=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},k="editor.action.codeAction",x="editor.action.refactor",E="editor.action.refactor.preview",T="editor.action.sourceAction",N="editor.action.organizeImports",I="editor.action.fixAll",D=function(){function e(t,n){(0,l.Z)(this,e),this.action=t,this.provider=n}return(0,c.Z)(e,[{key:"resolve",value:function(e){var t;return w(this,void 0,void 0,(0,s.Z)().mark((function n(){var i;return(0,s.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null===(t=this.provider)||void 0===t?void 0:t.resolveCodeAction)||this.action.edit){n.next=11;break}return n.prev=1,n.next=4,this.provider.resolveCodeAction(this.action,e);case 4:i=n.sent,n.next=10;break;case 7:n.prev=7,n.t0=n.catch(1),(0,h.Cp)(n.t0);case 10:i&&(this.action.edit=i.edit);case 11:return n.abrupt("return",this);case 12:case"end":return n.stop()}}),n,this,[[1,7]])})))}}]),e}(),L=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o){var a;return(0,l.Z)(this,n),(a=t.call(this)).documentation=i,a._register(o),a.allActions=(0,r.Z)(e).sort(n.codeActionsComparator),a.validActions=a.allActions.filter((function(e){return!e.action.disabled})),a}return(0,c.Z)(n,[{key:"hasAutoFix",get:function(){return this.validActions.some((function(e){var t=e.action;return!!t.kind&&C.yN.QuickFix.contains(new C.yN(t.kind))&&!!t.isPreferred}))}}],[{key:"codeActionsComparator",value:function(e,t){var n=e.action,i=t.action;return n.isPreferred&&!i.isPreferred?-1:!n.isPreferred&&i.isPreferred?1:(0,u.Of)(n.diagnostics)?(0,u.Of)(i.diagnostics)?n.diagnostics[0].message.localeCompare(i.diagnostics[0].message):-1:(0,u.Of)(i.diagnostics)?1:0}}]),n}(f.JT),O={actions:[],documentation:void 0};function R(e,t,n,i,r,o){var a,l=this,c=i.filter||{},d={only:null===(a=c.include)||void 0===a?void 0:a.value,trigger:i.type},p=new g.YQ(t,o),v=function(e,t,n){return e.all(t).filter((function(e){return!e.providedCodeActionKinds||e.providedCodeActionKinds.some((function(e){return(0,C.EU)(n,new C.yN(e))}))}))}(e,t,c),m=new f.SL,y=v.map((function(e){return w(l,void 0,void 0,(0,s.Z)().mark((function i(){var o,a,l;return(0,s.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,r.report(e),i.next=4,e.provideCodeActions(t,n,d,p.token);case 4:if((o=i.sent)&&m.add(o),!p.token.isCancellationRequested){i.next=8;break}return i.abrupt("return",O);case 8:return a=((null===o||void 0===o?void 0:o.actions)||[]).filter((function(e){return e&&(0,C.Yl)(c,e)})),l=A(e,a,c.include),i.abrupt("return",{actions:a.map((function(t){return new D(t,e)})),documentation:l});case 13:if(i.prev=13,i.t0=i.catch(0),!(0,h.n2)(i.t0)){i.next=17;break}throw i.t0;case 17:return(0,h.Cp)(i.t0),i.abrupt("return",O);case 19:case"end":return i.stop()}}),i,null,[[0,13]])})))})),_=e.onDidChange((function(){var n=e.all(t);(0,u.fS)(n,v)||p.cancel()}));return Promise.all(y).then((function(e){var t=e.map((function(e){return e.actions})).flat(),n=(0,u.kX)(e.map((function(e){return e.documentation})));return new L(t,n,m)})).finally((function(){_.dispose(),p.dispose()}))}function A(e,t,n){if(e.documentation){var r=e.documentation.map((function(e){return{kind:new C.yN(e.kind),command:e.command}}));if(n){var o,a,s=(0,i.Z)(r);try{for(s.s();!(a=s.n()).done;){var l=a.value;l.kind.contains(n)&&(o?o.kind.contains(l.kind)&&(o=l):o=l)}}catch(g){s.e(g)}finally{s.f()}if(o)return null===o||void 0===o?void 0:o.command}var c,u=(0,i.Z)(t);try{for(u.s();!(c=u.n()).done;){var d=c.value;if(d.kind){var h,f=(0,i.Z)(r);try{for(f.s();!(h=f.n()).done;){var p=h.value;if(p.kind.contains(new C.yN(d.kind)))return p.command}}catch(g){f.e(g)}finally{f.f()}}}}catch(g){u.e(g)}finally{u.f()}}}_.P0.registerCommand("_executeCodeActionProvider",(function(e,t,n,i,r){return w(this,void 0,void 0,(0,s.Z)().mark((function o(){var a,l,c,u,f,g,_,w,k;return(0,s.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t instanceof p.o){o.next=2;break}throw(0,h.b1)();case 2:if(a=e.get(S.p),l=a.codeActionProvider,c=e.get(y.q).getModel(t)){o.next=6;break}throw(0,h.b1)();case 6:if(u=m.Y.isISelection(n)?m.Y.liftSelection(n):v.e.isIRange(n)?c.validateRange(n):void 0){o.next=9;break}throw(0,h.b1)();case 9:return f="string"===typeof i?new C.yN(i):void 0,o.next=12,R(l,c,u,{type:1,triggerAction:C.aQ.Default,filter:{includeSourceActions:!0,include:f}},b.Ex.None,d.T.None);case 12:for(g=o.sent,_=[],w=Math.min(g.validActions.length,"number"===typeof r?r:0),k=0;k<w;k++)_.push(g.validActions[k].resolve(d.T.None));return o.prev=16,o.next=19,Promise.all(_);case 19:return o.abrupt("return",g.validActions.map((function(e){return e.action})));case 20:return o.prev=20,setTimeout((function(){return g.dispose()}),100),o.finish(20);case 23:case"end":return o.stop()}}),o,null,[[16,,20,23]])})))}))},44875:function(e,t,n){"use strict";n.d(t,{S5:function(){return ze},dW:function(){return Me},Hv:function(){return He},o$:function(){return Be},E7:function(){return Ae},pY:function(){return De},Eb:function(){return Pe},UG:function(){return Ze},VQ:function(){return Fe}});var i=n(93433),r=n(74165),o=n(15671),a=n(43144),s=n(97326),l=n(60136),c=n(27277),u=n(82784),d=n(56922),h=n(11860),f=n(32377),p=n(62381),g=n(23),v=n(67245),m=n(53584),y=n(81571),_=n(11752),b=n(61120),C=n(14173),S=n(55824),w=n(36888),k=n(37762),x=n(29439),E=n(81531),T=n(30816),N=n(18247),I=n(38622),D=n(73593),L=n(27722),O=n(87984),R=n(34509),A=n(22468),M=n(47569),P=n(15323),Z=n(64014),F=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},B=function(e,t){return function(n,i){t(n,i,e)}},H=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},z={Visible:new R.uy("CodeActionMenuVisible",!1,(0,L.NC)("CodeActionMenuVisible","Whether the code action list widget is visible"))},j=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,e.command?e.command.id:e.title,e.title.replace(/\r\n|\r|\n/g," "),void 0,!e.disabled,i)).action=e,r}return(0,a.Z)(n)}(N.aU);var V=function(){function e(t,n){(0,o.Z)(this,e),this.acceptKeybindings=t,this.keybindingService=n}return(0,a.Z)(e,[{key:"templateId",get:function(){return"codeActionWidget"}},{key:"renderTemplate",value:function(e){var t=Object.create(null);return t.disposables=[],t.root=e,t.text=document.createElement("span"),e.append(t.text),t}},{key:"renderElement",value:function(e,t,n){var i=this,r=n,o=e.title,a=e.isEnabled,s=e.isSeparator,l=e.isDocumentation;if(r.text.textContent=o,a?r.root.classList.remove("option-disabled"):(r.root.classList.add("option-disabled"),r.root.style.backgroundColor="transparent !important"),s&&(r.root.classList.add("separator"),r.root.style.height="10px"),!l){!function(){var e,t,n=(0,x.Z)(i.acceptKeybindings,2),o=n[0],a=n[1];r.root.title=(0,L.NC)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Refactor, Shift+F2 to Preview"']},"{0} to Refactor, {1} to Preview",null===(e=i.keybindingService.lookupKeybinding(o))||void 0===e?void 0:e.getLabel(),null===(t=i.keybindingService.lookupKeybinding(a))||void 0===t?void 0:t.getLabel())}()}}},{key:"disposeTemplate",value:function(e){e.disposables=(0,h.B9)(e.disposables)}}]),e}();V=F([B(1,M.d)],V);var W=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,a,s,l,c,u,d,f){var p;return(0,o.Z)(this,n),(p=t.call(this))._editor=e,p._delegate=i,p._contextMenuService=r,p._languageFeaturesService=s,p._telemetryService=l,p._configurationService=u,p._contextViewService=d,p._contextKeyService=f,p._showingActions=p._register(new h.XK),p.codeActionList=p._register(new h.XK),p.options=[],p._visible=!1,p.viewItems=[],p.hasSeperator=!1,p._keybindingResolver=new U({getKeybindings:function(){return a.getKeybindings()}}),p._ctxMenuWidgetVisible=z.Visible.bindTo(p._contextKeyService),p.listRenderer=new V(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],a),p}return(0,a.Z)(n,[{key:"isVisible",get:function(){return this._visible}},{key:"isCodeActionWidgetEnabled",value:function(e){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:e.uri})}},{key:"_onListSelection",value:function(e){var t=this;e.elements.length&&e.elements.forEach((function(e){e.isEnabled&&(e.action.run(),t.hideCodeActionWidget())}))}},{key:"_onListHover",value:function(e){var t,n,i,r;e.element?(null===(n=e.element)||void 0===n?void 0:n.isEnabled)?(null===(i=this.codeActionList.value)||void 0===i||i.setFocus([e.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(e.element),this.currSelectedItem=e.element.index):(this.currSelectedItem=void 0,null===(r=this.codeActionList.value)||void 0===r||r.setFocus([e.element.index])):(this.currSelectedItem=void 0,null===(t=this.codeActionList.value)||void 0===t||t.setFocus([]))}},{key:"renderCodeActionMenuList",value:function(e,t){var i,r=this,o=new h.SL,a=document.createElement("div"),s=document.createElement("div");this.block=e.appendChild(s),this.block.classList.add("context-view-block"),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",o.add(E.addDisposableListener(this.block,E.EventType.MOUSE_DOWN,(function(e){return e.stopPropagation()}))),a.id="codeActionMenuWidget",a.classList.add("codeActionMenuWidget"),e.appendChild(a),this.codeActionList.value=new T.aV("codeActionWidget",a,{getHeight:function(e){return e.isSeparator?10:26},getTemplateId:function(e){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),o.add(this.codeActionList.value.onMouseOver((function(e){return r._onListHover(e)}))),o.add(this.codeActionList.value.onDidChangeFocus((function(e){var t;return null===(t=r.codeActionList.value)||void 0===t?void 0:t.domFocus()}))),o.add(this.codeActionList.value.onDidChangeSelection((function(e){return r._onListSelection(e)}))),o.add(this._editor.onDidLayoutChange((function(e){return r.hideCodeActionWidget()}))),t.forEach((function(e,i){var o="separator"===e.class,a=!1;e instanceof j&&(a=e.action.kind===n.documentationID),o&&(r.hasSeperator=!0);var s={title:e.label,detail:e.tooltip,action:t[i],isEnabled:e.enabled,isSeparator:o,index:i,isDocumentation:a};e.enabled&&r.viewItems.push(s),r.options.push(s)})),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);var l=this.hasSeperator?26*(t.length-1)+10:26*t.length;a.style.height=String(l)+"px",this.codeActionList.value.layout(l);var c=[];this.options.forEach((function(e,t){var n,i;if(r.codeActionList.value){var o=null===(i=document.getElementById(null===(n=r.codeActionList.value)||void 0===n?void 0:n.getElementID(t)))||void 0===i?void 0:i.getElementsByTagName("span")[0].offsetWidth;c.push(Number(o))}}));var u=Math.max.apply(Math,c);a.style.width=u+52+"px",null===(i=this.codeActionList.value)||void 0===i||i.layout(l,u),this.viewItems.length<1||this.viewItems.every((function(e){return e.isDocumentation}))?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();var d=E.trackFocus(e),f=d.onDidBlur((function(){r.hideCodeActionWidget()}));return o.add(f),o.add(d),this._ctxMenuWidgetVisible.set(!0),o}},{key:"focusPrevious",value:function(){var e;if("undefined"===typeof this.focusedEnabledItem)this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;var t,n=this.focusedEnabledItem;do{this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),t=this.viewItems[this.focusedEnabledItem],null===(e=this.codeActionList.value)||void 0===e||e.setFocus([t.index]),this.currSelectedItem=t.index}while(this.focusedEnabledItem!==n&&(!t.isEnabled||t.action.id===N.Z0.ID));return!0}},{key:"focusNext",value:function(){var e;if("undefined"===typeof this.focusedEnabledItem)this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;var t,n=this.focusedEnabledItem;do{this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,t=this.viewItems[this.focusedEnabledItem],null===(e=this.codeActionList.value)||void 0===e||e.setFocus([t.index]),this.currSelectedItem=t.index}while(this.focusedEnabledItem!==n&&(!t.isEnabled||t.action.id===N.Z0.ID));return!0}},{key:"navigateListWithKeysUp",value:function(){this.focusPrevious()}},{key:"navigateListWithKeysDown",value:function(){this.focusNext()}},{key:"onEnterSet",value:function(){var e;"number"===typeof this.currSelectedItem&&(null===(e=this.codeActionList.value)||void 0===e||e.setSelection([this.currSelectedItem]))}},{key:"dispose",value:function(){(0,_.Z)((0,b.Z)(n.prototype),"dispose",this).call(this)}},{key:"hideCodeActionWidget",value:function(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}},{key:"codeActionTelemetry",value:function(e,t,n){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:e,validCodeActions:n.validActions.length,cancelled:t})}},{key:"show",value:function(e,t,n,i){return H(this,void 0,void 0,(0,r.Z)().mark((function o(){var a,s,l,c,u,d,h=this;return(0,r.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=this._editor.getModel()){r.next=3;break}return r.abrupt("return");case 3:if((s=i.includeDisabledActions?t.allActions:t.validActions).length){r.next=7;break}return this._visible=!1,r.abrupt("return");case 7:if(this._editor.getDomNode()){r.next=10;break}throw this._visible=!1,(0,C.F0)();case 10:this._visible=!0,this._showingActions.value=t,l=this.getMenuActions(e,s,t.documentation),c=I.L.isIPosition(n)?this._toCoords(n):n||{x:0,y:0},u=this._keybindingResolver.getResolver(),d=this._editor.getOption(117),this.isCodeActionWidgetEnabled(a)?this._contextViewService.showContextView({getAnchor:function(){return c},render:function(e){return h.renderCodeActionMenuList(e,l)},onHide:function(n){var r=i.fromLightbulb?D.aQ.Lightbulb:e.triggerAction;h.codeActionTelemetry(r,n,t),h._visible=!1,h._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:function(){return c},getActions:function(){return l},onHide:function(n){var r=i.fromLightbulb?D.aQ.Lightbulb:e.triggerAction;h.codeActionTelemetry(r,n,t),h._visible=!1,h._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:function(e){return e instanceof j?u(e.action):void 0}});case 17:case"end":return r.stop()}}),o,this)})))}},{key:"getMenuActions",value:function(e,t,r){var o,a,s=this,l=function(t){return new j(t.action,(function(){return s._delegate.onSelectCodeAction(t,e)}))},c=t.map(l),u=(0,i.Z)(r),d=this._editor.getModel();if(d&&c.length){var h,f=(0,k.Z)(this._languageFeaturesService.codeActionProvider.all(d));try{for(f.s();!(h=f.n()).done;){var p=h.value;p._getAdditionalMenuItems&&u.push.apply(u,(0,i.Z)(p._getAdditionalMenuItems({trigger:e.type,only:null===(a=null===(o=e.filter)||void 0===o?void 0:o.include)||void 0===a?void 0:a.value},t.map((function(e){return e.action})))))}}catch(g){f.e(g)}finally{f.f()}}return u.length&&c.push.apply(c,[new N.Z0].concat((0,i.Z)(u.map((function(e){return l(new y.bA({title:e.title,command:e,kind:n.documentationID},void 0))}))))),c}},{key:"_toCoords",value:function(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();var t=this._editor.getScrolledVisiblePosition(e),n=E.getDomNodePagePosition(this._editor.getDomNode());return{x:n.left+t.left,y:n.top+t.top+t.height}}}]),n}(h.JT);W.documentationID="_documentation",W=F([B(2,A.i),B(3,M.d),B(4,m.p),B(5,P.b),B(6,Z.XE),B(7,O.Ui),B(8,A.u),B(9,R.i6)],W);var U=function(){function e(t){(0,o.Z)(this,e),this._keybindingProvider=t}return(0,a.Z)(e,[{key:"getResolver",value:function(){var t=this,n=new d.o((function(){return t._keybindingProvider.getKeybindings().filter((function(t){return e.codeActionCommands.indexOf(t.command)>=0})).filter((function(e){return e.resolvedKeybinding})).map((function(e){var t=e.commandArgs;return e.command===y.uH?t={kind:D.yN.SourceOrganizeImports.value}:e.command===y.TM&&(t={kind:D.yN.SourceFixAll.value}),Object.assign({resolvedKeybinding:e.resolvedKeybinding},D.wZ.fromUser(t,{kind:D.yN.None,apply:"never"}))}))}));return function(e){if(e.kind){var i=t.bestKeybindingForCodeAction(e,n.getValue());return null===i||void 0===i?void 0:i.resolvedKeybinding}}}},{key:"bestKeybindingForCodeAction",value:function(e,t){if(e.kind){var n=new D.yN(e.kind);return t.filter((function(e){return e.kind.contains(n)})).filter((function(t){return!t.preferred||e.isPreferred})).reduceRight((function(e,t){return e?e.kind.contains(t.kind)?t:e:t}),void 0)}}}]),e}();U.codeActionCommands=[y.Bb,y.RB,y.MN,y.uH,y.TM];var G,K=n(81238),Y=n(2801),q=n(73097),$=n(15889),X=n(32379),Q=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},J=function(e,t){return function(n,i){t(n,i,e)}};!function(e){e.Hidden={type:0};var t=(0,a.Z)((function e(t,n,i,r){(0,o.Z)(this,e),this.actions=t,this.trigger=n,this.editorPosition=i,this.widgetPosition=r,this.type=1}));e.Showing=t}(G||(G={}));var ee=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,a){var l;return(0,o.Z)(this,n),(l=t.call(this))._editor=e,l._quickFixActionId=i,l._preferredFixActionId=r,l._keybindingService=a,l._onClick=l._register(new q.Q5),l.onClick=l._onClick.event,l._state=G.Hidden,l._domNode=document.createElement("div"),l._domNode.className=Y.lA.lightBulb.classNames,l._editor.addContentWidget((0,s.Z)(l)),l._register(l._editor.onDidChangeModelContent((function(e){var t=l._editor.getModel();(1!==l.state.type||!t||l.state.editorPosition.lineNumber>=t.getLineCount())&&l.hide()}))),K.o.ignoreTarget(l._domNode),l._register(E.addStandardDisposableGenericMouseDownListener(l._domNode,(function(e){if(1===l.state.type){l._editor.focus(),e.preventDefault();var t=E.getDomNodePagePosition(l._domNode),n=t.top,i=t.height,r=l._editor.getOption(61),o=Math.floor(r/3);null!==l.state.widgetPosition.position&&l.state.widgetPosition.position.lineNumber<l.state.editorPosition.lineNumber&&(o+=r),l._onClick.fire({x:e.posx,y:n+i+o,actions:l.state.actions,trigger:l.state.trigger})}}))),l._register(E.addDisposableListener(l._domNode,"mouseenter",(function(e){1===(1&e.buttons)&&l.hide()}))),l._register(l._editor.onDidChangeConfiguration((function(e){e.hasChanged(59)&&!l._editor.getOption(59).enabled&&l.hide()}))),l._updateLightBulbTitleAndIcon(),l._register(l._keybindingService.onDidUpdateKeybindings(l._updateLightBulbTitleAndIcon,(0,s.Z)(l))),l}return(0,a.Z)(n,[{key:"dispose",value:function(){(0,_.Z)((0,b.Z)(n.prototype),"dispose",this).call(this),this._editor.removeContentWidget(this)}},{key:"getId",value:function(){return"LightBulbWidget"}},{key:"getDomNode",value:function(){return this._domNode}},{key:"getPosition",value:function(){return 1===this._state.type?this._state.widgetPosition:null}},{key:"update",value:function(e,t,i){var r=this;if(e.validActions.length<=0)return this.hide();var o=this._editor.getOptions();if(!o.get(59).enabled)return this.hide();var a=this._editor.getModel();if(!a)return this.hide();var s=a.validatePosition(i),l=s.lineNumber,c=s.column,u=a.getOptions().tabSize,d=o.get(46),h=a.getLineContent(l),f=(0,$.q)(h,u),p=function(e){return e>2&&r._editor.getTopForLineNumber(e)===r._editor.getTopForLineNumber(e-1)},g=l;if(!(d.spaceWidth*f>22))if(l>1&&!p(l-1))g-=1;else if(p(l+1)){if(c*d.spaceWidth<22)return this.hide()}else g+=1;this.state=new G.Showing(e,t,i,{position:{lineNumber:g,column:1},preference:n._posPref}),this._editor.layoutContentWidget(this)}},{key:"hide",value:function(){this.state=G.Hidden,this._editor.layoutContentWidget(this)}},{key:"state",get:function(){return this._state},set:function(e){this._state=e,this._updateLightBulbTitleAndIcon()}},{key:"_updateLightBulbTitleAndIcon",value:function(){var e,t;if(1===this.state.type&&this.state.actions.hasAutoFix){var n,r;(n=this._domNode.classList).remove.apply(n,(0,i.Z)(Y.lA.lightBulb.classNamesArray)),(r=this._domNode.classList).add.apply(r,(0,i.Z)(Y.lA.lightbulbAutofix.classNamesArray));var o=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(o)return void(this.title=L.NC("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",o.getLabel()))}(e=this._domNode.classList).remove.apply(e,(0,i.Z)(Y.lA.lightbulbAutofix.classNamesArray)),(t=this._domNode.classList).add.apply(t,(0,i.Z)(Y.lA.lightBulb.classNamesArray));var a=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=a?L.NC("codeActionWithKb","Show Code Actions ({0})",a.getLabel()):L.NC("codeAction","Show Code Actions")}},{key:"title",set:function(e){this._domNode.title=e}}]),n}(h.JT);ee._posPref=[0],ee=Q([J(3,M.d)],ee),(0,Z.Ic)((function(e,t){var n,i=null===(n=e.getColor(X.cvW))||void 0===n?void 0:n.transparent(.7),r=e.getColor(X.Fu1);r&&t.addRule("\n\t\t.monaco-editor .contentWidgets ".concat(Y.lA.lightBulb.cssSelector," {\n\t\t\tcolor: ").concat(r,";\n\t\t\tbackground-color: ").concat(i,";\n\t\t}"));var o=e.getColor(X.sKV);o&&t.addRule("\n\t\t.monaco-editor .contentWidgets ".concat(Y.lA.lightbulbAutofix.cssSelector," {\n\t\t\tcolor: ").concat(o,";\n\t\t\tbackground-color: ").concat(i,";\n\t\t}"))}));var te,ne=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ie=function(e,t){return function(n,i){t(n,i,e)}},re=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},oe=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n},ae=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},se=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,a,l,c){var u;return(0,o.Z)(this,n),(u=t.call(this))._editor=e,u.delegate=l,u._activeCodeActions=u._register(new h.XK),u.previewOn=!1,te.set((0,s.Z)(u),!1),u._codeActionWidget=new d.o((function(){return u._register(c.createInstance(W,u._editor,{onSelectCodeAction:function(e,t){return re((0,s.Z)(u),void 0,void 0,(0,r.Z)().mark((function n(){return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this.previewOn?this.delegate.applyCodeAction(e,!0,Boolean(this.previewOn)):this.delegate.applyCodeAction(e,!0,Boolean(t.preview)),this.previewOn=!1;case 2:case"end":return n.stop()}}),n,this)})))}}))})),u._lightBulbWidget=new d.o((function(){var e=u._register(c.createInstance(ee,u._editor,i,a));return u._register(e.onClick((function(e){return u.showCodeActionList(e.trigger,e.actions,e,{includeDisabledActions:!1,fromLightbulb:!0})}))),e})),u}return(0,a.Z)(n,[{key:"dispose",value:function(){oe(this,te,!0,"f"),(0,_.Z)((0,b.Z)(n.prototype),"dispose",this).call(this)}},{key:"hideCodeActionWidget",value:function(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().hideCodeActionWidget()}},{key:"onEnter",value:function(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().onEnterSet()}},{key:"onPreviewEnter",value:function(){this.previewOn=!0,this.onEnter()}},{key:"navigateList",value:function(e){this._codeActionWidget.hasValue()&&(e?this._codeActionWidget.getValue().navigateListWithKeysUp():this._codeActionWidget.getValue().navigateListWithKeysDown())}},{key:"update",value:function(e){var t,n,i,o,a;return re(this,void 0,void 0,(0,r.Z)().mark((function s(){var l,c,u,d;return(0,r.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(1===e.type){r.next=3;break}return null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide(),r.abrupt("return");case 3:return r.prev=3,r.next=6,e.actions;case 6:l=r.sent,r.next=13;break;case 9:return r.prev=9,r.t0=r.catch(3),(0,C.dL)(r.t0),r.abrupt("return");case 13:if(!ae(this,te,"f")){r.next=15;break}return r.abrupt("return");case 15:if(this._lightBulbWidget.getValue().update(l,e.trigger,e.position),1!==e.trigger.type){r.next=45;break}if(!(null===(n=e.trigger.filter)||void 0===n?void 0:n.include)){r.next=34;break}if(!(c=this.tryGetValidActionToApply(e.trigger,l))){r.next=28;break}return r.prev=20,this._lightBulbWidget.getValue().hide(),r.next=24,this.delegate.applyCodeAction(c,!1,!1);case 24:return r.prev=24,l.dispose(),r.finish(24);case 27:return r.abrupt("return");case 28:if(!e.trigger.context){r.next=34;break}if(!(u=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,l))||!u.action.disabled){r.next=34;break}return null===(i=S.O.get(this._editor))||void 0===i||i.showMessage(u.action.disabled,e.trigger.context.position),l.dispose(),r.abrupt("return");case 34:if(d=!!(null===(o=e.trigger.filter)||void 0===o?void 0:o.include),!e.trigger.context){r.next=41;break}if(l.allActions.length&&(d||l.validActions.length)){r.next=41;break}return null===(a=S.O.get(this._editor))||void 0===a||a.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=l,l.dispose(),r.abrupt("return");case 41:this._activeCodeActions.value=l,this._codeActionWidget.getValue().show(e.trigger,l,e.position,{includeDisabledActions:d,fromLightbulb:!1}),r.next=46;break;case 45:this._codeActionWidget.getValue().isVisible?l.dispose():this._activeCodeActions.value=l;case 46:case"end":return r.stop()}}),s,this,[[3,9],[20,,24,27]])})))}},{key:"getInvalidActionThatWouldHaveBeenApplied",value:function(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((function(e){return e.action.disabled})):void 0}},{key:"tryGetValidActionToApply",value:function(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}},{key:"showCodeActionList",value:function(e,t,n,i){return re(this,void 0,void 0,(0,r.Z)().mark((function o(){return(0,r.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:this._codeActionWidget.getValue().show(e,t,n,i);case 1:case"end":return r.stop()}}),o,this)})))}}]),n}(h.JT);te=new WeakMap,se=ne([ie(4,w.TG)],se);var le,ce,ue=n(11133),de=n(46813),he=n(47901),fe=n(15493),pe=n(60022),ge=n(41175),ve=n(80133),me=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},ye=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n},_e=new R.uy("supportedCodeAction",""),be=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r){var a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:250;return(0,o.Z)(this,n),(a=t.call(this))._editor=e,a._markerService=i,a._signalChange=r,a._delay=s,a._autoTriggerTimer=a._register(new pe._F),a._register(a._markerService.onMarkerChanged((function(e){return a._onMarkerChanges(e)}))),a._register(a._editor.onDidChangeCursorPosition((function(){return a._onCursorChange()}))),a}return(0,a.Z)(n,[{key:"trigger",value:function(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}},{key:"_onMarkerChanges",value:function(e){var t=this,n=this._editor.getModel();n&&e.some((function(e){return(0,ge.Xy)(e,n.uri)}))&&this._autoTriggerTimer.cancelAndSet((function(){t.trigger({type:2,triggerAction:D.aQ.Default})}),this._delay)}},{key:"_onCursorChange",value:function(){var e=this;this._autoTriggerTimer.cancelAndSet((function(){e.trigger({type:2,triggerAction:D.aQ.Default})}),this._delay)}},{key:"_getRangeOfMarker",value:function(e){var t=this._editor.getModel();if(t){var n,i=(0,k.Z)(this._markerService.read({resource:t.uri}));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=t.validateRange(r);if(ve.e.intersectRanges(o,e))return ve.e.lift(o)}}catch(a){i.e(a)}finally{i.f()}}}},{key:"_getRangeOfSelectionUnlessWhitespaceEnclosed",value:function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&2===e.type){var i=n.getPosition(),r=i.lineNumber,o=i.column,a=t.getLineContent(r);if(0===a.length)return;if(1===o){if(/\s/.test(a[0]))return}else if(o===t.getLineMaxColumn(r)){if(/\s/.test(a[a.length-1]))return}else if(/\s/.test(a[o-2])&&/\s/.test(a[o-1]))return}return n}}},{key:"_createEventAndSignalChange",value:function(e,t){var n=this._editor.getModel();if(t&&n){var i=this._getRangeOfMarker(t),r=i?i.getStartPosition():t.getStartPosition(),o={trigger:e,selection:t,position:r};return this._signalChange(o),o}this._signalChange(void 0)}}]),n}(h.JT);!function(e){e.Empty={type:0};var t=function(){function e(t,n,i,r){(0,o.Z)(this,e),this.trigger=t,this.rangeOrSelection=n,this.position=i,this._cancellablePromise=r,this.type=1,this.actions=r.catch((function(e){if((0,C.n2)(e))return Ce;throw e}))}return(0,a.Z)(e,[{key:"cancel",value:function(){this._cancellablePromise.cancel()}}]),e}();e.Triggered=t}(ce||(ce={}));var Ce={allActions:[],validActions:[],dispose:function(){},documentation:[],hasAutoFix:!1},Se=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,a,l){var c;return(0,o.Z)(this,n),(c=t.call(this))._editor=e,c._registry=i,c._markerService=r,c._progressService=l,c._codeActionOracle=c._register(new h.XK),c._state=ce.Empty,c._onDidChangeState=c._register(new q.Q5),c.onDidChangeState=c._onDidChangeState.event,le.set((0,s.Z)(c),!1),c._supportedCodeActions=_e.bindTo(a),c._register(c._editor.onDidChangeModel((function(){return c._update()}))),c._register(c._editor.onDidChangeModelLanguage((function(){return c._update()}))),c._register(c._registry.onDidChange((function(){return c._update()}))),c._update(),c}return(0,a.Z)(n,[{key:"dispose",value:function(){me(this,le,"f")||(ye(this,le,!0,"f"),(0,_.Z)((0,b.Z)(n.prototype),"dispose",this).call(this),this.setState(ce.Empty,!0))}},{key:"_update",value:function(){var e=this;if(!me(this,le,"f")){this._codeActionOracle.value=void 0,this.setState(ce.Empty);var t=this._editor.getModel();if(t&&this._registry.has(t)&&!this._editor.getOption(83)){var n,r=[],o=(0,k.Z)(this._registry.all(t));try{for(o.s();!(n=o.n()).done;){var a=n.value;Array.isArray(a.providedCodeActionKinds)&&r.push.apply(r,(0,i.Z)(a.providedCodeActionKinds))}}catch(s){o.e(s)}finally{o.f()}this._supportedCodeActions.set(r.join(" ")),this._codeActionOracle.value=new be(this._editor,this._markerService,(function(n){var i;if(n){var r=(0,pe.PG)((function(i){return(0,y.aI)(e._registry,t,n.selection,n.trigger,he.Ex.None,i)}));1===n.trigger.type&&(null===(i=e._progressService)||void 0===i||i.showWhile(r,250)),e.setState(new ce.Triggered(n.trigger,n.selection,n.position,r))}else e.setState(ce.Empty)}),void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:D.aQ.Default})}else this._supportedCodeActions.reset()}}},{key:"trigger",value:function(e){var t;null===(t=this._codeActionOracle.value)||void 0===t||t.trigger(e)}},{key:"setState",value:function(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||me(this,le,"f")||this._onDidChangeState.fire(e))}}]),n}(h.JT);le=new WeakMap;var we=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ke=function(e,t){return function(n,i){t(n,i,e)}},xe=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};function Ee(e){return R.Ao.regex(_e.keys()[0],new RegExp("(\\s|^)"+(0,f.ec)(e.value)+"\\b"))}function Te(e,t,n,i){var r=D.wZ.fromUser(t,{kind:D.yN.Refactor,apply:"never"});return Re(e,"string"===typeof(null===t||void 0===t?void 0:t.kind)?r.preferred?L.NC("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",t.kind):L.NC("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",t.kind):r.preferred?L.NC("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):L.NC("editor.action.refactor.noneMessage","No refactorings available"),{include:D.yN.Refactor.contains(r.kind)?r.kind:D.yN.None,onlyIncludePreferredActions:r.preferred},r.apply,n,i)}var Ne,Ie={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:L.NC("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:L.NC("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[L.NC("args.schema.apply.first","Always apply the first returned code action."),L.NC("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),L.NC("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:L.NC("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},De=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,a,l,c,u){var h;return(0,o.Z)(this,n),(h=t.call(this))._instantiationService=c,h._editor=e,h._model=h._register(new Se(h._editor,u.codeActionProvider,i,a,l)),h._register(h._model.onDidChangeState((function(e){return h.update(e)}))),h._ui=new d.o((function(){return h._register(new se(e,Ae.Id,ze.Id,{applyCodeAction:function(e,t,n){return xe((0,s.Z)(h),void 0,void 0,(0,r.Z)().mark((function i(){return(0,r.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,this._applyCodeAction(e,n);case 3:return i.prev=3,t&&this._trigger({type:2,triggerAction:D.aQ.QuickFix,filter:{}}),i.finish(3);case 6:case"end":return i.stop()}}),i,this,[[0,,3,6]])})))}},h._instantiationService))})),h}return(0,a.Z)(n,[{key:"update",value:function(e){this._ui.getValue().update(e)}},{key:"hideCodeActionMenu",value:function(){this._ui.hasValue()&&this._ui.getValue().hideCodeActionWidget()}},{key:"navigateCodeActionList",value:function(e){this._ui.hasValue()&&this._ui.getValue().navigateList(e)}},{key:"selectedOption",value:function(){this._ui.hasValue()&&this._ui.getValue().onEnter()}},{key:"selectedOptionWithPreview",value:function(){this._ui.hasValue()&&this._ui.getValue().onPreviewEnter()}},{key:"showCodeActions",value:function(e,t,n){return this._ui.getValue().showCodeActionList(e,t,n,{includeDisabledActions:!1,fromLightbulb:!1})}},{key:"manualTriggerAtCurrentPosition",value:function(e,t,n,i,r){var o;if(this._editor.hasModel()){null===(o=S.O.get(this._editor))||void 0===o||o.closeMessage();var a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:n,autoApply:i,context:{notAvailableMessage:e,position:a},preview:r})}}},{key:"_trigger",value:function(e){return this._model.trigger(e)}},{key:"_applyCodeAction",value:function(e,t){return this._instantiationService.invokeFunction(Le,e,Ne.FromCodeActions,{preview:t,editor:this._editor})}}],[{key:"get",value:function(e){return e.getContribution(n.ID)}}]),n}(h.JT);function Le(e,t,n,o){return xe(this,void 0,void 0,(0,r.Z)().mark((function a(){var s,l,c,d,h;return(0,r.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=e.get(g.vu),l=e.get(ue.Hy),c=e.get(P.b),d=e.get(fe.lT),c.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:n}),r.next=7,t.resolve(u.T.None);case 7:if(!t.action.edit){r.next=10;break}return r.next=10,s.apply(g.fo.convert(t.action.edit),{editor:null===o||void 0===o?void 0:o.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:!0,showPreview:null===o||void 0===o?void 0:o.preview});case 10:if(!t.action.command){r.next=20;break}return r.prev=11,r.next=14,l.executeCommand.apply(l,[t.action.command.id].concat((0,i.Z)(t.action.command.arguments||[])));case 14:r.next=20;break;case 16:r.prev=16,r.t0=r.catch(11),h=Oe(r.t0),d.error("string"===typeof h?h:L.NC("applyCodeActionFailed","An unknown error occurred while applying the code action"));case 20:case"end":return r.stop()}}),a,null,[[11,16]])})))}function Oe(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}function Re(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:D.aQ.Default;if(e.hasModel()){var a=De.get(e);null===a||void 0===a||a.manualTriggerAtCurrentPosition(t,o,n,i,r)}}De.ID="editor.contrib.quickFixController",De=we([ke(1,de.lT),ke(2,R.i6),ke(3,he.ek),ke(4,w.TG),ke(5,m.p)],De),function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions"}(Ne||(Ne={}));var Ae=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:n.Id,label:L.NC("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:R.Ao.and(v.u.writable,v.u.hasCodeActionsProvider),kbOpts:{kbExpr:v.u.editorTextFocus,primary:2132,weight:100}})}return(0,a.Z)(n,[{key:"run",value:function(e,t){return Re(t,L.NC("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,D.aQ.QuickFix)}}]),n}(p.R6);Ae.Id="editor.action.quickFix";var Me=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:y.RB,precondition:R.Ao.and(v.u.writable,v.u.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Ie}]}})}return(0,a.Z)(n,[{key:"runEditorCommand",value:function(e,t,n){var i=D.wZ.fromUser(n,{kind:D.yN.Empty,apply:"ifSingle"});return Re(t,"string"===typeof(null===n||void 0===n?void 0:n.kind)?i.preferred?L.NC("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):L.NC("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):i.preferred?L.NC("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):L.NC("editor.action.codeAction.noneMessage","No code actions available"),{include:i.kind,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)}}]),n}(p._l),Pe=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:y.Bb,label:L.NC("refactor.label","Refactor..."),alias:"Refactor...",precondition:R.Ao.and(v.u.writable,v.u.hasCodeActionsProvider),kbOpts:{kbExpr:v.u.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:R.Ao.and(v.u.writable,Ee(D.yN.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Ie}]}})}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){return Te(t,n,!1,D.aQ.Refactor)}}]),n}(p.R6),Ze=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:y.sh,label:L.NC("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:R.Ao.and(v.u.writable,v.u.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:Ie}]}})}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){return Te(t,n,!0,D.aQ.RefactorPreview)}}]),n}(p.R6),Fe=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:y.MN,label:L.NC("source.label","Source Action..."),alias:"Source Action...",precondition:R.Ao.and(v.u.writable,v.u.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:R.Ao.and(v.u.writable,Ee(D.yN.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Ie}]}})}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){var i=D.wZ.fromUser(n,{kind:D.yN.Source,apply:"never"});return Re(t,"string"===typeof(null===n||void 0===n?void 0:n.kind)?i.preferred?L.NC("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):L.NC("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):i.preferred?L.NC("editor.action.source.noneMessage.preferred","No preferred source actions available"):L.NC("editor.action.source.noneMessage","No source actions available"),{include:D.yN.Source.contains(i.kind)?i.kind:D.yN.None,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply,void 0,D.aQ.SourceAction)}}]),n}(p.R6),Be=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:y.uH,label:L.NC("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:R.Ao.and(v.u.writable,Ee(D.yN.SourceOrganizeImports)),kbOpts:{kbExpr:v.u.editorTextFocus,primary:1581,weight:100}})}return(0,a.Z)(n,[{key:"run",value:function(e,t){return Re(t,L.NC("editor.action.organize.noneMessage","No organize imports action available"),{include:D.yN.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,D.aQ.OrganizeImports)}}]),n}(p.R6),He=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:y.TM,label:L.NC("fixAll.label","Fix All"),alias:"Fix All",precondition:R.Ao.and(v.u.writable,Ee(D.yN.SourceFixAll))})}return(0,a.Z)(n,[{key:"run",value:function(e,t){return Re(t,L.NC("fixAll.noneMessage","No fix all action available"),{include:D.yN.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,D.aQ.FixAll)}}]),n}(p.R6),ze=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:n.Id,label:L.NC("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:R.Ao.and(v.u.writable,Ee(D.yN.QuickFix)),kbOpts:{kbExpr:v.u.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}return(0,a.Z)(n,[{key:"run",value:function(e,t){return Re(t,L.NC("editor.action.autoFix.noneMessage","No auto fixes available"),{include:D.yN.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,D.aQ.AutoFix)}}]),n}(p.R6);ze.Id="editor.action.autoFix";var je=p._l.bindToContribution(De.get),Ve=190;(0,p.fK)(new je({id:"hideCodeActionMenuWidget",precondition:z.Visible,handler:function(e){e.hideCodeActionMenu()},kbOpts:{weight:Ve,primary:9,secondary:[1033]}})),(0,p.fK)(new je({id:"focusPreviousCodeAction",precondition:z.Visible,handler:function(e){e.navigateCodeActionList(!0)},kbOpts:{weight:100190,primary:16,secondary:[2064]}})),(0,p.fK)(new je({id:"focusNextCodeAction",precondition:z.Visible,handler:function(e){e.navigateCodeActionList(!1)},kbOpts:{weight:100190,primary:18,secondary:[2066]}})),(0,p.fK)(new je({id:"onEnterSelectCodeAction",precondition:z.Visible,handler:function(e){e.selectedOption()},kbOpts:{weight:100190,primary:3,secondary:[1026]}})),(0,p.fK)(new je({id:"onEnterSelectCodeActionWithPreview",precondition:z.Visible,handler:function(e){e.selectedOptionWithPreview()},kbOpts:{weight:100190,primary:2051}}))},89977:function(e,t,n){"use strict";n.r(t);var i=n(62381),r=n(44875),o=n(35243),a=n(27722),s=n(50818);n(69077).B.as(s.IP.Configuration).registerConfiguration(Object.assign(Object.assign({},o.wk),{properties:{"editor.experimental.useCustomCodeActionMenu":{type:"boolean",tags:["experimental"],scope:5,description:a.NC("codeActionWidget","Enabling this adjusts how the code action menu is rendered."),default:!1}}})),(0,i._K)(r.pY.ID,r.pY),(0,i.Qr)(r.E7),(0,i.Qr)(r.Eb),(0,i.Qr)(r.UG),(0,i.Qr)(r.VQ),(0,i.Qr)(r.o$),(0,i.Qr)(r.S5),(0,i.Qr)(r.Hv),(0,i.fK)(new r.dW)},73593:function(e,t,n){"use strict";n.d(t,{EU:function(){return s},Yl:function(){return l},aQ:function(){return i},wZ:function(){return u},yN:function(){return a}});var i,r=n(15671),o=n(43144),a=function(){function e(t){(0,r.Z)(this,e),this.value=t}return(0,o.Z)(e,[{key:"equals",value:function(e){return this.value===e.value}},{key:"contains",value:function(t){return this.equals(t)||""===this.value||t.value.startsWith(this.value+e.sep)}},{key:"intersects",value:function(e){return this.contains(e)||e.contains(this)}},{key:"append",value:function(t){return new e(this.value+e.sep+t)}}]),e}();function s(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some((function(n){return c(t,n,e.include)})))&&!(!e.includeSourceActions&&a.Source.contains(t)))}function l(e,t){var n=t.kind?new a(t.kind):void 0;return!!(!e.include||n&&e.include.contains(n))&&(!(e.excludes&&n&&e.excludes.some((function(t){return c(n,t,e.include)})))&&(!(!e.includeSourceActions&&n&&a.Source.contains(n))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function c(e,t,n){return!!t.contains(e)&&(!n||!t.contains(n))}a.sep=".",a.None=new a("@@none@@"),a.Empty=new a(""),a.QuickFix=new a("quickfix"),a.Refactor=new a("refactor"),a.Source=new a("source"),a.SourceOrganizeImports=a.Source.append("organizeImports"),a.SourceFixAll=a.Source.append("fixAll"),function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"}(i||(i={}));var u=function(){function e(t,n,i){(0,r.Z)(this,e),this.kind=t,this.apply=n,this.preferred=i}return(0,o.Z)(e,null,[{key:"fromUser",value:function(t,n){return t&&"object"===typeof t?new e(e.getKindFromUser(t,n.kind),e.getApplyFromUser(t,n.apply),e.getPreferredUser(t)):new e(n.kind,n.apply,!1)}},{key:"getApplyFromUser",value:function(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}},{key:"getKindFromUser",value:function(e,t){return"string"===typeof e.kind?new a(e.kind):t}},{key:"getPreferredUser",value:function(e){return"boolean"===typeof e.preferred&&e.preferred}}]),e}()},75580:function(e,t,n){"use strict";n.r(t),n.d(t,{CodeLensContribution:function(){return J}});var i=n(74165),r=n(60136),o=n(27277),a=n(93433),s=n(37762),l=n(15671),c=n(43144),u=n(81531),d=n(60022),h=n(14173),f=n(57741),p=n(11860),g=n(31782),v=n(62381),m=n(64472),y=n(67245),_=n(82784),b=n(85294),C=n(72112),S=n(29257),w=n(11133),k=n(53584),x=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},E=function(){function e(){(0,l.Z)(this,e),this.lenses=[],this._disposables=new p.SL}return(0,c.Z)(e,[{key:"dispose",value:function(){this._disposables.dispose()}},{key:"isDisposed",get:function(){return this._disposables.isDisposed}},{key:"add",value:function(e,t){this._disposables.add(e);var n,i=(0,s.Z)(e.lenses);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.lenses.push({symbol:r,provider:t})}}catch(o){i.e(o)}finally{i.f()}}}]),e}();function T(e,t,n){return x(this,void 0,void 0,(0,i.Z)().mark((function r(){var o,a,s,l,c=this;return(0,i.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e.ordered(t),a=new Map,s=new E,l=o.map((function(e,r){return x(c,void 0,void 0,(0,i.Z)().mark((function o(){var l;return(0,i.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a.set(e,r),i.prev=1,i.next=4,Promise.resolve(e.provideCodeLenses(t,n));case 4:(l=i.sent)&&s.add(l,e),i.next=11;break;case 8:i.prev=8,i.t0=i.catch(1),(0,h.Cp)(i.t0);case 11:case"end":return i.stop()}}),o,null,[[1,8]])})))})),r.next=6,Promise.all(l);case 6:return s.lenses=s.lenses.sort((function(e,t){return e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:a.get(e.provider)<a.get(t.provider)?-1:a.get(e.provider)>a.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0})),r.abrupt("return",s);case 8:case"end":return r.stop()}}),r)})))}w.P0.registerCommand("_executeCodeLensProvider",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=n[0],o=n[1];(0,b.p_)(C.o.isUri(r)),(0,b.p_)("number"===typeof o||!o);var a=e.get(k.p),l=a.codeLensProvider,c=e.get(S.q).getModel(r);if(!c)throw(0,h.b1)();var u=[],d=new p.SL;return T(l,c,_.T.None).then((function(e){d.add(e);var t,n=[],i=(0,s.Z)(e.lenses);try{var r=function(){var e=t.value;void 0===o||null===o||Boolean(e.symbol.command)?u.push(e.symbol):o-- >0&&e.provider.resolveCodeLens&&n.push(Promise.resolve(e.provider.resolveCodeLens(c,e.symbol,_.T.None)).then((function(t){return u.push(t||e.symbol)})))};for(i.s();!(t=i.n()).done;)r()}catch(a){i.e(a)}finally{i.f()}return Promise.all(n)})).then((function(){return u})).finally((function(){setTimeout((function(){return d.dispose()}),100)}))}));var N=n(29439),I=n(11541),D=n(54376),L=n(80133),O=n(77896),R=n(36888),A=n(69681),M=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},P=function(e,t){return function(n,i){t(n,i,e)}},Z=(0,R.yh)("ICodeLensCache"),F=(0,c.Z)((function e(t,n){(0,l.Z)(this,e),this.lineCount=t,this.data=n})),B=function(){function e(t){var n=this;(0,l.Z)(this,e),this._fakeProvider=new(function(){function e(){(0,l.Z)(this,e)}return(0,c.Z)(e,[{key:"provideCodeLenses",value:function(){throw new Error("not supported")}}]),e}()),this._cache=new D.z6(20,.75);(0,d.To)((function(){return t.remove("codelens/cache",1)}));var i="codelens/cache2",r=t.get(i,1,"{}");this._deserialize(r),(0,I.I)(t.onWillSaveState)((function(e){e.reason===A.fk.SHUTDOWN&&t.store(i,n._serialize(),1,1)}))}return(0,c.Z)(e,[{key:"put",value:function(e,t){var n=t.lenses.map((function(e){var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}})),i=new E;i.add({lenses:n,dispose:function(){}},this._fakeProvider);var r=new F(e.getLineCount(),i);this._cache.set(e.uri.toString(),r)}},{key:"get",value:function(e){var t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}},{key:"delete",value:function(e){this._cache.delete(e.uri.toString())}},{key:"_serialize",value:function(){var e,t=Object.create(null),n=(0,s.Z)(this._cache);try{for(n.s();!(e=n.n()).done;){var i,r=(0,N.Z)(e.value,2),o=r[0],l=r[1],c=new Set,u=(0,s.Z)(l.data.lenses);try{for(u.s();!(i=u.n()).done;){var d=i.value;c.add(d.symbol.range.startLineNumber)}}catch(h){u.e(h)}finally{u.f()}t[o]={lineCount:l.lineCount,lines:(0,a.Z)(c.values())}}}catch(h){n.e(h)}finally{n.f()}return JSON.stringify(t)}},{key:"_deserialize",value:function(e){try{var t=JSON.parse(e);for(var n in t){var i,r=t[n],o=[],a=(0,s.Z)(r.lines);try{for(a.s();!(i=a.n()).done;){var l=i.value;o.push({range:new L.e(l,1,l,11)})}}catch(u){a.e(u)}finally{a.f()}var c=new E;c.add({lenses:o,dispose:function(){}},this._fakeProvider),this._cache.set(n,new F(r.lineCount,c))}}catch(d){}}}]),e}();B=M([P(0,A.Uy)],B),(0,O.z)(Z,B);var H=n(95343),z=n(70845),j=function(){function e(t,n,i){(0,l.Z)(this,e),this.afterColumn=1073741824,this.afterLineNumber=t,this.heightInPx=n,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}return(0,c.Z)(e,[{key:"onComputedHeight",value:function(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}},{key:"isVisible",value:function(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}]),e}(),V=function(){function e(t,n,i){(0,l.Z)(this,e),this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=t,this._id="codelens.widget-".concat(e._idPool++),this.updatePosition(i),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration ".concat(n)}return(0,c.Z)(e,[{key:"withCommands",value:function(e,t){this._commands.clear();for(var n=[],i=!1,r=0;r<e.length;r++){var o=e[r];if(o&&(i=!0,o.command)){var s=(0,H.T)(o.command.title.trim());o.command.id?(n.push(u.$.apply(u,["a",{id:String(r),title:o.command.tooltip,role:"button"}].concat((0,a.Z)(s)))),this._commands.set(String(r),o.command)):n.push(u.$.apply(u,["span",{title:o.command.tooltip}].concat((0,a.Z)(s)))),r+1<e.length&&n.push(u.$("span",void 0,"\xa0|\xa0"))}}i?(u.reset.apply(u,[this._domNode].concat(n)),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):u.reset(this._domNode,u.$("span",void 0,"no commands"))}},{key:"getCommand",value:function(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}},{key:"getId",value:function(){return this._id}},{key:"getDomNode",value:function(){return this._domNode}},{key:"updatePosition",value:function(e){var t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}},{key:"getPosition",value:function(){return this._widgetPosition||null}}]),e}();V._idPool=0;var W=function(){function e(){(0,l.Z)(this,e),this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}return(0,c.Z)(e,[{key:"addDecoration",value:function(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}},{key:"removeDecoration",value:function(e){this._removeDecorations.push(e)}},{key:"commit",value:function(e){for(var t=e.deltaDecorations(this._removeDecorations,this._addDecorations),n=0,i=t.length;n<i;n++)this._addDecorationsCallbacks[n](t[n])}}]),e}(),U=function(){function e(t,n,i,r,o,a,s){var c,u=this;(0,l.Z)(this,e),this._isDisposed=!1,this._editor=n,this._className=i,this._data=t,this._decorationIds=[];var d=[];this._data.forEach((function(e,t){e.symbol.command&&d.push(e.symbol),r.addDecoration({range:e.symbol.range,options:z.qx.EMPTY},(function(e){return u._decorationIds[t]=e})),c=c?L.e.plusRange(c,e.symbol.range):L.e.lift(e.symbol.range)})),this._viewZone=new j(c.startLineNumber-1,a,s),this._viewZoneId=o.addZone(this._viewZone),d.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(d,!1))}return(0,c.Z)(e,[{key:"_createContentWidgetIfNecessary",value:function(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new V(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}},{key:"dispose",value:function(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],null===t||void 0===t||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}},{key:"isDisposed",value:function(){return this._isDisposed}},{key:"isValid",value:function(){var e=this;return this._decorationIds.some((function(t,n){var i=e._editor.getModel().getDecorationRange(t),r=e._data[n].symbol;return!(!i||L.e.isEmpty(r.range)!==i.isEmpty())}))}},{key:"updateCodeLensSymbols",value:function(e,t){var n=this;this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((function(e,i){t.addDecoration({range:e.symbol.range,options:z.qx.EMPTY},(function(e){return n._decorationIds[i]=e}))}))}},{key:"updateHeight",value:function(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}},{key:"computeIfNecessary",value:function(e){if(!this._viewZone.isVisible())return null;for(var t=0;t<this._decorationIds.length;t++){var n=e.getDecorationRange(this._decorationIds[t]);n&&(this._data[t].symbol.range=n)}return this._data}},{key:"updateCommands",value:function(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(var t=0;t<this._data.length;t++){var n=e[t];if(n){var i=this._data[t].symbol;i.command=n.command||i.command}}}},{key:"getCommand",value:function(e){var t;return null===(t=this._contentWidget)||void 0===t?void 0:t.getCommand(e)}},{key:"getLineNumber",value:function(){var e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}},{key:"update",value:function(e){if(this.isValid()){var t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}]),e}(),G=n(27722),K=n(15493),Y=n(23664),q=n(98971),$=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},X=function(e,t){return function(n,i){t(n,i,e)}},Q=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},J=function(){function e(t,n,i,r,o,a){var s=this;(0,l.Z)(this,e),this._editor=t,this._languageFeaturesService=n,this._commandService=r,this._notificationService=o,this._codeLensCache=a,this._disposables=new p.SL,this._localToDispose=new p.SL,this._lenses=[],this._oldCodeLensModels=new p.SL,this._provideCodeLensDebounce=i.for(n.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(n.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new d.pY((function(){return s._resolveCodeLensesInViewport()}),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel((function(){return s._onModelChange()}))),this._disposables.add(this._editor.onDidChangeModelLanguage((function(){return s._onModelChange()}))),this._disposables.add(this._editor.onDidChangeConfiguration((function(e){(e.hasChanged(46)||e.hasChanged(16)||e.hasChanged(15))&&s._updateLensStyle(),e.hasChanged(14)&&s._onModelChange()}))),this._disposables.add(n.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._styleClassName="_"+(0,f.vp)(this._editor.getId()).toString(16),this._styleElement=u.createStyleSheet(u.isInShadowDOM(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}return(0,c.Z)(e,[{key:"dispose",value:function(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),null===(e=this._currentCodeLensModel)||void 0===e||e.dispose(),this._styleElement.remove()}},{key:"_getLayoutInfo",value:function(){var e=Math.max(1.3,this._editor.getOption(61)/this._editor.getOption(48)),t=this._editor.getOption(16);return(!t||t<5)&&(t=.9*this._editor.getOption(48)|0),{fontSize:t,codeLensHeight:t*e|0}}},{key:"_updateLensStyle",value:function(){var e=this,t=this._getLayoutInfo(),n=t.codeLensHeight,i=t.fontSize,r=this._editor.getOption(15),o=this._editor.getOption(46),a="--codelens-font-family".concat(this._styleClassName),l="--codelens-font-features".concat(this._styleClassName),c="\n\t\t.monaco-editor .codelens-decoration.".concat(this._styleClassName," { line-height: ").concat(n,"px; font-size: ").concat(i,"px; padding-right: ").concat(Math.round(.5*i),"px; font-feature-settings: var(").concat(l,") }\n\t\t.monaco-editor .codelens-decoration.").concat(this._styleClassName," span.codicon { line-height: ").concat(n,"px; font-size: ").concat(i,"px; }\n\t\t");r&&(c+=".monaco-editor .codelens-decoration.".concat(this._styleClassName," { font-family: var(").concat(a,"), ").concat(m.hL.fontFamily,"}")),this._styleElement.textContent=c,this._editor.getContainerDomNode().style.setProperty(a,null!==r&&void 0!==r?r:"inherit"),this._editor.getContainerDomNode().style.setProperty(l,o.fontFeatureSettings),this._editor.changeViewZones((function(t){var i,r=(0,s.Z)(e._lenses);try{for(r.s();!(i=r.n()).done;){i.value.updateHeight(n,t)}}catch(o){r.e(o)}finally{r.f()}}))}},{key:"_localDispose",value:function(){var e,t,n;null===(e=this._getCodeLensModelPromise)||void 0===e||e.cancel(),this._getCodeLensModelPromise=void 0,null===(t=this._resolveCodeLensesPromise)||void 0===t||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),null===(n=this._currentCodeLensModel)||void 0===n||n.dispose()}},{key:"_onModelChange",value:function(){var e=this;this._localDispose();var t=this._editor.getModel();if(t&&this._editor.getOption(14)){var n=this._codeLensCache.get(t);if(n&&this._renderCodeLensSymbols(n),this._languageFeaturesService.codeLensProvider.has(t)){var i,r=(0,s.Z)(this._languageFeaturesService.codeLensProvider.all(t));try{for(r.s();!(i=r.n()).done;){var o=i.value;if("function"===typeof o.onDidChange){var l=o.onDidChange((function(){return c.schedule()}));this._localToDispose.add(l)}}}catch(u){r.e(u)}finally{r.f()}var c=new d.pY((function(){var n,i=Date.now();null===(n=e._getCodeLensModelPromise)||void 0===n||n.cancel(),e._getCodeLensModelPromise=(0,d.PG)((function(n){return T(e._languageFeaturesService.codeLensProvider,t,n)})),e._getCodeLensModelPromise.then((function(n){e._currentCodeLensModel&&e._oldCodeLensModels.add(e._currentCodeLensModel),e._currentCodeLensModel=n,e._codeLensCache.put(t,n);var r=e._provideCodeLensDebounce.update(t,Date.now()-i);c.delay=r,e._renderCodeLensSymbols(n),e._resolveCodeLensesInViewportSoon()}),h.dL)}),this._provideCodeLensDebounce.get(t));this._localToDispose.add(c),this._localToDispose.add((0,p.OF)((function(){return e._resolveCodeLensesScheduler.cancel()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((function(){e._editor.changeDecorations((function(t){e._editor.changeViewZones((function(n){var i=[],r=-1;e._lenses.forEach((function(e){e.isValid()&&r!==e.getLineNumber()?(e.update(n),r=e.getLineNumber()):i.push(e)}));var o=new W;i.forEach((function(t){t.dispose(o,n),e._lenses.splice(e._lenses.indexOf(t),1)})),o.commit(t)}))})),c.schedule()}))),this._localToDispose.add(this._editor.onDidFocusEditorWidget((function(){c.schedule()}))),this._localToDispose.add(this._editor.onDidScrollChange((function(t){t.scrollTopChanged&&e._lenses.length>0&&e._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((function(){e._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add((0,p.OF)((function(){if(e._editor.getModel()){var t=g.Z.capture(e._editor);e._editor.changeDecorations((function(t){e._editor.changeViewZones((function(n){e._disposeAllLenses(t,n)}))})),t.restore(e._editor)}else e._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((function(t){if(9===t.target.type){var n=t.target.element;if("SPAN"===(null===n||void 0===n?void 0:n.tagName)&&(n=n.parentElement),"A"===(null===n||void 0===n?void 0:n.tagName)){var i,r=(0,s.Z)(e._lenses);try{for(r.s();!(i=r.n()).done;){var o=i.value.getCommand(n);if(o){var l;(l=e._commandService).executeCommand.apply(l,[o.id].concat((0,a.Z)(o.arguments||[]))).catch((function(t){return e._notificationService.error(t)}));break}}}catch(u){r.e(u)}finally{r.f()}}}}))),c.schedule()}else n&&this._localToDispose.add((0,d.Vg)((function(){var i=e._codeLensCache.get(t);n===i&&(e._codeLensCache.delete(t),e._onModelChange())}),3e4))}}},{key:"_disposeAllLenses",value:function(e,t){var n,i=new W,r=(0,s.Z)(this._lenses);try{for(r.s();!(n=r.n()).done;){n.value.dispose(i,t)}}catch(o){r.e(o)}finally{r.f()}e&&i.commit(e),this._lenses.length=0}},{key:"_renderCodeLensSymbols",value:function(e){var t=this;if(this._editor.hasModel()){var n,i,r=this._editor.getModel().getLineCount(),o=[],a=(0,s.Z)(e.lenses);try{for(a.s();!(i=a.n()).done;){var l=i.value,c=l.symbol.range.startLineNumber;c<1||c>r||(n&&n[n.length-1].symbol.range.startLineNumber===c?n.push(l):(n=[l],o.push(n)))}}catch(h){a.e(h)}finally{a.f()}var u=g.Z.capture(this._editor),d=this._getLayoutInfo();this._editor.changeDecorations((function(e){t._editor.changeViewZones((function(n){for(var i=new W,r=0,a=0;a<o.length&&r<t._lenses.length;){var s=o[a][0].symbol.range.startLineNumber,l=t._lenses[r].getLineNumber();l<s?(t._lenses[r].dispose(i,n),t._lenses.splice(r,1)):l===s?(t._lenses[r].updateCodeLensSymbols(o[a],i),a++,r++):(t._lenses.splice(r,0,new U(o[a],t._editor,t._styleClassName,i,n,d.codeLensHeight,(function(){return t._resolveCodeLensesInViewportSoon()}))),r++,a++)}for(;r<t._lenses.length;)t._lenses[r].dispose(i,n),t._lenses.splice(r,1);for(;a<o.length;)t._lenses.push(new U(o[a],t._editor,t._styleClassName,i,n,d.codeLensHeight,(function(){return t._resolveCodeLensesInViewportSoon()}))),a++;i.commit(e)}))})),u.restore(this._editor)}}},{key:"_resolveCodeLensesInViewportSoon",value:function(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}},{key:"_resolveCodeLensesInViewport",value:function(){var e,t=this;null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0;var n=this._editor.getModel();if(n){var i=[],r=[];if(this._lenses.forEach((function(e){var t=e.computeIfNecessary(n);t&&(i.push(t),r.push(e))})),0!==i.length){var o=Date.now(),a=(0,d.PG)((function(e){var t=i.map((function(t,i){var o=new Array(t.length),a=t.map((function(t,i){return t.symbol.command||"function"!==typeof t.provider.resolveCodeLens?(o[i]=t.symbol,Promise.resolve(void 0)):Promise.resolve(t.provider.resolveCodeLens(n,t.symbol,e)).then((function(e){o[i]=e}),h.Cp)}));return Promise.all(a).then((function(){e.isCancellationRequested||r[i].isDisposed()||r[i].updateCommands(o)}))}));return Promise.all(t)}));this._resolveCodeLensesPromise=a,this._resolveCodeLensesPromise.then((function(){var e=t._resolveCodeLensesDebounce.update(n,Date.now()-o);t._resolveCodeLensesScheduler.delay=e,t._currentCodeLensModel&&t._codeLensCache.put(n,t._currentCodeLensModel),t._oldCodeLensModels.clear(),a===t._resolveCodeLensesPromise&&(t._resolveCodeLensesPromise=void 0)}),(function(e){(0,h.dL)(e),a===t._resolveCodeLensesPromise&&(t._resolveCodeLensesPromise=void 0)}))}}}},{key:"getModel",value:function(){return this._currentCodeLensModel}}]),e}();J.ID="css.editor.codeLens",J=$([X(1,k.p),X(2,q.A),X(3,w.Hy),X(4,K.lT),X(5,Z)],J),(0,v._K)(J.ID,J),(0,v.Qr)(function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{id:"codelens.showLensesInCurrentLine",precondition:y.u.hasCodeLensProvider,label:(0,G.NC)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}return(0,c.Z)(n,[{key:"run",value:function(e,t){return Q(this,void 0,void 0,(0,i.Z)().mark((function n(){var r,o,l,c,u,d,h,f,p,g,v;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.hasModel()){n.next=2;break}return n.abrupt("return");case 2:if(r=e.get(Y.eJ),o=e.get(w.Hy),l=e.get(K.lT),c=t.getSelection().positionLineNumber,u=t.getContribution(J.ID)){n.next=9;break}return n.abrupt("return");case 9:if(d=u.getModel()){n.next=12;break}return n.abrupt("return");case 12:h=[],f=(0,s.Z)(d.lenses);try{for(f.s();!(p=f.n()).done;)(g=p.value).symbol.command&&g.symbol.range.startLineNumber===c&&h.push({label:g.symbol.command.title,command:g.symbol.command})}catch(i){f.e(i)}finally{f.f()}if(0!==h.length){n.next=17;break}return n.abrupt("return");case 17:return n.next=19,r.pick(h,{canPickMany:!1});case 19:if(v=n.sent){n.next=22;break}return n.abrupt("return");case 22:if(!d.isDisposed){n.next=26;break}return n.next=25,o.executeCommand(this.id);case 25:return n.abrupt("return",n.sent);case 26:return n.prev=26,n.next=29,o.executeCommand.apply(o,[v.command.id].concat((0,a.Z)(v.command.arguments||[])));case 29:n.next=34;break;case 31:n.prev=31,n.t0=n.catch(26),l.error(n.t0);case 34:case"end":return n.stop()}}),n,this,[[26,31]])})))}}]),n}(v.R6))},970:function(e,t,n){"use strict";n.r(t),n.d(t,{ColorContribution:function(){return le}});var i=n(15671),r=n(43144),o=n(11752),a=n(61120),s=n(60136),l=n(27277),c=n(11860),u=n(62381),d=n(80133),h=n(74165),f=n(60022),p=n(62458),g=n(14173),v=n(25),m=n(32377),y=n(46190),_=n(70845),b=n(98971),C=n(53584),S=n(93433),w=n(29439),k=n(37762),x=n(82784),E=n(72112),T=n(29257),N=n(11133);function I(e,t,n){var i=[],r=e.ordered(t).reverse().map((function(e){return Promise.resolve(e.provideDocumentColors(t,n)).then((function(t){if(Array.isArray(t)){var n,r=(0,k.Z)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;i.push({colorInfo:o,provider:e})}}catch(a){r.e(a)}finally{r.f()}}}))}));return Promise.all(r).then((function(){return i}))}function D(e,t,n,i){return Promise.resolve(n.provideColorPresentations(e,t,i))}N.P0.registerCommand("_executeDocumentColorProvider",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=n[0];if(!(r instanceof E.o))throw(0,g.b1)();var o=e.get(C.p),a=o.colorProvider,s=e.get(T.q).getModel(r);if(!s)throw(0,g.b1)();var l=[],c=a.ordered(s).reverse(),u=c.map((function(e){return Promise.resolve(e.provideDocumentColors(s,x.T.None)).then((function(e){if(Array.isArray(e)){var t,n=(0,k.Z)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;l.push({range:i.range,color:[i.color.red,i.color.green,i.color.blue,i.color.alpha]})}}catch(r){n.e(r)}finally{n.f()}}}))}));return Promise.all(u).then((function(){return l}))})),N.P0.registerCommand("_executeColorPresentationProvider",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=n[0],o=n[1],a=o.uri,s=o.range;if(!(a instanceof E.o)||!Array.isArray(r)||4!==r.length||!d.e.isIRange(s))throw(0,g.b1)();var l=(0,w.Z)(r,4),c=l[0],u=l[1],h=l[2],f=l[3],p=e.get(C.p),v=p.colorProvider,m=e.get(T.q).getModel(a);if(!m)throw(0,g.b1)();var y={range:s,color:{red:c,green:u,blue:h,alpha:f}},_=[],b=v.ordered(m).reverse(),k=b.map((function(e){return Promise.resolve(e.provideColorPresentations(m,y,x.T.None)).then((function(e){Array.isArray(e)&&_.push.apply(_,(0,S.Z)(e))}))}));return Promise.all(k).then((function(){return _}))}));var L=n(87984),O=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},R=function(e,t){return function(n,i){t(n,i,e)}},A=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},M=Object.create({}),P=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r,o,a){var s;return(0,i.Z)(this,n),(s=t.call(this))._editor=e,s._configurationService=r,s._languageFeaturesService=o,s._localToDispose=s._register(new c.SL),s._decorationsIds=[],s._colorDatas=new Map,s._colorDecoratorIds=s._editor.createDecorationsCollection(),s._ruleFactory=new y.t7(s._editor),s._colorDecorationClassRefs=s._register(new c.SL),s._debounceInformation=a.for(o.colorProvider,"Document Colors",{min:n.RECOMPUTE_TIME}),s._register(e.onDidChangeModel((function(){s._isEnabled=s.isEnabled(),s.onModelChanged()}))),s._register(e.onDidChangeModelLanguage((function(){return s.onModelChanged()}))),s._register(o.colorProvider.onDidChange((function(){return s.onModelChanged()}))),s._register(e.onDidChangeConfiguration((function(){var e=s._isEnabled;s._isEnabled=s.isEnabled(),e!==s._isEnabled&&(s._isEnabled?s.onModelChanged():s.removeAllDecorations())}))),s._timeoutTimer=null,s._computePromise=null,s._isEnabled=s.isEnabled(),s.onModelChanged(),s}return(0,r.Z)(n,[{key:"isEnabled",value:function(){var e=this._editor.getModel();if(!e)return!1;var t=e.getLanguageId(),n=this._configurationService.getValue(t);if(n&&"object"===typeof n){var i=n.colorDecorators;if(i&&void 0!==i.enable&&!i.enable)return i.enable}return this._editor.getOption(17)}},{key:"dispose",value:function(){this.stop(),this.removeAllDecorations(),(0,o.Z)((0,a.Z)(n.prototype),"dispose",this).call(this)}},{key:"onModelChanged",value:function(){var e=this;if(this.stop(),this._isEnabled){var t=this._editor.getModel();t&&this._languageFeaturesService.colorProvider.has(t)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((function(){e._timeoutTimer||(e._timeoutTimer=new f._F,e._timeoutTimer.cancelAndSet((function(){e._timeoutTimer=null,e.beginCompute()}),e._debounceInformation.get(t)))}))),this.beginCompute())}}},{key:"beginCompute",value:function(){var e=this;this._computePromise=(0,f.PG)((function(t){return A(e,void 0,void 0,(0,h.Z)().mark((function e(){var n,i,r;return(0,h.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this._editor.getModel()){e.next=3;break}return e.abrupt("return",Promise.resolve([]));case 3:return i=new v.G(!1),e.next=6,I(this._languageFeaturesService.colorProvider,n,t);case 6:return r=e.sent,this._debounceInformation.update(n,i.elapsed()),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e,this)})))})),this._computePromise.then((function(t){e.updateDecorations(t),e.updateColorDecorators(t),e._computePromise=null}),g.dL)}},{key:"stop",value:function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}},{key:"updateDecorations",value:function(e){var t=this,n=e.map((function(e){return{range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:_.qx.EMPTY}}));this._editor.changeDecorations((function(i){t._decorationsIds=i.deltaDecorations(t._decorationsIds,n),t._colorDatas=new Map,t._decorationsIds.forEach((function(n,i){return t._colorDatas.set(n,e[i])}))}))}},{key:"updateColorDecorators",value:function(e){this._colorDecorationClassRefs.clear();for(var t=[],n=0;n<e.length&&t.length<500;n++){var i=e[n].colorInfo.color,r=i.red,o=i.green,a=i.blue,s=i.alpha,l=new p.VS(Math.round(255*r),Math.round(255*o),Math.round(255*a),s),c="rgba(".concat(l.r,", ").concat(l.g,", ").concat(l.b,", ").concat(l.a,")"),u=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:c}));t.push({range:{startLineNumber:e[n].colorInfo.range.startLineNumber,startColumn:e[n].colorInfo.range.startColumn,endLineNumber:e[n].colorInfo.range.endLineNumber,endColumn:e[n].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:m.B4,inlineClassName:"".concat(u.className," colorpicker-color-decoration"),inlineClassNameAffectsLetterSpacing:!0,attachedData:M}}})}this._colorDecoratorIds.set(t)}},{key:"removeAllDecorations",value:function(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}},{key:"getColorData",value:function(e){var t=this,n=this._editor.getModel();if(!n)return null;var i=n.getDecorationsInRange(d.e.fromPositions(e,e)).filter((function(e){return t._colorDatas.has(e.id)}));return 0===i.length?null:this._colorDatas.get(i[0].id)}},{key:"isColorDecoration",value:function(e){return this._colorDecoratorIds.has(e)}}],[{key:"get",value:function(e){return e.getContribution(this.ID)}}]),n}(c.JT);P.ID="editor.contrib.colorDetector",P.RECOMPUTE_TIME=1e3,P=O([R(1,L.Ui),R(2,C.p),R(3,b.A)],P),(0,u._K)(P.ID,P);var Z=n(73097),F=function(){function e(t,n,r){(0,i.Z)(this,e),this.presentationIndex=r,this._onColorFlushed=new Z.Q5,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new Z.Q5,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new Z.Q5,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=t,this._color=t,this._colorPresentations=n}return(0,r.Z)(e,[{key:"color",get:function(){return this._color},set:function(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}},{key:"presentation",get:function(){return this.colorPresentations[this.presentationIndex]}},{key:"colorPresentations",get:function(){return this._colorPresentations},set:function(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}},{key:"selectNextColorPresentation",value:function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}},{key:"guessColorPresentation",value:function(e,t){for(var n=0;n<this.colorPresentations.length;n++)if(t.toLowerCase()===this.colorPresentations[n].label){this.presentationIndex=n,this._onDidChangePresentation.fire(this.presentation);break}}},{key:"flushColor",value:function(){this._onColorFlushed.fire(this._color)}}]),e}(),B=n(97326),H=n(62865),z=n(81531),j=n(1082),V=n(70176),W=n(27722),U=n(32379),G=n(64014),K=z.$,Y=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r,o){var a;(0,i.Z)(this,n),(a=t.call(this)).model=r,a.domNode=K(".colorpicker-header"),z.append(e,a.domNode),a.pickedColorNode=z.append(a.domNode,K(".picked-color"));var s=(0,W.NC)("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");a.pickedColorNode.setAttribute("title",s);var l=z.append(a.domNode,K(".original-color"));return l.style.backgroundColor=p.Il.Format.CSS.format(a.model.originalColor)||"",a.backgroundColor=o.getColorTheme().getColor(U.yJx)||p.Il.white,a._register((0,G.Ic)((function(e,t){a.backgroundColor=e.getColor(U.yJx)||p.Il.white}))),a._register(z.addDisposableListener(a.pickedColorNode,z.EventType.CLICK,(function(){return a.model.selectNextColorPresentation()}))),a._register(z.addDisposableListener(l,z.EventType.CLICK,(function(){a.model.color=a.model.originalColor,a.model.flushColor()}))),a._register(r.onDidChangeColor(a.onDidChangeColor,(0,B.Z)(a))),a._register(r.onDidChangePresentation(a.onDidChangePresentation,(0,B.Z)(a))),a.pickedColorNode.style.backgroundColor=p.Il.Format.CSS.format(r.color)||"",a.pickedColorNode.classList.toggle("light",r.color.rgba.a<.5?a.backgroundColor.isLighter():r.color.isLighter()),a.onDidChangeColor(a.model.color),a}return(0,r.Z)(n,[{key:"onDidChangeColor",value:function(e){this.pickedColorNode.style.backgroundColor=p.Il.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}},{key:"onDidChangePresentation",value:function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(K(".codicon.codicon-color-mode"))}}]),n}(c.JT),q=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r,o){var a;return(0,i.Z)(this,n),(a=t.call(this)).model=r,a.pixelRatio=o,a.domNode=K(".colorpicker-body"),z.append(e,a.domNode),a.saturationBox=new $(a.domNode,a.model,a.pixelRatio),a._register(a.saturationBox),a._register(a.saturationBox.onDidChange(a.onDidSaturationValueChange,(0,B.Z)(a))),a._register(a.saturationBox.onColorFlushed(a.flushColor,(0,B.Z)(a))),a.opacityStrip=new Q(a.domNode,a.model),a._register(a.opacityStrip),a._register(a.opacityStrip.onDidChange(a.onDidOpacityChange,(0,B.Z)(a))),a._register(a.opacityStrip.onColorFlushed(a.flushColor,(0,B.Z)(a))),a.hueStrip=new J(a.domNode,a.model),a._register(a.hueStrip),a._register(a.hueStrip.onDidChange(a.onDidHueChange,(0,B.Z)(a))),a._register(a.hueStrip.onColorFlushed(a.flushColor,(0,B.Z)(a))),a}return(0,r.Z)(n,[{key:"flushColor",value:function(){this.model.flushColor()}},{key:"onDidSaturationValueChange",value:function(e){var t=e.s,n=e.v,i=this.model.color.hsva;this.model.color=new p.Il(new p.tx(i.h,t,n,i.a))}},{key:"onDidOpacityChange",value:function(e){var t=this.model.color.hsva;this.model.color=new p.Il(new p.tx(t.h,t.s,t.v,e))}},{key:"onDidHueChange",value:function(e){var t=this.model.color.hsva,n=360*(1-e);this.model.color=new p.Il(new p.tx(360===n?0:n,t.s,t.v,t.a))}},{key:"layout",value:function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}]),n}(c.JT),$=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r,o){var a;return(0,i.Z)(this,n),(a=t.call(this)).model=r,a.pixelRatio=o,a._onDidChange=new Z.Q5,a.onDidChange=a._onDidChange.event,a._onColorFlushed=new Z.Q5,a.onColorFlushed=a._onColorFlushed.event,a.domNode=K(".saturation-wrap"),z.append(e,a.domNode),a.canvas=document.createElement("canvas"),a.canvas.className="saturation-box",z.append(a.domNode,a.canvas),a.selection=K(".saturation-selection"),z.append(a.domNode,a.selection),a.layout(),a._register(z.addDisposableListener(a.domNode,z.EventType.POINTER_DOWN,(function(e){return a.onPointerDown(e)}))),a._register(a.model.onDidChangeColor(a.onDidChangeColor,(0,B.Z)(a))),a.monitor=null,a}return(0,r.Z)(n,[{key:"onPointerDown",value:function(e){var t=this;if(e.target&&e.target instanceof Element){this.monitor=this._register(new j.C);var n=z.getDomNodePagePosition(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,(function(e){return t.onDidChangePosition(e.pageX-n.left,e.pageY-n.top)}),(function(){return null}));var i=z.addDisposableListener(document,z.EventType.POINTER_UP,(function(){t._onColorFlushed.fire(),i.dispose(),t.monitor&&(t.monitor.stopMonitoring(!0),t.monitor=null)}),!0)}}},{key:"onDidChangePosition",value:function(e,t){var n=Math.max(0,Math.min(1,e/this.width)),i=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,i),this._onDidChange.fire({s:n,v:i})}},{key:"layout",value:function(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();var e=this.model.color.hsva;this.paintSelection(e.s,e.v)}},{key:"paint",value:function(){var e=this.model.color.hsva,t=new p.Il(new p.tx(e.h,1,1,1)),n=this.canvas.getContext("2d"),i=n.createLinearGradient(0,0,this.canvas.width,0);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)");var r=n.createLinearGradient(0,0,0,this.canvas.height);r.addColorStop(0,"rgba(0, 0, 0, 0)"),r.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this.canvas.width,this.canvas.height),n.fillStyle=p.Il.Format.CSS.format(t),n.fill(),n.fillStyle=i,n.fill(),n.fillStyle=r,n.fill()}},{key:"paintSelection",value:function(e,t){this.selection.style.left="".concat(e*this.width,"px"),this.selection.style.top="".concat(this.height-t*this.height,"px")}},{key:"onDidChangeColor",value:function(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}]),n}(c.JT),X=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var o;return(0,i.Z)(this,n),(o=t.call(this)).model=r,o._onDidChange=new Z.Q5,o.onDidChange=o._onDidChange.event,o._onColorFlushed=new Z.Q5,o.onColorFlushed=o._onColorFlushed.event,o.domNode=z.append(e,K(".strip")),o.overlay=z.append(o.domNode,K(".overlay")),o.slider=z.append(o.domNode,K(".slider")),o.slider.style.top="0px",o._register(z.addDisposableListener(o.domNode,z.EventType.POINTER_DOWN,(function(e){return o.onPointerDown(e)}))),o.layout(),o}return(0,r.Z)(n,[{key:"layout",value:function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var e=this.getValue(this.model.color);this.updateSliderPosition(e)}},{key:"onPointerDown",value:function(e){var t=this;if(e.target&&e.target instanceof Element){var n=this._register(new j.C),i=z.getDomNodePagePosition(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),n.startMonitoring(e.target,e.pointerId,e.buttons,(function(e){return t.onDidChangeTop(e.pageY-i.top)}),(function(){return null}));var r=z.addDisposableListener(document,z.EventType.POINTER_UP,(function(){t._onColorFlushed.fire(),r.dispose(),n.stopMonitoring(!0),t.domNode.classList.remove("grabbing")}),!0)}}},{key:"onDidChangeTop",value:function(e){var t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}},{key:"updateSliderPosition",value:function(e){this.slider.style.top="".concat((1-e)*this.height,"px")}}]),n}(c.JT),Q=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var o;return(0,i.Z)(this,n),(o=t.call(this,e,r)).domNode.classList.add("opacity-strip"),o._register(r.onDidChangeColor(o.onDidChangeColor,(0,B.Z)(o))),o.onDidChangeColor(o.model.color),o}return(0,r.Z)(n,[{key:"onDidChangeColor",value:function(e){var t=e.rgba,n=t.r,i=t.g,r=t.b,o=new p.Il(new p.VS(n,i,r,1)),a=new p.Il(new p.VS(n,i,r,0));this.overlay.style.background="linear-gradient(to bottom, ".concat(o," 0%, ").concat(a," 100%)")}},{key:"getValue",value:function(e){return e.hsva.a}}]),n}(X),J=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var o;return(0,i.Z)(this,n),(o=t.call(this,e,r)).domNode.classList.add("hue-strip"),o}return(0,r.Z)(n,[{key:"getValue",value:function(e){return 1-e.hsva.h/360}}]),n}(X),ee=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r,o,a){var s;(0,i.Z)(this,n),(s=t.call(this)).model=r,s.pixelRatio=o,s._register(H.PixelRatio.onDidChange((function(){return s.layout()})));var l=K(".colorpicker-widget");e.appendChild(l);var c=new Y(l,s.model,a);return s.body=new q(l,s.model,s.pixelRatio),s._register(c),s._register(s.body),s}return(0,r.Z)(n,[{key:"layout",value:function(){this.body.layout()}}]),n}(V.$),te=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ne=function(e,t){return function(n,i){t(n,i,e)}},ie=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},re=function(){function e(t,n,r,o){(0,i.Z)(this,e),this.owner=t,this.range=n,this.model=r,this.provider=o,this.forceShowAtRange=!0}return(0,r.Z)(e,[{key:"isValidForHoverAnchor",value:function(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}]),e}(),oe=function(){function e(t,n){(0,i.Z)(this,e),this._editor=t,this._themeService=n,this.hoverOrdinal=1}return(0,r.Z)(e,[{key:"computeSync",value:function(e,t){return[]}},{key:"computeAsync",value:function(e,t,n){return f.Aq.fromPromise(this._computeAsync(e,t,n))}},{key:"_computeAsync",value:function(e,t,n){return ie(this,void 0,void 0,(0,h.Z)().mark((function e(){var n,i,r,o,a,s;return(0,h.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._editor.hasModel()){e.next=2;break}return e.abrupt("return",[]);case 2:if(n=P.get(this._editor)){e.next=5;break}return e.abrupt("return",[]);case 5:i=(0,k.Z)(t),e.prev=6,i.s();case 8:if((r=i.n()).done){e.next=20;break}if(o=r.value,n.isColorDecoration(o)){e.next=12;break}return e.abrupt("continue",18);case 12:if(!(a=n.getColorData(o.range.getStartPosition()))){e.next=18;break}return e.next=16,this._createColorHover(this._editor.getModel(),a.colorInfo,a.provider);case 16:return s=e.sent,e.abrupt("return",[s]);case 18:e.next=8;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(6),i.e(e.t0);case 25:return e.prev=25,i.f(),e.finish(25);case 28:return e.abrupt("return",[]);case 29:case"end":return e.stop()}}),e,this,[[6,22,25,28]])})))}},{key:"_createColorHover",value:function(e,t,n){return ie(this,void 0,void 0,(0,h.Z)().mark((function i(){var r,o,a,s,l,c,u,f,g,v;return(0,h.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=e.getValueInRange(t.range),o=t.color,a=o.red,s=o.green,l=o.blue,c=o.alpha,u=new p.VS(Math.round(255*a),Math.round(255*s),Math.round(255*l),c),f=new p.Il(u),i.next=6,D(e,t,n,x.T.None);case 6:return g=i.sent,(v=new F(f,[],0)).colorPresentations=g||[],v.guessColorPresentation(f,r),i.abrupt("return",new re(this,d.e.lift(t.range),v,n));case 11:case"end":return i.stop()}}),i,this)})))}},{key:"renderHoverParts",value:function(e,t){var n=this;if(0===t.length||!this._editor.hasModel())return c.JT.None;var i=new c.SL,r=t[0],o=this._editor.getModel(),a=r.model,s=i.add(new ee(e.fragment,a,this._editor.getOption(131),this._themeService));e.setColorPicker(s);var l=new d.e(r.range.startLineNumber,r.range.startColumn,r.range.endLineNumber,r.range.endColumn),u=function(){var t,i;if(a.presentation.textEdit){t=[a.presentation.textEdit],i=new d.e(a.presentation.textEdit.range.startLineNumber,a.presentation.textEdit.range.startColumn,a.presentation.textEdit.range.endLineNumber,a.presentation.textEdit.range.endColumn);var r=n._editor.getModel()._setTrackedRange(null,i,3);n._editor.pushUndoStop(),n._editor.executeEdits("colorpicker",t),i=n._editor.getModel()._getTrackedRange(r)||i}else t=[{range:l,text:a.presentation.label,forceMoveMarkers:!1}],i=l.setEndPosition(l.endLineNumber,l.startColumn+a.presentation.label.length),n._editor.pushUndoStop(),n._editor.executeEdits("colorpicker",t);a.presentation.additionalTextEdits&&(t=(0,S.Z)(a.presentation.additionalTextEdits),n._editor.executeEdits("colorpicker",t),e.hide()),n._editor.pushUndoStop(),l=i},h=function(e){return D(o,{range:l,color:{red:e.rgba.r/255,green:e.rgba.g/255,blue:e.rgba.b/255,alpha:e.rgba.a}},r.provider,x.T.None).then((function(e){a.colorPresentations=e||[]}))};return i.add(a.onColorFlushed((function(e){h(e).then(u)}))),i.add(a.onDidChangeColor(h)),i}}]),e}();oe=te([ne(1,G.XE)],oe);var ae=n(80613),se=n(47854),le=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this))._editor=e,r._register(e.onMouseDown((function(e){return r.onMouseDown(e)}))),r}return(0,r.Z)(n,[{key:"dispose",value:function(){(0,o.Z)((0,a.Z)(n.prototype),"dispose",this).call(this)}},{key:"onMouseDown",value:function(e){var t=e.target;if(6===t.type&&t.detail.injectedText&&t.detail.injectedText.options.attachedData===M&&t.range){var n=this._editor.getContribution(ae.ModesHoverController.ID);if(n&&!n.isColorPickerVisible()){var i=new d.e(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);n.showContentHover(i,1,!1)}}}}]),n}(c.JT);le.ID="editor.contrib.colorContribution",(0,u._K)(le.ID,le),se.Ae.register(oe)},6893:function(e,t,n){"use strict";n.r(t);var i=n(37762),r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(16321),c=n(62381),u=n(80133),d=n(67245),h=n(29662),f=n(3055),p=n(38622),g=n(23145),v=function(){function e(t,n,i){(0,r.Z)(this,e),this.languageConfigurationService=i,this._selection=t,this._insertSpace=n,this._usedEndToken=null}return(0,o.Z)(e,[{key:"_createOperationsForBlockComment",value:function(t,n,r,o,a,s){var l,c=t.startLineNumber,d=t.startColumn,h=t.endLineNumber,f=t.endColumn,p=a.getLineContent(c),g=a.getLineContent(h),v=p.lastIndexOf(n,d-1+n.length),m=g.indexOf(r,f-1-r.length);if(-1!==v&&-1!==m)if(c===h){p.substring(v+n.length,m).indexOf(r)>=0&&(v=-1,m=-1)}else{var y=p.substring(v+n.length),_=g.substring(0,m);(y.indexOf(r)>=0||_.indexOf(r)>=0)&&(v=-1,m=-1)}-1!==v&&-1!==m?(o&&v+n.length<p.length&&32===p.charCodeAt(v+n.length)&&(n+=" "),o&&m>0&&32===g.charCodeAt(m-1)&&(r=" "+r,m-=1),l=e._createRemoveBlockCommentOperations(new u.e(c,v+n.length+1,h,m+1),n,r)):(l=e._createAddBlockCommentOperations(t,n,r,this._insertSpace),this._usedEndToken=1===l.length?r:null);var b,C=(0,i.Z)(l);try{for(C.s();!(b=C.n()).done;){var S=b.value;s.addTrackedEditOperation(S.range,S.text)}}catch(w){C.e(w)}finally{C.f()}}},{key:"getEditOperations",value:function(e,t){var n=this._selection.startLineNumber,i=this._selection.startColumn;e.tokenization.tokenizeIfCheap(n);var r=e.getLanguageIdAtPosition(n,i),o=this.languageConfigurationService.getLanguageConfiguration(r).comments;o&&o.blockCommentStartToken&&o.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,o.blockCommentStartToken,o.blockCommentEndToken,this._insertSpace,e,t)}},{key:"computeCursorState",value:function(e,t){var n=t.getInverseEditOperations();if(2===n.length){var i=n[0],r=n[1];return new g.Y(i.range.endLineNumber,i.range.endColumn,r.range.startLineNumber,r.range.startColumn)}var o=n[0].range,a=this._usedEndToken?-this._usedEndToken.length-1:0;return new g.Y(o.endLineNumber,o.endColumn+a,o.endLineNumber,o.endColumn+a)}}],[{key:"_haystackHasNeedleAtOffset",value:function(e,t,n){if(n<0)return!1;var i=t.length;if(n+i>e.length)return!1;for(var r=0;r<i;r++){var o=e.charCodeAt(n+r),a=t.charCodeAt(r);if(o!==a&&(!(o>=65&&o<=90&&o+32===a)&&!(a>=65&&a<=90&&a+32===o)))return!1}return!0}},{key:"_createRemoveBlockCommentOperations",value:function(e,t,n){var i=[];return u.e.isEmpty(e)?i.push(f.h.delete(new u.e(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(i.push(f.h.delete(new u.e(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),i.push(f.h.delete(new u.e(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),i}},{key:"_createAddBlockCommentOperations",value:function(e,t,n,i){var r=[];return u.e.isEmpty(e)?r.push(f.h.replace(new u.e(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(r.push(f.h.insert(new p.L(e.startLineNumber,e.startColumn),t+(i?" ":""))),r.push(f.h.insert(new p.L(e.endLineNumber,e.endColumn),(i?" ":"")+n))),r}}]),e}(),m=n(32377),y=function(){function e(t,n,i,o,a,s,l){(0,r.Z)(this,e),this.languageConfigurationService=t,this._selection=n,this._tabSize=i,this._type=o,this._insertSpace=a,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=s,this._ignoreFirstLine=l||!1}return(0,o.Z)(e,[{key:"_executeLineComments",value:function(t,n,i,r){var o;i.shouldRemoveComments?o=e._createRemoveLineCommentsOperations(i.lines,r.startLineNumber):(e._normalizeInsertionPoint(t,i.lines,r.startLineNumber,this._tabSize),o=this._createAddLineCommentsOperations(i.lines,r.startLineNumber));for(var a=new p.L(r.positionLineNumber,r.positionColumn),s=0,l=o.length;s<l;s++){if(n.addEditOperation(o[s].range,o[s].text),u.e.isEmpty(o[s].range)&&u.e.getStartPosition(o[s].range).equals(a))t.getLineContent(a.lineNumber).length+1===a.column&&(this._deltaColumn=(o[s].text||"").length)}this._selectionId=n.trackSelection(r)}},{key:"_attemptRemoveBlockComment",value:function(e,t,n,i){var r=t.startLineNumber,o=t.endLineNumber,a=i.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn),s=e.getLineContent(r).lastIndexOf(n,a-1),l=e.getLineContent(o).indexOf(i,t.endColumn-1-n.length);return-1!==s&&-1===l&&(l=e.getLineContent(r).indexOf(i,s+n.length),o=r),-1===s&&-1!==l&&(s=e.getLineContent(o).lastIndexOf(n,l),r=o),!t.isEmpty()||-1!==s&&-1!==l||-1!==(s=e.getLineContent(r).indexOf(n))&&(l=e.getLineContent(r).indexOf(i,s+n.length)),-1!==s&&32===e.getLineContent(r).charCodeAt(s+n.length)&&(n+=" "),-1!==l&&32===e.getLineContent(o).charCodeAt(l-1)&&(i=" "+i,l-=1),-1!==s&&-1!==l?v._createRemoveBlockCommentOperations(new u.e(r,s+n.length+1,o,l+1),n,i):null}},{key:"_executeBlockComment",value:function(e,t,n){e.tokenization.tokenizeIfCheap(n.startLineNumber);var r=e.getLanguageIdAtPosition(n.startLineNumber,1),o=this.languageConfigurationService.getLanguageConfiguration(r).comments;if(o&&o.blockCommentStartToken&&o.blockCommentEndToken){var a=o.blockCommentStartToken,s=o.blockCommentEndToken,l=this._attemptRemoveBlockComment(e,n,a,s);if(!l){if(n.isEmpty()){var c=e.getLineContent(n.startLineNumber),d=m.LC(c);-1===d&&(d=c.length),l=v._createAddBlockCommentOperations(new u.e(n.startLineNumber,d+1,n.startLineNumber,c.length+1),a,s,this._insertSpace)}else l=v._createAddBlockCommentOperations(new u.e(n.startLineNumber,e.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),a,s,this._insertSpace);1===l.length&&(this._deltaColumn=a.length+1)}this._selectionId=t.trackSelection(n);var h,f=(0,i.Z)(l);try{for(f.s();!(h=f.n()).done;){var p=h.value;t.addEditOperation(p.range,p.text)}}catch(g){f.e(g)}finally{f.f()}}}},{key:"getEditOperations",value:function(t,n){var i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine)return n.addEditOperation(new u.e(i.startLineNumber,t.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===t.getLineCount()?"":"\n"),void(this._selectionId=n.trackSelection(i));i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,t.getLineMaxColumn(i.endLineNumber-1)));var r=e._gatherPreflightData(this._type,this._insertSpace,t,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return r.supported?this._executeLineComments(t,n,r,i):this._executeBlockComment(t,n,i)}},{key:"computeCursorState",value:function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),new g.Y(n.selectionStartLineNumber,n.selectionStartColumn+this._deltaColumn,n.positionLineNumber,n.positionColumn+this._deltaColumn)}},{key:"_createAddLineCommentsOperations",value:function(e,t){for(var n=[],i=this._insertSpace?" ":"",r=0,o=e.length;r<o;r++){var a=e[r];a.ignore||n.push(f.h.insert(new p.L(t+r,a.commentStrOffset+1),a.commentStr+i))}return n}}],[{key:"_gatherPreflightCommentStrings",value:function(e,t,n,i){e.tokenization.tokenizeIfCheap(t);var r=e.getLanguageIdAtPosition(t,1),o=i.getLanguageConfiguration(r).comments,a=o?o.lineCommentToken:null;if(!a)return null;for(var s=[],l=0,c=n-t+1;l<c;l++)s[l]={ignore:!1,commentStr:a,commentStrOffset:0,commentStrLength:a.length};return s}},{key:"_analyzeLines",value:function(e,t,n,i,r,o,a,s){var l,c=!0;l=0===e||1!==e;for(var u=0,d=i.length;u<d;u++){var h=i[u],f=r+u;if(f===r&&a)h.ignore=!0;else{var p=n.getLineContent(f),g=m.LC(p);if(-1!==g){if(c=!1,h.ignore=!1,h.commentStrOffset=g,l&&!v._haystackHasNeedleAtOffset(p,h.commentStr,g)&&(0===e?l=!1:1===e||(h.ignore=!0)),l&&t){var y=g+h.commentStrLength;y<p.length&&32===p.charCodeAt(y)&&(h.commentStrLength+=1)}}else h.ignore=o,h.commentStrOffset=p.length}}if(0===e&&c){l=!1;for(var _=0,b=i.length;_<b;_++)i[_].ignore=!1}return{supported:!0,shouldRemoveComments:l,lines:i}}},{key:"_gatherPreflightData",value:function(t,n,i,r,o,a,s,l){var c=e._gatherPreflightCommentStrings(i,r,o,l);return null===c?{supported:!1}:e._analyzeLines(t,n,i,c,r,a,s,l)}},{key:"_createRemoveLineCommentsOperations",value:function(e,t){for(var n=[],i=0,r=e.length;i<r;i++){var o=e[i];o.ignore||n.push(f.h.delete(new u.e(t+i,o.commentStrOffset+1,t+i,o.commentStrOffset+o.commentStrLength+1)))}return n}},{key:"nextVisibleColumn",value:function(e,t,n,i){return n?e+(t-e%t):e+i}},{key:"_normalizeInsertionPoint",value:function(t,n,i,r){for(var o,a,s=1073741824,l=0,c=n.length;l<c;l++)if(!n[l].ignore){for(var u=t.getLineContent(i+l),d=0,h=0,f=n[l].commentStrOffset;d<s&&h<f;h++)d=e.nextVisibleColumn(d,r,9===u.charCodeAt(h),1);d<s&&(s=d)}s=Math.floor(s/r)*r;for(var p=0,g=n.length;p<g;p++)if(!n[p].ignore){var v=t.getLineContent(i+p),m=0;for(o=0,a=n[p].commentStrOffset;m<s&&o<a;o++)m=e.nextVisibleColumn(m,r,9===v.charCodeAt(o),1);n[p].commentStrOffset=m>s?o-1:o}}}]),e}(),_=n(27722),b=n(48996),C=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,i))._type=e,o}return(0,o.Z)(n,[{key:"run",value:function(e,t){var n=e.get(h.c_);if(t.hasModel()){var r=[],o=t.getModel().getOptions(),a=t.getOption(19),s=t.getSelections().map((function(e,t){return{selection:e,index:t,ignoreFirstLine:!1}}));s.sort((function(e,t){return u.e.compareRangesUsingStarts(e.selection,t.selection)}));for(var l=s[0],c=1;c<s.length;c++){var d=s[c];l.selection.endLineNumber===d.selection.startLineNumber&&(l.index<d.index?d.ignoreFirstLine=!0:(l.ignoreFirstLine=!0,l=d))}var f,p=(0,i.Z)(s);try{for(p.s();!(f=p.n()).done;){var g=f.value;r.push(new y(n,g.selection,o.tabSize,this._type,a.insertSpace,a.ignoreEmptyLines,g.ignoreFirstLine))}}catch(v){p.e(v)}finally{p.f()}t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}}]),n}(c.R6),S=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,0,{id:"editor.action.commentLine",label:_.NC("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:d.u.writable,kbOpts:{kbExpr:d.u.editorTextFocus,primary:2133,weight:100},menuOpts:{menuId:b.eH.MenubarEditMenu,group:"5_insert",title:_.NC({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}return(0,o.Z)(n)}(C),w=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,1,{id:"editor.action.addCommentLine",label:_.NC("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:d.u.writable,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,l.gx)(2089,2081),weight:100}})}return(0,o.Z)(n)}(C),k=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,2,{id:"editor.action.removeCommentLine",label:_.NC("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:d.u.writable,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,l.gx)(2089,2099),weight:100}})}return(0,o.Z)(n)}(C),x=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.blockComment",label:_.NC("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:d.u.writable,kbOpts:{kbExpr:d.u.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:b.eH.MenubarEditMenu,group:"5_insert",title:_.NC({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}return(0,o.Z)(n,[{key:"run",value:function(e,t){var n=e.get(h.c_);if(t.hasModel()){var r,o=t.getOption(19),a=[],s=t.getSelections(),l=(0,i.Z)(s);try{for(l.s();!(r=l.n()).done;){var c=r.value;a.push(new v(c,o.insertSpace,n))}}catch(u){l.e(u)}finally{l.f()}t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}}}]),n}(c.R6);(0,c.Qr)(S),(0,c.Qr)(w),(0,c.Qr)(k),(0,c.Qr)(x)},55693:function(e,t,n){"use strict";n.r(t),n.d(t,{ContextMenuController:function(){return k}});var i=n(60136),r=n(27277),o=n(29439),a=n(37762),s=n(15671),l=n(43144),c=n(81531),u=n(82290),d=n(18247),h=n(11860),f=n(73616),p=n(62381),g=n(67245),v=n(27722),m=n(48996),y=n(34509),_=n(22468),b=n(47569),C=n(87984),S=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},w=function(e,t){return function(n,i){t(n,i,e)}},k=function(){function e(t,n,i,r,o,a,l){var u=this;(0,s.Z)(this,e),this._contextMenuService=n,this._contextViewService=i,this._contextKeyService=r,this._keybindingService=o,this._menuService=a,this._configurationService=l,this._toDispose=new h.SL,this._contextMenuIsBeingShownCount=0,this._editor=t,this._toDispose.add(this._editor.onContextMenu((function(e){return u._onContextMenu(e)}))),this._toDispose.add(this._editor.onMouseWheel((function(e){if(u._contextMenuIsBeingShownCount>0){var t=u._contextViewService.getContextViewElement(),n=e.srcElement;n.shadowRoot&&c.getShadowRoot(t)===n.shadowRoot||u._contextViewService.hideContextView()}}))),this._toDispose.add(this._editor.onKeyDown((function(e){u._editor.getOption(20)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),u.showContextMenu())})))}return(0,l.Z)(e,[{key:"_onContextMenu",value:function(e){if(this._editor.hasModel()){if(!this._editor.getOption(20))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12!==e.target.type&&(6!==e.target.type||!e.target.detail.injectedText)){if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu({x:e.event.posx-1,width:2,y:e.event.posy-1,height:2});if(6===e.target.type||7===e.target.type||1===e.target.type){if(this._editor.focus(),e.target.position){var t,n=!1,i=(0,a.Z)(this._editor.getSelections());try{for(i.s();!(t=i.n()).done;){if(t.value.containsPosition(e.target.position)){n=!0;break}}}catch(o){i.e(o)}finally{i.f()}n||this._editor.setPosition(e.target.position)}var r=null;1!==e.target.type&&(r={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(r)}}}}},{key:"showContextMenu",value:function(e){if(this._editor.getOption(20)&&this._editor.hasModel()){var t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?m.eH.SimpleEditorContext:m.eH.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}}},{key:"_getMenuActions",value:function(e,t){var n=[],i=this._menuService.createMenu(t,this._contextKeyService),r=i.getActions({arg:e.uri});i.dispose();var s,l=(0,a.Z)(r);try{for(l.s();!(s=l.n()).done;){var c,u=s.value,h=(0,o.Z)(u,2)[1],f=0,p=(0,a.Z)(h);try{for(p.s();!(c=p.n()).done;){var g=c.value;if(g instanceof m.NZ){var v=this._getMenuActions(e,g.item.submenu);v.length>0&&(n.push(new d.wY(g.id,g.label,v)),f++)}else n.push(g),f++}}catch(y){p.e(y)}finally{p.f()}f&&n.push(new d.Z0)}}catch(y){l.e(y)}finally{l.f()}return n.length&&n.pop(),n}},{key:"_doShowContextMenu",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this._editor.hasModel()){var i=this._editor.getOption(55);if(this._editor.updateOptions({hover:{enabled:!1}}),!n){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();var r=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),o=c.getDomNodePagePosition(this._editor.getDomNode()),a=o.left+r.left,s=o.top+r.top+r.height;n={x:a,y:s}}var l=this._editor.getOption(117)&&!f.gn;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:function(){return n},getActions:function(){return e},getActionViewItem:function(e){var n=t._keybindingFor(e);if(n)return new u.g(e,e,{label:!0,keybinding:n.getLabel(),isMenu:!0});var i=e;return"function"===typeof i.getActionViewItem?i.getActionViewItem():new u.g(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:function(e){return t._keybindingFor(e)},onHide:function(e){t._contextMenuIsBeingShownCount--,t._editor.focus(),t._editor.updateOptions({hover:i})}})}}},{key:"_showScrollbarContextMenu",value:function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getOption(67),i=0,r=function(e){return{id:"menu-action-".concat(++i),label:e.label,tooltip:"",class:void 0,enabled:"undefined"===typeof e.enabled||e.enabled,checked:e.checked,run:e.run,dispose:function(){return null}}},o=function(e,n,o,s,l){if(!n)return r({label:e,enabled:n,run:function(){}});var c,u=function(e){return function(){t._configurationService.updateValue(o,e)}},h=[],f=(0,a.Z)(l);try{for(f.s();!(c=f.n()).done;){var p=c.value;h.push(r({label:p.label,checked:s===p.value,run:u(p.value)}))}}catch(g){f.e(g)}finally{f.f()}return function(e,t){return new d.wY("menu-action-".concat(++i),e,t,void 0)}(e,h)},s=[];s.push(r({label:v.NC("context.minimap.minimap","Minimap"),checked:n.enabled,run:function(){t._configurationService.updateValue("editor.minimap.enabled",!n.enabled)}})),s.push(new d.Z0),s.push(r({label:v.NC("context.minimap.renderCharacters","Render Characters"),enabled:n.enabled,checked:n.renderCharacters,run:function(){t._configurationService.updateValue("editor.minimap.renderCharacters",!n.renderCharacters)}})),s.push(o(v.NC("context.minimap.size","Vertical size"),n.enabled,"editor.minimap.size",n.size,[{label:v.NC("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:v.NC("context.minimap.size.fill","Fill"),value:"fill"},{label:v.NC("context.minimap.size.fit","Fit"),value:"fit"}])),s.push(o(v.NC("context.minimap.slider","Slider"),n.enabled,"editor.minimap.showSlider",n.showSlider,[{label:v.NC("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:v.NC("context.minimap.slider.always","Always"),value:"always"}]));var l=this._editor.getOption(117)&&!f.gn;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:function(){return e},getActions:function(){return s},onHide:function(e){t._contextMenuIsBeingShownCount--,t._editor.focus()}})}}},{key:"_keybindingFor",value:function(e){return this._keybindingService.lookupKeybinding(e.id)}},{key:"dispose",value:function(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}}],[{key:"get",value:function(t){return t.getContribution(e.ID)}}]),e}();k.ID="editor.contrib.contextmenu",k=S([w(1,_.i),w(2,_.u),w(3,y.i6),w(4,b.d),w(5,m.co),w(6,C.Ui)],k);var x=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"editor.action.showContextMenu",label:v.NC("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:g.u.textInputFocus,primary:1092,weight:100}})}return(0,l.Z)(n,[{key:"run",value:function(e,t){var n;null===(n=k.get(t))||void 0===n||n.showContextMenu()}}]),n}(p.R6);(0,p._K)(k.ID,k),(0,p.Qr)(x)},15389:function(e,t,n){"use strict";n.r(t);var i=n(62381),r=n(35243),o=n(74165),a=n(37762),s=n(93433),l=n(15671),c=n(43144),u=n(60136),d=n(27277),h=n(94021),f=n(81531),p=n(60022),g=n(70456),v=n(11860),m=n(62684),y=n(21671),_=n(78788),b=n(23),C=n(80133),S=n(53584),w=n(68132),k=n(44152),x=n(54488),E=n(1255),T=n(87984),N=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},I=function(e,t){return function(n,i){t(n,i,e)}},D=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},L="application/vnd.code.copyMetadata",O=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,i,r,o,a){var s;(0,l.Z)(this,n),(s=t.call(this))._bulkEditService=i,s._clipboardService=r,s._configurationService=o,s._languageFeaturesService=a,s._editor=e;var c=e.getContainerDomNode();return s._register((0,f.addDisposableListener)(c,"copy",(function(e){return s.handleCopy(e)}))),s._register((0,f.addDisposableListener)(c,"cut",(function(e){return s.handleCopy(e)}))),s._register((0,f.addDisposableListener)(c,"paste",(function(e){return s.handlePaste(e)}),!0)),s}return(0,c.Z)(n,[{key:"arePasteActionsEnabled",value:function(e){return this._configurationService.getValue("editor.experimental.pasteActions.enabled",{resource:e.uri})}},{key:"handleCopy",value:function(e){var t,n=this;if(e.clipboardData&&this._editor.hasTextFocus()){var i=this._editor.getModel(),r=this._editor.getSelections();if(i&&(null===r||void 0===r?void 0:r.length)&&this.arePasteActionsEnabled(i)){var l=(0,s.Z)(r),c=r[0],u=c.isEmpty();if(u){if(!this._editor.getOption(33))return;l[0]=new C.e(c.startLineNumber,0,c.startLineNumber,i.getLineLength(c.startLineNumber))}var d=this._languageFeaturesService.documentPasteEditProvider.ordered(i).filter((function(e){return!!e.prepareDocumentPaste}));if(d.length){var h=(0,_.Bo)(e.clipboardData),f=(0,y.R)();this.setCopyMetadata(e.clipboardData,{id:f,wasFromEmptySelection:u});var g=(0,p.PG)((function(e){return D(n,void 0,void 0,(0,o.Z)().mark((function t(){var n,r,s,c;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(d.map((function(t){return t.prepareDocumentPaste(i,l,h,e)})));case 2:n=t.sent,r=(0,a.Z)(n);try{for(r.s();!(s=r.n()).done;)null===(c=s.value)||void 0===c||c.forEach((function(e,t){h.replace(t,e)}))}catch(o){r.e(o)}finally{r.f()}return t.abrupt("return",h);case 6:case"end":return t.stop()}}),t)})))}));null===(t=this._currentClipboardItem)||void 0===t||t.dataTransferPromise.cancel(),this._currentClipboardItem={handle:f,dataTransferPromise:g}}else this.setCopyMetadata(e.clipboardData,{wasFromEmptySelection:u})}}}},{key:"setCopyMetadata",value:function(e,t){e.setData(L,JSON.stringify(t))}},{key:"handlePaste",value:function(e){var t,n,i;return D(this,void 0,void 0,(0,o.Z)().mark((function r(){var l,c,u,d,f,p,v,y,C=this;return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.clipboardData&&this._editor.hasTextFocus()){r.next=2;break}return r.abrupt("return");case 2:if((null===(l=this._editor.getSelections())||void 0===l?void 0:l.length)&&this._editor.hasModel()){r.next=5;break}return r.abrupt("return");case 5:if(c=this._editor.getModel(),this.arePasteActionsEnabled(c)){r.next=8;break}return r.abrupt("return");case 8:if((d=null===(t=e.clipboardData)||void 0===t?void 0:t.getData(L))&&"string"===typeof d&&(u=JSON.parse(d)),(f=this._languageFeaturesService.documentPasteEditProvider.ordered(c)).length){r.next=13;break}return r.abrupt("return");case 13:return e.preventDefault(),e.stopImmediatePropagation(),p=c.getVersionId(),v=new w.Dl(this._editor,3),r.prev=17,r.delegateYield((0,o.Z)().mark((function t(){var r,d,y,S,w,E,T,N;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=(0,_.Bo)(e.clipboardData),!(null===u||void 0===u?void 0:u.id)||(null===(n=C._currentClipboardItem)||void 0===n?void 0:n.handle)!==u.id){t.next=6;break}return t.next=4,C._currentClipboardItem.dataTransferPromise;case 4:t.sent.forEach((function(e,t){r.replace(t,e)}));case 6:if(r.has(m.v.uriList)){t.next=11;break}return t.next=9,C._clipboardService.readResources();case 9:(d=t.sent).length&&r.append(m.v.uriList,(0,g.ZO)(_.Z0.create(d)));case 11:r.delete(L),y=(0,a.Z)(f),t.prev=13,y.s();case 15:if((S=y.n()).done){t.next=32;break}if((w=S.value).pasteMimeTypes.some((function(e){return e.toLowerCase()===h.g.FILES.toLowerCase()?(0,s.Z)(r.values()).some((function(e){return e.asFile()})):r.has(e)}))){t.next=19;break}return t.abrupt("continue",30);case 19:return t.next=21,w.provideDocumentPasteEdits(c,l,r,v.token);case 21:if(E=t.sent,p===c.getVersionId()){t.next=24;break}return t.abrupt("return",{v:void 0});case 24:if(!E){t.next=30;break}if((0,k.performSnippetEdit)(C._editor,"string"===typeof E.insertText?x.Yj.escape(E.insertText):E.insertText.snippet,l),!E.additionalEdit){t.next=29;break}return t.next=29,C._bulkEditService.apply(b.fo.convert(E.additionalEdit),{editor:C._editor});case 29:return t.abrupt("return",{v:void 0});case 30:t.next=15;break;case 32:t.next=37;break;case 34:t.prev=34,t.t0=t.catch(13),y.e(t.t0);case 37:return t.prev=37,y.f(),t.finish(37);case 40:if(T=null!==(i=r.get(m.v.text))&&void 0!==i?i:r.get("text")){t.next=43;break}return t.abrupt("return",{v:void 0});case 43:return t.next=45,T.asString();case 45:if(N=t.sent,p===c.getVersionId()){t.next=48;break}return t.abrupt("return",{v:void 0});case 48:C._editor.trigger("keyboard","paste",{text:N,pasteOnNewLine:null===u||void 0===u?void 0:u.wasFromEmptySelection,multicursorText:null});case 49:case"end":return t.stop()}}),t,null,[[13,34,37,40]])}))(),"t0",19);case 19:if("object"!==typeof(y=r.t0)){r.next=22;break}return r.abrupt("return",y.v);case 22:return r.prev=22,v.dispose(),r.finish(22);case 25:case"end":return r.stop()}}),r,this,[[17,,22,25]])})))}}]),n}(v.JT);O.ID="editor.contrib.copyPasteActionController",O=N([I(1,b.vu),I(2,E.p),I(3,T.Ui),I(4,S.p)],O);var R=n(27722),A=n(50818),M=n(69077);(0,i._K)(O.ID,O),M.B.as(A.IP.Configuration).registerConfiguration(Object.assign(Object.assign({},r.wk),{properties:{"editor.experimental.pasteActions.enabled":{type:"boolean",scope:5,description:R.NC("pasteActions","Enable/disable running edits from extensions on paste."),default:!1}}}))},45627:function(e,t,n){"use strict";n.r(t),n.d(t,{CursorRedo:function(){return g},CursorUndo:function(){return p},CursorUndoRedoController:function(){return f}});var i=n(60136),r=n(27277),o=n(15671),a=n(43144),s=n(11860),l=n(62381),c=n(67245),u=n(27722),d=function(){function e(t){(0,o.Z)(this,e),this.selections=t}return(0,a.Z)(e,[{key:"equals",value:function(e){var t=this.selections.length;if(t!==e.selections.length)return!1;for(var n=0;n<t;n++)if(!this.selections[n].equalsSelection(e.selections[n]))return!1;return!0}}]),e}(),h=(0,a.Z)((function e(t,n,i){(0,o.Z)(this,e),this.cursorState=t,this.scrollTop=n,this.scrollLeft=i})),f=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e){var i;return(0,o.Z)(this,n),(i=t.call(this))._editor=e,i._isCursorUndoRedo=!1,i._undoStack=[],i._redoStack=[],i._register(e.onDidChangeModel((function(e){i._undoStack=[],i._redoStack=[]}))),i._register(e.onDidChangeModelContent((function(e){i._undoStack=[],i._redoStack=[]}))),i._register(e.onDidChangeCursorSelection((function(t){if(!i._isCursorUndoRedo&&t.oldSelections&&t.oldModelVersionId===t.modelVersionId){var n=new d(t.oldSelections);i._undoStack.length>0&&i._undoStack[i._undoStack.length-1].cursorState.equals(n)||(i._undoStack.push(new h(n,e.getScrollTop(),e.getScrollLeft())),i._redoStack=[],i._undoStack.length>50&&i._undoStack.shift())}}))),i}return(0,a.Z)(n,[{key:"cursorUndo",value:function(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new h(new d(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}},{key:"cursorRedo",value:function(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new h(new d(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}},{key:"_applyState",value:function(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}],[{key:"get",value:function(e){return e.getContribution(n.ID)}}]),n}(s.JT);f.ID="editor.contrib.cursorUndoRedoController";var p=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"cursorUndo",label:u.NC("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:c.u.textInputFocus,primary:2099,weight:100}})}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){var i;null===(i=f.get(t))||void 0===i||i.cursorUndo()}}]),n}(l.R6),g=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"cursorRedo",label:u.NC("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){var i;null===(i=f.get(t))||void 0===i||i.cursorRedo()}}]),n}(l.R6);(0,l._K)(f.ID,f),(0,l.Qr)(p),(0,l.Qr)(g)},74361:function(e,t,n){"use strict";n.r(t),n.d(t,{DragAndDropController:function(){return y}});var i=n(15671),r=n(43144),o=n(11752),a=n(61120),s=n(60136),l=n(27277),c=n(11860),u=n(73616),d=n(62381),h=n(38622),f=n(80133),p=n(23145),g=n(70845),v=function(){function e(t,n,r){(0,i.Z)(this,e),this.selection=t,this.targetPosition=n,this.copy=r,this.targetSelection=null}return(0,r.Z)(e,[{key:"getEditOperations",value:function(e,t){var n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new f.e(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new p.Y(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new p.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new p.Y(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new p.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new p.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection}},{key:"computeCursorState",value:function(e,t){return this.targetSelection}}]),e}();function m(e){return u.dz?e.altKey:e.ctrlKey}var y=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this))._editor=e,r._dndDecorationIds=r._editor.createDecorationsCollection(),r._register(r._editor.onMouseDown((function(e){return r._onEditorMouseDown(e)}))),r._register(r._editor.onMouseUp((function(e){return r._onEditorMouseUp(e)}))),r._register(r._editor.onMouseDrag((function(e){return r._onEditorMouseDrag(e)}))),r._register(r._editor.onMouseDrop((function(e){return r._onEditorMouseDrop(e)}))),r._register(r._editor.onMouseDropCanceled((function(){return r._onEditorMouseDropCanceled()}))),r._register(r._editor.onKeyDown((function(e){return r.onEditorKeyDown(e)}))),r._register(r._editor.onKeyUp((function(e){return r.onEditorKeyUp(e)}))),r._register(r._editor.onDidBlurEditorWidget((function(){return r.onEditorBlur()}))),r._register(r._editor.onDidBlurEditorText((function(){return r.onEditorBlur()}))),r._mouseDown=!1,r._modifierPressed=!1,r._dragSelection=null,r}return(0,r.Z)(n,[{key:"onEditorBlur",value:function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}},{key:"onEditorKeyDown",value:function(e){this._editor.getOption(31)&&!this._editor.getOption(18)&&(m(e)&&(this._modifierPressed=!0),this._mouseDown&&m(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}},{key:"onEditorKeyUp",value:function(e){this._editor.getOption(31)&&!this._editor.getOption(18)&&(m(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===n.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}},{key:"_onEditorMouseDown",value:function(e){this._mouseDown=!0}},{key:"_onEditorMouseUp",value:function(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}},{key:"_onEditorMouseDrag",value:function(e){var t=e.target;if(null===this._dragSelection){var n=(this._editor.getSelections()||[]).filter((function(e){return t.position&&e.containsPosition(t.position)}));if(1!==n.length)return;this._dragSelection=n[0]}m(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}},{key:"_onEditorMouseDropCanceled",value:function(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}},{key:"_onEditorMouseDrop",value:function(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){var t=new h.L(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){var i=null;if(e.event.shiftKey){var r=this._editor.getSelection();if(r){var o=r.selectionStartLineNumber,a=r.selectionStartColumn;i=[new p.Y(o,a,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map((function(e){return e.containsPosition(t)?new p.Y(t.lineNumber,t.column,t.lineNumber,t.column):e}));this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(m(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(n.ID,new v(this._dragSelection,t,m(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}},{key:"showAt",value:function(e){this._dndDecorationIds.set([{range:new f.e(e.lineNumber,e.column,e.lineNumber,e.column),options:n._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}},{key:"_removeDecoration",value:function(){this._dndDecorationIds.clear()}},{key:"_hitContent",value:function(e){return 6===e.type||7===e.type}},{key:"_hitMargin",value:function(e){return 2===e.type||3===e.type||4===e.type}},{key:"dispose",value:function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,(0,o.Z)((0,a.Z)(n.prototype),"dispose",this).call(this)}}]),n}(c.JT);y.ID="editor.contrib.dragAndDrop",y.TRIGGER_KEY_VALUE=u.dz?6:5,y._DECORATION_OPTIONS=g.qx.register({description:"dnd-target",className:"dnd-target"}),(0,d._K)(y.ID,y)},52330:function(e,t,n){"use strict";n.r(t);var i=n(74165),r=n(82784),o=n(85294),a=n(72112),s=n(95011),l=n(52170),c=n(11133),u=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};c.P0.registerCommand("_executeDocumentSymbolProvider",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),c=1;c<t;c++)n[c-1]=arguments[c];return u(this,void 0,void 0,(0,i.Z)().mark((function t(){var c,u,d,h;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=n[0],(0,o.p_)(a.o.isUri(c)),u=e.get(l.Je),d=e.get(s.S),t.next=6,d.createModelReference(c);case 6:return h=t.sent,t.prev=7,t.next=10,u.getOrCreate(h.object.textEditorModel,r.T.None);case 10:return t.abrupt("return",t.sent.getTopLevelSymbols());case 11:return t.prev=11,h.dispose(),t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[7,,11,14]])})))}))},52170:function(e,t,n){"use strict";n.d(t,{C3:function(){return D},Je:function(){return L},sT:function(){return N}});var i=n(74165),r=n(93433),o=n(29439),a=n(37762),s=n(60136),l=n(27277),c=n(15671),u=n(43144),d=n(29671),h=n(82784),f=n(14173),p=n(94016),g=n(54376),v=n(38622),m=n(80133),y=n(98971),_=n(36888),b=n(77896),C=n(29257),S=n(11860),w=n(53584),k=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},x=function(e,t){return function(n,i){t(n,i,e)}},E=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},T=function(){function e(){(0,c.Z)(this,e)}return(0,u.Z)(e,[{key:"remove",value:function(){var e;null===(e=this.parent)||void 0===e||e.children.delete(this.id)}}],[{key:"findId",value:function(e,t){var n;"string"===typeof e?n="".concat(t.id,"/").concat(e):(n="".concat(t.id,"/").concat(e.name),void 0!==t.children.get(n)&&(n="".concat(t.id,"/").concat(e.name,"_").concat(e.range.startLineNumber,"_").concat(e.range.startColumn)));for(var i=n,r=0;void 0!==t.children.get(i);r++)i="".concat(n,"_").concat(r);return i}},{key:"empty",value:function(e){return 0===e.children.size}}]),e}(),N=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i,r){var o;return(0,c.Z)(this,n),(o=t.call(this)).id=e,o.parent=i,o.symbol=r,o.children=new Map,o}return(0,u.Z)(n)}(T),I=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i,r,o){var a;return(0,c.Z)(this,n),(a=t.call(this)).id=e,a.parent=i,a.label=r,a.order=o,a.children=new Map,a}return(0,u.Z)(n)}(T),D=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var i;return(0,c.Z)(this,n),(i=t.call(this)).uri=e,i.id="root",i.parent=void 0,i._groups=new Map,i.children=new Map,i.id="root",i.parent=void 0,i}return(0,u.Z)(n,[{key:"_compact",value:function(){var e,t=0,n=(0,a.Z)(this._groups);try{for(n.s();!(e=n.n()).done;){var i=(0,o.Z)(e.value,2),r=i[0];0===i[1].children.size?this._groups.delete(r):t+=1}}catch(d){n.e(d)}finally{n.f()}if(1!==t)this.children=this._groups;else{var s,l=p.$.first(this._groups.values()),c=(0,a.Z)(l.children);try{for(c.s();!(s=c.n()).done;){var u=(0,o.Z)(s.value,2)[1];u.parent=this,this.children.set(u.id,u)}}catch(d){c.e(d)}finally{c.f()}}return this}},{key:"getTopLevelSymbols",value:function(){var e,t=[],n=(0,a.Z)(this.children.values());try{for(n.s();!(e=n.n()).done;){var i=e.value;i instanceof N?t.push(i.symbol):t.push.apply(t,(0,r.Z)(p.$.map(i.children.values(),(function(e){return e.symbol}))))}}catch(o){n.e(o)}finally{n.f()}return t.sort((function(e,t){return m.e.compareRangesUsingStarts(e.range,t.range)}))}},{key:"asListOfDocumentSymbols",value:function(){var e=this.getTopLevelSymbols(),t=[];return n._flattenDocumentSymbols(t,e,""),t.sort((function(e,t){return v.L.compare(m.e.getStartPosition(e.range),m.e.getStartPosition(t.range))||v.L.compare(m.e.getEndPosition(t.range),m.e.getEndPosition(e.range))}))}}],[{key:"create",value:function(e,t,i){var r=new h.A(i),o=new n(t.uri),s=e.ordered(t),l=s.map((function(e,i){var s,l=T.findId("provider_".concat(i),o),c=new I(l,o,null!==(s=e.displayName)&&void 0!==s?s:"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,r.token)).then((function(e){var t,i=(0,a.Z)(e||[]);try{for(i.s();!(t=i.n()).done;){var r=t.value;n._makeOutlineElement(r,c)}}catch(o){i.e(o)}finally{i.f()}return c}),(function(e){return(0,f.Cp)(e),c})).then((function(e){T.empty(e)?e.remove():o._groups.set(l,e)}))})),c=e.onDidChange((function(){var n=e.ordered(t);(0,d.fS)(n,s)||r.cancel()}));return Promise.all(l).then((function(){return r.token.isCancellationRequested&&!i.isCancellationRequested?n.create(e,t,i):o._compact()})).finally((function(){c.dispose()}))}},{key:"_makeOutlineElement",value:function(e,t){var i=T.findId(e,t),r=new N(i,t,e);if(e.children){var o,s=(0,a.Z)(e.children);try{for(s.s();!(o=s.n()).done;){var l=o.value;n._makeOutlineElement(l,r)}}catch(c){s.e(c)}finally{s.f()}}t.children.set(r.id,r)}},{key:"_flattenDocumentSymbols",value:function(e,t,i){var r,o=(0,a.Z)(t);try{for(o.s();!(r=o.n()).done;){var s=r.value;e.push({kind:s.kind,tags:s.tags,name:s.name,detail:s.detail,containerName:s.containerName||i,range:s.range,selectionRange:s.selectionRange,children:void 0}),s.children&&n._flattenDocumentSymbols(e,s.children,s.name)}}catch(l){o.e(l)}finally{o.f()}}}]),n}(T),L=(0,_.yh)("IOutlineModelService"),O=function(){function e(t,n,i){var r=this;(0,c.Z)(this,e),this._languageFeaturesService=t,this._disposables=new S.SL,this._cache=new g.z6(10,.7),this._debounceInformation=n.for(t.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved((function(e){r._cache.delete(e.id)})))}return(0,u.Z)(e,[{key:"dispose",value:function(){this._disposables.dispose()}},{key:"getOrCreate",value:function(e,t){return E(this,void 0,void 0,(0,i.Z)().mark((function n(){var r,o,a,s,l,c,u=this;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=this._languageFeaturesService.documentSymbolProvider,o=r.ordered(e),(a=this._cache.get(e.id))&&a.versionId===e.getVersionId()&&(0,d.fS)(a.provider,o)||(s=new h.A,a={versionId:e.getVersionId(),provider:o,promiseCnt:0,source:s,promise:D.create(r,e,s.token),model:void 0},this._cache.set(e.id,a),l=Date.now(),a.promise.then((function(t){a.model=t,u._debounceInformation.update(e,Date.now()-l)})).catch((function(t){u._cache.delete(e.id)}))),!a.model){n.next=6;break}return n.abrupt("return",a.model);case 6:return a.promiseCnt+=1,c=t.onCancellationRequested((function(){0===--a.promiseCnt&&(a.source.cancel(),u._cache.delete(e.id))})),n.prev=8,n.next=11,a.promise;case 11:return n.abrupt("return",n.sent);case 12:return n.prev=12,c.dispose(),n.finish(12);case 15:case"end":return n.stop()}}),n,this,[[8,,12,15]])})))}}]),e}();O=k([x(0,w.p),x(1,y.A),x(2,C.q)],O),(0,b.z)(L,O,!0)},34464:function(e,t,n){"use strict";n.r(t),n.d(t,{DropIntoEditorController:function(){return D}});var i=n(74165),r=n(37762),o=n(15671),a=n(43144),s=n(60136),l=n(27277),c=n(60022),u=n(70456),d=n(11860),h=n(62684),f=n(41175),p=n(72112),g=n(78788),v=n(62381),m=n(23),y=n(80133),_=n(23145),b=n(53584),C=n(68132),S=n(44152),w=n(54488),k=n(27722),x=n(47901),E=n(17844),T=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},N=function(e,t){return function(n,i){t(n,i,e)}},I=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},D=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i,r,a,s){var l;return(0,o.Z)(this,n),(l=t.call(this))._bulkEditService=i,l._languageFeaturesService=r,l._progressService=a,l._register(e.onDropIntoEditor((function(t){return l.onDropIntoEditor(e,t.position,t.event)}))),l._languageFeaturesService.documentOnDropEditProvider.register("*",new L(s)),l}return(0,a.Z)(n,[{key:"onDropIntoEditor",value:function(e,t,n){return I(this,void 0,void 0,(0,i.Z)().mark((function o(){var a,s,l,u,d,h,f,p=this;return(0,i.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n.dataTransfer&&e.hasModel()){o.next=2;break}return o.abrupt("return");case 2:return a=e.getModel(),s=a.getVersionId(),o.next=6,this.extractDataTransferData(n);case 6:if(0!==(l=o.sent).size){o.next=9;break}return o.abrupt("return");case 9:if(e.getModel().getVersionId()===s){o.next=11;break}return o.abrupt("return");case 11:return u=new C.Dl(e,1),o.prev=12,d=this._languageFeaturesService.documentOnDropEditProvider.ordered(a),o.next=16,this._progressService.withProgress({location:15,delay:750,title:(0,k.NC)("dropProgressTitle","Running drop handlers..."),cancellable:!0},(function(){return(0,c.eP)(I(p,void 0,void 0,(0,i.Z)().mark((function e(){var n,o,s,c;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=(0,r.Z)(d),e.prev=1,n.s();case 3:if((o=n.n()).done){e.next=14;break}return s=o.value,e.next=7,s.provideDocumentOnDropEdits(a,t,l,u.token);case 7:if(c=e.sent,!u.token.isCancellationRequested){e.next=10;break}return e.abrupt("return",void 0);case 10:if(!c){e.next=12;break}return e.abrupt("return",c);case 12:e.next=3;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),n.e(e.t0);case 19:return e.prev=19,n.f(),e.finish(19);case 22:return e.abrupt("return",void 0);case 23:case"end":return e.stop()}}),e,null,[[1,16,19,22]])}))),u.token)}),(function(){u.cancel()}));case 16:if(h=o.sent,!u.token.isCancellationRequested&&e.getModel().getVersionId()===s){o.next=19;break}return o.abrupt("return");case 19:if(!h){o.next=26;break}if(f=new y.e(t.lineNumber,t.column,t.lineNumber,t.column),(0,S.performSnippetEdit)(e,"string"===typeof h.insertText?w.Yj.escape(h.insertText):h.insertText.snippet,[_.Y.fromRange(f,0)]),!h.additionalEdit){o.next=25;break}return o.next=25,this._bulkEditService.apply(m.fo.convert(h.additionalEdit),{editor:e});case 25:return o.abrupt("return");case 26:return o.prev=26,u.dispose(),o.finish(26);case 29:case"end":return o.stop()}}),o,this,[[12,,26,29]])})))}},{key:"extractDataTransferData",value:function(e){return I(this,void 0,void 0,(0,i.Z)().mark((function t(){var n;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.dataTransfer){t.next=2;break}return t.abrupt("return",new u.Hl);case 2:return n=(0,g.Bo)(e.dataTransfer),(0,g.dR)(n,e),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))}}]),n}(d.JT);D.ID="editor.contrib.dropIntoEditorController",D=T([N(1,m.vu),N(2,b.p),N(3,x.R9),N(4,E.ec)],D);var L=function(){function e(t){(0,o.Z)(this,e),this._workspaceContextService=t}return(0,a.Z)(e,[{key:"provideDocumentOnDropEdits",value:function(e,t,n,r){var o;return I(this,void 0,void 0,(0,i.Z)().mark((function e(){var t,r,a,s,l;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=n.get(h.v.uriList))){e.next=8;break}return e.next=4,t.asString();case 4:if(r=e.sent,!(a=this.getUriListInsertText(r))){e.next=8;break}return e.abrupt("return",{insertText:a});case 8:if(!(s=null!==(o=n.get("text"))&&void 0!==o?o:n.get(h.v.text))){e.next=14;break}return e.next=12,s.asString();case 12:return l=e.sent,e.abrupt("return",{insertText:l});case 14:return e.abrupt("return",void 0);case 15:case"end":return e.stop()}}),e,this)})))}},{key:"getUriListInsertText",value:function(e){var t,n=this,i=[],o=(0,r.Z)(g.Z0.parse(e));try{for(o.s();!(t=o.n()).done;){var a=t.value;try{i.push(p.o.parse(a))}catch(s){}}}catch(l){o.e(l)}finally{o.f()}if(i.length)return i.map((function(e){var t=n._workspaceContextService.getWorkspaceFolder(e);if(t){var i=(0,f.lX)(t.uri,e);if(i)return i}return e.fsPath})).join(" ")}}]),e}();L=T([N(0,E.ec)],L),(0,v._K)(D.ID,D)},68132:function(e,t,n){"use strict";n.d(t,{yy:function(){return w},Dl:function(){return k},YQ:function(){return x}});var i=n(11752),r=n(61120),o=n(60136),a=n(27277),s=n(15671),l=n(43144),c=n(32377),u=n(80133),d=n(82784),h=n(11860),f=n(97326),p=n(62381),g=n(34509),v=n(17832),m=n(36888),y=n(77896),_=n(27722),b=(0,m.yh)("IEditorCancelService"),C=new g.uy("cancellableOperation",!1,(0,_.NC)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,y.z)(b,function(){function e(){(0,s.Z)(this,e),this._tokens=new WeakMap}return(0,l.Z)(e,[{key:"add",value:function(e,t){var n,i=this._tokens.get(e);return i||(i=e.invokeWithinContext((function(e){return{key:C.bindTo(e.get(g.i6)),tokens:new v.S}})),this._tokens.set(e,i)),i.key.set(!0),n=i.tokens.push(t),function(){n&&(n(),i.key.set(!i.tokens.isEmpty()),n=void 0)}}},{key:"cancel",value:function(e){var t=this._tokens.get(e);if(t){var n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}}}]),e}(),!0);var S=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var r;return(0,s.Z)(this,n),(r=t.call(this,i)).editor=e,r._unregister=e.invokeWithinContext((function(t){return t.get(b).add(e,(0,f.Z)(r))})),r}return(0,l.Z)(n,[{key:"dispose",value:function(){this._unregister(),(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this)}}]),n}(d.A);(0,p.fK)(new(function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:C})}return(0,l.Z)(n,[{key:"runEditorCommand",value:function(e,t){e.get(b).cancel(t)}}]),n}(p._l)));var w=function(){function e(t,n){if((0,s.Z)(this,e),this.flags=n,0!==(1&this.flags)){var i=t.getModel();this.modelVersionId=i?c.WU("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=t.getPosition():this.position=null,0!==(2&this.flags)?this.selection=t.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=t.getScrollLeft(),this.scrollTop=t.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}return(0,l.Z)(e,[{key:"_equals",value:function(t){if(!(t instanceof e))return!1;var n=t;return this.modelVersionId===n.modelVersionId&&(this.scrollLeft===n.scrollLeft&&this.scrollTop===n.scrollTop&&(!(!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position))&&!(!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))))}},{key:"validate",value:function(t){return this._equals(new e(t,this.flags))}}]),e}(),k=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r,o){var a;return(0,s.Z)(this,n),(a=t.call(this,e,o))._listener=new h.SL,4&i&&a._listener.add(e.onDidChangeCursorPosition((function(e){r&&u.e.containsPosition(r,e.position)||a.cancel()}))),2&i&&a._listener.add(e.onDidChangeCursorSelection((function(e){r&&u.e.containsRange(r,e.selection)||a.cancel()}))),8&i&&a._listener.add(e.onDidScrollChange((function(e){return a.cancel()}))),1&i&&(a._listener.add(e.onDidChangeModel((function(e){return a.cancel()}))),a._listener.add(e.onDidChangeModelContent((function(e){return a.cancel()})))),a}return(0,l.Z)(n,[{key:"dispose",value:function(){this._listener.dispose(),(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this)}}]),n}(S),x=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var r;return(0,s.Z)(this,n),(r=t.call(this,i))._listener=e.onDidChangeContent((function(){return r.cancel()})),r}return(0,l.Z)(n,[{key:"dispose",value:function(){this._listener.dispose(),(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this)}}]),n}(d.A)},22155:function(e,t,n){"use strict";n.r(t),n.d(t,{CommonFindController:function(){return yt},FindController:function(){return _t},MatchFindAction:function(){return kt},NextMatchFindAction:function(){return xt},NextSelectionMatchFindAction:function(){return Nt},PreviousMatchFindAction:function(){return Et},PreviousSelectionMatchFindAction:function(){return It},SelectionMatchFindAction:function(){return Tt},StartFindAction:function(){return bt},StartFindReplaceAction:function(){return Dt},StartFindWithArgsAction:function(){return St},StartFindWithSelectionAction:function(){return wt},getSelectionSearchString:function(){return mt}});var i=n(74165),r=n(15671),o=n(43144),a=n(11752),s=n(61120),l=n(60136),c=n(27277),u=n(60022),d=n(11860),h=n(32377),f=n(62381),p=n(67245),g=n(29671),v=n(76469),m=n(38622),y=n(80133),_=n(23145),b=n(25207),C=n(93433),S=n(37762),w=n(36550),k=n(70845),x=n(32379),E=n(64014),T=function(){function e(t){(0,r.Z)(this,e),this._editor=t,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}return(0,o.Z)(e,[{key:"dispose",value:function(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}},{key:"reset",value:function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}},{key:"getCount",value:function(){return this._decorations.length}},{key:"getFindScope",value:function(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}},{key:"getFindScopes",value:function(){var e=this;if(this._findScopeDecorationIds.length){var t=this._findScopeDecorationIds.map((function(t){return e._editor.getModel().getDecorationRange(t)})).filter((function(e){return!!e}));if(t.length)return t}return null}},{key:"getStartPosition",value:function(){return this._startPosition}},{key:"setStartPosition",value:function(e){this._startPosition=e,this.setCurrentFindMatch(null)}},{key:"_getDecorationIndex",value:function(e){var t=this._decorations.indexOf(e);return t>=0?t+1:1}},{key:"getCurrentMatchesPosition",value:function(t){var n,i=this._editor.getModel().getDecorationsInRange(t),r=(0,S.Z)(i);try{for(r.s();!(n=r.n()).done;){var o=n.value,a=o.options;if(a===e._FIND_MATCH_DECORATION||a===e._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(o.id)}}catch(s){r.e(s)}finally{r.f()}return 0}},{key:"setCurrentFindMatch",value:function(t){var n=this,i=null,r=0;if(t)for(var o=0,a=this._decorations.length;o<a;o++){var s=this._editor.getModel().getDecorationRange(this._decorations[o]);if(t.equalsRange(s)){i=this._decorations[o],r=o+1;break}}return null===this._highlightedDecorationId&&null===i||this._editor.changeDecorations((function(t){if(null!==n._highlightedDecorationId&&(t.changeDecorationOptions(n._highlightedDecorationId,e._FIND_MATCH_DECORATION),n._highlightedDecorationId=null),null!==i&&(n._highlightedDecorationId=i,t.changeDecorationOptions(n._highlightedDecorationId,e._CURRENT_FIND_MATCH_DECORATION)),null!==n._rangeHighlightDecorationId&&(t.removeDecoration(n._rangeHighlightDecorationId),n._rangeHighlightDecorationId=null),null!==i){var r=n._editor.getModel().getDecorationRange(i);if(r.startLineNumber!==r.endLineNumber&&1===r.endColumn){var o=r.endLineNumber-1,a=n._editor.getModel().getLineMaxColumn(o);r=new y.e(r.startLineNumber,r.startColumn,o,a)}n._rangeHighlightDecorationId=t.addDecoration(r,e._RANGE_HIGHLIGHT_DECORATION)}})),r}},{key:"set",value:function(t,n){var i=this;this._editor.changeDecorations((function(r){var o=e._FIND_MATCH_DECORATION,a=[];if(t.length>1e3){o=e._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var s=i._editor.getModel().getLineCount(),l=i._editor.getLayoutInfo().height/s,c=Math.max(2,Math.ceil(3/l)),u=t[0].range.startLineNumber,d=t[0].range.endLineNumber,h=1,f=t.length;h<f;h++){var p=t[h].range;d+c>=p.startLineNumber?p.endLineNumber>d&&(d=p.endLineNumber):(a.push({range:new y.e(u,1,d,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),u=p.startLineNumber,d=p.endLineNumber)}a.push({range:new y.e(u,1,d,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}for(var g=new Array(t.length),v=0,m=t.length;v<m;v++)g[v]={range:t[v].range,options:o};i._decorations=r.deltaDecorations(i._decorations,g),i._overviewRulerApproximateDecorations=r.deltaDecorations(i._overviewRulerApproximateDecorations,a),i._rangeHighlightDecorationId&&(r.removeDecoration(i._rangeHighlightDecorationId),i._rangeHighlightDecorationId=null),i._findScopeDecorationIds.length&&(i._findScopeDecorationIds.forEach((function(e){return r.removeDecoration(e)})),i._findScopeDecorationIds=[]),(null===n||void 0===n?void 0:n.length)&&(i._findScopeDecorationIds=n.map((function(t){return r.addDecoration(t,e._FIND_SCOPE_DECORATION)})))}))}},{key:"matchBeforePosition",value:function(e){if(0===this._decorations.length)return null;for(var t=this._decorations.length-1;t>=0;t--){var n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);if(i&&!(i.endLineNumber>e.lineNumber)){if(i.endLineNumber<e.lineNumber)return i;if(!(i.endColumn>e.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}},{key:"matchAfterPosition",value:function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;t<n;t++){var i=this._decorations[t],r=this._editor.getModel().getDecorationRange(i);if(r&&!(r.startLineNumber<e.lineNumber)){if(r.startLineNumber>e.lineNumber)return r;if(!(r.startColumn<e.column))return r}}return this._editor.getModel().getDecorationRange(this._decorations[0])}},{key:"_allDecorations",value:function(){var e,t=[];(t=(t=t.concat(this._decorations)).concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length)&&(e=t).push.apply(e,(0,C.Z)(this._findScopeDecorationIds));return this._rangeHighlightDecorationId&&t.push(this._rangeHighlightDecorationId),t}}]),e}();T._CURRENT_FIND_MATCH_DECORATION=k.qx.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:(0,E.EN)(x.Fm_),position:w.sh.Center},minimap:{color:(0,E.EN)(x.SUY),position:w.F5.Inline}}),T._FIND_MATCH_DECORATION=k.qx.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:(0,E.EN)(x.Fm_),position:w.sh.Center},minimap:{color:(0,E.EN)(x.SUY),position:w.F5.Inline}}),T._FIND_MATCH_NO_OVERVIEW_DECORATION=k.qx.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0}),T._FIND_MATCH_ONLY_OVERVIEW_DECORATION=k.qx.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,E.EN)(x.Fm_),position:w.sh.Center}}),T._RANGE_HIGHLIGHT_DECORATION=k.qx.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0}),T._FIND_SCOPE_DECORATION=k.qx.register({description:"find-scope",className:"findScope",isWholeLine:!0});var N=function(){function e(t,n,i){(0,r.Z)(this,e),this._editorSelection=t,this._ranges=n,this._replaceStrings=i,this._trackedEditorSelectionId=null}return(0,o.Z)(e,[{key:"getEditOperations",value:function(e,t){if(this._ranges.length>0){for(var n=[],i=0;i<this._ranges.length;i++)n.push({range:this._ranges[i],text:this._replaceStrings[i]});n.sort((function(e,t){return y.e.compareRangesUsingStarts(e.range,t.range)}));for(var r=[],o=n[0],a=1;a<n.length;a++)o.range.endLineNumber===n[a].range.startLineNumber&&o.range.endColumn===n[a].range.startColumn?(o.range=o.range.plusRange(n[a].range),o.text=o.text+n[a].text):(r.push(o),o=n[a]);r.push(o);for(var s=0,l=r;s<l.length;s++){var c=l[s];t.addEditOperation(c.range,c.text)}}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}},{key:"computeCursorState",value:function(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}]),e}();function I(e,t){if(e&&""!==e[0]){var n=D(e,t,"-"),i=D(e,t,"_");return n&&!i?L(e,t,"-"):!n&&i?L(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():h.Kw(e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function D(e,t,n){return-1!==e[0].indexOf(n)&&-1!==t.indexOf(n)&&e[0].split(n).length===t.split(n).length}function L(e,t,n){var i=t.split(n),r=e[0].split(n),o="";return i.forEach((function(e,t){o+=I([r[t]],e)+n})),o.slice(0,-1)}var O=(0,o.Z)((function e(t){(0,r.Z)(this,e),this.staticValue=t,this.kind=0})),R=(0,o.Z)((function e(t){(0,r.Z)(this,e),this.pieces=t,this.kind=1})),A=function(){function e(t){(0,r.Z)(this,e),t&&0!==t.length?1===t.length&&null!==t[0].staticValue?this._state=new O(t[0].staticValue):this._state=new R(t):this._state=new O("")}return(0,o.Z)(e,[{key:"hasReplacementPatterns",get:function(){return 1===this._state.kind}},{key:"buildReplaceString",value:function(t,n){if(0===this._state.kind)return n?I(t,this._state.staticValue):this._state.staticValue;for(var i="",r=0,o=this._state.pieces.length;r<o;r++){var a=this._state.pieces[r];if(null===a.staticValue){var s=e._substitute(a.matchIndex,t);if(null!==a.caseOps&&a.caseOps.length>0){for(var l=[],c=a.caseOps.length,u=0,d=0,h=s.length;d<h;d++){if(u>=c){l.push(s.slice(d));break}switch(a.caseOps[u]){case"U":l.push(s[d].toUpperCase());break;case"u":l.push(s[d].toUpperCase()),u++;break;case"L":l.push(s[d].toLowerCase());break;case"l":l.push(s[d].toLowerCase()),u++;break;default:l.push(s[d])}}s=l.join("")}i+=s}else i+=a.staticValue}return i}}],[{key:"fromStaticValue",value:function(t){return new e([M.staticValue(t)])}},{key:"_substitute",value:function(e,t){if(null===t)return"";if(0===e)return t[0];for(var n="";e>0;){if(e<t.length)return(t[e]||"")+n;n=String(e%10)+n,e=Math.floor(e/10)}return"$"+n}}]),e}(),M=function(){function e(t,n,i){(0,r.Z)(this,e),this.staticValue=t,this.matchIndex=n,i&&0!==i.length?this.caseOps=i.slice(0):this.caseOps=null}return(0,o.Z)(e,null,[{key:"staticValue",value:function(t){return new e(t,-1,null)}},{key:"caseOps",value:function(t,n){return new e(null,t,n)}}]),e}(),P=function(){function e(t){(0,r.Z)(this,e),this._source=t,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}return(0,o.Z)(e,[{key:"emitUnchanged",value:function(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}},{key:"emitStatic",value:function(e,t){this._emitStatic(e),this._lastCharIndex=t}},{key:"_emitStatic",value:function(e){0!==e.length&&(this._currentStaticPiece+=e)}},{key:"emitMatchIndex",value:function(e,t,n){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=M.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=M.caseOps(e,n),this._lastCharIndex=t}},{key:"finalize",value:function(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=M.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new A(this._result)}}]),e}();var Z=n(34509),F=new Z.uy("findWidgetVisible",!1),B=(F.toNegated(),new Z.uy("findInputFocussed",!1)),H=new Z.uy("replaceInputFocussed",!1),z={primary:545,mac:{primary:2593}},j={primary:565,mac:{primary:2613}},V={primary:560,mac:{primary:2608}},W={primary:554,mac:{primary:2602}},U={primary:558,mac:{primary:2606}},G="actions.find",K="actions.findWithSelection",Y="editor.actions.findWithArgs",q="editor.action.nextMatchFindAction",$="editor.action.previousMatchFindAction",X="editor.action.nextSelectionMatchFindAction",Q="editor.action.previousSelectionMatchFindAction",J="editor.action.startFindReplaceAction",ee="closeFindWidget",te="toggleFindCaseSensitive",ne="toggleFindWholeWord",ie="toggleFindRegex",re="toggleFindInSelection",oe="togglePreserveCase",ae="editor.action.replaceOne",se="editor.action.replaceAll",le="editor.action.selectAllMatches",ce=19999,ue=function(){function e(t,n){var i=this;(0,r.Z)(this,e),this._toDispose=new d.SL,this._editor=t,this._state=n,this._isDisposed=!1,this._startSearchingTimer=new u._F,this._decorations=new T(t),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new u.pY((function(){return i.research(!1)}),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((function(e){3!==e.reason&&5!==e.reason&&6!==e.reason||i._decorations.setStartPosition(i._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((function(e){i._ignoreModelContentChanged||(e.isFlush&&i._decorations.reset(),i._decorations.setStartPosition(i._editor.getPosition()),i._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((function(e){return i._onStateChanged(e)}))),this.research(!1,this._state.searchScope)}return(0,o.Z)(e,[{key:"dispose",value:function(){this._isDisposed=!0,(0,d.B9)(this._startSearchingTimer),this._toDispose.dispose()}},{key:"_onStateChanged",value:function(e){var t=this;this._isDisposed||this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((function(){e.searchScope?t.research(e.moveCursor,t._state.searchScope):t.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}},{key:"research",value:function(e,t){var n=this,i=null;"undefined"!==typeof t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map((function(e){if(e.startLineNumber!==e.endLineNumber){var t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new y.e(e.startLineNumber,1,t,n._editor.getModel().getLineMaxColumn(t))}return e})));var r=this._findMatches(i,!1,ce);this._decorations.set(r,i);var o=this._editor.getSelection(),a=this._decorations.getCurrentMatchesPosition(o);if(0===a&&r.length>0){var s=(0,g.lG)(r.map((function(e){return e.range})),(function(e){return y.e.compareRangesUsingStarts(e,o)>=0}));a=s>0?s-1+1:a}this._state.changeMatchInfo(a,this._decorations.getCount(),void 0),e&&this._editor.getOption(37).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}},{key:"_hasMatches",value:function(){return this._state.matchesCount>0}},{key:"_cannotFind",value:function(){if(!this._hasMatches()){var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}},{key:"_setCurrentFindMatch",value:function(e){var t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}},{key:"_prevSearchPosition",value:function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,r=this._editor.getModel();return t||1===i?(1===n?n=r.getLineCount():n--,i=r.getLineMaxColumn(n)):i--,new m.L(n,i)}},{key:"_moveToPrevMatch",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._state.canNavigateBack()){if(this._decorations.getCount()<ce){var i=this._decorations.matchBeforePosition(t);return i&&i.isEmpty()&&i.getStartPosition().equals(t)&&(t=this._prevSearchPosition(t),i=this._decorations.matchBeforePosition(t)),void(i&&this._setCurrentFindMatch(i))}if(!this._cannotFind()){var r=this._decorations.getFindScope(),o=e._getSearchRange(this._editor.getModel(),r);o.getEndPosition().isBefore(t)&&(t=o.getEndPosition()),t.isBefore(o.getStartPosition())&&(t=o.getEndPosition());var a=t,s=a.lineNumber,l=a.column,c=this._editor.getModel(),u=new m.L(s,l),d=c.findPreviousMatch(this._state.searchString,u,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,!1);if(d&&d.range.isEmpty()&&d.range.getStartPosition().equals(u)&&(u=this._prevSearchPosition(u),d=c.findPreviousMatch(this._state.searchString,u,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,!1)),d)return n||o.containsRange(d.range)?void this._setCurrentFindMatch(d.range):this._moveToPrevMatch(d.range.getStartPosition(),!0)}}else{var h=this._decorations.matchAfterPosition(t);h&&this._setCurrentFindMatch(h)}}},{key:"moveToPrevMatch",value:function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}},{key:"_nextSearchPosition",value:function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,r=this._editor.getModel();return t||i===r.getLineMaxColumn(n)?(n===r.getLineCount()?n=1:n++,i=1):i++,new m.L(n,i)}},{key:"_moveToNextMatch",value:function(e){if(this._state.canNavigateForward()){if(this._decorations.getCount()<ce){var t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}var n=this._getNextMatch(e,!1,!0);n&&this._setCurrentFindMatch(n.range)}else{var i=this._decorations.matchBeforePosition(e);i&&this._setCurrentFindMatch(i)}}},{key:"_getNextMatch",value:function(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._cannotFind())return null;var o=this._decorations.getFindScope(),a=e._getSearchRange(this._editor.getModel(),o);a.getEndPosition().isBefore(t)&&(t=a.getStartPosition()),t.isBefore(a.getStartPosition())&&(t=a.getStartPosition());var s=t,l=s.lineNumber,c=s.column,u=this._editor.getModel(),d=new m.L(l,c),h=u.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,n);return i&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(d)&&(d=this._nextSearchPosition(d),h=u.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,n)),h?r||a.containsRange(h.range)?h:this._getNextMatch(h.range.getEndPosition(),n,i,!0):null}},{key:"moveToNextMatch",value:function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}},{key:"_getReplacePattern",value:function(){return this._state.isRegex?function(e){if(!e||0===e.length)return new A(null);for(var t=[],n=new P(e),i=0,r=e.length;i<r;i++){var o=e.charCodeAt(i);if(92!==o){if(36===o){if(++i>=r)break;var a=e.charCodeAt(i);if(36===a){n.emitUnchanged(i-1),n.emitStatic("$",i+1);continue}if(48===a||38===a){n.emitUnchanged(i-1),n.emitMatchIndex(0,i+1,t),t.length=0;continue}if(49<=a&&a<=57){var s=a-48;if(i+1<r){var l=e.charCodeAt(i+1);if(48<=l&&l<=57){i++,s=10*s+(l-48),n.emitUnchanged(i-2),n.emitMatchIndex(s,i+1,t),t.length=0;continue}}n.emitUnchanged(i-1),n.emitMatchIndex(s,i+1,t),t.length=0;continue}}}else{if(++i>=r)break;var c=e.charCodeAt(i);switch(c){case 92:n.emitUnchanged(i-1),n.emitStatic("\\",i+1);break;case 110:n.emitUnchanged(i-1),n.emitStatic("\n",i+1);break;case 116:n.emitUnchanged(i-1),n.emitStatic("\t",i+1);break;case 117:case 85:case 108:case 76:n.emitUnchanged(i-1),n.emitStatic("",i+1),t.push(String.fromCharCode(c))}}}return n.finalize()}(this._state.replaceString):A.fromStaticValue(this._state.replaceString)}},{key:"replace",value:function(){if(this._hasMatches()){var e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),!0,!1);if(n)if(t.equalsRange(n.range)){var i=e.buildReplaceString(n.matches,this._state.preserveCase),r=new v.T4(t,i);this._executeEditorCommand("replace",r),this._decorations.setStartPosition(new m.L(t.startLineNumber,t.startColumn+i.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}}},{key:"_findMatches",value:function(t,n,i){var r=this,o=(t||[null]).map((function(t){return e._getSearchRange(r._editor.getModel(),t)}));return this._editor.getModel().findMatches(this._state.searchString,o,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,n,i)}},{key:"replaceAll",value:function(){if(this._hasMatches()){var e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=ce?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}}},{key:"_largeReplaceAll",value:function(){var e=new b.bc(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null).parseSearchRequest();if(e){var t=e.regex;if(!t.multiline){var n="mu";t.ignoreCase&&(n+="i"),t.global&&(n+="g"),t=new RegExp(t.source,n)}var i,r=this._editor.getModel(),o=r.getValue(1),a=r.getFullModelRange(),s=this._getReplacePattern(),l=this._state.preserveCase;i=s.hasReplacementPatterns||l?o.replace(t,(function(){return s.buildReplaceString(arguments,l)})):o.replace(t,s.buildReplaceString(null,l));var c=new v.hP(a,i,this._editor.getSelection());this._executeEditorCommand("replaceAll",c)}}},{key:"_regularReplaceAll",value:function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),i=[],r=0,o=n.length;r<o;r++)i[r]=t.buildReplaceString(n[r].matches,this._state.preserveCase);var a=new N(this._editor.getSelection(),n.map((function(e){return e.range})),i);this._executeEditorCommand("replaceAll",a)}},{key:"selectAllMatches",value:function(){if(this._hasMatches()){for(var e=this._decorations.getFindScopes(),t=this._findMatches(e,!1,1073741824).map((function(e){return new _.Y(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)})),n=this._editor.getSelection(),i=0,r=t.length;i<r;i++){if(t[i].equalsRange(n)){t=[n].concat(t.slice(0,i)).concat(t.slice(i+1));break}}this._editor.setSelections(t)}}},{key:"_executeEditorCommand",value:function(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}],[{key:"_getSearchRange",value:function(e,t){return t||e.getFullModelRange()}}]),e}(),de=n(97326),he=n(81531),fe=n(83509),pe=n(70176),ge=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,o,a){var s;(0,r.Z)(this,n),(s=t.call(this))._hideSoon=s._register(new u.pY((function(){return s._hide()}),2e3)),s._isVisible=!1,s._editor=e,s._state=i,s._keybindingService=o,s._domNode=document.createElement("div"),s._domNode.className="findOptionsWidget",s._domNode.style.display="none",s._domNode.style.top="10px",s._domNode.setAttribute("role","presentation"),s._domNode.setAttribute("aria-hidden","true");var l=a.getColorTheme().getColor(x.PRb),c=a.getColorTheme().getColor(x.Pvw),d=a.getColorTheme().getColor(x.XEs);return s.caseSensitive=s._register(new fe.rk({appendTitle:s._keybindingLabelFor(te),isChecked:s._state.matchCase,inputActiveOptionBorder:l,inputActiveOptionForeground:c,inputActiveOptionBackground:d})),s._domNode.appendChild(s.caseSensitive.domNode),s._register(s.caseSensitive.onChange((function(){s._state.change({matchCase:s.caseSensitive.checked},!1)}))),s.wholeWords=s._register(new fe.Qx({appendTitle:s._keybindingLabelFor(ne),isChecked:s._state.wholeWord,inputActiveOptionBorder:l,inputActiveOptionForeground:c,inputActiveOptionBackground:d})),s._domNode.appendChild(s.wholeWords.domNode),s._register(s.wholeWords.onChange((function(){s._state.change({wholeWord:s.wholeWords.checked},!1)}))),s.regex=s._register(new fe.eH({appendTitle:s._keybindingLabelFor(ie),isChecked:s._state.isRegex,inputActiveOptionBorder:l,inputActiveOptionForeground:c,inputActiveOptionBackground:d})),s._domNode.appendChild(s.regex.domNode),s._register(s.regex.onChange((function(){s._state.change({isRegex:s.regex.checked},!1)}))),s._editor.addOverlayWidget((0,de.Z)(s)),s._register(s._state.onFindReplaceStateChange((function(e){var t=!1;e.isRegex&&(s.regex.checked=s._state.isRegex,t=!0),e.wholeWord&&(s.wholeWords.checked=s._state.wholeWord,t=!0),e.matchCase&&(s.caseSensitive.checked=s._state.matchCase,t=!0),!s._state.isRevealed&&t&&s._revealTemporarily()}))),s._register(he.addDisposableListener(s._domNode,he.EventType.MOUSE_LEAVE,(function(e){return s._onMouseLeave()}))),s._register(he.addDisposableListener(s._domNode,"mouseover",(function(e){return s._onMouseOver()}))),s._applyTheme(a.getColorTheme()),s._register(a.onDidColorThemeChange(s._applyTheme.bind((0,de.Z)(s)))),s}return(0,o.Z)(n,[{key:"_keybindingLabelFor",value:function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" (".concat(t.getLabel(),")"):""}},{key:"dispose",value:function(){this._editor.removeOverlayWidget(this),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}},{key:"getId",value:function(){return n.ID}},{key:"getDomNode",value:function(){return this._domNode}},{key:"getPosition",value:function(){return{preference:0}}},{key:"highlightFindOptions",value:function(){this._revealTemporarily()}},{key:"_revealTemporarily",value:function(){this._show(),this._hideSoon.schedule()}},{key:"_onMouseLeave",value:function(){this._hideSoon.schedule()}},{key:"_onMouseOver",value:function(){this._hideSoon.cancel()}},{key:"_show",value:function(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}},{key:"_hide",value:function(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}},{key:"_applyTheme",value:function(e){var t={inputActiveOptionBorder:e.getColor(x.PRb),inputActiveOptionForeground:e.getColor(x.Pvw),inputActiveOptionBackground:e.getColor(x.XEs)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}]),n}(pe.$);ge.ID="editor.contrib.findOptionsWidget",(0,E.Ic)((function(e,t){var n=e.getColor(x.D0T);n&&t.addRule(".monaco-editor .findOptionsWidget { background-color: ".concat(n,"; }"));var i=e.getColor(x.Hfx);i&&t.addRule(".monaco-editor .findOptionsWidget { color: ".concat(i,"; }"));var r=e.getColor(x.rh);r&&t.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ".concat(r,"; }"));var o=e.getColor(x.lRK);o&&t.addRule(".monaco-editor .findOptionsWidget { border: 2px solid ".concat(o,"; }"))}));var ve=n(73097);function me(e,t){return 1===e||2!==e&&t}var ye=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this))._onFindReplaceStateChange=e._register(new ve.Q5),e.onFindReplaceStateChange=e._onFindReplaceStateChange.event,e._searchString="",e._replaceString="",e._isRevealed=!1,e._isReplaceRevealed=!1,e._isRegex=!1,e._isRegexOverride=0,e._wholeWord=!1,e._wholeWordOverride=0,e._matchCase=!1,e._matchCaseOverride=0,e._preserveCase=!1,e._preserveCaseOverride=0,e._searchScope=null,e._matchesPosition=0,e._matchesCount=0,e._currentMatch=null,e._loop=!0,e._isSearching=!1,e._filters=null,e}return(0,o.Z)(n,[{key:"searchString",get:function(){return this._searchString}},{key:"replaceString",get:function(){return this._replaceString}},{key:"isRevealed",get:function(){return this._isRevealed}},{key:"isReplaceRevealed",get:function(){return this._isReplaceRevealed}},{key:"isRegex",get:function(){return me(this._isRegexOverride,this._isRegex)}},{key:"wholeWord",get:function(){return me(this._wholeWordOverride,this._wholeWord)}},{key:"matchCase",get:function(){return me(this._matchCaseOverride,this._matchCase)}},{key:"preserveCase",get:function(){return me(this._preserveCaseOverride,this._preserveCase)}},{key:"actualIsRegex",get:function(){return this._isRegex}},{key:"actualWholeWord",get:function(){return this._wholeWord}},{key:"actualMatchCase",get:function(){return this._matchCase}},{key:"actualPreserveCase",get:function(){return this._preserveCase}},{key:"searchScope",get:function(){return this._searchScope}},{key:"matchesPosition",get:function(){return this._matchesPosition}},{key:"matchesCount",get:function(){return this._matchesCount}},{key:"currentMatch",get:function(){return this._currentMatch}},{key:"changeMatchInfo",value:function(e,t,n){var i={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},r=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,i.matchesPosition=!0,r=!0),this._matchesCount!==t&&(this._matchesCount=t,i.matchesCount=!0,r=!0),"undefined"!==typeof n&&(y.e.equalsRange(this._currentMatch,n)||(this._currentMatch=n,i.currentMatch=!0,r=!0)),r&&this._onFindReplaceStateChange.fire(i)}},{key:"change",value:function(e,t){var n,i=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o={moveCursor:t,updateHistory:r,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},a=!1,s=this.isRegex,l=this.wholeWord,c=this.matchCase,u=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o.searchString=!0,a=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o.replaceString=!0,a=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o.isRevealed=!0,a=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o.isReplaceRevealed=!0,a=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&((null===(n=e.searchScope)||void 0===n?void 0:n.every((function(e){var t;return null===(t=i._searchScope)||void 0===t?void 0:t.some((function(t){return!y.e.equalsRange(t,e)}))})))||(this._searchScope=e.searchScope,o.searchScope=!0,a=!0)),"undefined"!==typeof e.loop&&this._loop!==e.loop&&(this._loop=e.loop,o.loop=!0,a=!0),"undefined"!==typeof e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,o.isSearching=!0,a=!0),"undefined"!==typeof e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,o.filters=!0,a=!0),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,s!==this.isRegex&&(a=!0,o.isRegex=!0),l!==this.wholeWord&&(a=!0,o.wholeWord=!0),c!==this.matchCase&&(a=!0,o.matchCase=!0),u!==this.preserveCase&&(a=!0,o.preserveCase=!0),a&&this._onFindReplaceStateChange.fire(o)}},{key:"canNavigateBack",value:function(){return this.canNavigateInLoop()||1!==this.matchesPosition}},{key:"canNavigateForward",value:function(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}},{key:"canNavigateInLoop",value:function(){return this._loop||this.matchesCount>=ce}}]),n}(d.JT),_e=n(4801),be=n(29110),Ce=n(24674),Se=n(2801),we=n(14173),ke=n(73616),xe=n(27722),Ee=n(28395);function Te(e){var t,n;return"Up"===(null===(t=e.lookupKeybinding("history.showPrevious"))||void 0===t?void 0:t.getElectronAccelerator())&&"Down"===(null===(n=e.lookupKeybinding("history.showNext"))||void 0===n?void 0:n.getElectronAccelerator())}var Ne=n(96752),Ie=n(59632),De=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},Le=(0,Ne.q5)("find-selection",Se.lA.selection,xe.NC("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),Oe=(0,Ne.q5)("find-collapsed",Se.lA.chevronRight,xe.NC("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Re=(0,Ne.q5)("find-expanded",Se.lA.chevronDown,xe.NC("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Ae=(0,Ne.q5)("find-replace",Se.lA.replace,xe.NC("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Me=(0,Ne.q5)("find-replace-all",Se.lA.replaceAll,xe.NC("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Pe=(0,Ne.q5)("find-previous-match",Se.lA.arrowUp,xe.NC("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Ze=(0,Ne.q5)("find-next-match",Se.lA.arrowDown,xe.NC("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Fe=xe.NC("label.find","Find"),Be=xe.NC("placeholder.find","Find"),He=xe.NC("label.previousMatchButton","Previous Match"),ze=xe.NC("label.nextMatchButton","Next Match"),je=xe.NC("label.toggleSelectionFind","Find in Selection"),Ve=xe.NC("label.closeButton","Close"),We=xe.NC("label.replace","Replace"),Ue=xe.NC("placeholder.replace","Replace"),Ge=xe.NC("label.replaceButton","Replace"),Ke=xe.NC("label.replaceAllButton","Replace All"),Ye=xe.NC("label.toggleReplaceButton","Toggle Replace"),qe=xe.NC("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",ce),$e=xe.NC("label.matchesLocation","{0} of {1}"),Xe=xe.NC("label.noResults","No results"),Qe=419,Je=69,et="ctrlEnterReplaceAll.windows.donotask",tt=ke.dz?256:2048,nt=(0,o.Z)((function e(t){(0,r.Z)(this,e),this.afterLineNumber=t,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}));function it(e,t,n){var i=!!t.match(/\n/);n&&i&&n.selectionStart>0&&e.stopPropagation()}function rt(e,t,n){var i=!!t.match(/\n/);n&&i&&n.selectionEnd<n.value.length&&e.stopPropagation()}var ot=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,o,a,s,l,c,h,f,p){var g;return(0,r.Z)(this,n),(g=t.call(this))._cachedHeight=null,g._revealTimeouts=[],g._codeEditor=e,g._controller=o,g._state=a,g._contextViewProvider=s,g._keybindingService=l,g._contextKeyService=c,g._storageService=f,g._notificationService=p,g._ctrlEnterReplaceAllWarningPrompted=!!f.getBoolean(et,0),g._isVisible=!1,g._isReplaceVisible=!1,g._ignoreChangeEvent=!1,g._updateHistoryDelayer=new u.vp(500),g._register((0,d.OF)((function(){return g._updateHistoryDelayer.cancel()}))),g._register(g._state.onFindReplaceStateChange((function(e){return g._onStateChanged(e)}))),g._buildDomNode(),g._updateButtons(),g._tryUpdateWidgetWidth(),g._findInput.inputBox.layout(),g._register(g._codeEditor.onDidChangeConfiguration((function(e){if(e.hasChanged(83)&&(g._codeEditor.getOption(83)&&g._state.change({isReplaceRevealed:!1},!1),g._updateButtons()),e.hasChanged(133)&&g._tryUpdateWidgetWidth(),e.hasChanged(2)&&g.updateAccessibilitySupport(),e.hasChanged(37)){var t=g._codeEditor.getOption(37).addExtraSpaceOnTop;t&&!g._viewZone&&(g._viewZone=new nt(0),g._showViewZone()),!t&&g._viewZone&&g._removeViewZone()}}))),g.updateAccessibilitySupport(),g._register(g._codeEditor.onDidChangeCursorSelection((function(){g._isVisible&&g._updateToggleSelectionFindButton()}))),g._register(g._codeEditor.onDidFocusEditorWidget((function(){return De((0,de.Z)(g),void 0,void 0,(0,i.Z)().mark((function e(){var t;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isVisible){e.next=5;break}return e.next=3,this._controller.getGlobalBufferTerm();case 3:(t=e.sent)&&t!==this._state.searchString&&(this._state.change({searchString:t},!1),this._findInput.select());case 5:case"end":return e.stop()}}),e,this)})))}))),g._findInputFocused=B.bindTo(c),g._findFocusTracker=g._register(he.trackFocus(g._findInput.inputBox.inputElement)),g._register(g._findFocusTracker.onDidFocus((function(){g._findInputFocused.set(!0),g._updateSearchScope()}))),g._register(g._findFocusTracker.onDidBlur((function(){g._findInputFocused.set(!1)}))),g._replaceInputFocused=H.bindTo(c),g._replaceFocusTracker=g._register(he.trackFocus(g._replaceInput.inputBox.inputElement)),g._register(g._replaceFocusTracker.onDidFocus((function(){g._replaceInputFocused.set(!0),g._updateSearchScope()}))),g._register(g._replaceFocusTracker.onDidBlur((function(){g._replaceInputFocused.set(!1)}))),g._codeEditor.addOverlayWidget((0,de.Z)(g)),g._codeEditor.getOption(37).addExtraSpaceOnTop&&(g._viewZone=new nt(0)),g._applyTheme(h.getColorTheme()),g._register(h.onDidColorThemeChange(g._applyTheme.bind((0,de.Z)(g)))),g._register(g._codeEditor.onDidChangeModel((function(){g._isVisible&&(g._viewZoneId=void 0)}))),g._register(g._codeEditor.onDidScrollChange((function(e){e.scrollTopChanged?g._layoutViewZone():setTimeout((function(){g._layoutViewZone()}),0)}))),g}return(0,o.Z)(n,[{key:"getId",value:function(){return n.ID}},{key:"getDomNode",value:function(){return this._domNode}},{key:"getPosition",value:function(){return this._isVisible?{preference:0}:null}},{key:"_onStateChanged",value:function(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(83)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=he.getTotalWidth(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){var t=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}},{key:"_delayedUpdateHistory",value:function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,we.dL)}},{key:"_updateHistory",value:function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}},{key:"_updateMatchesCount",value:function(){var e;if(this._matchesCount.style.minWidth=Je+"px",this._state.matchesCount>=ce?this._matchesCount.title=qe:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){var t=String(this._state.matchesCount);this._state.matchesCount>=ce&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=h.WU($e,n,t)}else e=Xe;this._matchesCount.appendChild(document.createTextNode(e)),(0,_e.Z9)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Je=Math.max(Je,this._matchesCount.clientWidth)}},{key:"_getAriaLabel",value:function(e,t,n){if(e===Xe)return""===n?xe.NC("ariaSearchNoResultEmpty","{0} found",e):xe.NC("ariaSearchNoResult","{0} found for '{1}'",e,n);if(t){var i=xe.NC("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,n,t.startLineNumber+":"+t.startColumn),r=this._codeEditor.getModel();if(r&&t.startLineNumber<=r.getLineCount()&&t.startLineNumber>=1){var o=r.getLineContent(t.startLineNumber);return"".concat(o,", ").concat(i)}return i}return xe.NC("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,n)}},{key:"_updateToggleSelectionFindButton",value:function(){var e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._isVisible&&(n||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}},{key:"_updateButtons",value:function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var n=!this._codeEditor.getOption(83);this._toggleReplaceBtn.setEnabled(this._isVisible&&n)}},{key:"_reveal",value:function(){var e=this;if(this._revealTimeouts.forEach((function(e){clearTimeout(e)})),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;var t=this._codeEditor.getSelection();switch(this._codeEditor.getOption(37).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":var n=!!t&&t.startLineNumber!==t.endLineNumber;this._toggleSelectionFind.checked=n}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout((function(){e._domNode.classList.add("visible"),e._domNode.setAttribute("aria-hidden","false")}),0)),this._revealTimeouts.push(setTimeout((function(){e._findInput.validate()}),200)),this._codeEditor.layoutOverlayWidget(this);var i=!0;if(this._codeEditor.getOption(37).seedSearchStringFromSelection&&t){var r=this._codeEditor.getDomNode();if(r){var o=he.getDomNodePagePosition(r),a=this._codeEditor.getScrolledVisiblePosition(t.getStartPosition()),s=o.left+(a?a.left:0),l=a?a.top:0;if(this._viewZone&&l<this._viewZone.heightInPx){t.endLineNumber>t.startLineNumber&&(i=!1);var c=he.getTopLeftOffset(this._domNode).left;s>c&&(i=!1);var u=this._codeEditor.getScrolledVisiblePosition(t.getEndPosition());o.left+(u?u.left:0)>c&&(i=!1)}}}this._showViewZone(i)}}},{key:"_hide",value:function(e){this._revealTimeouts.forEach((function(e){clearTimeout(e)})),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}},{key:"_layoutViewZone",value:function(e){var t=this;if(this._codeEditor.getOption(37).addExtraSpaceOnTop){if(this._isVisible){var n=this._viewZone;void 0===this._viewZoneId&&n&&this._codeEditor.changeViewZones((function(i){n.heightInPx=t._getHeight(),t._viewZoneId=i.addZone(n),t._codeEditor.setScrollTop(e||t._codeEditor.getScrollTop()+n.heightInPx)}))}}else this._removeViewZone()}},{key:"_showViewZone",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this._isVisible){var n=this._codeEditor.getOption(37).addExtraSpaceOnTop;if(n){void 0===this._viewZone&&(this._viewZone=new nt(0));var i=this._viewZone;this._codeEditor.changeViewZones((function(n){if(void 0!==e._viewZoneId){var r=e._getHeight();if(r===i.heightInPx)return;var o=r-i.heightInPx;return i.heightInPx=r,n.layoutZone(e._viewZoneId),void(t&&e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+o))}var a=e._getHeight();(a-=e._codeEditor.getOption(77).top)<=0||(i.heightInPx=a,e._viewZoneId=n.addZone(i),t&&e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+a))}))}}}},{key:"_removeViewZone",value:function(){var e=this;this._codeEditor.changeViewZones((function(t){void 0!==e._viewZoneId&&(t.removeZone(e._viewZoneId),e._viewZoneId=void 0,e._viewZone&&(e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()-e._viewZone.heightInPx),e._viewZone=void 0))}))}},{key:"_applyTheme",value:function(e){var t={inputActiveOptionBorder:e.getColor(x.PRb),inputActiveOptionBackground:e.getColor(x.XEs),inputActiveOptionForeground:e.getColor(x.Pvw),inputBackground:e.getColor(x.sEe),inputForeground:e.getColor(x.zJb),inputBorder:e.getColor(x.dt_),inputValidationInfoBackground:e.getColor(x._lC),inputValidationInfoForeground:e.getColor(x.YI3),inputValidationInfoBorder:e.getColor(x.EPQ),inputValidationWarningBackground:e.getColor(x.RV_),inputValidationWarningForeground:e.getColor(x.SUG),inputValidationWarningBorder:e.getColor(x.C3g),inputValidationErrorBackground:e.getColor(x.paE),inputValidationErrorForeground:e.getColor(x._t9),inputValidationErrorBorder:e.getColor(x.OZR)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)}},{key:"_tryUpdateWidgetWidth",value:function(){if(this._isVisible&&he.isInDOM(this._domNode)){var e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)this._domNode.classList.add("hiddenEditor");else{this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");var t=e.width,n=e.minimap.minimapWidth,i=!1,r=!1,o=!1;if(this._resized)if(he.getTotalWidth(this._domNode)>Qe)return this._domNode.style.maxWidth="".concat(t-28-n-15,"px"),void(this._replaceInput.width=he.getTotalWidth(this._findInput.domNode));if(447+n>=t&&(r=!0),447+n-Je>=t&&(o=!0),447+n-Je>=t+50&&(i=!0),this._domNode.classList.toggle("collapsed-find-widget",i),this._domNode.classList.toggle("narrow-find-widget",o),this._domNode.classList.toggle("reduced-find-widget",r),o||i||(this._domNode.style.maxWidth="".concat(t-28-n-15,"px")),this._resized){this._findInput.inputBox.layout();var a=this._findInput.inputBox.element.clientWidth;a>0&&(this._replaceInput.width=a)}else this._isReplaceVisible&&(this._replaceInput.width=he.getTotalWidth(this._findInput.domNode))}}}},{key:"_getHeight",value:function(){var e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4}},{key:"_tryUpdateHeight",value:function(){var e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height="".concat(e,"px"),!0)}},{key:"focusFindInput",value:function(){this._findInput.select(),this._findInput.focus()}},{key:"focusReplaceInput",value:function(){this._replaceInput.select(),this._replaceInput.focus()}},{key:"highlightFindOptions",value:function(){this._findInput.highlightFindOptions()}},{key:"_updateSearchScope",value:function(){var e=this;if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){var t=this._codeEditor.getSelections();t.map((function(t){1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,e._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1)));var n=e._state.currentMatch;return t.startLineNumber===t.endLineNumber||y.e.equalsRange(t,n)?null:t})).filter((function(e){return!!e})),t.length&&this._state.change({searchScope:t},!0)}}},{key:"_onFindInputMouseDown",value:function(e){e.middleButton&&e.stopPropagation()}},{key:"_onFindInputKeyDown",value:function(e){return e.equals(3|tt)?(this._keybindingService.dispatchEvent(e,e.target)||this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?it(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?rt(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}},{key:"_onReplaceInputKeyDown",value:function(e){return e.equals(3|tt)?(this._keybindingService.dispatchEvent(e,e.target)||(ke.ED&&ke.tY&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(xe.NC("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(et,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n")),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?it(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?rt(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}},{key:"getVerticalSashLeft",value:function(e){return 0}},{key:"_keybindingLabelFor",value:function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" (".concat(t.getLabel(),")"):""}},{key:"_buildDomNode",value:function(){var e=this;this._findInput=this._register(new Ee.Yb(null,this._contextViewProvider,{width:221,label:Fe,placeholder:Be,appendCaseSensitiveLabel:this._keybindingLabelFor(te),appendWholeWordsLabel:this._keybindingLabelFor(ne),appendRegexLabel:this._keybindingLabelFor(ie),validation:function(t){if(0===t.length||!e._findInput.getRegex())return null;try{return new RegExp(t,"gu"),null}catch(n){return{content:n.message}}},flexibleHeight:true,flexibleWidth:true,flexibleMaxHeight:118,showHistoryHint:function(){return Te(e._keybindingService)}},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((function(t){return e._onFindInputKeyDown(t)}))),this._register(this._findInput.inputBox.onDidChange((function(){e._ignoreChangeEvent||e._state.change({searchString:e._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((function(){e._state.change({isRegex:e._findInput.getRegex(),wholeWord:e._findInput.getWholeWords(),matchCase:e._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((function(t){t.equals(1026)&&e._isReplaceVisible&&(e._replaceInput.focus(),t.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceInput.focusOnPreserve(),t.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((function(t){e._tryUpdateHeight()&&e._showViewZone()}))),ke.IJ&&this._register(this._findInput.onMouseDown((function(t){return e._onFindInputMouseDown(t)}))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new at({label:He+this._keybindingLabelFor($),icon:Pe,onTrigger:function(){e._codeEditor.getAction($).run().then(void 0,we.dL)}})),this._nextBtn=this._register(new at({label:ze+this._keybindingLabelFor(q),icon:Ze,onTrigger:function(){e._codeEditor.getAction(q).run().then(void 0,we.dL)}}));var t=document.createElement("div");t.className="find-part",t.appendChild(this._findInput.domNode);var n=document.createElement("div");n.className="find-actions",t.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new be.Z({icon:Le,title:je+this._keybindingLabelFor(re),isChecked:!1})),this._register(this._toggleSelectionFind.onChange((function(){if(e._toggleSelectionFind.checked){if(e._codeEditor.hasModel()){var t=e._codeEditor.getSelections();t.map((function(t){return 1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,e._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()?null:t})).filter((function(e){return!!e})),t.length&&e._state.change({searchScope:t},!0)}}else e._state.change({searchScope:null},!0)}))),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new at({label:Ve+this._keybindingLabelFor(ee),icon:Ne.s_,onTrigger:function(){e._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceBtn.isEnabled()?e._replaceBtn.focus():e._codeEditor.focus(),t.preventDefault())}})),n.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new Ee.Nq(null,void 0,{label:We,placeholder:Ue,appendPreserveCaseLabel:this._keybindingLabelFor(oe),history:[],flexibleHeight:true,flexibleWidth:true,flexibleMaxHeight:118,showHistoryHint:function(){return Te(e._keybindingService)}},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((function(t){return e._onReplaceInputKeyDown(t)}))),this._register(this._replaceInput.inputBox.onDidChange((function(){e._state.change({replaceString:e._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((function(t){e._isReplaceVisible&&e._tryUpdateHeight()&&e._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((function(){e._state.change({preserveCase:e._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((function(t){t.equals(2)&&(e._prevBtn.isEnabled()?e._prevBtn.focus():e._nextBtn.isEnabled()?e._nextBtn.focus():e._toggleSelectionFind.enabled?e._toggleSelectionFind.focus():e._closeBtn.isEnabled()&&e._closeBtn.focus(),t.preventDefault())}))),this._replaceBtn=this._register(new at({label:Ge+this._keybindingLabelFor(ae),icon:Ae,onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())}})),this._replaceAllBtn=this._register(new at({label:Ke+this._keybindingLabelFor(se),icon:Me,onTrigger:function(){e._controller.replaceAll()}}));var i=document.createElement("div");i.className="replace-part",i.appendChild(this._replaceInput.domNode);var r=document.createElement("div");r.className="replace-actions",i.appendChild(r),r.appendChild(this._replaceBtn.domNode),r.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new at({label:Ye,className:"codicon toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInput.width=he.getTotalWidth(e._findInput.domNode),e._replaceInput.inputBox.layout()),e._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="".concat(Qe,"px"),this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(i),this._resizeSash=new Ce.g(this._domNode,this,{orientation:0,size:2}),this._resized=!1;var o=Qe;this._register(this._resizeSash.onDidStart((function(){o=he.getTotalWidth(e._domNode)}))),this._register(this._resizeSash.onDidChange((function(t){e._resized=!0;var n=o+t.startX-t.currentX;n<Qe||(n>(parseFloat(he.getComputedStyle(e._domNode).maxWidth)||0)||(e._domNode.style.width="".concat(n,"px"),e._isReplaceVisible&&(e._replaceInput.width=he.getTotalWidth(e._findInput.domNode)),e._findInput.inputBox.layout(),e._tryUpdateHeight()))}))),this._register(this._resizeSash.onDidReset((function(){var t=he.getTotalWidth(e._domNode);if(!(t<Qe)){var n=Qe;if(!e._resized||t===Qe){var i=e._codeEditor.getLayoutInfo();n=i.width-28-i.minimap.minimapWidth-15,e._resized=!0}e._domNode.style.width="".concat(n,"px"),e._isReplaceVisible&&(e._replaceInput.width=he.getTotalWidth(e._findInput.domNode)),e._findInput.inputBox.layout()}})))}},{key:"updateAccessibilitySupport",value:function(){var e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}]),n}(pe.$);ot.ID="editor.contrib.findWidget";var at=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;(0,r.Z)(this,n),(i=t.call(this))._opts=e;var o="button";return i._opts.className&&(o=o+" "+i._opts.className),i._opts.icon&&(o=o+" "+E.kS.asClassName(i._opts.icon)),i._domNode=document.createElement("div"),i._domNode.title=i._opts.label,i._domNode.tabIndex=0,i._domNode.className=o,i._domNode.setAttribute("role","button"),i._domNode.setAttribute("aria-label",i._opts.label),i.onclick(i._domNode,(function(e){i._opts.onTrigger(),e.preventDefault()})),i.onkeydown(i._domNode,(function(e){var t,n;if(e.equals(10)||e.equals(3))return i._opts.onTrigger(),void e.preventDefault();null===(n=(t=i._opts).onKeyDown)||void 0===n||n.call(t,e)})),i}return(0,o.Z)(n,[{key:"domNode",get:function(){return this._domNode}},{key:"isEnabled",value:function(){return this._domNode.tabIndex>=0}},{key:"focus",value:function(){this._domNode.focus()}},{key:"setEnabled",value:function(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}},{key:"setExpanded",value:function(e){var t,n,i,r;(this._domNode.setAttribute("aria-expanded",String(!!e)),e)?((t=this._domNode.classList).remove.apply(t,(0,C.Z)(E.kS.asClassNameArray(Oe))),(n=this._domNode.classList).add.apply(n,(0,C.Z)(E.kS.asClassNameArray(Re)))):((i=this._domNode.classList).remove.apply(i,(0,C.Z)(E.kS.asClassNameArray(Re))),(r=this._domNode.classList).add.apply(r,(0,C.Z)(E.kS.asClassNameArray(Oe))))}}]),n}(pe.$);(0,E.Ic)((function(e,t){var n=function(e,n){n&&t.addRule(".monaco-editor ".concat(e," { background-color: ").concat(n,"; }"))};n(".findMatch",e.getColor(x.MUv)),n(".currentFindMatch",e.getColor(x.nyM)),n(".findScope",e.getColor(x.jUe)),n(".find-widget",e.getColor(x.D0T));var i=e.getColor(x.rh);i&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 0 8px 2px ".concat(i,"; }"));var r=e.getColor(x.EiJ);r&&t.addRule(".monaco-editor .findMatch { border: 1px ".concat((0,Ie.c3)(e.type)?"dotted":"solid"," ").concat(r,"; box-sizing: border-box; }"));var o=e.getColor(x.pnM);o&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid ".concat(o,"; padding: 1px; box-sizing: border-box; }"));var a=e.getColor(x.gkn);a&&t.addRule(".monaco-editor .findScope { border: 1px ".concat((0,Ie.c3)(e.type)?"dashed":"solid"," ").concat(a,"; }"));var s=e.getColor(x.lRK);s&&t.addRule(".monaco-editor .find-widget { border: 1px solid ".concat(s,"; }"));var l=e.getColor(x.Hfx);l&&t.addRule(".monaco-editor .find-widget { color: ".concat(l,"; }"));var c=e.getColor(x.Ido);c&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: ".concat(c,"; }"));var u=e.getColor(x.Ng6);if(u)t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: ".concat(u,"; }"));else{var d=e.getColor(x.D1_);d&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: ".concat(d,"; }"))}var h=e.getColor(x.lUq);h&&t.addRule("\n\t\t.monaco-editor .find-widget .button:not(.disabled):hover,\n\t\t.monaco-editor .find-widget .codicon-find-selection:hover {\n\t\t\tbackground-color: ".concat(h," !important;\n\t\t}\n\t"));var f=e.getColor(x.R80);f&&t.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ".concat(f,"; }"))}));var st=n(48996),lt=n(1255),ct=n(22468),ut=n(47569),dt=n(15493),ht=n(69681),ft=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},pt=function(e,t){return function(n,i){t(n,i,e)}},gt=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},vt=524288;function mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"single",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e.hasModel())return null;var i=e.getSelection();if("single"===t&&i.startLineNumber===i.endLineNumber||"multiple"===t)if(i.isEmpty()){var r=e.getConfiguredWordAtPosition(i.getStartPosition());if(r&&!1===n)return r.word}else if(e.getModel().getValueLengthInRange(i)<vt)return e.getModel().getValueInRange(i);return null}var yt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,o,a){var s;return(0,r.Z)(this,n),(s=t.call(this))._editor=e,s._findWidgetVisible=F.bindTo(i),s._contextKeyService=i,s._storageService=o,s._clipboardService=a,s._updateHistoryDelayer=new u.vp(500),s._state=s._register(new ye),s.loadQueryState(),s._register(s._state.onFindReplaceStateChange((function(e){return s._onStateChanged(e)}))),s._model=null,s._register(s._editor.onDidChangeModel((function(){var e=s._editor.getModel()&&s._state.isRevealed;s.disposeModel(),s._state.change({searchScope:null,matchCase:s._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:s._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:s._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:s._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&s._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:s._editor.getOption(37).loop})}))),s}return(0,o.Z)(n,[{key:"editor",get:function(){return this._editor}},{key:"dispose",value:function(){this.disposeModel(),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}},{key:"disposeModel",value:function(){this._model&&(this._model.dispose(),this._model=null)}},{key:"_onStateChanged",value:function(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}},{key:"saveQueryState",value:function(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,0),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,0),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,0),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,0)}},{key:"loadQueryState",value:function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}},{key:"isFindInputFocused",value:function(){return!!B.getValue(this._contextKeyService)}},{key:"getState",value:function(){return this._state}},{key:"closeFindWidget",value:function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}},{key:"toggleCaseSensitive",value:function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}},{key:"toggleWholeWords",value:function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}},{key:"toggleRegex",value:function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}},{key:"togglePreserveCase",value:function(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}},{key:"toggleSearchScope",value:function(){var e=this;if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var t=this._editor.getSelections();t.map((function(t){return 1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,e._editor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()?null:t})).filter((function(e){return!!e})),t.length&&this._state.change({searchScope:t},!0)}}},{key:"setSearchString",value:function(e){this._state.isRegex&&(e=h.ec(e)),this._state.change({searchString:e},!1)}},{key:"highlightFindOptions",value:function(){}},{key:"_start",value:function(e,t){return gt(this,void 0,void 0,(0,i.Z)().mark((function n(){var r,o,a,s,l;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.disposeModel(),this._editor.hasModel()){n.next=3;break}return n.abrupt("return");case 3:if(r=Object.assign(Object.assign({},t),{isRevealed:!0}),"single"===e.seedSearchStringFromSelection?(o=mt(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection))&&(this._state.isRegex?r.searchString=h.ec(o):r.searchString=o):"multiple"!==e.seedSearchStringFromSelection||e.updateSearchScope||(a=mt(this._editor,e.seedSearchStringFromSelection))&&(r.searchString=a),r.searchString||!e.seedSearchStringFromGlobalClipboard){n.next=12;break}return n.next=8,this.getGlobalBufferTerm();case 8:if(s=n.sent,this._editor.hasModel()){n.next=11;break}return n.abrupt("return");case 11:s&&(r.searchString=s);case 12:e.forceRevealReplace||r.isReplaceRevealed?r.isReplaceRevealed=!0:this._findWidgetVisible.get()||(r.isReplaceRevealed=!1),e.updateSearchScope&&(l=this._editor.getSelections()).some((function(e){return!e.isEmpty()}))&&(r.searchScope=l),r.loop=e.loop,this._state.change(r,!1),this._model||(this._model=new ue(this._editor,this._state));case 17:case"end":return n.stop()}}),n,this)})))}},{key:"start",value:function(e,t){return this._start(e,t)}},{key:"moveToNextMatch",value:function(){return!!this._model&&(this._model.moveToNextMatch(),!0)}},{key:"moveToPrevMatch",value:function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}},{key:"replace",value:function(){return!!this._model&&(this._model.replace(),!0)}},{key:"replaceAll",value:function(){return!!this._model&&(this._model.replaceAll(),!0)}},{key:"selectAllMatches",value:function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}},{key:"getGlobalBufferTerm",value:function(){return gt(this,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._editor.getOption(37).globalFindClipboard||!this._editor.hasModel()||this._editor.getModel().isTooLargeForSyncing()){e.next=2;break}return e.abrupt("return",this._clipboardService.readFindText());case 2:return e.abrupt("return","");case 3:case"end":return e.stop()}}),e,this)})))}},{key:"setGlobalBufferTerm",value:function(e){this._editor.getOption(37).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}}],[{key:"get",value:function(e){return e.getContribution(n.ID)}}]),n}(d.JT);yt.ID="editor.contrib.findController";var _t=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,o,a,s,l,c,u){var d;return(0,r.Z)(this,n),(d=t.call(this,e,o,c,u))._contextViewService=i,d._keybindingService=a,d._themeService=s,d._notificationService=l,d._widget=null,d._findOptionsWidget=null,d}return(0,o.Z)(n,[{key:"_start",value:function(e,t){var r=this,o=Object.create(null,{_start:{get:function(){return(0,a.Z)((0,s.Z)(n.prototype),"_start",r)}}});return gt(this,void 0,void 0,(0,i.Z)().mark((function n(){var r,a,s;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this._widget||this._createFindWidget(),r=this._editor.getSelection(),a=!1,n.t0=this._editor.getOption(37).autoFindInSelection,n.next="always"===n.t0?6:"never"===n.t0?8:"multiline"===n.t0?10:13;break;case 6:return a=!0,n.abrupt("break",14);case 8:return a=!1,n.abrupt("break",14);case 10:return s=!!r&&r.startLineNumber!==r.endLineNumber,a=s,n.abrupt("break",14);case 13:return n.abrupt("break",14);case 14:return e.updateSearchScope=e.updateSearchScope||a,n.next=17,o._start.call(this,e,t);case 17:this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput());case 18:case"end":return n.stop()}}),n,this)})))}},{key:"highlightFindOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}},{key:"_createFindWidget",value:function(){this._widget=this._register(new ot(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new ge(this._editor,this._state,this._keybindingService,this._themeService))}}]),n}(yt=ft([pt(1,Z.i6),pt(2,ht.Uy),pt(3,lt.p)],yt));_t=ft([pt(1,ct.u),pt(2,Z.i6),pt(3,ut.d),pt(4,E.XE),pt(5,dt.lT),pt(6,ht.Uy),pt(7,lt.p)],_t);var bt=(0,f.rn)(new f.jY({id:G,label:xe.NC("startFindAction","Find"),alias:"Find",precondition:Z.Ao.or(p.u.focus,Z.Ao.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:st.eH.MenubarEditMenu,group:"3_find",title:xe.NC({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));bt.addImplementation(0,(function(e,t,n){var i=yt.get(t);return!!i&&i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(37).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(37).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(37).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(37).loop})}));var Ct={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},regex:{type:"boolean"},regexOverride:{type:"number",description:xe.NC("actions.find.isRegexOverride",'Overrides "Use Regular Expression" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False')},wholeWord:{type:"boolean"},wholeWordOverride:{type:"number",description:xe.NC("actions.find.wholeWordOverride",'Overrides "Match Whole Word" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False')},matchCase:{type:"boolean"},matchCaseOverride:{type:"number",description:xe.NC("actions.find.matchCaseOverride",'Overrides "Math Case" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False')},preserveCase:{type:"boolean"},preserveCaseOverride:{type:"number",description:xe.NC("actions.find.preserveCaseOverride",'Overrides "Preserve Case" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False')},findInSelection:{type:"boolean"}}}}]},St=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:Y,label:xe.NC("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},description:Ct})}return(0,o.Z)(n,[{key:"run",value:function(e,t,n){return gt(this,void 0,void 0,(0,i.Z)().mark((function e(){var r,o;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=yt.get(t))){e.next=6;break}return o=n?{searchString:n.searchString,replaceString:n.replaceString,isReplaceRevealed:void 0!==n.replaceString,isRegex:n.isRegex,wholeWord:n.matchWholeWord,matchCase:n.isCaseSensitive,preserveCase:n.preserveCase}:{},e.next=5,r.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===r.getState().searchString.length&&"never"!==t.getOption(37).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(37).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(null===n||void 0===n?void 0:n.findInSelection)||!1,loop:t.getOption(37).loop},o);case 5:r.setGlobalBufferTerm(r.getState().searchString);case 6:case"end":return e.stop()}}),e)})))}}]),n}(f.R6),wt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:K,label:xe.NC("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}return(0,o.Z)(n,[{key:"run",value:function(e,t){return gt(this,void 0,void 0,(0,i.Z)().mark((function e(){var n;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=yt.get(t))){e.next=5;break}return e.next=4,n.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(37).loop});case 4:n.setGlobalBufferTerm(n.getState().searchString);case 5:case"end":return e.stop()}}),e)})))}}]),n}(f.R6),kt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"run",value:function(e,t){return gt(this,void 0,void 0,(0,i.Z)().mark((function e(){var n;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=yt.get(t))||this._run(n)){e.next=5;break}return e.next=4,n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&"never"!==t.getOption(37).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(37).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(37).loop});case 4:this._run(n);case 5:case"end":return e.stop()}}),e,this)})))}}]),n}(f.R6),xt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:q,label:xe.NC("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:p.u.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:Z.Ao.and(p.u.focus,B),primary:3,weight:100}]})}return(0,o.Z)(n,[{key:"_run",value:function(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}]),n}(kt),Et=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:$,label:xe.NC("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:p.u.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:Z.Ao.and(p.u.focus,B),primary:1027,weight:100}]})}return(0,o.Z)(n,[{key:"_run",value:function(e){return e.moveToPrevMatch()}}]),n}(kt),Tt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"run",value:function(e,t){return gt(this,void 0,void 0,(0,i.Z)().mark((function e(){var n,r,o;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=yt.get(t)){e.next=3;break}return e.abrupt("return");case 3:if(r="selection"===t.getOption(37).seedSearchStringFromSelection,o=null,"never"!==t.getOption(37).seedSearchStringFromSelection&&(o=mt(t,"single",r)),o&&n.setSearchString(o),this._run(n)){e.next=11;break}return e.next=10,n.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(37).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:r,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(37).loop});case 10:this._run(n);case 11:case"end":return e.stop()}}),e,this)})))}}]),n}(f.R6),Nt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:X,label:xe.NC("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:p.u.focus,primary:2109,weight:100}})}return(0,o.Z)(n,[{key:"_run",value:function(e){return e.moveToNextMatch()}}]),n}(Tt),It=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:Q,label:xe.NC("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:p.u.focus,primary:3133,weight:100}})}return(0,o.Z)(n,[{key:"_run",value:function(e){return e.moveToPrevMatch()}}]),n}(Tt),Dt=(0,f.rn)(new f.jY({id:J,label:xe.NC("startReplace","Replace"),alias:"Replace",precondition:Z.Ao.or(p.u.focus,Z.Ao.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:st.eH.MenubarEditMenu,group:"3_find",title:xe.NC({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));Dt.addImplementation(0,(function(e,t,n){if(!t.hasModel()||t.getOption(83))return!1;var i=yt.get(t);if(!i)return!1;var r=t.getSelection(),o=i.isFindInputFocused(),a=!r.isEmpty()&&r.startLineNumber===r.endLineNumber&&"never"!==t.getOption(37).seedSearchStringFromSelection&&!o,s=o||a?2:1;return i.start({forceRevealReplace:!0,seedSearchStringFromSelection:a?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(37).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(37).seedSearchStringFromSelection,shouldFocus:s,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(37).loop})})),(0,f._K)(yt.ID,_t),(0,f.Qr)(St),(0,f.Qr)(wt),(0,f.Qr)(xt),(0,f.Qr)(Et),(0,f.Qr)(Nt),(0,f.Qr)(It);var Lt=f._l.bindToContribution(yt.get);(0,f.fK)(new Lt({id:ee,precondition:F,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:105,kbExpr:Z.Ao.and(p.u.focus,Z.Ao.not("isComposing")),primary:9,secondary:[1033]}})),(0,f.fK)(new Lt({id:te,precondition:void 0,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:105,kbExpr:p.u.focus,primary:z.primary,mac:z.mac,win:z.win,linux:z.linux}})),(0,f.fK)(new Lt({id:ne,precondition:void 0,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:105,kbExpr:p.u.focus,primary:j.primary,mac:j.mac,win:j.win,linux:j.linux}})),(0,f.fK)(new Lt({id:ie,precondition:void 0,handler:function(e){return e.toggleRegex()},kbOpts:{weight:105,kbExpr:p.u.focus,primary:V.primary,mac:V.mac,win:V.win,linux:V.linux}})),(0,f.fK)(new Lt({id:re,precondition:void 0,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:105,kbExpr:p.u.focus,primary:W.primary,mac:W.mac,win:W.win,linux:W.linux}})),(0,f.fK)(new Lt({id:oe,precondition:void 0,handler:function(e){return e.togglePreserveCase()},kbOpts:{weight:105,kbExpr:p.u.focus,primary:U.primary,mac:U.mac,win:U.win,linux:U.linux}})),(0,f.fK)(new Lt({id:ae,precondition:F,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:p.u.focus,primary:3094}})),(0,f.fK)(new Lt({id:ae,precondition:F,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:Z.Ao.and(p.u.focus,H),primary:3}})),(0,f.fK)(new Lt({id:se,precondition:F,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:p.u.focus,primary:2563}})),(0,f.fK)(new Lt({id:se,precondition:F,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:Z.Ao.and(p.u.focus,H),primary:void 0,mac:{primary:2051}}})),(0,f.fK)(new Lt({id:le,precondition:F,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:105,kbExpr:p.u.focus,primary:515}}))},74166:function(e,t,n){"use strict";n.r(t),n.d(t,{FoldingController:function(){return de},editorFoldForeground:function(){return Ae},foldBackgroundBackground:function(){return Re}});var i=n(93433),r=n(37762),o=n(15671),a=n(43144),s=n(60136),l=n(27277),c=n(60022),u=n(14173),d=n(16321),h=n(11860),f=n(32377),p=n(85294),g=n(31782),v=n(62381),m=n(67245),y=n(12905),_=n(29662),b=n(73097),C=n(4942),S=16777215,w=4278190080,k=function(){function e(t){(0,o.Z)(this,e);var n=Math.ceil(t/32);this._states=new Uint32Array(n)}return(0,a.Z)(e,[{key:"get",value:function(e){var t=e/32|0,n=e%32;return 0!==(this._states[t]&1<<n)}},{key:"set",value:function(e,t){var n=e/32|0,i=e%32,r=this._states[n];this._states[n]=t?r|1<<i:r&~(1<<i)}}]),e}(),x=function(){function e(t,n,i){var r;if((0,o.Z)(this,e),this.sourceAbbr=(r={},(0,C.Z)(r,0," "),(0,C.Z)(r,1,"u"),(0,C.Z)(r,2,"r"),r),t.length!==n.length||t.length>65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=t,this._endIndexes=n,this._collapseStates=new k(t.length),this._userDefinedStates=new k(t.length),this._recoveredStates=new k(t.length),this._types=i,this._parentsComputed=!1}return(0,a.Z)(e,[{key:"ensureParentIndices",value:function(){var e=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var t=[],n=function(n,i){var r=t[t.length-1];return e.getStartLineNumber(r)<=n&&e.getEndLineNumber(r)>=i},i=0,r=this._startIndexes.length;i<r;i++){var o=this._startIndexes[i],a=this._endIndexes[i];if(o>S||a>S)throw new Error("startLineNumber or endLineNumber must not exceed 16777215");for(;t.length>0&&!n(o,a);)t.pop();var s=t.length>0?t[t.length-1]:-1;t.push(i),this._startIndexes[i]=o+((255&s)<<24),this._endIndexes[i]=a+((65280&s)<<16)}}}},{key:"length",get:function(){return this._startIndexes.length}},{key:"getStartLineNumber",value:function(e){return this._startIndexes[e]&S}},{key:"getEndLineNumber",value:function(e){return this._endIndexes[e]&S}},{key:"getType",value:function(e){return this._types?this._types[e]:void 0}},{key:"hasTypes",value:function(){return!!this._types}},{key:"isCollapsed",value:function(e){return this._collapseStates.get(e)}},{key:"setCollapsed",value:function(e,t){this._collapseStates.set(e,t)}},{key:"isUserDefined",value:function(e){return this._userDefinedStates.get(e)}},{key:"setUserDefined",value:function(e,t){return this._userDefinedStates.set(e,t)}},{key:"isRecovered",value:function(e){return this._recoveredStates.get(e)}},{key:"setRecovered",value:function(e,t){return this._recoveredStates.set(e,t)}},{key:"getSource",value:function(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}},{key:"setSource",value:function(e,t){1===t?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):2===t?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}},{key:"setCollapsedAllOfType",value:function(e,t){var n=!1;if(this._types)for(var i=0;i<this._types.length;i++)this._types[i]===e&&(this.setCollapsed(i,t),n=!0);return n}},{key:"toRegion",value:function(e){return new E(this,e)}},{key:"getParentIndex",value:function(e){this.ensureParentIndices();var t=((this._startIndexes[e]&w)>>>24)+((this._endIndexes[e]&w)>>>16);return 65535===t?-1:t}},{key:"contains",value:function(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}},{key:"findIndex",value:function(e){var t=0,n=this._startIndexes.length;if(0===n)return-1;for(;t<n;){var i=Math.floor((t+n)/2);e<this.getStartLineNumber(i)?n=i:t=i+1}return t-1}},{key:"findRange",value:function(e){var t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}},{key:"toString",value:function(){for(var e=[],t=0;t<this.length;t++)e[t]="[".concat(this.sourceAbbr[this.getSource(t)]).concat(this.isCollapsed(t)?"+":"-","] ").concat(this.getStartLineNumber(t),"/").concat(this.getEndLineNumber(t));return e.join(", ")}},{key:"toFoldRange",value:function(e){return{startLineNumber:this._startIndexes[e]&S,endLineNumber:this._endIndexes[e]&S,type:this._types?this._types[e]:void 0,isCollapsed:this.isCollapsed(e),source:this.getSource(e)}}}],[{key:"fromFoldRanges",value:function(t){for(var n=t.length,i=new Uint32Array(n),r=new Uint32Array(n),o=[],a=!1,s=0;s<n;s++){var l=t[s];i[s]=l.startLineNumber,r[s]=l.endLineNumber,o.push(l.type),l.type&&(a=!0)}a||(o=void 0);for(var c=new e(i,r,o),u=0;u<n;u++)t[u].isCollapsed&&c.setCollapsed(u,!0),c.setSource(u,t[u].source);return c}},{key:"sanitizeAndMerge",value:function(e,t,n){n=null!==n&&void 0!==n?n:Number.MAX_VALUE;for(var i,r=function(e,t){return Array.isArray(e)?function(n){return n<t?e[n]:void 0}:function(n){return n<t?e.toFoldRange(n):void 0}},o=r(e,e.length),a=r(t,t.length),s=0,l=0,c=o(0),u=a(0),d=[],h=0,f=[];c||u;){var p=void 0;if(u&&(!c||c.startLineNumber>=u.startLineNumber))c&&c.startLineNumber===u.startLineNumber?(1===u.source?p=u:((p=c).isCollapsed=u.isCollapsed&&c.endLineNumber===u.endLineNumber,p.source=0),c=o(++s)):(p=u,u.isCollapsed&&0===u.source&&(p.source=2)),u=a(++l);else{for(var g=l,v=u;;){if(!v||v.startLineNumber>c.endLineNumber){p=c;break}if(1===v.source&&v.endLineNumber>c.endLineNumber)break;v=a(++g)}c=o(++s)}if(p){for(;i&&i.endLineNumber<p.startLineNumber;)i=d.pop();p.endLineNumber>p.startLineNumber&&p.startLineNumber>h&&p.endLineNumber<=n&&(!i||i.endLineNumber>=p.endLineNumber)&&(f.push(p),h=p.startLineNumber,i&&d.push(i),i=p)}}return f}}]),e}(),E=function(){function e(t,n){(0,o.Z)(this,e),this.ranges=t,this.index=n}return(0,a.Z)(e,[{key:"startLineNumber",get:function(){return this.ranges.getStartLineNumber(this.index)}},{key:"endLineNumber",get:function(){return this.ranges.getEndLineNumber(this.index)}},{key:"regionIndex",get:function(){return this.index}},{key:"parentIndex",get:function(){return this.ranges.getParentIndex(this.index)}},{key:"isCollapsed",get:function(){return this.ranges.isCollapsed(this.index)}},{key:"containedBy",value:function(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}},{key:"containsLine",value:function(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}]),e}(),T=n(57741),N=function(){function e(t,n){(0,o.Z)(this,e),this._updateEventEmitter=new b.Q5,this.onDidChange=this._updateEventEmitter.event,this._textModel=t,this._decorationProvider=n,this._regions=new x(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}return(0,a.Z)(e,[{key:"regions",get:function(){return this._regions}},{key:"textModel",get:function(){return this._textModel}},{key:"toggleCollapseState",value:function(e){var t=this;if(e.length){e=e.sort((function(e,t){return e.regionIndex-t.regionIndex}));var n={};this._decorationProvider.changeDecorations((function(i){var o,a=0,s=-1,l=-1,c=function(e){for(;a<e;){var n=t._regions.getEndLineNumber(a),r=t._regions.isCollapsed(a);if(n<=s){var o=0!==t.regions.getSource(a);i.changeDecorationOptions(t._editorDecorationIds[a],t._decorationProvider.getDecorationOption(r,n<=l,o))}r&&n>l&&(l=n),a++}},u=(0,r.Z)(e);try{for(u.s();!(o=u.n()).done;){var d=o.value.regionIndex,h=t._editorDecorationIds[d];if(h&&!n[h]){n[h]=!0,c(d);var f=!t._regions.isCollapsed(d);t._regions.setCollapsed(d,f),s=Math.max(s,t._regions.getEndLineNumber(d))}}}catch(p){u.e(p)}finally{u.f()}c(t._regions.length)})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}}},{key:"removeManualRanges",value:function(e){for(var t=new Array,n=function(t){var n,i=(0,r.Z)(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!(o.startLineNumber>t.endLineNumber||t.startLineNumber>o.endLineNumber))return!0}}catch(a){i.e(a)}finally{i.f()}return!1},i=0;i<this._regions.length;i++){var o=this._regions.toFoldRange(i);0!==o.source&&n(o)||t.push(o)}this.updatePost(x.fromFoldRanges(t))}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this._currentFoldedOrManualRanges(t),i=x.sanitizeAndMerge(e,n,this._textModel.getLineCount());this.updatePost(x.fromFoldRanges(i))}},{key:"updatePost",value:function(e){for(var t=this,n=[],i=-1,r=0,o=e.length;r<o;r++){var a=e.getStartLineNumber(r),s=e.getEndLineNumber(r),l=e.isCollapsed(r),c=0!==e.getSource(r),u={startLineNumber:a,startColumn:this._textModel.getLineMaxColumn(a),endLineNumber:s,endColumn:this._textModel.getLineMaxColumn(s)+1};n.push({range:u,options:this._decorationProvider.getDecorationOption(l,s<=i,c)}),l&&s>i&&(i=s)}this._decorationProvider.changeDecorations((function(e){return t._editorDecorationIds=e.deltaDecorations(t._editorDecorationIds,n)})),this._regions=e,this._updateEventEmitter.fire({model:this})}},{key:"_currentFoldedOrManualRanges",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=function(t,n){var i,o=(0,r.Z)(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(t<a&&a<=n)return!0}}catch(s){o.e(s)}finally{o.f()}return!1},n=[],i=0,o=this._regions.length;i<o;i++){var a=this.regions.isCollapsed(i),s=this.regions.getSource(i);if(a||0!==s){var l=this._regions.toFoldRange(i),c=this._textModel.getDecorationRange(this._editorDecorationIds[i]);c&&(a&&(t(c.startLineNumber,c.endLineNumber)||c.endLineNumber-c.startLineNumber!==l.endLineNumber-l.startLineNumber)&&(a=!1),n.push({startLineNumber:c.startLineNumber,endLineNumber:c.endLineNumber,type:l.type,isCollapsed:a,source:s}))}}return n}},{key:"getMemento",value:function(){for(var e=this._currentFoldedOrManualRanges(),t=[],n=0,i=e.length;n<i;n++){var r=e[n],o=this._getLinesChecksum(r.startLineNumber+1,r.endLineNumber);t.push({startLineNumber:r.startLineNumber,endLineNumber:r.endLineNumber,isCollapsed:r.isCollapsed,source:r.source,checksum:o})}return t.length>0?t:void 0}},{key:"applyMemento",value:function(e){var t,n;if(Array.isArray(e)){var i,o=[],a=this._textModel.getLineCount(),s=(0,r.Z)(e);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(!(l.startLineNumber>=l.endLineNumber||l.startLineNumber<1||l.endLineNumber>a)){var c=this._getLinesChecksum(l.startLineNumber+1,l.endLineNumber);l.checksum&&c!==l.checksum||o.push({startLineNumber:l.startLineNumber,endLineNumber:l.endLineNumber,type:void 0,isCollapsed:null===(t=l.isCollapsed)||void 0===t||t,source:null!==(n=l.source)&&void 0!==n?n:0})}}}catch(d){s.e(d)}finally{s.f()}var u=x.sanitizeAndMerge(this._regions,o,a);this.updatePost(x.fromFoldRanges(u))}}},{key:"_getLinesChecksum",value:function(e,t){return(0,T.vp)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}},{key:"dispose",value:function(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}},{key:"getAllRegionsAtLine",value:function(e,t){var n=[];if(this._regions)for(var i=this._regions.findRange(e),r=1;i>=0;){var o=this._regions.toRegion(i);t&&!t(o,r)||n.push(o),r++,i=o.parentIndex}return n}},{key:"getRegionAtLine",value:function(e){if(this._regions){var t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}},{key:"getRegionsInside",value:function(e,t){var n=[],i=e?e.regionIndex+1:0,r=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length)for(var o=[],a=i,s=this._regions.length;a<s;a++){var l=this._regions.toRegion(a);if(!(this._regions.getStartLineNumber(a)<r))break;for(;o.length>0&&!l.containedBy(o[o.length-1]);)o.pop();o.push(l),t(l,o.length)&&n.push(l)}else for(var c=i,u=this._regions.length;c<u;c++){var d=this._regions.toRegion(c);if(!(this._regions.getStartLineNumber(c)<r))break;t&&!t(d)||n.push(d)}return n}}]),e}();function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_VALUE,o=arguments.length>3?arguments[3]:void 0,a=[];if(o&&o.length>0){var s,l=(0,r.Z)(o);try{for(l.s();!(s=l.n()).done;){var c=s.value,u=e.getRegionAtLine(c);if(u&&(u.isCollapsed!==t&&a.push(u),n>1)){var d=e.getRegionsInside(u,(function(e,i){return e.isCollapsed!==t&&i<n}));a.push.apply(a,(0,i.Z)(d))}}}catch(f){l.e(f)}finally{l.f()}}else{var h=e.getRegionsInside(null,(function(e,i){return e.isCollapsed!==t&&i<n}));a.push.apply(a,(0,i.Z)(h))}e.toggleCollapseState(a)}function D(e,t,n,o){var a,s=[],l=(0,r.Z)(o);try{for(l.s();!(a=l.n()).done;){var c=a.value,u=e.getAllRegionsAtLine(c,(function(e,i){return e.isCollapsed!==t&&i<=n}));s.push.apply(s,(0,i.Z)(u))}}catch(d){l.e(d)}finally{l.f()}e.toggleCollapseState(s)}function L(e,t,n){var i,o=[],a=(0,r.Z)(n);try{for(a.s();!(i=a.n()).done;){var s=i.value,l=e.getAllRegionsAtLine(s,void 0);l.length>0&&o.push(l[0])}}catch(u){a.e(u)}finally{a.f()}var c=e.getRegionsInside(null,(function(e){return o.every((function(t){return!t.containedBy(e)&&!e.containedBy(t)}))&&e.isCollapsed!==t}));e.toggleCollapseState(c)}function O(e,t,n){for(var i=e.textModel,r=e.regions,o=[],a=r.length-1;a>=0;a--)if(n!==r.isCollapsed(a)){var s=r.getStartLineNumber(a);t.test(i.getLineContent(s))&&o.push(r.toRegion(a))}e.toggleCollapseState(o)}function R(e,t,n){for(var i=e.regions,r=[],o=i.length-1;o>=0;o--)n!==i.isCollapsed(o)&&t===i.getType(o)&&r.push(i.toRegion(o));e.toggleCollapseState(r)}var A=n(29671),M=n(80133),P=n(37561),Z=function(){function e(t){var n=this;(0,o.Z)(this,e),this._updateEventEmitter=new b.Q5,this._hasLineChanges=!1,this._foldingModel=t,this._foldingModelListener=t.onDidChange((function(e){return n.updateHiddenRanges()})),this._hiddenRanges=[],t.regions.length&&this.updateHiddenRanges()}return(0,a.Z)(e,[{key:"onDidChange",get:function(){return this._updateEventEmitter.event}},{key:"hiddenRanges",get:function(){return this._hiddenRanges}},{key:"notifyChangeModelContent",value:function(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some((function(e){return e.range.endLineNumber!==e.range.startLineNumber||0!==(0,P.Q)(e.text)[0]})))}},{key:"updateHiddenRanges",value:function(){for(var e=!1,t=[],n=0,i=0,r=Number.MAX_VALUE,o=-1,a=this._foldingModel.regions;n<a.length;n++)if(a.isCollapsed(n)){var s=a.getStartLineNumber(n)+1,l=a.getEndLineNumber(n);r<=s&&l<=o||(!e&&i<this._hiddenRanges.length&&this._hiddenRanges[i].startLineNumber===s&&this._hiddenRanges[i].endLineNumber===l?(t.push(this._hiddenRanges[i]),i++):(e=!0,t.push(new M.e(s,1,l,1))),r=s,o=l)}(this._hasLineChanges||e||i<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}},{key:"applyHiddenRanges",value:function(e){this._hiddenRanges=e,this._hasLineChanges=!1,this._updateEventEmitter.fire(e)}},{key:"hasRanges",value:function(){return this._hiddenRanges.length>0}},{key:"isHidden",value:function(e){return null!==F(this._hiddenRanges,e)}},{key:"adjustSelections",value:function(e){for(var t=this,n=!1,i=this._foldingModel.textModel,r=null,o=function(e){return r&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,r)||(r=F(t._hiddenRanges,e)),r?r.startLineNumber-1:null},a=0,s=e.length;a<s;a++){var l=e[a],c=o(l.startLineNumber);c&&(l=l.setStartPosition(c,i.getLineMaxColumn(c)),n=!0);var u=o(l.endLineNumber);u&&(l=l.setEndPosition(u,i.getLineMaxColumn(u)),n=!0),e[a]=l}return n}},{key:"dispose",value:function(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}]),e}();function F(e,t){var n=(0,A.lG)(e,(function(e){return t<e.startLineNumber}))-1;return n>=0&&e[n].endLineNumber>=t?e[n]:null}var B=n(15889),H=function(){function e(t,n,i){(0,o.Z)(this,e),this.editorModel=t,this.languageConfigurationService=n,this.maxFoldingRegions=i,this.id="indent"}return(0,a.Z)(e,[{key:"dispose",value:function(){}},{key:"compute",value:function(e,t){var n=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=n&&!!n.offSide,r=n&&n.markers;return Promise.resolve(function(e,t,n,i,r){var o=e.getOptions().tabSize,a=new z(i=null!==i&&void 0!==i?i:5e3,r),s=void 0;n&&(s=new RegExp("(".concat(n.start.source,")|(?:").concat(n.end.source,")")));var l=[],c=e.getLineCount()+1;l.push({indent:-1,endAbove:c,line:c});for(var u=e.getLineCount();u>0;u--){var d=e.getLineContent(u),h=(0,B.q)(d,o),f=l[l.length-1];if(-1!==h){var p=void 0;if(s&&(p=d.match(s))){if(!p[1]){l.push({indent:-2,endAbove:u,line:u});continue}for(var g=l.length-1;g>0&&-2!==l[g].indent;)g--;if(g>0){l.length=g+1,f=l[g],a.insertFirst(u,f.line,h),f.line=u,f.indent=h,f.endAbove=u;continue}}if(f.indent>h){do{l.pop(),f=l[l.length-1]}while(f.indent>h);var v=f.endAbove-1;v-u>=1&&a.insertFirst(u,v,h)}f.indent===h?f.endAbove=u:l.push({indent:h,endAbove:u,line:u})}else t&&(f.endAbove=u)}return a.toIndentRanges(e)}(this.editorModel,i,r,this.maxFoldingRegions,t))}}]),e}(),z=function(){function e(t,n){(0,o.Z)(this,e),this._notifyTooManyRegions=n,this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=t}return(0,a.Z)(e,[{key:"insertFirst",value:function(e,t,n){if(!(e>S||t>S)){var i=this._length;this._startIndexes[i]=e,this._endIndexes[i]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}}},{key:"toIndentRanges",value:function(e){var t;if(this._length<=this._foldingRangesLimit){for(var n=new Uint32Array(this._length),i=new Uint32Array(this._length),r=this._length-1,o=0;r>=0;r--,o++)n[o]=this._startIndexes[r],i[o]=this._endIndexes[r];return new x(n,i)}null===(t=this._notifyTooManyRegions)||void 0===t||t.call(this,this._foldingRangesLimit);for(var a=0,s=this._indentOccurrences.length,l=0;l<this._indentOccurrences.length;l++){var c=this._indentOccurrences[l];if(c){if(c+a>this._foldingRangesLimit){s=l;break}a+=c}}for(var u=e.getOptions().tabSize,d=new Uint32Array(this._foldingRangesLimit),h=new Uint32Array(this._foldingRangesLimit),f=this._length-1,p=0;f>=0;f--){var g=this._startIndexes[f],v=e.getLineContent(g),m=(0,B.q)(v,u);(m<s||m===s&&a++<this._foldingRangesLimit)&&(d[p]=g,h[p]=this._endIndexes[f],p++)}return new x(d,h)}}]),e}();var j=n(27722),V=n(34509),W=n(32379),U=n(64014),G=n(2801),K=n(70845),Y=n(96752),q=(0,Y.q5)("folding-expanded",G.lA.chevronDown,(0,j.NC)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),$=(0,Y.q5)("folding-collapsed",G.lA.chevronRight,(0,j.NC)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),X=(0,Y.q5)("folding-manual-collapsed",$,(0,j.NC)("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),Q=(0,Y.q5)("folding-manual-expanded",q,(0,j.NC)("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),J=function(){function e(t){(0,o.Z)(this,e),this.editor=t,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}return(0,a.Z)(e,[{key:"getDecorationOption",value:function(t,n,i){return n||"never"===this.showFoldingControls?e.HIDDEN_RANGE_DECORATION:t?i?this.showFoldingHighlights?e.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:e.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?e.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:e.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?i?e.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?e.MANUALLY_EXPANDED_VISUAL_DECORATION:e.EXPANDED_VISUAL_DECORATION}},{key:"changeDecorations",value:function(e){return this.editor.changeDecorations(e)}},{key:"removeDecorations",value:function(e){this.editor.removeDecorations(e)}}]),e}();J.COLLAPSED_VISUAL_DECORATION=K.qx.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:U.kS.asClassName($)}),J.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=K.qx.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,firstLineDecorationClassName:U.kS.asClassName($)}),J.MANUALLY_COLLAPSED_VISUAL_DECORATION=K.qx.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+U.kS.asClassName(q)}),J.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=K.qx.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,firstLineDecorationClassName:U.kS.asClassName(X)}),J.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=K.qx.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:U.kS.asClassName(q)}),J.EXPANDED_VISUAL_DECORATION=K.qx.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+U.kS.asClassName(q)}),J.MANUALLY_EXPANDED_VISUAL_DECORATION=K.qx.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+U.kS.asClassName(Q)}),J.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=K.qx.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:U.kS.asClassName(Q)}),J.HIDDEN_RANGE_DECORATION=K.qx.register({description:"folding-hidden-range-decoration",stickiness:1});var ee={},te=function(){function e(t,n,i,a){(0,o.Z)(this,e),this.editorModel=t,this.providers=n,this.limit=a,this.id="syntax";var s,l=(0,r.Z)(n);try{for(l.s();!(s=l.n()).done;){var c=s.value;"function"===typeof c.onDidChange&&(this.disposables||(this.disposables=new h.SL),this.disposables.add(c.onDidChange(i)))}}catch(u){l.e(u)}finally{l.f()}}return(0,a.Z)(e,[{key:"compute",value:function(e,t){var n=this;return function(e,t,n){var i=null,o=e.map((function(e,o){return Promise.resolve(e.provideFoldingRanges(t,ee,n)).then((function(e){if(!n.isCancellationRequested&&Array.isArray(e)){Array.isArray(i)||(i=[]);var a,s=t.getLineCount(),l=(0,r.Z)(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.start>0&&c.end>c.start&&c.end<=s&&i.push({start:c.start,end:c.end,rank:o,kind:c.kind})}}catch(u){l.e(u)}finally{l.f()}}}),u.Cp)}));return Promise.all(o).then((function(e){return i}))}(this.providers,this.editorModel,e).then((function(e){if(e){var i=function(e,t,n){var i,o=e.sort((function(e,t){var n=e.start-t.start;return 0===n&&(n=e.rank-t.rank),n})),a=new ne(t,n),s=void 0,l=[],c=(0,r.Z)(o);try{for(c.s();!(i=c.n()).done;){var u=i.value;if(s){if(u.start>s.start)if(u.end<=s.end)l.push(s),s=u,a.add(u.start,u.end,u.kind&&u.kind.value,l.length);else{if(u.start>s.end){do{s=l.pop()}while(s&&u.start>s.end);s&&l.push(s),s=u}a.add(u.start,u.end,u.kind&&u.kind.value,l.length)}}else s=u,a.add(u.start,u.end,u.kind&&u.kind.value,l.length)}}catch(d){c.e(d)}finally{c.f()}return a.toIndentRanges()}(e,n.limit,t);return i}return null}))}},{key:"dispose",value:function(){var e;null===(e=this.disposables)||void 0===e||e.dispose()}}]),e}();var ne=function(){function e(t,n){(0,o.Z)(this,e),this._notifyTooManyRegions=n,this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=t}return(0,a.Z)(e,[{key:"add",value:function(e,t,n,i){if(!(e>S||t>S)){var r=this._length;this._startIndexes[r]=e,this._endIndexes[r]=t,this._nestingLevels[r]=i,this._types[r]=n,this._length++,i<30&&(this._nestingLevelCounts[i]=(this._nestingLevelCounts[i]||0)+1)}}},{key:"toIndentRanges",value:function(){var e;if(this._length<=this._foldingRangesLimit){for(var t=new Uint32Array(this._length),n=new Uint32Array(this._length),i=0;i<this._length;i++)t[i]=this._startIndexes[i],n[i]=this._endIndexes[i];return new x(t,n,this._types)}null===(e=this._notifyTooManyRegions)||void 0===e||e.call(this,this._foldingRangesLimit);for(var r=0,o=this._nestingLevelCounts.length,a=0;a<this._nestingLevelCounts.length;a++){var s=this._nestingLevelCounts[a];if(s){if(s+r>this._foldingRangesLimit){o=a;break}r+=s}}for(var l=new Uint32Array(this._foldingRangesLimit),c=new Uint32Array(this._foldingRangesLimit),u=[],d=0,h=0;d<this._length;d++){var f=this._nestingLevels[d];(f<o||f===o&&r++<this._foldingRangesLimit)&&(l[h]=this._startIndexes[d],c[h]=this._endIndexes[d],u[h]=this._types[d],h++)}return new x(l,c,u)}}]),e}();var ie=n(15493),re=n(49750),oe=n(98971),ae=n(25),se=n(53584),le=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ce=function(e,t){return function(n,i){t(n,i,e)}},ue=new V.uy("foldingEnabled",!1),de=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i,r,a,s,l){var c;(0,o.Z)(this,n),(c=t.call(this)).contextKeyService=i,c.languageConfigurationService=r,c.languageFeaturesService=l,c._tooManyRegionsNotified=!1,c.localToDispose=c._register(new h.SL),c.editor=e;var u=c.editor.getOptions();return c._isEnabled=u.get(39),c._useFoldingProviders="indentation"!==u.get(40),c._unfoldOnClickAfterEndOfLine=u.get(44),c._restoringViewState=!1,c._currentModelHasFoldedImports=!1,c._foldingImportsByDefault=u.get(42),c._maxFoldingRegions=u.get(43),c.updateDebounceInfo=s.for(l.foldingRangeProvider,"Folding",{min:200}),c.foldingModel=null,c.hiddenRangeModel=null,c.rangeProvider=null,c.foldingRegionPromise=null,c.foldingModelPromise=null,c.updateScheduler=null,c.cursorChangedScheduler=null,c.mouseDownInfo=null,c.foldingDecorationProvider=new J(e),c.foldingDecorationProvider.showFoldingControls=u.get(101),c.foldingDecorationProvider.showFoldingHighlights=u.get(41),c.foldingEnabled=ue.bindTo(c.contextKeyService),c.foldingEnabled.set(c._isEnabled),c._notifyTooManyRegions=function(e){c._tooManyRegionsNotified||(a.notify({severity:re.Z.Warning,sticky:!0,message:j.NC("maximum fold ranges","The number of foldable regions is limited to a maximum of {0}. Increase configuration option ['Folding Maximum Regions'](command:workbench.action.openSettings?[\"editor.foldingMaximumRegions\"]) to enable more.",e)}),c._tooManyRegionsNotified=!0)},c._register(c.editor.onDidChangeModel((function(){return c.onModelChanged()}))),c._register(c.editor.onDidChangeConfiguration((function(e){if(e.hasChanged(39)&&(c._isEnabled=c.editor.getOptions().get(39),c.foldingEnabled.set(c._isEnabled),c.onModelChanged()),e.hasChanged(43)&&(c._maxFoldingRegions=c.editor.getOptions().get(43),c._tooManyRegionsNotified=!1,c.onModelChanged()),e.hasChanged(101)||e.hasChanged(41)){var t=c.editor.getOptions();c.foldingDecorationProvider.showFoldingControls=t.get(101),c.foldingDecorationProvider.showFoldingHighlights=t.get(41),c.triggerFoldingModelChanged()}e.hasChanged(40)&&(c._useFoldingProviders="indentation"!==c.editor.getOptions().get(40),c.onFoldingStrategyChanged()),e.hasChanged(44)&&(c._unfoldOnClickAfterEndOfLine=c.editor.getOptions().get(44)),e.hasChanged(42)&&(c._foldingImportsByDefault=c.editor.getOptions().get(42))}))),c.onModelChanged(),c}return(0,a.Z)(n,[{key:"saveViewState",value:function(){var e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){var t=this.foldingModel.getMemento(),n=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:n,foldedImports:this._currentModelHasFoldedImports}}}},{key:"restoreViewState",value:function(e){var t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&e.lineCount===t.getLineCount()&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}},{key:"onModelChanged",value:function(){var e=this;this.localToDispose.clear();var t=this.editor.getModel();this._isEnabled&&t&&!t.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new N(t,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new Z(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((function(t){return e.onHiddenRangesChanges(t)}))),this.updateScheduler=new c.vp(this.updateDebounceInfo.get(t)),this.cursorChangedScheduler=new c.pY((function(){return e.revealCursor()}),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange((function(){return e.onFoldingStrategyChanged()}))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((function(){return e.onFoldingStrategyChanged()}))),this.localToDispose.add(this.editor.onDidChangeModelContent((function(t){return e.onDidChangeModelContent(t)}))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((function(){return e.onCursorPositionChanged()}))),this.localToDispose.add(this.editor.onMouseDown((function(t){return e.onEditorMouseDown(t)}))),this.localToDispose.add(this.editor.onMouseUp((function(t){return e.onEditorMouseUp(t)}))),this.localToDispose.add({dispose:function(){e.foldingRegionPromise&&(e.foldingRegionPromise.cancel(),e.foldingRegionPromise=null),e.updateScheduler&&e.updateScheduler.cancel(),e.updateScheduler=null,e.foldingModel=null,e.foldingModelPromise=null,e.hiddenRangeModel=null,e.cursorChangedScheduler=null,e.rangeProvider&&e.rangeProvider.dispose(),e.rangeProvider=null}}),this.triggerFoldingModelChanged())}},{key:"onFoldingStrategyChanged",value:function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}},{key:"getRangeProvider",value:function(e){var t=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new H(e,this.languageConfigurationService,this._maxFoldingRegions),this._useFoldingProviders&&this.foldingModel){var n=this.languageFeaturesService.foldingRangeProvider.ordered(this.foldingModel.textModel);n.length>0&&(this.rangeProvider=new te(e,n,(function(){return t.triggerFoldingModelChanged()}),this._maxFoldingRegions))}return this.rangeProvider}},{key:"getFoldingModel",value:function(){return this.foldingModelPromise}},{key:"onDidChangeModelContent",value:function(e){var t;null===(t=this.hiddenRangeModel)||void 0===t||t.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}},{key:"triggerFoldingModelChanged",value:function(){var e=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((function(){var t=e.foldingModel;if(!t)return null;var n=new ae.G(!0),i=e.getRangeProvider(t.textModel),r=e.foldingRegionPromise=(0,c.PG)((function(t){return i.compute(t,e._notifyTooManyRegions)}));return r.then((function(i){if(i&&r===e.foldingRegionPromise){var o;if(e._foldingImportsByDefault&&!e._currentModelHasFoldedImports){var a=i.setCollapsedAllOfType(y.AD.Imports.value,!0);a&&(o=g.Z.capture(e.editor),e._currentModelHasFoldedImports=a)}var s=e.editor.getSelections(),l=s?s.map((function(e){return e.startLineNumber})):[];t.update(i,l),null===o||void 0===o||o.restore(e.editor);var c=e.updateDebounceInfo.update(t.textModel,n.elapsed());e.updateScheduler&&(e.updateScheduler.defaultDelay=c)}return t}))})).then(void 0,(function(e){return(0,u.dL)(e),null})))}},{key:"onHiddenRangesChanges",value:function(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){var t=this.editor.getSelections();t&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t)}this.editor.setHiddenAreas(e)}},{key:"onCursorPositionChanged",value:function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}},{key:"revealCursor",value:function(){var e=this,t=this.getFoldingModel();t&&t.then((function(t){if(t){var n=e.editor.getSelections();if(n&&n.length>0){var o,a=[],s=(0,r.Z)(n);try{var l=function(){var n=o.value.selectionStartLineNumber;e.hiddenRangeModel&&e.hiddenRangeModel.isHidden(n)&&a.push.apply(a,(0,i.Z)(t.getAllRegionsAtLine(n,(function(e){return e.isCollapsed&&n>e.startLineNumber}))))};for(s.s();!(o=s.n()).done;)l()}catch(c){s.e(c)}finally{s.f()}a.length&&(t.toggleCollapseState(a),e.reveal(n[0].getPosition()))}}})).then(void 0,u.dL)}},{key:"onEditorMouseDown",value:function(e){if(this.mouseDownInfo=null,this.hiddenRangeModel&&e.target&&e.target.range&&(e.event.leftButton||e.event.middleButton)){var t=e.target.range,n=!1;switch(e.target.type){case 4:var i=e.target.detail,r=e.target.element.offsetLeft;if(i.offsetX-r<5)return;n=!0;break;case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges())if(!e.target.detail.isAfterLines)break;return;case 6:if(this.hiddenRangeModel.hasRanges()){var o=this.editor.getModel();if(o&&t.startColumn===o.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:n}}}},{key:"onEditorMouseUp",value:function(e){var t=this.foldingModel;if(t&&this.mouseDownInfo&&e.target){var n=this.mouseDownInfo.lineNumber,i=this.mouseDownInfo.iconClicked,o=e.target.range;if(o&&o.startLineNumber===n){if(i){if(4!==e.target.type)return}else{var a=this.editor.getModel();if(!a||o.startColumn!==a.getLineMaxColumn(n))return}var s=t.getRegionAtLine(n);if(s&&s.startLineNumber===n){var l=s.isCollapsed;if(i||l){var c=[];if(e.event.altKey){var u,d=t.getRegionsInside(null,(function(e){return!e.containedBy(s)&&!s.containedBy(e)})),h=(0,r.Z)(d);try{for(h.s();!(u=h.n()).done;){var f=u.value;f.isCollapsed&&c.push(f)}}catch(y){h.e(y)}finally{h.f()}0===c.length&&(c=d)}else{var p=e.event.middleButton||e.event.shiftKey;if(p){var g,v=(0,r.Z)(t.getRegionsInside(s));try{for(v.s();!(g=v.n()).done;){var m=g.value;m.isCollapsed===l&&c.push(m)}}catch(y){v.e(y)}finally{v.f()}}!l&&p&&0!==c.length||c.push(s)}t.toggleCollapseState(c),this.reveal({lineNumber:n,column:1})}}}}}},{key:"reveal",value:function(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}}],[{key:"get",value:function(e){return e.getContribution(n.ID)}}]),n}(h.JT);de.ID="editor.contrib.folding",de=le([ce(1,V.i6),ce(2,_.c_),ce(3,ie.lT),ce(4,oe.A),ce(5,se.p)],de);var he=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"runEditorCommand",value:function(e,t,n){var i=this,r=e.get(_.c_),o=de.get(t);if(o){var a=o.getFoldingModel();return a?(this.reportTelemetry(e,t),a.then((function(e){if(e){i.invoke(o,e,t,n,r);var a=t.getSelection();a&&o.reveal(a.getStartPosition())}}))):void 0}}},{key:"getSelectedLines",value:function(e){var t=e.getSelections();return t?t.map((function(e){return e.startLineNumber})):[]}},{key:"getLineNumbers",value:function(e,t){return e&&e.selectionLines?e.selectionLines.map((function(e){return e+1})):this.getSelectedLines(t)}},{key:"run",value:function(e,t){}}]),n}(v.R6);function fe(e){if(!p.o8(e)){if(!p.Kn(e))return!1;var t=e;if(!p.o8(t.levels)&&!p.hj(t.levels))return!1;if(!p.o8(t.direction)&&!p.HD(t.direction))return!1;if(!p.o8(t.selectionLines)&&(!p.kJ(t.selectionLines)||!t.selectionLines.every(p.hj)))return!1}return!0}var pe=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.unfold",label:j.NC("unfoldAction.label","Unfold"),alias:"Unfold",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:fe,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n,i){var r=i&&i.levels||1,o=this.getLineNumbers(i,n);i&&"up"===i.direction?D(t,!1,r,o):I(t,!1,r,o)}}]),n}(he),ge=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.unfoldRecursively",label:j.NC("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:(0,d.gx)(2089,2137),weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n,i){I(t,!1,Number.MAX_VALUE,this.getSelectedLines(n))}}]),n}(he),ve=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.fold",label:j.NC("foldAction.label","Fold"),alias:"Fold",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:fe,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n,i){var o=this.getLineNumbers(i,n),a=i&&i.levels,s=i&&i.direction;"number"!==typeof a&&"string"!==typeof s?function(e,t,n){var i,o=[],a=(0,r.Z)(n);try{for(a.s();!(i=a.n()).done;){var s=i.value,l=e.getAllRegionsAtLine(s,(function(e){return e.isCollapsed!==t}));l.length>0&&o.push(l[0])}}catch(c){a.e(c)}finally{a.f()}e.toggleCollapseState(o)}(t,!0,o):"up"===s?D(t,!0,a||1,o):I(t,!0,a||1,o)}}]),n}(he),me=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.toggleFold",label:j.NC("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:(0,d.gx)(2089,2090),weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n){!function(e,t,n){var o,a=[],s=(0,r.Z)(n);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=e.getRegionAtLine(l);c&&function(){var n=!c.isCollapsed;if(a.push(c),t>1){var r=e.getRegionsInside(c,(function(e,i){return e.isCollapsed!==n&&i<t}));a.push.apply(a,(0,i.Z)(r))}}()}}catch(u){s.e(u)}finally{s.f()}e.toggleCollapseState(a)}(t,1,this.getSelectedLines(n))}}]),n}(he),ye=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.foldRecursively",label:j.NC("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:(0,d.gx)(2089,2135),weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n){var i=this.getSelectedLines(n);I(t,!0,Number.MAX_VALUE,i)}}]),n}(he),_e=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.foldAllBlockComments",label:j.NC("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:(0,d.gx)(2089,2133),weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n,i,r){if(t.regions.hasTypes())R(t,y.AD.Comment.value,!0);else{var o=n.getModel();if(!o)return;var a=r.getLanguageConfiguration(o.getLanguageId()).comments;if(a&&a.blockCommentStartToken)O(t,new RegExp("^\\s*"+(0,f.ec)(a.blockCommentStartToken)),!0)}}}]),n}(he),be=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.foldAllMarkerRegions",label:j.NC("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:(0,d.gx)(2089,2077),weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n,i,r){if(t.regions.hasTypes())R(t,y.AD.Region.value,!0);else{var o=n.getModel();if(!o)return;var a=r.getLanguageConfiguration(o.getLanguageId()).foldingRules;if(a&&a.markers&&a.markers.start)O(t,new RegExp(a.markers.start),!0)}}}]),n}(he),Ce=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.unfoldAllMarkerRegions",label:j.NC("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:(0,d.gx)(2089,2078),weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n,i,r){if(t.regions.hasTypes())R(t,y.AD.Region.value,!1);else{var o=n.getModel();if(!o)return;var a=r.getLanguageConfiguration(o.getLanguageId()).foldingRules;if(a&&a.markers&&a.markers.start)O(t,new RegExp(a.markers.start),!1)}}}]),n}(he),Se=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.foldAllExcept",label:j.NC("foldAllExcept.label","Fold All Regions Except Selected"),alias:"Fold All Regions Except Selected",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:(0,d.gx)(2089,2131),weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n){L(t,!0,this.getSelectedLines(n))}}]),n}(he),we=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.unfoldAllExcept",label:j.NC("unfoldAllExcept.label","Unfold All Regions Except Selected"),alias:"Unfold All Regions Except Selected",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:(0,d.gx)(2089,2129),weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n){L(t,!1,this.getSelectedLines(n))}}]),n}(he),ke=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.foldAll",label:j.NC("foldAllAction.label","Fold All"),alias:"Fold All",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:(0,d.gx)(2089,2069),weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n){I(t,!0)}}]),n}(he),xe=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.unfoldAll",label:j.NC("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:(0,d.gx)(2089,2088),weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n){I(t,!1)}}]),n}(he),Ee=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"getFoldingLevel",value:function(){return parseInt(this.id.substr(n.ID_PREFIX.length))}},{key:"invoke",value:function(e,t,n){!function(e,t,n,i){var r=e.getRegionsInside(null,(function(e,r){return r===t&&e.isCollapsed!==n&&!i.some((function(t){return e.containsLine(t)}))}));e.toggleCollapseState(r)}(t,this.getFoldingLevel(),!0,this.getSelectedLines(n))}}]),n}(he);Ee.ID_PREFIX="editor.foldLevel",Ee.ID=function(e){return Ee.ID_PREFIX+e};var Te=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.gotoParentFold",label:j.NC("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n){var i=this.getSelectedLines(n);if(i.length>0){var r=function(e,t){var n=null,i=t.getRegionAtLine(e);if(null!==i&&e===(n=i.startLineNumber)){var r=i.parentIndex;n=-1!==r?t.regions.getStartLineNumber(r):null}return n}(i[0],t);null!==r&&n.setSelection({startLineNumber:r,startColumn:1,endLineNumber:r,endColumn:1})}}}]),n}(he),Ne=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.gotoPreviousFold",label:j.NC("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n){var i=this.getSelectedLines(n);if(i.length>0){var r=function(e,t){var n=t.getRegionAtLine(e);if(null!==n&&n.startLineNumber===e){if(e!==n.startLineNumber)return n.startLineNumber;var i=n.parentIndex,r=0;for(-1!==i&&(r=t.regions.getStartLineNumber(n.parentIndex));null!==n;){if(!(n.regionIndex>0))return null;if((n=t.regions.toRegion(n.regionIndex-1)).startLineNumber<=r)return null;if(n.parentIndex===i)return n.startLineNumber}}else if(t.regions.length>0)for(n=t.regions.toRegion(t.regions.length-1);null!==n;){if(n.startLineNumber<e)return n.startLineNumber;n=n.regionIndex>0?t.regions.toRegion(n.regionIndex-1):null}return null}(i[0],t);null!==r&&n.setSelection({startLineNumber:r,startColumn:1,endLineNumber:r,endColumn:1})}}}]),n}(he),Ie=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.gotoNextFold",label:j.NC("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n){var i=this.getSelectedLines(n);if(i.length>0){var r=function(e,t){var n=t.getRegionAtLine(e);if(null!==n&&n.startLineNumber===e){var i=n.parentIndex,r=0;if(-1!==i)r=t.regions.getEndLineNumber(n.parentIndex);else{if(0===t.regions.length)return null;r=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==n;){if(!(n.regionIndex<t.regions.length))return null;if((n=t.regions.toRegion(n.regionIndex+1)).startLineNumber>=r)return null;if(n.parentIndex===i)return n.startLineNumber}}else if(t.regions.length>0)for(n=t.regions.toRegion(0);null!==n;){if(n.startLineNumber>e)return n.startLineNumber;n=n.regionIndex<t.regions.length?t.regions.toRegion(n.regionIndex+1):null}return null}(i[0],t);null!==r&&n.setSelection({startLineNumber:r,startColumn:1,endLineNumber:r,endColumn:1})}}}]),n}(he),De=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.createFoldingRangeFromSelection",label:j.NC("createManualFoldRange.label","Create Manual Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:(0,d.gx)(2089,2130),weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n){var i,o=[],a=n.getSelections();if(a){var s,l=(0,r.Z)(a);try{for(l.s();!(s=l.n()).done;){var c=s.value,u=c.endLineNumber;1===c.endColumn&&--u,u>c.startLineNumber&&(o.push({startLineNumber:c.startLineNumber,endLineNumber:u,type:void 0,isCollapsed:!0,source:1}),n.setSelection({startLineNumber:c.startLineNumber,startColumn:1,endLineNumber:c.startLineNumber,endColumn:1}))}}catch(h){l.e(h)}finally{l.f()}if(o.length>0){o.sort((function(e,t){return e.startLineNumber-t.startLineNumber}));var d=x.sanitizeAndMerge(t.regions,o,null===(i=n.getModel())||void 0===i?void 0:i.getLineCount());t.updatePost(x.fromFoldRanges(d))}}}}]),n}(he),Le=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.removeManualFoldingRanges",label:j.NC("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:(0,d.gx)(2089,2132),weight:100}})}return(0,a.Z)(n,[{key:"invoke",value:function(e,t,n){var i=n.getSelections();if(i){var o,a=[],s=(0,r.Z)(i);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=l.startLineNumber,u=l.endLineNumber;a.push(u>=c?{startLineNumber:c,endLineNumber:u}:{endLineNumber:u,startLineNumber:c})}}catch(d){s.e(d)}finally{s.f()}t.removeManualRanges(a),e.triggerFoldingModelChanged()}}}]),n}(he);(0,v._K)(de.ID,de),(0,v.Qr)(pe),(0,v.Qr)(ge),(0,v.Qr)(ve),(0,v.Qr)(ye),(0,v.Qr)(ke),(0,v.Qr)(xe),(0,v.Qr)(_e),(0,v.Qr)(be),(0,v.Qr)(Ce),(0,v.Qr)(Se),(0,v.Qr)(we),(0,v.Qr)(me),(0,v.Qr)(Te),(0,v.Qr)(Ne),(0,v.Qr)(Ie),(0,v.Qr)(De),(0,v.Qr)(Le);for(var Oe=1;Oe<=7;Oe++)(0,v.QG)(new Ee({id:Ee.ID(Oe),label:j.NC("foldLevelAction.label","Fold Level {0}",Oe),alias:"Fold Level ".concat(Oe),precondition:ue,kbOpts:{kbExpr:m.u.editorTextFocus,primary:(0,d.gx)(2089,2048|21+Oe),weight:100}}));var Re=(0,W.P6G)("editor.foldBackground",{light:(0,W.ZnX)(W.hEj,.3),dark:(0,W.ZnX)(W.hEj,.3),hcDark:null,hcLight:null},j.NC("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0),Ae=(0,W.P6G)("editorGutter.foldingControlForeground",{dark:W.XZx,light:W.XZx,hcDark:W.XZx,hcLight:W.XZx},j.NC("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));(0,U.Ic)((function(e,t){var n=e.getColor(Re);n&&t.addRule(".monaco-editor .folded-background { background-color: ".concat(n,"; }"));var i=e.getColor(Ae);i&&t.addRule("\n\t\t.monaco-editor .cldr".concat(U.kS.asCSSSelector(q),",\n\t\t.monaco-editor .cldr").concat(U.kS.asCSSSelector($),",\n\t\t.monaco-editor .cldr").concat(U.kS.asCSSSelector(Q),",\n\t\t.monaco-editor .cldr").concat(U.kS.asCSSSelector(X)," {\n\t\t\tcolor: ").concat(i," !important;\n\t\t}\n\t\t"))}))},42259:function(e,t,n){"use strict";n.r(t);var i=n(15671),r=n(43144),o=n(60136),a=n(27277),s=n(62381),l=n(80282),c=n(27722),u=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{id:"editor.action.fontZoomIn",label:c.NC("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}return(0,r.Z)(n,[{key:"run",value:function(e,t){l.C.setZoomLevel(l.C.getZoomLevel()+1)}}]),n}(s.R6),d=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{id:"editor.action.fontZoomOut",label:c.NC("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}return(0,r.Z)(n,[{key:"run",value:function(e,t){l.C.setZoomLevel(l.C.getZoomLevel()-1)}}]),n}(s.R6),h=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{id:"editor.action.fontZoomReset",label:c.NC("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}return(0,r.Z)(n,[{key:"run",value:function(e,t){l.C.setZoomLevel(0)}}]),n}(s.R6);(0,s.Qr)(u),(0,s.Qr)(d),(0,s.Qr)(h)},93680:function(e,t,n){"use strict";n.d(t,{xC:function(){return R},Zg:function(){return L},x$:function(){return A},Qq:function(){return P},Qs:function(){return H}});var i=n(29439),r=n(93433),o=n(74165),a=n(15671),s=n(43144),l=n(37762),c=n(4801),u=n(29671),d=n(82784),h=n(14173),f=n(94016),p=n(17832),g=n(85294),v=n(72112),m=n(68132),y=n(64314),_=n(38622),b=n(80133),C=n(23145),S=n(5323),w=n(95011),k=n(47406),x=n(27722),E=n(11133),T=function(){function e(t){(0,a.Z)(this,e),this.value=t,this._lower=t.toLowerCase()}return(0,s.Z)(e,null,[{key:"toKey",value:function(e){return"string"===typeof e?e.toLowerCase():e._lower}}]),e}(),N=n(36888),I=n(53584),D=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};function L(e){if((e=e.filter((function(e){return e.range}))).length){for(var t=e[0].range,n=1;n<e.length;n++)t=b.e.plusRange(t,e[n].range);var i=t,r=i.startLineNumber,o=i.endLineNumber;r===o?1===e.length?(0,c.Z9)(x.NC("hint11","Made 1 formatting edit on line {0}",r)):(0,c.Z9)(x.NC("hintn1","Made {0} formatting edits on line {1}",e.length,r)):1===e.length?(0,c.Z9)(x.NC("hint1n","Made 1 formatting edit between lines {0} and {1}",r,o)):(0,c.Z9)(x.NC("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,r,o))}}function O(e,t,n){var i,r=[],o=new Set,a=e.ordered(n),s=(0,l.Z)(a);try{for(s.s();!(i=s.n()).done;){var c=i.value;r.push(c),c.extensionId&&o.add(T.toKey(c.extensionId))}}catch(p){s.e(p)}finally{s.f()}var u,d=t.ordered(n),h=(0,l.Z)(d);try{var f=function(){var e=u.value;if(e.extensionId){if(o.has(T.toKey(e.extensionId)))return"continue";o.add(T.toKey(e.extensionId))}r.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:function(t,n,i){return e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),n,i)}})};for(h.s();!(u=h.n()).done;)f()}catch(p){h.e(p)}finally{h.f()}return r}var R=function(){function e(){(0,a.Z)(this,e)}return(0,s.Z)(e,null,[{key:"setFormatterSelector",value:function(t){return{dispose:e._selectors.unshift(t)}}},{key:"select",value:function(t,n,i){return D(this,void 0,void 0,(0,o.Z)().mark((function r(){var a;return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(0!==t.length){r.next=2;break}return r.abrupt("return",void 0);case 2:if(!(a=f.$.first(e._selectors))){r.next=7;break}return r.next=6,a(t,n,i);case 6:return r.abrupt("return",r.sent);case 7:return r.abrupt("return",void 0);case 8:case"end":return r.stop()}}),r)})))}}]),e}();function A(e,t,n,i,r,a){return D(this,void 0,void 0,(0,o.Z)().mark((function s(){var l,c,u,d,h,f;return(0,o.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return l=e.get(N.TG),c=e.get(I.p),u=c.documentRangeFormattingEditProvider,d=(0,y.CL)(t)?t.getModel():t,h=u.ordered(d),o.next=6,R.select(h,d,i);case 6:if(!(f=o.sent)){o.next=11;break}return r.report(f),o.next=11,l.invokeFunction(M,f,t,n,a);case 11:case"end":return o.stop()}}),s)})))}function M(e,t,n,i,a){return D(this,void 0,void 0,(0,o.Z)().mark((function s(){var c,d,h,f,p,g,v,_,w,x,E,T,N,I,O,R,A,M,P,Z,F,B,H,z,j,V=this;return(0,o.Z)().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:c=e.get(S.p),(0,y.CL)(n)?(d=n.getModel(),h=new m.Dl(n,5,void 0,a)):(d=n,h=new m.YQ(n,a)),f=[],p=0,g=(0,l.Z)((0,u._2)(i).sort(b.e.compareRangesUsingStarts));try{for(g.s();!(v=g.n()).done;)_=v.value,p>0&&b.e.areIntersectingOrTouching(f[p-1],_)?f[p-1]=b.e.fromPositions(f[p-1].getStartPosition(),_.getEndPosition()):p=f.push(_)}catch(W){g.e(W)}finally{g.f()}w=function(e){return D(V,void 0,void 0,(0,o.Z)().mark((function n(){return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.provideDocumentRangeFormattingEdits(d,e,d.getFormattingOptions(),h.token);case 2:if(n.t0=n.sent,n.t0){n.next=5;break}n.t0=[];case 5:return n.abrupt("return",n.t0);case 6:case"end":return n.stop()}}),n)})))},x=function(e,t){if(!e.length||!t.length)return!1;var n=e.reduce((function(e,t){return b.e.plusRange(e,t.range)}),e[0].range);if(!t.some((function(e){return b.e.intersectRanges(n,e.range)})))return!1;var i,r=(0,l.Z)(e);try{for(r.s();!(i=r.n()).done;){var o,a=i.value,s=(0,l.Z)(t);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(b.e.intersectRanges(a.range,c.range))return!0}}catch(W){s.e(W)}finally{s.f()}}}catch(W){r.e(W)}finally{r.f()}return!1},E=[],T=[],s.prev=10,N=0,I=f;case 12:if(!(N<I.length)){s.next=24;break}if(O=I[N],!h.token.isCancellationRequested){s.next=16;break}return s.abrupt("return",!0);case 16:return s.t0=T,s.next=19,w(O);case 19:s.t1=s.sent,s.t0.push.call(s.t0,s.t1);case 21:N++,s.next=12;break;case 24:R=0;case 25:if(!(R<f.length)){s.next=49;break}A=R+1;case 27:if(!(A<f.length)){s.next=46;break}if(!h.token.isCancellationRequested){s.next=30;break}return s.abrupt("return",!0);case 30:if(!x(T[R],T[A])){s.next=43;break}return M=b.e.plusRange(f[R],f[A]),s.next=34,w(M);case 34:P=s.sent,f.splice(A,1),f.splice(R,1),f.push(M),T.splice(A,1),T.splice(R,1),T.push(P),R=0,A=0;case 43:++A,s.next=27;break;case 46:++R,s.next=25;break;case 49:Z=0,F=T;case 50:if(!(Z<F.length)){s.next=61;break}if(B=F[Z],!h.token.isCancellationRequested){s.next=54;break}return s.abrupt("return",!0);case 54:return s.next=56,c.computeMoreMinimalEdits(d.uri,B);case 56:(H=s.sent)&&E.push.apply(E,(0,r.Z)(H));case 58:Z++,s.next=50;break;case 61:return s.prev=61,h.dispose(),s.finish(61);case 64:if(0!==E.length){s.next=66;break}return s.abrupt("return",!1);case 66:return(0,y.CL)(n)?(k.V.execute(n,E,!0),L(E),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1)):(z=E[0].range,j=new C.Y(z.startLineNumber,z.startColumn,z.endLineNumber,z.endColumn),d.pushEditOperations([j],E.map((function(e){return{text:e.text,range:b.e.lift(e.range),forceMoveMarkers:!0}})),(function(e){var t,n=(0,l.Z)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value.range;if(b.e.areIntersectingOrTouching(i,j))return[new C.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)]}}catch(W){n.e(W)}finally{n.f()}return null}))),s.abrupt("return",!0);case 68:case"end":return s.stop()}}),s,null,[[10,,61,64]])})))}function P(e,t,n,i,r){return D(this,void 0,void 0,(0,o.Z)().mark((function a(){var s,l,c,u,d;return(0,o.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=e.get(N.TG),l=e.get(I.p),c=(0,y.CL)(t)?t.getModel():t,u=O(l.documentFormattingEditProvider,l.documentRangeFormattingEditProvider,c),o.next=6,R.select(u,c,n);case 6:if(!(d=o.sent)){o.next=11;break}return i.report(d),o.next=11,s.invokeFunction(Z,d,t,n,r);case 11:case"end":return o.stop()}}),a)})))}function Z(e,t,n,r,a){return D(this,void 0,void 0,(0,o.Z)().mark((function s(){var c,u,d,h,f,p,g,v,_;return(0,o.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return c=e.get(S.p),(0,y.CL)(n)?(u=n.getModel(),d=new m.Dl(n,5,void 0,a)):(u=n,d=new m.YQ(n,a)),o.prev=2,o.next=5,t.provideDocumentFormattingEdits(u,u.getFormattingOptions(),d.token);case 5:return f=o.sent,o.next=8,c.computeMoreMinimalEdits(u.uri,f);case 8:if(h=o.sent,!d.token.isCancellationRequested){o.next=11;break}return o.abrupt("return",!0);case 11:return o.prev=11,d.dispose(),o.finish(11);case 14:if(h&&0!==h.length){o.next=16;break}return o.abrupt("return",!1);case 16:return(0,y.CL)(n)?(k.V.execute(n,h,2!==r),2!==r&&(L(h),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1))):(p=h,g=(0,i.Z)(p,1),v=g[0].range,_=new C.Y(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn),u.pushEditOperations([_],h.map((function(e){return{text:e.text,range:b.e.lift(e.range),forceMoveMarkers:!0}})),(function(e){var t,n=(0,l.Z)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value.range;if(b.e.areIntersectingOrTouching(i,_))return[new C.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)]}}catch(r){n.e(r)}finally{n.f()}return null}))),o.abrupt("return",!0);case 18:case"end":return o.stop()}}),s,null,[[2,,11,14]])})))}function F(e,t,n,i,r,a){return D(this,void 0,void 0,(0,o.Z)().mark((function s(){var c,d,f,p,g;return(0,o.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:c=t.documentRangeFormattingEditProvider.ordered(n),d=(0,l.Z)(c),o.prev=2,d.s();case 4:if((f=d.n()).done){o.next=15;break}return p=f.value,o.next=8,Promise.resolve(p.provideDocumentRangeFormattingEdits(n,i,r,a)).catch(h.Cp);case 8:if(g=o.sent,!(0,u.Of)(g)){o.next=13;break}return o.next=12,e.computeMoreMinimalEdits(n.uri,g);case 12:return o.abrupt("return",o.sent);case 13:o.next=4;break;case 15:o.next=20;break;case 17:o.prev=17,o.t0=o.catch(2),d.e(o.t0);case 20:return o.prev=20,d.f(),o.finish(20);case 23:return o.abrupt("return",void 0);case 24:case"end":return o.stop()}}),s,null,[[2,17,20,23]])})))}function B(e,t,n,i,r){return D(this,void 0,void 0,(0,o.Z)().mark((function a(){var s,c,d,f,p;return(0,o.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:s=O(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,n),c=(0,l.Z)(s),o.prev=2,c.s();case 4:if((d=c.n()).done){o.next=15;break}return f=d.value,o.next=8,Promise.resolve(f.provideDocumentFormattingEdits(n,i,r)).catch(h.Cp);case 8:if(p=o.sent,!(0,u.Of)(p)){o.next=13;break}return o.next=12,e.computeMoreMinimalEdits(n.uri,p);case 12:return o.abrupt("return",o.sent);case 13:o.next=4;break;case 15:o.next=20;break;case 17:o.prev=17,o.t0=o.catch(2),c.e(o.t0);case 20:return o.prev=20,c.f(),o.finish(20);case 23:return o.abrupt("return",void 0);case 24:case"end":return o.stop()}}),a,null,[[2,17,20,23]])})))}function H(e,t,n,i,r,o,a){var s=t.onTypeFormattingEditProvider.ordered(n);return 0===s.length||s[0].autoFormatTriggerCharacters.indexOf(r)<0?Promise.resolve(void 0):Promise.resolve(s[0].provideOnTypeFormattingEdits(n,i,r,o,a)).catch(h.Cp).then((function(t){return e.computeMoreMinimalEdits(n.uri,t)}))}R._selectors=new p.S,E.P0.registerCommand("_executeFormatRangeProvider",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return D(this,void 0,void 0,(0,o.Z)().mark((function t(){var i,r,a,s,l,c,u;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n[0],r=n[1],a=n[2],(0,g.p_)(v.o.isUri(i)),(0,g.p_)(b.e.isIRange(r)),s=e.get(w.S),l=e.get(S.p),c=e.get(I.p),t.next=8,s.createModelReference(i);case 8:return u=t.sent,t.prev=9,t.abrupt("return",F(l,c,u.object.textEditorModel,b.e.lift(r),a,d.T.None));case 11:return t.prev=11,u.dispose(),t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[9,,11,14]])})))})),E.P0.registerCommand("_executeFormatDocumentProvider",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return D(this,void 0,void 0,(0,o.Z)().mark((function t(){var i,r,a,s,l,c;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n[0],r=n[1],(0,g.p_)(v.o.isUri(i)),a=e.get(w.S),s=e.get(S.p),l=e.get(I.p),t.next=7,a.createModelReference(i);case 7:return c=t.sent,t.prev=8,t.abrupt("return",B(s,l,c.object.textEditorModel,r,d.T.None));case 10:return t.prev=10,c.dispose(),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[8,,10,13]])})))})),E.P0.registerCommand("_executeFormatOnTypeProvider",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return D(this,void 0,void 0,(0,o.Z)().mark((function t(){var i,r,a,s,l,c,u,h;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n[0],r=n[1],a=n[2],s=n[3],(0,g.p_)(v.o.isUri(i)),(0,g.p_)(_.L.isIPosition(r)),(0,g.p_)("string"===typeof a),l=e.get(w.S),c=e.get(S.p),u=e.get(I.p),t.next=9,l.createModelReference(i);case 9:return h=t.sent,t.prev=10,t.abrupt("return",H(c,u,h.object.textEditorModel,_.L.lift(r),a,s,d.T.None));case 12:return t.prev=12,h.dispose(),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[10,,12,15]])})))}))},43869:function(e,t,n){"use strict";n.r(t);var i=n(74165),r=n(60136),o=n(27277),a=n(37762),s=n(29439),l=n(15671),c=n(43144),u=n(29671),d=n(82784),h=n(14173),f=n(16321),p=n(11860),g=n(62381),v=n(98596),m=n(54410),y=n(80133),_=n(67245),b=n(5323),C=n(53584),S=n(93680),w=n(47406),k=n(27722),x=n(11133),E=n(34509),T=n(36888),N=n(47901),I=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},D=function(e,t){return function(n,i){t(n,i,e)}},L=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},O=function(){function e(t,n,i){var r=this;(0,l.Z)(this,e),this._editor=t,this._languageFeaturesService=n,this._workerService=i,this._disposables=new p.SL,this._sessionDisposables=new p.SL,this._disposables.add(n.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(t.onDidChangeModel((function(){return r._update()}))),this._disposables.add(t.onDidChangeModelLanguage((function(){return r._update()}))),this._disposables.add(t.onDidChangeConfiguration((function(e){e.hasChanged(51)&&r._update()})))}return(0,c.Z)(e,[{key:"dispose",value:function(){this._disposables.dispose(),this._sessionDisposables.dispose()}},{key:"_update",value:function(){var e=this;if(this._sessionDisposables.clear(),this._editor.getOption(51)&&this._editor.hasModel()){var t=this._editor.getModel(),n=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(t),i=(0,s.Z)(n,1)[0];if(i&&i.autoFormatTriggerCharacters){var r,o=new m.q,l=(0,a.Z)(i.autoFormatTriggerCharacters);try{for(l.s();!(r=l.n()).done;){var c=r.value;o.add(c.charCodeAt(0))}}catch(u){l.e(u)}finally{l.f()}this._sessionDisposables.add(this._editor.onDidType((function(t){var n=t.charCodeAt(t.length-1);o.has(n)&&e._trigger(String.fromCharCode(n))})))}}}},{key:"_trigger",value:function(e){var t=this;if(this._editor.hasModel()&&!(this._editor.getSelections().length>1)&&this._editor.getSelection().isEmpty()){var n=this._editor.getModel(),i=this._editor.getPosition(),r=new d.A,o=this._editor.onDidChangeModelContent((function(e){if(e.isFlush)return r.cancel(),void o.dispose();for(var t=0,n=e.changes.length;t<n;t++){if(e.changes[t].range.endLineNumber<=i.lineNumber)return r.cancel(),void o.dispose()}}));(0,S.Qs)(this._workerService,this._languageFeaturesService,n,i,e,n.getFormattingOptions(),r.token).then((function(e){r.token.isCancellationRequested||(0,u.Of)(e)&&(w.V.execute(t._editor,e,!0),(0,S.Zg)(e))})).finally((function(){o.dispose()}))}}}]),e}();O.ID="editor.contrib.autoFormat",O=I([D(1,C.p),D(2,b.p)],O);var R=function(){function e(t,n,i){var r=this;(0,l.Z)(this,e),this.editor=t,this._languageFeaturesService=n,this._instantiationService=i,this._callOnDispose=new p.SL,this._callOnModel=new p.SL,this._callOnDispose.add(t.onDidChangeConfiguration((function(){return r._update()}))),this._callOnDispose.add(t.onDidChangeModel((function(){return r._update()}))),this._callOnDispose.add(t.onDidChangeModelLanguage((function(){return r._update()}))),this._callOnDispose.add(n.documentRangeFormattingEditProvider.onDidChange(this._update,this))}return(0,c.Z)(e,[{key:"dispose",value:function(){this._callOnDispose.dispose(),this._callOnModel.dispose()}},{key:"_update",value:function(){var e=this;this._callOnModel.clear(),this.editor.getOption(50)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((function(t){var n=t.range;return e._trigger(n)})))}},{key:"_trigger",value:function(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(S.x$,this.editor,e,2,N.Ex.None,d.T.None).catch(h.dL))}}]),e}();R.ID="editor.contrib.formatOnPaste",R=I([D(1,C.p),D(2,T.TG)],R);var A=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{id:"editor.action.formatDocument",label:k.NC("formatDocument.label","Format Document"),alias:"Format Document",precondition:E.Ao.and(_.u.notInCompositeEditor,_.u.writable,_.u.hasDocumentFormattingProvider),kbOpts:{kbExpr:_.u.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}return(0,c.Z)(n,[{key:"run",value:function(e,t){return L(this,void 0,void 0,(0,i.Z)().mark((function n(){var r,o;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.hasModel()){n.next=5;break}return r=e.get(T.TG),o=e.get(N.ek),n.next=5,o.showWhile(r.invokeFunction(S.Qq,t,1,N.Ex.None,d.T.None),250);case 5:case"end":return n.stop()}}),n)})))}}]),n}(g.R6),M=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{id:"editor.action.formatSelection",label:k.NC("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:E.Ao.and(_.u.writable,_.u.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:_.u.editorTextFocus,primary:(0,f.gx)(2089,2084),weight:100},contextMenuOpts:{when:_.u.hasNonEmptySelection,group:"1_modification",order:1.31}})}return(0,c.Z)(n,[{key:"run",value:function(e,t){return L(this,void 0,void 0,(0,i.Z)().mark((function n(){var r,o,a,s;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.hasModel()){n.next=2;break}return n.abrupt("return");case 2:return r=e.get(T.TG),o=t.getModel(),a=t.getSelections().map((function(e){return e.isEmpty()?new y.e(e.startLineNumber,1,e.startLineNumber,o.getLineMaxColumn(e.startLineNumber)):e})),s=e.get(N.ek),n.next=8,s.showWhile(r.invokeFunction(S.x$,t,a,1,N.Ex.None,d.T.None),250);case 8:case"end":return n.stop()}}),n)})))}}]),n}(g.R6);(0,g._K)(O.ID,O),(0,g._K)(R.ID,R),(0,g.Qr)(A),(0,g.Qr)(M),x.P0.registerCommand("editor.action.format",(function(e){return L(void 0,void 0,void 0,(0,i.Z)().mark((function t(){var n,r;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=e.get(v.$).getFocusedCodeEditor())&&n.hasModel()){t.next=3;break}return t.abrupt("return");case 3:if(r=e.get(x.Hy),!n.getSelection().isEmpty()){t.next=9;break}return t.next=7,r.executeCommand("editor.action.formatDocument");case 7:t.next=11;break;case 9:return t.next=11,r.executeCommand("editor.action.formatSelection");case 11:case"end":return t.stop()}}),t)})))}))},47406:function(e,t,n){"use strict";n.d(t,{V:function(){return l}});var i=n(37762),r=n(15671),o=n(43144),a=n(3055),s=n(80133),l=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,null,[{key:"_handleEolEdits",value:function(e,t){var n,r=void 0,o=[],a=(0,i.Z)(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;"number"===typeof s.eol&&(r=s.eol),s.range&&"string"===typeof s.text&&o.push(s)}}catch(l){a.e(l)}finally{a.f()}return"number"===typeof r&&e.hasModel()&&e.getModel().pushEOL(r),o}},{key:"_isFullModelReplaceEdit",value:function(e,t){if(!e.hasModel())return!1;var n=e.getModel(),i=n.validateRange(t.range);return n.getFullModelRange().equalsRange(i)}},{key:"execute",value:function(t,n,i){i&&t.pushUndoStop();var r=e._handleEolEdits(t,n);1===r.length&&e._isFullModelReplaceEdit(t,r[0])?t.executeEdits("formatEditsCommand",r.map((function(e){return a.h.replace(s.e.lift(e.range),e.text)}))):t.executeEdits("formatEditsCommand",r.map((function(e){return a.h.replaceMove(s.e.lift(e.range),e.text)}))),i&&t.pushUndoStop()}}]),e}()},52348:function(e,t,n){"use strict";n.r(t),n.d(t,{MarkerController:function(){return fe},NextMarkerAction:function(){return ge}});var i=n(60136),r=n(27277),o=n(74165),a=n(15671),s=n(43144),l=n(2801),c=n(11860),u=n(62381),d=n(98596),h=n(38622),f=n(80133),p=n(67245),g=n(37762),v=n(29671),m=n(73097),y=n(17832),_=n(32377),b=n(72112),C=n(77896),S=n(36888),w=n(46813),k=n(87984),x=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},E=function(e,t){return function(n,i){t(n,i,e)}},T=(0,s.Z)((function e(t,n,i){(0,a.Z)(this,e),this.marker=t,this.index=n,this.total=i})),N=function(){function e(t,n,i){var r=this;(0,a.Z)(this,e),this._markerService=n,this._configService=i,this._onDidChange=new m.Q5,this.onDidChange=this._onDidChange.event,this._dispoables=new c.SL,this._markers=[],this._nextIdx=-1,b.o.isUri(t)?this._resourceFilter=function(e){return e.toString()===t.toString()}:t&&(this._resourceFilter=t);var o=this._configService.getValue("problems.sortOrder"),s=function(e,t){var n=(0,_.qu)(e.resource.toString(),t.resource.toString());return 0===n&&(n="position"===o?f.e.compareRangesUsingStarts(e,t)||w.ZL.compare(e.severity,t.severity):w.ZL.compare(e.severity,t.severity)||f.e.compareRangesUsingStarts(e,t)),n},l=function(){r._markers=r._markerService.read({resource:b.o.isUri(t)?t:void 0,severities:w.ZL.Error|w.ZL.Warning|w.ZL.Info}),"function"===typeof t&&(r._markers=r._markers.filter((function(e){return r._resourceFilter(e.resource)}))),r._markers.sort(s)};l(),this._dispoables.add(n.onMarkerChanged((function(e){r._resourceFilter&&!e.some((function(e){return r._resourceFilter(e)}))||(l(),r._nextIdx=-1,r._onDidChange.fire())})))}return(0,s.Z)(e,[{key:"dispose",value:function(){this._dispoables.dispose(),this._onDidChange.dispose()}},{key:"matches",value:function(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}},{key:"selected",get:function(){var e=this._markers[this._nextIdx];return e&&new T(e,this._nextIdx+1,this._markers.length)}},{key:"_initIdx",value:function(e,t,n){var i=!1,r=this._markers.findIndex((function(t){return t.resource.toString()===e.uri.toString()}));r<0&&(r=(0,v.ry)(this._markers,{resource:e.uri},(function(e,t){return(0,_.qu)(e.resource.toString(),t.resource.toString())})))<0&&(r=~r);for(var o=r;o<this._markers.length;o++){var a=f.e.lift(this._markers[o]);if(a.isEmpty()){var s=e.getWordAtPosition(a.getStartPosition());s&&(a=new f.e(a.startLineNumber,s.startColumn,a.startLineNumber,s.endColumn))}if(t&&(a.containsPosition(t)||t.isBeforeOrEqual(a.getStartPosition()))){this._nextIdx=o,i=!0;break}if(this._markers[o].resource.toString()!==e.uri.toString())break}i||(this._nextIdx=n?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}},{key:"resetIndex",value:function(){this._nextIdx=-1}},{key:"move",value:function(e,t,n){if(0===this._markers.length)return!1;var i=this._nextIdx;return-1===this._nextIdx?this._initIdx(t,n,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),i!==this._nextIdx}},{key:"find",value:function(e,t){var n=this._markers.findIndex((function(t){return t.resource.toString()===e.toString()}));if(!(n<0))for(;n<this._markers.length;n++)if(f.e.containsPosition(this._markers[n],t))return new T(this._markers[n],n+1,this._markers.length)}}]),e}();N=x([E(1,w.lT),E(2,k.Ui)],N);var I=(0,S.yh)("IMarkerNavigationService"),D=function(){function e(t,n){(0,a.Z)(this,e),this._markerService=t,this._configService=n,this._provider=new y.S}return(0,s.Z)(e,[{key:"getMarkerList",value:function(e){var t,n=(0,g.Z)(this._provider);try{for(n.s();!(t=n.n()).done;){var i=t.value.getMarkerList(e);if(i)return i}}catch(r){n.e(r)}finally{n.f()}return new N(e,this._markerService,this._configService)}}]),e}();D=x([E(0,w.lT),E(1,k.Ui)],D),(0,C.z)(I,D,!0);var L,O=n(27722),R=n(48996),A=n(34509),M=n(96752),P=n(97326),Z=n(11752),F=n(61120),B=n(81531),H=n(27338),z=n(62458),j=n(41175),V=n(33800),W=n(14835),U=n(38670),G=n(83078),K=n(49750),Y=n(32379),q=n(64014);!function(e){e.className=function(e){switch(e){case K.Z.Ignore:return"severity-ignore "+l.lA.info.classNames;case K.Z.Info:return l.lA.info.classNames;case K.Z.Warning:return l.lA.warning.classNames;case K.Z.Error:return l.lA.error.classNames;default:return""}}}(L||(L={})),(0,q.Ic)((function(e,t){var n=e.getColor(Y.JpG);if(n){var i=l.lA.error.cssSelector;t.addRule("\n\t\t\t.monaco-editor .zone-widget ".concat(i,",\n\t\t\t.markers-panel .marker-icon").concat(i,",\n\t\t\t.text-search-provider-messages .providerMessage ").concat(i,",\n\t\t\t.extensions-viewlet > .extensions ").concat(i," {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t"))}var r=e.getColor(Y.BOY);if(r){var o=l.lA.warning.cssSelector;t.addRule("\n\t\t\t.monaco-editor .zone-widget ".concat(o,",\n\t\t\t.markers-panel .marker-icon").concat(o,",\n\t\t\t.extensions-viewlet > .extensions ").concat(o,",\n\t\t\t.extension-editor ").concat(o,",\n\t\t\t.text-search-provider-messages .providerMessage ").concat(o,",\n\t\t\t.preferences-editor ").concat(o," {\n\t\t\t\tcolor: ").concat(r,";\n\t\t\t}\n\t\t"))}var a=e.getColor(Y.OLZ);if(a){var s=l.lA.info.cssSelector;t.addRule("\n\t\t\t.monaco-editor .zone-widget ".concat(s,",\n\t\t\t.markers-panel .marker-icon").concat(s,",\n\t\t\t.extensions-viewlet > .extensions ").concat(s,",\n\t\t\t.text-search-provider-messages .providerMessage ").concat(s,",\n\t\t\t.extension-editor ").concat(s," {\n\t\t\t\tcolor: ").concat(a,";\n\t\t\t}\n\t\t"))}}));var $=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},X=function(e,t){return function(n,i){t(n,i,e)}},Q=function(){function e(t,n,i,r,o){var s=this;(0,a.Z)(this,e),this._openerService=r,this._labelService=o,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new c.SL,this._editor=n;var l=document.createElement("div");l.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),l.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),l.appendChild(this._relatedBlock),this._disposables.add(B.addStandardDisposableListener(this._relatedBlock,"click",(function(e){e.preventDefault();var t=s._relatedDiagnostics.get(e.target);t&&i(t)}))),this._scrollable=new H.NB(l,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),t.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((function(e){l.style.left="-".concat(e.scrollLeft,"px"),l.style.top="-".concat(e.scrollTop,"px")}))),this._disposables.add(this._scrollable)}return(0,s.Z)(e,[{key:"dispose",value:function(){(0,c.B9)(this._disposables)}},{key:"update",value:function(e){var t=this,n=e.source,i=e.message,r=e.relatedInformation,o=e.code,a=((null===n||void 0===n?void 0:n.length)||0)+"()".length;o&&(a+="string"===typeof o?o.length:o.value.length);var s=(0,_.uq)(i);this._lines=s.length,this._longestLineLength=0;var l,c=(0,g.Z)(s);try{for(c.s();!(l=c.n()).done;){var u=l.value;this._longestLineLength=Math.max(u.length+a,this._longestLineLength)}}catch(L){c.e(L)}finally{c.f()}B.clearNode(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);var d,h=this._messageBlock,f=(0,g.Z)(s);try{for(f.s();!(d=f.n()).done;){var p=d.value;(h=document.createElement("div")).innerText=p,""===p&&(h.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(h)}}catch(L){f.e(L)}finally{f.f()}if(n||o){var m=document.createElement("span");if(m.classList.add("details"),h.appendChild(m),n){var y=document.createElement("span");y.innerText=n,y.classList.add("source"),m.appendChild(y)}if(o)if("string"===typeof o){var b=document.createElement("span");b.innerText="(".concat(o,")"),b.classList.add("code"),m.appendChild(b)}else{this._codeLink=B.$("a.code-link"),this._codeLink.setAttribute("href","".concat(o.target.toString())),this._codeLink.onclick=function(e){t._openerService.open(o.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()},B.append(this._codeLink,B.$("span")).innerText=o.value,m.appendChild(this._codeLink)}}if(B.clearNode(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,v.Of)(r)){var C=this._relatedBlock.appendChild(document.createElement("div"));C.style.paddingTop="".concat(Math.floor(.66*this._editor.getOption(61)),"px"),this._lines+=1;var S,w=(0,g.Z)(r);try{for(w.s();!(S=w.n()).done;){var k=S.value,x=document.createElement("div"),E=document.createElement("a");E.classList.add("filename"),E.innerText="".concat(this._labelService.getUriBasenameLabel(k.resource),"(").concat(k.startLineNumber,", ").concat(k.startColumn,"): "),E.title=this._labelService.getUriLabel(k.resource),this._relatedDiagnostics.set(E,k);var T=document.createElement("span");T.innerText=k.message,x.appendChild(E),x.appendChild(T),this._lines+=1,C.appendChild(x)}}catch(L){w.e(L)}finally{w.f()}}var N=this._editor.getOption(46),I=Math.ceil(N.typicalFullwidthCharacterWidth*this._longestLineLength*.75),D=N.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:I,scrollHeight:D})}},{key:"layout",value:function(e,t){this._scrollable.getDomNode().style.height="".concat(e,"px"),this._scrollable.getDomNode().style.width="".concat(t,"px"),this._scrollable.setScrollDimensions({width:t,height:e})}},{key:"getHeightInLines",value:function(){return Math.min(17,this._lines)}},{key:"getAriaLabel",value:function(e){var t="";switch(e.severity){case w.ZL.Error:t=O.NC("Error","Error");break;case w.ZL.Warning:t=O.NC("Warning","Warning");break;case w.ZL.Info:t=O.NC("Info","Info");break;case w.ZL.Hint:t=O.NC("Hint","Hint")}var n=O.NC("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn),i=this._editor.getModel();if(i&&e.startLineNumber<=i.getLineCount()&&e.startLineNumber>=1){var r=i.getLineContent(e.startLineNumber);n="".concat(r,", ").concat(n)}return n}}]),e}(),J=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r,o,s,l,u){var d;return(0,a.Z)(this,n),(d=t.call(this,e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s))._themeService=i,d._openerService=r,d._menuService=o,d._contextKeyService=l,d._labelService=u,d._callOnDispose=new c.SL,d._onDidSelectRelatedInformation=new m.Q5,d.onDidSelectRelatedInformation=d._onDidSelectRelatedInformation.event,d._severity=w.ZL.Warning,d._backgroundColor=z.Il.white,d._applyTheme(i.getColorTheme()),d._callOnDispose.add(i.onDidColorThemeChange(d._applyTheme.bind((0,P.Z)(d)))),d.create(),d}return(0,s.Z)(n,[{key:"_applyTheme",value:function(e){this._backgroundColor=e.getColor(ce);var t=ie,n=re;this._severity===w.ZL.Warning?(t=oe,n=ae):this._severity===w.ZL.Info&&(t=se,n=le);var i=e.getColor(t),r=e.getColor(n);this.style({arrowColor:i,frameColor:i,headerBackgroundColor:r,primaryHeadingColor:e.getColor(V.IH),secondaryHeadingColor:e.getColor(V.R7)})}},{key:"_applyStyles",value:function(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),(0,Z.Z)((0,F.Z)(n.prototype),"_applyStyles",this).call(this)}},{key:"dispose",value:function(){this._callOnDispose.dispose(),(0,Z.Z)((0,F.Z)(n.prototype),"dispose",this).call(this)}},{key:"_fillHead",value:function(e){var t=this;(0,Z.Z)((0,F.Z)(n.prototype),"_fillHead",this).call(this,e),this._disposables.add(this._actionbarWidget.actionRunner.onBeforeRun((function(e){return t.editor.focus()})));var i=[],r=this._menuService.createMenu(n.TitleMenu,this._contextKeyService);(0,W.vr)(r,void 0,i),this._actionbarWidget.push(i,{label:!1,icon:!0,index:0}),r.dispose()}},{key:"_fillTitleIcon",value:function(e){this._icon=B.append(e,B.$(""))}},{key:"_fillBody",value:function(e){var t=this;this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Q(this._container,this.editor,(function(e){return t._onDidSelectRelatedInformation.fire(e)}),this._openerService,this._labelService),this._disposables.add(this._message)}},{key:"show",value:function(){throw new Error("call showAtMarker")}},{key:"showAtMarker",value:function(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());var r=f.e.lift(e),o=this.editor.getPosition(),a=o&&r.containsPosition(o)?o:r.getStartPosition();(0,Z.Z)((0,F.Z)(n.prototype),"show",this).call(this,a,this.computeRequiredHeight());var s=this.editor.getModel();if(s){var l=i>1?O.NC("problems","{0} of {1} problems",t,i):O.NC("change","{0} of {1} problem",t,i);this.setTitle((0,j.EZ)(s.uri),l)}this._icon.className="codicon ".concat(L.className(w.ZL.toSeverity(this._severity))),this.editor.revealPositionNearTop(a,0),this.editor.focus()}},{key:"updateMarker",value:function(e){this._container.classList.remove("stale"),this._message.update(e)}},{key:"showStale",value:function(){this._container.classList.add("stale"),this._relayout()}},{key:"_doLayoutBody",value:function(e,t){(0,Z.Z)((0,F.Z)(n.prototype),"_doLayoutBody",this).call(this,e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height="".concat(e,"px")}},{key:"_onWidth",value:function(e){this._message.layout(this._heightInPixel,e)}},{key:"_relayout",value:function(){(0,Z.Z)((0,F.Z)(n.prototype),"_relayout",this).call(this,this.computeRequiredHeight())}},{key:"computeRequiredHeight",value:function(){return 3+this._message.getHeightInLines()}}]),n}(V.vk);J.TitleMenu=new R.eH("gotoErrorTitleMenu"),J=$([X(1,q.XE),X(2,G.v4),X(3,R.co),X(4,S.TG),X(5,A.i6),X(6,U.e)],J);var ee=(0,Y.kwl)(Y.lXJ,Y.b6y),te=(0,Y.kwl)(Y.uoC,Y.pW3),ne=(0,Y.kwl)(Y.c63,Y.T83),ie=(0,Y.P6G)("editorMarkerNavigationError.background",{dark:ee,light:ee,hcDark:Y.lRK,hcLight:Y.lRK},O.NC("editorMarkerNavigationError","Editor marker navigation widget error color.")),re=(0,Y.P6G)("editorMarkerNavigationError.headerBackground",{dark:(0,Y.ZnX)(ie,.1),light:(0,Y.ZnX)(ie,.1),hcDark:null,hcLight:null},O.NC("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),oe=(0,Y.P6G)("editorMarkerNavigationWarning.background",{dark:te,light:te,hcDark:Y.lRK,hcLight:Y.lRK},O.NC("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),ae=(0,Y.P6G)("editorMarkerNavigationWarning.headerBackground",{dark:(0,Y.ZnX)(oe,.1),light:(0,Y.ZnX)(oe,.1),hcDark:"#0C141F",hcLight:(0,Y.ZnX)(oe,.2)},O.NC("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),se=(0,Y.P6G)("editorMarkerNavigationInfo.background",{dark:ne,light:ne,hcDark:Y.lRK,hcLight:Y.lRK},O.NC("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),le=(0,Y.P6G)("editorMarkerNavigationInfo.headerBackground",{dark:(0,Y.ZnX)(se,.1),light:(0,Y.ZnX)(se,.1),hcDark:null,hcLight:null},O.NC("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),ce=(0,Y.P6G)("editorMarkerNavigation.background",{dark:Y.cvW,light:Y.cvW,hcDark:Y.cvW,hcLight:Y.cvW},O.NC("editorMarkerNavigationBackground","Editor marker navigation widget background.")),ue=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},de=function(e,t){return function(n,i){t(n,i,e)}},he=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},fe=function(){function e(t,n,i,r,o){(0,a.Z)(this,e),this._markerNavigationService=n,this._contextKeyService=i,this._editorService=r,this._instantiationService=o,this._sessionDispoables=new c.SL,this._editor=t,this._widgetVisible=_e.bindTo(this._contextKeyService)}return(0,s.Z)(e,[{key:"dispose",value:function(){this._cleanUp(),this._sessionDispoables.dispose()}},{key:"_cleanUp",value:function(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}},{key:"_getOrCreateModel",value:function(e){var t=this;if(this._model&&this._model.matches(e))return this._model;var n=!1;return this._model&&(n=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),n&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(J,this._editor),this._widget.onDidClose((function(){return t.close()}),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition((function(e){var n,i,r;(null===(n=t._model)||void 0===n?void 0:n.selected)&&f.e.containsPosition(null===(i=t._model)||void 0===i?void 0:i.selected.marker,e.position)||null===(r=t._model)||void 0===r||r.resetIndex()}))),this._sessionDispoables.add(this._model.onDidChange((function(){if(t._widget&&t._widget.position&&t._model){var e=t._model.find(t._editor.getModel().uri,t._widget.position);e?t._widget.updateMarker(e.marker):t._widget.showStale()}}))),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation((function(e){t._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:f.e.lift(e).collapseToStart()}},t._editor),t.close(!1)}))),this._sessionDispoables.add(this._editor.onDidChangeModel((function(){return t._cleanUp()}))),this._model}},{key:"close",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._cleanUp(),e&&this._editor.focus()}},{key:"showAtMarker",value:function(e){if(this._editor.hasModel()){var t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new h.L(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}},{key:"nagivate",value:function(t,n){var i,r;return he(this,void 0,void 0,(0,o.Z)().mark((function a(){var s,l;return(0,o.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!this._editor.hasModel()){o.next=14;break}if((s=this._getOrCreateModel(n?void 0:this._editor.getModel().uri)).move(t,this._editor.getModel(),this._editor.getPosition()),s.selected){o.next=5;break}return o.abrupt("return");case 5:if(s.selected.marker.resource.toString()===this._editor.getModel().uri.toString()){o.next=13;break}return this._cleanUp(),o.next=9,this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);case 9:(l=o.sent)&&(null===(i=e.get(l))||void 0===i||i.close(),null===(r=e.get(l))||void 0===r||r.nagivate(t,n)),o.next=14;break;case 13:this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total);case 14:case"end":return o.stop()}}),a,this)})))}}],[{key:"get",value:function(t){return t.getContribution(e.ID)}}]),e}();fe.ID="editor.contrib.markerController",fe=ue([de(1,I),de(2,A.i6),de(3,d.$),de(4,S.TG)],fe);var pe=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r){var o;return(0,a.Z)(this,n),(o=t.call(this,r))._next=e,o._multiFile=i,o}return(0,s.Z)(n,[{key:"run",value:function(e,t){var n;return he(this,void 0,void 0,(0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.hasModel()&&(null===(n=fe.get(t))||void 0===n||n.nagivate(this._next,this._multiFile));case 1:case"end":return e.stop()}}),e,this)})))}}]),n}(u.R6),ge=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,!0,!1,{id:n.ID,label:n.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:p.u.focus,primary:578,weight:100},menuOpts:{menuId:J.TitleMenu,title:n.LABEL,icon:(0,M.q5)("marker-navigation-next",l.lA.arrowDown,O.NC("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}return(0,s.Z)(n)}(pe);ge.ID="editor.action.marker.next",ge.LABEL=O.NC("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");var ve=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,!1,!1,{id:n.ID,label:n.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:p.u.focus,primary:1602,weight:100},menuOpts:{menuId:J.TitleMenu,title:n.LABEL,icon:(0,M.q5)("marker-navigation-previous",l.lA.arrowUp,O.NC("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}return(0,s.Z)(n)}(pe);ve.ID="editor.action.marker.prev",ve.LABEL=O.NC("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");var me=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,!0,!0,{id:"editor.action.marker.nextInFiles",label:O.NC("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:p.u.focus,primary:66,weight:100},menuOpts:{menuId:R.eH.MenubarGoMenu,title:O.NC({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}return(0,s.Z)(n)}(pe),ye=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,!1,!0,{id:"editor.action.marker.prevInFiles",label:O.NC("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:p.u.focus,primary:1090,weight:100},menuOpts:{menuId:R.eH.MenubarGoMenu,title:O.NC({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}return(0,s.Z)(n)}(pe);(0,u._K)(fe.ID,fe),(0,u.Qr)(ge),(0,u.Qr)(ve),(0,u.Qr)(me),(0,u.Qr)(ye);var _e=new A.uy("markersNavigationVisible",!1),be=u._l.bindToContribution(fe.get);(0,u.fK)(new be({id:"closeMarkersNavigation",precondition:_e,handler:function(e){return e.close()},kbOpts:{weight:150,kbExpr:p.u.focus,primary:9,secondary:[1033]}}))},49474:function(e,t,n){"use strict";n.r(t),n.d(t,{DefinitionAction:function(){return de},SymbolNavigationAction:function(){return ue},SymbolNavigationAnchor:function(){return ce}});var i=n(11752),r=n(61120),o=n(74165),a=n(60136),s=n(27277),l=n(15671),c=n(43144),u=n(62865),d=n(4801),h=n(60022),f=n(16321),p=n(73616),g=n(85294),v=n(72112),m=n(68132),y=n(64314),_=n(62381),b=n(98596),C=n(96535),S=n(38622),w=n(80133),k=n(67245),x=n(12905),E=n(9936),T=n(87847),N=n(37762),I=n(73097),D=n(11860),L=n(41175),O=n(27722),R=n(34509),A=n(77896),M=n(36888),P=n(47569),Z=n(5850),F=n(15493),B=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},H=function(e,t){return function(n,i){t(n,i,e)}},z=new R.uy("hasSymbols",!1,(0,O.NC)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),j=(0,M.yh)("ISymbolNavigationService"),V=function(){function e(t,n,i,r){(0,l.Z)(this,e),this._editorService=n,this._notificationService=i,this._keybindingService=r,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=z.bindTo(t)}return(0,c.Z)(e,[{key:"reset",value:function(){var e,t;this._ctxHasSymbols.reset(),null===(e=this._currentState)||void 0===e||e.dispose(),null===(t=this._currentMessage)||void 0===t||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}},{key:"put",value:function(e){var t=this,n=e.parent.parent;if(n.references.length<=1)this.reset();else{this._currentModel=n,this._currentIdx=n.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();var i=new W(this._editorService),r=i.onDidChange((function(e){if(!t._ignoreEditorChange){var i=t._editorService.getActiveCodeEditor();if(i){var r=i.getModel(),o=i.getPosition();if(r&&o){var a,s=!1,l=!1,c=(0,N.Z)(n.references);try{for(c.s();!(a=c.n()).done;){var u=a.value;if((0,L.Xy)(u.uri,r.uri))s=!0,l=l||w.e.containsPosition(u.range,o);else if(s)break}}catch(d){c.e(d)}finally{c.f()}s&&l||t.reset()}}}}));this._currentState=(0,D.F8)(i,r)}}},{key:"revealNext",value:function(e){var t=this;if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var n=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:n.uri,options:{selection:w.e.collapseToStart(n.range),selectionRevealType:3}},e).finally((function(){t._ignoreEditorChange=!1}))}},{key:"_showMessage",value:function(){var e;null===(e=this._currentMessage)||void 0===e||e.dispose();var t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),n=t?(0,O.NC)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):(0,O.NC)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(n)}}]),e}();V=B([H(0,R.i6),H(1,b.$),H(2,F.lT),H(3,P.d)],V),(0,A.z)(j,V,!0),(0,_.fK)(new(function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{id:"editor.gotoNextSymbolFromResult",precondition:z,kbOpts:{weight:100,primary:70}})}return(0,c.Z)(n,[{key:"runEditorCommand",value:function(e,t){return e.get(j).revealNext(t)}}]),n}(_._l))),Z.W.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:z,primary:9,handler:function(e){e.get(j).reset()}});var W=function(){function e(t){(0,l.Z)(this,e),this._listener=new Map,this._disposables=new D.SL,this._onDidChange=new I.Q5,this.onDidChange=this._onDidChange.event,this._disposables.add(t.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(t.onCodeEditorAdd(this._onDidAddEditor,this)),t.listCodeEditors().forEach(this._onDidAddEditor,this)}return(0,c.Z)(e,[{key:"dispose",value:function(){this._disposables.dispose(),this._onDidChange.dispose(),(0,D.B9)(this._listener.values())}},{key:"_onDidAddEditor",value:function(e){var t=this;this._listener.set(e,(0,D.F8)(e.onDidChangeCursorPosition((function(n){return t._onDidChange.fire({editor:e})})),e.onDidChangeModelContent((function(n){return t._onDidChange.fire({editor:e})}))))}},{key:"_onDidRemoveEditor",value:function(e){var t;null===(t=this._listener.get(e))||void 0===t||t.dispose(),this._listener.delete(e)}}]),e}();W=B([H(0,b.$)],W);var U,G,K,Y,q,$,X,Q,J=n(55824),ee=n(33800),te=n(48996),ne=n(11133),ie=n(47901),re=n(44215),oe=n(53584),ae=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};te.BH.appendMenuItem(te.eH.EditorContext,{submenu:te.eH.EditorContextPeek,title:O.NC("peek.submenu","Peek"),group:"navigation",order:100});var se=new Set;function le(e){var t=new e;return(0,_.QG)(t),se.add(t.id),t}var ce=function(){function e(t,n){(0,l.Z)(this,e),this.model=t,this.position=n}return(0,c.Z)(e,null,[{key:"is",value:function(t){return!(!t||"object"!==typeof t)&&(t instanceof e||!(!S.L.isIPosition(t.position)||!t.model))}}]),e}(),ue=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,i)).configuration=e,r}return(0,c.Z)(n,[{key:"run",value:function(e,t,i){var r=this;if(!t.hasModel())return Promise.resolve(void 0);var a=e.get(F.lT),s=e.get(b.$),l=e.get(ie.ek),c=e.get(j),u=e.get(oe.p),f=t.getModel(),p=t.getPosition(),g=ce.is(i)?i:new ce(f,p),v=new m.Dl(t,5),y=(0,h.eP)(this._getLocationModel(u,g.model,g.position,v.token),v.token).then((function(e){return ae(r,void 0,void 0,(0,o.Z)().mark((function i(){var r,a,l,u,h,g=this;return(0,o.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(e&&!v.token.isCancellationRequested){i.next=2;break}return i.abrupt("return");case 2:if((0,d.Z9)(e.ariaMessage),e.referenceAt(f.uri,p)&&(l=this._getAlternativeCommand(t),!n._activeAlternativeCommands.has(l)&&se.has(l)&&(a=t.getAction(l))),0!==(u=e.references.length)){i.next=9;break}this.configuration.muteMessage||(h=f.getWordAtPosition(p),null===(r=J.O.get(t))||void 0===r||r.showMessage(this._getNoResultFoundMessage(h),p)),i.next=15;break;case 9:if(1!==u||!a){i.next=14;break}n._activeAlternativeCommands.add(this.id),a.run().finally((function(){n._activeAlternativeCommands.delete(g.id)})),i.next=15;break;case 14:return i.abrupt("return",this._onResult(s,c,t,e));case 15:case"end":return i.stop()}}),i,this)})))}),(function(e){a.error(e)})).finally((function(){v.dispose()}));return l.showWhile(y,250),y}},{key:"_onResult",value:function(e,t,n,i){return ae(this,void 0,void 0,(0,o.Z)().mark((function r(){var a,s,l,c;return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=this._getGoToPreference(n),n instanceof C.H||!(this.configuration.openInPeek||"peek"===a&&i.references.length>1)){r.next=5;break}this._openInPeek(n,i),r.next=12;break;case 5:return s=i.firstReference(),l=i.references.length>1&&"gotoAndPeek"===a,r.next=9,this._openReference(n,e,s,this.configuration.openToSide,!l);case 9:c=r.sent,l&&c?this._openInPeek(c,i):i.dispose(),"goto"===a&&t.put(s);case 12:case"end":return r.stop()}}),r,this)})))}},{key:"_openReference",value:function(e,t,n,i,r){return ae(this,void 0,void 0,(0,o.Z)().mark((function a(){var s,l,c,u;return(0,o.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(s=void 0,(0,x.vx)(n)&&(s=n.targetSelectionRange),s||(s=n.range),s){o.next=5;break}return o.abrupt("return",void 0);case 5:return o.next=7,t.openCodeEditor({resource:n.uri,options:{selection:w.e.collapseToStart(s),selectionRevealType:3,selectionSource:"code.jump"}},e,i);case 7:if(l=o.sent){o.next=10;break}return o.abrupt("return",void 0);case 10:return r&&(c=l.getModel(),u=l.createDecorationsCollection([{range:s,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]),setTimeout((function(){l.getModel()===c&&u.clear()}),350)),o.abrupt("return",l);case 12:case"end":return o.stop()}}),a)})))}},{key:"_openInPeek",value:function(e,t){var n=E.J.get(e);n&&e.hasModel()?n.toggleWidget(e.getSelection(),(0,h.PG)((function(e){return Promise.resolve(t)})),this.configuration.openInPeek):t.dispose()}}]),n}(_.R6);ue._activeAlternativeCommands=new Set;var de=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"_getLocationModel",value:function(e,t,n,i){return ae(this,void 0,void 0,(0,o.Z)().mark((function r(){return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=T.oQ,r.next=3,(0,re.nD)(e.definitionProvider,t,n,i);case 3:return r.t1=r.sent,r.t2=O.NC("def.title","Definitions"),r.abrupt("return",new r.t0(r.t1,r.t2));case 6:case"end":return r.stop()}}),r)})))}},{key:"_getNoResultFoundMessage",value:function(e){return e&&e.word?O.NC("noResultWord","No definition found for '{0}'",e.word):O.NC("generic.noResults","No definition found")}},{key:"_getAlternativeCommand",value:function(e){return e.getOption(53).alternativeDefinitionCommand}},{key:"_getGoToPreference",value:function(e){return e.getOption(53).multipleDefinitions}}]),n}(ue),he=p.$L&&!(0,u.isStandalone)()?2118:70;le(((U=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,l.Z)(this,n),e=t.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:n.id,label:O.NC("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:R.Ao.and(k.u.hasDefinitionProvider,k.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:k.u.editorTextFocus,primary:he,weight:100},contextMenuOpts:{group:"navigation",order:1.1}}),ne.P0.registerCommandAlias("editor.action.goToDeclaration",n.id),e}return(0,c.Z)(n)}(de)).id="editor.action.revealDefinition",U)),le(((G=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,l.Z)(this,n),e=t.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:n.id,label:O.NC("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:R.Ao.and(k.u.hasDefinitionProvider,k.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:k.u.editorTextFocus,primary:(0,f.gx)(2089,he),weight:100}}),ne.P0.registerCommandAlias("editor.action.openDeclarationToTheSide",n.id),e}return(0,c.Z)(n)}(de)).id="editor.action.revealDefinitionAside",G)),le(((K=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,l.Z)(this,n),e=t.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:n.id,label:O.NC("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:R.Ao.and(k.u.hasDefinitionProvider,ee.Jy.notInPeekEditor,k.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:k.u.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:te.eH.EditorContextPeek,group:"peek",order:2}}),ne.P0.registerCommandAlias("editor.action.previewDeclaration",n.id),e}return(0,c.Z)(n)}(de)).id="editor.action.peekDefinition",K));var fe=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"_getLocationModel",value:function(e,t,n,i){return ae(this,void 0,void 0,(0,o.Z)().mark((function r(){return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=T.oQ,r.next=3,(0,re.zq)(e.declarationProvider,t,n,i);case 3:return r.t1=r.sent,r.t2=O.NC("decl.title","Declarations"),r.abrupt("return",new r.t0(r.t1,r.t2));case 6:case"end":return r.stop()}}),r)})))}},{key:"_getNoResultFoundMessage",value:function(e){return e&&e.word?O.NC("decl.noResultWord","No declaration found for '{0}'",e.word):O.NC("decl.generic.noResults","No declaration found")}},{key:"_getAlternativeCommand",value:function(e){return e.getOption(53).alternativeDeclarationCommand}},{key:"_getGoToPreference",value:function(e){return e.getOption(53).multipleDeclarations}}]),n}(ue);le(((Y=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:n.id,label:O.NC("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:R.Ao.and(k.u.hasDeclarationProvider,k.u.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3}})}return(0,c.Z)(n,[{key:"_getNoResultFoundMessage",value:function(e){return e&&e.word?O.NC("decl.noResultWord","No declaration found for '{0}'",e.word):O.NC("decl.generic.noResults","No declaration found")}}]),n}(fe)).id="editor.action.revealDeclaration",Y)),le(function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:O.NC("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:R.Ao.and(k.u.hasDeclarationProvider,ee.Jy.notInPeekEditor,k.u.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:te.eH.EditorContextPeek,group:"peek",order:3}})}return(0,c.Z)(n)}(fe));var pe=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"_getLocationModel",value:function(e,t,n,i){return ae(this,void 0,void 0,(0,o.Z)().mark((function r(){return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=T.oQ,r.next=3,(0,re.L3)(e.typeDefinitionProvider,t,n,i);case 3:return r.t1=r.sent,r.t2=O.NC("typedef.title","Type Definitions"),r.abrupt("return",new r.t0(r.t1,r.t2));case 6:case"end":return r.stop()}}),r)})))}},{key:"_getNoResultFoundMessage",value:function(e){return e&&e.word?O.NC("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):O.NC("goToTypeDefinition.generic.noResults","No type definition found")}},{key:"_getAlternativeCommand",value:function(e){return e.getOption(53).alternativeTypeDefinitionCommand}},{key:"_getGoToPreference",value:function(e){return e.getOption(53).multipleTypeDefinitions}}]),n}(ue);le(((q=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:n.ID,label:O.NC("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:R.Ao.and(k.u.hasTypeDefinitionProvider,k.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:k.u.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4}})}return(0,c.Z)(n)}(pe)).ID="editor.action.goToTypeDefinition",q)),le((($=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:n.ID,label:O.NC("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:R.Ao.and(k.u.hasTypeDefinitionProvider,ee.Jy.notInPeekEditor,k.u.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:te.eH.EditorContextPeek,group:"peek",order:4}})}return(0,c.Z)(n)}(pe)).ID="editor.action.peekTypeDefinition",$));var ge=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"_getLocationModel",value:function(e,t,n,i){return ae(this,void 0,void 0,(0,o.Z)().mark((function r(){return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=T.oQ,r.next=3,(0,re.f4)(e.implementationProvider,t,n,i);case 3:return r.t1=r.sent,r.t2=O.NC("impl.title","Implementations"),r.abrupt("return",new r.t0(r.t1,r.t2));case 6:case"end":return r.stop()}}),r)})))}},{key:"_getNoResultFoundMessage",value:function(e){return e&&e.word?O.NC("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):O.NC("goToImplementation.generic.noResults","No implementation found")}},{key:"_getAlternativeCommand",value:function(e){return e.getOption(53).alternativeImplementationCommand}},{key:"_getGoToPreference",value:function(e){return e.getOption(53).multipleImplementations}}]),n}(ue);le(((X=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:n.ID,label:O.NC("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:R.Ao.and(k.u.hasImplementationProvider,k.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:k.u.editorTextFocus,primary:2118,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}return(0,c.Z)(n)}(ge)).ID="editor.action.goToImplementation",X)),le(((Q=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:n.ID,label:O.NC("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:R.Ao.and(k.u.hasImplementationProvider,ee.Jy.notInPeekEditor,k.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:k.u.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:te.eH.EditorContextPeek,group:"peek",order:5}})}return(0,c.Z)(n)}(ge)).ID="editor.action.peekImplementation",Q));var ve=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"_getNoResultFoundMessage",value:function(e){return e?O.NC("references.no","No references found for '{0}'",e.word):O.NC("references.noGeneric","No references found")}},{key:"_getAlternativeCommand",value:function(e){return e.getOption(53).alternativeReferenceCommand}},{key:"_getGoToPreference",value:function(e){return e.getOption(53).multipleReferences}}]),n}(ue);le(function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:O.NC("goToReferences.label","Go to References"),alias:"Go to References",precondition:R.Ao.and(k.u.hasReferenceProvider,ee.Jy.notInPeekEditor,k.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:k.u.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}return(0,c.Z)(n,[{key:"_getLocationModel",value:function(e,t,n,i){return ae(this,void 0,void 0,(0,o.Z)().mark((function r(){return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=T.oQ,r.next=3,(0,re.aA)(e.referenceProvider,t,n,!0,i);case 3:return r.t1=r.sent,r.t2=O.NC("ref.title","References"),r.abrupt("return",new r.t0(r.t1,r.t2));case 6:case"end":return r.stop()}}),r)})))}}]),n}(ve)),le(function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:O.NC("references.action.label","Peek References"),alias:"Peek References",precondition:R.Ao.and(k.u.hasReferenceProvider,ee.Jy.notInPeekEditor,k.u.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:te.eH.EditorContextPeek,group:"peek",order:6}})}return(0,c.Z)(n,[{key:"_getLocationModel",value:function(e,t,n,i){return ae(this,void 0,void 0,(0,o.Z)().mark((function r(){return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=T.oQ,r.next=3,(0,re.aA)(e.referenceProvider,t,n,!1,i);case 3:return r.t1=r.sent,r.t2=O.NC("ref.title","References"),r.abrupt("return",new r.t0(r.t1,r.t2));case 6:case"end":return r.stop()}}),r)})))}}]),n}(ve));var me=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this,e,{id:"editor.action.goToLocation",label:O.NC("label.generic","Go to Any Symbol"),alias:"Go to Any Symbol",precondition:R.Ao.and(ee.Jy.notInPeekEditor,k.u.isInWalkThroughSnippet.toNegated())}))._references=i,o._gotoMultipleBehaviour=r,o}return(0,c.Z)(n,[{key:"_getLocationModel",value:function(e,t,n,i){return ae(this,void 0,void 0,(0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new T.oQ(this._references,O.NC("generic.title","Locations")));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"_getNoResultFoundMessage",value:function(e){return e&&O.NC("generic.noResult","No results for '{0}'",e.word)||""}},{key:"_getGoToPreference",value:function(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(53).multipleReferences}},{key:"_getAlternativeCommand",value:function(){return""}}]),n}(ue);ne.P0.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:v.o},{name:"position",description:"The position at which to start",constraint:S.L.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:function(e,t,n,u,d,h,f){return ae(void 0,void 0,void 0,(0,o.Z)().mark((function p(){var m,_;return(0,o.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return(0,g.p_)(v.o.isUri(t)),(0,g.p_)(S.L.isIPosition(n)),(0,g.p_)(Array.isArray(u)),(0,g.p_)("undefined"===typeof d||"string"===typeof d),(0,g.p_)("undefined"===typeof f||"boolean"===typeof f),m=e.get(b.$),o.next=8,m.openCodeEditor({resource:t},m.getFocusedCodeEditor());case 8:if(_=o.sent,!(0,y.CL)(_)){o.next=13;break}return _.setPosition(n),_.revealPositionInCenterIfOutsideViewport(n,0),o.abrupt("return",_.invokeWithinContext((function(e){var t=new(function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"_getNoResultFoundMessage",value:function(e){return h||(0,i.Z)((0,r.Z)(n.prototype),"_getNoResultFoundMessage",this).call(this,e)}}]),n}(me))({muteMessage:!Boolean(h),openInPeek:Boolean(f),openToSide:!1},u,d);e.get(M.TG).invokeFunction(t.run.bind(t),_)})));case 13:case"end":return o.stop()}}),p)})))}}),ne.P0.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:v.o},{name:"position",description:"The position at which to start",constraint:S.L.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(e,t,n,i,r){return ae(void 0,void 0,void 0,(0,o.Z)().mark((function a(){return(0,o.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:e.get(ne.Hy).executeCommand("editor.action.goToLocations",t,n,i,r,void 0,!0);case 1:case"end":return o.stop()}}),a)})))}}),ne.P0.registerCommand({id:"editor.action.findReferences",handler:function(e,t,n){(0,g.p_)(v.o.isUri(t)),(0,g.p_)(S.L.isIPosition(n));var i=e.get(oe.p),r=e.get(b.$);return r.openCodeEditor({resource:t},r.getFocusedCodeEditor()).then((function(e){if((0,y.CL)(e)&&e.hasModel()){var t=E.J.get(e);if(t){var r=(0,h.PG)((function(t){return(0,re.aA)(i.referenceProvider,e.getModel(),S.L.lift(n),!1,t).then((function(e){return new T.oQ(e,O.NC("ref.title","References"))}))})),o=new w.e(n.lineNumber,n.column,n.lineNumber,n.column);return Promise.resolve(t.toggleWidget(o,r,!1))}}}))}}),ne.P0.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations"),te.BH.appendMenuItems([{id:te.eH.MenubarGoMenu,item:{command:{id:"editor.action.revealDefinition",title:O.NC({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},group:"4_symbol_nav",order:2}},{id:te.eH.MenubarGoMenu,item:{command:{id:"editor.action.revealDeclaration",title:O.NC({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},group:"4_symbol_nav",order:3}},{id:te.eH.MenubarGoMenu,item:{command:{id:"editor.action.goToTypeDefinition",title:O.NC({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},group:"4_symbol_nav",order:3}},{id:te.eH.MenubarGoMenu,item:{command:{id:"editor.action.goToImplementation",title:O.NC({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},group:"4_symbol_nav",order:4}},{id:te.eH.MenubarGoMenu,item:{command:{id:"editor.action.goToReferences",title:O.NC({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},group:"4_symbol_nav",order:5}}])},44215:function(e,t,n){"use strict";n.d(t,{L3:function(){return v},aA:function(){return m},f4:function(){return g},nD:function(){return f},zq:function(){return p}});var i=n(74165),r=n(93433),o=n(37762),a=n(82784),s=n(14173),l=n(62381),c=n(87847),u=n(53584),d=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};function h(e,t,n,i){var a=n.ordered(e).map((function(n){return Promise.resolve(i(n,e,t)).then(void 0,(function(e){(0,s.Cp)(e)}))}));return Promise.all(a).then((function(e){var t,n=[],i=(0,o.Z)(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;Array.isArray(a)?n.push.apply(n,(0,r.Z)(a)):a&&n.push(a)}}catch(s){i.e(s)}finally{i.f()}return n}))}function f(e,t,n,i){return h(t,n,e,(function(e,t,n){return e.provideDefinition(t,n,i)}))}function p(e,t,n,i){return h(t,n,e,(function(e,t,n){return e.provideDeclaration(t,n,i)}))}function g(e,t,n,i){return h(t,n,e,(function(e,t,n){return e.provideImplementation(t,n,i)}))}function v(e,t,n,i){return h(t,n,e,(function(e,t,n){return e.provideTypeDefinition(t,n,i)}))}function m(e,t,n,r,o){var a=this;return h(t,n,e,(function(e,t,n){return d(a,void 0,void 0,(0,i.Z)().mark((function a(){var s,l;return(0,i.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,e.provideReferences(t,n,{includeDeclaration:!0},o);case 2:if(s=i.sent,r&&s&&2===s.length){i.next=5;break}return i.abrupt("return",s);case 5:return i.next=7,e.provideReferences(t,n,{includeDeclaration:!1},o);case 7:if(!(l=i.sent)||1!==l.length){i.next=10;break}return i.abrupt("return",l);case 10:return i.abrupt("return",s);case 11:case"end":return i.stop()}}),a)})))}))}function y(e){return d(this,void 0,void 0,(0,i.Z)().mark((function t(){var n,r,o;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e();case 2:return n=t.sent,r=new c.oQ(n,""),o=r.references.map((function(e){return e.link})),r.dispose(),t.abrupt("return",o);case 7:case"end":return t.stop()}}),t)})))}(0,l.sb)("_executeDefinitionProvider",(function(e,t,n){var i=f(e.get(u.p).definitionProvider,t,n,a.T.None);return y((function(){return i}))})),(0,l.sb)("_executeTypeDefinitionProvider",(function(e,t,n){var i=v(e.get(u.p).typeDefinitionProvider,t,n,a.T.None);return y((function(){return i}))})),(0,l.sb)("_executeDeclarationProvider",(function(e,t,n){var i=p(e.get(u.p).declarationProvider,t,n,a.T.None);return y((function(){return i}))})),(0,l.sb)("_executeReferenceProvider",(function(e,t,n){var i=m(e.get(u.p).referenceProvider,t,n,!1,a.T.None);return y((function(){return i}))})),(0,l.sb)("_executeImplementationProvider",(function(e,t,n){var i=g(e.get(u.p).implementationProvider,t,n,a.T.None);return y((function(){return i}))}))},25047:function(e,t,n){"use strict";n.d(t,{yN:function(){return g}});var i=n(60136),r=n(27277),o=n(43144),a=n(15671),s=n(73097),l=n(11860),c=n(73616);function u(e,t){return!!e[t]}var d=(0,o.Z)((function e(t,n){(0,a.Z)(this,e),this.target=t.target,this.hasTriggerModifier=u(t.event,n.triggerModifier),this.hasSideBySideModifier=u(t.event,n.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=t.event.detail<=1})),h=(0,o.Z)((function e(t,n){(0,a.Z)(this,e),this.keyCodeIsTriggerKey=t.keyCode===n.triggerKey,this.keyCodeIsSideBySideKey=t.keyCode===n.triggerSideBySideKey,this.hasTriggerModifier=u(t,n.triggerModifier)})),f=function(){function e(t,n,i,r){(0,a.Z)(this,e),this.triggerKey=t,this.triggerModifier=n,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=r}return(0,o.Z)(e,[{key:"equals",value:function(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}]),e}();function p(e){return"altKey"===e?c.dz?new f(57,"metaKey",6,"altKey"):new f(5,"ctrlKey",6,"altKey"):c.dz?new f(6,"altKey",57,"metaKey"):new f(6,"altKey",5,"ctrlKey")}var g=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this))._onMouseMoveOrRelevantKeyDown=i._register(new s.Q5),i.onMouseMoveOrRelevantKeyDown=i._onMouseMoveOrRelevantKeyDown.event,i._onExecute=i._register(new s.Q5),i.onExecute=i._onExecute.event,i._onCancel=i._register(new s.Q5),i.onCancel=i._onCancel.event,i._editor=e,i._opts=p(i._editor.getOption(72)),i._lastMouseMoveEvent=null,i._hasTriggerKeyOnMouseDown=!1,i._lineNumberOnMouseDown=0,i._register(i._editor.onDidChangeConfiguration((function(e){if(e.hasChanged(72)){var t=p(i._editor.getOption(72));if(i._opts.equals(t))return;i._opts=t,i._lastMouseMoveEvent=null,i._hasTriggerKeyOnMouseDown=!1,i._lineNumberOnMouseDown=0,i._onCancel.fire()}}))),i._register(i._editor.onMouseMove((function(e){return i._onEditorMouseMove(new d(e,i._opts))}))),i._register(i._editor.onMouseDown((function(e){return i._onEditorMouseDown(new d(e,i._opts))}))),i._register(i._editor.onMouseUp((function(e){return i._onEditorMouseUp(new d(e,i._opts))}))),i._register(i._editor.onKeyDown((function(e){return i._onEditorKeyDown(new h(e,i._opts))}))),i._register(i._editor.onKeyUp((function(e){return i._onEditorKeyUp(new h(e,i._opts))}))),i._register(i._editor.onMouseDrag((function(){return i._resetHandler()}))),i._register(i._editor.onDidChangeCursorSelection((function(e){return i._onDidChangeCursorSelection(e)}))),i._register(i._editor.onDidChangeModel((function(e){return i._resetHandler()}))),i._register(i._editor.onDidChangeModelContent((function(){return i._resetHandler()}))),i._register(i._editor.onDidScrollChange((function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&i._resetHandler()}))),i}return(0,o.Z)(n,[{key:"_onDidChangeCursorSelection",value:function(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}},{key:"_onEditorMouseMove",value:function(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}},{key:"_onEditorMouseDown",value:function(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}},{key:"_onEditorMouseUp",value:function(e){var t=e.target.position?e.target.position.lineNumber:0;this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}},{key:"_onEditorKeyDown",value:function(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}},{key:"_onEditorKeyUp",value:function(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}},{key:"_resetHandler",value:function(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}]),n}(l.JT)},34775:function(e,t,n){"use strict";n.r(t),n.d(t,{GotoDefinitionAtPositionEditorContribution:function(){return T}});var i=n(29439),r=n(15671),o=n(43144),a=n(60022),s=n(14173),l=n(61066),c=n(11860),u=n(85294),d=n(68132),h=n(62381),f=n(80133),p=n(72762),g=n(95011),v=n(25047),m=n(33800),y=n(27722),_=n(34509),b=n(32379),C=n(64014),S=n(49474),w=n(44215),k=n(53584),x=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},E=function(e,t){return function(n,i){t(n,i,e)}},T=function(){function e(t,n,o,a){var l=this;(0,r.Z)(this,e),this.textModelResolverService=n,this.languageService=o,this.languageFeaturesService=a,this.toUnhook=new c.SL,this.toUnhookForKeyboard=new c.SL,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=t,this.linkDecorations=this.editor.createDecorationsCollection();var d=new v.yN(t);this.toUnhook.add(d),this.toUnhook.add(d.onMouseMoveOrRelevantKeyDown((function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];l.startFindDefinitionFromMouse(n,(0,u.f6)(r))}))),this.toUnhook.add(d.onExecute((function(e){l.isEnabled(e)&&l.gotoDefinition(e.target.position,e.hasSideBySideModifier).then((function(){l.removeLinkDecorations()}),(function(e){l.removeLinkDecorations(),(0,s.dL)(e)}))}))),this.toUnhook.add(d.onCancel((function(){l.removeLinkDecorations(),l.currentWordAtPosition=null})))}return(0,o.Z)(e,[{key:"startFindDefinitionFromCursor",value:function(e){var t=this;return this.startFindDefinition(e).then((function(){t.toUnhookForKeyboard.add(t.editor.onDidChangeCursorPosition((function(){t.currentWordAtPosition=null,t.removeLinkDecorations(),t.toUnhookForKeyboard.clear()}))),t.toUnhookForKeyboard.add(t.editor.onKeyDown((function(e){e&&(t.currentWordAtPosition=null,t.removeLinkDecorations(),t.toUnhookForKeyboard.clear())})))}))}},{key:"startFindDefinitionFromMouse",value:function(e,t){if(!(9===e.target.type&&this.linkDecorations.length>0)){if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();var n=e.target.position;this.startFindDefinition(n)}}},{key:"startFindDefinition",value:function(e){var t,n=this;this.toUnhookForKeyboard.clear();var i=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return Promise.resolve(0);this.currentWordAtPosition=i;var r=new d.yy(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,a.PG)((function(t){return n.findDefinition(e,t)})),this.previousPromise.then((function(t){if(t&&t.length&&r.validate(n.editor))if(t.length>1)n.addDecoration(new f.e(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),(new l.W5).appendText(y.NC("multipleResults","Click to show {0} definitions.",t.length)));else{var o=t[0];if(!o.uri)return;n.textModelResolverService.createModelReference(o.uri).then((function(t){if(t.object&&t.object.textEditorModel){var r=t.object.textEditorModel,a=o.range.startLineNumber;if(a<1||a>r.getLineCount())t.dispose();else{var s,c=n.getPreviewValue(r,a,o);s=o.originSelectionRange?f.e.lift(o.originSelectionRange):new f.e(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);var u=n.languageService.guessLanguageIdByFilepathOrFirstLine(r.uri);n.addDecoration(s,(new l.W5).appendCodeblock(u||"",c)),t.dispose()}}else t.dispose()}))}else n.removeLinkDecorations()})).then(void 0,s.dL)}},{key:"getPreviewValue",value:function(t,n,i){var r=i.range;return r.endLineNumber-r.startLineNumber>=e.MAX_SOURCE_PREVIEW_LINES&&(r=this.getPreviewRangeBasedOnIndentation(t,n)),this.stripIndentationFromPreviewRange(t,n,r)}},{key:"stripIndentationFromPreviewRange",value:function(e,t,n){for(var i=e.getLineFirstNonWhitespaceColumn(t),r=t+1;r<n.endLineNumber;r++){var o=e.getLineFirstNonWhitespaceColumn(r);i=Math.min(i,o)}return e.getValueInRange(n).replace(new RegExp("^\\s{".concat(i-1,"}"),"gm"),"").trim()}},{key:"getPreviewRangeBasedOnIndentation",value:function(t,n){for(var i=t.getLineFirstNonWhitespaceColumn(n),r=Math.min(t.getLineCount(),n+e.MAX_SOURCE_PREVIEW_LINES),o=n+1;o<r;o++){if(i===t.getLineFirstNonWhitespaceColumn(o))break}return new f.e(n,1,o+1,1)}},{key:"addDecoration",value:function(e,t){var n={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations.set([n])}},{key:"removeLinkDecorations",value:function(){this.linkDecorations.clear()}},{key:"isEnabled",value:function(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}},{key:"findDefinition",value:function(e,t){var n=this.editor.getModel();return n?(0,w.nD)(this.languageFeaturesService.definitionProvider,n,e,t):Promise.resolve(null)}},{key:"gotoDefinition",value:function(e,t){var n=this;return this.editor.setPosition(e),this.editor.invokeWithinContext((function(e){var i=!t&&n.editor.getOption(80)&&!n.isInPeekEditor(e);return new S.DefinitionAction({openToSide:t,openInPeek:i,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(e,n.editor)}))}},{key:"isInPeekEditor",value:function(e){var t=e.get(_.i6);return m.Jy.inPeekEditor.getValue(t)}},{key:"dispose",value:function(){this.toUnhook.dispose()}}],[{key:"get",value:function(t){return t.getContribution(e.ID)}}]),e}();T.ID="editor.contrib.gotodefinitionatposition",T.MAX_SOURCE_PREVIEW_LINES=8,T=x([E(1,g.S),E(2,p.O),E(3,k.p)],T),(0,h._K)(T.ID,T),(0,C.Ic)((function(e,t){var n=e.getColor(b._Yy);n&&t.addRule(".monaco-editor .goto-definition-link { color: ".concat(n," !important; }"))}))},9936:function(e,t,n){"use strict";n.d(t,{J:function(){return Ce}});var i=n(74165),r=n(15671),o=n(43144),a=n(60022),s=n(14173),l=n(16321),c=n(11860),u=n(98596),d=n(38622),h=n(80133),f=n(33800),p=n(27722),g=n(11133),v=n(87984),m=n(34509),y=n(36888),_=n(5850),b=n(39125),C=n(15493),S=n(69681),w=n(87847),k=n(97326),x=n(11752),E=n(61120),T=n(60136),N=n(27277),I=n(93433),D=n(29439),L=n(37762),O=n(81531),R=n(9344),A=n(62458),M=n(73097),P=n(84855),Z=n(41175),F=n(96535),B=n(70845),H=n(29662),z=n(24092),j=n(72762),V=n(95011),W=n(34355),U=n(35252),G=n(89182),K=n(73160),Y=n(47569),q=n(38670),$=n(77406),X=n(64014),Q=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},J=function(e,t){return function(n,i){t(n,i,e)}},ee=function(){function e(t){(0,r.Z)(this,e),this._resolverService=t}return(0,o.Z)(e,[{key:"hasChildren",value:function(e){return e instanceof w.oQ||e instanceof w.F2}},{key:"getChildren",value:function(e){if(e instanceof w.oQ)return e.groups;if(e instanceof w.F2)return e.resolve(this._resolverService).then((function(e){return e.children}));throw new Error("bad tree")}}]),e}();ee=Q([J(0,V.S)],ee);var te=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"getHeight",value:function(){return 23}},{key:"getTemplateId",value:function(e){return e instanceof w.F2?oe.id:se.id}}]),e}(),ne=function(){function e(t){(0,r.Z)(this,e),this._keybindingService=t}return(0,o.Z)(e,[{key:"getKeyboardNavigationLabel",value:function(e){var t;if(e instanceof w.WX){var n=null===(t=e.parent.getPreview(e))||void 0===t?void 0:t.preview(e.range);if(n)return n.value}return(0,Z.EZ)(e.uri)}}]),e}();ne=Q([J(0,Y.d)],ne);var ie=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"getId",value:function(e){return e instanceof w.WX?e.id:e.uri}}]),e}(),re=function(e){(0,T.Z)(n,e);var t=(0,N.Z)(n);function n(e,i,o){var a;(0,r.Z)(this,n),(a=t.call(this))._labelService=i;var s=document.createElement("div");return s.classList.add("reference-file"),a.file=a._register(new G.g(s,{supportHighlights:!0})),a.badge=new W.Z(O.append(s,O.$(".count"))),a._register((0,$.WZ)(a.badge,o)),e.appendChild(s),a}return(0,o.Z)(n,[{key:"set",value:function(e,t){var n=(0,Z.XX)(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(n,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});var i=e.children.length;this.badge.setCount(i),i>1?this.badge.setTitleFormat((0,p.NC)("referencesCount","{0} references",i)):this.badge.setTitleFormat((0,p.NC)("referenceCount","{0} reference",i))}}]),n}(c.JT);re=Q([J(1,q.e),J(2,X.XE)],re);var oe=function(){function e(t){(0,r.Z)(this,e),this._instantiationService=t,this.templateId=e.id}return(0,o.Z)(e,[{key:"renderTemplate",value:function(e){return this._instantiationService.createInstance(re,e)}},{key:"renderElement",value:function(e,t,n){n.set(e.element,(0,K.mB)(e.filterData))}},{key:"disposeTemplate",value:function(e){e.dispose()}}]),e}();oe.id="FileReferencesRenderer",oe=Q([J(0,y.TG)],oe);var ae=function(){function e(t){(0,r.Z)(this,e),this.label=new U.q(t)}return(0,o.Z)(e,[{key:"set",value:function(e,t){var n,i=null===(n=e.parent.getPreview(e))||void 0===n?void 0:n.preview(e.range);if(i&&i.value){var r=i.value,o=i.highlight;t&&!K.CL.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(r,(0,K.mB)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(r,[o]))}else this.label.set("".concat((0,Z.EZ)(e.uri),":").concat(e.range.startLineNumber+1,":").concat(e.range.startColumn+1))}}]),e}(),se=function(){function e(){(0,r.Z)(this,e),this.templateId=e.id}return(0,o.Z)(e,[{key:"renderTemplate",value:function(e){return new ae(e)}},{key:"renderElement",value:function(e,t,n){n.set(e.element,e.filterData)}},{key:"disposeTemplate",value:function(){}}]),e}();se.id="OneReferenceRenderer";var le=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"getWidgetAriaLabel",value:function(){return(0,p.NC)("treeAriaLabel","References")}},{key:"getAriaLabel",value:function(e){return e.ariaMessage}}]),e}(),ce=n(25530),ue=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},de=function(e,t){return function(n,i){t(n,i,e)}},he=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},fe=function(){function e(t,n){var i=this;(0,r.Z)(this,e),this._editor=t,this._model=n,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new c.SL,this._callOnModelChange=new c.SL,this._callOnDispose.add(this._editor.onDidChangeModel((function(){return i._onModelChanged()}))),this._onModelChanged()}return(0,o.Z)(e,[{key:"dispose",value:function(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}},{key:"_onModelChanged",value:function(){this._callOnModelChange.clear();var e=this._editor.getModel();if(e){var t,n=(0,L.Z)(this._model.references);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.uri.toString()===e.uri.toString())return void this._addDecorations(i.parent)}}catch(r){n.e(r)}finally{n.f()}}}},{key:"_addDecorations",value:function(t){var n=this;if(this._editor.hasModel()){this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((function(){return n._onDecorationChanged()})));for(var i=[],r=[],o=0,a=t.children.length;o<a;o++){var s=t.children[o];this._decorationIgnoreSet.has(s.id)||s.uri.toString()===this._editor.getModel().uri.toString()&&(i.push({range:s.range,options:e.DecorationOptions}),r.push(o))}this._editor.changeDecorations((function(e){for(var o=e.deltaDecorations([],i),a=0;a<o.length;a++)n._decorations.set(o[a],t.children[r[a]])}))}}},{key:"_onDecorationChanged",value:function(){var e=[],t=this._editor.getModel();if(t){var n,i=(0,L.Z)(this._decorations);try{for(i.s();!(n=i.n()).done;){var r=(0,D.Z)(n.value,2),o=r[0],a=r[1],s=t.getDecorationRange(o);if(s){var l=!1;if(!h.e.equalsRange(s,a.range)){if(h.e.spansMultipleLines(s))l=!0;else a.range.endColumn-a.range.startColumn!==s.endColumn-s.startColumn&&(l=!0);l?(this._decorationIgnoreSet.add(a.id),e.push(o)):a.range=s}}}}catch(d){i.e(d)}finally{i.f()}for(var c=0,u=e.length;c<u;c++)this._decorations.delete(e[c]);this._editor.removeDecorations(e)}}},{key:"removeDecorations",value:function(){this._editor.removeDecorations((0,I.Z)(this._decorations.keys())),this._decorations.clear()}}]),e}();fe.DecorationOptions=B.qx.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"});var pe=function(){function e(){(0,r.Z)(this,e),this.ratio=.7,this.heightInLines=18}return(0,o.Z)(e,null,[{key:"fromJSON",value:function(e){var t,n;try{var i=JSON.parse(e);t=i.ratio,n=i.heightInLines}catch(r){}return{ratio:t||.7,heightInLines:n||18}}}]),e}(),ge=function(e){(0,T.Z)(n,e);var t=(0,N.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n)}(b.ls),ve=function(e){(0,T.Z)(n,e);var t=(0,N.Z)(n);function n(e,i,o,a,s,l,u,d,h,f,p,g){var v;return(0,r.Z)(this,n),(v=t.call(this,e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},l))._defaultTreeKeyboardSupport=i,v.layoutData=o,v._textModelResolverService=s,v._instantiationService=l,v._peekViewService=u,v._uriLabel=d,v._undoRedoService=h,v._keybindingService=f,v._languageService=p,v._languageConfigurationService=g,v._disposeOnNewModel=new c.SL,v._callOnDispose=new c.SL,v._onDidSelectReference=new M.Q5,v.onDidSelectReference=v._onDidSelectReference.event,v._dim=new O.Dimension(0,0),v._applyTheme(a.getColorTheme()),v._callOnDispose.add(a.onDidColorThemeChange(v._applyTheme.bind((0,k.Z)(v)))),v._peekViewService.addExclusiveWidget(e,(0,k.Z)(v)),v.create(),v}return(0,o.Z)(n,[{key:"dispose",value:function(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),(0,c.B9)(this._preview),(0,c.B9)(this._previewNotAvailableMessage),(0,c.B9)(this._tree),(0,c.B9)(this._previewModelReference),this._splitView.dispose(),(0,x.Z)((0,E.Z)(n.prototype),"dispose",this).call(this)}},{key:"_applyTheme",value:function(e){var t=e.getColor(f.SC)||A.Il.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(f.KY)||A.Il.transparent,primaryHeadingColor:e.getColor(f.IH),secondaryHeadingColor:e.getColor(f.R7)})}},{key:"show",value:function(e){(0,x.Z)((0,E.Z)(n.prototype),"show",this).call(this,e,this.layoutData.heightInLines||18)}},{key:"focusOnReferenceTree",value:function(){this._tree.domFocus()}},{key:"focusOnPreviewEditor",value:function(){this._preview.focus()}},{key:"isPreviewEditorFocused",value:function(){return this._preview.hasTextFocus()}},{key:"_onTitleClick",value:function(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}},{key:"_fillBody",value:function(e){var t=this;this.setCssClass("reference-zone-widget"),this._messageContainer=O.append(e,O.$("div.messages")),O.hide(this._messageContainer),this._splitView=new R.z(e,{orientation:1}),this._previewContainer=O.append(e,O.$("div.preview.inline"));this._preview=this._instantiationService.createInstance(F.H,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},this.editor),O.hide(this._previewContainer),this._previewNotAvailableMessage=new B.yO(p.NC("missingPreviewMessage","no preview available"),z.bd,B.yO.DEFAULT_CREATION_OPTIONS,null,this._undoRedoService,this._languageService,this._languageConfigurationService),this._treeContainer=O.append(e,O.$("div.ref-tree.inline"));var n={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new le,keyboardNavigationLabelProvider:this._instantiationService.createInstance(ne),identityProvider:new ie,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:f.M8}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(O.addStandardDisposableListener(this._treeContainer,"keydown",(function(e){e.equals(9)&&(t._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(ge,"ReferencesWidget",this._treeContainer,new te,[this._instantiationService.createInstance(oe),this._instantiationService.createInstance(se)],this._instantiationService.createInstance(ee),n),this._splitView.addView({onDidChange:M.ju.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:function(e){t._preview.layout({height:t._dim.height,width:e})}},R.M.Distribute),this._splitView.addView({onDidChange:M.ju.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:function(e){t._treeContainer.style.height="".concat(t._dim.height,"px"),t._treeContainer.style.width="".concat(e,"px"),t._tree.layout(t._dim.height,e)}},R.M.Distribute),this._disposables.add(this._splitView.onDidSashChange((function(){t._dim.width&&(t.layoutData.ratio=t._splitView.getViewSize(0)/t._dim.width)}),void 0));var i=function(e,n){e instanceof w.WX&&("show"===n&&t._revealReference(e,!1),t._onDidSelectReference.fire({element:e,kind:n,source:"tree"}))};this._tree.onDidOpen((function(e){e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")})),O.hide(this._treeContainer)}},{key:"_onWidth",value:function(e){this._dim&&this._doLayoutBody(this._dim.height,e)}},{key:"_doLayoutBody",value:function(e,t){(0,x.Z)((0,E.Z)(n.prototype),"_doLayoutBody",this).call(this,e,t),this._dim=new O.Dimension(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}},{key:"setSelection",value:function(e){var t=this;return this._revealReference(e,!0).then((function(){t._model&&(t._tree.setSelection([e]),t._tree.setFocus([e]))}))}},{key:"setModel",value:function(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}},{key:"_onNewModel",value:function(){var e=this;return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=p.NC("noResults","No results"),O.show(this._messageContainer),Promise.resolve(void 0)):(O.hide(this._messageContainer),this._decorationsManager=new fe(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((function(t){return e._tree.rerender(t)}))),this._disposeOnNewModel.add(this._preview.onMouseDown((function(t){var n=t.event,i=t.target;if(2===n.detail){var r=e._getFocusedReference();r&&e._onDidSelectReference.fire({element:{uri:r.uri,range:i.range},kind:n.ctrlKey||n.metaKey||n.altKey?"side":"open",source:"editor"})}}))),this.container.classList.add("results-loaded"),O.show(this._treeContainer),O.show(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}},{key:"_getFocusedReference",value:function(){var e=this._tree.getFocus(),t=(0,D.Z)(e,1)[0];return t instanceof w.WX?t:t instanceof w.F2&&t.children.length>0?t.children[0]:void 0}},{key:"revealReference",value:function(e){return he(this,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._revealReference(e,!1);case 2:this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"});case 3:case"end":return t.stop()}}),t,this)})))}},{key:"_revealReference",value:function(e,t){return he(this,void 0,void 0,(0,i.Z)().mark((function n(){var r,o,a,s,l;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this._revealedReference!==e){n.next=2;break}return n.abrupt("return");case 2:if(this._revealedReference=e,e.uri.scheme!==P.lg.inMemory?this.setTitle((0,Z.Hx)(e.uri),this._uriLabel.getUriLabel((0,Z.XX)(e.uri))):this.setTitle(p.NC("peekView.alternateTitle","References")),r=this._textModelResolverService.createModelReference(e.uri),this._tree.getInput()!==e.parent){n.next=9;break}this._tree.reveal(e),n.next=13;break;case 9:return t&&this._tree.reveal(e.parent),n.next=12,this._tree.expand(e.parent);case 12:this._tree.reveal(e);case 13:return n.next=15,r;case 15:if(o=n.sent,this._model){n.next=19;break}return o.dispose(),n.abrupt("return");case 19:(0,c.B9)(this._previewModelReference),(a=o.object)?(s=this._preview.getModel()===a.textEditorModel?0:1,l=h.e.lift(e.range).collapseToStart(),this._previewModelReference=o,this._preview.setModel(a.textEditorModel),this._preview.setSelection(l),this._preview.revealRangeInCenter(l,s)):(this._preview.setModel(this._previewNotAvailableMessage),o.dispose());case 22:case"end":return n.stop()}}),n,this)})))}}]),n}(f.vk);ve=ue([de(3,X.XE),de(4,V.S),de(5,y.TG),de(6,f.Fw),de(7,q.e),de(8,ce.tJ),de(9,Y.d),de(10,j.O),de(11,H.c_)],ve);var me=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ye=function(e,t){return function(n,i){t(n,i,e)}},_e=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},be=new m.uy("referenceSearchVisible",!1,p.NC("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'")),Ce=function(){function e(t,n,i,o,a,s,l,u){(0,r.Z)(this,e),this._defaultTreeKeyboardSupport=t,this._editor=n,this._editorService=o,this._notificationService=a,this._instantiationService=s,this._storageService=l,this._configurationService=u,this._disposables=new c.SL,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=be.bindTo(i)}return(0,o.Z)(e,[{key:"dispose",value:function(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),null===(e=this._widget)||void 0===e||e.dispose(),null===(t=this._model)||void 0===t||t.dispose(),this._widget=void 0,this._model=void 0}},{key:"toggleWidget",value:function(e,t,n){var i,r=this;if(this._widget&&(i=this._widget.position),this.closeWidget(),!i||!e.containsPosition(i)){this._peekMode=n,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((function(){r.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((function(){r._ignoreModelChangeEvent||r.closeWidget()})));var o="peekViewLayout",a=pe.fromJSON(this._storageService.get(o,0,"{}"));this._widget=this._instantiationService.createInstance(ve,this._editor,this._defaultTreeKeyboardSupport,a),this._widget.setTitle(p.NC("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((function(){t.cancel(),r._widget&&(r._storageService.store(o,JSON.stringify(r._widget.layoutData),0,1),r._widget=void 0),r.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((function(e){var t=e.element,i=e.kind;if(t)switch(i){case"open":"editor"===e.source&&r._configurationService.getValue("editor.stablePeek")||r.openReference(t,!1,!1);break;case"side":r.openReference(t,!0,!1);break;case"goto":n?r._gotoReference(t):r.openReference(t,!1,!0)}})));var s=++this._requestIdPool;t.then((function(t){var n;if(s===r._requestIdPool&&r._widget)return null===(n=r._model)||void 0===n||n.dispose(),r._model=t,r._widget.setModel(r._model).then((function(){if(r._widget&&r._model&&r._editor.hasModel()){r._model.isEmpty?r._widget.setMetaTitle(""):r._widget.setMetaTitle(p.NC("metaTitle.N","{0} ({1})",r._model.title,r._model.references.length));var t=r._editor.getModel().uri,n=new d.L(e.startLineNumber,e.startColumn),i=r._model.nearestReference(t,n);if(i)return r._widget.setSelection(i).then((function(){r._widget&&"editor"===r._editor.getOption(79)&&r._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(function(e){r._notificationService.error(e)}))}}},{key:"changeFocusBetweenPreviewAndReferences",value:function(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}},{key:"goToNextOrPreviousReference",value:function(e){return _e(this,void 0,void 0,(0,i.Z)().mark((function t(){var n,r,o,a,s;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._editor.hasModel()&&this._model&&this._widget){t.next=2;break}return t.abrupt("return");case 2:if(n=this._widget.position){t.next=5;break}return t.abrupt("return");case 5:if(r=this._model.nearestReference(this._editor.getModel().uri,n)){t.next=8;break}return t.abrupt("return");case 8:return o=this._model.nextOrPreviousReference(r,e),a=this._editor.hasTextFocus(),s=this._widget.isPreviewEditorFocused(),t.next=13,this._widget.setSelection(o);case 13:return t.next=15,this._gotoReference(o);case 15:a?this._editor.focus():this._widget&&s&&this._widget.focusOnPreviewEditor();case 16:case"end":return t.stop()}}),t,this)})))}},{key:"revealReference",value:function(e){return _e(this,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._editor.hasModel()&&this._model&&this._widget){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this._widget.revealReference(e);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"closeWidget",value:function(){var e,t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];null===(e=this._widget)||void 0===e||e.dispose(),null===(t=this._model)||void 0===t||t.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,n&&this._editor.focus(),this._requestIdPool+=1}},{key:"_gotoReference",value:function(t){var n=this;this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;var i=h.e.lift(t.range).collapseToStart();return this._editorService.openCodeEditor({resource:t.uri,options:{selection:i,selectionSource:"code.jump"}},this._editor).then((function(t){var r;if(n._ignoreModelChangeEvent=!1,t&&n._widget)if(n._editor===t)n._widget.show(i),n._widget.focusOnReferenceTree();else{var o=e.get(t),s=n._model.clone();n.closeWidget(),t.focus(),null===o||void 0===o||o.toggleWidget(i,(0,a.PG)((function(e){return Promise.resolve(s)})),null!==(r=n._peekMode)&&void 0!==r&&r)}else n.closeWidget()}),(function(e){n._ignoreModelChangeEvent=!1,(0,s.dL)(e)}))}},{key:"openReference",value:function(e,t,n){t||this.closeWidget();var i=e.uri,r=e.range;this._editorService.openCodeEditor({resource:i,options:{selection:r,selectionSource:"code.jump",pinned:n}},this._editor,t)}}],[{key:"get",value:function(t){return t.getContribution(e.ID)}}]),e}();function Se(e,t){var n=(0,f.rc)(e);if(n){var i=Ce.get(n);i&&t(i)}}Ce.ID="editor.contrib.referencesController",Ce=me([ye(2,m.i6),ye(3,u.$),ye(4,C.lT),ye(5,y.TG),ye(6,S.Uy),ye(7,v.Ui)],Ce),_.W.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,l.gx)(2089,60),when:m.Ao.or(be,f.Jy.inPeekEditor),handler:function(e){Se(e,(function(e){e.changeFocusBetweenPreviewAndReferences()}))}}),_.W.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:m.Ao.or(be,f.Jy.inPeekEditor),handler:function(e){Se(e,(function(e){e.goToNextOrPreviousReference(!0)}))}}),_.W.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:m.Ao.or(be,f.Jy.inPeekEditor),handler:function(e){Se(e,(function(e){e.goToNextOrPreviousReference(!1)}))}}),g.P0.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),g.P0.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),g.P0.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),g.P0.registerCommand("closeReferenceSearch",(function(e){return Se(e,(function(e){return e.closeWidget()}))})),_.W.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:m.Ao.and(f.Jy.inPeekEditor,m.Ao.not("config.editor.stablePeek"))}),_.W.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:m.Ao.and(be,m.Ao.not("config.editor.stablePeek"))}),_.W.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:m.Ao.and(be,b.CQ,b.PS.negate(),b.uJ.negate()),handler:function(e){var t,n=null===(t=e.get(b.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(n)&&n[0]instanceof w.WX&&Se(e,(function(e){return e.revealReference(n[0])}))}}),_.W.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:m.Ao.and(be,b.CQ,b.PS.negate(),b.uJ.negate()),handler:function(e){var t,n=null===(t=e.get(b.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(n)&&n[0]instanceof w.WX&&Se(e,(function(e){return e.openReference(n[0],!0,!0)}))}}),g.P0.registerCommand("openReference",(function(e){var t,n=null===(t=e.get(b.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(n)&&n[0]instanceof w.WX&&Se(e,(function(e){return e.openReference(n[0],!1,!0)}))}))},87847:function(e,t,n){"use strict";n.d(t,{F2:function(){return b},WX:function(){return y},oQ:function(){return C}});var i=n(29439),r=n(74165),o=n(37762),a=n(15671),s=n(43144),l=n(14173),c=n(73097),u=n(59767),d=n(11860),h=n(54376),f=n(41175),p=n(32377),g=n(80133),v=n(27722),m=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},y=function(){function e(t,n,i,r){(0,a.Z)(this,e),this.isProviderFirst=t,this.parent=n,this.link=i,this._rangeCallback=r,this.id=u.a.nextId()}return(0,s.Z)(e,[{key:"uri",get:function(){return this.link.uri}},{key:"range",get:function(){var e,t;return null!==(t=null!==(e=this._range)&&void 0!==e?e:this.link.targetSelectionRange)&&void 0!==t?t:this.link.range},set:function(e){this._range=e,this._rangeCallback(this)}},{key:"ariaMessage",get:function(){var e,t=null===(e=this.parent.getPreview(this))||void 0===e?void 0:e.preview(this.range);return t?(0,v.NC)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",(0,f.EZ)(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):(0,v.NC)("aria.oneReference","symbol in {0} on line {1} at column {2}",(0,f.EZ)(this.uri),this.range.startLineNumber,this.range.startColumn)}}]),e}(),_=function(){function e(t){(0,a.Z)(this,e),this._modelReference=t}return(0,s.Z)(e,[{key:"dispose",value:function(){this._modelReference.dispose()}},{key:"preview",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=this._modelReference.object.textEditorModel;if(n){var i=e.startLineNumber,r=e.startColumn,o=e.endLineNumber,a=e.endColumn,s=n.getWordUntilPosition({lineNumber:i,column:r-t}),l=new g.e(i,s.startColumn,i,r),c=new g.e(o,a,o,1073741824),u=n.getValueInRange(l).replace(/^\s+/,""),d=n.getValueInRange(e),h=n.getValueInRange(c).replace(/\s+$/,"");return{value:u+d+h,highlight:{start:u.length,end:u.length+d.length}}}}}]),e}(),b=function(){function e(t,n){(0,a.Z)(this,e),this.parent=t,this.uri=n,this.children=[],this._previews=new h.Y9}return(0,s.Z)(e,[{key:"dispose",value:function(){(0,d.B9)(this._previews.values()),this._previews.clear()}},{key:"getPreview",value:function(e){return this._previews.get(e.uri)}},{key:"ariaMessage",get:function(){var e=this.children.length;return 1===e?(0,v.NC)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,f.EZ)(this.uri),this.uri.fsPath):(0,v.NC)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,f.EZ)(this.uri),this.uri.fsPath)}},{key:"resolve",value:function(e){return m(this,void 0,void 0,(0,r.Z)().mark((function t(){var n,i,a,s;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0===this._previews.size){t.next=2;break}return t.abrupt("return",this);case 2:n=(0,o.Z)(this.children),t.prev=3,n.s();case 5:if((i=n.n()).done){t.next=21;break}if(a=i.value,!this._previews.has(a.uri)){t.next=9;break}return t.abrupt("continue",19);case 9:return t.prev=9,t.next=12,e.createModelReference(a.uri);case 12:s=t.sent,this._previews.set(a.uri,new _(s)),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(9),(0,l.dL)(t.t0);case 19:t.next=5;break;case 21:t.next=26;break;case 23:t.prev=23,t.t1=t.catch(3),n.e(t.t1);case 26:return t.prev=26,n.f(),t.finish(26);case 29:return t.abrupt("return",this);case 30:case"end":return t.stop()}}),t,this,[[3,23,26,29],[9,16]])})))}}]),e}(),C=function(){function e(t,n){var r=this;(0,a.Z)(this,e),this.groups=[],this.references=[],this._onDidChangeReferenceRange=new c.Q5,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=t,this._title=n;var s,l=(0,i.Z)(t,1)[0];t.sort(e._compareReferences);var u,d=(0,o.Z)(t);try{for(d.s();!(u=d.n()).done;){var h=u.value;if(s&&f.SF.isEqual(s.uri,h.uri,!0)||(s=new b(this,h.uri),this.groups.push(s)),0===s.children.length||0!==e._compareReferences(h,s.children[s.children.length-1])){var p=new y(l===h,s,h,(function(e){return r._onDidChangeReferenceRange.fire(e)}));this.references.push(p),s.children.push(p)}}}catch(g){d.e(g)}finally{d.f()}}return(0,s.Z)(e,[{key:"dispose",value:function(){(0,d.B9)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}},{key:"clone",value:function(){return new e(this._links,this._title)}},{key:"title",get:function(){return this._title}},{key:"isEmpty",get:function(){return 0===this.groups.length}},{key:"ariaMessage",get:function(){return this.isEmpty?(0,v.NC)("aria.result.0","No results found"):1===this.references.length?(0,v.NC)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?(0,v.NC)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,v.NC)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}},{key:"nextOrPreviousReference",value:function(e,t){var n=e.parent,i=n.children.indexOf(e),r=n.children.length,o=n.parent.groups.length;return 1===o||t&&i+1<r||!t&&i>0?(i=t?(i+1)%r:(i+r-1)%r,n.children[i]):(i=n.parent.groups.indexOf(n),t?(i=(i+1)%o,n.parent.groups[i].children[0]):(i=(i+o-1)%o,n.parent.groups[i].children[n.parent.groups[i].children.length-1]))}},{key:"nearestReference",value:function(e,t){var n=this.references.map((function(n,i){return{idx:i,prefixLen:p.Mh(n.uri.toString(),e.toString()),offsetDist:100*Math.abs(n.range.startLineNumber-t.lineNumber)+Math.abs(n.range.startColumn-t.column)}})).sort((function(e,t){return e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0}))[0];if(n)return this.references[n.idx]}},{key:"referenceAt",value:function(e,t){var n,i=(0,o.Z)(this.references);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.uri.toString()===e.toString()&&g.e.containsPosition(r.range,t))return r}}catch(a){i.e(a)}finally{i.f()}}},{key:"firstReference",value:function(){var e,t=(0,o.Z)(this.references);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.isProviderFirst)return n}}catch(i){t.e(i)}finally{t.f()}return this.references[0]}}],[{key:"_compareReferences",value:function(e,t){return f.SF.compare(e.uri,t.uri)||g.e.compareRangesUsingStarts(e.range,t.range)}}]),e}()},23363:function(e,t,n){"use strict";n.d(t,{R8:function(){return f}});var i=n(74165),r=n(43144),o=n(15671),a=n(60022),s=n(82784),l=n(14173),c=n(62381),u=n(53584),d=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},h=(0,r.Z)((function e(t,n,i){(0,o.Z)(this,e),this.provider=t,this.hover=n,this.ordinal=i}));function f(e,t,n,r){var o=e.ordered(t).map((function(e,o){return function(e,t,n,r,o){return d(this,void 0,void 0,(0,i.Z)().mark((function a(){var s;return(0,i.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Promise.resolve(e.provideHover(n,r,o));case 3:if(!(s=i.sent)||!p(s)){i.next=6;break}return i.abrupt("return",new h(e,s,t));case 6:i.next=11;break;case 8:i.prev=8,i.t0=i.catch(0),(0,l.Cp)(i.t0);case 11:return i.abrupt("return",void 0);case 12:case"end":return i.stop()}}),a,null,[[0,8]])})))}(e,o,t,n,r)}));return a.Aq.fromPromises(o).coalesce()}function p(e){var t="undefined"!==typeof e.range,n="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&n}(0,c.sb)("_executeHoverProvider",(function(e,t,n){return function(e,t,n,i){return f(e,t,n,i).map((function(e){return e.hover})).toPromise()}(e.get(u.p).hoverProvider,t,n,s.T.None)}))},80613:function(e,t,n){"use strict";n.r(t),n.d(t,{ModesHoverController:function(){return we}});var i=n(60136),r=n(27277),o=n(15671),a=n(43144),s=n(16321),l=n(11860),c=n(62381),u=n(80133),d=n(67245),h=n(72762),f=n(34775),p=n(97326),g=n(11752),v=n(61120),m=n(37762),y=n(81531),_=n(33813),b=n(27338),C=y.$,S=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.call(this)).containerDomNode=document.createElement("div"),e.containerDomNode.className="monaco-hover",e.containerDomNode.tabIndex=0,e.containerDomNode.setAttribute("role","tooltip"),e.contentsDomNode=document.createElement("div"),e.contentsDomNode.className="monaco-hover-content",e.scrollbar=e._register(new b.s$(e.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),e.containerDomNode.appendChild(e.scrollbar.getDomNode()),e}return(0,a.Z)(n,[{key:"onContentsChanged",value:function(){this.scrollbar.scanDomNode()}}]),n}(l.JT),w=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r){var a;return(0,o.Z)(this,n),(a=t.call(this)).actionContainer=y.append(e,C("div.action-container")),a.actionContainer.setAttribute("tabindex","0"),a.action=y.append(a.actionContainer,C("a.action")),a.action.setAttribute("role","button"),i.iconClass&&y.append(a.action,C("span.icon.".concat(i.iconClass))),y.append(a.action,C("span")).textContent=r?"".concat(i.label," (").concat(r,")"):i.label,a._register(y.addDisposableListener(a.actionContainer,y.EventType.CLICK,(function(e){e.stopPropagation(),e.preventDefault(),i.run(a.actionContainer)}))),a._register(y.addDisposableListener(a.actionContainer,y.EventType.KEY_UP,(function(e){new _.y(e).equals(3)&&(e.stopPropagation(),e.preventDefault(),i.run(a.actionContainer))}))),a.setEnabled(!0),a}return(0,a.Z)(n,[{key:"setEnabled",value:function(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}],[{key:"render",value:function(e,t,i){return new n(e,t,i)}}]),n}(l.JT),k=n(29671),x=n(38622),E=n(70845),T=n(12905),N=n(74165),I=n(60022),D=n(14173),L=n(73097),O=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},R=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof __values?__values(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,r,(t=e[n](t)).done,t.value)}))}}},A=(0,a.Z)((function e(t,n,i){(0,o.Z)(this,e),this.value=t,this.isComplete=n,this.hasLoadingMessage=i})),M=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this))._editor=e,r._computer=i,r._onResult=r._register(new L.Q5),r.onResult=r._onResult.event,r._firstWaitScheduler=r._register(new I.pY((function(){return r._triggerAsyncComputation()}),0)),r._secondWaitScheduler=r._register(new I.pY((function(){return r._triggerSyncComputation()}),0)),r._loadingMessageScheduler=r._register(new I.pY((function(){return r._triggerLoadingMessage()}),0)),r._state=0,r._asyncIterable=null,r._asyncIterableDone=!1,r._result=[],r}return(0,a.Z)(n,[{key:"dispose",value:function(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),(0,g.Z)((0,v.Z)(n.prototype),"dispose",this).call(this)}},{key:"_hoverTime",get:function(){return this._editor.getOption(55).delay}},{key:"_firstWaitTime",get:function(){return this._hoverTime/2}},{key:"_secondWaitTime",get:function(){return this._hoverTime-this._firstWaitTime}},{key:"_loadingMessageTime",get:function(){return 3*this._hoverTime}},{key:"_setState",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._state=e,t&&this._fireResult()}},{key:"_triggerAsyncComputation",value:function(){var e=this;this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,I.zS)((function(t){return e._computer.computeAsync(t)})),O(e,void 0,void 0,(0,N.Z)().mark((function e(){var t,n,i,r,o;return(0,N.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,e.prev=1,i=R(this._asyncIterable);case 3:return e.next=5,i.next();case 5:if((r=e.sent).done){e.next=11;break}(o=r.value)&&(this._result.push(o),this._fireResult());case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),t={error:e.t0};case 16:if(e.prev=16,e.prev=17,!r||r.done||!(n=i.return)){e.next=21;break}return e.next=21,n.call(i);case 21:if(e.prev=21,!t){e.next=24;break}throw t.error;case 24:return e.finish(21);case 25:return e.finish(16);case 26:this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0),e.next=33;break;case 30:e.prev=30,e.t1=e.catch(0),(0,D.dL)(e.t1);case 33:case"end":return e.stop()}}),e,this,[[0,30],[1,13,16,26],[17,,21,25]])})))):this._asyncIterableDone=!0}},{key:"_triggerSyncComputation",value:function(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}},{key:"_triggerLoadingMessage",value:function(){3===this._state&&this._setState(4)}},{key:"_fireResult",value:function(){if(1!==this._state&&2!==this._state){var e=0===this._state,t=4===this._state;this._onResult.fire(new A(this._result.slice(0),e,t))}}},{key:"start",value:function(e){if(0===e)0===this._state&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}},{key:"cancel",value:function(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}]),n}(l.JT),P=n(47854),Z=n(34509),F=n(36888),B=n(47569),H=n(96161),z=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},j=function(e,t){return function(n,i){t(n,i,e)}},V=y.$,W=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r){var a;(0,o.Z)(this,n),(a=t.call(this))._editor=e,a._instantiationService=i,a._keybindingService=r,a._widget=a._register(a._instantiationService.createInstance(G,a._editor)),a._isChangingDecorations=!1,a._messages=[],a._messagesAreComplete=!1,a._participants=[];var s,l=(0,m.Z)(P.Ae.getAll());try{for(l.s();!(s=l.n()).done;){var c=s.value;a._participants.push(a._instantiationService.createInstance(c,a._editor))}}catch(u){l.e(u)}finally{l.f()}return a._participants.sort((function(e,t){return e.hoverOrdinal-t.hoverOrdinal})),a._computer=new Y(a._editor,a._participants),a._hoverOperation=a._register(new M(a._editor,a._computer)),a._register(a._hoverOperation.onResult((function(e){a._withResult(e.value,e.isComplete,e.hasLoadingMessage)}))),a._register(a._editor.onDidChangeModelDecorations((function(){a._isChangingDecorations||a._onModelDecorationsChanged()}))),a._register(y.addStandardDisposableListener(a._widget.getDomNode(),"keydown",(function(e){e.equals(9)&&a.hide()}))),a._register(T.RW.onDidChange((function(){a._widget.position&&a._computer.anchor&&a._messages.length>0&&(a._widget.clear(),a._renderMessages(a._computer.anchor,a._messages))}))),a}return(0,a.Z)(n,[{key:"_onModelDecorationsChanged",value:function(){this._widget.position&&(this._hoverOperation.cancel(),this._widget.isColorPickerVisible||this._hoverOperation.start(0))}},{key:"maybeShowAt",value:function(e){var t,n=[],i=(0,m.Z)(this._participants);try{for(i.s();!(t=i.n()).done;){var r=t.value;if(r.suggestHoverAnchor){var o=r.suggestHoverAnchor(e);o&&n.push(o)}}}catch(l){i.e(l)}finally{i.f()}var a=e.target;if(6===a.type&&n.push(new P.Qj(0,a.range)),7===a.type){var s=this._editor.getOption(46).typicalHalfwidthCharacterWidth/2;!a.detail.isAfterLines&&"number"===typeof a.detail.horizontalDistanceToText&&a.detail.horizontalDistanceToText<s&&n.push(new P.Qj(0,a.range))}return 0!==n.length&&(n.sort((function(e,t){return t.priority-e.priority})),this._startShowingAt(n[0],0,!1),!0)}},{key:"startShowingAtRange",value:function(e,t,n){this._startShowingAt(new P.Qj(0,e),t,n)}},{key:"_startShowingAt",value:function(e,t,n){if(!this._computer.anchor||!this._computer.anchor.equals(e)){if(this._hoverOperation.cancel(),this._widget.position)if(this._computer.anchor&&e.canAdoptVisibleHover(this._computer.anchor,this._widget.position)){var i=this._messages.filter((function(t){return t.isValidForHoverAnchor(e)}));if(0===i.length)this.hide();else{if(i.length===this._messages.length&&this._messagesAreComplete)return;this._renderMessages(e,i)}}else this.hide();this._computer.anchor=e,this._computer.shouldFocus=n,this._hoverOperation.start(t)}}},{key:"hide",value:function(){this._computer.anchor=null,this._hoverOperation.cancel(),this._widget.hide()}},{key:"isColorPickerVisible",value:function(){return this._widget.isColorPickerVisible}},{key:"containsNode",value:function(e){return this._widget.getDomNode().contains(e)}},{key:"_addLoadingMessage",value:function(e){if(this._computer.anchor){var t,n=(0,m.Z)(this._participants);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.createLoadingMessage){var r=i.createLoadingMessage(this._computer.anchor);if(r)return e.slice(0).concat([r])}}}catch(o){n.e(o)}finally{n.f()}}return e}},{key:"_withResult",value:function(e,t,n){this._messages=n?this._addLoadingMessage(e):e,this._messagesAreComplete=t,this._computer.anchor&&this._messages.length>0?this._renderMessages(this._computer.anchor,this._messages):t&&this.hide()}},{key:"_renderMessages",value:function(e,t){var i,r=this,o=n.computeHoverRanges(e.range,t),a=o.showAtPosition,s=o.showAtRange,c=o.highlightRange,u=new l.SL,d=u.add(new K(this._keybindingService)),h=document.createDocumentFragment(),f=null,p={fragment:h,statusBar:d,setColorPicker:function(e){return f=e},onContentsChanged:function(){return r._widget.onContentsChanged()},hide:function(){return r.hide()}},g=(0,m.Z)(this._participants);try{var v=function(){var e=i.value,n=t.filter((function(t){return t.owner===e}));n.length>0&&u.add(e.renderHoverParts(p,n))};for(g.s();!(i=g.n()).done;)v()}catch(_){g.e(_)}finally{g.f()}if(d.hasContent&&h.appendChild(d.hoverElement),h.hasChildNodes()){if(c){var y=this._editor.createDecorationsCollection();try{this._isChangingDecorations=!0,y.set([{range:c,options:n._DECORATION_OPTIONS}])}finally{this._isChangingDecorations=!1}u.add((0,l.OF)((function(){try{r._isChangingDecorations=!0,y.clear()}finally{r._isChangingDecorations=!1}})))}this._widget.showAt(h,new U(f,a,s,this._editor.getOption(55).above,this._computer.shouldFocus,u))}else u.dispose()}}],[{key:"computeHoverRanges",value:function(e,t){var n,i=e.startLineNumber,r=e.startColumn,o=e.endColumn,a=t[0].range,s=null,l=(0,m.Z)(t);try{for(l.s();!(n=l.n()).done;){var c=n.value;a=u.e.plusRange(a,c.range),c.range.startLineNumber===i&&c.range.endLineNumber===i&&(r=Math.min(r,c.range.startColumn),o=Math.max(o,c.range.endColumn)),c.forceShowAtRange&&(s=c.range)}}catch(d){l.e(d)}finally{l.f()}return{showAtPosition:s?s.getStartPosition():new x.L(e.startLineNumber,r),showAtRange:s||new u.e(i,r,i,o),highlightRange:a}}}]),n}(l.JT);W._DECORATION_OPTIONS=E.qx.register({description:"content-hover-highlight",className:"hoverHighlight"}),W=z([j(1,F.TG),j(2,B.d)],W);var U=(0,a.Z)((function e(t,n,i,r,a,s){(0,o.Z)(this,e),this.colorPicker=t,this.showAtPosition=n,this.showAtRange=i,this.preferAbove=r,this.stoleFocus=a,this.disposables=s})),G=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this))._editor=e,r._contextKeyService=i,r.allowEditorOverflow=!0,r._hoverVisibleKey=d.u.hoverVisible.bindTo(r._contextKeyService),r._hover=r._register(new S),r._visibleData=null,r._register(r._editor.onDidLayoutChange((function(){return r._layout()}))),r._register(r._editor.onDidChangeConfiguration((function(e){e.hasChanged(46)&&r._updateFont()}))),r._setVisibleData(null),r._layout(),r._editor.addContentWidget((0,p.Z)(r)),r}return(0,a.Z)(n,[{key:"position",get:function(){var e,t;return null!==(t=null===(e=this._visibleData)||void 0===e?void 0:e.showAtPosition)&&void 0!==t?t:null}},{key:"isColorPickerVisible",get:function(){var e;return Boolean(null===(e=this._visibleData)||void 0===e?void 0:e.colorPicker)}},{key:"dispose",value:function(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),(0,g.Z)((0,v.Z)(n.prototype),"dispose",this).call(this)}},{key:"getId",value:function(){return n.ID}},{key:"getDomNode",value:function(){return this._hover.containerDomNode}},{key:"getPosition",value:function(){if(!this._visibleData)return null;var e=this._visibleData.preferAbove;return!e&&this._contextKeyService.getContextKeyValue(H._y.Visible.key)&&(e=!0),{position:this._visibleData.showAtPosition,range:this._visibleData.showAtRange,preference:e?[1,2]:[2,1]}}},{key:"_setVisibleData",value:function(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}},{key:"_layout",value:function(){var e=Math.max(this._editor.getLayoutInfo().height/4,250),t=this._editor.getOption(46),n=t.fontSize,i=t.lineHeight;this._hover.contentsDomNode.style.fontSize="".concat(n,"px"),this._hover.contentsDomNode.style.lineHeight="".concat(i/n),this._hover.contentsDomNode.style.maxHeight="".concat(e,"px"),this._hover.contentsDomNode.style.maxWidth="".concat(Math.max(.66*this._editor.getLayoutInfo().width,500),"px")}},{key:"_updateFont",value:function(){var e=this;Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((function(t){return e._editor.applyFontInfo(t)}))}},{key:"showAt",value:function(e,t){this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),t.colorPicker&&t.colorPicker.layout()}},{key:"hide",value:function(){if(this._visibleData){var e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}},{key:"onContentsChanged",value:function(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();var e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){var t="".concat(this._hover.scrollbar.options.horizontalScrollbarSize,"px");this._hover.contentsDomNode.style.paddingBottom!==t&&(this._hover.contentsDomNode.style.paddingBottom=t,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}},{key:"clear",value:function(){this._hover.contentsDomNode.textContent=""}}]),n}(l.JT);G.ID="editor.contrib.contentHoverWidget",G=z([j(1,Z.i6)],G);var K=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e){var i;return(0,o.Z)(this,n),(i=t.call(this))._keybindingService=e,i._hasContent=!1,i.hoverElement=V("div.hover-row.status-bar"),i.actionsElement=y.append(i.hoverElement,V("div.actions")),i}return(0,a.Z)(n,[{key:"hasContent",get:function(){return this._hasContent}},{key:"addAction",value:function(e){var t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;return this._hasContent=!0,this._register(w.render(this.actionsElement,e,n))}},{key:"append",value:function(e){var t=y.append(this.actionsElement,e);return this._hasContent=!0,t}}]),n}(l.JT);K=z([j(0,B.d)],K);var Y=function(){function e(t,n){(0,o.Z)(this,e),this._editor=t,this._participants=n,this._anchor=null,this._shouldFocus=!1}return(0,a.Z)(e,[{key:"anchor",get:function(){return this._anchor},set:function(e){this._anchor=e}},{key:"shouldFocus",get:function(){return this._shouldFocus},set:function(e){this._shouldFocus=e}},{key:"computeAsync",value:function(t){var n=this._anchor;if(!this._editor.hasModel()||!n)return I.Aq.EMPTY;var i=e._getLineDecorations(this._editor,n);return I.Aq.merge(this._participants.map((function(e){return e.computeAsync?e.computeAsync(n,i,t):I.Aq.EMPTY})))}},{key:"computeSync",value:function(){if(!this._editor.hasModel()||!this._anchor)return[];var t,n=e._getLineDecorations(this._editor,this._anchor),i=[],r=(0,m.Z)(this._participants);try{for(r.s();!(t=r.n()).done;){var o=t.value;i=i.concat(o.computeSync(this._anchor,n))}}catch(a){r.e(a)}finally{r.f()}return(0,k.kX)(i)}}],[{key:"_getLineDecorations",value:function(e,t){if(1!==t.type)return[];var n=e.getModel(),i=t.range.startLineNumber;if(i>n.getLineCount())return[];var r=n.getLineMaxColumn(i);return e.getLineDecorations(i).filter((function(e){if(e.options.isWholeLine)return!0;var n=e.range.startLineNumber===i?e.range.startColumn:1,o=e.range.endLineNumber===i?e.range.endColumn:r;if(e.options.showIfCollapsed){if(n>t.range.startColumn+1||t.range.endColumn-1>o)return!1}else if(n>t.range.startColumn||t.range.endColumn>o)return!1;return!0}))}}]),e}(),q=n(93433),$=n(61066),X=n(21919),Q=n(83078),J=y.$,ee=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q.SW;return(0,o.Z)(this,n),(r=t.call(this))._renderDisposeables=r._register(new l.SL),r._editor=e,r._isVisible=!1,r._messages=[],r._hover=r._register(new S),r._hover.containerDomNode.classList.toggle("hidden",!r._isVisible),r._markdownRenderer=r._register(new X.$({editor:r._editor},i,a)),r._computer=new te(r._editor),r._hoverOperation=r._register(new M(r._editor,r._computer)),r._register(r._hoverOperation.onResult((function(e){r._withResult(e.value)}))),r._register(r._editor.onDidChangeModelDecorations((function(){return r._onModelDecorationsChanged()}))),r._register(r._editor.onDidChangeConfiguration((function(e){e.hasChanged(46)&&r._updateFont()}))),r._editor.addOverlayWidget((0,p.Z)(r)),r}return(0,a.Z)(n,[{key:"dispose",value:function(){this._editor.removeOverlayWidget(this),(0,g.Z)((0,v.Z)(n.prototype),"dispose",this).call(this)}},{key:"getId",value:function(){return n.ID}},{key:"getDomNode",value:function(){return this._hover.containerDomNode}},{key:"getPosition",value:function(){return null}},{key:"_updateFont",value:function(){var e=this;Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((function(t){return e._editor.applyFontInfo(t)}))}},{key:"_onModelDecorationsChanged",value:function(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}},{key:"startShowingAt",value:function(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}},{key:"hide",value:function(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}},{key:"_withResult",value:function(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}},{key:"_renderMessages",value:function(e,t){this._renderDisposeables.clear();var n,i=document.createDocumentFragment(),r=(0,m.Z)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value,a=J("div.hover-row.markdown-hover"),s=y.append(a,J("div.hover-contents")),l=this._renderDisposeables.add(this._markdownRenderer.render(o.value));s.appendChild(l.element),i.appendChild(a)}}catch(c){r.e(c)}finally{r.f()}this._updateContents(i),this._showAt(e)}},{key:"_updateContents",value:function(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}},{key:"_showAt",value:function(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));var t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(e),i=this._editor.getScrollTop(),r=this._editor.getOption(61),o=n-i-(this._hover.containerDomNode.clientHeight-r)/2;this._hover.containerDomNode.style.left="".concat(t.glyphMarginLeft+t.glyphMarginWidth,"px"),this._hover.containerDomNode.style.top="".concat(Math.max(Math.round(o),0),"px")}}]),n}(l.JT);ee.ID="editor.contrib.modesGlyphHoverWidget";var te=function(){function e(t){(0,o.Z)(this,e),this._editor=t,this._lineNumber=-1}return(0,a.Z)(e,[{key:"lineNumber",get:function(){return this._lineNumber},set:function(e){this._lineNumber=e}},{key:"computeSync",value:function(){var e=function(e){return{value:e}},t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;var i,r=(0,m.Z)(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.options.glyphMarginClassName){var a=o.options.glyphMarginHoverMessage;a&&!(0,$.CP)(a)&&n.push.apply(n,(0,q.Z)((0,k._2)(a).map(e)))}}}catch(s){r.e(s)}finally{r.f()}return n}}]),e}(),ne=n(27722),ie=n(32379),re=n(64014),oe=n(43645),ae=n(41175),se=n(40729),le=n(81571),ce=n(44875),ue=n(73593),de=n(52348),he=n(46813),fe=n(47901),pe=n(53584),ge=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ve=function(e,t){return function(n,i){t(n,i,e)}},me=y.$,ye=function(){function e(t,n,i){(0,o.Z)(this,e),this.owner=t,this.range=n,this.marker=i}return(0,a.Z)(e,[{key:"isValidForHoverAnchor",value:function(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}]),e}(),_e={type:1,filter:{include:ue.yN.QuickFix},triggerAction:ue.aQ.QuickFixHover},be=function(){function e(t,n,i,r){(0,o.Z)(this,e),this._editor=t,this._markerDecorationsService=n,this._openerService=i,this._languageFeaturesService=r,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}return(0,a.Z)(e,[{key:"computeSync",value:function(e,t){if(!this._editor.hasModel()||1!==e.type)return[];var n,i=this._editor.getModel(),r=e.range.startLineNumber,o=i.getLineMaxColumn(r),a=[],s=(0,m.Z)(t);try{for(s.s();!(n=s.n()).done;){var l=n.value,c=l.range.startLineNumber===r?l.range.startColumn:1,d=l.range.endLineNumber===r?l.range.endColumn:o,h=this._markerDecorationsService.getMarker(i.uri,l);if(h){var f=new u.e(e.range.startLineNumber,c,e.range.startLineNumber,d);a.push(new ye(this,f,h))}}}catch(p){s.e(p)}finally{s.f()}return a}},{key:"renderHoverParts",value:function(e,t){var n=this;if(!t.length)return l.JT.None;var i=new l.SL;t.forEach((function(t){return e.fragment.appendChild(n.renderMarkerHover(t,i))}));var r=1===t.length?t[0]:t.sort((function(e,t){return he.ZL.compare(e.marker.severity,t.marker.severity)}))[0];return this.renderMarkerStatusbar(e,r,i),i}},{key:"renderMarkerHover",value:function(e,t){var n=this,i=me("div.hover-row"),r=y.append(i,me("div.marker.hover-contents")),o=e.marker,a=o.source,s=o.message,l=o.code,c=o.relatedInformation;this._editor.applyFontInfo(r);var u=y.append(r,me("span"));if(u.style.whiteSpace="pre-wrap",u.innerText=s,a||l)if(l&&"string"!==typeof l){var d=me("span");if(a)y.append(d,me("span")).innerText=a;var h=y.append(d,me("a.code-link"));h.setAttribute("href",l.target.toString()),t.add(y.addDisposableListener(h,"click",(function(e){n._openerService.open(l.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()}))),y.append(h,me("span")).innerText=l.value;var f=y.append(r,d);f.style.opacity="0.6",f.style.paddingLeft="6px"}else{var p=y.append(r,me("span"));p.style.opacity="0.6",p.style.paddingLeft="6px",p.innerText=a&&l?"".concat(a,"(").concat(l,")"):a||"(".concat(l,")")}if((0,k.Of)(c)){var g,v=(0,m.Z)(c);try{var _=function(){var e=g.value,i=e.message,o=e.resource,a=e.startLineNumber,s=e.startColumn,l=y.append(r,me("div"));l.style.marginTop="8px";var c=y.append(l,me("a"));c.innerText="".concat((0,ae.EZ)(o),"(").concat(a,", ").concat(s,"): "),c.style.cursor="pointer",t.add(y.addDisposableListener(c,"click",(function(e){e.stopPropagation(),e.preventDefault(),n._openerService&&n._openerService.open(o,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:a,startColumn:s}}}).catch(D.dL)})));var u=y.append(l,me("span"));u.innerText=i,n._editor.applyFontInfo(u)};for(v.s();!(g=v.n()).done;)_()}catch(b){v.e(b)}finally{v.f()}}return i}},{key:"renderMarkerStatusbar",value:function(e,t,n){var i=this;if(t.marker.severity!==he.ZL.Error&&t.marker.severity!==he.ZL.Warning&&t.marker.severity!==he.ZL.Info||e.statusBar.addAction({label:ne.NC("view problem","View Problem"),commandId:de.NextMarkerAction.ID,run:function(){var n;e.hide(),null===(n=de.MarkerController.get(i._editor))||void 0===n||n.showAtMarker(t.marker),i._editor.focus()}}),!this._editor.getOption(83)){var r=e.statusBar.append(me("div"));this.recentMarkerCodeActionsInfo&&(he.H0.makeKey(this.recentMarkerCodeActionsInfo.marker)===he.H0.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(r.textContent=ne.NC("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);var o=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?l.JT.None:n.add((0,I.Vg)((function(){return r.textContent=ne.NC("checkingForQuickFixes","Checking for quick fixes...")}),200));r.textContent||(r.textContent=String.fromCharCode(160));var a=this.getCodeActions(t.marker);n.add((0,l.OF)((function(){return a.cancel()}))),a.then((function(a){if(o.dispose(),i.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!i.recentMarkerCodeActionsInfo.hasCodeActions)return a.dispose(),void(r.textContent=ne.NC("noQuickFixes","No quick fixes available"));r.style.display="none";var s=!1;n.add((0,l.OF)((function(){s||a.dispose()}))),e.statusBar.addAction({label:ne.NC("quick fixes","Quick Fix..."),commandId:ce.E7.Id,run:function(t){s=!0;var n=ce.pY.get(i._editor),r=y.getDomNodePagePosition(t);e.hide(),null===n||void 0===n||n.showCodeActions(_e,a,{x:r.left+6,y:r.top+r.height+6,width:r.width,height:r.height})}})}),D.dL)}}},{key:"getCodeActions",value:function(e){var t=this;return(0,I.PG)((function(n){return(0,le.aI)(t._languageFeaturesService.codeActionProvider,t._editor.getModel(),new u.e(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),_e,fe.Ex.None,n)}))}}]),e}();be=ge([ve(1,se.i),ve(2,Q.v4),ve(3,pe.p)],be),(0,re.Ic)((function(e,t){var n=e.getColor(ie.url);n&&t.addRule(".monaco-hover .hover-contents a.code-link span { color: ".concat(n,"; }"));var i=e.getColor(ie.sgC);i&&t.addRule(".monaco-hover .hover-contents a.code-link span:hover { color: ".concat(i,"; }"))}));var Ce=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Se=function(e,t){return function(n,i){t(n,i,e)}},we=function(){function e(t,n,i,r,a){var s=this;(0,o.Z)(this,e),this._editor=t,this._instantiationService=n,this._openerService=i,this._languageService=r,this._toUnhook=new l.SL,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration((function(e){e.hasChanged(55)&&(s._unhookEvents(),s._hookEvents())}))}return(0,a.Z)(e,[{key:"_hookEvents",value:function(){var e=this,t=this._editor.getOption(55);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown((function(t){return e._onEditorMouseDown(t)}))),this._toUnhook.add(this._editor.onMouseUp((function(t){return e._onEditorMouseUp(t)}))),this._toUnhook.add(this._editor.onMouseMove((function(t){return e._onEditorMouseMove(t)}))),this._toUnhook.add(this._editor.onKeyDown((function(t){return e._onKeyDown(t)})))):(this._toUnhook.add(this._editor.onMouseMove((function(t){return e._onEditorMouseMove(t)}))),this._toUnhook.add(this._editor.onKeyDown((function(t){return e._onKeyDown(t)})))),this._toUnhook.add(this._editor.onMouseLeave((function(t){return e._onEditorMouseLeave(t)}))),this._toUnhook.add(this._editor.onDidChangeModel((function(){return e._hideWidgets()}))),this._toUnhook.add(this._editor.onDidScrollChange((function(t){return e._onEditorScrollChanged(t)})))}},{key:"_unhookEvents",value:function(){this._toUnhook.clear()}},{key:"_onEditorScrollChanged",value:function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}},{key:"_onEditorMouseDown",value:function(e){this._isMouseDown=!0;var t=e.target;9!==t.type||t.detail!==G.ID?12===t.type&&t.detail===ee.ID||(12!==t.type&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0}},{key:"_onEditorMouseUp",value:function(e){this._isMouseDown=!1}},{key:"_onEditorMouseLeave",value:function(e){var t,n=e.event.browserEvent.relatedTarget;(null===(t=this._contentWidget)||void 0===t?void 0:t.containsNode(n))||this._hideWidgets()}},{key:"_onEditorMouseMove",value:function(e){var t,n,i,r,o,a=e.target;if((!this._isMouseDown||!this._hoverClicked)&&(!this._isHoverSticky||9!==a.type||a.detail!==G.ID)&&(!this._isHoverSticky||(null===(n=null===(t=e.event.browserEvent.view)||void 0===t?void 0:t.getSelection())||void 0===n?void 0:n.isCollapsed))&&(this._isHoverSticky||9!==a.type||a.detail!==G.ID||!(null===(i=this._contentWidget)||void 0===i?void 0:i.isColorPickerVisible()))&&(!this._isHoverSticky||12!==a.type||a.detail!==ee.ID))if(this._isHoverEnabled){if(!this._getOrCreateContentWidget().maybeShowAt(e))return 2===a.type&&a.position?(null===(o=this._contentWidget)||void 0===o||o.hide(),this._glyphWidget||(this._glyphWidget=new ee(this._editor,this._languageService,this._openerService)),void this._glyphWidget.startShowingAt(a.position.lineNumber)):void this._hideWidgets();null===(r=this._glyphWidget)||void 0===r||r.hide()}else this._hideWidgets()}},{key:"_onKeyDown",value:function(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()}},{key:"_hideWidgets",value:function(){var e,t,n;this._isMouseDown&&this._hoverClicked&&(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible())||(this._hoverClicked=!1,null===(t=this._glyphWidget)||void 0===t||t.hide(),null===(n=this._contentWidget)||void 0===n||n.hide())}},{key:"_getOrCreateContentWidget",value:function(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(W,this._editor)),this._contentWidget}},{key:"isColorPickerVisible",value:function(){var e;return(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible())||!1}},{key:"showContentHover",value:function(e,t,n){this._getOrCreateContentWidget().startShowingAtRange(e,t,n)}},{key:"dispose",value:function(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),null===(e=this._glyphWidget)||void 0===e||e.dispose(),null===(t=this._contentWidget)||void 0===t||t.dispose()}}],[{key:"get",value:function(t){return t.getContribution(e.ID)}}]),e}();we.ID="editor.contrib.hover",we=Ce([Se(1,F.TG),Se(2,Q.v4),Se(3,h.O),Se(4,Z.i6)],we);var ke=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.showHover",label:ne.NC({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,s.gx)(2089,2087),weight:100}})}return(0,a.Z)(n,[{key:"run",value:function(e,t){if(t.hasModel()){var n=we.get(t);if(n){var i=t.getPosition(),r=new u.e(i.lineNumber,i.column,i.lineNumber,i.column),o=2===t.getOption(2);n.showContentHover(r,1,o)}}}}]),n}(c.R6),xe=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.showDefinitionPreviewHover",label:ne.NC({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}return(0,a.Z)(n,[{key:"run",value:function(e,t){var n=we.get(t);if(n){var i=t.getPosition();if(i){var r=new u.e(i.lineNumber,i.column,i.lineNumber,i.column),o=f.GotoDefinitionAtPositionEditorContribution.get(t);if(o)o.startFindDefinitionFromCursor(i).then((function(){n.showContentHover(r,1,!0)}))}}}}]),n}(c.R6);(0,c._K)(we.ID,we),(0,c.Qr)(ke),(0,c.Qr)(xe),P.Ae.register(oe.D5),P.Ae.register(be),(0,re.Ic)((function(e,t){var n=e.getColor(ie.ptc);n&&t.addRule(".monaco-editor .hoverHighlight { background-color: ".concat(n,"; }"));var i=e.getColor(ie.yJx);i&&t.addRule(".monaco-editor .monaco-hover { background-color: ".concat(i,"; }"));var r=e.getColor(ie.CNo);r&&(t.addRule(".monaco-editor .monaco-hover { border: 1px solid ".concat(r,"; }")),t.addRule(".monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ".concat(r.transparent(.5),"; }")),t.addRule(".monaco-editor .monaco-hover hr { border-top: 1px solid ".concat(r.transparent(.5),"; }")),t.addRule(".monaco-editor .monaco-hover hr { border-bottom: 0px solid ".concat(r.transparent(.5),"; }")));var o=e.getColor(ie.url);o&&t.addRule(".monaco-editor .monaco-hover a { color: ".concat(o,"; }"));var a=e.getColor(ie.sgC);a&&t.addRule(".monaco-editor .monaco-hover a:hover { color: ".concat(a,"; }"));var s=e.getColor(ie.Sbf);s&&t.addRule(".monaco-editor .monaco-hover { color: ".concat(s,"; }"));var l=e.getColor(ie.LoV);l&&t.addRule(".monaco-editor .monaco-hover .hover-row .actions { background-color: ".concat(l,"; }"));var c=e.getColor(ie.SwI);c&&t.addRule(".monaco-editor .monaco-hover code { background-color: ".concat(c,"; }"))}))},47854:function(e,t,n){"use strict";n.d(t,{Ae:function(){return s},Qj:function(){return o},YM:function(){return a}});var i=n(15671),r=n(43144),o=function(){function e(t,n){(0,i.Z)(this,e),this.priority=t,this.range=n,this.type=1}return(0,r.Z)(e,[{key:"equals",value:function(e){return 1===e.type&&this.range.equalsRange(e.range)}},{key:"canAdoptVisibleHover",value:function(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}]),e}(),a=function(){function e(t,n,r){(0,i.Z)(this,e),this.priority=t,this.owner=n,this.range=r,this.type=2}return(0,r.Z)(e,[{key:"equals",value:function(e){return 2===e.type&&this.owner===e.owner}},{key:"canAdoptVisibleHover",value:function(e,t){return 2===e.type&&this.owner===e.owner}}]),e}(),s=new(function(){function e(){(0,i.Z)(this,e),this._participants=[]}return(0,r.Z)(e,[{key:"register",value:function(e){this._participants.push(e)}},{key:"getAll",value:function(){return this._participants}}]),e}())},43645:function(e,t,n){"use strict";n.d(t,{D5:function(){return k},c:function(){return x},hU:function(){return w}});var i=n(37762),r=n(15671),o=n(43144),a=n(81531),s=n(29671),l=n(60022),c=n(61066),u=n(11860),d=n(21919),h=n(38622),f=n(80133),p=n(72762),g=n(23363),v=n(27722),m=n(87984),y=n(83078),_=n(53584),b=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},C=function(e,t){return function(n,i){t(n,i,e)}},S=a.$,w=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.owner=t,this.range=n,this.contents=i,this.ordinal=o}return(0,o.Z)(e,[{key:"isValidForHoverAnchor",value:function(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}]),e}(),k=function(){function e(t,n,i,o,a){(0,r.Z)(this,e),this._editor=t,this._languageService=n,this._openerService=i,this._configurationService=o,this._languageFeaturesService=a,this.hoverOrdinal=2}return(0,o.Z)(e,[{key:"createLoadingMessage",value:function(e){return new w(this,e.range,[(new c.W5).appendText(v.NC("modesContentHover.loading","Loading..."))],2e3)}},{key:"computeSync",value:function(e,t){if(!this._editor.hasModel()||1!==e.type)return[];var n=this._editor.getModel(),r=e.range.startLineNumber,o=n.getLineMaxColumn(r),a=[],l=1e3,u=n.getLineLength(r),d=n.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:d});"number"===typeof h&&u>=h&&a.push(new w(this,e.range,[{value:v.NC("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],l++));var p,g=(0,i.Z)(t);try{for(g.s();!(p=g.n()).done;){var m=p.value,y=m.range.startLineNumber===r?m.range.startColumn:1,_=m.range.endLineNumber===r?m.range.endColumn:o,b=m.options.hoverMessage;if(b&&!(0,c.CP)(b)){var C=new f.e(e.range.startLineNumber,y,e.range.startLineNumber,_);a.push(new w(this,C,(0,s._2)(b),l++))}}}catch(S){g.e(S)}finally{g.f()}return a}},{key:"computeAsync",value:function(e,t,n){var i=this;if(!this._editor.hasModel()||1!==e.type)return l.Aq.EMPTY;var r=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(r))return l.Aq.EMPTY;var o=new h.L(e.range.startLineNumber,e.range.startColumn);return(0,g.R8)(this._languageFeaturesService.hoverProvider,r,o,n).filter((function(e){return!(0,c.CP)(e.hover.contents)})).map((function(t){var n=t.hover.range?f.e.lift(t.hover.range):e.range;return new w(i,n,t.hover.contents,t.ordinal)}))}},{key:"renderHoverParts",value:function(e,t){return x(e,t,this._editor,this._languageService,this._openerService)}}]),e}();function x(e,t,n,r,o){t.sort((function(e,t){return e.ordinal-t.ordinal}));var s,l=new u.SL,h=(0,i.Z)(t);try{for(h.s();!(s=h.n()).done;){var f,p=s.value,g=(0,i.Z)(p.contents);try{var v=function(){var t=f.value;if((0,c.CP)(t))return"continue";var i=S("div.hover-row.markdown-hover"),s=a.append(i,S("div.hover-contents")),u=l.add(new d.$({editor:n},r,o));l.add(u.onDidRenderAsync((function(){s.className="hover-contents code-hover-contents",e.onContentsChanged()})));var h=l.add(u.render(t));s.appendChild(h.element),e.fragment.appendChild(i)};for(g.s();!(f=g.n()).done;)v()}catch(m){g.e(m)}finally{g.f()}}}catch(m){h.e(m)}finally{h.f()}return l}k=b([C(1,p.O),C(2,y.v4),C(3,m.Ui),C(4,_.p)],k)},36262:function(e,t,n){"use strict";n.r(t);var i=n(60136),r=n(27277),o=n(15671),a=n(43144),s=n(60022),l=n(14173),c=n(68132),u=n(62381),d=n(80133),h=n(23145),f=n(67245),p=n(70845),g=n(5323),v=n(29700),m=n(27722),y=n(64014),_=function(){function e(t,n,i){(0,o.Z)(this,e),this._editRange=t,this._originalSelection=n,this._text=i}return(0,a.Z)(e,[{key:"getEditOperations",value:function(e,t){t.addTrackedEditOperation(this._editRange,this._text)}},{key:"computeCursorState",value:function(e,t){var n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new h.Y(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new h.Y(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)}}]),e}(),b=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},C=function(e,t){return function(n,i){t(n,i,e)}},S=function(){function e(t,n){(0,o.Z)(this,e),this.editor=t,this.editorWorkerService=n,this.decorations=this.editor.createDecorationsCollection()}return(0,a.Z)(e,[{key:"dispose",value:function(){}},{key:"run",value:function(t,n){var i=this;this.currentRequest&&this.currentRequest.cancel();var r=this.editor.getSelection(),o=this.editor.getModel();if(o&&r){var a=r;if(a.startLineNumber===a.endLineNumber){var u=new c.yy(this.editor,5),f=o.uri;return this.editorWorkerService.canNavigateValueSet(f)?(this.currentRequest=(0,s.PG)((function(e){return i.editorWorkerService.navigateValueSet(f,a,n)})),this.currentRequest.then((function(n){if(n&&n.range&&n.value&&u.validate(i.editor)){var r=d.e.lift(n.range),o=n.range,c=n.value.length-(a.endColumn-a.startColumn);o={startLineNumber:o.startLineNumber,startColumn:o.startColumn,endLineNumber:o.endLineNumber,endColumn:o.startColumn+n.value.length},c>1&&(a=new h.Y(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+c-1));var f=new _(r,a,n.value);i.editor.pushUndoStop(),i.editor.executeCommand(t,f),i.editor.pushUndoStop(),i.decorations.set([{range:o,options:e.DECORATION}]),i.decorationRemover&&i.decorationRemover.cancel(),i.decorationRemover=(0,s.Vs)(350),i.decorationRemover.then((function(){return i.decorations.clear()})).catch(l.dL)}})).catch(l.dL)):Promise.resolve(void 0)}}}}],[{key:"get",value:function(t){return t.getContribution(e.ID)}}]),e}();S.ID="editor.contrib.inPlaceReplaceController",S.DECORATION=p.qx.register({description:"in-place-replace",className:"valueSetReplacement"}),S=b([C(1,g.p)],S);var w=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.inPlaceReplace.up",label:m.NC("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:f.u.writable,kbOpts:{kbExpr:f.u.editorTextFocus,primary:3154,weight:100}})}return(0,a.Z)(n,[{key:"run",value:function(e,t){var n=S.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)}}]),n}(u.R6),k=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.inPlaceReplace.down",label:m.NC("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:f.u.writable,kbOpts:{kbExpr:f.u.editorTextFocus,primary:3156,weight:100}})}return(0,a.Z)(n,[{key:"run",value:function(e,t){var n=S.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)}}]),n}(u.R6);(0,u._K)(S.ID,S),(0,u.Qr)(w),(0,u.Qr)(k),(0,y.Ic)((function(e,t){var n=e.getColor(v.Dl);n&&t.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px ".concat(n,"; }"))}))},81160:function(e,t,n){"use strict";function i(e,t){for(var n=0,i=0;i<e.length;i++)"\t"===e.charAt(i)?n+=t:n++;return n}function r(e,t,n){e=e<0?0:e;var i="";if(!n){var r=Math.floor(e/t);e%=t;for(var o=0;o<r;o++)i+="\t"}for(var a=0;a<e;a++)i+=" ";return i}n.d(t,{J:function(){return r},Y:function(){return i}})},52791:function(e,t,n){"use strict";n.r(t),n.d(t,{AutoIndentOnPaste:function(){return P},AutoIndentOnPasteCommand:function(){return M},ChangeIndentationSizeAction:function(){return I},DetectIndentation:function(){return O},IndentUsingSpaces:function(){return L},IndentUsingTabs:function(){return D},IndentationToSpacesAction:function(){return T},IndentationToSpacesCommand:function(){return F},IndentationToTabsAction:function(){return N},IndentationToTabsCommand:function(){return B},ReindentLinesAction:function(){return R},ReindentSelectedLinesAction:function(){return A},getReindentEditOperations:function(){return E}});var i=n(93433),r=n(37762),o=n(15671),a=n(43144),s=n(60136),l=n(27277),c=n(11860),u=n(32377),d=n(62381),h=n(55634),f=n(3055),p=n(80133),g=n(23145),v=n(67245),m=n(29662),y=n(29257),_=n(81160),b=n(27722),C=n(23664),S=n(35643),w=n(9651),k=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},x=function(e,t){return function(n,i){t(n,i,e)}};function E(e,t,n,i,r){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];var o=t.getLanguageConfiguration(e.getLanguageId()).indentationRules;if(!o)return[];for(i=Math.min(i,e.getLineCount());n<=i&&o.unIndentedLinePattern;){var a=e.getLineContent(n);if(!o.unIndentedLinePattern.test(a))break;n++}if(n>i-1)return[];var s,l=e.getOptions(),c=l.tabSize,d=l.indentSize,p=l.insertSpaces,v=function(e,t){return t=t||1,h.U.shiftIndent(e,e.length+t,c,d,p)},m=function(e,t){return t=t||1,h.U.unshiftIndent(e,e.length+t,c,d,p)},y=[],_=e.getLineContent(n),b=_;if(void 0!==r&&null!==r){s=r;var C=u.V8(_);b=s+_.substring(C.length),o.decreaseIndentPattern&&o.decreaseIndentPattern.test(b)&&(b=(s=m(s))+_.substring(C.length)),_!==b&&y.push(f.h.replaceMove(new g.Y(n,1,n,C.length+1),(0,S.x)(s,d,p)))}else s=u.V8(_);var w=s;o.increaseIndentPattern&&o.increaseIndentPattern.test(b)?(w=v(w),s=v(s)):o.indentNextLinePattern&&o.indentNextLinePattern.test(b)&&(w=v(w));for(var k=++n;k<=i;k++){a=e.getLineContent(k);var x=u.V8(a),E=w+a.substring(x.length);o.decreaseIndentPattern&&o.decreaseIndentPattern.test(E)&&(w=m(w),s=m(s)),x!==w&&y.push(f.h.replaceMove(new g.Y(k,1,k,x.length+1),(0,S.x)(w,d,p))),o.unIndentedLinePattern&&o.unIndentedLinePattern.test(a)||(w=o.increaseIndentPattern&&o.increaseIndentPattern.test(E)?s=v(s):o.indentNextLinePattern&&o.indentNextLinePattern.test(E)?v(w):s)}return y}var T=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:n.ID,label:b.NC("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:v.u.writable})}return(0,a.Z)(n,[{key:"run",value:function(e,t){var n=t.getModel();if(n){var i=n.getOptions(),r=t.getSelection();if(r){var o=new F(r,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop(),n.updateOptions({insertSpaces:!0})}}}}]),n}(d.R6);T.ID="editor.action.indentationToSpaces";var N=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:n.ID,label:b.NC("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:v.u.writable})}return(0,a.Z)(n,[{key:"run",value:function(e,t){var n=t.getModel();if(n){var i=n.getOptions(),r=t.getSelection();if(r){var o=new B(r,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop(),n.updateOptions({insertSpaces:!1})}}}}]),n}(d.R6);N.ID="editor.action.indentationToTabs";var I=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,i)).insertSpaces=e,r}return(0,a.Z)(n,[{key:"run",value:function(e,t){var n=this,i=e.get(C.eJ),r=e.get(y.q),o=t.getModel();if(o){var a=r.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),s=[1,2,3,4,5,6,7,8].map((function(e){return{id:e.toString(),label:e.toString(),description:e===a.tabSize?b.NC("configuredTabSize","Configured Tab Size"):void 0}})),l=Math.min(o.getOptions().tabSize-1,7);setTimeout((function(){i.pick(s,{placeHolder:b.NC({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:s[l]}).then((function(e){e&&o&&!o.isDisposed()&&o.updateOptions({tabSize:parseInt(e.label,10),insertSpaces:n.insertSpaces})}))}),50)}}}]),n}(d.R6),D=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,!1,{id:n.ID,label:b.NC("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}return(0,a.Z)(n)}(I);D.ID="editor.action.indentUsingTabs";var L=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,!0,{id:n.ID,label:b.NC("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}return(0,a.Z)(n)}(I);L.ID="editor.action.indentUsingSpaces";var O=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:n.ID,label:b.NC("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}return(0,a.Z)(n,[{key:"run",value:function(e,t){var n=e.get(y.q),i=t.getModel();if(i){var r=n.getCreationOptions(i.getLanguageId(),i.uri,i.isForSimpleWidget);i.detectIndentation(r.insertSpaces,r.tabSize)}}}]),n}(d.R6);O.ID="editor.action.detectIndentation";var R=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.reindentlines",label:b.NC("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:v.u.writable})}return(0,a.Z)(n,[{key:"run",value:function(e,t){var n=e.get(m.c_),i=t.getModel();if(i){var r=E(i,n,1,i.getLineCount());r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}}]),n}(d.R6),A=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.reindentselectedlines",label:b.NC("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:v.u.writable})}return(0,a.Z)(n,[{key:"run",value:function(e,t){var n=e.get(m.c_),o=t.getModel();if(o){var a=t.getSelections();if(null!==a){var s,l=[],c=(0,r.Z)(a);try{for(c.s();!(s=c.n()).done;){var u=s.value,d=u.startLineNumber,h=u.endLineNumber;if(d!==h&&1===u.endColumn&&h--,1===d){if(d===h)continue}else d--;var f=E(o,n,d,h);l.push.apply(l,(0,i.Z)(f))}}catch(p){c.e(p)}finally{c.f()}l.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,l),t.pushUndoStop())}}}}]),n}(d.R6),M=function(){function e(t,n){(0,o.Z)(this,e),this._initialSelection=n,this._edits=[],this._selectionId=null;var i,a=(0,r.Z)(t);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.range&&"string"===typeof s.text&&this._edits.push(s)}}catch(l){a.e(l)}finally{a.f()}}return(0,a.Z)(e,[{key:"getEditOperations",value:function(e,t){var n,i=(0,r.Z)(this._edits);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.addEditOperation(p.e.lift(o.range),o.text)}}catch(s){i.e(s)}finally{i.f()}var a=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(a=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(a=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),a||(this._selectionId=t.trackSelection(this._initialSelection))}},{key:"computeCursorState",value:function(e,t){return t.getTrackedSelection(this._selectionId)}}]),e}(),P=function(){function e(t,n){var i=this;(0,o.Z)(this,e),this.editor=t,this._languageConfigurationService=n,this.callOnDispose=new c.SL,this.callOnModel=new c.SL,this.callOnDispose.add(t.onDidChangeConfiguration((function(){return i.update()}))),this.callOnDispose.add(t.onDidChangeModel((function(){return i.update()}))),this.callOnDispose.add(t.onDidChangeModelLanguage((function(){return i.update()})))}return(0,a.Z)(e,[{key:"update",value:function(){var e=this;this.callOnModel.clear(),this.editor.getOption(9)<4||this.editor.getOption(50)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((function(t){var n=t.range;e.trigger(n)})))}},{key:"trigger",value:function(e){var t=this.editor.getSelections();if(!(null===t||t.length>1)){var n=this.editor.getModel();if(n&&n.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber)){for(var i=this.editor.getOption(9),r=n.getOptions(),o=r.tabSize,a=r.indentSize,s=r.insertSpaces,l=[],c={shiftIndent:function(e){return h.U.shiftIndent(e,e.length+1,o,a,s)},unshiftIndent:function(e){return h.U.unshiftIndent(e,e.length+1,o,a,s)}},d=e.startLineNumber;d<=e.endLineNumber&&this.shouldIgnoreLine(n,d);)d++;if(!(d>e.endLineNumber)){var f=n.getLineContent(d);if(!/\S/.test(f.substring(0,e.startColumn-1))){var g=(0,w.n8)(i,n,n.getLanguageId(),d,c,this._languageConfigurationService);if(null!==g){var v=u.V8(f),m=_.Y(g,o);if(m!==_.Y(v,o)){var y=_.J(m,o,s);l.push({range:new p.e(d,1,d,v.length+1),text:y}),f=y+f.substr(v.length)}else{var b=(0,w.tI)(n,d,this._languageConfigurationService);if(0===b||8===b)return}}}for(var C=d;d<e.endLineNumber&&!/\S/.test(n.getLineContent(d+1));)d++;if(d!==e.endLineNumber){var S={tokenization:{getLineTokens:function(e){return n.tokenization.getLineTokens(e)},getLanguageId:function(){return n.getLanguageId()},getLanguageIdAtPosition:function(e,t){return n.getLanguageIdAtPosition(e,t)}},getLineContent:function(e){return e===C?f:n.getLineContent(e)}},k=(0,w.n8)(i,S,n.getLanguageId(),d+1,c,this._languageConfigurationService);if(null!==k){var x=_.Y(k,o),E=_.Y(u.V8(n.getLineContent(d+1)),o);if(x!==E)for(var T=x-E,N=d+1;N<=e.endLineNumber;N++){var I=n.getLineContent(N),D=u.V8(I),L=_.Y(D,o)+T,O=_.J(L,o,s);O!==D&&l.push({range:new p.e(N,1,N,D.length+1),text:O})}}}if(l.length>0){this.editor.pushUndoStop();var R=new M(l,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",R),this.editor.pushUndoStop()}}}}}},{key:"shouldIgnoreLine",value:function(e,t){e.tokenization.forceTokenization(t);var n=e.getLineFirstNonWhitespaceColumn(t);if(0===n)return!0;var i=e.tokenization.getLineTokens(t);if(i.getCount()>0){var r=i.findTokenIndexAtOffset(n);if(r>=0&&1===i.getStandardTokenType(r))return!0}return!1}},{key:"dispose",value:function(){this.callOnDispose.dispose(),this.callOnModel.dispose()}}]),e}();function Z(e,t,n,i){if(1!==e.getLineCount()||1!==e.getLineMaxColumn(1)){for(var r="",o=0;o<n;o++)r+=" ";for(var a=new RegExp(r,"gi"),s=1,l=e.getLineCount();s<=l;s++){var c=e.getLineFirstNonWhitespaceColumn(s);if(0===c&&(c=e.getLineMaxColumn(s)),1!==c){var u=new p.e(s,1,s,c),d=e.getValueInRange(u),h=i?d.replace(/\t/gi,r):d.replace(a,"\t");t.addEditOperation(u,h)}}}}P.ID="editor.contrib.autoIndentOnPaste",P=k([x(1,m.c_)],P);var F=function(){function e(t,n){(0,o.Z)(this,e),this.selection=t,this.tabSize=n,this.selectionId=null}return(0,a.Z)(e,[{key:"getEditOperations",value:function(e,t){this.selectionId=t.trackSelection(this.selection),Z(e,t,this.tabSize,!0)}},{key:"computeCursorState",value:function(e,t){return t.getTrackedSelection(this.selectionId)}}]),e}(),B=function(){function e(t,n){(0,o.Z)(this,e),this.selection=t,this.tabSize=n,this.selectionId=null}return(0,a.Z)(e,[{key:"getEditOperations",value:function(e,t){this.selectionId=t.trackSelection(this.selection),Z(e,t,this.tabSize,!1)}},{key:"computeCursorState",value:function(e,t){return t.getTrackedSelection(this.selectionId)}}]),e}();(0,d._K)(P.ID,P),(0,d.Qr)(T),(0,d.Qr)(N),(0,d.Qr)(D),(0,d.Qr)(L),(0,d.Qr)(O),(0,d.Qr)(R),(0,d.Qr)(A)},51088:function(e,t,n){"use strict";n.r(t);var i=n(62381),r=n(47854),o=n(4942),a=n(93433),s=n(29439),l=n(74165),c=n(37762),u=n(15671),d=n(43144),h=n(81531),f=n(29671),p=n(60022),g=n(82784),v=n(14173),m=n(11860),y=n(54376),_=n(85294),b=n(72112),C=n(46190),S=n(64472),w=n(3055),k=n(80133),x=n(12905),E=n(36550),T=n(70845),N=n(98971),I=n(53584),D=n(95011),L=n(25047),O=n(38622),R=n(84855),A=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},M=(0,d.Z)((function e(t,n){(0,u.Z)(this,e),this.range=t,this.direction=n})),P=function(){function e(t,n,i){(0,u.Z)(this,e),this.hint=t,this.anchor=n,this.provider=i,this._isResolved=!1}return(0,d.Z)(e,[{key:"with",value:function(t){var n=new e(this.hint,t.anchor,this.provider);return n._isResolved=this._isResolved,n._currentResolve=this._currentResolve,n}},{key:"resolve",value:function(e){return A(this,void 0,void 0,(0,l.Z)().mark((function t(){var n=this;return(0,l.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"===typeof this.provider.resolveInlayHint){t.next=2;break}return t.abrupt("return");case 2:if(!this._currentResolve){t.next=8;break}return t.next=5,this._currentResolve;case 5:if(!e.isCancellationRequested){t.next=7;break}return t.abrupt("return");case 7:return t.abrupt("return",this.resolve(e));case 8:return this._isResolved||(this._currentResolve=this._doResolve(e).finally((function(){return n._currentResolve=void 0}))),t.next=11,this._currentResolve;case 11:case"end":return t.stop()}}),t,this)})))}},{key:"_doResolve",value:function(e){var t,n;return A(this,void 0,void 0,(0,l.Z)().mark((function i(){var r;return(0,l.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Promise.resolve(this.provider.resolveInlayHint(this.hint,e));case 3:r=i.sent,this.hint.tooltip=null!==(t=null===r||void 0===r?void 0:r.tooltip)&&void 0!==t?t:this.hint.tooltip,this.hint.label=null!==(n=null===r||void 0===r?void 0:r.label)&&void 0!==n?n:this.hint.label,this._isResolved=!0,i.next=13;break;case 9:i.prev=9,i.t0=i.catch(0),(0,v.Cp)(i.t0),this._isResolved=!1;case 13:case"end":return i.stop()}}),i,this,[[0,9]])})))}}]),e}(),Z=function(){function e(t,n,i){(0,u.Z)(this,e),this._disposables=new m.SL,this.ranges=t,this.provider=new Set;var r,o=[],a=(0,c.Z)(n);try{for(a.s();!(r=a.n()).done;){var l=(0,s.Z)(r.value,2),d=l[0],h=l[1];this._disposables.add(d),this.provider.add(h);var f,p=(0,c.Z)(d.hints);try{for(p.s();!(f=p.n()).done;){var g=f.value,v=i.validatePosition(g.position),y="before",_=e._getRangeAtPosition(i,v),b=void 0;_.getStartPosition().isBefore(v)?(b=k.e.fromPositions(_.getStartPosition(),v),y="after"):(b=k.e.fromPositions(v,_.getEndPosition()),y="before"),o.push(new P(g,new M(b,y),h))}}catch(C){p.e(C)}finally{p.f()}}}catch(C){a.e(C)}finally{a.f()}this.items=o.sort((function(e,t){return O.L.compare(e.hint.position,t.hint.position)}))}return(0,d.Z)(e,[{key:"dispose",value:function(){this._disposables.dispose()}}],[{key:"create",value:function(t,n,i,r){return A(this,void 0,void 0,(0,l.Z)().mark((function o(){var a,s,c=this;return(0,l.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=[],s=t.ordered(n).reverse().map((function(e){return i.map((function(t){return A(c,void 0,void 0,(0,l.Z)().mark((function i(){var o;return(0,l.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,e.provideInlayHints(n,t,r);case 3:(null===(o=i.sent)||void 0===o?void 0:o.hints.length)&&a.push([o,e]),i.next=10;break;case 7:i.prev=7,i.t0=i.catch(0),(0,v.Cp)(i.t0);case 10:case"end":return i.stop()}}),i,null,[[0,7]])})))}))})),o.next=4,Promise.all(s.flat());case 4:if(!r.isCancellationRequested&&!n.isDisposed()){o.next=6;break}throw new v.FU;case 6:return o.abrupt("return",new e(i,a,n));case 7:case"end":return o.stop()}}),o)})))}},{key:"_getRangeAtPosition",value:function(e,t){var n=t.lineNumber,i=e.getWordAtPosition(t);if(i)return new k.e(n,i.startColumn,n,i.endColumn);e.tokenization.tokenizeIfCheap(n);var r=e.tokenization.getLineTokens(n),o=t.column-1,a=r.findTokenIndexAtOffset(o),s=r.getStartOffset(a),l=r.getEndOffset(a);return l-s===1&&(s===o&&a>1?(s=r.getStartOffset(a-1),l=r.getEndOffset(a-1)):l===o&&a<r.getCount()-1&&(s=r.getStartOffset(a+1),l=r.getEndOffset(a+1))),new k.e(n,s+1,n,l+1)}}]),e}();var F=n(18247),B=n(49474),H=n(33800),z=n(48996),j=n(11133),V=n(34509),W=n(22468),U=n(36888),G=n(15493),K=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};function Y(e,t,n,r){var o;return K(this,void 0,void 0,(0,l.Z)().mark((function s(){var u,d,f,p,v,m,y,_,b,C,S,w,x,E=this;return(0,l.Z)().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return u=e.get(D.S),d=e.get(W.i),f=e.get(j.Hy),p=e.get(U.TG),v=e.get(G.lT),s.next=7,r.item.resolve(g.T.None);case 7:if(r.part.location){s.next=9;break}return s.abrupt("return");case 9:m=r.part.location,y=[],_=new Set(z.BH.getMenuItems(z.eH.EditorContext).map((function(e){return(0,z.vr)(e)?e.command.id:""}))),b=(0,c.Z)(i.Uc.getEditorActions());try{for(S=function(){var e=C.value;e instanceof B.SymbolNavigationAction&&_.has(e.id)&&y.push(new F.aU(e.id,e.label,void 0,!0,(function(){return K(E,void 0,void 0,(0,l.Z)().mark((function n(){var i;return(0,l.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,u.createModelReference(m.uri);case 2:return i=n.sent,n.prev=3,n.next=6,p.invokeFunction(e.run.bind(e),t,new B.SymbolNavigationAnchor(i.object.textEditorModel,k.e.getStartPosition(m.range)));case 6:return n.prev=6,i.dispose(),n.finish(6);case 9:case"end":return n.stop()}}),n,null,[[3,,6,9]])})))})))},b.s();!(C=b.n()).done;)S()}catch(T){b.e(T)}finally{b.f()}r.part.command&&(w=r.part.command,y.push(new F.Z0),y.push(new F.aU(w.id,w.title,void 0,!0,(function(){return K(E,void 0,void 0,(0,l.Z)().mark((function e(){var t;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.executeCommand.apply(f,[w.id].concat((0,a.Z)(null!==(t=w.arguments)&&void 0!==t?t:[])));case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),v.notify({severity:G.zb.Error,source:r.item.provider.displayName,message:e.t0});case 8:case"end":return e.stop()}}),e,null,[[0,5]])})))})))),x=t.getOption(117),d.showContextMenu({domForShadowRoot:x&&null!==(o=t.getDomNode())&&void 0!==o?o:void 0,getAnchor:function(){var e=h.getDomNodePagePosition(n);return{x:e.left,y:e.top+e.height+8}},getActions:function(){return y},onHide:function(){t.focus()},autoSelectFirstItem:!0});case 17:case"end":return s.stop()}}),s)})))}function q(e,t,n,i){return K(this,void 0,void 0,(0,l.Z)().mark((function r(){var o,a,s=this;return(0,l.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e.get(D.S),r.next=3,o.createModelReference(i.uri);case 3:return a=r.sent,r.next=6,n.invokeWithinContext((function(e){return K(s,void 0,void 0,(0,l.Z)().mark((function r(){var o,s,c,u,d;return(0,l.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=t.hasSideBySideModifier,s=e.get(V.i6),c=H.Jy.inPeekEditor.getValue(s),u=!o&&n.getOption(80)&&!c,d=new B.DefinitionAction({openToSide:o,openInPeek:u,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}),r.abrupt("return",d.run(e,n,{model:a.object.textEditorModel,position:k.e.getStartPosition(i.range)}));case 6:case"end":return r.stop()}}),r)})))}));case 6:a.dispose();case 7:case"end":return r.stop()}}),r)})))}var $=n(77896),X=n(32379),Q=n(64014),J=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ee=function(e,t){return function(n,i){t(n,i,e)}},te=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},ne=function(){function e(){(0,u.Z)(this,e),this._entries=new y.z6(50)}return(0,d.Z)(e,[{key:"get",value:function(t){var n=e._key(t);return this._entries.get(n)}},{key:"set",value:function(t,n){var i=e._key(t);this._entries.set(i,n)}}],[{key:"_key",value:function(e){return"".concat(e.uri.toString(),"/").concat(e.getVersionId())}}]),e}(),ie=(0,U.yh)("IInlayHintsCache");(0,$.z)(ie,ne,!0);var re=function(){function e(t,n){(0,u.Z)(this,e),this.item=t,this.index=n}return(0,d.Z)(e,[{key:"part",get:function(){var e=this.item.hint.label;return"string"===typeof e?{label:e}:e[this.index]}}]),e}(),oe=(0,d.Z)((function e(t,n){(0,u.Z)(this,e),this.part=t,this.hasTriggerModifier=n})),ae=function(){function e(t,n,i,r,o,a,s){var l=this;(0,u.Z)(this,e),this._editor=t,this._languageFeaturesService=n,this._inlayHintsCache=r,this._commandService=o,this._notificationService=a,this._instaService=s,this._disposables=new m.SL,this._sessionDisposables=new m.SL,this._decorationsMetadata=new Map,this._ruleFactory=new C.t7(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(n.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(n.inlayHintsProvider.onDidChange((function(){return l._update()}))),this._disposables.add(t.onDidChangeModel((function(){return l._update()}))),this._disposables.add(t.onDidChangeModelLanguage((function(){return l._update()}))),this._disposables.add(t.onDidChangeConfiguration((function(e){e.hasChanged(129)&&l._update()}))),this._update()}return(0,d.Z)(e,[{key:"dispose",value:function(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}},{key:"_update",value:function(){var e=this;this._sessionDisposables.clear(),this._removeAllDecorations();var t=this._editor.getOption(129);if("off"!==t.enabled){var n=this._editor.getModel();if(n&&this._languageFeaturesService.inlayHintsProvider.has(n)){var i,r=this._inlayHintsCache.get(n);r&&this._updateHintsDecorators([n.getFullModelRange()],r),this._sessionDisposables.add((0,m.OF)((function(){n.isDisposed()||e._cacheHintsForFastRestore(n)})));var o,a,s=new Set,u=new p.pY((function(){return te(e,void 0,void 0,(0,l.Z)().mark((function e(){var t,r,o,a,d,h,f;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Date.now(),null===i||void 0===i||i.dispose(!0),i=new g.A,r=n.onWillDispose((function(){return null===i||void 0===i?void 0:i.cancel()})),e.prev=4,o=i.token,e.next=8,Z.create(this._languageFeaturesService.inlayHintsProvider,n,this._getHintsRanges(),o);case 8:if(a=e.sent,u.delay=this._debounceInfo.update(n,Date.now()-t),!o.isCancellationRequested){e.next=13;break}return a.dispose(),e.abrupt("return");case 13:d=(0,c.Z)(a.provider);try{for(d.s();!(h=d.n()).done;)"function"!==typeof(f=h.value).onDidChangeInlayHints||s.has(f)||(s.add(f),this._sessionDisposables.add(f.onDidChangeInlayHints((function(){u.isScheduled()||u.schedule()}))))}catch(l){d.e(l)}finally{d.f()}this._sessionDisposables.add(a),this._updateHintsDecorators(a.ranges,a.items),this._cacheHintsForFastRestore(n),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(4),(0,v.dL)(e.t0);case 23:return e.prev=23,i.dispose(),r.dispose(),e.finish(23);case 27:case"end":return e.stop()}}),e,this,[[4,20,23,27]])})))}),this._debounceInfo.get(n));if(this._sessionDisposables.add(u),this._sessionDisposables.add((0,m.OF)((function(){return null===i||void 0===i?void 0:i.dispose(!0)}))),u.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange((function(e){!e.scrollTopChanged&&u.isScheduled()||u.schedule()}))),this._sessionDisposables.add(this._editor.onDidChangeModelContent((function(e){var t=Math.max(u.delay,1250);u.schedule(t)}))),"on"===t.enabled)this._activeRenderMode=0;else"onUnlessPressed"===t.enabled?(o=0,a=1):(o=1,a=0),this._activeRenderMode=o,this._sessionDisposables.add(h.ModifierKeyEmitter.getInstance().event((function(t){if(e._editor.hasModel()){var n=t.altKey&&t.ctrlKey?a:o;if(n!==e._activeRenderMode){e._activeRenderMode=n;var i=e._editor.getModel(),r=e._copyInlayHintsWithCurrentAnchor(i);e._updateHintsDecorators([i.getFullModelRange()],r),u.schedule(0)}}})));this._sessionDisposables.add(this._installDblClickGesture((function(){return u.schedule(0)}))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}}}},{key:"_installLinkGesture",value:function(){var e=this,t=new m.SL,n=t.add(new L.yN(this._editor)),i=new m.SL;return t.add(i),t.add(n.onMouseMoveOrRelevantKeyDown((function(t){var n=(0,s.Z)(t,1)[0],r=e._getInlayHintLabelPart(n),o=e._editor.getModel();if(r&&o){var a=new g.A;i.add((0,m.OF)((function(){return a.dispose(!0)}))),r.item.resolve(a.token),e._activeInlayHintPart=r.part.command||r.part.location?new oe(r,n.hasTriggerModifier):void 0;var l=r.item.hint.position.lineNumber,c=new k.e(l,1,l,o.getLineMaxColumn(l)),u=e._getInlineHintsForRange(c);e._updateHintsDecorators([c],u),i.add((0,m.OF)((function(){e._activeInlayHintPart=void 0,e._updateHintsDecorators([c],u)})))}else i.clear()}))),t.add(n.onCancel((function(){return i.clear()}))),t.add(n.onExecute((function(t){return te(e,void 0,void 0,(0,l.Z)().mark((function e(){var n,i;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=this._getInlayHintLabelPart(t))){e.next=10;break}if(!(i=n.part).location){e.next=7;break}this._instaService.invokeFunction(q,t,this._editor,i.location),e.next=10;break;case 7:if(!x.mY.is(i.command)){e.next=10;break}return e.next=10,this._invokeCommand(i.command,n.item);case 10:case"end":return e.stop()}}),e,this)})))}))),t}},{key:"_getInlineHintsForRange",value:function(e){var t,n=new Set,i=(0,c.Z)(this._decorationsMetadata.values());try{for(i.s();!(t=i.n()).done;){var r=t.value;e.containsRange(r.item.anchor.range)&&n.add(r.item)}}catch(o){i.e(o)}finally{i.f()}return Array.from(n)}},{key:"_installDblClickGesture",value:function(e){var t=this;return this._editor.onMouseUp((function(n){return te(t,void 0,void 0,(0,l.Z)().mark((function t(){var i,r;return(0,l.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(2===n.event.detail){t.next=2;break}return t.abrupt("return");case 2:if(i=this._getInlayHintLabelPart(n)){t.next=5;break}return t.abrupt("return");case 5:return n.event.preventDefault(),t.next=8,i.item.resolve(g.T.None);case 8:(0,f.Of)(i.item.hint.textEdits)&&(r=i.item.hint.textEdits.map((function(e){return w.h.replace(k.e.lift(e.range),e.text)})),this._editor.executeEdits("inlayHint.default",r),e());case 9:case"end":return t.stop()}}),t,this)})))}))}},{key:"_installContextMenu",value:function(){var e=this;return this._editor.onContextMenu((function(t){return te(e,void 0,void 0,(0,l.Z)().mark((function e(){var n;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.event.target instanceof HTMLElement){e.next=2;break}return e.abrupt("return");case 2:if(!(n=this._getInlayHintLabelPart(t))){e.next=6;break}return e.next=6,this._instaService.invokeFunction(Y,this._editor,t.event.target,n);case 6:case"end":return e.stop()}}),e,this)})))}))}},{key:"_getInlayHintLabelPart",value:function(e){var t;if(6===e.target.type){var n=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return n instanceof T.HS&&(null===n||void 0===n?void 0:n.attachedData)instanceof re?n.attachedData:void 0}}},{key:"_invokeCommand",value:function(e,t){var n;return te(this,void 0,void 0,(0,l.Z)().mark((function i(){var r;return(0,l.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,(r=this._commandService).executeCommand.apply(r,[e.id].concat((0,a.Z)(null!==(n=e.arguments)&&void 0!==n?n:[])));case 3:i.next=8;break;case 5:i.prev=5,i.t0=i.catch(0),this._notificationService.notify({severity:G.zb.Error,source:t.provider.displayName,message:i.t0});case 8:case"end":return i.stop()}}),i,this,[[0,5]])})))}},{key:"_cacheHintsForFastRestore",value:function(e){var t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}},{key:"_copyInlayHintsWithCurrentAnchor",value:function(e){var t,n=new Map,i=(0,c.Z)(this._decorationsMetadata);try{for(i.s();!(t=i.n()).done;){var r=(0,s.Z)(t.value,2),o=r[0],a=r[1];if(!n.has(a.item)){var l=e.getDecorationRange(o);if(l){var u=new M(l,a.item.anchor.direction),d=a.item.with({anchor:u});n.set(a.item,d)}}}}catch(h){i.e(h)}finally{i.f()}return Array.from(n.values())}},{key:"_getHintsRanges",value:function(){var e,t=this._editor.getModel(),n=this._editor.getVisibleRangesPlusViewportAboveBelow(),i=[],r=(0,c.Z)(n.sort(k.e.compareRangesUsingStarts));try{for(r.s();!(e=r.n()).done;){var o=e.value,a=t.validateRange(new k.e(o.startLineNumber-30,o.startColumn,o.endLineNumber+30,o.endColumn));0!==i.length&&k.e.areIntersectingOrTouching(i[i.length-1],a)?i[i.length-1]=k.e.plusRange(i[i.length-1],a):i.push(a)}}catch(s){r.e(s)}finally{r.f()}return i}},{key:"_updateHintsDecorators",value:function(t,n){var i,r,a=this,s=[],l=function(e,t,n,i,r){var l={content:n,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:i,attachedData:r};s.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:(0,o.Z)({description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0},e.anchor.direction,0===a._activeRenderMode?l:void 0)}})},u=function(e,t){var n=a._ruleFactory.createClassNameRef({width:"".concat(h/3|0,"px"),display:"inline-block"});l(e,n,"\u200a",t?E.RM.Right:E.RM.None)},d=this._getLayoutInfo(),h=d.fontSize,p=d.fontFamily,g=d.padding,v=d.isUniform,m="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(m,p);var y,_=(0,c.Z)(n);try{for(_.s();!(y=_.n()).done;){var b=y.value;b.hint.paddingLeft&&u(b,!1);for(var C="string"===typeof b.hint.label?[{label:b.hint.label}]:b.hint.label,w=0;w<C.length;w++){var k=C[w],x=0===w,T=w===C.length-1,N={fontSize:"".concat(h,"px"),fontFamily:"var(".concat(m,"), ").concat(S.hL.fontFamily),verticalAlign:v?"baseline":"middle"};(0,f.Of)(b.hint.textEdits)&&(N.cursor="default"),this._fillInColors(N,b.hint),(k.command||k.location)&&(null===(i=this._activeInlayHintPart)||void 0===i?void 0:i.part.item)===b&&this._activeInlayHintPart.part.index===w&&(N.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(N.color=(0,Q.EN)(X._Yy),N.cursor="pointer")),g&&(x&&T?(N.padding="1px ".concat(0|Math.max(1,h/4),"px"),N.borderRadius="".concat(h/4|0,"px")):x?(N.padding="1px 0 1px ".concat(0|Math.max(1,h/4),"px"),N.borderRadius="".concat(h/4|0,"px 0 0 ").concat(h/4|0,"px")):T?(N.padding="1px ".concat(0|Math.max(1,h/4),"px 1px 0"),N.borderRadius="0 ".concat(h/4|0,"px ").concat(h/4|0,"px 0")):N.padding="1px 0 1px 0"),l(b,this._ruleFactory.createClassNameRef(N),se(k.label),T&&!b.hint.paddingRight?E.RM.Right:E.RM.None,new re(b,w))}if(b.hint.paddingRight&&u(b,!0),s.length>e._MAX_DECORATORS)break}}catch(Z){_.e(Z)}finally{_.f()}var I,D=[],L=(0,c.Z)(t);try{for(L.s();!(I=L.n()).done;){var O,R=I.value,A=(0,c.Z)(null!==(r=this._editor.getDecorationsInRange(R))&&void 0!==r?r:[]);try{for(A.s();!(O=A.n()).done;){var M=O.value.id,P=this._decorationsMetadata.get(M);P&&(D.push(M),P.classNameRef.dispose(),this._decorationsMetadata.delete(M))}}catch(Z){A.e(Z)}finally{A.f()}}}catch(Z){L.e(Z)}finally{L.f()}this._editor.changeDecorations((function(e){for(var t=e.deltaDecorations(D,s.map((function(e){return e.decoration}))),n=0;n<t.length;n++){var i=s[n];a._decorationsMetadata.set(t[n],i)}}))}},{key:"_fillInColors",value:function(e,t){t.kind===x.gl.Parameter?(e.backgroundColor=(0,Q.EN)(X.phM),e.color=(0,Q.EN)(X.HCL)):t.kind===x.gl.Type?(e.backgroundColor=(0,Q.EN)(X.bKB),e.color=(0,Q.EN)(X.hX8)):(e.backgroundColor=(0,Q.EN)(X.PpC),e.color=(0,Q.EN)(X.VVv))}},{key:"_getLayoutInfo",value:function(){var e=this._editor.getOption(129),t=e.padding,n=this._editor.getOption(48),i=this._editor.getOption(45),r=e.fontSize;(!r||r<5||r>n)&&(r=n);var o=e.fontFamily||i;return{fontSize:r,fontFamily:o,padding:t,isUniform:!t&&o===i&&r===n}}},{key:"_removeAllDecorations",value:function(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));var e,t=(0,c.Z)(this._decorationsMetadata.values());try{for(t.s();!(e=t.n()).done;){e.value.classNameRef.dispose()}}catch(n){t.e(n)}finally{t.f()}this._decorationsMetadata.clear()}}],[{key:"get",value:function(t){var n;return null!==(n=t.getContribution(e.ID))&&void 0!==n?n:void 0}}]),e}();function se(e){return e.replace(/[ \t]/g,"\xa0")}ae.ID="editor.contrib.InlayHints",ae._MAX_DECORATORS=1500,ae=J([ee(1,I.p),ee(2,N.A),ee(3,ie),ee(4,j.Hy),ee(5,G.lT),ee(6,U.TG)],ae),j.P0.registerCommand("_executeInlayHintProvider",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return te(void 0,void 0,void 0,(0,l.Z)().mark((function t(){var i,r,o,a,s,c,u;return(0,l.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n[0],r=n[1],(0,_.p_)(b.o.isUri(i)),(0,_.p_)(k.e.isIRange(r)),o=e.get(I.p),a=o.inlayHintsProvider,t.next=6,e.get(D.S).createModelReference(i);case 6:return s=t.sent,t.prev=7,t.next=10,Z.create(a,s.object.textEditorModel,[k.e.lift(r)],g.T.None);case 10:return c=t.sent,u=c.items.map((function(e){return e.hint})),setTimeout((function(){return c.dispose()}),0),t.abrupt("return",u);case 14:return t.prev=14,s.dispose(),t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[7,,14,17]])})))}));var le=n(60136),ce=n(27277),ue=n(61066),de=n(72762),he=n(23363),fe=n(43645),pe=n(87984),ge=n(83078),ve=n(27722),me=n(73616),ye=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},_e=function(e,t){return function(n,i){t(n,i,e)}},be=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},Ce=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof __values?__values(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,r,(t=e[n](t)).done,t.value)}))}}},Se=function(e){(0,le.Z)(n,e);var t=(0,ce.Z)(n);function n(e,i){var r;return(0,u.Z)(this,n),(r=t.call(this,10,i,e.item.anchor.range)).part=e,r}return(0,d.Z)(n)}(r.YM),we=function(e){(0,le.Z)(n,e);var t=(0,ce.Z)(n);function n(e,i,r,o,a,s){var l;return(0,u.Z)(this,n),(l=t.call(this,e,i,r,o,s))._resolverService=a,l.hoverOrdinal=6,l}return(0,d.Z)(n,[{key:"suggestHoverAnchor",value:function(e){var t;if(!ae.get(this._editor))return null;if(6!==e.target.type)return null;var n=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return n instanceof T.HS&&n.attachedData instanceof re?new Se(n.attachedData,this):null}},{key:"computeSync",value:function(){return[]}},{key:"computeAsync",value:function(e,t,n){var i=this;return e instanceof Se?new p.Aq((function(t){return be(i,void 0,void 0,(0,l.Z)().mark((function i(){var r,o,a,s,c,u,d,h,p,g,v,m;return(0,l.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=e.part,i.next=3,a.item.resolve(n);case 3:if(!n.isCancellationRequested){i.next=5;break}return i.abrupt("return");case 5:return"string"===typeof a.item.hint.tooltip?s=(new ue.W5).appendText(a.item.hint.tooltip):a.item.hint.tooltip&&(s=a.item.hint.tooltip),s&&t.emitOne(new fe.hU(this,e.range,[s],0)),(0,f.Of)(a.item.hint.textEdits)&&t.emitOne(new fe.hU(this,e.range,[(new ue.W5).appendText((0,ve.NC)("hint.dbl","Double click to insert"))],10001)),"string"===typeof a.part.tooltip?c=(new ue.W5).appendText(a.part.tooltip):a.part.tooltip&&(c=a.part.tooltip),c&&t.emitOne(new fe.hU(this,e.range,[c],1)),(a.part.location||a.part.command)&&(d="altKey"===this._editor.getOption(72),h=d?me.dz?(0,ve.NC)("links.navigate.kb.meta.mac","cmd + click"):(0,ve.NC)("links.navigate.kb.meta","ctrl + click"):me.dz?(0,ve.NC)("links.navigate.kb.alt.mac","option + click"):(0,ve.NC)("links.navigate.kb.alt","alt + click"),a.part.location&&a.part.command?u=(new ue.W5).appendText((0,ve.NC)("hint.defAndCommand","Go to Definition ({0}), right click for more",h)):a.part.location?u=(new ue.W5).appendText((0,ve.NC)("hint.def","Go to Definition ({0})",h)):a.part.command&&(u=new ue.W5("[".concat((0,ve.NC)("hint.cmd","Execute Command"),"](").concat((l=a.part.command,b.o.from({scheme:R.lg.command,path:l.id,query:l.arguments&&encodeURIComponent(JSON.stringify(l.arguments))}).toString()),' "').concat(a.part.command.title,'") (').concat(h,")"),{isTrusted:!0})),u&&t.emitOne(new fe.hU(this,e.range,[u],1e4))),i.next=13,this._resolveInlayHintLabelPartHover(a,n);case 13:p=i.sent,i.prev=14,g=Ce(p);case 16:return i.next=18,g.next();case 18:if((v=i.sent).done){i.next=24;break}m=v.value,t.emitOne(m);case 22:i.next=16;break;case 24:i.next=29;break;case 26:i.prev=26,i.t0=i.catch(14),r={error:i.t0};case 29:if(i.prev=29,i.prev=30,!v||v.done||!(o=g.return)){i.next=34;break}return i.next=34,o.call(g);case 34:if(i.prev=34,!r){i.next=37;break}throw r.error;case 37:return i.finish(34);case 38:return i.finish(29);case 39:case"end":return i.stop()}var l}),i,this,[[14,26,29,39],[30,,34,38]])})))})):p.Aq.EMPTY}},{key:"_resolveInlayHintLabelPartHover",value:function(e,t){return be(this,void 0,void 0,(0,l.Z)().mark((function n(){var i,r,o,a,s,c=this;return(0,l.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.part.location){n.next=2;break}return n.abrupt("return",p.Aq.EMPTY);case 2:return i=e.part.location,r=i.uri,o=i.range,n.next=5,this._resolverService.createModelReference(r);case 5:if(a=n.sent,n.prev=6,s=a.object.textEditorModel,this._languageFeaturesService.hoverProvider.has(s)){n.next=10;break}return n.abrupt("return",p.Aq.EMPTY);case 10:return n.abrupt("return",(0,he.R8)(this._languageFeaturesService.hoverProvider,s,new O.L(o.startLineNumber,o.startColumn),t).filter((function(e){return!(0,ue.CP)(e.hover.contents)})).map((function(t){return new fe.hU(c,e.item.anchor.range,t.hover.contents,2+t.ordinal)})));case 11:return n.prev=11,a.dispose(),n.finish(11);case 14:case"end":return n.stop()}}),n,this,[[6,,11,14]])})))}}]),n}(fe.D5);we=ye([_e(1,de.O),_e(2,ge.v4),_e(3,pe.Ui),_e(4,D.S),_e(5,I.p)],we),(0,i._K)(ae.ID,ae),r.Ae.register(we)},22939:function(e,t,n){"use strict";n.r(t),n.d(t,{commitInlineSuggestionAction:function(){return yt}});var i=n(62381),r=n(67245),o=n(47854),a="editor.action.inlineSuggest.commit",s=n(74165),l=n(15671),c=n(43144),u=n(60136),d=n(27277),h=n(73097),f=n(11860),p=n(32377),g=n(29349),v=n(38622),m=n(12905),y=n(37762),_=n(93433),b=n(60022),C=n(82784),S=n(14173),w=n(79240),k=n(3055),x=n(80133);var E=function(){function e(t){(0,l.Z)(this,e),this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(var n=0;n<t.length;n++)"\n"===t.charAt(n)&&this.lineStartOffsetByLineIdx.push(n+1)}return(0,c.Z)(e,[{key:"getOffset",value:function(e){return this.lineStartOffsetByLineIdx[e.lineNumber-1]+e.column-1}}]),e}(),T=[];function N(){return T}var I=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;(0,l.Z)(this,e),this.lineNumber=t,this.parts=n,this.additionalReservedLineCount=i}return(0,c.Z)(e,[{key:"renderForScreenReader",value:function(e){if(0===this.parts.length)return"";var t=this.parts[this.parts.length-1];return function(e,t){var n=new E(e),i=t.map((function(e){var t=x.e.lift(e.range);return{startOffset:n.getOffset(t.getStartPosition()),endOffset:n.getOffset(t.getEndPosition()),text:e.text}}));i.sort((function(e,t){return t.startOffset-e.startOffset}));var r,o=(0,y.Z)(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;e=e.substring(0,a.startOffset)+a.text+e.substring(a.endOffset)}}catch(s){o.e(s)}finally{o.f()}return e}(e.substr(0,t.column-1),this.parts.map((function(e){return{range:{startLineNumber:1,endLineNumber:1,startColumn:e.column,endColumn:e.column},text:e.lines.join("\n")}}))).substring(this.parts[0].column-1)}},{key:"isEmpty",value:function(){return this.parts.every((function(e){return 0===e.lines.length}))}}]),e}(),D=(0,c.Z)((function e(t,n,i){(0,l.Z)(this,e),this.column=t,this.lines=n,this.preview=i})),L=function(){function e(t,n,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;(0,l.Z)(this,e),this.lineNumber=t,this.columnStart=n,this.length=i,this.newLines=r,this.additionalReservedLineCount=o,this.parts=[new D(this.columnStart+this.length,this.newLines,!1)]}return(0,c.Z)(e,[{key:"renderForScreenReader",value:function(e){return this.newLines.join("\n")}}]),e}(),O=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e){var i;return(0,l.Z)(this,n),(i=t.call(this)).editor=e,i._expanded=void 0,i.onDidChangeEmitter=new h.Q5,i.onDidChange=i.onDidChangeEmitter.event,i._register(e.onDidChangeConfiguration((function(e){e.hasChanged(108)&&void 0===i._expanded&&i.onDidChangeEmitter.fire()}))),i}return(0,c.Z)(n,[{key:"setExpanded",value:function(e){this._expanded=!0,this.onDidChangeEmitter.fire()}}]),n}(f.JT),R=n(11133),A=n(7208);function M(e,t){if(!t)return t;var n=e.getValueInRange(t.range),i=p.Mh(n,t.insertText),r=e.getOffsetAt(t.range.getStartPosition())+i,o=e.getPositionAt(r),a=n.substr(i),s=p.P1(a,t.insertText),l=e.getPositionAt(Math.max(r,e.getOffsetAt(t.range.getEndPosition())-s));return{range:x.e.fromPositions(o,l),insertText:t.insertText.substr(i,t.insertText.length-i-s),snippetInfo:t.snippetInfo,filterText:t.filterText,additionalTextEdits:t.additionalTextEdits}}function P(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(e.range.startLineNumber===e.range.endLineNumber){var o=t.getLineContent(e.range.startLineNumber),a=p.V8(o).length,s=e.range.startColumn-1<=a;if(s){var l=p.V8(e.insertText).length,c=o.substring(e.range.startColumn-1,a),u=x.e.fromPositions(e.range.getStartPosition().delta(0,c.length),e.range.getEndPosition()),d=e.insertText.startsWith(c)?e.insertText.substring(c.length):e.insertText.substring(l);e={range:u,insertText:d,command:e.command,snippetInfo:void 0,filterText:e.filterText,additionalTextEdits:e.additionalTextEdits}}var h=t.getValueInRange(e.range),f=F(h,e.insertText);if(f){var g=e.range.startLineNumber,v=new Array;if("prefix"===n){var m=f.filter((function(e){return 0===e.originalLength}));if(m.length>1||1===m.length&&m[0].originalStart!==h.length)return}var _,b=e.insertText.length-r,C=(0,y.Z)(f);try{for(C.s();!(_=C.n()).done;){var S=_.value,w=e.range.startColumn+S.originalStart+S.originalLength;if("subwordSmart"===n&&i&&i.lineNumber===e.range.startLineNumber&&w<i.column)return;if(S.originalLength>0)return;if(0!==S.modifiedLength){var k=S.modifiedStart+S.modifiedLength,E=Math.max(S.modifiedStart,Math.min(k,b)),T=e.insertText.substring(S.modifiedStart,E),N=e.insertText.substring(E,Math.max(S.modifiedStart,k));if(T.length>0){var L=p.uq(T);v.push(new D(w,L,!1))}if(N.length>0){var O=p.uq(N);v.push(new D(w,O,!0))}}}}catch(R){C.e(R)}finally{C.f()}return new I(g,v,0)}}}var Z=void 0;function F(e,t){if((null===Z||void 0===Z?void 0:Z.originalValue)===e&&(null===Z||void 0===Z?void 0:Z.newValue)===t)return null===Z||void 0===Z?void 0:Z.changes;var n=H(e,t,!0);if(n){var i=B(n);if(i>0){var r=H(e,t,!1);r&&B(r)<i&&(n=r)}}return Z={originalValue:e,newValue:t,changes:n},n}function B(e){var t,n=0,i=(0,y.Z)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n+=Math.max(r.originalLength-r.modifiedLength,0)}}catch(o){i.e(o)}finally{i.f()}return n}function H(e,t,n){if(!(e.length>5e3||t.length>5e3)){var i=Math.max(a(e),a(t)),r=l(e),o=l(t);return new A.Hs({getElements:function(){return r}},{getElements:function(){return o}}).ComputeDiff(!1).changes}function a(e){for(var t=0,n=0,i=e.length;n<i;n++){var r=e.charCodeAt(n);r>t&&(t=r)}return t}function s(e){if(e<0)throw new Error("unexpected");return i+e+1}function l(e){for(var t=0,i=0,r=new Int32Array(e.length),o=0,a=e.length;o<a;o++)if(n&&"("===e[o]){var l=100*i+t;r[o]=s(2*l),t++}else if(n&&")"===e[o]){var c=100*i+(t=Math.max(t-1,0));r[o]=s(2*c+1),0===t&&i++}else r[o]=e.charCodeAt(o);return r}}var z=n(29662),j=n(36915),V=n(81172),W=n(96778),U=n(2679),G=n(31497);var K=function(){function e(t){var n=this;(0,l.Z)(this,e),this.lines=t,this.tokenization={getLineTokens:function(e){return n.lines[e-1]}}}return(0,c.Z)(e,[{key:"getLineCount",value:function(){return this.lines.length}},{key:"getLineLength",value:function(e){return this.lines[e-1].getLineContent().length}}]),e}(),Y=n(53584),q=n(98971),$=n(54488),X=n(44152),Q=n(85294),J=n(73160),ee=n(87984),te=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ne=function(e,t){return function(n,i){t(n,i,e)}},ie=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},re=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,i,r,o,s,c,u){var d;return(0,l.Z)(this,n),(d=t.call(this)).editor=e,d.cache=i,d.commandService=r,d.languageConfigurationService=o,d.languageFeaturesService=s,d.debounceService=c,d.onDidChangeEmitter=new h.Q5,d.onDidChange=d.onDidChangeEmitter.event,d.completionSession=d._register(new f.XK),d.active=!1,d.disposed=!1,d.debounceValue=d.debounceService.for(d.languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),d._register(r.onDidExecuteCommand((function(t){new Set([w.CoreEditingCommands.Tab.id,w.CoreEditingCommands.DeleteLeft.id,w.CoreEditingCommands.DeleteRight.id,a,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&d.handleUserInput()}))),d._register(d.editor.onDidType((function(e){d.handleUserInput()}))),d._register(d.editor.onDidChangeCursorPosition((function(e){(3===e.reason||d.session&&!d.session.isValid)&&d.hide()}))),d._register((0,f.OF)((function(){d.disposed=!0}))),d._register(d.editor.onDidBlurEditorWidget((function(){u.getValue("editor.inlineSuggest.hideOnBlur")||d.hide()}))),d}return(0,c.Z)(n,[{key:"handleUserInput",value:function(){var e=this;this.session&&!this.session.isValid&&this.hide(),setTimeout((function(){e.disposed||e.startSessionIfTriggered()}),0)}},{key:"session",get:function(){return this.completionSession.value}},{key:"ghostText",get:function(){var e;return null===(e=this.session)||void 0===e?void 0:e.ghostText}},{key:"minReservedLineCount",get:function(){return this.session?this.session.minReservedLineCount:0}},{key:"setExpanded",value:function(e){var t;null===(t=this.session)||void 0===t||t.setExpanded(e)}},{key:"setActive",value:function(e){var t;this.active=e,e&&(null===(t=this.session)||void 0===t||t.scheduleAutomaticUpdate())}},{key:"startSessionIfTriggered",value:function(){this.editor.getOption(57).enabled&&(this.session&&this.session.isValid||this.trigger(m.bw.Automatic))}},{key:"trigger",value:function(e){var t=this;this.completionSession.value?e===m.bw.Explicit&&this.completionSession.value.ensureUpdateWithExplicitContext():(this.completionSession.value=new oe(this.editor,this.editor.getPosition(),(function(){return t.active}),this.commandService,this.cache,e,this.languageConfigurationService,this.languageFeaturesService.inlineCompletionsProvider,this.debounceValue),this.completionSession.value.takeOwnership(this.completionSession.value.onDidChange((function(){t.onDidChangeEmitter.fire()}))))}},{key:"hide",value:function(){this.completionSession.clear(),this.onDidChangeEmitter.fire()}},{key:"commitCurrentSuggestion",value:function(){var e;null===(e=this.session)||void 0===e||e.commitCurrentCompletion()}},{key:"showNext",value:function(){var e;null===(e=this.session)||void 0===e||e.showNextInlineCompletion()}},{key:"showPrevious",value:function(){var e;null===(e=this.session)||void 0===e||e.showPreviousInlineCompletion()}},{key:"hasMultipleInlineCompletions",value:function(){var e;return ie(this,void 0,void 0,(0,s.Z)().mark((function t(){var n;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===(e=this.session)||void 0===e?void 0:e.hasMultipleInlineCompletions();case 2:return n=t.sent,t.abrupt("return",void 0!==n&&n);case 4:case"end":return t.stop()}}),t,this)})))}}]),n}(f.JT);re=te([ne(2,R.Hy),ne(3,z.c_),ne(4,Y.p),ne(5,q.A),ne(6,ee.Ui)],re);var oe=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,i,r,o,a,s,c,u,d){var h;(0,l.Z)(this,n),(h=t.call(this,e)).triggerPosition=i,h.shouldUpdate=r,h.commandService=o,h.cache=a,h.initialTriggerKind=s,h.languageConfigurationService=c,h.registry=u,h.debounce=d,h.minReservedLineCount=0,h.updateOperation=h._register(new f.XK),h.updateSoon=h._register(new b.pY((function(){var e=h.initialTriggerKind;return h.initialTriggerKind=m.bw.Automatic,h.update(e)}),50)),h.filteredCompletions=[],h.currentlySelectedCompletionId=void 0;var p=void 0;return h._register(h.onDidChange((function(){var e,t=h.currentCompletion;if(t&&t.sourceInlineCompletion!==p){p=t.sourceInlineCompletion;var n=t.sourceProvider;null===(e=n.handleItemDidShow)||void 0===e||e.call(n,t.sourceInlineCompletions,p)}}))),h._register((0,f.OF)((function(){h.cache.clear()}))),h._register(h.editor.onDidChangeCursorPosition((function(e){var t;3!==e.reason&&(null===(t=h.cache.value)||void 0===t||t.updateRanges(),h.cache.value&&(h.updateFilteredInlineCompletions(),h.onDidChangeEmitter.fire()))}))),h._register(h.editor.onDidChangeModelContent((function(e){var t;null===(t=h.cache.value)||void 0===t||t.updateRanges(),h.updateFilteredInlineCompletions(),h.scheduleAutomaticUpdate()}))),h._register(h.registry.onDidChange((function(){h.updateSoon.schedule(h.debounce.get(h.editor.getModel()))}))),h.scheduleAutomaticUpdate(),h}return(0,c.Z)(n,[{key:"updateFilteredInlineCompletions",value:function(){if(this.cache.value){var e=this.editor.getModel(),t=e.validatePosition(this.editor.getPosition());this.filteredCompletions=this.cache.value.completions.filter((function(n){var i=e.getValueInRange(n.synchronizedRange).toLowerCase(),r=n.inlineCompletion.filterText.toLowerCase(),o=e.getLineIndentColumn(n.synchronizedRange.startLineNumber),a=Math.max(0,t.column-n.synchronizedRange.startColumn),s=r.substring(0,a),l=r.substring(a),c=i.substring(0,a),u=i.substring(a);return n.synchronizedRange.startColumn<=o&&(0===(c=c.trimStart()).length&&(u=u.trimStart()),0===(s=s.trimStart()).length&&(l=l.trimStart())),s.startsWith(c)&&(0,J.Sy)(u,l)}))}else this.filteredCompletions=[]}},{key:"fixAndGetIndexOfCurrentSelection",value:function(){var e=this;if(!this.currentlySelectedCompletionId||!this.cache.value)return 0;if(0===this.cache.value.completions.length)return 0;var t=this.filteredCompletions.findIndex((function(t){return t.semanticId===e.currentlySelectedCompletionId}));return-1===t?(this.currentlySelectedCompletionId=void 0,0):t}},{key:"currentCachedCompletion",get:function(){if(this.cache.value)return this.filteredCompletions[this.fixAndGetIndexOfCurrentSelection()]}},{key:"showNextInlineCompletion",value:function(){return ie(this,void 0,void 0,(0,s.Z)().mark((function e(){var t,n;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureUpdateWithExplicitContext();case 2:(t=this.filteredCompletions||[]).length>0?(n=(this.fixAndGetIndexOfCurrentSelection()+1)%t.length,this.currentlySelectedCompletionId=t[n].semanticId):this.currentlySelectedCompletionId=void 0,this.onDidChangeEmitter.fire();case 5:case"end":return e.stop()}}),e,this)})))}},{key:"showPreviousInlineCompletion",value:function(){return ie(this,void 0,void 0,(0,s.Z)().mark((function e(){var t,n;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureUpdateWithExplicitContext();case 2:(t=this.filteredCompletions||[]).length>0?(n=(this.fixAndGetIndexOfCurrentSelection()+t.length-1)%t.length,this.currentlySelectedCompletionId=t[n].semanticId):this.currentlySelectedCompletionId=void 0,this.onDidChangeEmitter.fire();case 5:case"end":return e.stop()}}),e,this)})))}},{key:"ensureUpdateWithExplicitContext",value:function(){var e;return ie(this,void 0,void 0,(0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.updateOperation.value){t.next=10;break}if(this.updateOperation.value.triggerKind!==m.bw.Explicit){t.next=6;break}return t.next=4,this.updateOperation.value.promise;case 4:t.next=8;break;case 6:return t.next=8,this.update(m.bw.Explicit);case 8:t.next=13;break;case 10:if((null===(e=this.cache.value)||void 0===e?void 0:e.triggerKind)===m.bw.Explicit){t.next=13;break}return t.next=13,this.update(m.bw.Explicit);case 13:case"end":return t.stop()}}),t,this)})))}},{key:"hasMultipleInlineCompletions",value:function(){var e;return ie(this,void 0,void 0,(0,s.Z)().mark((function t(){return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.ensureUpdateWithExplicitContext();case 2:return t.abrupt("return",((null===(e=this.cache.value)||void 0===e?void 0:e.completions.length)||0)>1);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"ghostText",get:function(){var e=this.currentCompletion;if(e){var t=this.editor.getPosition();if(!e.range.getEndPosition().isBefore(t)){var n=this.editor.getOptions().get(57).mode,i=P(e,this.editor.getModel(),n,t);if(i){if(i.isEmpty())return;return i}return new L(e.range.startLineNumber,e.range.startColumn,e.range.endColumn-e.range.startColumn,e.insertText.split("\n"),0)}}}},{key:"currentCompletion",get:function(){var e=this.currentCachedCompletion;if(e)return e.toLiveInlineCompletion()}},{key:"isValid",get:function(){return this.editor.getPosition().lineNumber===this.triggerPosition.lineNumber}},{key:"scheduleAutomaticUpdate",value:function(){this.updateOperation.clear(),this.updateSoon.schedule(this.debounce.get(this.editor.getModel()))}},{key:"update",value:function(e){return ie(this,void 0,void 0,(0,s.Z)().mark((function t(){var n,i,r,o,a=this;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.shouldUpdate()){t.next=2;break}return t.abrupt("return");case 2:return n=this.editor.getPosition(),i=new Date,r=(0,b.PG)((function(t){return ie(a,void 0,void 0,(0,s.Z)().mark((function r(){var o,a;return(0,s.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,ce(this.registry,n,this.editor.getModel(),{triggerKind:e,selectedSuggestionInfo:void 0},t,this.languageConfigurationService);case 3:o=r.sent,a=new Date,this.debounce.update(this.editor.getModel(),a.getTime()-i.getTime()),r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),(0,S.dL)(r.t0),r.abrupt("return");case 12:if(!t.isCancellationRequested){r.next=14;break}return r.abrupt("return");case 14:this.cache.setValue(this.editor,o,e),this.updateFilteredInlineCompletions(),this.onDidChangeEmitter.fire();case 17:case"end":return r.stop()}}),r,this,[[0,8]])})))})),o=new ae(r,e),this.updateOperation.value=o,t.next=9,r;case 9:this.updateOperation.value===o&&this.updateOperation.clear();case 10:case"end":return t.stop()}}),t,this)})))}},{key:"takeOwnership",value:function(e){this._register(e)}},{key:"commitCurrentCompletion",value:function(){if(this.ghostText){var e=this.currentCompletion;e&&this.commit(e)}}},{key:"commit",value:function(e){var t,n,i=this.cache.clearAndLeak();(e.snippetInfo?(this.editor.executeEdits("inlineSuggestion.accept",[k.h.replaceMove(e.range,"")].concat((0,_.Z)(e.additionalTextEdits))),this.editor.setPosition(e.snippetInfo.range.getStartPosition()),null===(t=X.SnippetController2.get(this.editor))||void 0===t||t.insert(e.snippetInfo.snippet)):this.editor.executeEdits("inlineSuggestion.accept",[k.h.replaceMove(e.range,e.insertText)].concat((0,_.Z)(e.additionalTextEdits))),e.command)?(n=this.commandService).executeCommand.apply(n,[e.command.id].concat((0,_.Z)(e.command.arguments||[]))).finally((function(){null===i||void 0===i||i.dispose()})).then(void 0,S.Cp):null===i||void 0===i||i.dispose();this.onDidChangeEmitter.fire()}},{key:"commands",get:function(){var e,t=new Set((null===(e=this.cache.value)||void 0===e?void 0:e.completions.map((function(e){return e.inlineCompletion.sourceInlineCompletions})))||[]);return(0,_.Z)(t).flatMap((function(e){return e.commands||[]}))}}]),n}(O),ae=function(){function e(t,n){(0,l.Z)(this,e),this.promise=t,this.triggerKind=n}return(0,c.Z)(e,[{key:"dispose",value:function(){this.promise.cancel()}}]),e}(),se=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,i,r,o){var a;(0,l.Z)(this,n),(a=t.call(this)).editor=i,a.onChange=r,a.triggerKind=o,a.isDisposing=!1;var s=i.changeDecorations((function(t){return t.deltaDecorations([],e.items.map((function(e){return{range:e.range,options:{description:"inline-completion-tracking-range"}}})))}));return a._register((0,f.OF)((function(){a.isDisposing=!0,i.removeDecorations(s)}))),a.completions=e.items.map((function(e,t){return new le(e,s[t])})),a._register(i.onDidChangeModelContent((function(){a.updateRanges()}))),a._register(e),a}return(0,c.Z)(n,[{key:"updateRanges",value:function(){if(!this.isDisposing){var e,t=!1,n=this.editor.getModel(),i=(0,y.Z)(this.completions);try{for(i.s();!(e=i.n()).done;){var r=e.value,o=n.getDecorationRange(r.decorationId);o?r.synchronizedRange.equalsRange(o)||(t=!0,r.synchronizedRange=o):(0,S.dL)(new Error("Decoration has no range"))}}catch(a){i.e(a)}finally{i.f()}t&&this.onChange()}}}]),n}(f.JT),le=function(){function e(t,n){(0,l.Z)(this,e),this.inlineCompletion=t,this.decorationId=n,this.semanticId=JSON.stringify({text:this.inlineCompletion.insertText,abbreviation:this.inlineCompletion.filterText,startLine:this.inlineCompletion.range.startLineNumber,startColumn:this.inlineCompletion.range.startColumn,command:this.inlineCompletion.command}),this.synchronizedRange=t.range}return(0,c.Z)(e,[{key:"toLiveInlineCompletion",value:function(){return{insertText:this.inlineCompletion.insertText,range:this.synchronizedRange,command:this.inlineCompletion.command,sourceProvider:this.inlineCompletion.sourceProvider,sourceInlineCompletions:this.inlineCompletion.sourceInlineCompletions,sourceInlineCompletion:this.inlineCompletion.sourceInlineCompletion,snippetInfo:this.inlineCompletion.snippetInfo,filterText:this.inlineCompletion.filterText,additionalTextEdits:this.inlineCompletion.additionalTextEdits}}}]),e}();function ce(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:C.T.None,o=arguments.length>5?arguments[5]:void 0;return ie(this,void 0,void 0,(0,s.Z)().mark((function a(){var l,c,u,d,h,f,p,g,v,m,b,C,w,k,E,T,I,D=this;return(0,s.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return l=ue(t,n),c=e.all(n),a.next=4,Promise.all(c.map((function(e){return ie(D,void 0,void 0,(0,s.Z)().mark((function o(){var a;return(0,s.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Promise.resolve(e.provideInlineCompletions(n,t,i,r)).catch(S.Cp);case 2:return a=o.sent,o.abrupt("return",{completions:a,provider:e,dispose:function(){a&&e.freeInlineCompletions(a)}});case 4:case"end":return o.stop()}}),o)})))})));case 4:u=a.sent,d=new Map,h=(0,y.Z)(u),a.prev=7,h.s();case 9:if((f=h.n()).done){a.next=39;break}if(p=f.value,g=p.completions){a.next=14;break}return a.abrupt("continue",37);case 14:v=(0,y.Z)(g.items),a.prev=15,v.s();case 17:if((m=v.n()).done){a.next=29;break}if(b=m.value,(C=b.range?x.e.lift(b.range):l).startLineNumber===C.endLineNumber){a.next=22;break}return a.abrupt("continue",27);case 22:w=void 0,k=void 0,"string"===typeof b.insertText?(w=b.insertText,o&&b.completeBracketPairs&&(w=de(w,C.getStartPosition(),n,o),0!==(E=w.length-b.insertText.length)&&(C=new x.e(C.startLineNumber,C.startColumn,C.endLineNumber,C.endColumn+E))),k=void 0):"snippet"in b.insertText?(T=(new $.Yj).parse(b.insertText.snippet),w=T.toString(),k={snippet:b.insertText.snippet,range:C}):(0,Q.vE)(b.insertText),I={insertText:w,snippetInfo:k,range:C,command:b.command,sourceProvider:p.provider,sourceInlineCompletions:g,sourceInlineCompletion:b,filterText:b.filterText||w,additionalTextEdits:b.additionalTextEdits||N()},d.set(JSON.stringify({insertText:w,range:b.range}),I);case 27:a.next=17;break;case 29:a.next=34;break;case 31:a.prev=31,a.t0=a.catch(15),v.e(a.t0);case 34:return a.prev=34,v.f(),a.finish(34);case 37:a.next=9;break;case 39:a.next=44;break;case 41:a.prev=41,a.t1=a.catch(7),h.e(a.t1);case 44:return a.prev=44,h.f(),a.finish(44);case 47:return a.abrupt("return",{items:(0,_.Z)(d.values()),dispose:function(){var e,t=(0,y.Z)(u);try{for(t.s();!(e=t.n()).done;){e.value.dispose()}}catch(n){t.e(n)}finally{t.f()}}});case 48:case"end":return a.stop()}}),a,null,[[7,41,44,47],[15,31,34,37]])})))}function ue(e,t){var n=t.getWordAtPosition(e),i=t.getLineMaxColumn(e.lineNumber);return n?new x.e(e.lineNumber,n.startColumn,e.lineNumber,i):x.e.fromPositions(e,e.with(void 0,i))}function de(e,t,n,i){var r=n.getLineContent(t.lineNumber).substring(0,t.column-1)+e,o=n.tokenization.tokenizeLineWithEdit(t,r.length-(t.column-1),e),a=null===o||void 0===o?void 0:o.sliceAndInflate(t.column-1,r.length,0);if(!a)return e;var s=function(e,t){var n=new U.FE,i=new j.Z(n,(function(e){return t.getLanguageConfiguration(e)})),r=new G.xH(new K([e]),i),o=(0,W.w)(r,[],void 0,!0),a="",s=e.getLineContent();return function e(t,n){if(2===t.kind)if(e(t.openingBracket,n),n=(0,V.Ii)(n,t.openingBracket.length),t.child&&(e(t.child,n),n=(0,V.Ii)(n,t.child.length)),t.closingBracket)e(t.closingBracket,n),n=(0,V.Ii)(n,t.closingBracket.length);else{var r=i.getSingleLanguageBracketTokens(t.openingBracket.languageId).findClosingTokenText(t.openingBracket.bracketIds);a+=r}else if(3===t.kind);else if(0===t.kind||1===t.kind)a+=s.substring((0,V.F_)(n),(0,V.F_)((0,V.Ii)(n,t.length)));else if(4===t.kind){var o,l=(0,y.Z)(t.children);try{for(l.s();!(o=l.n()).done;){var c=o.value;e(c,n),n=(0,V.Ii)(n,c.length)}}catch(u){l.e(u)}finally{l.f()}}}(o,V.xl),a}(a,i);return s}var he=n(29671),fe=n(92694),pe=n(99249),ge=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,i){var r;(0,l.Z)(this,n),(r=t.call(this)).editor=e,r.suggestControllerPreselector=i,r.isSuggestWidgetVisible=!1,r.isShiftKeyPressed=!1,r._isActive=!1,r._currentSuggestItemInfo=void 0,r.onDidChangeEmitter=new h.Q5,r.onDidChange=r.onDidChangeEmitter.event,r.setInactiveDelayed=r._register(new b.pY((function(){r.isSuggestWidgetVisible||r._isActive&&(r._isActive=!1,r.onDidChangeEmitter.fire())}),100)),r._register(e.onKeyDown((function(e){e.shiftKey&&!r.isShiftKeyPressed&&(r.isShiftKeyPressed=!0,r.update(r._isActive))}))),r._register(e.onKeyUp((function(e){e.shiftKey&&r.isShiftKeyPressed&&(r.isShiftKeyPressed=!1,r.update(r._isActive))})));var o=pe.SuggestController.get(r.editor);if(o){r._register(o.registerSelector({priority:100,select:function(e,t,n){var i=r.editor.getModel(),a=M(i,r.suggestControllerPreselector());if(!a)return-1;var s=v.L.lift(t),l=n.map((function(e,t){var n,l,c=ve(o,s,e,r.isShiftKeyPressed),u=M(i,null===c||void 0===c?void 0:c.normalizedInlineCompletion);if(u)return{index:t,valid:(n=a.range,(l=u.range).startLineNumber===n.startLineNumber&&l.startColumn===n.startColumn&&(l.endLineNumber<n.endLineNumber||l.endLineNumber===n.endLineNumber&&l.endColumn<=n.endColumn)&&a.insertText.startsWith(u.insertText)),prefixLength:u.insertText.length,suggestItem:e}})).filter((function(e){return e&&e.valid})),c=(0,he.Dc)(l,(0,he.tT)((function(e){return e.prefixLength}),he.fv));return c?c.index:-1}}));var a=!1;r._register(h.ju.once(o.model.onDidTrigger)((function(e){a||(a=!0,r._register(o.widget.value.onDidShow((function(){r.isSuggestWidgetVisible=!0,r.update(!0)}))),r._register(o.widget.value.onDidHide((function(){r.isSuggestWidgetVisible=!1,r.setInactiveDelayed.schedule(),r.update(r._isActive)}))),r._register(o.widget.value.onDidFocus((function(){r.isSuggestWidgetVisible=!0,r.update(!0)}))))})))}return r.update(r._isActive),r}return(0,c.Z)(n,[{key:"state",get:function(){if(this._isActive)return{selectedItem:this._currentSuggestItemInfo}}},{key:"update",value:function(e){var t=this.getSuggestItemInfo(),n=!1;(function(e,t){if(e===t)return!0;if(!e||!t)return!1;return e.completionItemKind===t.completionItemKind&&e.isSnippetText===t.isSnippetText&&function(e,t){return e===t||!(!e||!t)&&e.range.equalsRange(t.range)&&e.insertText===t.insertText&&e.command===t.command}(e.normalizedInlineCompletion,t.normalizedInlineCompletion)})(this._currentSuggestItemInfo,t)||(this._currentSuggestItemInfo=t,n=!0),this._isActive!==e&&(this._isActive=e,n=!0),n&&this.onDidChangeEmitter.fire()}},{key:"getSuggestItemInfo",value:function(){var e=pe.SuggestController.get(this.editor);if(e&&this.isSuggestWidgetVisible){var t=e.widget.value.getFocusedItem();if(t)return ve(e,this.editor.getPosition(),t.item,this.isShiftKeyPressed)}}},{key:"stopForceRenderingAbove",value:function(){var e=pe.SuggestController.get(this.editor);e&&e.stopForceRenderingAbove()}},{key:"forceRenderingAbove",value:function(){var e=pe.SuggestController.get(this.editor);e&&e.forceRenderingAbove()}}]),n}(f.JT);function ve(e,t,n,i){if(Array.isArray(n.completion.additionalTextEdits)&&n.completion.additionalTextEdits.length>0)return{completionItemKind:n.completion.kind,isSnippetText:!1,normalizedInlineCompletion:{range:x.e.fromPositions(t,t),insertText:"",filterText:"",snippetInfo:void 0,additionalTextEdits:[]}};var r=n.completion.insertText,o=!1;if(4&n.completion.insertTextRules){var a=(new $.Yj).parse(r),s=e.editor.getModel();if(a.children.length>100)return;fe.l.adjustWhitespace(s,t,a,!0,!0),r=a.toString(),o=!0}var l=e.getOverwriteInfo(n,i);return{isSnippetText:o,completionItemKind:n.completion.kind,normalizedInlineCompletion:{insertText:r,filterText:r,range:x.e.fromPositions(t.delta(0,-l.overwriteBefore),t.delta(0,Math.max(l.overwriteAfter,0))),snippetInfo:void 0,additionalTextEdits:[]}}}var me=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ye=function(e,t){return function(n,i){t(n,i,e)}},_e=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},be=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this,e)).cache=i,o.languageFeaturesService=r,o.suggestionInlineCompletionSource=o._register(new ge(o.editor,(function(){var e,t;return null===(t=null===(e=o.cache.value)||void 0===e?void 0:e.completions[0])||void 0===t?void 0:t.toLiveInlineCompletion()}))),o.updateOperation=o._register(new f.XK),o.updateCacheSoon=o._register(new b.pY((function(){return o.updateCache()}),50)),o.minReservedLineCount=0,o._register(o.suggestionInlineCompletionSource.onDidChange((function(){if(o.editor.hasModel()){o.updateCacheSoon.schedule(),o.suggestionInlineCompletionSource.state||(o.minReservedLineCount=0);var e=o.ghostText;e&&(o.minReservedLineCount=Math.max(o.minReservedLineCount,e.parts.map((function(e){return e.lines.length-1})).reduce((function(e,t){return e+t}),0))),o.minReservedLineCount>=1?o.suggestionInlineCompletionSource.forceRenderingAbove():o.suggestionInlineCompletionSource.stopForceRenderingAbove(),o.onDidChangeEmitter.fire()}}))),o._register(o.cache.onDidChange((function(){o.onDidChangeEmitter.fire()}))),o._register(o.editor.onDidChangeCursorPosition((function(e){o.minReservedLineCount=0,o.updateCacheSoon.schedule(),o.onDidChangeEmitter.fire()}))),o._register((0,f.OF)((function(){return o.suggestionInlineCompletionSource.stopForceRenderingAbove()}))),o}return(0,c.Z)(n,[{key:"isActive",get:function(){return void 0!==this.suggestionInlineCompletionSource.state}},{key:"isSuggestionPreviewEnabled",value:function(){return this.editor.getOption(108).preview}},{key:"updateCache",value:function(){return _e(this,void 0,void 0,(0,s.Z)().mark((function e(){var t,n,i,r,o,a=this;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=this.suggestionInlineCompletionSource.state)&&t.selectedItem){e.next=3;break}return e.abrupt("return");case 3:if(n={text:t.selectedItem.normalizedInlineCompletion.insertText,range:t.selectedItem.normalizedInlineCompletion.range,isSnippetText:t.selectedItem.isSnippetText,completionKind:t.selectedItem.completionItemKind},i=this.editor.getPosition(),!t.selectedItem.isSnippetText&&27!==t.selectedItem.completionItemKind&&20!==t.selectedItem.completionItemKind&&23!==t.selectedItem.completionItemKind){e.next=8;break}return this.cache.clear(),e.abrupt("return");case 8:return r=(0,b.PG)((function(e){return _e(a,void 0,void 0,(0,s.Z)().mark((function t(){var r;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ce(this.languageFeaturesService.inlineCompletionsProvider,i,this.editor.getModel(),{triggerKind:m.bw.Automatic,selectedSuggestionInfo:n},e);case 3:r=t.sent,t.next=10;break;case 6:return t.prev=6,t.t0=t.catch(0),(0,S.dL)(t.t0),t.abrupt("return");case 10:if(!e.isCancellationRequested){t.next=13;break}return r.dispose(),t.abrupt("return");case 13:this.cache.setValue(this.editor,r,m.bw.Automatic),this.onDidChangeEmitter.fire();case 15:case"end":return t.stop()}}),t,this,[[0,6]])})))})),o=new ae(r,m.bw.Automatic),this.updateOperation.value=o,e.next=13,r;case 13:this.updateOperation.value===o&&this.updateOperation.clear();case 14:case"end":return e.stop()}}),e,this)})))}},{key:"ghostText",get:function(){var e,t,n,i=this.isSuggestionPreviewEnabled(),r=this.editor.getModel(),o=M(r,null===(t=null===(e=this.cache.value)||void 0===e?void 0:e.completions[0])||void 0===t?void 0:t.toLiveInlineCompletion()),a=this.suggestionInlineCompletionSource.state,s=M(r,null===(n=null===a||void 0===a?void 0:a.selectedItem)||void 0===n?void 0:n.normalizedInlineCompletion),l=o&&s&&o.insertText.startsWith(s.insertText)&&o.range.equalsRange(s.range);if(i||l){var c=l?o:s||o,u=l?c.insertText.length-s.insertText.length:0;return this.toGhostText(c,u)}}},{key:"toGhostText",value:function(e,t){var n=this.editor.getOptions().get(108).previewMode;return e?P(e,this.editor.getModel(),n,this.editor.getPosition(),t)||new I(e.range.endLineNumber,[],this.minReservedLineCount):void 0}}]),n}(O);be=me([ye(2,Y.p)],be);var Ce=n(36888),Se=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},we=function(e,t){return function(n,i){t(n,i,e)}},ke=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},xe=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(){var e;return(0,l.Z)(this,n),(e=t.apply(this,arguments)).onDidChangeEmitter=new h.Q5,e.onDidChange=e.onDidChangeEmitter.event,e.hasCachedGhostText=!1,e.currentModelRef=e._register(new f.XK),e}return(0,c.Z)(n,[{key:"targetModel",get:function(){var e;return null===(e=this.currentModelRef.value)||void 0===e?void 0:e.object}},{key:"setTargetModel",value:function(e){var t,n,i,r=this;(null===(t=this.currentModelRef.value)||void 0===t?void 0:t.object)!==e&&(this.currentModelRef.clear(),this.currentModelRef.value=e?(n=e,i=e.onDidChange((function(){r.hasCachedGhostText=!1,r.onDidChangeEmitter.fire()})),{object:n,dispose:function(){return null===i||void 0===i?void 0:i.dispose()}}):void 0,this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire())}},{key:"ghostText",get:function(){var e,t;return this.hasCachedGhostText||(this.cachedGhostText=null===(t=null===(e=this.currentModelRef.value)||void 0===e?void 0:e.object)||void 0===t?void 0:t.ghostText,this.hasCachedGhostText=!0),this.cachedGhostText}},{key:"setExpanded",value:function(e){var t;null===(t=this.targetModel)||void 0===t||t.setExpanded(e)}},{key:"minReservedLineCount",get:function(){return this.targetModel?this.targetModel.minReservedLineCount:0}}]),n}(f.JT),Ee=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this)).editor=e,r.instantiationService=i,r.sharedCache=r._register(new Ne),r.suggestWidgetAdapterModel=r._register(r.instantiationService.createInstance(be,r.editor,r.sharedCache)),r.inlineCompletionsModel=r._register(r.instantiationService.createInstance(re,r.editor,r.sharedCache)),r._register(r.suggestWidgetAdapterModel.onDidChange((function(){r.updateModel()}))),r.updateModel(),r}return(0,c.Z)(n,[{key:"activeInlineCompletionsModel",get:function(){if(this.targetModel===this.inlineCompletionsModel)return this.inlineCompletionsModel}},{key:"updateModel",value:function(){this.setTargetModel(this.suggestWidgetAdapterModel.isActive?this.suggestWidgetAdapterModel:this.inlineCompletionsModel),this.inlineCompletionsModel.setActive(this.targetModel===this.inlineCompletionsModel)}},{key:"shouldShowHoverAt",value:function(e){var t,n=null===(t=this.activeInlineCompletionsModel)||void 0===t?void 0:t.ghostText;return!!n&&n.parts.some((function(t){return e.containsPosition(new v.L(n.lineNumber,t.column))}))}},{key:"triggerInlineCompletion",value:function(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.trigger(m.bw.Explicit)}},{key:"commitInlineCompletion",value:function(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.commitCurrentSuggestion()}},{key:"hideInlineCompletion",value:function(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.hide()}},{key:"showNextInlineCompletion",value:function(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.showNext()}},{key:"showPreviousInlineCompletion",value:function(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.showPrevious()}},{key:"hasMultipleInlineCompletions",value:function(){var e;return ke(this,void 0,void 0,(0,s.Z)().mark((function t(){var n;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===(e=this.activeInlineCompletionsModel)||void 0===e?void 0:e.hasMultipleInlineCompletions();case 2:return n=t.sent,t.abrupt("return",void 0!==n&&n);case 4:case"end":return t.stop()}}),t,this)})))}}]),n}(xe);Ee=Se([we(1,Ce.TG)],Ee);var Te,Ne=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(){var e;return(0,l.Z)(this,n),(e=t.apply(this,arguments)).onDidChangeEmitter=new h.Q5,e.onDidChange=e.onDidChangeEmitter.event,e.cache=e._register(new f.XK),e}return(0,c.Z)(n,[{key:"value",get:function(){return this.cache.value}},{key:"setValue",value:function(e,t,n){var i=this;this.cache.value=new se(t,e,(function(){return i.onDidChangeEmitter.fire()}),n)}},{key:"clearAndLeak",value:function(){return this.cache.clearAndLeak()}},{key:"clear",value:function(){this.cache.clear()}}]),n}(f.JT),Ie=n(97326),De=n(81531),Le=n(34070),Oe=n(64472),Re=n(90532),Ae=n(1293),Me=n(36550),Pe=n(72762),Ze=n(29700),Fe=n(2029),Be=n(15475),He=n(64014),ze=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},je=function(e,t){return function(n,i){t(n,i,e)}},Ve=null===(Te=window.trustedTypes)||void 0===Te?void 0:Te.createPolicy("editorGhostText",{createHTML:function(e){return e}}),We=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,i,r,o){var a;return(0,l.Z)(this,n),(a=t.call(this)).editor=e,a.model=i,a.instantiationService=r,a.languageService=o,a.disposed=!1,a.partsWidget=a._register(a.instantiationService.createInstance(Ge,a.editor)),a.additionalLinesWidget=a._register(new Ke(a.editor,a.languageService.languageIdCodec)),a.viewMoreContentWidget=void 0,a.replacementDecoration=a._register(new Ue(a.editor)),a._register(a.editor.onDidChangeConfiguration((function(e){(e.hasChanged(29)||e.hasChanged(107)||e.hasChanged(90)||e.hasChanged(85)||e.hasChanged(47)||e.hasChanged(46)||e.hasChanged(61))&&a.update()}))),a._register((0,f.OF)((function(){var e;a.disposed=!0,a.update(),null===(e=a.viewMoreContentWidget)||void 0===e||e.dispose(),a.viewMoreContentWidget=void 0}))),a._register(i.onDidChange((function(){a.update()}))),a.update(),a}return(0,c.Z)(n,[{key:"shouldShowHoverAtViewZone",value:function(e){return this.additionalLinesWidget.viewZoneId===e}},{key:"update",value:function(){var e,t=this.model.ghostText;if(!this.editor.hasModel()||!t||this.disposed)return this.partsWidget.clear(),this.additionalLinesWidget.clear(),void this.replacementDecoration.clear();var n=new Array,i=new Array;function r(e,t){if(i.length>0){var n=i[i.length-1];t&&n.decorations.push(new Fe.Kp(n.content.length+1,n.content.length+1+e[0].length,t,0)),n.content+=e[0],e=e.slice(1)}var r,o=(0,y.Z)(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;i.push({content:a,decorations:t?[new Fe.Kp(1,a.length+1,t,0)]:[]})}}catch(s){o.e(s)}finally{o.f()}}t instanceof L?this.replacementDecoration.setDecorations([{range:new x.e(t.lineNumber,t.columnStart,t.lineNumber,t.columnStart+t.length),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}]):this.replacementDecoration.setDecorations([]);var o,a=this.editor.getModel().getLineContent(t.lineNumber),s=void 0,l=0,c=(0,y.Z)(t.parts);try{for(c.s();!(o=c.n()).done;){var u=o.value,d=u.lines;void 0===s?(n.push({column:u.column,text:d[0],preview:u.preview}),d=d.slice(1)):r([a.substring(l,u.column-1)],void 0),d.length>0&&(r(d,"ghost-text"),void 0===s&&u.column<=a.length&&(s=u.column)),l=u.column-1}}catch(h){c.e(h)}finally{c.f()}void 0!==s&&r([a.substring(l)],void 0),this.partsWidget.setParts(t.lineNumber,n,void 0!==s?{column:s,length:a.length+1-s}:void 0),this.additionalLinesWidget.updateLines(t.lineNumber,i,t.additionalReservedLineCount),null===(e=this.viewMoreContentWidget)||void 0===e||e.dispose(),this.viewMoreContentWidget=void 0}},{key:"renderViewMoreLines",value:function(e,t,n){var i=this,r=this.editor.getOption(46),o=document.createElement("div");o.className="suggest-preview-additional-widget",(0,Le.N)(o,r);var a=document.createElement("span");a.className="content-spacer",a.append(t),o.append(a);var s=document.createElement("span");s.className="content-newline suggest-preview-text",s.append("\u23ce "),o.append(s);var l=new f.SL,c=document.createElement("div");return c.className="button suggest-preview-text",c.append("+".concat(n," lines\u2026")),l.add(De.addStandardDisposableListener(c,"mousedown",(function(e){var t;null===(t=i.model)||void 0===t||t.setExpanded(!0),e.preventDefault(),i.editor.focus()}))),o.append(c),new Ye(this.editor,e,o,l)}}]),n}(f.JT);We=ze([je(2,Ce.TG),je(3,Pe.O)],We);var Ue=function(){function e(t){(0,l.Z)(this,e),this.editor=t,this.decorationIds=[]}return(0,c.Z)(e,[{key:"setDecorations",value:function(e){var t=this;this.editor.changeDecorations((function(n){t.decorationIds=n.deltaDecorations(t.decorationIds,e)}))}},{key:"clear",value:function(){this.setDecorations([])}},{key:"dispose",value:function(){this.clear()}}]),e}(),Ge=function(){function e(t){(0,l.Z)(this,e),this.editor=t,this.decorationIds=[]}return(0,c.Z)(e,[{key:"dispose",value:function(){this.clear()}},{key:"clear",value:function(){var e=this;this.editor.changeDecorations((function(t){e.decorationIds=t.deltaDecorations(e.decorationIds,[])}))}},{key:"setParts",value:function(e,t,n){var i=this;if(this.editor.getModel()){var r=new Array;n&&r.push({range:x.e.fromPositions(new v.L(e,n.column),new v.L(e,n.column+n.length)),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}}),this.editor.changeDecorations((function(n){i.decorationIds=n.deltaDecorations(i.decorationIds,t.map((function(t){return{range:x.e.fromPositions(new v.L(e,t.column)),options:{description:"ghost-text",after:{content:t.text,inlineClassName:t.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:Me.RM.Left},showIfCollapsed:!0}}})).concat(r))}))}}}]),e}(),Ke=function(){function e(t,n){(0,l.Z)(this,e),this.editor=t,this.languageIdCodec=n,this._viewZoneId=void 0}return(0,c.Z)(e,[{key:"viewZoneId",get:function(){return this._viewZoneId}},{key:"dispose",value:function(){this.clear()}},{key:"clear",value:function(){var e=this;this.editor.changeViewZones((function(t){e._viewZoneId&&(t.removeZone(e._viewZoneId),e._viewZoneId=void 0)}))}},{key:"updateLines",value:function(e,t,n){var i=this,r=this.editor.getModel();if(r){var o=r.getOptions().tabSize;this.editor.changeViewZones((function(r){i._viewZoneId&&(r.removeZone(i._viewZoneId),i._viewZoneId=void 0);var a=Math.max(t.length,n);if(a>0){var s=document.createElement("div");!function(e,t,n,i,r){var o=i.get(29),a=i.get(107),s="none",l=i.get(85),c=i.get(47),u=i.get(46),d=i.get(61),h=(0,Ae.l$)(1e4);h.appendASCIIString('<div class="suggest-preview-text">');for(var f=0,g=n.length;f<g;f++){var v=n[f],m=v.content;h.appendASCIIString('<div class="view-line'),h.appendASCIIString('" style="top:'),h.appendASCIIString(String(f*d)),h.appendASCIIString('px;width:1000000px;">');var y=p.$i(m),_=p.Ut(m),b=Re.A.createEmpty(m,r);(0,Be.d1)(new Be.IJ(u.isMonospace&&!o,u.canUseHalfwidthRightwardsArrow,m,!1,y,_,0,b,v.decorations,t,0,u.spaceWidth,u.middotWidth,u.wsmiddotWidth,a,s,l,c!==Oe.n0.OFF,null),h),h.appendASCIIString("</div>")}h.appendASCIIString("</div>"),(0,Le.N)(e,u);var C=h.build(),S=Ve?Ve.createHTML(C):C;e.innerHTML=S}(s,o,t,i.editor.getOptions(),i.languageIdCodec),i._viewZoneId=r.addZone({afterLineNumber:e,heightInLines:a,domNode:s,afterColumnAffinity:1})}}))}}}]),e}();var Ye=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,i,r,o){var a;return(0,l.Z)(this,n),(a=t.call(this)).editor=e,a.position=i,a.domNode=r,a.allowEditorOverflow=!1,a.suppressMouseDown=!1,a._register(o),a._register((0,f.OF)((function(){a.editor.removeContentWidget((0,Ie.Z)(a))}))),a.editor.addContentWidget((0,Ie.Z)(a)),a}return(0,c.Z)(n,[{key:"getId",value:function(){return"editor.widget.viewMoreLinesWidget"}},{key:"getDomNode",value:function(){return this.domNode}},{key:"getPosition",value:function(){return{position:this.position,preference:[0]}}}]),n}(f.JT);(0,He.Ic)((function(e,t){var n=e.getColor(Ze.N5);n&&(t.addRule(".monaco-editor .ghost-text-decoration { color: ".concat(n.toString()," !important; }")),t.addRule(".monaco-editor .ghost-text-decoration-preview { color: ".concat(n.toString()," !important; }")),t.addRule(".monaco-editor .suggest-preview-text .ghost-text { color: ".concat(n.toString()," !important; }")));var i=e.getColor(Ze.IO);i&&(t.addRule(".monaco-editor .ghost-text-decoration { background-color: ".concat(i.toString(),"; }")),t.addRule(".monaco-editor .ghost-text-decoration-preview { background-color: ".concat(i.toString(),"; }")),t.addRule(".monaco-editor .suggest-preview-text .ghost-text { background-color: ".concat(i.toString(),"; }")));var r=e.getColor(Ze.x3);r&&(t.addRule(".monaco-editor .suggest-preview-text .ghost-text { border: 1px solid ".concat(r,"; }")),t.addRule(".monaco-editor .ghost-text-decoration { border: 1px solid ".concat(r,"; }")),t.addRule(".monaco-editor .ghost-text-decoration-preview { border: 1px solid ".concat(r,"; }")))}));var qe=n(27722),$e=n(34509),Xe=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Qe=function(e,t){return function(n,i){t(n,i,e)}},Je=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},et=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this)).editor=e,r.instantiationService=i,r.triggeredExplicitly=!1,r.activeController=r._register(new f.XK),r.activeModelDidChangeEmitter=r._register(new h.Q5),r._register(r.editor.onDidChangeModel((function(){r.updateModelController()}))),r._register(r.editor.onDidChangeConfiguration((function(e){e.hasChanged(108)&&r.updateModelController(),e.hasChanged(57)&&r.updateModelController()}))),r.updateModelController(),r}return(0,c.Z)(n,[{key:"activeModel",get:function(){var e;return null===(e=this.activeController.value)||void 0===e?void 0:e.model}},{key:"updateModelController",value:function(){var e=this.editor.getOption(108),t=this.editor.getOption(57);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(e.preview||t.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(nt,this.editor):void 0,this.activeModelDidChangeEmitter.fire()}},{key:"shouldShowHoverAt",value:function(e){var t;return(null===(t=this.activeModel)||void 0===t?void 0:t.shouldShowHoverAt(e))||!1}},{key:"shouldShowHoverAtViewZone",value:function(e){var t,n;return(null===(n=null===(t=this.activeController.value)||void 0===t?void 0:t.widget)||void 0===n?void 0:n.shouldShowHoverAtViewZone(e))||!1}},{key:"trigger",value:function(){var e;this.triggeredExplicitly=!0,this.activeController.value||this.updateModelController(),null===(e=this.activeModel)||void 0===e||e.triggerInlineCompletion()}},{key:"commit",value:function(){var e;null===(e=this.activeModel)||void 0===e||e.commitInlineCompletion()}},{key:"hide",value:function(){var e;null===(e=this.activeModel)||void 0===e||e.hideInlineCompletion()}},{key:"showNextInlineCompletion",value:function(){var e;null===(e=this.activeModel)||void 0===e||e.showNextInlineCompletion()}},{key:"showPreviousInlineCompletion",value:function(){var e;null===(e=this.activeModel)||void 0===e||e.showPreviousInlineCompletion()}},{key:"hasMultipleInlineCompletions",value:function(){var e;return Je(this,void 0,void 0,(0,s.Z)().mark((function t(){var n;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===(e=this.activeModel)||void 0===e?void 0:e.hasMultipleInlineCompletions();case 2:return n=t.sent,t.abrupt("return",void 0!==n&&n);case 4:case"end":return t.stop()}}),t,this)})))}}],[{key:"get",value:function(e){return e.getContribution(n.ID)}}]),n}(f.JT);et.inlineSuggestionVisible=new $e.uy("inlineSuggestionVisible",!1,qe.NC("inlineSuggestionVisible","Whether an inline suggestion is visible")),et.inlineSuggestionHasIndentation=new $e.uy("inlineSuggestionHasIndentation",!1,qe.NC("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),et.inlineSuggestionHasIndentationLessThanTabSize=new $e.uy("inlineSuggestionHasIndentationLessThanTabSize",!0,qe.NC("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab")),et.ID="editor.contrib.ghostTextController",et=Xe([Qe(1,Ce.TG)],et);var tt=(0,c.Z)((function e(t){(0,l.Z)(this,e),this.contextKeyService=t,this.inlineCompletionVisible=et.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=et.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=et.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService)})),nt=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this)).editor=e,o.instantiationService=i,o.contextKeyService=r,o.contextKeys=new tt(o.contextKeyService),o.model=o._register(o.instantiationService.createInstance(Ee,o.editor)),o.widget=o._register(o.instantiationService.createInstance(We,o.editor,o.model)),o._register((0,f.OF)((function(){o.contextKeys.inlineCompletionVisible.set(!1),o.contextKeys.inlineCompletionSuggestsIndentation.set(!1),o.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(!0)}))),o._register(o.model.onDidChange((function(){o.updateContextKeys()}))),o.updateContextKeys(),o}return(0,c.Z)(n,[{key:"updateContextKeys",value:function(){var e;this.contextKeys.inlineCompletionVisible.set(void 0!==(null===(e=this.model.activeInlineCompletionsModel)||void 0===e?void 0:e.ghostText));var t=!1,n=!0,i=this.model.inlineCompletionsModel.ghostText;if(this.model.activeInlineCompletionsModel&&i&&i.parts.length>0){var r=i.parts[0],o=r.column,a=r.lines[0];if(o<=this.editor.getModel().getLineIndentColumn(i.lineNumber)){var s=(0,p.LC)(a);-1===s&&(s=a.length-1),t=s>0;var l=this.editor.getModel().getOptions().tabSize;n=g.i.visibleColumnFromColumn(a,s+1,l)<l}}this.contextKeys.inlineCompletionSuggestsIndentation.set(t),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(n)}}]),n}(f.JT);nt=Xe([Qe(1,Ce.TG),Qe(2,$e.i6)],nt);var it=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{id:n.ID,label:qe.NC("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:$e.Ao.and(r.u.writable,et.inlineSuggestionVisible),kbOpts:{weight:100,primary:601}})}return(0,c.Z)(n,[{key:"run",value:function(e,t){return Je(this,void 0,void 0,(0,s.Z)().mark((function e(){var n;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=et.get(t))&&(n.showNextInlineCompletion(),t.focus());case 2:case"end":return e.stop()}}),e)})))}}]),n}(i.R6);it.ID="editor.action.inlineSuggest.showNext";var rt=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{id:n.ID,label:qe.NC("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:$e.Ao.and(r.u.writable,et.inlineSuggestionVisible),kbOpts:{weight:100,primary:599}})}return(0,c.Z)(n,[{key:"run",value:function(e,t){return Je(this,void 0,void 0,(0,s.Z)().mark((function e(){var n;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=et.get(t))&&(n.showPreviousInlineCompletion(),t.focus());case 2:case"end":return e.stop()}}),e)})))}}]),n}(i.R6);rt.ID="editor.action.inlineSuggest.showPrevious";var ot=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{id:"editor.action.inlineSuggest.trigger",label:qe.NC("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:r.u.writable})}return(0,c.Z)(n,[{key:"run",value:function(e,t){return Je(this,void 0,void 0,(0,s.Z)().mark((function e(){var n;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=et.get(t))&&n.trigger();case 2:case"end":return e.stop()}}),e)})))}}]),n}(i.R6),at=n(29439),st=n(61066),lt=n(21919),ct=n(41330),ut=n(48996),dt=n(83078),ht=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ft=function(e,t){return function(n,i){t(n,i,e)}},pt=function(){function e(t,n,i){(0,l.Z)(this,e),this.owner=t,this.range=n,this.controller=i}return(0,c.Z)(e,[{key:"isValidForHoverAnchor",value:function(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},{key:"hasMultipleSuggestions",value:function(){return this.controller.hasMultipleInlineCompletions()}},{key:"commands",get:function(){var e,t,n;return(null===(n=null===(t=null===(e=this.controller.activeModel)||void 0===e?void 0:e.activeInlineCompletionsModel)||void 0===t?void 0:t.completionSession.value)||void 0===n?void 0:n.commands)||[]}}]),e}(),gt=function(){function e(t,n,i,r,o,a,s){(0,l.Z)(this,e),this._editor=t,this._commandService=n,this._menuService=i,this._contextKeyService=r,this._languageService=o,this._openerService=a,this.accessibilityService=s,this.hoverOrdinal=3}return(0,c.Z)(e,[{key:"suggestHoverAnchor",value:function(e){var t=et.get(this._editor);if(!t)return null;var n=e.target;if(8===n.type){var i=n.detail;if(t.shouldShowHoverAtViewZone(i.viewZoneId))return new o.YM(1e3,this,x.e.fromPositions(i.positionBefore||i.position,i.positionBefore||i.position))}if(7===n.type&&t.shouldShowHoverAt(n.range))return new o.YM(1e3,this,n.range);if(6===n.type&&(n.detail.mightBeForeignElement&&t.shouldShowHoverAt(n.range)))return new o.YM(1e3,this,n.range);return null}},{key:"computeSync",value:function(e,t){var n=et.get(this._editor);return n&&n.shouldShowHoverAt(e.range)?[new pt(this,e.range,n)]:[]}},{key:"renderHoverParts",value:function(e,t){var n=this,i=new f.SL,r=t[0];this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(e,r,i);var o=i.add(this._menuService.createMenu(ut.eH.InlineCompletionsActions,this._contextKeyService)),s=e.statusBar.addAction({label:qe.NC("showNextInlineSuggestion","Next"),commandId:it.ID,run:function(){return n._commandService.executeCommand(it.ID)}}),l=e.statusBar.addAction({label:qe.NC("showPreviousInlineSuggestion","Previous"),commandId:rt.ID,run:function(){return n._commandService.executeCommand(rt.ID)}});e.statusBar.addAction({label:qe.NC("acceptInlineSuggestion","Accept"),commandId:a,run:function(){return n._commandService.executeCommand(a)}});for(var c=[s,l],u=0,d=c;u<d.length;u++){d[u].setEnabled(!1)}r.hasMultipleSuggestions().then((function(e){var t,n=(0,y.Z)(c);try{for(n.s();!(t=n.n()).done;){t.value.setEnabled(e)}}catch(i){n.e(i)}finally{n.f()}}));var h,p=(0,y.Z)(r.commands);try{var g=function(){var t=h.value;e.statusBar.addAction({label:t.title,commandId:t.id,run:function(){var e;return(e=n._commandService).executeCommand.apply(e,[t.id].concat((0,_.Z)(t.arguments||[])))}})};for(p.s();!(h=p.n()).done;)g()}catch(x){p.e(x)}finally{p.f()}var v,m=(0,y.Z)(o.getActions());try{for(m.s();!(v=m.n()).done;){var b,C=(0,at.Z)(v.value,2),S=(C[0],C[1]),w=(0,y.Z)(S);try{var k=function(){var t=b.value;t instanceof ut.U8&&e.statusBar.addAction({label:t.label,commandId:t.item.id,run:function(){return n._commandService.executeCommand(t.item.id)}})};for(w.s();!(b=w.n()).done;)k()}catch(x){w.e(x)}finally{w.f()}}}catch(x){m.e(x)}finally{m.f()}return i}},{key:"renderScreenReaderText",value:function(e,t,n){var i,r,o=De.$,a=o("div.hover-row.markdown-hover"),s=De.append(a,o("div.hover-contents")),l=n.add(new lt.$({editor:this._editor},this._languageService,this._openerService)),c=null===(r=null===(i=t.controller.activeModel)||void 0===i?void 0:i.inlineCompletionsModel)||void 0===r?void 0:r.ghostText;if(c){var u=this._editor.getModel().getLineContent(c.lineNumber);!function(t){n.add(l.onDidRenderAsync((function(){s.className="hover-contents code-hover-contents",e.onContentsChanged()})));var i=qe.NC("inlineSuggestionFollows","Suggestion:"),r=n.add(l.render((new st.W5).appendText(i).appendCodeblock("text",t)));s.replaceChildren(r.element)}(c.renderForScreenReader(u))}e.fragment.appendChild(a)}}]),e}();gt=ht([ft(1,R.Hy),ft(2,ut.co),ft(3,$e.i6),ft(4,Pe.O),ft(5,dt.v4),ft(6,ct.F)],gt);var vt=n(5850);(0,i._K)(et.ID,et),(0,i.Qr)(ot),(0,i.Qr)(it),(0,i.Qr)(rt),o.Ae.register(gt);var mt=i._l.bindToContribution(et.get),yt=new mt({id:a,precondition:et.inlineSuggestionVisible,handler:function(e){e.commit(),e.editor.focus()}});(0,i.fK)(yt),vt.W.registerKeybindingRule({primary:2,weight:200,id:yt.id,when:$e.Ao.and(yt.precondition,r.u.tabMovesFocus.toNegated(),et.inlineSuggestionHasIndentationLessThanTabSize)}),(0,i.fK)(new mt({id:"editor.action.inlineSuggest.hide",precondition:et.inlineSuggestionVisible,kbOpts:{weight:100,primary:9},handler:function(e){e.hide()}}))},98361:function(e,t,n){"use strict";n.r(t),n.d(t,{ExpandLineSelectionAction:function(){return d}});var i=n(15671),r=n(43144),o=n(60136),a=n(27277),s=n(62381),l=n(36756),c=n(67245),u=n(27722),d=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{id:"expandLineSelection",label:u.NC("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:c.u.textInputFocus,primary:2090}})}return(0,r.Z)(n,[{key:"run",value:function(e,t,n){if(n=n||{},t.hasModel()){var i=t._getViewModel();i.model.pushStackElement(),i.setCursorStates(n.source,3,l.P.expandLineSelection(i,i.getCursorStates())),i.revealPrimaryCursor(n.source,!0)}}}]),n}(s.R6);(0,s.Qr)(d)},56653:function(e,t,n){"use strict";n.r(t),n.d(t,{AbstractCaseAction:function(){return ne},AbstractDeleteAllToBoundaryAction:function(){return X},AbstractSortLinesAction:function(){return z},DeleteAllLeftAction:function(){return Q},DeleteAllRightAction:function(){return J},DeleteDuplicateLinesAction:function(){return W},DeleteLinesAction:function(){return G},DuplicateSelectionAction:function(){return Z},IndentLinesAction:function(){return K},InsertLineAfterAction:function(){return $},InsertLineBeforeAction:function(){return q},JoinLinesAction:function(){return ee},KebabCaseAction:function(){return le},LowerCaseAction:function(){return re},SnakeCaseAction:function(){return se},SortLinesAscendingAction:function(){return j},SortLinesDescendingAction:function(){return V},TitleCaseAction:function(){return ae},TransposeAction:function(){return te},TrimTrailingWhitespaceAction:function(){return U},UpperCaseAction:function(){return ie}});var i=n(37762),r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(16321),c=n(79240),u=n(62381),d=n(76469),h=n(32377),f=n(3055),p=n(80133),g=function(){function e(t,n){(0,r.Z)(this,e),this._selection=t,this._cursors=n,this._selectionId=null}return(0,o.Z)(e,[{key:"getEditOperations",value:function(e,t){for(var n=function(e,t){t.sort((function(e,t){return e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber}));for(var n=t.length-2;n>=0;n--)t[n].lineNumber===t[n+1].lineNumber&&t.splice(n,1);for(var i=[],r=0,o=0,a=t.length,s=1,l=e.getLineCount();s<=l;s++){var c=e.getLineContent(s),u=c.length+1,d=0;if(!(o<a&&t[o].lineNumber===s&&(d=t[o].column,o++,d===u))&&0!==c.length){var g=h.ow(c),v=0;if(-1===g)v=1;else{if(g===c.length-1)continue;v=g+2}v=Math.max(d,v),i[r++]=f.h.delete(new p.e(s,v,s,u))}}return i}(e,this._cursors),i=0,r=n.length;i<r;i++){var o=n[i];t.addEditOperation(o.range,o.text)}this._selectionId=t.trackSelection(this._selection)}},{key:"computeCursorState",value:function(e,t){return t.getTrackedSelection(this._selectionId)}}]),e}();var v=n(28776),m=n(38622),y=n(23145),_=n(67245),b=function(){function e(t,n,i){(0,r.Z)(this,e),this._selection=t,this._isCopyingDown=n,this._noop=i||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}return(0,o.Z)(e,[{key:"getEditOperations",value:function(e,t){var n=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._endLineNumberDelta=1,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));for(var i=[],r=n.startLineNumber;r<=n.endLineNumber;r++)i.push(e.getLineContent(r));var o=i.join("\n");""===o&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?t.addEditOperation(new p.e(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber+1,1),n.endLineNumber===e.getLineCount()?"":"\n"):this._isCopyingDown?t.addEditOperation(new p.e(n.startLineNumber,1,n.startLineNumber,1),o+"\n"):t.addEditOperation(new p.e(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+o),this._selectionId=t.trackSelection(n),this._selectionDirection=this._selection.getDirection()}},{key:"computeCursorState",value:function(e,t){var n=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){var i=n.startLineNumber,r=n.startColumn,o=n.endLineNumber,a=n.endColumn;0!==this._startLineNumberDelta&&(i+=this._startLineNumberDelta,r=1),0!==this._endLineNumberDelta&&(o+=this._endLineNumberDelta,a=1),n=y.Y.createWithDirection(i,r,o,a,this._selectionDirection)}return n}}]),e}(),C=n(55634),S=n(67517),w=n(29662),k=n(81160),x=n(9651),E=n(4048),T=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},N=function(e,t){return function(n,i){t(n,i,e)}},I=function(){function e(t,n,i,o){(0,r.Z)(this,e),this._languageConfigurationService=o,this._selection=t,this._isMovingDown=n,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}return(0,o.Z)(e,[{key:"getEditOperations",value:function(e,t){var n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)this._selectionId=t.trackSelection(this._selection);else if(this._isMovingDown||1!==this._selection.startLineNumber){this._moveEndPositionDown=!1;var i=this._selection;i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));var r=e.getOptions(),o=r.tabSize,a=r.indentSize,s=r.insertSpaces,l=this.buildIndentConverter(o,a,s),c={tokenization:{getLineTokens:function(t){return e.tokenization.getLineTokens(t)},getLanguageId:function(){return e.getLanguageId()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)}},getLineContent:null};if(i.startLineNumber===i.endLineNumber&&1===e.getLineMaxColumn(i.startLineNumber)){var u=i.startLineNumber,d=this._isMovingDown?u+1:u-1;1===e.getLineMaxColumn(d)?t.addEditOperation(new p.e(1,1,1,1),null):(t.addEditOperation(new p.e(u,1,u,1),e.getLineContent(d)),t.addEditOperation(new p.e(d,1,d,e.getLineMaxColumn(d)),null)),i=new y.Y(d,1,d,1)}else{var f,g;if(this._isMovingDown){f=i.endLineNumber+1,g=e.getLineContent(f),t.addEditOperation(new p.e(f-1,e.getLineMaxColumn(f-1),f,e.getLineMaxColumn(f)),null);var v=g;if(this.shouldAutoIndent(e,i)){var m=this.matchEnterRule(e,l,o,f,i.startLineNumber-1);if(null!==m){var _=h.V8(e.getLineContent(f)),b=m+k.Y(_,o),C=k.J(b,o,s);v=C+this.trimLeft(g)}else{c.getLineContent=function(t){return t===i.startLineNumber?e.getLineContent(f):e.getLineContent(t)};var S=(0,x.n8)(this._autoIndent,c,e.getLanguageIdAtPosition(f,1),i.startLineNumber,l,this._languageConfigurationService);if(null!==S){var w=h.V8(e.getLineContent(f)),E=k.Y(S,o);if(E!==k.Y(w,o)){var T=k.J(E,o,s);v=T+this.trimLeft(g)}}}t.addEditOperation(new p.e(i.startLineNumber,1,i.startLineNumber,1),v+"\n");var N=this.matchEnterRuleMovingDown(e,l,o,i.startLineNumber,f,v);if(null!==N)0!==N&&this.getIndentEditsOfMovingBlock(e,t,i,o,s,N);else{c.getLineContent=function(t){return t===i.startLineNumber?v:t>=i.startLineNumber+1&&t<=i.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t)};var I=(0,x.n8)(this._autoIndent,c,e.getLanguageIdAtPosition(f,1),i.startLineNumber+1,l,this._languageConfigurationService);if(null!==I){var D=h.V8(e.getLineContent(i.startLineNumber)),L=k.Y(I,o),O=k.Y(D,o);if(L!==O){var R=L-O;this.getIndentEditsOfMovingBlock(e,t,i,o,s,R)}}}}else t.addEditOperation(new p.e(i.startLineNumber,1,i.startLineNumber,1),v+"\n")}else if(f=i.startLineNumber-1,g=e.getLineContent(f),t.addEditOperation(new p.e(f,1,f+1,1),null),t.addEditOperation(new p.e(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+g),this.shouldAutoIndent(e,i)){c.getLineContent=function(t){return t===f?e.getLineContent(i.startLineNumber):e.getLineContent(t)};var A=this.matchEnterRule(e,l,o,i.startLineNumber,i.startLineNumber-2);if(null!==A)0!==A&&this.getIndentEditsOfMovingBlock(e,t,i,o,s,A);else{var M=(0,x.n8)(this._autoIndent,c,e.getLanguageIdAtPosition(i.startLineNumber,1),f,l,this._languageConfigurationService);if(null!==M){var P=h.V8(e.getLineContent(i.startLineNumber)),Z=k.Y(M,o),F=k.Y(P,o);if(Z!==F){var B=Z-F;this.getIndentEditsOfMovingBlock(e,t,i,o,s,B)}}}}}this._selectionId=t.trackSelection(i)}else this._selectionId=t.trackSelection(this._selection)}},{key:"buildIndentConverter",value:function(e,t,n){return{shiftIndent:function(i){return C.U.shiftIndent(i,i.length+1,e,t,n)},unshiftIndent:function(i){return C.U.unshiftIndent(i,i.length+1,e,t,n)}}}},{key:"parseEnterResult",value:function(e,t,n,i,r){if(r){var o=r.indentation;r.indentAction===S.wU.None||r.indentAction===S.wU.Indent?o=r.indentation+r.appendText:r.indentAction===S.wU.IndentOutdent?o=r.indentation:r.indentAction===S.wU.Outdent&&(o=t.unshiftIndent(r.indentation)+r.appendText);var a=e.getLineContent(i);if(this.trimLeft(a).indexOf(this.trimLeft(o))>=0){var s=h.V8(e.getLineContent(i)),l=h.V8(o),c=(0,x.tI)(e,i,this._languageConfigurationService);return null!==c&&2&c&&(l=t.unshiftIndent(l)),k.Y(l,n)-k.Y(s,n)}}return null}},{key:"matchEnterRuleMovingDown",value:function(e,t,n,i,r,o){if(h.ow(o)>=0){var a=e.getLineMaxColumn(r),s=(0,E.A)(this._autoIndent,e,new p.e(r,a,r,a),this._languageConfigurationService);return this.parseEnterResult(e,t,n,i,s)}for(var l=i-1;l>=1;){var c=e.getLineContent(l);if(h.ow(c)>=0)break;l--}if(l<1||i>e.getLineCount())return null;var u=e.getLineMaxColumn(l),d=(0,E.A)(this._autoIndent,e,new p.e(l,u,l,u),this._languageConfigurationService);return this.parseEnterResult(e,t,n,i,d)}},{key:"matchEnterRule",value:function(e,t,n,i,r,o){for(var a=r;a>=1;){var s=void 0;if(s=a===r&&void 0!==o?o:e.getLineContent(a),h.ow(s)>=0)break;a--}if(a<1||i>e.getLineCount())return null;var l=e.getLineMaxColumn(a),c=(0,E.A)(this._autoIndent,e,new p.e(a,l,a,l),this._languageConfigurationService);return this.parseEnterResult(e,t,n,i,c)}},{key:"trimLeft",value:function(e){return e.replace(/^\s+/,"")}},{key:"shouldAutoIndent",value:function(e,t){if(this._autoIndent<4)return!1;if(!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;var n=e.getLanguageIdAtPosition(t.startLineNumber,1);return n===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(n).indentRulesSupport}},{key:"getIndentEditsOfMovingBlock",value:function(e,t,n,i,r,o){for(var a=n.startLineNumber;a<=n.endLineNumber;a++){var s=e.getLineContent(a),l=h.V8(s),c=k.Y(l,i)+o,u=k.J(c,i,r);u!==l&&(t.addEditOperation(new p.e(a,1,a,l.length+1),u),a===n.endLineNumber&&n.endColumn<=l.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0))}}},{key:"computeCursorState",value:function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&n.startLineNumber<n.endLineNumber&&(n=n.setEndPosition(n.endLineNumber,2)),n}}]),e}();I=T([N(3,w.c_)],I);var D=function(){function e(t,n){(0,r.Z)(this,e),this.selection=t,this.descending=n,this.selectionId=null}return(0,o.Z)(e,[{key:"getEditOperations",value:function(e,t){var n=function(e,t,n){var i=L(e,t,n);if(!i)return null;return f.h.replace(new p.e(i.startLineNumber,1,i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),i.after.join("\n"))}(e,this.selection,this.descending);n&&t.addEditOperation(n.range,n.text),this.selectionId=t.trackSelection(this.selection)}},{key:"computeCursorState",value:function(e,t){return t.getTrackedSelection(this.selectionId)}}],[{key:"getCollator",value:function(){return e._COLLATOR||(e._COLLATOR=new Intl.Collator),e._COLLATOR}},{key:"canRun",value:function(e,t,n){if(null===e)return!1;var i=L(e,t,n);if(!i)return!1;for(var r=0,o=i.before.length;r<o;r++)if(i.before[r]!==i.after[r])return!0;return!1}}]),e}();function L(e,t,n){var i=t.startLineNumber,r=t.endLineNumber;if(1===t.endColumn&&r--,i>=r)return null;for(var o=[],a=i;a<=r;a++)o.push(e.getLineContent(a));var s=o.slice(0);return s.sort(D.getCollator().compare),!0===n&&(s=s.reverse()),{startLineNumber:i,endLineNumber:r,before:o,after:s}}D._COLLATOR=null;var O=n(27722),R=n(48996),A=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,i)).down=e,o}return(0,o.Z)(n,[{key:"run",value:function(e,t){if(t.hasModel()){var n=t.getSelections().map((function(e,t){return{selection:e,index:t,ignore:!1}}));n.sort((function(e,t){return p.e.compareRangesUsingStarts(e.selection,t.selection)}));for(var r=n[0],o=1;o<n.length;o++){var a=n[o];r.selection.endLineNumber===a.selection.startLineNumber&&(r.index<a.index?a.ignore=!0:(r.ignore=!0,r=a))}var s,l=[],c=(0,i.Z)(n);try{for(c.s();!(s=c.n()).done;){var u=s.value;l.push(new b(u.selection,this.down,u.ignore))}}catch(d){c.e(d)}finally{c.f()}t.pushUndoStop(),t.executeCommands(this.id,l),t.pushUndoStop()}}}]),n}(u.R6),M=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,!1,{id:"editor.action.copyLinesUpAction",label:O.NC("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:_.u.writable,kbOpts:{kbExpr:_.u.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:R.eH.MenubarSelectionMenu,group:"2_line",title:O.NC({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}return(0,o.Z)(n)}(A),P=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,!0,{id:"editor.action.copyLinesDownAction",label:O.NC("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:_.u.writable,kbOpts:{kbExpr:_.u.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:R.eH.MenubarSelectionMenu,group:"2_line",title:O.NC({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}return(0,o.Z)(n)}(A),Z=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.duplicateSelection",label:O.NC("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:_.u.writable,menuOpts:{menuId:R.eH.MenubarSelectionMenu,group:"2_line",title:O.NC({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}return(0,o.Z)(n,[{key:"run",value:function(e,t,n){if(t.hasModel()){var r,o=[],a=t.getSelections(),s=t.getModel(),l=(0,i.Z)(a);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.isEmpty())o.push(new b(c,!0));else{var u=new y.Y(c.endLineNumber,c.endColumn,c.endLineNumber,c.endColumn);o.push(new d.OY(u,s.getValueInRange(c)))}}}catch(h){l.e(h)}finally{l.f()}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}}]),n}(u.R6),F=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,i)).down=e,o}return(0,o.Z)(n,[{key:"run",value:function(e,t){var n,r=e.get(w.c_),o=[],a=t.getSelections()||[],s=t.getOption(9),l=(0,i.Z)(a);try{for(l.s();!(n=l.n()).done;){var c=n.value;o.push(new I(c,this.down,s,r))}}catch(u){l.e(u)}finally{l.f()}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}]),n}(u.R6),B=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,!1,{id:"editor.action.moveLinesUpAction",label:O.NC("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:_.u.writable,kbOpts:{kbExpr:_.u.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:R.eH.MenubarSelectionMenu,group:"2_line",title:O.NC({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}return(0,o.Z)(n)}(F),H=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,!0,{id:"editor.action.moveLinesDownAction",label:O.NC("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:_.u.writable,kbOpts:{kbExpr:_.u.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:R.eH.MenubarSelectionMenu,group:"2_line",title:O.NC({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}return(0,o.Z)(n)}(F),z=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,i)).descending=e,o}return(0,o.Z)(n,[{key:"run",value:function(e,t){var n,r=t.getSelections()||[],o=(0,i.Z)(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(!D.canRun(t.getModel(),a,this.descending))return}}catch(u){o.e(u)}finally{o.f()}for(var s=[],l=0,c=r.length;l<c;l++)s[l]=new D(r[l],this.descending);t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}]),n}(u.R6),j=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,!1,{id:"editor.action.sortLinesAscending",label:O.NC("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:_.u.writable})}return(0,o.Z)(n)}(z),V=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,!0,{id:"editor.action.sortLinesDescending",label:O.NC("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:_.u.writable})}return(0,o.Z)(n)}(z),W=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.removeDuplicateLines",label:O.NC("lines.deleteDuplicates","Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:_.u.writable})}return(0,o.Z)(n,[{key:"run",value:function(e,t){if(t.hasModel()){var n=t.getModel();if(1!==n.getLineCount()||1!==n.getLineMaxColumn(1)){var r,o=[],a=[],s=0,l=(0,i.Z)(t.getSelections());try{for(l.s();!(r=l.n()).done;){for(var c=r.value,u=new Set,d=[],h=c.startLineNumber;h<=c.endLineNumber;h++){var p=n.getLineContent(h);u.has(p)||(d.push(p),u.add(p))}var g=new y.Y(c.startLineNumber,1,c.endLineNumber,n.getLineMaxColumn(c.endLineNumber)),v=c.startLineNumber-s,m=new y.Y(v,1,v+d.length-1,d[d.length-1].length);o.push(f.h.replace(g,d.join("\n"))),a.push(m),s+=c.endLineNumber-c.startLineNumber+1-d.length}}catch(_){l.e(_)}finally{l.f()}t.pushUndoStop(),t.executeEdits(this.id,o,a),t.pushUndoStop()}}}}]),n}(u.R6),U=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:n.ID,label:O.NC("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:_.u.writable,kbOpts:{kbExpr:_.u.editorTextFocus,primary:(0,l.gx)(2089,2102),weight:100}})}return(0,o.Z)(n,[{key:"run",value:function(e,t,n){var i=[];"auto-save"===n.reason&&(i=(t.getSelections()||[]).map((function(e){return new m.L(e.positionLineNumber,e.positionColumn)})));var r=t.getSelection();if(null!==r){var o=new g(r,i);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop()}}}]),n}(u.R6);U.ID="editor.action.trimTrailingWhitespace";var G=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.deleteLines",label:O.NC("lines.delete","Delete Line"),alias:"Delete Line",precondition:_.u.writable,kbOpts:{kbExpr:_.u.textInputFocus,primary:3113,weight:100}})}return(0,o.Z)(n,[{key:"run",value:function(e,t){if(t.hasModel()){var n=this._getLinesToRemove(t),i=t.getModel();if(1!==i.getLineCount()||1!==i.getLineMaxColumn(1)){for(var r=0,o=[],a=[],s=0,l=n.length;s<l;s++){var c=n[s],u=c.startLineNumber,d=c.endLineNumber,h=1,p=i.getLineMaxColumn(d);d<i.getLineCount()?(d+=1,p=1):u>1&&(u-=1,h=i.getLineMaxColumn(u)),o.push(f.h.replace(new y.Y(u,h,d,p),"")),a.push(new y.Y(u-r,c.positionColumn,u-r,c.positionColumn)),r+=c.endLineNumber-c.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,o,a),t.pushUndoStop()}}}},{key:"_getLinesToRemove",value:function(e){var t=e.getSelections().map((function(e){var t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}));t.sort((function(e,t){return e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber}));for(var n=[],i=t[0],r=1;r<t.length;r++)i.endLineNumber+1>=t[r].startLineNumber?i.endLineNumber=t[r].endLineNumber:(n.push(i),i=t[r]);return n.push(i),n}}]),n}(u.R6),K=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.indentLines",label:O.NC("lines.indent","Indent Line"),alias:"Indent Line",precondition:_.u.writable,kbOpts:{kbExpr:_.u.editorTextFocus,primary:2137,weight:100}})}return(0,o.Z)(n,[{key:"run",value:function(e,t){var n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,v.u6.indent(n.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}]),n}(u.R6),Y=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.outdentLines",label:O.NC("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:_.u.writable,kbOpts:{kbExpr:_.u.editorTextFocus,primary:2135,weight:100}})}return(0,o.Z)(n,[{key:"run",value:function(e,t){c.CoreEditingCommands.Outdent.runEditorCommand(e,t,null)}}]),n}(u.R6),q=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.insertLineBefore",label:O.NC("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:_.u.writable,kbOpts:{kbExpr:_.u.editorTextFocus,primary:3075,weight:100}})}return(0,o.Z)(n,[{key:"run",value:function(e,t){var n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,v.u6.lineInsertBefore(n.cursorConfig,t.getModel(),t.getSelections())))}}]),n}(u.R6),$=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.insertLineAfter",label:O.NC("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:_.u.writable,kbOpts:{kbExpr:_.u.editorTextFocus,primary:2051,weight:100}})}return(0,o.Z)(n,[{key:"run",value:function(e,t){var n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,v.u6.lineInsertAfter(n.cursorConfig,t.getModel(),t.getSelections())))}}]),n}(u.R6),X=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"run",value:function(e,t){if(t.hasModel()){for(var n=t.getSelection(),i=this._getRangesToDelete(t),r=[],o=0,a=i.length-1;o<a;o++){var s=i[o],l=i[o+1];null===p.e.intersectRanges(s,l)?r.push(s):i[o+1]=p.e.plusRange(s,l)}r.push(i[i.length-1]);var c=this._getEndCursorState(n,r),u=r.map((function(e){return f.h.replace(e,"")}));t.pushUndoStop(),t.executeEdits(this.id,u,c),t.pushUndoStop()}}}]),n}(u.R6),Q=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"deleteAllLeft",label:O.NC("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:_.u.writable,kbOpts:{kbExpr:_.u.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}return(0,o.Z)(n,[{key:"_getEndCursorState",value:function(e,t){var n=null,i=[],r=0;return t.forEach((function(t){var o;if(1===t.endColumn&&r>0){var a=t.startLineNumber-r;o=new y.Y(a,t.startColumn,a,t.startColumn)}else o=new y.Y(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);r+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?n=o:i.push(o)})),n&&i.unshift(n),i}},{key:"_getRangesToDelete",value:function(e){var t=e.getSelections();if(null===t)return[];var n=t,i=e.getModel();return null===i?[]:(n.sort(p.e.compareRangesUsingStarts),n=n.map((function(e){if(e.isEmpty()){if(1===e.startColumn){var t=Math.max(1,e.startLineNumber-1),n=1===e.startLineNumber?1:i.getLineContent(t).length+1;return new p.e(t,n,e.startLineNumber,1)}return new p.e(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new p.e(e.startLineNumber,1,e.endLineNumber,e.endColumn)})))}}]),n}(X),J=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"deleteAllRight",label:O.NC("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:_.u.writable,kbOpts:{kbExpr:_.u.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}return(0,o.Z)(n,[{key:"_getEndCursorState",value:function(e,t){for(var n=null,i=[],r=0,o=t.length;r<o;r++){var a=t[r],s=new y.Y(a.startLineNumber-0,a.startColumn,a.startLineNumber-0,a.startColumn);a.intersectRanges(e)?n=s:i.push(s)}return n&&i.unshift(n),i}},{key:"_getRangesToDelete",value:function(e){var t=e.getModel();if(null===t)return[];var n=e.getSelections();if(null===n)return[];var i=n.map((function(e){if(e.isEmpty()){var n=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===n?new p.e(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new p.e(e.startLineNumber,e.startColumn,e.startLineNumber,n)}return e}));return i.sort(p.e.compareRangesUsingStarts),i}}]),n}(X),ee=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.joinLines",label:O.NC("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:_.u.writable,kbOpts:{kbExpr:_.u.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}return(0,o.Z)(n,[{key:"run",value:function(e,t){var n=t.getSelections();if(null!==n){var i=t.getSelection();if(null!==i){n.sort(p.e.compareRangesUsingStarts);var r=[],o=n.reduce((function(e,t){return e.isEmpty()?e.endLineNumber===t.startLineNumber?(i.equalsSelection(e)&&(i=t),t):t.startLineNumber>e.endLineNumber+1?(r.push(e),t):new y.Y(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(r.push(e),t):new y.Y(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)}));r.push(o);var a=t.getModel();if(null!==a){for(var s=[],l=[],c=i,u=0,d=0,h=r.length;d<h;d++){var g=r[d],v=g.startLineNumber,m=0,_=void 0,b=void 0,C=a.getLineContent(g.endLineNumber).length-g.endColumn;if(g.isEmpty()||g.startLineNumber===g.endLineNumber){var S=g.getStartPosition();S.lineNumber<a.getLineCount()?(_=v+1,b=a.getLineMaxColumn(_)):(_=S.lineNumber,b=a.getLineMaxColumn(S.lineNumber))}else _=g.endLineNumber,b=a.getLineMaxColumn(_);for(var w=a.getLineContent(v),k=v+1;k<=_;k++){var x=a.getLineContent(k),E=a.getLineFirstNonWhitespaceColumn(k);if(E>=1){var T=!0;""===w&&(T=!1),!T||" "!==w.charAt(w.length-1)&&"\t"!==w.charAt(w.length-1)||(T=!1,w=w.replace(/[\s\uFEFF\xA0]+$/g," "));var N=x.substr(E-1);w+=(T?" ":"")+N,m=T?N.length+1:N.length}else m=0}var I=new p.e(v,1,_,b);if(!I.isEmpty()){var D=void 0;g.isEmpty()?(s.push(f.h.replace(I,w)),D=new y.Y(I.startLineNumber-u,w.length-m+1,v-u,w.length-m+1)):g.startLineNumber===g.endLineNumber?(s.push(f.h.replace(I,w)),D=new y.Y(g.startLineNumber-u,g.startColumn,g.endLineNumber-u,g.endColumn)):(s.push(f.h.replace(I,w)),D=new y.Y(g.startLineNumber-u,g.startColumn,g.startLineNumber-u,w.length-C)),null!==p.e.intersectRanges(I,i)?c=D:l.push(D)}u+=I.endLineNumber-I.startLineNumber}l.unshift(c),t.pushUndoStop(),t.executeEdits(this.id,s,l),t.pushUndoStop()}}}}}]),n}(u.R6),te=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.transpose",label:O.NC("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:_.u.writable})}return(0,o.Z)(n,[{key:"run",value:function(e,t){var n=t.getSelections();if(null!==n){var i=t.getModel();if(null!==i){for(var r=[],o=0,a=n.length;o<a;o++){var s=n[o];if(s.isEmpty()){var l=s.getStartPosition(),c=i.getLineMaxColumn(l.lineNumber);if(l.column>=c){if(l.lineNumber===i.getLineCount())continue;var u=new p.e(l.lineNumber,Math.max(1,l.column-1),l.lineNumber+1,1),h=i.getValueInRange(u).split("").reverse().join("");r.push(new d.T4(new y.Y(l.lineNumber,Math.max(1,l.column-1),l.lineNumber+1,1),h))}else{var f=new p.e(l.lineNumber,Math.max(1,l.column-1),l.lineNumber,l.column+1),g=i.getValueInRange(f).split("").reverse().join("");r.push(new d.hP(f,g,new y.Y(l.lineNumber,l.column+1,l.lineNumber,l.column+1)))}}}t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}}}]),n}(u.R6),ne=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"run",value:function(e,t){var n=t.getSelections();if(null!==n){var r=t.getModel();if(null!==r){var o,a=t.getOption(119),s=[],l=(0,i.Z)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(c.isEmpty()){var u=c.getStartPosition(),d=t.getConfiguredWordAtPosition(u);if(!d)continue;var h=new p.e(u.lineNumber,d.startColumn,u.lineNumber,d.endColumn),g=r.getValueInRange(h);s.push(f.h.replace(h,this._modifyText(g,a)))}else{var v=r.getValueInRange(c);s.push(f.h.replace(c,this._modifyText(v,a)))}}}catch(m){l.e(m)}finally{l.f()}t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop()}}}}]),n}(u.R6),ie=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.transformToUppercase",label:O.NC("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:_.u.writable})}return(0,o.Z)(n,[{key:"_modifyText",value:function(e,t){return e.toLocaleUpperCase()}}]),n}(ne),re=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.transformToLowercase",label:O.NC("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:_.u.writable})}return(0,o.Z)(n,[{key:"_modifyText",value:function(e,t){return e.toLocaleLowerCase()}}]),n}(ne),oe=function(){function e(t,n){(0,r.Z)(this,e),this._pattern=t,this._flags=n,this._actual=null,this._evaluated=!1}return(0,o.Z)(e,[{key:"get",value:function(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}},{key:"isSupported",value:function(){return null!==this.get()}}]),e}(),ae=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.transformToTitlecase",label:O.NC("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:_.u.writable})}return(0,o.Z)(n,[{key:"_modifyText",value:function(e,t){var i=n.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,(function(e){return e.toLocaleUpperCase()})):e}}]),n}(ne);ae.titleBoundary=new oe("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");var se=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.transformToSnakecase",label:O.NC("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:_.u.writable})}return(0,o.Z)(n,[{key:"_modifyText",value:function(e,t){var i=n.caseBoundary.get(),r=n.singleLetters.get();return i&&r?e.replace(i,"$1_$2").replace(r,"$1_$2$3").toLocaleLowerCase():e}}]),n}(ne);se.caseBoundary=new oe("(\\p{Ll})(\\p{Lu})","gmu"),se.singleLetters=new oe("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");var le=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.transformToKebabcase",label:O.NC("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:_.u.writable})}return(0,o.Z)(n,[{key:"_modifyText",value:function(e,t){var i=n.caseBoundary.get(),r=n.singleLetters.get(),o=n.underscoreBoundary.get();return i&&r&&o?e.replace(o,"$1-$3").replace(i,"$1-$2").replace(r,"$1-$2").toLocaleLowerCase():e}}],[{key:"isSupported",value:function(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every((function(e){return e.isSupported()}))}}]),n}(ne);le.caseBoundary=new oe("(\\p{Ll})(\\p{Lu})","gmu"),le.singleLetters=new oe("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu"),le.underscoreBoundary=new oe("(\\S)(_)(\\S)","gm"),(0,u.Qr)(M),(0,u.Qr)(P),(0,u.Qr)(Z),(0,u.Qr)(B),(0,u.Qr)(H),(0,u.Qr)(j),(0,u.Qr)(V),(0,u.Qr)(W),(0,u.Qr)(U),(0,u.Qr)(G),(0,u.Qr)(K),(0,u.Qr)(Y),(0,u.Qr)(q),(0,u.Qr)($),(0,u.Qr)(Q),(0,u.Qr)(J),(0,u.Qr)(ee),(0,u.Qr)(te),(0,u.Qr)(ie),(0,u.Qr)(re),se.caseBoundary.isSupported()&&se.singleLetters.isSupported()&&(0,u.Qr)(se),ae.titleBoundary.isSupported()&&(0,u.Qr)(ae),le.isSupported()&&(0,u.Qr)(le)},47226:function(e,t,n){"use strict";n.r(t),n.d(t,{CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE:function(){return Z},LinkedEditingAction:function(){return H},LinkedEditingContribution:function(){return B},editorLinkedEditingBackground:function(){return V}});var i=n(29439),r=n(74165),o=n(15671),a=n(43144),s=n(11752),l=n(61120),c=n(60136),u=n(27277),d=n(29671),h=n(60022),f=n(82784),p=n(62458),g=n(14173),v=n(73097),m=n(11860),y=n(32377),_=n(72112),b=n(62381),C=n(98596),S=n(38622),w=n(80133),k=n(67245),x=n(70845),E=n(29662),T=n(27722),N=n(34509),I=n(32379),D=n(64014),L=n(53584),O=n(98971),R=n(25),A=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},M=function(e,t){return function(n,i){t(n,i,e)}},P=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},Z=new N.uy("LinkedEditingInputVisible",!1),F="linked-editing-decoration",B=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r,a,s){var l;return(0,o.Z)(this,n),(l=t.call(this)).languageConfigurationService=a,l._syncRangesToken=0,l._localToDispose=l._register(new m.SL),l._editor=e,l._providers=r.linkedEditingRangeProvider,l._enabled=!1,l._visibleContextKey=Z.bindTo(i),l._debounceInformation=s.for(l._providers,"Linked Editing",{min:200}),l._currentDecorations=l._editor.createDecorationsCollection(),l._languageWordPattern=null,l._currentWordPattern=null,l._ignoreChangeEvent=!1,l._localToDispose=l._register(new m.SL),l._rangeUpdateTriggerPromise=null,l._rangeSyncTriggerPromise=null,l._currentRequest=null,l._currentRequestPosition=null,l._currentRequestModelVersion=null,l._register(l._editor.onDidChangeModel((function(){return l.reinitialize(!0)}))),l._register(l._editor.onDidChangeConfiguration((function(e){(e.hasChanged(64)||e.hasChanged(84))&&l.reinitialize(!1)}))),l._register(l._providers.onDidChange((function(){return l.reinitialize(!1)}))),l._register(l._editor.onDidChangeModelLanguage((function(){return l.reinitialize(!0)}))),l.reinitialize(!0),l}return(0,a.Z)(n,[{key:"reinitialize",value:function(e){var t=this,n=this._editor.getModel(),i=null!==n&&(this._editor.getOption(64)||this._editor.getOption(84))&&this._providers.has(n);if((i!==this._enabled||e)&&(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),i&&null!==n)){this._localToDispose.add(v.ju.runAndSubscribe(n.onDidChangeLanguageConfiguration,(function(){t._languageWordPattern=t.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition()})));var r=new h.vp(this._debounceInformation.get(n)),o=function(){var e;t._rangeUpdateTriggerPromise=r.trigger((function(){return t.updateRanges()}),null!==(e=t._debounceDuration)&&void 0!==e?e:t._debounceInformation.get(n))},a=new h.vp(0);this._localToDispose.add(this._editor.onDidChangeCursorPosition((function(){o()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((function(e){if(!t._ignoreChangeEvent&&t._currentDecorations.length>0){var n=t._currentDecorations.getRange(0);if(n&&e.changes.every((function(e){return n.intersectRanges(e.range)})))return i=t._syncRangesToken,void(t._rangeSyncTriggerPromise=a.trigger((function(){return t._syncRanges(i)})))}var i;o()}))),this._localToDispose.add({dispose:function(){r.dispose(),a.dispose()}}),this.updateRanges()}}},{key:"_syncRanges",value:function(e){if(this._editor.hasModel()&&e===this._syncRangesToken&&0!==this._currentDecorations.length){var t=this._editor.getModel(),n=this._currentDecorations.getRange(0);if(!n||n.startLineNumber!==n.endLineNumber)return this.clearRanges();var i=t.getValueInRange(n);if(this._currentWordPattern){var r=i.match(this._currentWordPattern);if((r?r[0].length:0)!==i.length)return this.clearRanges()}for(var o=[],a=1,s=this._currentDecorations.length;a<s;a++){var l=this._currentDecorations.getRange(a);if(l)if(l.startLineNumber!==l.endLineNumber)o.push({range:l,text:i});else{var c=t.getValueInRange(l),u=i,d=l.startColumn,h=l.endColumn,f=y.Mh(c,u);d+=f,c=c.substr(f),u=u.substr(f);var p=y.P1(c,u);h-=p,c=c.substr(0,c.length-p),u=u.substr(0,u.length-p),d===h&&0===u.length||o.push({range:new w.e(l.startLineNumber,d,l.endLineNumber,h),text:u})}}if(0!==o.length)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;var g=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",o),this._editor._getViewModel().setPrevEditOperationType(g)}finally{this._ignoreChangeEvent=!1}}}},{key:"dispose",value:function(){this.clearRanges(),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"clearRanges",value:function(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequest&&(this._currentRequest.cancel(),this._currentRequest=null,this._currentRequestPosition=null)}},{key:"updateRanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return P(this,void 0,void 0,(0,r.Z)().mark((function t(){var i,o,a,s,l,c=this;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._editor.hasModel()){t.next=3;break}return this.clearRanges(),t.abrupt("return");case 3:if(i=this._editor.getPosition(),!(!this._enabled&&!e||this._editor.getSelections().length>1)){t.next=7;break}return this.clearRanges(),t.abrupt("return");case 7:if(o=this._editor.getModel(),a=o.getVersionId(),!this._currentRequestPosition||this._currentRequestModelVersion!==a){t.next=16;break}if(!i.equals(this._currentRequestPosition)){t.next=12;break}return t.abrupt("return");case 12:if(!(this._currentDecorations.length>0)){t.next=16;break}if(!(s=this._currentDecorations.getRange(0))||!s.containsPosition(i)){t.next=16;break}return t.abrupt("return");case 16:return this._currentRequestPosition=i,this._currentRequestModelVersion=a,l=(0,h.PG)((function(e){return P(c,void 0,void 0,(0,r.Z)().mark((function t(){var s,c,u,d,h,f,p,v;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,s=new R.G(!1),t.next=4,j(this._providers,o,i,e);case 4:if(c=t.sent,this._debounceInformation.update(o,s.elapsed()),l===this._currentRequest){t.next=8;break}return t.abrupt("return");case 8:if(this._currentRequest=null,a===o.getVersionId()){t.next=11;break}return t.abrupt("return");case 11:u=[],(null===c||void 0===c?void 0:c.ranges)&&(u=c.ranges),this._currentWordPattern=(null===c||void 0===c?void 0:c.wordPattern)||this._languageWordPattern,d=!1,h=0,f=u.length;case 16:if(!(h<f)){t.next=24;break}if(!w.e.containsPosition(u[h],i)){t.next=21;break}return d=!0,0!==h&&(p=u[h],u.splice(h,1),u.unshift(p)),t.abrupt("break",24);case 21:h++,t.next=16;break;case 24:if(d){t.next=27;break}return this.clearRanges(),t.abrupt("return");case 27:v=u.map((function(e){return{range:e,options:n.DECORATION}})),this._visibleContextKey.set(!0),this._currentDecorations.set(v),this._syncRangesToken++,t.next=37;break;case 33:t.prev=33,t.t0=t.catch(0),(0,g.n2)(t.t0)||(0,g.dL)(t.t0),this._currentRequest!==l&&this._currentRequest||this.clearRanges();case 37:case"end":return t.stop()}}),t,this,[[0,33]])})))})),this._currentRequest=l,t.abrupt("return",l);case 21:case"end":return t.stop()}}),t,this)})))}}],[{key:"get",value:function(e){return e.getContribution(n.ID)}}]),n}(m.JT);B.ID="editor.contrib.linkedEditing",B.DECORATION=x.qx.register({description:"linked-editing",stickiness:0,className:F}),B=A([M(1,N.i6),M(2,L.p),M(3,E.c_),M(4,O.A)],B);var H=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.linkedEditing",label:T.NC("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:N.Ao.and(k.u.writable,k.u.hasRenameProvider),kbOpts:{kbExpr:k.u.editorTextFocus,primary:3132,weight:100}})}return(0,a.Z)(n,[{key:"runCommand",value:function(e,t){var r=this,o=e.get(C.$),a=Array.isArray(t)&&t||[void 0,void 0],c=(0,i.Z)(a,2),u=c[0],d=c[1];return _.o.isUri(u)&&S.L.isIPosition(d)?o.openCodeEditor({resource:u},o.getActiveCodeEditor()).then((function(e){e&&(e.setPosition(d),e.invokeWithinContext((function(t){return r.reportTelemetry(t,e),r.run(t,e)})))}),g.dL):(0,s.Z)((0,l.Z)(n.prototype),"runCommand",this).call(this,e,t)}},{key:"run",value:function(e,t){var n=B.get(t);return n?Promise.resolve(n.updateRanges(!0)):Promise.resolve()}}]),n}(b.R6),z=b._l.bindToContribution(B.get);function j(e,t,n,i){var o=this,a=e.ordered(t);return(0,h.Ps)(a.map((function(e){return function(){return P(o,void 0,void 0,(0,r.Z)().mark((function o(){return(0,r.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e.provideLinkedEditingRanges(t,n,i);case 3:return r.abrupt("return",r.sent);case 6:return r.prev=6,r.t0=r.catch(0),(0,g.Cp)(r.t0),r.abrupt("return",void 0);case 10:case"end":return r.stop()}}),o,null,[[0,6]])})))}})),(function(e){return!!e&&d.Of(null===e||void 0===e?void 0:e.ranges)}))}(0,b.fK)(new z({id:"cancelLinkedEditingInput",precondition:Z,handler:function(e){return e.clearRanges()},kbOpts:{kbExpr:k.u.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));var V=(0,I.P6G)("editor.linkedEditingBackground",{dark:p.Il.fromHex("#f00").transparent(.3),light:p.Il.fromHex("#f00").transparent(.3),hcDark:p.Il.fromHex("#f00").transparent(.3),hcLight:p.Il.white},T.NC("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,D.Ic)((function(e,t){var n=e.getColor(V);n&&t.addRule(".monaco-editor .".concat(F," { background: ").concat(n,"; border-left-color: ").concat(n,"; }"))})),(0,b.sb)("_executeLinkedEditingProvider",(function(e,t,n){return j(e.get(L.p).linkedEditingRangeProvider,t,n,f.T.None)})),(0,b._K)(B.ID,B),(0,b.Qr)(H)},93161:function(e,t,n){"use strict";n.r(t),n.d(t,{LinkDetector:function(){return W}});var i=n(37762),r=n(74165),o=n(29439),a=n(15671),s=n(43144),l=n(11752),c=n(61120),u=n(60136),d=n(27277),h=n(60022),f=n(82784),p=n(14173),g=n(61066),v=n(11860),m=n(84855),y=n(73616),_=n(41175),b=n(25),C=n(72112),S=n(62381),w=n(70845),k=n(98971),x=n(53584),E=n(25047),T=n(29671),N=n(85294),I=n(80133),D=n(29257),L=n(11133),O=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},R=function(){function e(t,n){(0,a.Z)(this,e),this._link=t,this._provider=n}return(0,s.Z)(e,[{key:"toJSON",value:function(){return{range:this.range,url:this.url,tooltip:this.tooltip}}},{key:"range",get:function(){return this._link.range}},{key:"url",get:function(){return this._link.url}},{key:"tooltip",get:function(){return this._link.tooltip}},{key:"resolve",value:function(e){return O(this,void 0,void 0,(0,r.Z)().mark((function t(){var n=this;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._link.url){t.next=2;break}return t.abrupt("return",this._link.url);case 2:if("function"!==typeof this._provider.resolveLink){t.next=4;break}return t.abrupt("return",Promise.resolve(this._provider.resolveLink(this._link,e)).then((function(t){return n._link=t||n._link,n._link.url?n.resolve(e):Promise.reject(new Error("missing"))})));case 4:return t.abrupt("return",Promise.reject(new Error("missing")));case 5:case"end":return t.stop()}}),t,this)})))}}]),e}(),A=function(){function e(t){var n=this;(0,a.Z)(this,e),this._disposables=new v.SL;var r,s=[],l=(0,i.Z)(t);try{var c=function(){var t=(0,o.Z)(r.value,2),i=t[0],a=t[1],l=i.links.map((function(e){return new R(e,a)}));s=e._union(s,l),(0,v.Wf)(i)&&n._disposables.add(i)};for(l.s();!(r=l.n()).done;)c()}catch(u){l.e(u)}finally{l.f()}this.links=s}return(0,s.Z)(e,[{key:"dispose",value:function(){this._disposables.dispose(),this.links.length=0}}],[{key:"_union",value:function(e,t){var n,i,r,o,a=[];for(n=0,r=0,i=e.length,o=t.length;n<i&&r<o;){var s=e[n],l=t[r];if(I.e.areIntersectingOrTouching(s.range,l.range))n++;else I.e.compareRangesUsingStarts(s.range,l.range)<0?(a.push(s),n++):(a.push(l),r++)}for(;n<i;n++)a.push(e[n]);for(;r<o;r++)a.push(t[r]);return a}}]),e}();function M(e,t,n){var i=[],r=e.ordered(t).reverse().map((function(e,r){return Promise.resolve(e.provideLinks(t,n)).then((function(t){t&&(i[r]=[t,e])}),p.Cp)}));return Promise.all(r).then((function(){var e=new A((0,T.kX)(i));return n.isCancellationRequested?(e.dispose(),new A([])):e}))}L.P0.registerCommand("_executeLinkProvider",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return O(void 0,void 0,void 0,(0,r.Z)().mark((function t(){var i,o,a,s,l,c,u,d;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n[0],o=n[1],(0,N.p_)(i instanceof C.o),"number"!==typeof o&&(o=0),a=e.get(x.p),s=a.linkProvider,l=e.get(D.q).getModel(i)){t.next=7;break}return t.abrupt("return",[]);case 7:return t.next=9,M(s,l,f.T.None);case 9:if(c=t.sent){t.next=12;break}return t.abrupt("return",[]);case 12:u=0;case 13:if(!(u<Math.min(o,c.links.length))){t.next=19;break}return t.next=16,c.links[u].resolve(f.T.None);case 16:u++,t.next=13;break;case 19:return d=c.links.slice(0),c.dispose(),t.abrupt("return",d);case 22:case"end":return t.stop()}}),t)})))}));var P=n(27722),Z=n(15493),F=n(83078),B=n(32379),H=n(64014),z=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},j=function(e,t){return function(n,i){t(n,i,e)}},V=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},W=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,i,r,s,l){var c;(0,a.Z)(this,n),(c=t.call(this)).editor=e,c.openerService=i,c.notificationService=r,c.languageFeaturesService=s,c.providers=c.languageFeaturesService.linkProvider,c.debounceInformation=l.for(c.providers,"Links",{min:1e3,max:4e3}),c.computeLinks=c._register(new h.pY((function(){return c.computeLinksNow()}),1e3)),c.computePromise=null,c.activeLinksList=null,c.currentOccurrences={},c.activeLinkDecorationId=null;var u=c._register(new E.yN(e));return c._register(u.onMouseMoveOrRelevantKeyDown((function(e){var t=(0,o.Z)(e,2),n=t[0],i=t[1];c._onEditorMouseMove(n,i)}))),c._register(u.onExecute((function(e){c.onEditorMouseUp(e)}))),c._register(u.onCancel((function(e){c.cleanUpActiveLinkDecoration()}))),c._register(e.onDidChangeConfiguration((function(e){e.hasChanged(65)&&(c.updateDecorations([]),c.stop(),c.computeLinks.schedule(0))}))),c._register(e.onDidChangeModelContent((function(e){c.editor.hasModel()&&c.computeLinks.schedule(c.debounceInformation.get(c.editor.getModel()))}))),c._register(e.onDidChangeModel((function(e){c.currentOccurrences={},c.activeLinkDecorationId=null,c.stop(),c.computeLinks.schedule(0)}))),c._register(e.onDidChangeModelLanguage((function(e){c.stop(),c.computeLinks.schedule(0)}))),c._register(c.providers.onDidChange((function(e){c.stop(),c.computeLinks.schedule(0)}))),c.computeLinks.schedule(0),c}return(0,s.Z)(n,[{key:"computeLinksNow",value:function(){return V(this,void 0,void 0,(0,r.Z)().mark((function e(){var t,n,i=this;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.editor.hasModel()&&this.editor.getOption(65)){e.next=2;break}return e.abrupt("return");case 2:if(t=this.editor.getModel(),this.providers.has(t)){e.next=5;break}return e.abrupt("return");case 5:return this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,h.PG)((function(e){return M(i.providers,t,e)})),e.prev=7,n=new b.G(!1),e.next=11,this.computePromise;case 11:if(this.activeLinksList=e.sent,this.debounceInformation.update(t,n.elapsed()),!t.isDisposed()){e.next=15;break}return e.abrupt("return");case 15:this.updateDecorations(this.activeLinksList.links),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(7),(0,p.dL)(e.t0);case 21:return e.prev=21,this.computePromise=null,e.finish(21);case 24:case"end":return e.stop()}}),e,this,[[7,18,21,24]])})))}},{key:"updateDecorations",value:function(e){for(var t=this,n="altKey"===this.editor.getOption(72),r=[],o=0,a=Object.keys(this.currentOccurrences);o<a.length;o++){var s=a[o],l=this.currentOccurrences[s];r.push(l.decorationId)}var c=[];if(e){var u,d=(0,i.Z)(e);try{for(d.s();!(u=d.n()).done;){var h=u.value;c.push(G.decoration(h,n))}}catch(f){d.e(f)}finally{d.f()}}this.editor.changeDecorations((function(n){var i=n.deltaDecorations(r,c);t.currentOccurrences={},t.activeLinkDecorationId=null;for(var o=0,a=i.length;o<a;o++){var s=new G(e[o],i[o]);t.currentOccurrences[s.decorationId]=s}}))}},{key:"_onEditorMouseMove",value:function(e,t){var n=this,i="altKey"===this.editor.getOption(72);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();var r=this.getLinkOccurrence(e.target.position);r&&this.editor.changeDecorations((function(e){r.activate(e,i),n.activeLinkDecorationId=r.decorationId}))}else this.cleanUpActiveLinkDecoration()}},{key:"cleanUpActiveLinkDecoration",value:function(){var e="altKey"===this.editor.getOption(72);if(this.activeLinkDecorationId){var t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((function(n){t.deactivate(n,e)})),this.activeLinkDecorationId=null}}},{key:"onEditorMouseUp",value:function(e){if(this.isEnabled(e)){var t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}}},{key:"openLinkOccurrence",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.openerService){var r=e.link;r.resolve(f.T.None).then((function(e){if("string"===typeof e&&n.editor.hasModel()){var r=n.editor.getModel().uri;if(r.scheme===m.lg.file&&e.startsWith("".concat(m.lg.file,":"))){var o=C.o.parse(e);if(o.scheme===m.lg.file){var a=_.z_(o),s=null;a.startsWith("/./")?s=".".concat(a.substr(1)):a.startsWith("//./")&&(s=".".concat(a.substr(2))),s&&(e=_.Vo(r,s))}}}return n.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})}),(function(e){var t=e instanceof Error?e.message:e;"invalid"===t?n.notificationService.warn(P.NC("invalid.url","Failed to open this link because it is not well-formed: {0}",r.url.toString())):"missing"===t?n.notificationService.warn(P.NC("missing.url","Failed to open this link because its target is missing.")):(0,p.dL)(e)}))}}},{key:"getLinkOccurrence",value:function(e){if(!this.editor.hasModel()||!e)return null;var t,n=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0),r=(0,i.Z)(n);try{for(r.s();!(t=r.n()).done;){var o=t.value,a=this.currentOccurrences[o.id];if(a)return a}}catch(s){r.e(s)}finally{r.f()}return null}},{key:"isEnabled",value:function(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}},{key:"stop",value:function(){var e;this.computeLinks.cancel(),this.activeLinksList&&(null===(e=this.activeLinksList)||void 0===e||e.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}},{key:"dispose",value:function(){(0,l.Z)((0,c.Z)(n.prototype),"dispose",this).call(this),this.stop()}}],[{key:"get",value:function(e){return e.getContribution(n.ID)}}]),n}(v.JT);W.ID="editor.linkDetector",W=z([j(1,F.v4),j(2,Z.lT),j(3,x.p),j(4,k.A)],W);var U={general:w.qx.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:w.qx.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},G=function(){function e(t,n){(0,a.Z)(this,e),this.link=t,this.decorationId=n}return(0,s.Z)(e,[{key:"activate",value:function(t,n){t.changeDecorationOptions(this.decorationId,e._getOptions(this.link,n,!0))}},{key:"deactivate",value:function(t,n){t.changeDecorationOptions(this.decorationId,e._getOptions(this.link,n,!1))}}],[{key:"decoration",value:function(t,n){return{range:t.range,options:e._getOptions(t,n,!1)}}},{key:"_getOptions",value:function(e,t,n){var i=Object.assign({},n?U.active:U.general);return i.hoverMessage=function(e,t){var n=e.url&&/^command:/i.test(e.url.toString()),i=e.tooltip?e.tooltip:n?P.NC("links.navigate.executeCmd","Execute command"):P.NC("links.navigate.follow","Follow link"),r=t?y.dz?P.NC("links.navigate.kb.meta.mac","cmd + click"):P.NC("links.navigate.kb.meta","ctrl + click"):y.dz?P.NC("links.navigate.kb.alt.mac","option + click"):P.NC("links.navigate.kb.alt","alt + click");if(e.url){var o="";if(/^command:/i.test(e.url.toString())){var a=e.url.toString().match(/^command:([^?#]+)/);if(a){var s=a[1];o=P.NC("tooltip.explanation","Execute command {0}",s)}}return new g.W5("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),i,o).appendMarkdown(" (".concat(r,")"))}return(new g.W5).appendText("".concat(i," (").concat(r,")"))}(e,t),i}}]),e}();var K=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"editor.action.openLink",label:P.NC("label","Open Link"),alias:"Open Link",precondition:void 0})}return(0,s.Z)(n,[{key:"run",value:function(e,t){var n=W.get(t);if(n&&t.hasModel()){var r,o=t.getSelections(),a=(0,i.Z)(o);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=n.getLinkOccurrence(s.getEndPosition());l&&n.openLinkOccurrence(l,!1)}}catch(c){a.e(c)}finally{a.f()}}}}]),n}(S.R6);(0,S._K)(W.ID,W),(0,S.Qr)(K),(0,H.Ic)((function(e,t){var n=e.getColor(B._Yy);n&&t.addRule(".monaco-editor .detected-link-active { color: ".concat(n," !important; }"))}))},21919:function(e,t,n){"use strict";n.d(t,{$:function(){return B}});var i=n(74165),r=n(15671),o=n(43144),a=n(37762),s=n(93433),l=n(81531),c=n(67797),u=n(25425),d=n(94212),h=n(2524),f=n(95343),p=n(14173),g=n(73097),v=n(61066),m=n(56148),y=n(59767),_=n(11860),b={};!function(){function e(e,t){t(b)}var t,n;e.amd=!0,t=this,n=function(e){function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function i(e,t){var i="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=function(e,t){if(e){if("string"===typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){i&&(e=i);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.defaults={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var o=/[&<>"']/,a=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"},u=function(e){return c[e]};function d(e,t){if(t){if(o.test(e))return e.replace(a,u)}else if(s.test(e))return e.replace(l,u);return e}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function f(e){return e.replace(h,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var p=/(^|[^\[])\^/g;function g(e,t){e="string"===typeof e?e:e.source,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(p,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n}var v=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function y(e,t,n){if(e){var i;try{i=decodeURIComponent(f(n)).replace(v,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!m.test(n)&&(n=function(e,t){_[" "+e]||(b.test(e)?_[" "+e]=e+"/":_[" "+e]=E(e,"/",!0));var n=-1===(e=_[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(C,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(S,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n}var _={},b=/^[^:]+:\/*[^/]*$/,C=/^([^:]+:)[\s\S]*$/,S=/^([^:]+:\/*[^/]*)[\s\S]*$/,w={exec:function(){}};function k(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function x(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var i=!1,r=t;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function E(e,t,n){var i=e.length;if(0===i)return"";for(var r=0;r<i;){var o=e.charAt(i-r-1);if(o!==t||n){if(o===t||!n)break;r++}else r++}return e.slice(0,i-r)}function T(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function N(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function I(e,t,n,i){var r=t.href,o=t.title?d(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){i.state.inLink=!0;var s={type:"link",raw:n,href:r,title:o,text:a,tokens:i.inlineTokens(a,[])};return i.state.inLink=!1,s}return{type:"image",raw:n,href:r,title:o,text:d(a)}}var D=function(){function t(t){this.options=t||e.defaults}var n=t.prototype;return n.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},n.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:E(n,"\n")}}},n.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=i.length?e.slice(i.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:i}}},n.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var i=E(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}var r={type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},n.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},n.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(n,[]),text:n}}},n.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,o,a,s,l,c,u,d,h,f,p,g=t[1].trim(),v=g.length>1,m={type:"list",raw:"",ordered:v,start:v?+g.slice(0,-1):"",loose:!1,items:[]};g=v?"\\d{1,9}\\"+g.slice(-1):"\\"+g,this.options.pedantic&&(g=v?g:"[*+-]");for(var y=new RegExp("^( {0,3}"+g+")((?:[\t ][^\\n]*)?(?:\\n|$))");e&&(p=!1,t=y.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),u=t[2].split("\n",1)[0],d=e.split("\n",1)[0],this.options.pedantic?(a=2,f=u.trimLeft()):(a=(a=t[2].search(/[^ ]/))>4?1:a,f=u.slice(a),a+=t[1].length),l=!1,!u&&/^ *$/.test(d)&&(n+=d+"\n",e=e.substring(d.length+1),p=!0),!p)for(var _=new RegExp("^ {0,"+Math.min(3,a-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),b=new RegExp("^ {0,"+Math.min(3,a-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)");e&&(u=h=e.split("\n",1)[0],this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!_.test(u))&&!b.test(e);){if(u.search(/[^ ]/)>=a||!u.trim())f+="\n"+u.slice(a);else{if(l)break;f+="\n"+u}l||u.trim()||(l=!0),n+=h+"\n",e=e.substring(h.length+1)}m.loose||(c?m.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(f))&&(o="[ ] "!==r[0],f=f.replace(/^\[[ xX]\] +/,"")),m.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:f}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=f.trimRight(),m.raw=m.raw.trimRight();var C=m.items.length;for(s=0;s<C;s++){this.lexer.state.top=!1,m.items[s].tokens=this.lexer.blockTokens(m.items[s].text,[]);var S=m.items[s].tokens.filter((function(e){return"space"===e.type})),w=S.every((function(e){for(var t,n=0,r=i(e.raw.split(""));!(t=r()).done;)if("\n"===t.value&&(n+=1),n>1)return!0;return!1}));!m.loose&&S.length&&w&&(m.loose=!0,m.items[s].loose=!0)}return m}},n.html=function(e){var t=this.rules.block.html.exec(e);if(t){var n={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}},n.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},n.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:x(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var i,r,o,a,s=n.align.length;for(i=0;i<s;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(s=n.rows.length,i=0;i<s;i++)n.rows[i]=x(n.rows[i],n.header.length).map((function(e){return{text:e}}));for(s=n.header.length,r=0;r<s;r++)n.header[r].tokens=[],this.lexer.inline(n.header[r].text,n.header[r].tokens);for(s=n.rows.length,r=0;r<s;r++)for(a=n.rows[r],o=0;o<a.length;o++)a[o].tokens=[],this.lexer.inline(a[o].text,a[o].tokens);return n}}},n.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t){var n={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}},n.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var n={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}},n.text=function(e){var t=this.rules.block.text.exec(e);if(t){var n={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}},n.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:d(t[1])}},n.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]):t[0]}},n.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var i=E(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{var r=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])i++;else if(e[r]===t[1]&&--i<0)return r;return-1}(t[2],"()");if(r>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var a=t[2],s="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);l&&(a=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^</.test(a)&&(a=this.options.pedantic&&!/>$/.test(n)?a.slice(1):a.slice(1,-1)),I(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0],this.lexer)}},n.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=t[i.toLowerCase()])||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return I(n,i,n[0],this.lexer)}},n.emStrong=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(e);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var o,a,s=i[0].length-1,l=s,c=0,u="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+s);null!=(i=u.exec(t));)if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6])if(a=o.length,i[3]||i[4])l+=a;else if(!((i[5]||i[6])&&s%3)||(s+a)%3){if(!((l-=a)>0)){if(a=Math.min(a,a+l+c),Math.min(s,a)%2){var d=e.slice(1,s+i.index+a);return{type:"em",raw:e.slice(0,s+i.index+a+1),text:d,tokens:this.lexer.inlineTokens(d,[])}}var h=e.slice(2,s+i.index+a-1);return{type:"strong",raw:e.slice(0,s+i.index+a+1),text:h,tokens:this.lexer.inlineTokens(h,[])}}}else c+=a}}},n.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=d(n,!0),{type:"codespan",raw:t[0],text:n}}},n.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},n.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}},n.autolink=function(e,t){var n,i,r=this.rules.inline.autolink.exec(e);if(r)return i="@"===r[2]?"mailto:"+(n=d(this.options.mangle?t(r[1]):r[1])):n=d(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},n.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var i,r;if("@"===n[2])r="mailto:"+(i=d(this.options.mangle?t(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);i=d(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},n.inlineText=function(e,t){var n,i=this.rules.inline.text.exec(e);if(i)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):d(i[0]):i[0]:d(this.options.smartypants?t(i[0]):i[0]),{type:"text",raw:i[0],text:n}},t}(),L={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:w,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};L.def=g(L.def).replace("label",L._label).replace("title",L._title).getRegex(),L.bullet=/(?:[*+-]|\d{1,9}[.)])/,L.listItemStart=g(/^( *)(bull) */).replace("bull",L.bullet).getRegex(),L.list=g(L.list).replace(/bull/g,L.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+L.def.source+")").getRegex(),L._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",L._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,L.html=g(L.html,"i").replace("comment",L._comment).replace("tag",L._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),L.paragraph=g(L._paragraph).replace("hr",L.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex(),L.blockquote=g(L.blockquote).replace("paragraph",L.paragraph).getRegex(),L.normal=k({},L),L.gfm=k({},L.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),L.gfm.table=g(L.gfm.table).replace("hr",L.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex(),L.gfm.paragraph=g(L._paragraph).replace("hr",L.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",L.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex(),L.pedantic=k({},L.normal,{html:g("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",L._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:w,paragraph:g(L.normal._paragraph).replace("hr",L.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",L.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var O={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:w,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:w,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function R(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function A(e){var t,n,i="",r=e.length;for(t=0;t<r;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}O._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",O.punctuation=g(O.punctuation).replace(/punctuation/g,O._punctuation).getRegex(),O.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,O.escapedEmSt=/\\\*|\\_/g,O._comment=g(L._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),O.emStrong.lDelim=g(O.emStrong.lDelim).replace(/punct/g,O._punctuation).getRegex(),O.emStrong.rDelimAst=g(O.emStrong.rDelimAst,"g").replace(/punct/g,O._punctuation).getRegex(),O.emStrong.rDelimUnd=g(O.emStrong.rDelimUnd,"g").replace(/punct/g,O._punctuation).getRegex(),O._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,O._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,O._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,O.autolink=g(O.autolink).replace("scheme",O._scheme).replace("email",O._email).getRegex(),O._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,O.tag=g(O.tag).replace("comment",O._comment).replace("attribute",O._attribute).getRegex(),O._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,O._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,O._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,O.link=g(O.link).replace("label",O._label).replace("href",O._href).replace("title",O._title).getRegex(),O.reflink=g(O.reflink).replace("label",O._label).replace("ref",L._label).getRegex(),O.nolink=g(O.nolink).replace("ref",L._label).getRegex(),O.reflinkSearch=g(O.reflinkSearch,"g").replace("reflink",O.reflink).replace("nolink",O.nolink).getRegex(),O.normal=k({},O),O.pedantic=k({},O.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",O._label).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",O._label).getRegex()}),O.gfm=k({},O.normal,{escape:g(O.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),O.gfm.url=g(O.gfm.url,"i").replace("email",O.gfm._extended_email).getRegex(),O.breaks=k({},O.gfm,{br:g(O.br).replace("{2,}","*").getRegex(),text:g(O.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var M=function(){function n(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new D,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={block:L.normal,inline:O.normal};this.options.pedantic?(n.block=L.pedantic,n.inline=O.pedantic):this.options.gfm&&(n.block=L.gfm,this.options.breaks?n.inline=O.breaks:n.inline=O.gfm),this.tokenizer.rules=n}n.lex=function(e,t){return new n(t).lex(e)},n.lexInline=function(e,t){return new n(t).inlineTokens(e)};var i,r,o,a=n.prototype;return a.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},a.blockTokens=function(e,t){var n,i,r,o,a=this;for(void 0===t&&(t=[]),e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(function(e,t,n){return t+" ".repeat(n.length)}));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(i){return!!(n=i.call({lexer:a},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)}))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),!(i=t[t.length-1])||"paragraph"!==i.type&&"text"!==i.type?t.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),!(i=t[t.length-1])||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else if(r=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,n=e.slice(1),i=void 0;a.options.extensions.startBlock.forEach((function(e){"number"===typeof(i=e.call({lexer:this},n))&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}(),this.state.top&&(n=this.tokenizer.paragraph(r)))i=t[t.length-1],o&&"paragraph"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n),o=r.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),(i=t[t.length-1])&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);else if(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return this.state.top=!0,t},a.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},a.inlineTokens=function(e,t){var n,i,r,o=this;void 0===t&&(t=[]);var a,s,l,c=e;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(c));)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,a.index)+"["+N("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,a.index)+"["+N("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,a.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(s||(l=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(i){return!!(n=i.call({lexer:o},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)}))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),(i=t[t.length-1])&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),(i=t[t.length-1])&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,c,l))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,A))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,A))){if(r=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,n=e.slice(1),i=void 0;o.options.extensions.startInline.forEach((function(e){"number"===typeof(i=e.call({lexer:this},n))&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}(),n=this.tokenizer.inlineText(r,R))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(l=n.raw.slice(-1)),s=!0,(i=t[t.length-1])&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else e=e.substring(n.raw.length),t.push(n);return t},i=n,o=[{key:"rules",get:function(){return{block:L,inline:O}}}],(r=null)&&t(i.prototype,r),o&&t(i,o),Object.defineProperty(i,"prototype",{writable:!1}),n}(),P=function(){function t(t){this.options=t||e.defaults}var n=t.prototype;return n.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+d(i,!0)+'">'+(n?e:d(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:d(e,!0))+"</code></pre>\n"},n.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},n.html=function(e){return e},n.heading=function(e,t,n,i){return this.options.headerIds?"<h"+t+' id="'+(this.options.headerPrefix+i.slug(n))+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},n.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},n.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+i+">\n"},n.listitem=function(e){return"<li>"+e+"</li>\n"},n.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},n.paragraph=function(e){return"<p>"+e+"</p>\n"},n.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},n.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},n.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},n.strong=function(e){return"<strong>"+e+"</strong>"},n.em=function(e){return"<em>"+e+"</em>"},n.codespan=function(e){return"<code>"+e+"</code>"},n.br=function(){return this.options.xhtml?"<br/>":"<br>"},n.del=function(e){return"<del>"+e+"</del>"},n.link=function(e,t,n){if(null===(e=y(this.options.sanitize,this.options.baseUrl,e)))return n;var i='<a href="'+d(e)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>"},n.image=function(e,t,n){if(null===(e=y(this.options.sanitize,this.options.baseUrl,e)))return n;var i='<img src="'+e+'" alt="'+n+'"';return t&&(i+=' title="'+t+'"'),i+=this.options.xhtml?"/>":">"},n.text=function(e){return e},t}(),Z=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),F=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{n=e+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),B=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new P,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Z,this.slugger=new F}t.parse=function(e,n){return new t(n).parse(e)},t.parseInline=function(e,n){return new t(n).parseInline(e)};var n=t.prototype;return n.parse=function(e,t){void 0===t&&(t=!0);var n,i,r,o,a,s,l,c,u,d,h,p,g,v,m,y,_,b,C,S="",w=e.length;for(n=0;n<w;n++)if(d=e[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type])||!1===(C=this.options.extensions.renderers[d.type].call({parser:this},d))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type))switch(d.type){case"space":continue;case"hr":S+=this.renderer.hr();continue;case"heading":S+=this.renderer.heading(this.parseInline(d.tokens),d.depth,f(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":S+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(c="",l="",o=d.header.length,i=0;i<o;i++)l+=this.renderer.tablecell(this.parseInline(d.header[i].tokens),{header:!0,align:d.align[i]});for(c+=this.renderer.tablerow(l),u="",o=d.rows.length,i=0;i<o;i++){for(l="",a=(s=d.rows[i]).length,r=0;r<a;r++)l+=this.renderer.tablecell(this.parseInline(s[r].tokens),{header:!1,align:d.align[r]});u+=this.renderer.tablerow(l)}S+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(d.tokens),S+=this.renderer.blockquote(u);continue;case"list":for(h=d.ordered,p=d.start,g=d.loose,o=d.items.length,u="",i=0;i<o;i++)y=(m=d.items[i]).checked,_=m.task,v="",m.task&&(b=this.renderer.checkbox(y),g?m.tokens.length>0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=b+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=b+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:b}):v+=b),v+=this.parse(m.tokens,g),u+=this.renderer.listitem(v,_,y);S+=this.renderer.list(u,h,p);continue;case"html":S+=this.renderer.html(d.text);continue;case"paragraph":S+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(u=d.tokens?this.parseInline(d.tokens):d.text;n+1<w&&"text"===e[n+1].type;)u+="\n"+((d=e[++n]).tokens?this.parseInline(d.tokens):d.text);S+=t?this.renderer.paragraph(u):u;continue;default:var k='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(k);throw new Error(k)}else S+=C||"";return S},n.parseInline=function(e,t){t=t||this.renderer;var n,i,r,o="",a=e.length;for(n=0;n<a;n++)if(i=e[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type])||!1===(r=this.options.extensions.renderers[i.type].call({parser:this},i))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type))switch(i.type){case"escape":case"text":o+=t.text(i.text);break;case"html":o+=t.html(i.text);break;case"link":o+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break;case"image":o+=t.image(i.href,i.title,i.text);break;case"strong":o+=t.strong(this.parseInline(i.tokens,t));break;case"em":o+=t.em(this.parseInline(i.tokens,t));break;case"codespan":o+=t.codespan(i.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(i.tokens,t));break;default:var s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}else o+=r||"";return o},t}();function H(e,t,n){if("undefined"===typeof e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"===typeof t&&(n=t,t=null),T(t=k({},H.defaults,t||{})),n){var i,r=t.highlight;try{i=M.lex(e,t)}catch(l){return n(l)}var o=function(e){var o;if(!e)try{t.walkTokens&&H.walkTokens(i,t.walkTokens),o=B.parse(i,t)}catch(l){e=l}return t.highlight=r,e?n(e):n(null,o)};if(!r||r.length<3)return o();if(delete t.highlight,!i.length)return o();var a=0;return H.walkTokens(i,(function(e){"code"===e.type&&(a++,setTimeout((function(){r(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0===--a&&o()}))}),0))})),void(0===a&&o())}try{var s=M.lex(e,t);return t.walkTokens&&H.walkTokens(s,t.walkTokens),B.parse(s,t)}catch(l){if(l.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+d(l.message+"",!0)+"</pre>";throw l}}H.options=H.setOptions=function(t){var n;return k(H.defaults,t),n=H.defaults,e.defaults=n,H},H.getDefaults=r,H.defaults=e.defaults,H.use=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i,r=k.apply(void 0,[{}].concat(t)),o=H.defaults.extensions||{renderers:{},childTokens:{}};t.forEach((function(e){if(e.extensions&&(i=!0,e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=o.renderers?o.renderers[e.name]:null;o.renderers[e.name]=t?function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=e.renderer.apply(this,i);return!1===o&&(o=t.apply(this,i)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");o[e.level]?o[e.level].unshift(e.tokenizer):o[e.level]=[e.tokenizer],e.start&&("block"===e.level?o.startBlock?o.startBlock.push(e.start):o.startBlock=[e.start]:"inline"===e.level&&(o.startInline?o.startInline.push(e.start):o.startInline=[e.start]))}e.childTokens&&(o.childTokens[e.name]=e.childTokens)}))),e.renderer&&function(){var t=H.defaults.renderer||new P,n=function(n){var i=t[n];t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.renderer[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var i in e.renderer)n(i);r.renderer=t}(),e.tokenizer&&function(){var t=H.defaults.tokenizer||new D,n=function(n){var i=t[n];t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.tokenizer[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var i in e.tokenizer)n(i);r.tokenizer=t}(),e.walkTokens){var t=H.defaults.walkTokens;r.walkTokens=function(n){e.walkTokens.call(this,n),t&&t.call(this,n)}}i&&(r.extensions=o),H.setOptions(r)}))},H.walkTokens=function(e,t){for(var n,r=function(){var e=n.value;switch(t.call(H,e),e.type){case"table":for(var r,o=i(e.header);!(r=o()).done;){var a=r.value;H.walkTokens(a.tokens,t)}for(var s,l=i(e.rows);!(s=l()).done;)for(var c,u=i(s.value);!(c=u()).done;){var d=c.value;H.walkTokens(d.tokens,t)}break;case"list":H.walkTokens(e.items,t);break;default:H.defaults.extensions&&H.defaults.extensions.childTokens&&H.defaults.extensions.childTokens[e.type]?H.defaults.extensions.childTokens[e.type].forEach((function(n){H.walkTokens(e[n],t)})):e.tokens&&H.walkTokens(e.tokens,t)}},o=i(e);!(n=o()).done;)r()},H.parseInline=function(e,t){if("undefined"===typeof e||null===e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");T(t=k({},H.defaults,t||{}));try{var n=M.lexInline(e,t);return t.walkTokens&&H.walkTokens(n,t.walkTokens),B.parseInline(n,t)}catch(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+d(i.message+"",!0)+"</pre>";throw i}},H.Parser=B,H.parser=B.parse,H.Renderer=P,H.TextRenderer=Z,H.Lexer=M,H.lexer=M.lex,H.Tokenizer=D,H.Slugger=F,H.parse=H;var z=H.options,j=H.setOptions,V=H.use,W=H.walkTokens,U=H.parseInline,G=H,K=B.parse,Y=M.lex;e.Lexer=M,e.Parser=B,e.Renderer=P,e.Slugger=F,e.TextRenderer=Z,e.Tokenizer=D,e.getDefaults=r,e.lexer=Y,e.marked=H,e.options=z,e.parse=G,e.parseInline=U,e.parser=K,e.setOptions=j,e.use=V,e.walkTokens=W,Object.defineProperty(e,"__esModule",{value:!0})},"object"===typeof exports?n(exports):e.amd?e(0,n):n((t="undefined"!==typeof globalThis?globalThis:t||self).marked={})}();var C=b||exports,S=n(18042),w=n(84855),k=n(63656),x=n(41175),E=n(32377),T=n(72112);function N(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,x.i3)(e,t).toString():(0,x.i3)((0,x.XX)(e),t).toString()}function I(e,t){var n=function(e){var t=[w.lg.http,w.lg.https,w.lg.mailto,w.lg.data,w.lg.file,w.lg.vscodeFileResource,w.lg.vscodeRemote,w.lg.vscodeRemoteResource];e.isTrusted&&t.push(w.lg.command);return{config:{ALLOWED_TAGS:["ul","li","p","b","i","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],ALLOWED_ATTR:["href","data-href","target","title","src","alt","class","style","data-code","width","height","align"],ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e),i=n.config,r=n.allowedSchemes;c.v5("uponSanitizeAttribute",(function(e,t){if("style"!==t.attrName&&"class"!==t.attrName);else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}}));var o=l.hookDomPurifyHrefAndSrcSanitizer(r);try{return c.Nw(t,Object.assign(Object.assign({},i),{RETURN_TRUSTED_TYPE:!0}))}finally{c.ok("uponSanitizeAttribute"),o.dispose()}}var D,L=n(83078),O=n(72762),R=n(11252),A=n(34070),M=n(24092),P=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Z=function(e,t){return function(n,i){t(n,i,e)}},F=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},B=function(){function e(t,n,i){(0,r.Z)(this,e),this._options=t,this._languageService=n,this._openerService=i,this._onDidRenderAsync=new g.Q5,this.onDidRenderAsync=this._onDidRenderAsync.event}return(0,o.Z)(e,[{key:"dispose",value:function(){this._onDidRenderAsync.dispose()}},{key:"render",value:function(e,t,n){if(!e)return{element:document.createElement("span"),dispose:function(){}};var i=new _.SL,r=i.add(function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new _.SL,o=!1,c=(0,d.az)(n),b=function(t){var n;try{n=(0,S.Q)(decodeURIComponent(t))}catch(i){}return n?(n=(0,k.rs)(n,(function(t){return e.uris&&e.uris[t]?T.o.revive(e.uris[t]):void 0})),encodeURIComponent(JSON.stringify(n))):t},x=function(t,n){var i=e.uris&&e.uris[t],r=T.o.revive(i);return n?t.startsWith(w.lg.data+":")?t:(r||(r=T.o.parse(t)),w.Gi.asBrowserUri(r).toString(!0)):r?T.o.parse(t).toString()===r.toString()?t:(r.query&&(r=r.with({query:b(r.query)})),r.toString()):t},D=new C.Renderer;D.image=function(e,t,n){var i=[],r=[];if(e){var o=(0,v.v1)(e);e=o.href,i=o.dimensions,r.push('src="'.concat((0,v.d9)(e),'"'))}return n&&r.push('alt="'.concat((0,v.d9)(n),'"')),t&&r.push('title="'.concat((0,v.d9)(t),'"')),i.length&&(r=r.concat(i)),"<img "+r.join(" ")+">"},D.link=function(e,t,n){return"string"!==typeof e?"":(e===n&&(n=(0,v.oR)(n)),t="string"===typeof t?(0,v.d9)((0,v.oR)(t)):"",e=(e=(0,v.oR)(e)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),'<a href="'.concat(e,'" title="').concat(t||e,'">').concat(n,"</a>"))},D.paragraph=function(e){return"<p>".concat(e,"</p>")};var L=[];if(n.codeBlockRenderer&&(D.code=function(e,t){var i=y.a.nextId(),r=n.codeBlockRenderer(null!==t&&void 0!==t?t:"",e);return L.push(r.then((function(e){return[i,e]}))),'<div class="code" data-code="'.concat(i,'">').concat((0,E.YU)(e),"</div>")}),n.actionHandler){var O=n.actionHandler.disposables.add(new u.Y(c,"click")),R=n.actionHandler.disposables.add(new u.Y(c,"auxclick"));n.actionHandler.disposables.add(g.ju.any(O.event,R.event)((function(t){var i=new h.n(t);if(i.leftButton||i.middleButton){var r=i.target;if("A"===r.tagName||(r=r.parentElement)&&"A"===r.tagName)try{var o=r.dataset.href;o&&(e.baseUri&&(o=N(T.o.from(e.baseUri),o)),n.actionHandler.callback(o,i))}catch(a){(0,p.dL)(a)}finally{i.preventDefault()}}})))}e.supportHtml||(i.sanitizer=function(t){return(e.isTrusted?t.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?t:""},i.sanitize=!0,i.silent=!0),i.renderer=D;var A=null!==(t=e.value)&&void 0!==t?t:"";A.length>1e5&&(A="".concat(A.substr(0,1e5),"\u2026")),e.supportThemeIcons&&(A=(0,m.f$)(A));var M=C.parse(A,i);if(e.supportThemeIcons){M=(0,f.T)(M).map((function(e){return"string"===typeof e?e:e.outerHTML})).join("")}var P=(new DOMParser).parseFromString(I(e,M),"text/html");if(P.body.querySelectorAll("img").forEach((function(t){var n=t.getAttribute("src");if(n){var i=n;try{e.baseUri&&(i=N(T.o.from(e.baseUri),i))}catch(r){}t.src=x(i,!0)}})),P.body.querySelectorAll("a").forEach((function(t){var n=t.getAttribute("href");if(t.setAttribute("href",""),!n||/^data:|javascript:/i.test(n)||/^command:/i.test(n)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(n))t.replaceWith.apply(t,(0,s.Z)(t.childNodes));else{var i=x(n,!1);e.baseUri&&(i=N(T.o.from(e.baseUri),n)),t.dataset.href=i}})),c.innerHTML=I(e,P.body.innerHTML),L.length>0&&Promise.all(L).then((function(e){var t,i;if(!o){var r,s=new Map(e),u=c.querySelectorAll("div[data-code]"),d=(0,a.Z)(u);try{for(d.s();!(r=d.n()).done;){var h=r.value,f=s.get(null!==(t=h.dataset.code)&&void 0!==t?t:"");f&&l.reset(h,f)}}catch(p){d.e(p)}finally{d.f()}null===(i=n.asyncRenderCallback)||void 0===i||i.call(n)}})),n.asyncRenderCallback){var Z,F=(0,a.Z)(c.getElementsByTagName("img"));try{var B=function(){var e=Z.value,t=r.add(l.addDisposableListener(e,"load",(function(){t.dispose(),n.asyncRenderCallback()})))};for(F.s();!(Z=F.n()).done;)B()}catch(H){F.e(H)}finally{F.f()}}return{element:c,dispose:function(){o=!0,r.dispose()}}}(e,Object.assign(Object.assign({},this._getRenderOptions(e,i)),t),n));return{element:r.element,dispose:function(){return i.dispose()}}}},{key:"_getRenderOptions",value:function(t,n){var r=this;return{codeBlockRenderer:function(t,n){return F(r,void 0,void 0,(0,i.Z)().mark((function r(){var o,a,s,l,c,u,d;return(0,i.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t?l=this._languageService.getLanguageIdByLanguageName(t):this._options.editor&&(l=null===(o=this._options.editor.getModel())||void 0===o?void 0:o.getLanguageId()),l||(l=M.bd),i.next=4,(0,R.C2)(this._languageService,n,l);case 4:return c=i.sent,(u=document.createElement("span")).innerHTML=null!==(s=null===(a=e._ttpTokenizer)||void 0===a?void 0:a.createHTML(c))&&void 0!==s?s:c,this._options.editor?(d=this._options.editor.getOption(46),(0,A.N)(u,d)):this._options.codeBlockFontFamily&&(u.style.fontFamily=this._options.codeBlockFontFamily),void 0!==this._options.codeBlockFontSize&&(u.style.fontSize=this._options.codeBlockFontSize),i.abrupt("return",u);case 10:case"end":return i.stop()}}),r,this)})))},asyncRenderCallback:function(){return r._onDidRenderAsync.fire()},actionHandler:{callback:function(e){return r._openerService.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:t.isTrusted}).catch(p.dL)},disposables:n}}}}]),e}();B._ttpTokenizer=null===(D=window.trustedTypes)||void 0===D?void 0:D.createPolicy("tokenizeToString",{createHTML:function(e){return e}}),B=P([Z(1,O.O),Z(2,L.v4)],B)},55824:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var i=n(15671),r=n(43144),o=n(4801),a=n(60022),s=n(11860),l=n(62381),c=n(80133),u=n(27722),d=n(34509),h=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},f=function(e,t){return function(n,i){t(n,i,e)}},p=function(){function e(t,n){(0,i.Z)(this,e),this._messageWidget=new s.XK,this._messageListeners=new s.SL,this._editor=t,this._visible=e.MESSAGE_VISIBLE.bindTo(n)}return(0,r.Z)(e,[{key:"dispose",value:function(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}},{key:"showMessage",value:function(e,t){var n,i=this;(0,o.Z9)(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new v(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidDispose((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeModel((function(){return i.closeMessage()}))),this._messageListeners.add(new a._F((function(){return i.closeMessage()}),3e3)),this._messageListeners.add(this._editor.onMouseMove((function(e){e.target.position&&(n?n.containsPosition(e.target.position)||i.closeMessage():n=new c.e(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))}},{key:"closeMessage",value:function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(v.fadeOut(this._messageWidget.value))}}],[{key:"get",value:function(t){return t.getContribution(e.ID)}}]),e}();p.ID="editor.contrib.messageController",p.MESSAGE_VISIBLE=new d.uy("messageVisible",!1,u.NC("messageVisible","Whether the editor is currently showing an inline message")),p=h([f(1,d.i6)],p);var g=l._l.bindToContribution(p.get);(0,l.fK)(new g({id:"leaveEditorMessage",precondition:p.MESSAGE_VISIBLE,handler:function(e){return e.closeMessage()},kbOpts:{weight:130,primary:9}}));var v=function(){function e(t,n,r){var o=n.lineNumber,a=n.column;(0,i.Z)(this,e),this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=t,this._editor.revealLinesInCenterIfOutsideViewport(o,o,0),this._position={lineNumber:o,column:a},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";var s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);var l=document.createElement("div");l.classList.add("message"),l.textContent=r,this._domNode.appendChild(l);var c=document.createElement("div");c.classList.add("anchor","below"),this._domNode.appendChild(c),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return(0,r.Z)(e,[{key:"dispose",value:function(){this._editor.removeContentWidget(this)}},{key:"getId",value:function(){return"messageoverlay"}},{key:"getDomNode",value:function(){return this._domNode}},{key:"getPosition",value:function(){return{position:this._position,preference:[1,2],positionAffinity:1}}},{key:"afterRender",value:function(e){this._domNode.classList.toggle("below",2===e)}}],[{key:"fadeOut",value:function(e){var t=function t(){e.dispose(),clearTimeout(n),e.getDomNode().removeEventListener("animationend",t)},n=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}}]),e}();(0,l._K)(p.ID,p)},15157:function(e,t,n){"use strict";n.r(t),n.d(t,{AddSelectionToNextFindMatchAction:function(){return B},AddSelectionToPreviousFindMatchAction:function(){return H},CompatChangeAll:function(){return W},FocusNextCursor:function(){return q},FocusPreviousCursor:function(){return $},InsertCursorAbove:function(){return D},InsertCursorBelow:function(){return L},MoveSelectionToNextFindMatchAction:function(){return z},MoveSelectionToPreviousFindMatchAction:function(){return j},MultiCursorSelectionController:function(){return Z},MultiCursorSelectionControllerAction:function(){return F},MultiCursorSession:function(){return P},MultiCursorSessionResult:function(){return M},SelectHighlightsAction:function(){return V},SelectionHighlighter:function(){return G}});var i=n(11752),r=n(61120),o=n(15671),a=n(43144),s=n(60136),l=n(27277),c=n(4801),u=n(60022),d=n(16321),h=n(11860),f=n(62381),p=n(36756),g=n(80133),v=n(23145),m=n(67245),y=n(36550),_=n(70845),b=n(22155),C=n(27722),S=n(48996),w=n(34509),k=n(32379),x=n(64014),E=n(53584),T=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},N=function(e,t){return function(n,i){t(n,i,e)}};function I(e,t){var n=t.filter((function(t){return!e.find((function(e){return e.equals(t)}))}));if(n.length>=1){var i=n.map((function(e){return"line ".concat(e.viewState.position.lineNumber," column ").concat(e.viewState.position.column)})).join(", "),r=1===n.length?C.NC("cursorAdded","Cursor added: {0}",i):C.NC("cursorsAdded","Cursors added: {0}",i);(0,c.i7)(r)}}var D=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.insertCursorAbove",label:C.NC("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:m.u.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:S.eH.MenubarSelectionMenu,group:"3_multi",title:C.NC({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){if(t.hasModel()){var i=!0;n&&!1===n.logicalLine&&(i=!1);var r=t._getViewModel();if(!r.cursorConfig.readOnly){r.model.pushStackElement();var o=r.getCursorStates();r.setCursorStates(n.source,3,p.P.addCursorUp(r,o,i)),r.revealTopMostCursor(n.source),I(o,r.getCursorStates())}}}}]),n}(f.R6),L=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.insertCursorBelow",label:C.NC("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:m.u.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:S.eH.MenubarSelectionMenu,group:"3_multi",title:C.NC({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){if(t.hasModel()){var i=!0;n&&!1===n.logicalLine&&(i=!1);var r=t._getViewModel();if(!r.cursorConfig.readOnly){r.model.pushStackElement();var o=r.getCursorStates();r.setCursorStates(n.source,3,p.P.addCursorDown(r,o,i)),r.revealBottomMostCursor(n.source),I(o,r.getCursorStates())}}}}]),n}(f.R6),O=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.insertCursorAtEndOfEachLineSelected",label:C.NC("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:m.u.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:S.eH.MenubarSelectionMenu,group:"3_multi",title:C.NC({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}return(0,a.Z)(n,[{key:"getCursorsForSelection",value:function(e,t,n){if(!e.isEmpty()){for(var i=e.startLineNumber;i<e.endLineNumber;i++){var r=t.getLineMaxColumn(i);n.push(new v.Y(i,r,i,r))}e.endColumn>1&&n.push(new v.Y(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}},{key:"run",value:function(e,t){var n=this;if(t.hasModel()){var i=t.getModel(),r=t.getSelections(),o=t._getViewModel(),a=o.getCursorStates(),s=[];r.forEach((function(e){return n.getCursorsForSelection(e,i,s)})),s.length>0&&t.setSelections(s),I(a,o.getCursorStates())}}}]),n}(f.R6),R=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.addCursorsToBottom",label:C.NC("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}return(0,a.Z)(n,[{key:"run",value:function(e,t){if(t.hasModel()){for(var n=t.getSelections(),i=t.getModel().getLineCount(),r=[],o=n[0].startLineNumber;o<=i;o++)r.push(new v.Y(o,n[0].startColumn,o,n[0].endColumn));var a=t._getViewModel(),s=a.getCursorStates();r.length>0&&t.setSelections(r),I(s,a.getCursorStates())}}}]),n}(f.R6),A=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.addCursorsToTop",label:C.NC("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}return(0,a.Z)(n,[{key:"run",value:function(e,t){if(t.hasModel()){for(var n=t.getSelections(),i=[],r=n[0].startLineNumber;r>=1;r--)i.push(new v.Y(r,n[0].startColumn,r,n[0].endColumn));var o=t._getViewModel(),a=o.getCursorStates();i.length>0&&t.setSelections(i),I(a,o.getCursorStates())}}}]),n}(f.R6),M=(0,a.Z)((function e(t,n,i){(0,o.Z)(this,e),this.selections=t,this.revealRange=n,this.revealScrollType=i})),P=function(){function e(t,n,i,r,a,s,l){(0,o.Z)(this,e),this._editor=t,this.findController=n,this.isDisconnectedFromFindController=i,this.searchText=r,this.wholeWord=a,this.matchCase=s,this.currentMatch=l}return(0,a.Z)(e,[{key:"addSelectionToNextFindMatch",value:function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new M(t.concat(e),e,0)}},{key:"moveSelectionToNextFindMatch",value:function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new M(t.slice(0,t.length-1).concat(e),e,0)}},{key:"_getNextMatch",value:function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findNextMatch(this.searchText,n.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1);return i?new v.Y(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}},{key:"addSelectionToPreviousFindMatch",value:function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new M(t.concat(e),e,0)}},{key:"moveSelectionToPreviousFindMatch",value:function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new M(t.slice(0,t.length-1).concat(e),e,0)}},{key:"_getPreviousMatch",value:function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,n.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1);return i?new v.Y(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}},{key:"selectAll",value:function(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();var t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1,1073741824)}}],[{key:"create",value:function(t,n){if(!t.hasModel())return null;var i=n.getState();if(!t.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new e(t,n,!1,i.searchString,i.wholeWord,i.matchCase,null);var r,o,a=!1,s=t.getSelections();1===s.length&&s[0].isEmpty()?(a=!0,r=!0,o=!0):(r=i.wholeWord,o=i.matchCase);var l,c=t.getSelection(),u=null;if(c.isEmpty()){var d=t.getConfiguredWordAtPosition(c.getStartPosition());if(!d)return null;l=d.word,u=new v.Y(c.startLineNumber,d.startColumn,c.startLineNumber,d.endColumn)}else l=t.getModel().getValueInRange(c).replace(/\r\n/g,"\n");return new e(t,n,a,l,r,o,u)}}]),e}(),Z=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var i;return(0,o.Z)(this,n),(i=t.call(this))._sessionDispose=i._register(new h.SL),i._editor=e,i._ignoreSelectionChange=!1,i._session=null,i}return(0,a.Z)(n,[{key:"dispose",value:function(){this._endSession(),(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this)}},{key:"_beginSessionIfNeeded",value:function(e){var t=this;if(!this._session){var n=P.create(this._editor,e);if(!n)return;this._session=n;var i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((function(e){t._ignoreSelectionChange||t._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((function(){t._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((function(e){(e.matchCase||e.wholeWord)&&t._endSession()})))}}},{key:"_endSession",value:function(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){this._session.findController.getState().change({wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0},!1)}this._session=null}},{key:"_setSelections",value:function(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}},{key:"_expandEmptyToWord",value:function(e,t){if(!t.isEmpty())return t;var n=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return n?new v.Y(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t}},{key:"_applySessionResult",value:function(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}},{key:"getSession",value:function(e){return this._session}},{key:"addSelectionToNextFindMatch",value:function(e){if(this._editor.hasModel()){if(!this._session){var t=this._editor.getSelections();if(t.length>1){var n=e.getState().matchCase;if(!K(this._editor.getModel(),t,n)){for(var i=this._editor.getModel(),r=[],o=0,a=t.length;o<a;o++)r[o]=this._expandEmptyToWord(i,t[o]);return void this._editor.setSelections(r)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}},{key:"addSelectionToPreviousFindMatch",value:function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}},{key:"moveSelectionToNextFindMatch",value:function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}},{key:"moveSelectionToPreviousFindMatch",value:function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}},{key:"selectAll",value:function(e){if(this._editor.hasModel()){var t=null,n=e.getState();if(n.isRevealed&&n.searchString.length>0&&n.isRegex){var i=this._editor.getModel();t=n.searchScope?i.findMatches(n.searchString,n.searchScope,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(119):null,!1,1073741824):i.findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(119):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(n.searchScope)}if(t.length>0){for(var r=this._editor.getSelection(),o=0,a=t.length;o<a;o++){var s=t[o];if(s.range.intersectRanges(r)){t[o]=t[0],t[0]=s;break}}this._setSelections(t.map((function(e){return new v.Y(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)})))}}}}],[{key:"get",value:function(e){return e.getContribution(n.ID)}}]),n}(h.JT);Z.ID="editor.contrib.multiCursorController";var F=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"run",value:function(e,t){var n=Z.get(t);if(n){var i=b.CommonFindController.get(t);if(i){var r=t._getViewModel();if(r){var o=r.getCursorStates();this._run(n,i),I(o,r.getCursorStates())}}}}}]),n}(f.R6),B=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.addSelectionToNextFindMatch",label:C.NC("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:m.u.focus,primary:2082,weight:100},menuOpts:{menuId:S.eH.MenubarSelectionMenu,group:"3_multi",title:C.NC({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}return(0,a.Z)(n,[{key:"_run",value:function(e,t){e.addSelectionToNextFindMatch(t)}}]),n}(F),H=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.addSelectionToPreviousFindMatch",label:C.NC("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:S.eH.MenubarSelectionMenu,group:"3_multi",title:C.NC({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}return(0,a.Z)(n,[{key:"_run",value:function(e,t){e.addSelectionToPreviousFindMatch(t)}}]),n}(F),z=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.moveSelectionToNextFindMatch",label:C.NC("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:m.u.focus,primary:(0,d.gx)(2089,2082),weight:100}})}return(0,a.Z)(n,[{key:"_run",value:function(e,t){e.moveSelectionToNextFindMatch(t)}}]),n}(F),j=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.moveSelectionToPreviousFindMatch",label:C.NC("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}return(0,a.Z)(n,[{key:"_run",value:function(e,t){e.moveSelectionToPreviousFindMatch(t)}}]),n}(F),V=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.selectHighlights",label:C.NC("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:m.u.focus,primary:3114,weight:100},menuOpts:{menuId:S.eH.MenubarSelectionMenu,group:"3_multi",title:C.NC({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}return(0,a.Z)(n,[{key:"_run",value:function(e,t){e.selectAll(t)}}]),n}(F),W=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.changeAll",label:C.NC("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:w.Ao.and(m.u.writable,m.u.editorTextFocus),kbOpts:{kbExpr:m.u.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}return(0,a.Z)(n,[{key:"_run",value:function(e,t){e.selectAll(t)}}]),n}(F),U=function(){function e(t,n,i,r,a){(0,o.Z)(this,e),this._model=t,this._searchText=n,this._matchCase=i,this._wordSeparators=r,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,a&&this._model===a._model&&this._searchText===a._searchText&&this._matchCase===a._matchCase&&this._wordSeparators===a._wordSeparators&&this._modelVersionId===a._modelVersionId&&(this._cachedFindMatches=a._cachedFindMatches)}return(0,a.Z)(e,[{key:"findMatches",value:function(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map((function(e){return e.range})),this._cachedFindMatches.sort(g.e.compareRangesUsingStarts)),this._cachedFindMatches}}]),e}(),G=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i){var r;(0,o.Z)(this,n),(r=t.call(this))._languageFeaturesService=i,r.editor=e,r._isEnabled=e.getOption(99),r._decorations=e.createDecorationsCollection(),r.updateSoon=r._register(new u.pY((function(){return r._update()}),300)),r.state=null,r._register(e.onDidChangeConfiguration((function(t){r._isEnabled=e.getOption(99)}))),r._register(e.onDidChangeCursorSelection((function(e){r._isEnabled&&(e.selection.isEmpty()?3===e.reason?(r.state&&r._setState(null),r.updateSoon.schedule()):r._setState(null):r._update())}))),r._register(e.onDidChangeModel((function(e){r._setState(null)}))),r._register(e.onDidChangeModelContent((function(e){r._isEnabled&&r.updateSoon.schedule()})));var a=b.CommonFindController.get(e);return a&&r._register(a.getState().onFindReplaceStateChange((function(e){r._update()}))),r}return(0,a.Z)(n,[{key:"_update",value:function(){this._setState(n._createState(this.state,this._isEnabled,this.editor))}},{key:"_setState",value:function(e){if(this.state=e,this.state){if(this.editor.hasModel()){var t=this.editor.getModel();if(!t.isTooLargeForTokenization()){var i=this.state.findMatches(),r=this.editor.getSelections();r.sort(g.e.compareRangesUsingStarts);for(var o=[],a=0,s=0,l=i.length,c=r.length;a<l;){var u=i[a];if(s>=c)o.push(u),a++;else{var d=g.e.compareRangesUsingStarts(u,r[s]);d<0?(!r[s].isEmpty()&&g.e.areIntersecting(u,r[s])||o.push(u),a++):(d>0||a++,s++)}}var h=this._languageFeaturesService.documentHighlightProvider.has(t)&&this.editor.getOption(74),f=o.map((function(e){return{range:e,options:h?n._SELECTION_HIGHLIGHT:n._SELECTION_HIGHLIGHT_OVERVIEW}}));this._decorations.set(f)}}}else this._decorations.clear()}},{key:"dispose",value:function(){this._setState(null),(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this)}}],[{key:"_createState",value:function(e,t,n){if(!t)return null;if(!n.hasModel())return null;var i=n.getSelection();if(i.startLineNumber!==i.endLineNumber)return null;var r=Z.get(n);if(!r)return null;var o=b.CommonFindController.get(n);if(!o)return null;var a=r.getSession(o);if(!a){var s=n.getSelections();if(s.length>1){var l=o.getState().matchCase;if(!K(n.getModel(),s,l))return null}a=P.create(n,o)}if(!a)return null;if(a.currentMatch)return null;if(/^[ \t]+$/.test(a.searchText))return null;if(a.searchText.length>200)return null;var c=o.getState(),u=c.matchCase;if(c.isRevealed){var d=c.searchString;u||(d=d.toLowerCase());var h=a.searchText;if(u||(h=h.toLowerCase()),d===h&&a.matchCase===c.matchCase&&a.wholeWord===c.wholeWord&&!c.isRegex)return null}return new U(n.getModel(),a.searchText,a.matchCase,a.wholeWord?n.getOption(119):null,e)}}]),n}(h.JT);function K(e,t,n){for(var i=Y(e,t[0],!n),r=1,o=t.length;r<o;r++){var a=t[r];if(a.isEmpty())return!1;if(i!==Y(e,a,!n))return!1}return!0}function Y(e,t,n){var i=e.getValueInRange(t);return n?i.toLowerCase():i}G.ID="editor.contrib.selectionHighlighter",G._SELECTION_HIGHLIGHT_OVERVIEW=_.qx.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",minimap:{color:(0,x.EN)(k.IYc),position:y.F5.Inline},overviewRuler:{color:(0,x.EN)(k.SPM),position:y.sh.Center}}),G._SELECTION_HIGHLIGHT=_.qx.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),G=T([N(1,E.p)],G);var q=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.focusNextCursor",label:C.NC("mutlicursor.focusNextCursor","Focus Next Cursor"),description:{description:C.NC("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){if(t.hasModel()){var i=t._getViewModel();if(!i.cursorConfig.readOnly){i.model.pushStackElement();var r=Array.from(i.getCursorStates()),o=r.shift();o&&(r.push(o),i.setCursorStates(n.source,3,r),i.revealPrimaryCursor(n.source,!0),I(r,i.getCursorStates()))}}}}]),n}(f.R6),$=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"editor.action.focusPreviousCursor",label:C.NC("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),description:{description:C.NC("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){if(t.hasModel()){var i=t._getViewModel();if(!i.cursorConfig.readOnly){i.model.pushStackElement();var r=Array.from(i.getCursorStates()),o=r.pop();o&&(r.unshift(o),i.setCursorStates(n.source,3,r),i.revealPrimaryCursor(n.source,!0),I(r,i.getCursorStates()))}}}}]),n}(f.R6);(0,f._K)(Z.ID,Z),(0,f._K)(G.ID,G),(0,f.Qr)(D),(0,f.Qr)(L),(0,f.Qr)(O),(0,f.Qr)(B),(0,f.Qr)(H),(0,f.Qr)(z),(0,f.Qr)(j),(0,f.Qr)(V),(0,f.Qr)(W),(0,f.Qr)(R),(0,f.Qr)(A),(0,f.Qr)(q),(0,f.Qr)($)},94355:function(e,t,n){"use strict";n.r(t),n.d(t,{TriggerParameterHintsAction:function(){return ae}});var i=n(15671),r=n(43144),o=n(60136),a=n(27277),s=n(11860),l=n(62381),c=n(67245),u=n(12905),d=n(74165),h=n(37762),f=n(82784),p=n(14173),g=n(85294),v=n(72112),m=n(38622),y=n(53584),_=n(95011),b=n(11133),C=n(34509),S=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},w={Visible:new C.uy("parameterHintsVisible",!1),MultipleSignatures:new C.uy("parameterHintsMultipleSignatures",!1)};function k(e,t,n,i,r){return S(this,void 0,void 0,(0,d.Z)().mark((function o(){var a,s,l,c,u;return(0,d.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:a=e.ordered(t),s=(0,h.Z)(a),o.prev=2,s.s();case 4:if((l=s.n()).done){o.next=19;break}return c=l.value,o.prev=6,o.next=9,c.provideSignatureHelp(t,n,r,i);case 9:if(!(u=o.sent)){o.next=12;break}return o.abrupt("return",u);case 12:o.next=17;break;case 14:o.prev=14,o.t0=o.catch(6),(0,p.Cp)(o.t0);case 17:o.next=4;break;case 19:o.next=24;break;case 21:o.prev=21,o.t1=o.catch(2),s.e(o.t1);case 24:return o.prev=24,s.f(),o.finish(24);case 27:return o.abrupt("return",void 0);case 28:case"end":return o.stop()}}),o,null,[[2,21,24,27],[6,14]])})))}b.P0.registerCommand("_executeSignatureHelpProvider",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return S(void 0,void 0,void 0,(0,d.Z)().mark((function t(){var i,r,o,a,s,l;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n[0],r=n[1],o=n[2],(0,g.p_)(v.o.isUri(i)),(0,g.p_)(m.L.isIPosition(r)),(0,g.p_)("string"===typeof o||!o),a=e.get(y.p),t.next=7,e.get(_.S).createModelReference(i);case 7:return s=t.sent,t.prev=8,t.next=11,k(a.signatureHelpProvider,s.object.textEditorModel,m.L.lift(r),{triggerKind:u.WW.Invoke,isRetrigger:!1,triggerCharacter:o},f.T.None);case 11:if(l=t.sent){t.next=14;break}return t.abrupt("return",void 0);case 14:return setTimeout((function(){return l.dispose()}),0),t.abrupt("return",l.value);case 16:return t.prev=16,s.dispose(),t.finish(16);case 19:case"end":return t.stop()}}),t,null,[[8,,16,19]])})))}));var x,E=n(27722),T=n(36888),N=n(29439),I=n(81531),D=n(4801),L=n(27338),O=n(2801),R=n(73097),A=n(32377),M=n(72762),P=n(21919),Z=n(97326),F=n(11752),B=n(61120),H=n(60022),z=n(54410),j=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};!function(e){e.Default={type:0};var t=(0,r.Z)((function e(t,n){(0,i.Z)(this,e),this.request=t,this.previouslyActiveHints=n,this.type=2}));e.Pending=t;var n=(0,r.Z)((function e(t){(0,i.Z)(this,e),this.hints=t,this.type=1}));e.Active=n}(x||(x={}));var V=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,r){var o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.DEFAULT_DELAY;return(0,i.Z)(this,n),(o=t.call(this))._onChangedHints=o._register(new R.Q5),o.onChangedHints=o._onChangedHints.event,o.triggerOnType=!1,o._state=x.Default,o._pendingTriggers=[],o._lastSignatureHelpResult=o._register(new s.XK),o.triggerChars=new z.q,o.retriggerChars=new z.q,o.triggerId=0,o.editor=e,o.providers=r,o.throttledDelayer=new H.vp(a),o._register(o.editor.onDidBlurEditorWidget((function(){return o.cancel()}))),o._register(o.editor.onDidChangeConfiguration((function(){return o.onEditorConfigurationChange()}))),o._register(o.editor.onDidChangeModel((function(e){return o.onModelChanged()}))),o._register(o.editor.onDidChangeModelLanguage((function(e){return o.onModelChanged()}))),o._register(o.editor.onDidChangeCursorSelection((function(e){return o.onCursorChange(e)}))),o._register(o.editor.onDidChangeModelContent((function(e){return o.onModelContentChange()}))),o._register(o.providers.onDidChange(o.onModelChanged,(0,Z.Z)(o))),o._register(o.editor.onDidType((function(e){return o.onDidType(e)}))),o.onEditorConfigurationChange(),o.onModelChanged(),o}return(0,r.Z)(n,[{key:"state",get:function(){return this._state},set:function(e){2===this._state.type&&this._state.request.cancel(),this._state=e}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state=x.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}},{key:"trigger",value:function(e,t){var n=this,i=this.editor.getModel();if(i&&this.providers.has(i)){var r=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((function(){return n.doTrigger(r)}),t).catch(p.dL)}}},{key:"next",value:function(){if(1===this.state.type){var e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t%e===e-1,i=this.editor.getOption(78).cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?0:t+1):this.cancel()}}},{key:"previous",value:function(){if(1===this.state.type){var e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=0===t,i=this.editor.getOption(78).cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?e-1:t-1):this.cancel()}}},{key:"updateActiveSignature",value:function(e){1===this.state.type&&(this.state=new x.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}},{key:"doTrigger",value:function(e){return j(this,void 0,void 0,(0,d.Z)().mark((function t(){var n,i,r,o,a,s,l,c=this;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=1===this.state.type||2===this.state.type,i=this.getLastActiveHints(),this.cancel(!0),0!==this._pendingTriggers.length){t.next=5;break}return t.abrupt("return",!1);case 5:if(r=this._pendingTriggers.reduce(W),this._pendingTriggers=[],o={triggerKind:r.triggerKind,triggerCharacter:r.triggerCharacter,isRetrigger:n,activeSignatureHelp:i},this.editor.hasModel()){t.next=10;break}return t.abrupt("return",!1);case 10:return a=this.editor.getModel(),s=this.editor.getPosition(),this.state=new x.Pending((0,H.PG)((function(e){return k(c.providers,a,s,o,e)})),i),t.prev=13,t.next=16,this.state.request;case 16:if(l=t.sent,e===this.triggerId){t.next=20;break}return null===l||void 0===l||l.dispose(),t.abrupt("return",!1);case 20:if(l&&l.value.signatures&&0!==l.value.signatures.length){t.next=27;break}return null===l||void 0===l||l.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),t.abrupt("return",!1);case 27:return this.state=new x.Active(l.value),this._lastSignatureHelpResult.value=l,this._onChangedHints.fire(this.state.hints),t.abrupt("return",!0);case 31:t.next=38;break;case 33:return t.prev=33,t.t0=t.catch(13),e===this.triggerId&&(this.state=x.Default),(0,p.dL)(t.t0),t.abrupt("return",!1);case 38:case"end":return t.stop()}}),t,this,[[13,33]])})))}},{key:"getLastActiveHints",value:function(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}},{key:"isTriggered",get:function(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}},{key:"onModelChanged",value:function(){this.cancel(),this.triggerChars=new z.q,this.retriggerChars=new z.q;var e=this.editor.getModel();if(e){var t,n=(0,h.Z)(this.providers.ordered(e));try{for(n.s();!(t=n.n()).done;){var i,r=t.value,o=(0,h.Z)(r.signatureHelpTriggerCharacters||[]);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.triggerChars.add(a.charCodeAt(0)),this.retriggerChars.add(a.charCodeAt(0))}}catch(u){o.e(u)}finally{o.f()}var s,l=(0,h.Z)(r.signatureHelpRetriggerCharacters||[]);try{for(l.s();!(s=l.n()).done;){var c=s.value;this.retriggerChars.add(c.charCodeAt(0))}}catch(u){l.e(u)}finally{l.f()}}}catch(u){n.e(u)}finally{n.f()}}}},{key:"onDidType",value:function(e){if(this.triggerOnType){var t=e.length-1,n=e.charCodeAt(t);(this.triggerChars.has(n)||this.isTriggered&&this.retriggerChars.has(n))&&this.trigger({triggerKind:u.WW.TriggerCharacter,triggerCharacter:e.charAt(t)})}}},{key:"onCursorChange",value:function(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:u.WW.ContentChange})}},{key:"onModelContentChange",value:function(){this.isTriggered&&this.trigger({triggerKind:u.WW.ContentChange})}},{key:"onEditorConfigurationChange",value:function(){this.triggerOnType=this.editor.getOption(78).enabled,this.triggerOnType||this.cancel()}},{key:"dispose",value:function(){this.cancel(!0),(0,F.Z)((0,B.Z)(n.prototype),"dispose",this).call(this)}}]),n}(s.JT);function W(e,t){switch(t.triggerKind){case u.WW.Invoke:return t;case u.WW.ContentChange:return e;case u.WW.TriggerCharacter:default:return t}}V.DEFAULT_DELAY=120;var U=n(83078),G=n(32379),K=n(96752),Y=n(59632),q=n(64014),$=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},X=function(e,t){return function(n,i){t(n,i,e)}},Q=I.$,J=(0,K.q5)("parameter-hints-next",O.lA.chevronDown,E.NC("parameterHintsNextIcon","Icon for show next parameter hint.")),ee=(0,K.q5)("parameter-hints-previous",O.lA.chevronUp,E.NC("parameterHintsPreviousIcon","Icon for show previous parameter hint.")),te=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,r,o,a,l){var c;return(0,i.Z)(this,n),(c=t.call(this)).editor=e,c.renderDisposeables=c._register(new s.SL),c.visible=!1,c.announcedLabel=null,c.allowEditorOverflow=!0,c.markdownRenderer=c._register(new P.$({editor:e},a,o)),c.model=c._register(new V(e,l.signatureHelpProvider)),c.keyVisible=w.Visible.bindTo(r),c.keyMultipleSignatures=w.MultipleSignatures.bindTo(r),c._register(c.model.onChangedHints((function(e){e?(c.show(),c.render(e)):c.hide()}))),c}return(0,r.Z)(n,[{key:"createParameterHintDOMNodes",value:function(){var e=this,t=Q(".editor-widget.parameter-hints-widget"),n=I.append(t,Q(".phwrapper"));n.tabIndex=-1;var i=I.append(n,Q(".controls")),r=I.append(i,Q(".button"+q.kS.asCSSSelector(ee))),o=I.append(i,Q(".overloads")),a=I.append(i,Q(".button"+q.kS.asCSSSelector(J)));this._register(I.addDisposableListener(r,"click",(function(t){I.EventHelper.stop(t),e.previous()}))),this._register(I.addDisposableListener(a,"click",(function(t){I.EventHelper.stop(t),e.next()})));var s=Q(".body"),l=new L.s$(s,{alwaysConsumeMouseWheel:!0});this._register(l),n.appendChild(l.getDomNode());var c=I.append(s,Q(".signature")),u=I.append(s,Q(".docs"));t.style.userSelect="text",this.domNodes={element:t,signature:c,overloads:o,docs:u,scrollbar:l},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((function(t){e.visible&&e.editor.layoutContentWidget(e)})));var d=function(){if(e.domNodes){var t=e.editor.getOption(46);e.domNodes.element.style.fontSize="".concat(t.fontSize,"px"),e.domNodes.element.style.lineHeight="".concat(t.lineHeight/t.fontSize)}};d(),this._register(R.ju.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(46)})).on(d,null)),this._register(this.editor.onDidLayoutChange((function(t){return e.updateMaxHeight()}))),this.updateMaxHeight()}},{key:"show",value:function(){var e=this;this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((function(){var t;null===(t=e.domNodes)||void 0===t||t.element.classList.add("visible")}),100),this.editor.layoutContentWidget(this))}},{key:"hide",value:function(){var e;this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,null===(e=this.domNodes)||void 0===e||e.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}},{key:"getPosition",value:function(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}},{key:"render",value:function(e){var t;if(this.renderDisposeables.clear(),this.domNodes){var n=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",n),this.keyMultipleSignatures.set(n),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";var i=e.signatures[e.activeSignature];if(i){var r=I.append(this.domNodes.signature,Q(".code")),o=this.editor.getOption(46);r.style.fontSize="".concat(o.fontSize,"px"),r.style.fontFamily=o.fontFamily;var a=i.parameters.length>0,s=null!==(t=i.activeParameter)&&void 0!==t?t:e.activeParameter;if(a)this.renderParameters(r,i,s);else I.append(r,Q("span")).textContent=i.label;var l=i.parameters[s];if(null===l||void 0===l?void 0:l.documentation){var c=Q("span.documentation");if("string"===typeof l.documentation)c.textContent=l.documentation;else{var u=this.renderMarkdownDocs(l.documentation);c.appendChild(u.element)}I.append(this.domNodes.docs,Q("p",{},c))}if(void 0===i.documentation);else if("string"===typeof i.documentation)I.append(this.domNodes.docs,Q("p",{},i.documentation));else{var d=this.renderMarkdownDocs(i.documentation);I.append(this.domNodes.docs,d.element)}var h=this.hasDocs(i,l);if(this.domNodes.signature.classList.toggle("has-docs",h),this.domNodes.docs.classList.toggle("empty",!h),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,l){var f="",p=i.parameters[s];f=Array.isArray(p.label)?i.label.substring(p.label[0],p.label[1]):p.label,p.documentation&&(f+="string"===typeof p.documentation?", ".concat(p.documentation):", ".concat(p.documentation.value)),i.documentation&&(f+="string"===typeof i.documentation?", ".concat(i.documentation):", ".concat(i.documentation.value)),this.announcedLabel!==f&&(D.Z9(E.NC("hint","{0}, hint",f)),this.announcedLabel=f)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}}}},{key:"renderMarkdownDocs",value:function(e){var t=this,n=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:function(){var e;null===(e=t.domNodes)||void 0===e||e.scrollbar.scanDomNode()}}));return n.element.classList.add("markdown-docs"),n}},{key:"hasDocs",value:function(e,t){return!!(t&&"string"===typeof t.documentation&&(0,g.cW)(t.documentation).length>0)||(!!(t&&"object"===typeof t.documentation&&(0,g.cW)(t.documentation).value.length>0)||(!!(e.documentation&&"string"===typeof e.documentation&&(0,g.cW)(e.documentation).length>0)||!!(e.documentation&&"object"===typeof e.documentation&&(0,g.cW)(e.documentation.value).length>0)))}},{key:"renderParameters",value:function(e,t,n){var i=this.getParameterLabelOffsets(t,n),r=(0,N.Z)(i,2),o=r[0],a=r[1],s=document.createElement("span");s.textContent=t.label.substring(0,o);var l=document.createElement("span");l.textContent=t.label.substring(o,a),l.className="parameter active";var c=document.createElement("span");c.textContent=t.label.substring(a),I.append(e,s,l,c)}},{key:"getParameterLabelOffsets",value:function(e,t){var n=e.parameters[t];if(n){if(Array.isArray(n.label))return n.label;if(n.label.length){var i=new RegExp("(\\W|^)".concat((0,A.ec)(n.label),"(?=\\W|$)"),"g");i.test(e.label);var r=i.lastIndex-n.label.length;return r>=0?[r,i.lastIndex]:[0,0]}return[0,0]}return[0,0]}},{key:"next",value:function(){this.editor.focus(),this.model.next()}},{key:"previous",value:function(){this.editor.focus(),this.model.previous()}},{key:"cancel",value:function(){this.model.cancel()}},{key:"getDomNode",value:function(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}},{key:"getId",value:function(){return n.ID}},{key:"trigger",value:function(e){this.model.trigger(e,0)}},{key:"updateMaxHeight",value:function(){if(this.domNodes){var e=Math.max(this.editor.getLayoutInfo().height/4,250),t="".concat(e,"px");this.domNodes.element.style.maxHeight=t;var n=this.domNodes.element.getElementsByClassName("phwrapper");n.length&&(n[0].style.maxHeight=t)}}}]),n}(s.JT);te.ID="editor.widget.parameterHintsWidget",te=$([X(1,C.i6),X(2,U.v4),X(3,M.O),X(4,y.p)],te);var ne=(0,G.P6G)("editorHoverWidget.highlightForeground",{dark:G.Gwp,light:G.Gwp,hcDark:G.Gwp,hcLight:G.Gwp},E.NC("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));(0,q.Ic)((function(e,t){var n=e.getColor(G.CNo);if(n){var i=(0,Y.c3)(e.type)?2:1;t.addRule(".monaco-editor .parameter-hints-widget { border: ".concat(i,"px solid ").concat(n,"; }")),t.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid ".concat(n.transparent(.5),"; }")),t.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid ".concat(n.transparent(.5),"; }"))}var r=e.getColor(G.yJx);r&&t.addRule(".monaco-editor .parameter-hints-widget { background-color: ".concat(r,"; }"));var o=e.getColor(G.url);o&&t.addRule(".monaco-editor .parameter-hints-widget a { color: ".concat(o,"; }"));var a=e.getColor(G.sgC);a&&t.addRule(".monaco-editor .parameter-hints-widget a:hover { color: ".concat(a,"; }"));var s=e.getColor(G.Sbf);s&&t.addRule(".monaco-editor .parameter-hints-widget { color: ".concat(s,"; }"));var l=e.getColor(G.SwI);l&&t.addRule(".monaco-editor .parameter-hints-widget code { background-color: ".concat(l,"; }"));var c=e.getColor(ne);c&&t.addRule(".monaco-editor .parameter-hints-widget .parameter.active { color: ".concat(c,"}"))}));var ie=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},re=function(e,t){return function(n,i){t(n,i,e)}},oe=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,r){var o;return(0,i.Z)(this,n),(o=t.call(this)).editor=e,o.widget=o._register(r.createInstance(te,o.editor)),o}return(0,r.Z)(n,[{key:"cancel",value:function(){this.widget.cancel()}},{key:"previous",value:function(){this.widget.previous()}},{key:"next",value:function(){this.widget.next()}},{key:"trigger",value:function(e){this.widget.trigger(e)}}],[{key:"get",value:function(e){return e.getContribution(n.ID)}}]),n}(s.JT);oe.ID="editor.controller.parameterHints",oe=ie([re(1,T.TG)],oe);var ae=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{id:"editor.action.triggerParameterHints",label:E.NC("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:c.u.hasSignatureHelpProvider,kbOpts:{kbExpr:c.u.editorTextFocus,primary:3082,weight:100}})}return(0,r.Z)(n,[{key:"run",value:function(e,t){var n=oe.get(t);n&&n.trigger({triggerKind:u.WW.Invoke})}}]),n}(l.R6);(0,l._K)(oe.ID,oe),(0,l.Qr)(ae);var se=l._l.bindToContribution(oe.get);(0,l.fK)(new se({id:"closeParameterHints",precondition:w.Visible,handler:function(e){return e.cancel()},kbOpts:{weight:175,kbExpr:c.u.focus,primary:9,secondary:[1033]}})),(0,l.fK)(new se({id:"showPrevParameterHint",precondition:C.Ao.and(w.Visible,w.MultipleSignatures),handler:function(e){return e.previous()},kbOpts:{weight:175,kbExpr:c.u.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,l.fK)(new se({id:"showNextParameterHint",precondition:C.Ao.and(w.Visible,w.MultipleSignatures),handler:function(e){return e.next()},kbOpts:{weight:175,kbExpr:c.u.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},33800:function(e,t,n){"use strict";n.d(t,{Fw:function(){return B},Jy:function(){return I},vk:function(){return V},rc:function(){return z},SC:function(){return K},M8:function(){return Y},KY:function(){return W},IH:function(){return U},R7:function(){return G}});var i=n(11752),r=n(61120),o=n(60136),a=n(27277),s=n(15671),l=n(43144),c=n(81531),u=n(78644),d=n(18247),h=n(2801),f=n(62458),p=n(73097),g=n(63656),v=n(62381),m=n(98596),y=n(96535),_=n(24674),b=n(59767),C=n(11860),S=n(80133),w=n(70845),k=new f.Il(new f.VS(0,122,204)),x={showArrow:!0,showFrame:!0,className:"",frameColor:k,arrowColor:k,keepEditorSelection:!1},E=function(){function e(t,n,i,r,o,a){(0,s.Z)(this,e),this.id="",this.domNode=t,this.afterLineNumber=n,this.afterColumn=i,this.heightInLines=r,this._onDomNodeTop=o,this._onComputedHeight=a}return(0,l.Z)(e,[{key:"onDomNodeTop",value:function(e){this._onDomNodeTop(e)}},{key:"onComputedHeight",value:function(e){this._onComputedHeight(e)}}]),e}(),T=function(){function e(t,n){(0,s.Z)(this,e),this._id=t,this._domNode=n}return(0,l.Z)(e,[{key:"getId",value:function(){return this._id}},{key:"getDomNode",value:function(){return this._domNode}},{key:"getPosition",value:function(){return null}}]),e}(),N=function(){function e(t){(0,s.Z)(this,e),this._editor=t,this._ruleName=e._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}return(0,l.Z)(e,[{key:"dispose",value:function(){this.hide(),c.removeCSSRulesContainingSelector(this._ruleName)}},{key:"color",set:function(e){this._color!==e&&(this._color=e,this._updateStyle())}},{key:"height",set:function(e){this._height!==e&&(this._height=e,this._updateStyle())}},{key:"_updateStyle",value:function(){c.removeCSSRulesContainingSelector(this._ruleName),c.createCSSRule(".monaco-editor ".concat(this._ruleName),"border-style: solid; border-color: transparent; border-bottom-color: ".concat(this._color,"; border-width: ").concat(this._height,"px; bottom: -").concat(this._height,"px; margin-left: -").concat(this._height,"px; "))}},{key:"show",value:function(e){1===e.column&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:S.e.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}},{key:"hide",value:function(){this._decorations.clear()}}]),e}();N._IdGenerator=new b.R(".arrow-decoration-");var I,D=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.Z)(this,e),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new C.SL,this.container=null,this._isShowing=!1,this.editor=t,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=g.I8(i),g.jB(this.options,x,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((function(e){var t=n._getWidth(e);n.domNode.style.width=t+"px",n.domNode.style.left=n._getLeft(e)+"px",n._onWidth(t)})))}return(0,l.Z)(e,[{key:"dispose",value:function(){var e=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((function(t){e._viewZone&&t.removeZone(e._viewZone.id),e._viewZone=null})),this._positionMarkerId.clear(),this._disposables.dispose()}},{key:"create",value:function(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new N(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}},{key:"style",value:function(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}},{key:"_applyStyles",value:function(){if(this.container&&this.options.frameColor){var e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){var t=this.options.arrowColor.toString();this._arrow.color=t}}},{key:"_getWidth",value:function(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}},{key:"_getLeft",value:function(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}},{key:"_onViewZoneTop",value:function(e){this.domNode.style.top=e+"px"}},{key:"_onViewZoneHeight",value:function(e){if(this.domNode.style.height="".concat(e,"px"),this.container){var t=e-this._decoratingElementsHeight();this.container.style.height="".concat(t,"px");var n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n))}this._resizeSash&&this._resizeSash.layout()}},{key:"position",get:function(){var e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}},{key:"show",value:function(e,t){var n=S.e.isIRange(e)?S.e.lift(e):S.e.fromPositions(e);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId.set([{range:n,options:w.qx.EMPTY}])}},{key:"hide",value:function(){var e=this;this._viewZone&&(this.editor.changeViewZones((function(t){e._viewZone&&t.removeZone(e._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()}},{key:"_decoratingElementsHeight",value:function(){var e=this.editor.getOption(61),t=0;this.options.showArrow&&(t+=2*Math.round(e/3));this.options.showFrame&&(t+=2*Math.round(e/9));return t}},{key:"_showImpl",value:function(e,t){var n=this,i=e.getStartPosition(),r=this.editor.getLayoutInfo(),o=this._getWidth(r);this.domNode.style.width="".concat(o,"px"),this.domNode.style.left=this._getLeft(r)+"px";var a=document.createElement("div");a.style.overflow="hidden";var s=this.editor.getOption(61),l=Math.max(12,this.editor.getLayoutInfo().height/s*.8);t=Math.min(t,l);var c=0,u=0;if(this._arrow&&this.options.showArrow&&(c=Math.round(s/3),this._arrow.height=c,this._arrow.show(i)),this.options.showFrame&&(u=Math.round(s/9)),this.editor.changeViewZones((function(e){n._viewZone&&e.removeZone(n._viewZone.id),n._overlayWidget&&(n.editor.removeOverlayWidget(n._overlayWidget),n._overlayWidget=null),n.domNode.style.top="-1000px",n._viewZone=new E(a,i.lineNumber,i.column,t,(function(e){return n._onViewZoneTop(e)}),(function(e){return n._onViewZoneHeight(e)})),n._viewZone.id=e.addZone(n._viewZone),n._overlayWidget=new T("vs.editor.contrib.zoneWidget"+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget)})),this.container&&this.options.showFrame){var d=this.options.frameWidth?this.options.frameWidth:u;this.container.style.borderTopWidth=d+"px",this.container.style.borderBottomWidth=d+"px"}var h=t*s-this._decoratingElementsHeight();this.container&&(this.container.style.top=c+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,o),this.options.keepEditorSelection||this.editor.setSelection(e);var f=this.editor.getModel();if(f){var p=e.endLineNumber+1;p<=f.getLineCount()?this.revealLine(p,!1):this.revealLine(f.getLineCount(),!0)}}},{key:"revealLine",value:function(e,t){t?this.editor.revealLineInCenter(e,0):this.editor.revealLine(e,0)}},{key:"setCssClass",value:function(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}},{key:"_onWidth",value:function(e){}},{key:"_doLayout",value:function(e,t){}},{key:"_relayout",value:function(e){var t=this;this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((function(n){t._viewZone&&(t._viewZone.heightInLines=e,n.layoutZone(t._viewZone.id))}))}},{key:"_initSash",value:function(){var e,t=this;this._resizeSash||(this._resizeSash=this._disposables.add(new _.g(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((function(n){t._viewZone&&(e={startY:n.startY,heightInLines:t._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((function(){e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((function(n){if(e){var i=(n.currentY-e.startY)/t.editor.getOption(61),r=i<0?Math.ceil(i):Math.floor(i),o=e.heightInLines+r;o>5&&o<35&&t._relayout(o)}}))))}},{key:"getHorizontalSashLeft",value:function(){return 0}},{key:"getHorizontalSashTop",value:function(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}},{key:"getHorizontalSashWidth",value:function(){var e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}]),e}(),L=n(27722),O=n(14835),R=n(34509),A=n(77896),M=n(36888),P=n(32379),Z=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},F=function(e,t){return function(n,i){t(n,i,e)}},B=(0,M.yh)("IPeekViewService");(0,A.z)(B,function(){function e(){(0,s.Z)(this,e),this._widgets=new Map}return(0,l.Z)(e,[{key:"addExclusiveWidget",value:function(e,t){var n=this,i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());this._widgets.set(e,{widget:t,listener:t.onDidClose((function(){var i=n._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),n._widgets.delete(e))}))})}}]),e}()),function(e){e.inPeekEditor=new R.uy("inReferenceSearchEditor",!0,L.NC("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(I||(I={}));var H=function(){function e(t,n){(0,s.Z)(this,e),t instanceof y.H&&I.inPeekEditor.bindTo(n)}return(0,l.Z)(e,[{key:"dispose",value:function(){}}]),e}();function z(e){var t=e.get(m.$).getFocusedCodeEditor();return t instanceof y.H?t.getParentEditor():t}H.ID="editor.contrib.referenceController",H=Z([F(1,R.i6)],H),(0,v._K)(H.ID,H);var j={headerBackgroundColor:f.Il.white,primaryHeadingColor:f.Il.fromHex("#333333"),secondaryHeadingColor:f.Il.fromHex("#6c6c6cb3")},V=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r){var o;return(0,s.Z)(this,n),(o=t.call(this,e,i)).instantiationService=r,o._onDidClose=new p.Q5,o.onDidClose=o._onDidClose.event,g.jB(o.options,j,!1),o}return(0,l.Z)(n,[{key:"dispose",value:function(){this.disposed||(this.disposed=!0,(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this),this._onDidClose.fire(this))}},{key:"style",value:function(e){var t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),(0,i.Z)((0,r.Z)(n.prototype),"style",this).call(this,e)}},{key:"_applyStyles",value:function(){(0,i.Z)((0,r.Z)(n.prototype),"_applyStyles",this).call(this);var e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}},{key:"_fillContainer",value:function(e){this.setCssClass("peekview-widget"),this._headElement=c.$(".head"),this._bodyElement=c.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}},{key:"_fillHead",value:function(e,t){var n=this,i=c.$(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),c.addStandardDisposableListener(i,"click",(function(e){return n._onTitleClick(e)}))),c.append(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=c.$("span.filename"),this._secondaryHeading=c.$("span.dirname"),this._metaHeading=c.$("span.meta"),c.append(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);var r=c.$(".peekview-actions");c.append(this._headElement,r);var o=this._getActionBarOptions();this._actionbarWidget=new u.o(r,o),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new d.aU("peekview.close",L.NC("label.close","Close"),h.lA.close.classNames,!0,(function(){return n.dispose(),Promise.resolve()})),{label:!1,icon:!0})}},{key:"_fillTitleIcon",value:function(e){}},{key:"_getActionBarOptions",value:function(){return{actionViewItemProvider:O.Id.bind(void 0,this.instantiationService),orientation:0}}},{key:"_onTitleClick",value:function(e){}},{key:"setTitle",value:function(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:c.clearNode(this._secondaryHeading))}},{key:"setMetaTitle",value:function(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,c.show(this._metaHeading)):c.hide(this._metaHeading))}},{key:"_doLayout",value:function(e,t){if(!this._isShowing&&e<0)this.dispose();else{var n=Math.ceil(1.2*this.editor.getOption(61)),i=Math.round(e-(n+2));this._doLayoutHead(n,t),this._doLayoutBody(i,t)}}},{key:"_doLayoutHead",value:function(e,t){this._headElement&&(this._headElement.style.height="".concat(e,"px"),this._headElement.style.lineHeight=this._headElement.style.height)}},{key:"_doLayoutBody",value:function(e,t){this._bodyElement&&(this._bodyElement.style.height="".concat(e,"px"))}}]),n}(D);V=Z([F(2,M.TG)],V);var W=(0,P.P6G)("peekViewTitle.background",{dark:(0,P.ZnX)(P.c63,.1),light:(0,P.ZnX)(P.c63,.1),hcDark:null,hcLight:null},L.NC("peekViewTitleBackground","Background color of the peek view title area.")),U=(0,P.P6G)("peekViewTitleLabel.foreground",{dark:f.Il.white,light:f.Il.black,hcDark:f.Il.white,hcLight:P.NOs},L.NC("peekViewTitleForeground","Color of the peek view title.")),G=(0,P.P6G)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},L.NC("peekViewTitleInfoForeground","Color of the peek view title info.")),K=(0,P.P6G)("peekView.border",{dark:P.c63,light:P.c63,hcDark:P.lRK,hcLight:P.lRK},L.NC("peekViewBorder","Color of the peek view borders and arrow.")),Y=(0,P.P6G)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:f.Il.black,hcLight:f.Il.white},L.NC("peekViewResultsBackground","Background color of the peek view result list.")),q=((0,P.P6G)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:f.Il.white,hcLight:P.NOs},L.NC("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),(0,P.P6G)("peekViewResult.fileForeground",{dark:f.Il.white,light:"#1E1E1E",hcDark:f.Il.white,hcLight:P.NOs},L.NC("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),(0,P.P6G)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},L.NC("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),(0,P.P6G)("peekViewResult.selectionForeground",{dark:f.Il.white,light:"#6C6C6C",hcDark:f.Il.white,hcLight:P.NOs},L.NC("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),(0,P.P6G)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:f.Il.black,hcLight:f.Il.white},L.NC("peekViewEditorBackground","Background color of the peek view editor.")));(0,P.P6G)("peekViewEditorGutter.background",{dark:q,light:q,hcDark:q,hcLight:q},L.NC("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),(0,P.P6G)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},L.NC("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),(0,P.P6G)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},L.NC("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),(0,P.P6G)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:P.xL1,hcLight:P.xL1},L.NC("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},99984:function(e,t,n){"use strict";n.d(t,{X:function(){return f}});var i=n(29439),r=n(15671),o=n(43144),a=n(11541),s=n(11860),l=n(85294),c=n(64314),u=n(36550),d=n(29700),h=n(64014),f=function(){function e(t){(0,r.Z)(this,e),this.options=t,this.rangeHighlightDecorationId=void 0}return(0,o.Z)(e,[{key:"provide",value:function(e,t){var n,i=this,r=new s.SL;e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;var o=r.add(new s.XK);return o.value=this.doProvide(e,t),r.add(this.onDidActiveTextEditorControlChange((function(){o.value=void 0,o.value=i.doProvide(e,t)}))),r}},{key:"doProvide",value:function(e,t){var n=this,i=new s.SL,r=this.activeTextEditorControl;if(r&&this.canProvideWithTextEditor(r)){var o={editor:r},u=(0,c.Pi)(r);if(u){var d=(0,l.f6)(r.saveViewState());i.add(u.onDidChangeCursorPosition((function(){d=(0,l.f6)(r.saveViewState())}))),o.restoreViewState=function(){d&&r===n.activeTextEditorControl&&r.restoreViewState(d)},i.add((0,a.I)(t.onCancellationRequested)((function(){var e;return null===(e=o.restoreViewState)||void 0===e?void 0:e.call(o)})))}i.add((0,s.OF)((function(){return n.clearDecorations(r)}))),i.add(this.provideWithTextEditor(o,e,t))}else i.add(this.provideWithoutTextEditor(e,t));return i}},{key:"canProvideWithTextEditor",value:function(e){return!0}},{key:"gotoLocation",value:function(e,t){var n=e.editor;n.setSelection(t.range),n.revealRangeInCenter(t.range,0),t.preserveFocus||n.focus()}},{key:"getModel",value:function(e){var t;return(0,c.QI)(e)?null===(t=e.getModel())||void 0===t?void 0:t.modified:e.getModel()}},{key:"addDecorations",value:function(e,t){var n=this;e.changeDecorations((function(e){var r=[];n.rangeHighlightDecorationId&&(r.push(n.rangeHighlightDecorationId.overviewRulerDecorationId),r.push(n.rangeHighlightDecorationId.rangeHighlightId),n.rangeHighlightDecorationId=void 0);var o=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,h.EN)(d.m9),position:u.sh.Full}}}],a=e.deltaDecorations(r,o),s=(0,i.Z)(a,2),l=s[0],c=s[1];n.rangeHighlightDecorationId={rangeHighlightId:l,overviewRulerDecorationId:c}}))}},{key:"clearDecorations",value:function(e){var t=this.rangeHighlightDecorationId;t&&(e.changeDecorations((function(e){e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])})),this.rangeHighlightDecorationId=void 0)}}]),e}()},26034:function(e,t,n){"use strict";n.r(t),n.d(t,{ReadOnlyMessageController:function(){return d}});var i=n(15671),r=n(43144),o=n(60136),a=n(27277),s=n(11860),l=n(62381),c=n(55824),u=n(27722),d=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this)).editor=e,r._register(r.editor.onDidAttemptReadOnlyEdit((function(){return r._onDidAttemptReadOnlyEdit()}))),r}return(0,r.Z)(n,[{key:"_onDidAttemptReadOnlyEdit",value:function(){var e=c.O.get(this.editor);e&&this.editor.hasModel()&&(this.editor.isSimpleWidget?e.showMessage(u.NC("editor.simple.readonly","Cannot edit in read-only input"),this.editor.getPosition()):e.showMessage(u.NC("editor.readonly","Cannot edit in read-only editor"),this.editor.getPosition()))}}]),n}(s.JT);d.ID="editor.contrib.readOnlyMessageController",(0,l._K)(d.ID,d)},3565:function(e,t,n){"use strict";n.r(t),n.d(t,{RenameAction:function(){return q},rename:function(){return K}});var i=n(29439),r=n(11752),o=n(61120),a=n(60136),s=n(27277),l=n(74165),c=n(15671),u=n(43144),d=n(4801),h=n(60022),f=n(82784),p=n(14173),g=n(11860),v=n(85294),m=n(72112),y=n(68132),_=n(62381),b=n(23),C=n(98596),S=n(38622),w=n(80133),k=n(67245),x=n(56903),E=n(55824),T=n(27722),N=n(50818),I=n(34509),D=n(36888),L=n(11561),O=n(15493),R=n(47901),A=n(69077),M=n(47569),P=n(32379),Z=n(64014),F=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},B=function(e,t){return function(n,i){t(n,i,e)}},H=new I.uy("renameInputVisible",!1,(0,T.NC)("renameInputVisible","Whether the rename input widget is visible")),z=function(){function e(t,n,i,r,o){var a=this;(0,c.Z)(this,e),this._editor=t,this._acceptKeybindings=n,this._themeService=i,this._keybindingService=r,this._disposables=new g.SL,this.allowEditorOverflow=!0,this._visibleContextKey=H.bindTo(o),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((function(e){e.hasChanged(46)&&a._updateFont()}))),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}return(0,u.Z)(e,[{key:"dispose",value:function(){this._disposables.dispose(),this._editor.removeContentWidget(this)}},{key:"getId",value:function(){return"__renameInputWidget"}},{key:"getDomNode",value:function(){var e=this;if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",(0,T.NC)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);var t=function(){var t,n,r=(0,i.Z)(e._acceptKeybindings,2),o=r[0],a=r[1];e._keybindingService.lookupKeybinding(o),e._label.innerText=(0,T.NC)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null===(t=e._keybindingService.lookupKeybinding(o))||void 0===t?void 0:t.getLabel(),null===(n=e._keybindingService.lookupKeybinding(a))||void 0===n?void 0:n.getLabel())};t(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(t)),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())}return this._domNode}},{key:"_updateStyles",value:function(e){var t,n,i,r;if(this._input&&this._domNode){var o=e.getColor(P.rh);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(P.D0T))&&void 0!==t?t:""),this._domNode.style.boxShadow=o?" 0 0 8px 2px ".concat(o):"",this._domNode.style.color=String(null!==(n=e.getColor(P.zJb))&&void 0!==n?n:""),this._input.style.backgroundColor=String(null!==(i=e.getColor(P.sEe))&&void 0!==i?i:"");var a=e.getColor(P.dt_);this._input.style.borderWidth=a?"1px":"0px",this._input.style.borderStyle=a?"solid":"none",this._input.style.borderColor=null!==(r=null===a||void 0===a?void 0:a.toString())&&void 0!==r?r:"none"}}},{key:"_updateFont",value:function(){if(this._input&&this._label){var e=this._editor.getOption(46);this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize="".concat(e.fontSize,"px"),this._label.style.fontSize="".concat(.8*e.fontSize,"px")}}},{key:"getPosition",value:function(){return this._visible?{position:this._position,preference:[2,1]}:null}},{key:"afterRender",value:function(e){e||this.cancelInput(!0)}},{key:"acceptInput",value:function(e){var t;null===(t=this._currentAcceptInput)||void 0===t||t.call(this,e)}},{key:"cancelInput",value:function(e){var t;null===(t=this._currentCancelInput)||void 0===t||t.call(this,e)}},{key:"getInput",value:function(e,t,n,i,r,o){var a=this;this._domNode.classList.toggle("preview",r),this._position=new S.L(e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",n.toString()),this._input.setAttribute("selectionEnd",i.toString()),this._input.size=Math.max(1.1*(e.endColumn-e.startColumn),20);var s=new g.SL;return new Promise((function(e){a._currentCancelInput=function(t){return a._currentAcceptInput=void 0,a._currentCancelInput=void 0,e(t),!0},a._currentAcceptInput=function(n){0!==a._input.value.trim().length&&a._input.value!==t?(a._currentAcceptInput=void 0,a._currentCancelInput=void 0,e({newName:a._input.value,wantsPreview:r&&n})):a.cancelInput(!0)},s.add(o.onCancellationRequested((function(){return a.cancelInput(!0)}))),s.add(a._editor.onDidBlurEditorWidget((function(){return a.cancelInput(!1)}))),a._show()})).finally((function(){s.dispose(),a._hide()}))}},{key:"_show",value:function(){var e=this;this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((function(){e._input.focus(),e._input.setSelectionRange(parseInt(e._input.getAttribute("selectionStart")),parseInt(e._input.getAttribute("selectionEnd")))}),100)}},{key:"_hide",value:function(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}}]),e}();z=F([B(2,Z.XE),B(3,M.d),B(4,I.i6)],z);var j=n(53584),V=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},W=function(e,t){return function(n,i){t(n,i,e)}},U=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},G=function(){function e(t,n,i){(0,c.Z)(this,e),this.model=t,this.position=n,this._providerRenameIdx=0,this._providers=i.ordered(t)}return(0,u.Z)(e,[{key:"hasProvider",value:function(){return this._providers.length>0}},{key:"resolveRenameLocation",value:function(e){return U(this,void 0,void 0,(0,l.Z)().mark((function t(){var n,i,r,o;return(0,l.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=[],this._providerRenameIdx=0;case 2:if(!(this._providerRenameIdx<this._providers.length)){t.next=18;break}if((i=this._providers[this._providerRenameIdx]).resolveRenameLocation){t.next=6;break}return t.abrupt("break",18);case 6:return t.next=8,i.resolveRenameLocation(this.model,this.position,e);case 8:if(r=t.sent){t.next=11;break}return t.abrupt("continue",15);case 11:if(!r.rejectReason){t.next=14;break}return n.push(r.rejectReason),t.abrupt("continue",15);case 14:return t.abrupt("return",r);case 15:this._providerRenameIdx++,t.next=2;break;case 18:if(o=this.model.getWordAtPosition(this.position)){t.next=21;break}return t.abrupt("return",{range:w.e.fromPositions(this.position),text:"",rejectReason:n.length>0?n.join("\n"):void 0});case 21:return t.abrupt("return",{range:new w.e(this.position.lineNumber,o.startColumn,this.position.lineNumber,o.endColumn),text:o.word,rejectReason:n.length>0?n.join("\n"):void 0});case 22:case"end":return t.stop()}}),t,this)})))}},{key:"provideRenameEdits",value:function(e,t){return U(this,void 0,void 0,(0,l.Z)().mark((function n(){return(0,l.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this._provideRenameEdits(e,this._providerRenameIdx,[],t));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"_provideRenameEdits",value:function(e,t,n,i){return U(this,void 0,void 0,(0,l.Z)().mark((function r(){var o,a;return(0,l.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=this._providers[t]){r.next=3;break}return r.abrupt("return",{edits:[],rejectReason:n.join("\n")});case 3:return r.next=5,o.provideRenameEdits(this.model,this.position,e,i);case 5:if(a=r.sent){r.next=10;break}return r.abrupt("return",this._provideRenameEdits(e,t+1,n.concat(T.NC("no result","No result.")),i));case 10:if(!a.rejectReason){r.next=12;break}return r.abrupt("return",this._provideRenameEdits(e,t+1,n.concat(a.rejectReason),i));case 12:return r.abrupt("return",a);case 13:case"end":return r.stop()}}),r,this)})))}}]),e}();function K(e,t,n,i){return U(this,void 0,void 0,(0,l.Z)().mark((function r(){var o,a;return(0,l.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=new G(t,n,e),r.next=3,o.resolveRenameLocation(f.T.None);case 3:if(!(null===(a=r.sent)||void 0===a?void 0:a.rejectReason)){r.next=6;break}return r.abrupt("return",{edits:[],rejectReason:a.rejectReason});case 6:return r.abrupt("return",o.provideRenameEdits(i,f.T.None));case 7:case"end":return r.stop()}}),r)})))}var Y=function(){function e(t,n,i,r,o,a,s,l){var u=this;(0,c.Z)(this,e),this.editor=t,this._instaService=n,this._notificationService=i,this._bulkEditService=r,this._progressService=o,this._logService=a,this._configService=s,this._languageFeaturesService=l,this._disposableStore=new g.SL,this._cts=new f.A,this._renameInputField=this._disposableStore.add(new h.Ue((function(){return u._disposableStore.add(u._instaService.createInstance(z,u.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))})))}return(0,u.Z)(e,[{key:"dispose",value:function(){this._disposableStore.dispose(),this._cts.dispose(!0)}},{key:"run",value:function(){var e,t;return U(this,void 0,void 0,(0,l.Z)().mark((function n(){var i,r,o,a,s,c,u,f,p,g,v=this;return(0,l.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this._cts.dispose(!0),this.editor.hasModel()){n.next=3;break}return n.abrupt("return",void 0);case 3:if(i=this.editor.getPosition(),(r=new G(this.editor.getModel(),i,this._languageFeaturesService.renameProvider)).hasProvider()){n.next=7;break}return n.abrupt("return",void 0);case 7:return this._cts=new y.Dl(this.editor,5),n.prev=8,a=r.resolveRenameLocation(this._cts.token),this._progressService.showWhile(a,250),n.next=13,a;case 13:o=n.sent,n.next=20;break;case 16:return n.prev=16,n.t0=n.catch(8),null===(e=E.O.get(this.editor))||void 0===e||e.showMessage(n.t0||T.NC("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),i),n.abrupt("return",void 0);case 20:if(o){n.next=22;break}return n.abrupt("return",void 0);case 22:if(!o.rejectReason){n.next=25;break}return null===(t=E.O.get(this.editor))||void 0===t||t.showMessage(o.rejectReason,i),n.abrupt("return",void 0);case 25:if(!this._cts.token.isCancellationRequested){n.next=27;break}return n.abrupt("return",void 0);case 27:return this._cts.dispose(),this._cts=new y.Dl(this.editor,5,o.range),s=this.editor.getSelection(),c=0,u=o.text.length,w.e.isEmpty(s)||w.e.spansMultipleLines(s)||!w.e.containsRange(o.range,s)||(c=Math.max(0,s.startColumn-o.range.startColumn),u=Math.min(o.range.endColumn,s.endColumn)-o.range.startColumn),f=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),n.next=36,this._renameInputField.value.getInput(o.range,o.text,c,u,f,this._cts.token);case 36:if("boolean"!==typeof(p=n.sent)){n.next=40;break}return p&&this.editor.focus(),n.abrupt("return",void 0);case 40:return this.editor.focus(),g=(0,h.eP)(r.provideRenameEdits(p.newName,this._cts.token),this._cts.token).then((function(e){return U(v,void 0,void 0,(0,l.Z)().mark((function t(){var n=this;return(0,l.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&this.editor.hasModel()){t.next=2;break}return t.abrupt("return");case 2:if(!e.rejectReason){t.next=5;break}return this._notificationService.info(e.rejectReason),t.abrupt("return");case 5:this.editor.setSelection(w.e.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(b.fo.convert(e),{editor:this.editor,showPreview:p.wantsPreview,label:T.NC("label","Renaming '{0}' to '{1}'",null===o||void 0===o?void 0:o.text,p.newName),code:"undoredo.rename",quotableLabel:T.NC("quotableLabel","Renaming {0} to {1}",null===o||void 0===o?void 0:o.text,p.newName),respectAutoSaveConfig:!0}).then((function(e){e.ariaSummary&&(0,d.Z9)(T.NC("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",o.text,p.newName,e.ariaSummary))})).catch((function(e){n._notificationService.error(T.NC("rename.failedApply","Rename failed to apply edits")),n._logService.error(e)}));case 7:case"end":return t.stop()}}),t,this)})))}),(function(e){v._notificationService.error(T.NC("rename.failed","Rename failed to compute edits")),v._logService.error(e)})),this._progressService.showWhile(g,250),n.abrupt("return",g);case 44:case"end":return n.stop()}}),n,this,[[8,16]])})))}},{key:"acceptRenameInput",value:function(e){this._renameInputField.value.acceptInput(e)}},{key:"cancelRenameInput",value:function(){this._renameInputField.value.cancelInput(!0)}}],[{key:"get",value:function(t){return t.getContribution(e.ID)}}]),e}();Y.ID="editor.contrib.renameController",Y=V([W(1,D.TG),W(2,O.lT),W(3,b.vu),W(4,R.ek),W(5,L.VZ),W(6,x.V),W(7,j.p)],Y);var q=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,c.Z)(this,n),t.call(this,{id:"editor.action.rename",label:T.NC("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:I.Ao.and(k.u.writable,k.u.hasRenameProvider),kbOpts:{kbExpr:k.u.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}return(0,u.Z)(n,[{key:"runCommand",value:function(e,t){var a=this,s=e.get(C.$),l=Array.isArray(t)&&t||[void 0,void 0],c=(0,i.Z)(l,2),u=c[0],d=c[1];return m.o.isUri(u)&&S.L.isIPosition(d)?s.openCodeEditor({resource:u},s.getActiveCodeEditor()).then((function(e){e&&(e.setPosition(d),e.invokeWithinContext((function(t){return a.reportTelemetry(t,e),a.run(t,e)})))}),p.dL):(0,r.Z)((0,o.Z)(n.prototype),"runCommand",this).call(this,e,t)}},{key:"run",value:function(e,t){var n=Y.get(t);return n?n.run():Promise.resolve()}}]),n}(_.R6);(0,_._K)(Y.ID,Y),(0,_.Qr)(q);var $=_._l.bindToContribution(Y.get);(0,_.fK)(new $({id:"acceptRenameInput",precondition:H,handler:function(e){return e.acceptRenameInput(!1)},kbOpts:{weight:199,kbExpr:k.u.focus,primary:3}})),(0,_.fK)(new $({id:"acceptRenameInputWithPreview",precondition:I.Ao.and(H,I.Ao.has("config.editor.rename.enablePreview")),handler:function(e){return e.acceptRenameInput(!0)},kbOpts:{weight:199,kbExpr:k.u.focus,primary:1027}})),(0,_.fK)(new $({id:"cancelRenameInput",precondition:H,handler:function(e){return e.cancelRenameInput()},kbOpts:{weight:199,kbExpr:k.u.focus,primary:9,secondary:[1033]}})),(0,_.sb)("_executeDocumentRenameProvider",(function(e,t,n){for(var i=arguments.length,r=new Array(i>3?i-3:0),o=3;o<i;o++)r[o-3]=arguments[o];var a=r[0];(0,v.p_)("string"===typeof a);var s=e.get(j.p),l=s.renameProvider;return K(l,t,n,a)})),(0,_.sb)("_executePrepareRename",(function(e,t,n){return U(this,void 0,void 0,(0,l.Z)().mark((function i(){var r,o,a,s;return(0,l.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=e.get(j.p),o=r.renameProvider,a=new G(t,n,o),i.next=4,a.resolveRenameLocation(f.T.None);case 4:if(!(null===(s=i.sent)||void 0===s?void 0:s.rejectReason)){i.next=7;break}throw new Error(s.rejectReason);case 7:return i.abrupt("return",s);case 8:case"end":return i.stop()}}),i)})))})),A.B.as(N.IP.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:T.NC("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},96610:function(e,t,n){"use strict";n.d(t,{x:function(){return d}});var i=n(74165),r=n(37762),o=n(15671),a=n(43144),s=n(17832),l=n(38622),c=n(80133),u=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},d=function(){function e(){(0,o.Z)(this,e)}return(0,a.Z)(e,[{key:"provideSelectionRanges",value:function(t,n){return u(this,void 0,void 0,(0,i.Z)().mark((function o(){var a,s,l,c;return(0,i.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:a=[],s=(0,r.Z)(n),o.prev=2,c=(0,i.Z)().mark((function n(){var r,o,s;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=l.value,o=[],a.push(o),s=new Map,n.next=6,new Promise((function(n){return e._bracketsRightYield(n,0,t,r,s)}));case 6:return n.next=8,new Promise((function(n){return e._bracketsLeftYield(n,0,t,r,s,o)}));case 8:case"end":return n.stop()}}),n)})),s.s();case 5:if((l=s.n()).done){o.next=9;break}return o.delegateYield(c(),"t0",7);case 7:o.next=5;break;case 9:o.next=14;break;case 11:o.prev=11,o.t1=o.catch(2),s.e(o.t1);case 14:return o.prev=14,s.f(),o.finish(14);case 17:return o.abrupt("return",a);case 18:case"end":return o.stop()}}),o,null,[[2,11,14,17]])})))}}],[{key:"_bracketsRightYield",value:function(t,n,i,r,o){for(var a=new Map,l=Date.now();;){if(n>=e._maxRounds){t();break}if(!r){t();break}var c=i.bracketPairs.findNextBracket(r);if(!c){t();break}if(Date.now()-l>e._maxDuration){setTimeout((function(){return e._bracketsRightYield(t,n+1,i,r,o)}));break}if(c.bracketInfo.isOpeningBracket){var u=c.bracketInfo.bracketText,d=a.has(u)?a.get(u):0;a.set(u,d+1)}else{var h=c.bracketInfo.getClosedBrackets()[0].bracketText,f=a.has(h)?a.get(h):0;if(f-=1,a.set(h,Math.max(0,f)),f<0){var p=o.get(h);p||(p=new s.S,o.set(h,p)),p.push(c.range)}}r=c.range.getEndPosition()}}},{key:"_bracketsLeftYield",value:function(t,n,i,r,o,a){for(var s=new Map,l=Date.now();;){if(n>=e._maxRounds&&0===o.size){t();break}if(!r){t();break}var u=i.bracketPairs.findPrevBracket(r);if(!u){t();break}if(Date.now()-l>e._maxDuration){setTimeout((function(){return e._bracketsLeftYield(t,n+1,i,r,o,a)}));break}if(u.bracketInfo.isOpeningBracket){var d=u.bracketInfo.bracketText,h=s.has(d)?s.get(d):0;if(h-=1,s.set(d,Math.max(0,h)),h<0){var f=o.get(d);if(f){var p=f.shift();0===f.size&&o.delete(d);var g=c.e.fromPositions(u.range.getEndPosition(),p.getStartPosition()),v=c.e.fromPositions(u.range.getStartPosition(),p.getEndPosition());a.push({range:g}),a.push({range:v}),e._addBracketLeading(i,v,a)}}}else{var m=u.bracketInfo.getClosedBrackets()[0].bracketText,y=s.has(m)?s.get(m):0;s.set(m,y+1)}r=u.range.getStartPosition()}}},{key:"_addBracketLeading",value:function(e,t,n){if(t.startLineNumber!==t.endLineNumber){var i=t.startLineNumber,r=e.getLineFirstNonWhitespaceColumn(i);0!==r&&r!==t.startColumn&&(n.push({range:c.e.fromPositions(new l.L(i,r),t.getEndPosition())}),n.push({range:c.e.fromPositions(new l.L(i,1),t.getEndPosition())}));var o=i-1;if(o>0){var a=e.getLineFirstNonWhitespaceColumn(o);a===t.startColumn&&a!==e.getLineLastNonWhitespaceColumn(o)&&(n.push({range:c.e.fromPositions(new l.L(o,a),t.getEndPosition())}),n.push({range:c.e.fromPositions(new l.L(o,1),t.getEndPosition())}))}}}}]),e}();d._maxDuration=30,d._maxRounds=2},10102:function(e,t,n){"use strict";n.r(t),n.d(t,{provideSelectionRanges:function(){return M}});var i=n(37762),r=n(60136),o=n(27277),a=n(74165),s=n(15671),l=n(43144),c=n(29671),u=n(82784),d=n(14173),h=n(62381),f=n(38622),p=n(80133),g=n(23145),v=n(67245),m=n(96610),y=n(32377),_=function(){function e(){(0,s.Z)(this,e)}return(0,l.Z)(e,[{key:"provideSelectionRanges",value:function(e,t){var n,r=[],o=(0,i.Z)(t);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=[];r.push(s),this._addInWordRanges(s,e,a),this._addWordRanges(s,e,a),this._addWhitespaceLine(s,e,a),s.push({range:e.getFullModelRange()})}}catch(l){o.e(l)}finally{o.f()}return r}},{key:"_addInWordRanges",value:function(e,t,n){var i=t.getWordAtPosition(n);if(i){for(var r=i.word,o=i.startColumn,a=n.column-o,s=a,l=a,c=0;s>=0;s--){var u=r.charCodeAt(s);if(s!==a&&(95===u||45===u))break;if((0,y.mK)(u)&&(0,y.df)(c))break;c=u}for(s+=1;l<r.length;l++){var d=r.charCodeAt(l);if((0,y.df)(d)&&(0,y.mK)(c))break;if(95===d||45===d)break;c=d}s<l&&e.push({range:new p.e(n.lineNumber,o+s,n.lineNumber,o+l)})}}},{key:"_addWordRanges",value:function(e,t,n){var i=t.getWordAtPosition(n);i&&e.push({range:new p.e(n.lineNumber,i.startColumn,n.lineNumber,i.endColumn)})}},{key:"_addWhitespaceLine",value:function(e,t,n){t.getLineLength(n.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(n.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(n.lineNumber)&&e.push({range:new p.e(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})}}]),e}(),b=n(27722),C=n(48996),S=n(11133),w=n(53584),k=n(95011),x=n(85294),E=n(72112),T=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},N=function(e,t){return function(n,i){t(n,i,e)}},I=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},D=function(){function e(t,n){(0,s.Z)(this,e),this.index=t,this.ranges=n}return(0,l.Z)(e,[{key:"mov",value:function(t){var n=this.index+(t?1:-1);if(n<0||n>=this.ranges.length)return this;var i=new e(n,this.ranges);return i.ranges[n].equalsRange(this.ranges[this.index])?i.mov(t):i}}]),e}(),L=function(){function e(t,n){(0,s.Z)(this,e),this._editor=t,this._languageFeaturesService=n,this._ignoreSelection=!1}return(0,l.Z)(e,[{key:"dispose",value:function(){var e;null===(e=this._selectionListener)||void 0===e||e.dispose()}},{key:"run",value:function(e){return I(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,i,r,o=this;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._editor.hasModel()){t.next=2;break}return t.abrupt("return");case 2:if(n=this._editor.getSelections(),i=this._editor.getModel(),this._state){t.next=7;break}return t.next=7,M(this._languageFeaturesService.selectionRangeProvider,i,n.map((function(e){return e.getPosition()})),this._editor.getOption(104),u.T.None).then((function(e){var t;if(c.Of(e)&&e.length===n.length&&o._editor.hasModel()&&c.fS(o._editor.getSelections(),n,(function(e,t){return e.equalsSelection(t)}))){for(var i=function(t){e[t]=e[t].filter((function(e){return e.containsPosition(n[t].getStartPosition())&&e.containsPosition(n[t].getEndPosition())})),e[t].unshift(n[t])},r=0;r<e.length;r++)i(r);o._state=e.map((function(e){return new D(0,e)})),null===(t=o._selectionListener)||void 0===t||t.dispose(),o._selectionListener=o._editor.onDidChangeCursorPosition((function(){var e;o._ignoreSelection||(null===(e=o._selectionListener)||void 0===e||e.dispose(),o._state=void 0)}))}}));case 7:if(this._state){t.next=9;break}return t.abrupt("return");case 9:this._state=this._state.map((function(t){return t.mov(e)})),r=this._state.map((function(e){return g.Y.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())})),this._ignoreSelection=!0;try{this._editor.setSelections(r)}finally{this._ignoreSelection=!1}case 13:case"end":return t.stop()}}),t,this)})))}}],[{key:"get",value:function(t){return t.getContribution(e.ID)}}]),e}();L.ID="editor.contrib.smartSelectController",L=T([N(1,w.p)],L);var O=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e,i){var r;return(0,s.Z)(this,n),(r=t.call(this,i))._forward=e,r}return(0,l.Z)(n,[{key:"run",value:function(e,t){return I(this,void 0,void 0,(0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=L.get(t))){e.next=4;break}return e.next=4,n.run(this._forward);case 4:case"end":return e.stop()}}),e,this)})))}}]),n}(h.R6),R=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,!0,{id:"editor.action.smartSelect.expand",label:b.NC("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:v.u.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:C.eH.MenubarSelectionMenu,group:"1_basic",title:b.NC({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}return(0,l.Z)(n)}(O);S.P0.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");var A=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,!1,{id:"editor.action.smartSelect.shrink",label:b.NC("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:v.u.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:C.eH.MenubarSelectionMenu,group:"1_basic",title:b.NC({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}return(0,l.Z)(n)}(O);function M(e,t,n,r,o){return I(this,void 0,void 0,(0,a.Z)().mark((function s(){var l,u,h,g,v,y;return(0,a.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:1===(l=e.all(t).concat(new _)).length&&l.unshift(new m.x),u=[],h=[],g=(0,i.Z)(l);try{for(g.s();!(v=g.n()).done;)y=v.value,u.push(Promise.resolve(y.provideSelectionRanges(t,n,o)).then((function(e){if(c.Of(e)&&e.length===n.length)for(var t=0;t<n.length;t++){h[t]||(h[t]=[]);var r,o=(0,i.Z)(e[t]);try{for(o.s();!(r=o.n()).done;){var a=r.value;p.e.isIRange(a.range)&&p.e.containsPosition(a.range,n[t])&&h[t].push(p.e.lift(a.range))}}catch(s){o.e(s)}finally{o.f()}}}),d.Cp))}catch(s){g.e(s)}finally{g.f()}return a.next=8,Promise.all(u);case 8:return a.abrupt("return",h.map((function(e){if(0===e.length)return[];e.sort((function(e,t){return f.L.isBefore(e.getStartPosition(),t.getStartPosition())?1:f.L.isBefore(t.getStartPosition(),e.getStartPosition())||f.L.isBefore(e.getEndPosition(),t.getEndPosition())?-1:f.L.isBefore(t.getEndPosition(),e.getEndPosition())?1:0}));var n,o,a=[],l=(0,i.Z)(e);try{for(l.s();!(o=l.n()).done;){var c=o.value;(!n||p.e.containsRange(c,n)&&!p.e.equalsRange(c,n))&&(a.push(c),n=c)}}catch(s){l.e(s)}finally{l.f()}if(!r.selectLeadingAndTrailingWhitespace)return a;for(var u=[a[0]],d=1;d<a.length;d++){var h=a[d-1],g=a[d];if(g.startLineNumber!==h.startLineNumber||g.endLineNumber!==h.endLineNumber){var v=new p.e(h.startLineNumber,t.getLineFirstNonWhitespaceColumn(h.startLineNumber),h.endLineNumber,t.getLineLastNonWhitespaceColumn(h.endLineNumber));v.containsRange(h)&&!v.equalsRange(h)&&g.containsRange(v)&&!g.equalsRange(v)&&u.push(v);var m=new p.e(h.startLineNumber,1,h.endLineNumber,t.getLineMaxColumn(h.endLineNumber));m.containsRange(h)&&!m.equalsRange(v)&&g.containsRange(m)&&!g.equalsRange(m)&&u.push(m)}u.push(g)}return u})));case 9:case"end":return a.stop()}}),s)})))}(0,h._K)(L.ID,L),(0,h.Qr)(R),(0,h.Qr)(A),S.P0.registerCommand("_executeSelectionRangeProvider",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return I(this,void 0,void 0,(0,a.Z)().mark((function t(){var i,r,o,s;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n[0],r=n[1],(0,x.p_)(E.o.isUri(i)),o=e.get(w.p).selectionRangeProvider,t.next=5,e.get(k.S).createModelReference(i);case 5:return s=t.sent,t.prev=6,t.abrupt("return",M(o,s.object.textEditorModel,r,{selectLeadingAndTrailingWhitespace:!0},u.T.None));case 8:return t.prev=8,s.dispose(),t.finish(8);case 11:case"end":return t.stop()}}),t,null,[[6,,8,11]])})))}))},44152:function(e,t,n){"use strict";n.r(t),n.d(t,{SnippetController2:function(){return C},performSnippetEdit:function(){return w}});var i=n(15671),r=n(43144),o=n(11860),a=n(85294),s=n(62381),l=n(38622),c=n(23145),u=n(67245),d=n(29662),h=n(53584),f=n(96161),p=n(27722),g=n(34509),v=n(11561),m=n(92694),y=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},_=function(e,t){return function(n,i){t(n,i,e)}},b={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},C=function(){function e(t,n,r,a,s){(0,i.Z)(this,e),this._editor=t,this._logService=n,this._languageFeaturesService=r,this._languageConfigurationService=s,this._snippetListener=new o.SL,this._modelVersionId=-1,this._inSnippet=e.InSnippetMode.bindTo(a),this._hasNextTabstop=e.HasNextTabstop.bindTo(a),this._hasPrevTabstop=e.HasPrevTabstop.bindTo(a)}return(0,r.Z)(e,[{key:"dispose",value:function(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null===(e=this._session)||void 0===e||e.dispose(),this._snippetListener.dispose()}},{key:"apply",value:function(e,t){try{this._doInsert(e,"undefined"===typeof t?b:Object.assign(Object.assign({},b),t))}catch(n){this.cancel(),this._logService.error(n),this._logService.error("snippet_error"),this._logService.error("insert_edits=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}},{key:"insert",value:function(e,t){try{this._doInsert(e,"undefined"===typeof t?b:Object.assign(Object.assign({},b),t))}catch(n){this.cancel(),this._logService.error(n),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}},{key:"_doInsert",value:function(e,t){var n,i=this;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!==typeof e&&this.cancel(),this._session?((0,a.p_)("string"===typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new m.l(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),null===(n=this._session)||void 0===n?void 0:n.hasChoice){this._choiceCompletionItemProvider={provideCompletionItems:function(e,t){if(i._session&&e===i._editor.getModel()&&l.L.equals(i._editor.getPosition(),t)){var n=i._session.activeChoice;if(n&&0!==n.choice.options.length){for(var r=e.getValueInRange(n.range),o=Boolean(n.choice.options.find((function(e){return e.value===r}))),a=[],s=0;s<n.choice.options.length;s++){var c=n.choice.options[s];a.push({kind:13,label:c.value,insertText:c.value,sortText:"a".repeat(s+1),range:n.range,filterText:o?"".concat(r,"_").concat(c.value):void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,p.NC)("next","Go to next placeholder...")}})}return{suggestions:a}}}}};var r=this._languageFeaturesService.completionProvider.register({language:this._editor.getModel().getLanguageId(),pattern:this._editor.getModel().uri.fsPath,scheme:this._editor.getModel().uri.scheme},this._choiceCompletionItemProvider);this._snippetListener.add(r)}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((function(e){return e.isFlush&&i.cancel()}))),this._snippetListener.add(this._editor.onDidChangeModel((function(){return i.cancel()}))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((function(){return i._updateState()})))}}},{key:"_updateState",value:function(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}},{key:"_handleChoice",value:function(){var e=this;if(this._session&&this._editor.hasModel()){var t=this._session.activeChoice;t&&this._choiceCompletionItemProvider?this._currentChoice!==t.choice&&(this._currentChoice=t.choice,queueMicrotask((function(){(0,f.i5)(e._editor,e._choiceCompletionItemProvider)}))):this._currentChoice=void 0}else this._currentChoice=void 0}},{key:"finish",value:function(){for(;this._inSnippet.get();)this.next()}},{key:"cancel",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,null===(e=this._session)||void 0===e||e.dispose(),this._session=void 0,this._modelVersionId=-1,t&&this._editor.setSelections([this._editor.getSelection()])}},{key:"prev",value:function(){this._session&&this._session.prev(),this._updateState()}},{key:"next",value:function(){this._session&&this._session.next(),this._updateState()}},{key:"isInSnippet",value:function(){return Boolean(this._inSnippet.get())}}],[{key:"get",value:function(t){return t.getContribution(e.ID)}}]),e}();C.ID="snippetController2",C.InSnippetMode=new g.uy("inSnippetMode",!1,(0,p.NC)("inSnippetMode","Whether the editor in current in snippet mode")),C.HasNextTabstop=new g.uy("hasNextTabstop",!1,(0,p.NC)("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),C.HasPrevTabstop=new g.uy("hasPrevTabstop",!1,(0,p.NC)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),C=y([_(1,v.VZ),_(2,h.p),_(3,g.i6),_(4,d.c_)],C),(0,s._K)(C.ID,C);var S=s._l.bindToContribution(C.get);function w(e,t,n){var i=C.get(e);return!!i&&(e.focus(),i.apply(n.map((function(e){return{range:c.Y.liftSelection(e),template:t}}))),i.isInSnippet())}(0,s.fK)(new S({id:"jumpToNextSnippetPlaceholder",precondition:g.Ao.and(C.InSnippetMode,C.HasNextTabstop),handler:function(e){return e.next()},kbOpts:{weight:130,kbExpr:u.u.editorTextFocus,primary:2}})),(0,s.fK)(new S({id:"jumpToPrevSnippetPlaceholder",precondition:g.Ao.and(C.InSnippetMode,C.HasPrevTabstop),handler:function(e){return e.prev()},kbOpts:{weight:130,kbExpr:u.u.editorTextFocus,primary:1026}})),(0,s.fK)(new S({id:"leaveSnippet",precondition:C.InSnippetMode,handler:function(e){return e.cancel(!0)},kbOpts:{weight:130,kbExpr:u.u.editorTextFocus,primary:9,secondary:[1033]}})),(0,s.fK)(new S({id:"acceptSnippet",precondition:C.InSnippetMode,handler:function(e){return e.finish()}}))},54488:function(e,t,n){"use strict";n.d(t,{Lv:function(){return y},Vm:function(){return m},Yj:function(){return k},xv:function(){return g},y1:function(){return w}});var i,r=n(11752),o=n(61120),a=n(60136),s=n(27277),l=n(37762),c=n(93433),u=n(4942),d=n(15671),h=n(43144),f=function(){function e(){(0,d.Z)(this,e),this.value="",this.pos=0}return(0,h.Z)(e,[{key:"text",value:function(e){this.value=e,this.pos=0}},{key:"tokenText",value:function(e){return this.value.substr(e.pos,e.len)}},{key:"next",value:function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var t,n=this.pos,i=0,r=this.value.charCodeAt(n);if("number"===typeof(t=e._table[r]))return this.pos+=1,{type:t,pos:n,len:1};if(e.isDigitCharacter(r)){t=8;do{i+=1,r=this.value.charCodeAt(n+i)}while(e.isDigitCharacter(r));return this.pos+=i,{type:t,pos:n,len:i}}if(e.isVariableCharacter(r)){t=9;do{r=this.value.charCodeAt(n+ ++i)}while(e.isVariableCharacter(r)||e.isDigitCharacter(r));return this.pos+=i,{type:t,pos:n,len:i}}t=10;do{i+=1,r=this.value.charCodeAt(n+i)}while(!isNaN(r)&&"undefined"===typeof e._table[r]&&!e.isDigitCharacter(r)&&!e.isVariableCharacter(r));return this.pos+=i,{type:t,pos:n,len:i}}}],[{key:"isDigitCharacter",value:function(e){return e>=48&&e<=57}},{key:"isVariableCharacter",value:function(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}}]),e}();f._table=(i={},(0,u.Z)(i,36,0),(0,u.Z)(i,58,1),(0,u.Z)(i,44,2),(0,u.Z)(i,123,3),(0,u.Z)(i,125,4),(0,u.Z)(i,92,5),(0,u.Z)(i,47,6),(0,u.Z)(i,124,7),(0,u.Z)(i,43,11),(0,u.Z)(i,45,12),(0,u.Z)(i,63,13),i);var p=function(){function e(){(0,d.Z)(this,e),this._children=[]}return(0,h.Z)(e,[{key:"appendChild",value:function(e){return e instanceof g&&this._children[this._children.length-1]instanceof g?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}},{key:"replace",value:function(e,t){var n=e.parent,i=n.children.indexOf(e),r=n.children.slice(0);r.splice.apply(r,[i,1].concat((0,c.Z)(t))),n._children=r,function e(t,n){var i,r=(0,l.Z)(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.parent=n,e(o.children,o)}}catch(a){r.e(a)}finally{r.f()}}(t,n)}},{key:"children",get:function(){return this._children}},{key:"snippet",get:function(){for(var e=this;;){if(!e)return;if(e instanceof w)return e;e=e.parent}}},{key:"toString",value:function(){return this.children.reduce((function(e,t){return e+t.toString()}),"")}},{key:"len",value:function(){return 0}}]),e}(),g=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this)).value=e,i}return(0,h.Z)(n,[{key:"toString",value:function(){return this.value}},{key:"len",value:function(){return this.value.length}},{key:"clone",value:function(){return new n(this.value)}}]),n}(p),v=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n)}(p),m=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this)).index=e,i}return(0,h.Z)(n,[{key:"isFinalTabstop",get:function(){return 0===this.index}},{key:"choice",get:function(){return 1===this._children.length&&this._children[0]instanceof y?this._children[0]:void 0}},{key:"clone",value:function(){var e=new n(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((function(e){return e.clone()})),e}}],[{key:"compareByIndex",value:function(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}}]),n}(v),y=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,d.Z)(this,n),(e=t.apply(this,arguments)).options=[],e}return(0,h.Z)(n,[{key:"appendChild",value:function(e){return e instanceof g&&(e.parent=this,this.options.push(e)),this}},{key:"toString",value:function(){return this.options[0].value}},{key:"len",value:function(){return this.options[0].len()}},{key:"clone",value:function(){var e=new n;return this.options.forEach(e.appendChild,e),e}}]),n}(p),_=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,d.Z)(this,n),(e=t.apply(this,arguments)).regexp=new RegExp(""),e}return(0,h.Z)(n,[{key:"resolve",value:function(e){var t=this,n=!1,i=e.replace(this.regexp,(function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!n&&this._children.some((function(e){return e instanceof b&&Boolean(e.elseValue)}))&&(i=this._replace([])),i}},{key:"_replace",value:function(e){var t,n="",i=(0,l.Z)(this._children);try{for(i.s();!(t=i.n()).done;){var r=t.value;if(r instanceof b){var o=e[r.index]||"";n+=o=r.resolve(o)}else n+=r.toString()}}catch(a){i.e(a)}finally{i.f()}return n}},{key:"toString",value:function(){return""}},{key:"clone",value:function(){var e=new n;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((function(e){return e.clone()})),e}}]),n}(p),b=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o){var a;return(0,d.Z)(this,n),(a=t.call(this)).index=e,a.shorthandName=i,a.ifValue=r,a.elseValue=o,a}return(0,h.Z)(n,[{key:"resolve",value:function(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue}},{key:"_toPascalCase",value:function(e){var t=e.match(/[a-z0-9]+/gi);return t?t.map((function(e){return e.charAt(0).toUpperCase()+e.substr(1)})).join(""):e}},{key:"_toCamelCase",value:function(e){var t=e.match(/[a-z0-9]+/gi);return t?t.map((function(e,t){return 0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1)})).join(""):e}},{key:"clone",value:function(){return new n(this.index,this.shorthandName,this.ifValue,this.elseValue)}}]),n}(p),C=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this)).name=e,i}return(0,h.Z)(n,[{key:"resolve",value:function(e){var t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new g(t)],!0)}},{key:"clone",value:function(){var e=new n(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((function(e){return e.clone()})),e}}]),n}(v);function S(e,t){for(var n=(0,c.Z)(e);n.length>0;){var i=n.shift();if(!t(i))break;n.unshift.apply(n,(0,c.Z)(i.children))}}var w=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,h.Z)(n,[{key:"placeholderInfo",get:function(){if(!this._placeholders){var e,t=[];this.walk((function(n){return n instanceof m&&(t.push(n),e=!e||e.index<n.index?n:e),!0})),this._placeholders={all:t,last:e}}return this._placeholders}},{key:"placeholders",get:function(){return this.placeholderInfo.all}},{key:"offset",value:function(e){var t=0,n=!1;return this.walk((function(i){return i===e?(n=!0,!1):(t+=i.len(),!0)})),n?t:-1}},{key:"fullLen",value:function(e){var t=0;return S([e],(function(e){return t+=e.len(),!0})),t}},{key:"enclosingPlaceholders",value:function(e){for(var t=[],n=e.parent;n;)n instanceof m&&t.push(n),n=n.parent;return t}},{key:"resolveVariables",value:function(e){var t=this;return this.walk((function(n){return n instanceof C&&n.resolve(e)&&(t._placeholders=void 0),!0})),this}},{key:"appendChild",value:function(e){return this._placeholders=void 0,(0,r.Z)((0,o.Z)(n.prototype),"appendChild",this).call(this,e)}},{key:"replace",value:function(e,t){return this._placeholders=void 0,(0,r.Z)((0,o.Z)(n.prototype),"replace",this).call(this,e,t)}},{key:"clone",value:function(){var e=new n;return this._children=this.children.map((function(e){return e.clone()})),e}},{key:"walk",value:function(e){S(this.children,e)}}]),n}(p),k=function(){function e(){(0,d.Z)(this,e),this._scanner=new f,this._token={type:14,pos:0,len:0}}return(0,h.Z)(e,[{key:"parse",value:function(e,t,n){var i=new w;return this.parseFragment(e,i),this.ensureFinalTabstop(i,null!==n&&void 0!==n&&n,null!==t&&void 0!==t&&t),i}},{key:"parseFragment",value:function(e,t){var n=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););var i=new Map,r=[];t.walk((function(e){return e instanceof m&&(e.isFinalTabstop?i.set(0,void 0):!i.has(e.index)&&e.children.length>0?i.set(e.index,e.children):r.push(e)),!0}));for(var o=0,a=r;o<a.length;o++){var s=a[o],c=i.get(s.index);if(c){var u=new m(s.index);u.transform=s.transform;var d,h=(0,l.Z)(c);try{for(h.s();!(d=h.n()).done;){var f=d.value;u.appendChild(f.clone())}}catch(p){h.e(p)}finally{h.f()}t.replace(s,[u])}}return t.children.slice(n)}},{key:"ensureFinalTabstop",value:function(e,t,n){(t||n&&e.placeholders.length>0)&&(e.placeholders.find((function(e){return 0===e.index}))||e.appendChild(new m(0)))}},{key:"_accept",value:function(e,t){if(void 0===e||this._token.type===e){var n=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),n}return!1}},{key:"_backTo",value:function(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}},{key:"_until",value:function(e){for(var t=this._token;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){var n=this._scanner.next();if(0!==n.type&&4!==n.type&&5!==n.type)return!1}this._token=this._scanner.next()}var i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}},{key:"_parse",value:function(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}},{key:"_parseEscaped",value:function(e){var t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new g(t)),!0)}},{key:"_parseTabstopOrVariableName",value:function(e){var t,n=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new m(Number(t)):new C(t)),!0):this._backTo(n)}},{key:"_parseComplexPlaceholder",value:function(e){var t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);var i=new m(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new g("${"+t+":")),i.children.forEach(e.appendChild,e),!0}else{if(!(i.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(i),!0):this._backTo(n);for(var r=new y;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(i.appendChild(r),this._accept(4)))return e.appendChild(i),!0}return this._backTo(n),!1}}}},{key:"_parseChoiceElement",value:function(e){for(var t=this._token,n=[];2!==this._token.type&&7!==this._token.type;){var i=void 0;if(!(i=(i=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||i:this._accept(void 0,!0)))return this._backTo(t),!1;n.push(i)}return 0===n.length?(this._backTo(t),!1):(e.appendChild(new g(n.join(""))),!0)}},{key:"_parseComplexVariable",value:function(e){var t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);var i=new C(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(i),!0):this._backTo(n);for(;;){if(this._accept(4))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new g("${"+t+":")),i.children.forEach(e.appendChild,e),!0}}},{key:"_parseTransform",value:function(e){for(var t=new _,n="",i="";!this._accept(6);){var r=void 0;if(r=this._accept(5,!0))n+=r=this._accept(6,!0)||r;else{if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}}for(;!this._accept(6);){var o=void 0;if(o=this._accept(5,!0))o=this._accept(5,!0)||this._accept(6,!0)||o,t.appendChild(new g(o));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,i)}catch(a){return!1}return e.transform=t,!0}},{key:"_parseFormatString",value:function(e){var t=this._token;if(!this._accept(0))return!1;var n=!1;this._accept(3)&&(n=!0);var i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!n)return e.appendChild(new b(Number(i))),!0;if(this._accept(4))return e.appendChild(new b(Number(i))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){var r=this._accept(9,!0);return r&&this._accept(4)?(e.appendChild(new b(Number(i),r)),!0):(this._backTo(t),!1)}if(this._accept(11)){var o=this._until(4);if(o)return e.appendChild(new b(Number(i),void 0,o,void 0)),!0}else if(this._accept(12)){var a=this._until(4);if(a)return e.appendChild(new b(Number(i),void 0,void 0,a)),!0}else if(this._accept(13)){var s=this._until(1);if(s){var l=this._until(4);if(l)return e.appendChild(new b(Number(i),void 0,s,l)),!0}}else{var c=this._until(4);if(c)return e.appendChild(new b(Number(i),void 0,void 0,c)),!0}return this._backTo(t),!1}},{key:"_parseAnything",value:function(e){return 14!==this._token.type&&(e.appendChild(new g(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}],[{key:"escape",value:function(e){return e.replace(/\$|}|\\/g,"\\$&")}},{key:"guessNeedsClipboard",value:function(e){return/\${?CLIPBOARD/.test(e)}}]),e}()},92694:function(e,t,n){"use strict";n.d(t,{l:function(){return H}});var i=n(29439),r=n(37762),o=n(93433),a=n(15671),s=n(43144),l=n(29671),c=n(11860),u=n(32377),d=n(3055),h=n(80133),f=n(23145),p=n(29662),g=n(70845),v=n(38670),m=n(17844),y=n(54488),_=n(54649),b=n(73616);function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.ED;return(0,_.oP)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null);var S=n(52090),w=n(41175),k=n(21671),x=n(27722),E=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},T=function(e,t){return function(n,i){t(n,i,e)}},N=(Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0}),function(){function e(t){(0,a.Z)(this,e),this._delegates=t}return(0,s.Z)(e,[{key:"resolve",value:function(e){var t,n=(0,r.Z)(this._delegates);try{for(n.s();!(t=n.n()).done;){var i=t.value.resolve(e);if(void 0!==i)return i}}catch(o){n.e(o)}finally{n.f()}}}]),e}()),I=function(){function e(t,n,i,r){(0,a.Z)(this,e),this._model=t,this._selection=n,this._selectionIdx=i,this._overtypingCapturer=r}return(0,s.Z)(e,[{key:"resolve",value:function(e){var t=e.name;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){var n=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!n&&this._overtypingCapturer){var r=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);r&&(n=r.value,i=r.multiline)}if(n&&i&&e.snippet){var o=this._model.getLineContent(this._selection.startLineNumber),a=(0,u.V8)(o,0,this._selection.startColumn-1),s=a;e.snippet.walk((function(t){return t!==e&&(t instanceof y.xv&&(s=(0,u.V8)((0,u.uq)(t.value).pop())),!0)}));var l=(0,u.Mh)(s,a);n=n.replace(/(\r\n|\r|\n)(.*)/g,(function(e,t,n){return"".concat(t).concat(s.substr(l)).concat(n)}))}return n}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){var c=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return c&&c.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):"CURSOR_INDEX"===t?String(this._selectionIdx):"CURSOR_NUMBER"===t?String(this._selectionIdx+1):void 0}}]),e}(),D=function(){function e(t,n){(0,a.Z)(this,e),this._labelService=t,this._model=n}return(0,s.Z)(e,[{key:"resolve",value:function(e){var t=e.name;if("TM_FILENAME"===t)return S.EZ(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){var n=S.EZ(this._model.uri.fsPath),i=n.lastIndexOf(".");return i<=0?n:n.slice(0,i)}return"TM_DIRECTORY"===t?"."===S.XX(this._model.uri.fsPath)?"":this._labelService.getUriLabel((0,w.XX)(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}]),e}(),L=function(){function e(t,n,i,r){(0,a.Z)(this,e),this._readClipboardText=t,this._selectionIdx=n,this._selectionCount=i,this._spread=r}return(0,s.Z)(e,[{key:"resolve",value:function(e){if("CLIPBOARD"===e.name){var t=this._readClipboardText();if(t){if(this._spread){var n=t.split(/\r\n|\n|\r/).filter((function(e){return!(0,u.m5)(e)}));if(n.length===this._selectionCount)return n[this._selectionIdx]}return t}}}}]),e}(),O=function(){function e(t,n,i){(0,a.Z)(this,e),this._model=t,this._selection=n,this._languageConfigurationService=i}return(0,s.Z)(e,[{key:"resolve",value:function(e){var t=e.name,n=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),i=this._languageConfigurationService.getLanguageConfiguration(n).comments;if(i)return"LINE_COMMENT"===t?i.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?i.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&i.blockCommentEndToken||void 0}}]),e}();O=E([T(2,p.c_)],O);var R=function(){function e(){(0,a.Z)(this,e),this._date=new Date}return(0,s.Z)(e,[{key:"resolve",value:function(t){var n=t.name;return"CURRENT_YEAR"===n?String(this._date.getFullYear()):"CURRENT_YEAR_SHORT"===n?String(this._date.getFullYear()).slice(-2):"CURRENT_MONTH"===n?String(this._date.getMonth().valueOf()+1).padStart(2,"0"):"CURRENT_DATE"===n?String(this._date.getDate().valueOf()).padStart(2,"0"):"CURRENT_HOUR"===n?String(this._date.getHours().valueOf()).padStart(2,"0"):"CURRENT_MINUTE"===n?String(this._date.getMinutes().valueOf()).padStart(2,"0"):"CURRENT_SECOND"===n?String(this._date.getSeconds().valueOf()).padStart(2,"0"):"CURRENT_DAY_NAME"===n?e.dayNames[this._date.getDay()]:"CURRENT_DAY_NAME_SHORT"===n?e.dayNamesShort[this._date.getDay()]:"CURRENT_MONTH_NAME"===n?e.monthNames[this._date.getMonth()]:"CURRENT_MONTH_NAME_SHORT"===n?e.monthNamesShort[this._date.getMonth()]:"CURRENT_SECONDS_UNIX"===n?String(Math.floor(this._date.getTime()/1e3)):void 0}}]),e}();R.dayNames=[x.NC("Sunday","Sunday"),x.NC("Monday","Monday"),x.NC("Tuesday","Tuesday"),x.NC("Wednesday","Wednesday"),x.NC("Thursday","Thursday"),x.NC("Friday","Friday"),x.NC("Saturday","Saturday")],R.dayNamesShort=[x.NC("SundayShort","Sun"),x.NC("MondayShort","Mon"),x.NC("TuesdayShort","Tue"),x.NC("WednesdayShort","Wed"),x.NC("ThursdayShort","Thu"),x.NC("FridayShort","Fri"),x.NC("SaturdayShort","Sat")],R.monthNames=[x.NC("January","January"),x.NC("February","February"),x.NC("March","March"),x.NC("April","April"),x.NC("May","May"),x.NC("June","June"),x.NC("July","July"),x.NC("August","August"),x.NC("September","September"),x.NC("October","October"),x.NC("November","November"),x.NC("December","December")],R.monthNamesShort=[x.NC("JanuaryShort","Jan"),x.NC("FebruaryShort","Feb"),x.NC("MarchShort","Mar"),x.NC("AprilShort","Apr"),x.NC("MayShort","May"),x.NC("JuneShort","Jun"),x.NC("JulyShort","Jul"),x.NC("AugustShort","Aug"),x.NC("SeptemberShort","Sep"),x.NC("OctoberShort","Oct"),x.NC("NovemberShort","Nov"),x.NC("DecemberShort","Dec")];var A=function(){function e(t){(0,a.Z)(this,e),this._workspaceService=t}return(0,s.Z)(e,[{key:"resolve",value:function(e){if(this._workspaceService){var t=(0,m.uT)(this._workspaceService.getWorkspace());if(t)return"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}}},{key:"_resolveWorkspaceName",value:function(e){if((0,m.eb)(e))return S.EZ(e.uri.path);var t=S.EZ(e.configPath.path);return t.endsWith(m.A6)&&(t=t.substr(0,t.length-m.A6.length-1)),t}},{key:"_resoveWorkspacePath",value:function(e){if((0,m.eb)(e))return C(e.uri.fsPath);var t=S.EZ(e.configPath.path),n=e.configPath.fsPath;return n.endsWith(t)&&(n=n.substr(0,n.length-t.length-1)),n?C(n):"/"}}]),e}(),M=function(){function e(){(0,a.Z)(this,e)}return(0,s.Z)(e,[{key:"resolve",value:function(e){var t=e.name;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?(0,k.R)():void 0}}]),e}(),P=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Z=function(e,t){return function(n,i){t(n,i,e)}},F=function(){function e(t,n,i){(0,a.Z)(this,e),this._editor=t,this._snippet=n,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,l.vM)(n.placeholders,y.Vm.compareByIndex),this._placeholderGroupsIdx=-1}return(0,s.Z)(e,[{key:"initialize",value:function(e){this._offset=e.newPosition}},{key:"dispose",value:function(){this._placeholderDecorations&&this._editor.removeDecorations((0,o.Z)(this._placeholderDecorations.values())),this._placeholderGroups.length=0}},{key:"_initDecorations",value:function(){var t=this;if(-1===this._offset)throw new Error("Snippet not initialized!");if(!this._placeholderDecorations){this._placeholderDecorations=new Map;var n=this._editor.getModel();this._editor.changeDecorations((function(i){var o,a=(0,r.Z)(t._snippet.placeholders);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=t._snippet.offset(s),c=t._snippet.fullLen(s),u=h.e.fromPositions(n.getPositionAt(t._offset+l),n.getPositionAt(t._offset+l+c)),d=s.isFinalTabstop?e._decor.inactiveFinal:e._decor.inactive,f=i.addDecoration(u,d);t._placeholderDecorations.set(s,f)}}catch(p){a.e(p)}finally{a.f()}}))}}},{key:"move",value:function(t){var n=this;if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){var o,a=[],s=(0,r.Z)(this._placeholderGroups[this._placeholderGroupsIdx]);try{for(s.s();!(o=s.n()).done;){var l=o.value;if(l.transform){for(var c=this._placeholderDecorations.get(l),u=this._editor.getModel().getDecorationRange(c),h=this._editor.getModel().getValueInRange(u),p=l.transform.resolve(h).split(/\r\n|\r|\n/),g=1;g<p.length;g++)p[g]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+p[g]);a.push(d.h.replace(u,p.join(this._editor.getModel().getEOL())))}}}catch(y){s.e(y)}finally{s.f()}a.length>0&&this._editor.executeEdits("snippet.placeholderTransform",a)}var v=!1;!0===t&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,v=!0):!1===t&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,v=!0);var m=this._editor.getModel().changeDecorations((function(t){var o,a=new Set,s=[],l=(0,r.Z)(n._placeholderGroups[n._placeholderGroupsIdx]);try{for(l.s();!(o=l.n()).done;){var c=o.value,u=n._placeholderDecorations.get(c),d=n._editor.getModel().getDecorationRange(u);s.push(new f.Y(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn)),v=v&&n._hasPlaceholderBeenCollapsed(c),t.changeDecorationOptions(u,c.isFinalTabstop?e._decor.activeFinal:e._decor.active),a.add(c);var h,p=(0,r.Z)(n._snippet.enclosingPlaceholders(c));try{for(p.s();!(h=p.n()).done;){var g=h.value,m=n._placeholderDecorations.get(g);t.changeDecorationOptions(m,g.isFinalTabstop?e._decor.activeFinal:e._decor.active),a.add(g)}}catch(y){p.e(y)}finally{p.f()}}}catch(y){l.e(y)}finally{l.f()}var _,b=(0,r.Z)(n._placeholderDecorations);try{for(b.s();!(_=b.n()).done;){var C=(0,i.Z)(_.value,2),S=C[0],w=C[1];a.has(S)||t.changeDecorationOptions(w,S.isFinalTabstop?e._decor.inactiveFinal:e._decor.inactive)}}catch(y){b.e(y)}finally{b.f()}return s}));return v?this.move(t):null!==m&&void 0!==m?m:[]}},{key:"_hasPlaceholderBeenCollapsed",value:function(e){for(var t=e;t;){if(t instanceof y.Vm){var n=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(n).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}},{key:"isAtFirstPlaceholder",get:function(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}},{key:"isAtLastPlaceholder",get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}},{key:"hasPlaceholder",get:function(){return this._snippet.placeholders.length>0}},{key:"isTrivialSnippet",get:function(){return 0===this._snippet.placeholders.length||1===this._snippet.placeholders.length&&this._snippet.placeholders[0].isFinalTabstop}},{key:"computePossibleSelections",value:function(){var e,t=new Map,n=(0,r.Z)(this._placeholderGroups);try{for(n.s();!(e=n.n()).done;){var i,o=e.value,a=void 0,s=(0,r.Z)(o);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(l.isFinalTabstop)break;a||(a=[],t.set(l.index,a));var c=this._placeholderDecorations.get(l),u=this._editor.getModel().getDecorationRange(c);if(!u){t.delete(l.index);break}a.push(u)}}catch(d){s.e(d)}finally{s.f()}}}catch(d){n.e(d)}finally{n.f()}return t}},{key:"activeChoice",get:function(){if(this._placeholderDecorations){var e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(null===e||void 0===e?void 0:e.choice){var t=this._placeholderDecorations.get(e);if(t){var n=this._editor.getModel().getDecorationRange(t);if(n)return{range:n,choice:e.choice}}}}}},{key:"hasChoice",get:function(){var e=!1;return this._snippet.walk((function(t){return!(e=t instanceof y.Lv)})),e}},{key:"merge",value:function(t){var n=this,i=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((function(o){var a,s=(0,r.Z)(n._placeholderGroups[n._placeholderGroupsIdx]);try{for(s.s();!(a=s.n()).done;){var c=a.value,u=t.shift();console.assert(-1!==u._offset),console.assert(!u._placeholderDecorations);var d,f=u._snippet.placeholderInfo.last.index,p=(0,r.Z)(u._snippet.placeholderInfo.all);try{for(p.s();!(d=p.n()).done;){var g=d.value;g.isFinalTabstop?g.index=c.index+(f+1)/n._nestingLevel:g.index=c.index+g.index/n._nestingLevel}}catch(x){p.e(x)}finally{p.f()}n._snippet.replace(c,u._snippet.children);var v=n._placeholderDecorations.get(c);o.removeDecoration(v),n._placeholderDecorations.delete(c);var m,_=(0,r.Z)(u._snippet.placeholders);try{for(_.s();!(m=_.n()).done;){var b=m.value,C=u._snippet.offset(b),S=u._snippet.fullLen(b),w=h.e.fromPositions(i.getPositionAt(u._offset+C),i.getPositionAt(u._offset+C+S)),k=o.addDecoration(w,e._decor.inactive);n._placeholderDecorations.set(b,k)}}catch(x){_.e(x)}finally{_.f()}}}catch(x){s.e(x)}finally{s.f()}n._placeholderGroups=(0,l.vM)(n._snippet.placeholders,y.Vm.compareByIndex)}))}}]),e}();F._decor={active:g.qx.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:g.qx.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:g.qx.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:g.qx.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};var B={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},H=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:B,r=arguments.length>3?arguments[3]:void 0;(0,a.Z)(this,e),this._editor=t,this._template=n,this._options=i,this._languageConfigurationService=r,this._templateMerges=[],this._snippets=[]}return(0,s.Z)(e,[{key:"dispose",value:function(){(0,c.B9)(this._snippets)}},{key:"_logInfo",value:function(){return'template="'.concat(this._template,'", merged_templates="').concat(this._templateMerges.join(" -> "),'"')}},{key:"insert",value:function(){var t=this;if(this._editor.hasModel()){var n="string"===typeof this._template?e.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):e.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService),i=n.edits,r=n.snippets;this._snippets=r,this._editor.executeEdits("snippet",i,(function(e){for(var n=e.filter((function(e){return!!e.identifier})),i=0;i<r.length;i++)r[i].initialize(n[i].textChange);return t._snippets[0].hasPlaceholder?t._move(!0):n.map((function(e){return f.Y.fromPositions(e.range.getEndPosition())}))})),this._editor.revealRange(this._editor.getSelections()[0])}}},{key:"merge",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B;if(this._editor.hasModel()){this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,t]);var o=e.createEditsAndSnippetsFromSelections(this._editor,t,i.overwriteBefore,i.overwriteAfter,!0,i.adjustWhitespace,i.clipboardText,i.overtypingCapturer,this._languageConfigurationService),a=o.edits,s=o.snippets;this._editor.executeEdits("snippet",a,(function(e){for(var t=e.filter((function(e){return!!e.identifier})),i=0;i<s.length;i++)s[i].initialize(t[i].textChange);var o=s[0].isTrivialSnippet;if(!o){var a,l=(0,r.Z)(n._snippets);try{for(l.s();!(a=l.n()).done;){a.value.merge(s)}}catch(c){l.e(c)}finally{l.f()}console.assert(0===s.length)}return n._snippets[0].hasPlaceholder&&!o?n._move(void 0):t.map((function(e){return f.Y.fromPositions(e.range.getEndPosition())}))}))}}},{key:"next",value:function(){var e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}},{key:"prev",value:function(){var e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}},{key:"_move",value:function(e){var t,n=[],i=(0,r.Z)(this._snippets);try{for(i.s();!(t=i.n()).done;){var a=t.value.move(e);n.push.apply(n,(0,o.Z)(a))}}catch(s){i.e(s)}finally{i.f()}return n}},{key:"isAtFirstPlaceholder",get:function(){return this._snippets[0].isAtFirstPlaceholder}},{key:"isAtLastPlaceholder",get:function(){return this._snippets[0].isAtLastPlaceholder}},{key:"hasPlaceholder",get:function(){return this._snippets[0].hasPlaceholder}},{key:"hasChoice",get:function(){return this._snippets[0].hasChoice}},{key:"activeChoice",get:function(){return this._snippets[0].activeChoice}},{key:"isSelectionWithinPlaceholders",value:function(){if(!this.hasPlaceholder)return!1;var e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;var t,n=new Map,a=(0,r.Z)(this._snippets);try{var s=function(){var a=t.value.computePossibleSelections();if(0===n.size){var s,l=(0,r.Z)(a);try{for(l.s();!(s=l.n()).done;){var c=(0,i.Z)(s.value,2),u=c[0],d=c[1];d.sort(h.e.compareRangesUsingStarts);var f,p=(0,r.Z)(e);try{for(p.s();!(f=p.n()).done;){var g=f.value;if(d[0].containsRange(g)){n.set(u,[]);break}}}catch(v){p.e(v)}finally{p.f()}}}catch(v){l.e(v)}finally{l.f()}}if(0===n.size)return{v:!1};n.forEach((function(e,t){e.push.apply(e,(0,o.Z)(a.get(t)))}))};for(a.s();!(t=a.n()).done;){var l=s();if("object"===typeof l)return l.v}}catch(v){a.e(v)}finally{a.f()}e.sort(h.e.compareRangesUsingStarts);var c,u=(0,r.Z)(n);try{for(u.s();!(c=u.n()).done;){var d=(0,i.Z)(c.value,2),f=d[0],p=d[1];if(p.length===e.length){p.sort(h.e.compareRangesUsingStarts);for(var g=0;g<p.length;g++)p[g].containsRange(e[g])||n.delete(f)}else n.delete(f)}}catch(v){u.e(v)}finally{u.f()}return n.size>0}}],[{key:"adjustWhitespace",value:function(e,t,n,i,r){var o,a=e.getLineContent(t.lineNumber),s=(0,u.V8)(a,0,t.column-1);return n.walk((function(t){if(!(t instanceof y.xv)||t.parent instanceof y.Lv)return!0;var r=t.value.split(/\r\n|\r|\n/);if(i){var a=n.offset(t);if(0===a)r[0]=e.normalizeIndentation(r[0]);else{var l=(o=null!==o&&void 0!==o?o:n.toString()).charCodeAt(a-1);10!==l&&13!==l||(r[0]=e.normalizeIndentation(s+r[0]))}for(var c=1;c<r.length;c++)r[c]=e.normalizeIndentation(s+r[c])}var u=r.join(e.getEOL());return u!==t.value&&(t.parent.replace(t,[new y.xv(u)]),o=void 0),!0})),s}},{key:"adjustSelection",value:function(e,t,n,i){if(0!==n||0!==i){var r=t,o=r.positionLineNumber,a=r.positionColumn,s=a-n,l=a+i,c=e.validateRange({startLineNumber:o,startColumn:s,endLineNumber:o,endColumn:l});t=f.Y.createWithDirection(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn,t.getDirection())}return t}},{key:"createEditsAndSnippetsFromSelections",value:function(t,n,i,o,a,s,l,c,u){var f=[],p=[];if(!t.hasModel())return{edits:f,snippets:p};var g,_=t.getModel(),b=t.invokeWithinContext((function(e){return e.get(m.ec)})),C=t.invokeWithinContext((function(e){return new D(e.get(v.e),_)})),S=function(){return l},w=_.getValueInRange(e.adjustSelection(_,t.getSelection(),i,0)),k=_.getValueInRange(e.adjustSelection(_,t.getSelection(),0,o)),x=_.getLineFirstNonWhitespaceColumn(t.getSelection().positionLineNumber),E=t.getSelections().map((function(e,t){return{selection:e,idx:t}})).sort((function(e,t){return h.e.compareRangesUsingStarts(e.selection,t.selection)})),T=(0,r.Z)(E);try{for(T.s();!(g=T.n()).done;){var P=g.value,Z=P.selection,B=P.idx,H=e.adjustSelection(_,Z,i,0),z=e.adjustSelection(_,Z,0,o);w!==_.getValueInRange(H)&&(H=Z),k!==_.getValueInRange(z)&&(z=Z);var j=Z.setStartPosition(H.startLineNumber,H.startColumn).setEndPosition(z.endLineNumber,z.endColumn),V=(new y.Yj).parse(n,!0,a),W=j.getStartPosition(),U=e.adjustWhitespace(_,W,V,s||B>0&&x!==_.getLineFirstNonWhitespaceColumn(Z.positionLineNumber),!0);V.resolveVariables(new N([C,new L(S,B,E.length,"spread"===t.getOption(73)),new I(_,Z,B,c),new O(_,Z,u),new R,new A(b),new M])),f[B]=d.h.replace(j,V.toString()),f[B].identifier={major:B,minor:0},f[B]._isTracked=!0,p[B]=new F(t,V,U)}}catch(G){T.e(G)}finally{T.f()}return{edits:f,snippets:p}}},{key:"createEditsAndSnippetsFromEdits",value:function(e,t,n,i,r,o,a){if(!e.hasModel()||0===t.length)return{edits:[],snippets:[]};var s=[],l=e.getModel(),c=new y.Yj,u=new y.y1,f=new N([e.invokeWithinContext((function(e){return new D(e.get(v.e),l)})),new L((function(){return r}),0,e.getSelections().length,"spread"===e.getOption(73)),new I(l,e.getSelection(),0,o),new O(l,e.getSelection(),a),new R,new A(e.invokeWithinContext((function(e){return e.get(m.ec)}))),new M]);t=t.sort((function(e,t){return h.e.compareRangesUsingStarts(e.range,t.range)}));for(var p=0,g=0;g<t.length;g++){var _=t[g],b=_.range,C=_.template;if(g>0){var S=t[g-1].range,w=h.e.fromPositions(S.getEndPosition(),b.getStartPosition()),k=new y.xv(l.getValueInRange(w));u.appendChild(k),p+=k.value.length}c.parseFragment(C,u),u.resolveVariables(f);var x=u.toString(),E=x.slice(p);p=x.length;var T=d.h.replace(b,E);T.identifier={major:g,minor:0},T._isTracked=!0,s.push(T)}return c.ensureFinalTabstop(u,n,!0),{edits:s,snippets:[new F(e,u,"")]}}}]),e}();H=P([Z(3,p.c_)],H)},4327:function(e,t,n){"use strict";n.r(t);var i,r=n(29439),o=n(74165),a=n(37762),s=n(15671),l=n(43144),c=n(11752),u=n(61120),d=n(60136),h=n(27277),f=n(11860),p=n(62381),g=n(53584),v=n(52170),m=n(82784),y=n(81531),_=n(1293),b=n(15475),C=n(2029),S=n(60022),w=n(38622),k=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},x=function(e,t){return function(n,i){t(n,i,e)}},E=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},T=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i){var r;return(0,s.Z)(this,n),(r=t.call(this))._sessionStore=new f.SL,r._ranges=[],r._rangesVersionId=0,r._editor=e,r._languageFeaturesService=i,r.stickyScrollWidget=new D(r._editor),r._register(r._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&r.onConfigurationChange()}))),r._updateSoon=r._register(new S.pY((function(){return r._update(!0)}),50)),r.onConfigurationChange(),r}return(0,l.Z)(n,[{key:"onConfigurationChange",value:function(){var e=this;if(!1===this._editor.getOption(34).stickyScroll.enabled)return this.stickyScrollWidget.emptyRootNode(),this._editor.removeOverlayWidget(this.stickyScrollWidget),void this._sessionStore.clear();this._editor.addOverlayWidget(this.stickyScrollWidget),this._sessionStore.add(this._editor.onDidChangeModel((function(){return e._update(!0)}))),this._sessionStore.add(this._editor.onDidScrollChange((function(){return e._update(!1)}))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas((function(){return e._update(!0)}))),this._sessionStore.add(this._editor.onDidChangeModelTokens((function(t){return e._onTokensChange(t)}))),this._sessionStore.add(this._editor.onDidChangeModelContent((function(){return e._updateSoon.schedule()}))),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((function(){return e._update(!0)}))),this._update(!0)}},{key:"_needsUpdate",value:function(e){var t,n=this.stickyScrollWidget.getCurrentLines(),i=(0,a.Z)(n);try{for(i.s();!(t=i.n()).done;){var r,o=t.value,s=(0,a.Z)(e.ranges);try{for(s.s();!(r=s.n()).done;){var l=r.value;if(o>=l.fromLineNumber&&o<=l.toLineNumber)return!0}}catch(c){s.e(c)}finally{s.f()}}}catch(c){i.e(c)}finally{i.f()}return!1}},{key:"_onTokensChange",value:function(e){this._needsUpdate(e)&&this._update(!1)}},{key:"_update",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return E(this,void 0,void 0,(0,o.Z)().mark((function i(){var r,s,l,c,u=this;return(0,o.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!n){i.next=5;break}return null===(e=this._cts)||void 0===e||e.dispose(!0),this._cts=new m.A,i.next=5,this._updateOutlineModel(this._cts.token);case 5:if(r=null===(t=this._editor._getViewModel())||void 0===t?void 0:t.getHiddenAreas()){s=(0,a.Z)(r);try{for(c=function(){var e=l.value;u._ranges=u._ranges.filter((function(t){return!(t[0]>=e.startLineNumber&&t[1]<=e.endLineNumber+1)}))},s.s();!(l=s.n()).done;)c()}catch(o){s.e(o)}finally{s.f()}}this._renderStickyScroll();case 8:case"end":return i.stop()}}),i,this)})))}},{key:"_findLineRanges",value:function(e,t){if(null===e||void 0===e?void 0:e.children.size){var n,i=!1,r=(0,a.Z)(null===e||void 0===e?void 0:e.children.values());try{for(r.s();!(n=r.n()).done;){var o=n.value,s=o.symbol.kind;4!==s&&8!==s&&11!==s&&10!==s&&5!==s&&1!==s||(i=!0,this._findLineRanges(o,t+1))}}catch(l){r.e(l)}finally{r.f()}i||this._addOutlineRanges(e,t)}else this._addOutlineRanges(e,t)}},{key:"_addOutlineRanges",value:function(e,t){for(var n=0,i=0;e;){var r=e.symbol.kind;if(4!==r&&8!==r&&11!==r&&10!==r&&5!==r&&1!==r||(n=null===e||void 0===e?void 0:e.symbol.range.startLineNumber,i=null===e||void 0===e?void 0:e.symbol.range.endLineNumber,this._ranges.push([n,i,t]),t--),!(e.parent instanceof v.sT))break;e=e.parent}}},{key:"_updateOutlineModel",value:function(e){return E(this,void 0,void 0,(0,o.Z)().mark((function t(){var n,i,s,l,c,u,d,h,f,p,g,m,y,_,b,C;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._editor.hasModel()){t.next=12;break}return n=this._editor.getModel(),i=n.getVersionId(),t.next=5,v.C3.create(this._languageFeaturesService.documentSymbolProvider,n,e);case 5:if(s=t.sent,!e.isCancellationRequested){t.next=8;break}return t.abrupt("return");case 8:this._ranges=[],this._rangesVersionId=i,l=(0,a.Z)(s.children.values());try{for(l.s();!(c=l.n()).done;){(u=c.value)instanceof v.sT&&(4===(d=u.symbol.kind)||8===d||11===d||10===d||5===d||1===d?this._findLineRanges(u,1):this._findLineRanges(u,0)),this._ranges=this._ranges.sort((function(e,t){return e[0]!==t[0]?e[0]-t[0]:e[1]!==t[1]?t[1]-e[1]:e[2]-t[2]})),h=[],f=(0,a.Z)(this._ranges.entries());try{for(f.s();!(p=f.n()).done;)g=(0,r.Z)(p.value,2),m=g[0],y=g[1],_=(0,r.Z)(y,3),b=_[0],C=_[1],_[2],h[0]===b&&h[1]===C?this._ranges.splice(m,1):h=y}catch(o){f.e(o)}finally{f.f()}}}catch(o){l.e(o)}finally{l.f()}case 12:case"end":return t.stop()}}),t,this)})))}},{key:"_renderStickyScroll",value:function(){if(this._editor.hasModel()){var e=this._editor.getOption(61),t=this._editor.getModel();if(this._rangesVersionId===t.getVersionId()){var n=this._editor.getScrollTop();this.stickyScrollWidget.emptyRootNode();var i,o=new Set,s=(0,a.Z)(this._ranges.entries());try{for(s.s();!(i=s.n()).done;){var l=(0,r.Z)(i.value,2),c=l[0],u=l[1],d=(0,r.Z)(u,3),h=d[0],f=d[1],p=d[2];if(f-h>0&&""!==t.getLineContent(h)){var g=(p-1)*e,v=p*e,m=this._editor.getBottomForLineNumber(h)-n,y=this._editor.getTopForLineNumber(f)-n,_=this._editor.getBottomForLineNumber(f)-n;if(o.has(h))this._ranges.splice(c,1);else{if(g>=y-1&&g<_-2){o.add(h),this.stickyScrollWidget.pushCodeLine(new I(h,p,this._editor,-1,_-v));break}v>m&&v<_-1&&(o.add(h),this.stickyScrollWidget.pushCodeLine(new I(h,p,this._editor,0,0)))}}}}catch(b){s.e(b)}finally{s.f()}this.stickyScrollWidget.updateRootNode()}}}},{key:"dispose",value:function(){(0,c.Z)((0,u.Z)(n.prototype),"dispose",this).call(this),this._sessionStore.dispose()}}]),n}(f.JT);T.ID="store.contrib.stickyScrollController",T=k([x(1,g.p)],T);var N=null===(i=window.trustedTypes)||void 0===i?void 0:i.createPolicy("stickyScrollViewLayer",{createHTML:function(e){return e}}),I=function(){function e(t,n,i,r,o){(0,s.Z)(this,e),this._lineNumber=t,this._depth=n,this._editor=i,this._zIndex=r,this._relativePosition=o,this.effectiveLineHeight=0,this.effectiveLineHeight=this._editor.getOption(61)+this._relativePosition}return(0,l.Z)(e,[{key:"lineNumber",get:function(){return this._lineNumber}},{key:"getDomNode",value:function(){var e,t=this,n=document.createElement("div"),i=this._editor._getViewModel(),r=i.coordinatesConverter.convertModelPositionToViewPosition(new w.L(this._lineNumber,1)).lineNumber,o=i.getViewLineRenderingData(r);try{e=C.Kp.filter(o.inlineDecorations,r,o.minColumn,o.maxColumn)}catch(h){e=[]}var a,s=new b.IJ(!0,!0,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,0,o.tokens,e,o.tabSize,o.startVisibleColumn,1,1,1,100,"none",!0,!0,null),l=(0,_.l$)(400);(0,b.d1)(s,l),a=N?N.createHTML(l.build()):l.build();var c=document.createElement("span");c.style.backgroundColor="var(--vscode-editorStickyScroll-background)",c.style.overflow="hidden",c.style.whiteSpace="nowrap",c.style.display="inline-block",c.style.lineHeight=this._editor.getOption(61).toString()+"px",c.innerHTML=a;var u=document.createElement("span");u.style.width=this._editor.getLayoutInfo().contentLeft.toString()+"px",u.style.backgroundColor="var(--vscode-editorStickyScroll-background)",u.style.color="var(--vscode-editorLineNumber-foreground)",u.style.display="inline-block",u.style.lineHeight=this._editor.getOption(61).toString()+"px";var d=document.createElement("span");return d.innerText=this._lineNumber.toString(),d.style.paddingLeft=this._editor.getLayoutInfo().lineNumbersLeft.toString()+"px",d.style.width=this._editor.getLayoutInfo().lineNumbersWidth.toString()+"px",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.textAlign="right",d.style.float="left",d.style.lineHeight=this._editor.getOption(61).toString()+"px",u.appendChild(d),n.onclick=function(e){e.stopPropagation(),e.preventDefault(),t._editor.revealPosition({lineNumber:t._lineNumber-t._depth+1,column:1})},n.onmouseover=function(e){d.style.background="var(--vscode-editorStickyScrollHover-background)",c.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",u.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",n.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",d.style.cursor="pointer",c.style.cursor="pointer",n.style.cursor="pointer",u.style.cursor="pointer"},n.onmouseleave=function(e){d.style.background="var(--vscode-editorStickyScroll-background)",c.style.backgroundColor="var(--vscode-editorStickyScroll-background)",u.style.backgroundColor="var(--vscode-editorStickyScroll-background)",n.style.backgroundColor="var(--vscode-editorStickyScroll-background)"},this._editor.applyFontInfo(c),this._editor.applyFontInfo(d),n.appendChild(u),n.appendChild(c),n.style.zIndex=this._zIndex.toString(),n.style.backgroundColor="var(--vscode-editorStickyScroll-background)",n.style.overflow="hidden",n.style.whiteSpace="nowrap",n.style.width="100%",n.style.lineHeight=this._editor.getOption(61).toString()+"px",n.style.height=this._editor.getOption(61).toString()+"px",this._relativePosition&&(n.style.position="relative",n.style.top=this._relativePosition+"px",n.style.width="100%"),n}}]),e}(),D=function(){function e(t){(0,s.Z)(this,e),this._editor=t,this.arrayOfCodeLines=[],this.rootDomNode=document.createElement("div"),this.rootDomNode=document.createElement("div"),this.rootDomNode.style.width="100%",this.rootDomNode.style.boxShadow="var(--vscode-scrollbar-shadow) 0 6px 6px -6px"}return(0,l.Z)(e,[{key:"getCurrentLines",value:function(){var e,t=[],n=(0,a.Z)(this.arrayOfCodeLines);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(i.lineNumber)}}catch(r){n.e(r)}finally{n.f()}return t}},{key:"pushCodeLine",value:function(e){this.arrayOfCodeLines.push(e)}},{key:"updateRootNode",value:function(){var e,t=0,n=(0,a.Z)(this.arrayOfCodeLines);try{for(n.s();!(e=n.n()).done;){var i=e.value;t+=i.effectiveLineHeight,this.rootDomNode.appendChild(i.getDomNode())}}catch(r){n.e(r)}finally{n.f()}this.rootDomNode.style.height=t.toString()+"px"}},{key:"emptyRootNode",value:function(){this.arrayOfCodeLines.length=0,y.clearNode(this.rootDomNode)}},{key:"getId",value:function(){return"editor.contrib.stickyScrollWidget"}},{key:"getDomNode",value:function(){return this.rootDomNode.style.zIndex="2",this.rootDomNode.style.backgroundColor="var(--vscode-editorStickyScroll-background)",this.rootDomNode}},{key:"getPosition",value:function(){return{preference:null}}}]),e}();(0,p._K)(T.ID,T)},90423:function(e,t,n){"use strict";n.d(t,{_:function(){return d},t:function(){return u}});var i=n(29439),r=n(37762),o=n(43144),a=n(15671),s=n(29671),l=n(73160),c=n(32377),u=(0,o.Z)((function e(t,n){(0,a.Z)(this,e),this.leadingLineContent=t,this.characterCountDelta=n})),d=function(){function e(t,n,i,r,o,s){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:l.mX.default,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:void 0;(0,a.Z)(this,e),this.clipboardText=u,this._snippetCompareFn=e._compareCompletionItems,this._items=t,this._column=n,this._wordDistance=r,this._options=o,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=c,"top"===s?this._snippetCompareFn=e._compareCompletionItemsSnippetsUp:"bottom"===s&&(this._snippetCompareFn=e._compareCompletionItemsSnippetsDown)}return(0,o.Z)(e,[{key:"lineContext",get:function(){return this._lineContext},set:function(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}},{key:"items",get:function(){return this._ensureCachedState(),this._filteredItems}},{key:"allProvider",get:function(){return this._ensureCachedState(),this._providerInfo.keys()}},{key:"incomplete",get:function(){this._ensureCachedState();var e,t=new Set,n=(0,r.Z)(this._providerInfo);try{for(n.s();!(e=n.n()).done;){var o=(0,i.Z)(e.value,2),a=o[0];o[1]&&t.add(a)}}catch(s){n.e(s)}finally{n.f()}return t}},{key:"adopt",value:function(e){for(var t=[],n=0;n<this._items.length;)e.has(this._items[n].provider)?n++:(t.push(this._items[n]),this._items[n]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,t}},{key:"stats",get:function(){return this._ensureCachedState(),this._stats}},{key:"_ensureCachedState",value:function(){0!==this._refilterKind&&this._createCachedState()}},{key:"_createCachedState",value:function(){this._providerInfo=new Map;for(var e=[],t=this._lineContext,n=t.leadingLineContent,i=t.characterCountDelta,r="",o="",a=1===this._refilterKind?this._items:this._filteredItems,u=[],d=!this._options.filterGraceful||a.length>2e3?l.EW:l.l7,h=0;h<a.length;h++){var f=a[h];if(!f.isInvalid){this._providerInfo.set(f.provider,Boolean(f.container.incomplete));var p=f.position.column-f.editStart.column,g=p+i-(f.position.column-this._column);if(r.length!==g&&(o=(r=0===g?"":n.slice(-g)).toLowerCase()),f.word=r,0===g)f.score=l.CL.Default;else{for(var v=0;v<p;){var m=r.charCodeAt(v);if(32!==m&&9!==m)break;v+=1}if(v>=g)f.score=l.CL.Default;else if("string"===typeof f.completion.filterText){var y=d(r,o,v,f.completion.filterText,f.filterTextLow,0,this._fuzzyScoreOptions);if(!y)continue;0===(0,c.zY)(f.completion.filterText,f.textLabel)?f.score=y:(f.score=(0,l.jB)(r,o,v,f.textLabel,f.labelLow,0),f.score[0]=y[0])}else{var _=d(r,o,v,f.textLabel,f.labelLow,0,this._fuzzyScoreOptions);if(!_)continue;f.score=_}}f.idx=h,f.distance=this._wordDistance.distance(f.position,f.completion),u.push(f),e.push(f.textLabel.length)}}this._filteredItems=u.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?(0,s.HW)(e.length-.85,e,(function(e,t){return e-t})):0}}}],[{key:"_compareCompletionItems",value:function(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}},{key:"_compareCompletionItemsSnippetsDown",value:function(t,n){if(t.completion.kind!==n.completion.kind){if(27===t.completion.kind)return 1;if(27===n.completion.kind)return-1}return e._compareCompletionItems(t,n)}},{key:"_compareCompletionItemsSnippetsUp",value:function(t,n){if(t.completion.kind!==n.completion.kind){if(27===t.completion.kind)return-1;if(27===n.completion.kind)return 1}return e._compareCompletionItems(t,n)}}]),e}()},96161:function(e,t,n){"use strict";n.d(t,{A9:function(){return I},GI:function(){return T},ZJ:function(){return D},_y:function(){return E},i5:function(){return P},kL:function(){return O},tG:function(){return Z},wg:function(){return M}});var i,r=n(37762),o=n(74165),a=n(15671),s=n(43144),l=n(82784),c=n(14173),u=n(73160),d=n(11860),h=n(25),f=n(85294),p=n(72112),g=n(38622),v=n(80133),m=n(95011),y=n(54488),_=n(27722),b=n(48996),C=n(11133),S=n(34509),w=n(53584),k=n(28395),x=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},E={Visible:k.iX,HasFocusedSuggestion:new S.uy("suggestWidgetHasFocusedSuggestion",!1,(0,_.NC)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new S.uy("suggestWidgetDetailsVisible",!1,(0,_.NC)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new S.uy("suggestWidgetMultipleSuggestions",!1,(0,_.NC)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new S.uy("suggestionMakesTextEdit",!0,(0,_.NC)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new S.uy("acceptSuggestionOnEnter",!0,(0,_.NC)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new S.uy("suggestionHasInsertAndReplaceRange",!1,(0,_.NC)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new S.uy("suggestionInsertMode",void 0,{type:"string",description:(0,_.NC)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new S.uy("suggestionCanResolve",!1,(0,_.NC)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},T=new b.eH("suggestWidgetStatusBar"),N=function(){function e(t,n,i,r){(0,a.Z)(this,e),this.position=t,this.completion=n,this.container=i,this.provider=r,this.isInvalid=!1,this.score=u.CL.Default,this.distance=0,this.textLabel="string"===typeof n.label?n.label:n.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=n.sortText&&n.sortText.toLowerCase(),this.filterTextLow=n.filterText&&n.filterText.toLowerCase(),this.extensionId=n.extensionId,v.e.isIRange(n.range)?(this.editStart=new g.L(n.range.startLineNumber,n.range.startColumn),this.editInsertEnd=new g.L(n.range.endLineNumber,n.range.endColumn),this.editReplaceEnd=new g.L(n.range.endLineNumber,n.range.endColumn),this.isInvalid=this.isInvalid||v.e.spansMultipleLines(n.range)||n.range.startLineNumber!==t.lineNumber):(this.editStart=new g.L(n.range.insert.startLineNumber,n.range.insert.startColumn),this.editInsertEnd=new g.L(n.range.insert.endLineNumber,n.range.insert.endColumn),this.editReplaceEnd=new g.L(n.range.replace.endLineNumber,n.range.replace.endColumn),this.isInvalid=this.isInvalid||v.e.spansMultipleLines(n.range.insert)||v.e.spansMultipleLines(n.range.replace)||n.range.insert.startLineNumber!==t.lineNumber||n.range.replace.startLineNumber!==t.lineNumber||n.range.insert.startColumn!==n.range.replace.startColumn),"function"!==typeof r.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}return(0,s.Z)(e,[{key:"isResolved",get:function(){return!!this._isResolved}},{key:"resolve",value:function(e){return x(this,void 0,void 0,(0,o.Z)().mark((function t(){var n,i=this;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._resolveCache||(n=e.onCancellationRequested((function(){i._resolveCache=void 0,i._isResolved=!1})),this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then((function(e){Object.assign(i.completion,e),i._isResolved=!0,n.dispose()}),(function(e){(0,c.n2)(e)&&(i._resolveCache=void 0,i._isResolved=!1)}))),t.abrupt("return",this._resolveCache);case 2:case"end":return t.stop()}}),t,this)})))}}]),e}(),I=(0,s.Z)((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];(0,a.Z)(this,e),this.snippetSortOrder=t,this.kindFilter=n,this.providerFilter=i,this.showDeprecated=r}));function D(){return i}I.default=new I;var L=(0,s.Z)((function e(t,n,i,r){(0,a.Z)(this,e),this.items=t,this.needsClipboard=n,this.durations=i,this.disposable=r}));function O(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:I.default,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{triggerKind:0},u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:l.T.None;return x(this,void 0,void 0,(0,o.Z)().mark((function l(){var f,p,g,m,_,b,C,S,w,k,E,T,I,D=this;return(0,o.Z)().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:f=new h.G(!0),n=n.clone(),p=t.getWordAtPosition(n),g=p?new v.e(n.lineNumber,p.startColumn,n.lineNumber,p.endColumn):v.e.fromPositions(n),m={replace:g,insert:g.setEndPosition(n.lineNumber,n.column)},_=[],b=new d.SL,C=[],S=!1,w=function(e,t,i){var o,s,l,c=!1;if(!t)return c;var u,h=(0,r.Z)(t.suggestions);try{for(h.s();!(u=h.n()).done;){var f=u.value;if(!a.kindFilter.has(f.kind)){if(!a.showDeprecated&&(null===(o=null===f||void 0===f?void 0:f.tags)||void 0===o?void 0:o.includes(1)))continue;f.range||(f.range=m),f.sortText||(f.sortText="string"===typeof f.label?f.label:f.label.label),!S&&f.insertTextRules&&4&f.insertTextRules&&(S=y.Yj.guessNeedsClipboard(f.insertText)),_.push(new N(n,f,t,e)),c=!0}}}catch(p){h.e(p)}finally{h.f()}return(0,d.Wf)(t)&&b.add(t),C.push({providerName:null!==(s=e._debugDisplayName)&&void 0!==s?s:"unknown_provider",elapsedProvider:null!==(l=t.duration)&&void 0!==l?l:-1,elapsedOverall:i.elapsed()}),c},k=x(D,void 0,void 0,(0,o.Z)().mark((function e(){var r,l;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return");case 2:if(!(a.providerFilter.size>0)||a.providerFilter.has(i)){e.next=4;break}return e.abrupt("return");case 4:return r=new h.G(!0),e.next=7,i.provideCompletionItems(t,n,s,u);case 7:l=e.sent,w(i,l,r);case 9:case"end":return e.stop()}}),e)}))),E=(0,r.Z)(e.orderedGroups(t)),l.prev=12,I=(0,o.Z)().mark((function e(){var i,r;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=T.value,r=!1,e.next=4,Promise.all(i.map((function(e){return x(D,void 0,void 0,(0,o.Z)().mark((function i(){var l,d;return(0,o.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!(a.providerFilter.size>0)||a.providerFilter.has(e)){i.next=2;break}return i.abrupt("return");case 2:return i.prev=2,l=new h.G(!0),i.next=6,e.provideCompletionItems(t,n,s,u);case 6:d=i.sent,r=w(e,d,l)||r,i.next=13;break;case 10:i.prev=10,i.t0=i.catch(2),(0,c.Cp)(i.t0);case 13:case"end":return i.stop()}}),i,null,[[2,10]])})))})));case 4:if(!r&&!u.isCancellationRequested){e.next=6;break}return e.abrupt("return","break");case 6:case"end":return e.stop()}}),e)})),E.s();case 15:if((T=E.n()).done){l.next=22;break}return l.delegateYield(I(),"t0",17);case 17:if("break"!==l.t0){l.next=20;break}return l.abrupt("break",22);case 20:l.next=15;break;case 22:l.next=27;break;case 24:l.prev=24,l.t1=l.catch(12),E.e(l.t1);case 27:return l.prev=27,E.f(),l.finish(27);case 30:return l.next=32,k;case 32:if(!u.isCancellationRequested){l.next=35;break}return b.dispose(),l.abrupt("return",Promise.reject(new c.FU));case 35:return l.abrupt("return",new L(_.sort(M(a.snippetSortOrder)),S,{entries:C,elapsed:f.elapsed()},b));case 36:case"end":return l.stop()}}),l,null,[[12,24,27,30]])})))}function R(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}var A=new Map;function M(e){return A.get(e)}function P(e,t){var n;null===(n=e.getContribution("editor.contrib.suggestController"))||void 0===n||n.triggerSuggest((new Set).add(t),void 0,!0)}A.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return R(e,t)})),A.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return R(e,t)})),A.set(1,R),C.P0.registerCommand("_executeCompletionItemProvider",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return x(void 0,void 0,void 0,(0,o.Z)().mark((function t(){var i,a,s,c,u,d,h,v,y,_,b,C,S;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n[0],a=n[1],s=n[2],c=n[3],(0,f.p_)(p.o.isUri(i)),(0,f.p_)(g.L.isIPosition(a)),(0,f.p_)("string"===typeof s||!s),(0,f.p_)("number"===typeof c||!c),u=e.get(w.p),d=u.completionProvider,t.next=8,e.get(m.S).createModelReference(i);case 8:return h=t.sent,t.prev=9,v={incomplete:!1,suggestions:[]},y=[],t.next=14,O(d,h.object.textEditorModel,g.L.lift(a),void 0,{triggerCharacter:s,triggerKind:s?1:0});case 14:_=t.sent,b=(0,r.Z)(_.items);try{for(b.s();!(C=b.n()).done;)S=C.value,y.length<(null!==c&&void 0!==c?c:0)&&y.push(S.resolve(l.T.None)),v.incomplete=v.incomplete||S.container.incomplete,v.suggestions.push(S.completion)}catch(o){b.e(o)}finally{b.f()}return t.prev=17,t.next=20,Promise.all(y);case 20:return t.abrupt("return",v);case 21:return t.prev=21,setTimeout((function(){return _.disposable.dispose()}),100),t.finish(21);case 24:return t.prev=24,h.dispose(),t.finish(24);case 27:case"end":return t.stop()}}),t,null,[[9,,24,27],[17,,21,24]])})))}));var Z=function(){function e(){(0,a.Z)(this,e)}return(0,s.Z)(e,null,[{key:"isAllOff",value:function(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}},{key:"isAllOn",value:function(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}},{key:"valueFor",value:function(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}]),e}()},99249:function(e,t,n){"use strict";n.r(t),n.d(t,{SuggestController:function(){return pt},TriggerSuggestAction:function(){return vt}});var i=n(60136),r=n(27277),o=n(93433),a=n(37762),s=n(15671),l=n(43144),c=n(4801),u=n(29671),d=n(60022),h=n(82784),f=n(14173),p=n(73097),g=n(94486),v=n(11860),m=n(73616),y=n(25),_=n(85294),b=n(31782),C=n(62381),S=n(3055),w=n(38622),k=n(80133),x=n(67245),E=n(44152),T=n(54488),N=n(59560),I=n(34509),D=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},L=function(e,t){return function(n,i){t(n,i,e)}},O=function(){function e(t,n){var i=this;(0,s.Z)(this,e),this._editor=t,this._enabled=!1,this._ckAtEnd=e.AtEnd.bindTo(n),this._configListener=this._editor.onDidChangeConfiguration((function(e){return e.hasChanged(113)&&i._update()})),this._update()}return(0,l.Z)(e,[{key:"dispose",value:function(){var e;this._configListener.dispose(),null===(e=this._selectionListener)||void 0===e||e.dispose(),this._ckAtEnd.reset()}},{key:"_update",value:function(){var e=this,t="on"===this._editor.getOption(113);if(this._enabled!==t)if(this._enabled=t,this._enabled){var n=function(){if(e._editor.hasModel()){var t=e._editor.getModel(),n=e._editor.getSelection(),i=t.getWordAtPosition(n.getStartPosition());i?e._ckAtEnd.set(i.endColumn===n.getStartPosition().column):e._ckAtEnd.set(!1)}else e._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(n),n()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}}]),e}();O.AtEnd=new I.uy("atEndOfWord",!1),O=D([L(1,I.i6)],O);var R=n(27722),A=n(11133),M=n(36888),P=n(11561),Z=n(96161),F=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},B=function(e,t){return function(n,i){t(n,i,e)}},H=function(){function e(t,n){(0,s.Z)(this,e),this._editor=t,this._index=0,this._ckOtherSuggestions=e.OtherSuggestions.bindTo(n)}return(0,l.Z)(e,[{key:"dispose",value:function(){this.reset()}},{key:"reset",value:function(){var e;this._ckOtherSuggestions.reset(),null===(e=this._listener)||void 0===e||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}},{key:"set",value:function(t,n){var i=this,r=t.model,o=t.index;0!==r.items.length?e._moveIndex(!0,r,o)!==o?(this._acceptNext=n,this._model=r,this._index=o,this._listener=this._editor.onDidChangeCursorPosition((function(){i._ignore||i.reset()})),this._ckOtherSuggestions.set(!0)):this.reset():this.reset()}},{key:"next",value:function(){this._move(!0)}},{key:"prev",value:function(){this._move(!1)}},{key:"_move",value:function(t){if(this._model)try{this._ignore=!0,this._index=e._moveIndex(t,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}}],[{key:"_moveIndex",value:function(e,t,n){for(var i=n;(i=(i+t.items.length+(e?1:-1))%t.items.length)!==n&&t.items[i].completion.additionalTextEdits;);return i}}]),e}();H.OtherSuggestions=new I.uy("hasOtherSuggestions",!1),H=F([B(1,I.i6)],H);var z=n(54410),j=function(){function e(t,n,i){var r=this;(0,s.Z)(this,e),this._disposables=new v.SL,this._disposables.add(n.onDidShow((function(){return r._onItem(n.getFocusedItem())}))),this._disposables.add(n.onDidFocus(this._onItem,this)),this._disposables.add(n.onDidHide(this.reset,this)),this._disposables.add(t.onWillType((function(e){if(r._active&&!n.isFrozen()){var o=e.charCodeAt(e.length-1);r._active.acceptCharacters.has(o)&&t.getOption(0)&&i(r._active.item)}})))}return(0,l.Z)(e,[{key:"_onItem",value:function(e){if(e&&(0,u.Of)(e.item.completion.commitCharacters)){if(!this._active||this._active.item.item!==e.item){var t,n=new z.q,i=(0,a.Z)(e.item.completion.commitCharacters);try{for(i.s();!(t=i.n()).done;){var r=t.value;r.length>0&&n.add(r.charCodeAt(0))}}catch(o){i.e(o)}finally{i.f()}this._active={acceptCharacters:n,item:e}}}else this.reset()}},{key:"reset",value:function(){this._active=void 0}},{key:"dispose",value:function(){this._disposables.dispose()}}]),e}(),V=n(74165),W=n(29439),U=n(32377),G=n(23145),K=n(5323),Y=n(38619),q=n(1255),$=n(87984),X=n(15323),Q=n(90423),J=n(53584),ee=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},te=function(e,t){return function(n,i){t(n,i,e)}},ne=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},ie=function(){function e(t,n,i,r,o){(0,s.Z)(this,e),this.leadingLineContent=t.getLineContent(n.lineNumber).substr(0,n.column-1),this.leadingWord=t.getWordUntilPosition(n),this.lineNumber=n.lineNumber,this.column=n.column,this.auto=i,this.shy=r,this.noSelect=o}return(0,l.Z)(e,null,[{key:"shouldAutoTrigger",value:function(e){if(!e.hasModel())return!1;var t=e.getModel(),n=e.getPosition();t.tokenization.tokenizeIfCheap(n.lineNumber);var i=t.getWordAtPosition(n);return!!i&&(i.endColumn===n.column&&!!isNaN(Number(i.word)))}}]),e}();var re=function(){function e(t,n,i,r,o,a,l,c){var u=this;(0,s.Z)(this,e),this._editor=t,this._editorWorkerService=n,this._clipboardService=i,this._telemetryService=r,this._logService=o,this._contextKeyService=a,this._configurationService=l,this._languageFeaturesService=c,this._toDispose=new v.SL,this._triggerCharacterListener=new v.SL,this._triggerQuickSuggest=new d._F,this._state=0,this._completionDisposables=new v.SL,this._onDidCancel=new p.Q5,this._onDidTrigger=new p.Q5,this._onDidSuggest=new p.Q5,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new G.Y(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((function(){u._updateTriggerCharacters(),u.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((function(){u._updateTriggerCharacters(),u.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((function(){u._updateTriggerCharacters()}))),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange((function(){u._updateTriggerCharacters(),u._updateActiveSuggestSession()})));var h=!1;this._toDispose.add(this._editor.onDidCompositionStart((function(){h=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((function(){h=!1,u._onCompositionEnd()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((function(e){h||u._onCursorChange(e)}))),this._toDispose.add(this._editor.onDidChangeModelContent((function(){h||u._refilterCompletionItems()}))),this._updateTriggerCharacters()}return(0,l.Z)(e,[{key:"dispose",value:function(){(0,v.B9)(this._triggerCharacterListener),(0,v.B9)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}},{key:"_updateTriggerCharacters",value:function(){var e=this;if(this._triggerCharacterListener.clear(),!this._editor.getOption(83)&&this._editor.hasModel()&&this._editor.getOption(111)){var t,n=new Map,i=(0,a.Z)(this._languageFeaturesService.completionProvider.all(this._editor.getModel()));try{for(i.s();!(t=i.n()).done;){var r,o=t.value,s=(0,a.Z)(o.triggerCharacters||[]);try{for(s.s();!(r=s.n()).done;){var l=r.value,c=n.get(l);c||((c=new Set).add((0,Z.ZJ)()),n.set(l,c)),c.add(o)}}catch(d){s.e(d)}finally{s.f()}}}catch(d){i.e(d)}finally{i.f()}var u=function(t){if(function(e,t,n){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;var i=n.getValue("editor.inlineSuggest.allowSuggestOnTriggerCharacters");return void 0!==i&&Boolean(i)}(e._editor,e._contextKeyService,e._configurationService)&&!ie.shouldAutoTrigger(e._editor)){if(!t){var i=e._editor.getPosition();t=e._editor.getModel().getLineContent(i.lineNumber).substr(0,i.column-1)}var r="";(0,U.YK)(t.charCodeAt(t.length-1))?(0,U.ZG)(t.charCodeAt(t.length-2))&&(r=t.substr(t.length-2)):r=t.charAt(t.length-1);var o=n.get(r);if(o){var a=e._completionModel?{items:e._completionModel.adopt(o),clipboardText:e._completionModel.clipboardText}:void 0;e.trigger({auto:!0,shy:!1,noSelect:!1,triggerCharacter:r},Boolean(e._completionModel),o,a)}}};this._triggerCharacterListener.add(this._editor.onDidType(u)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd((function(){return u()})))}}},{key:"state",get:function(){return this._state}},{key:"cancel",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];0!==this._state&&(this._triggerQuickSuggest.cancel(),null===(e=this._requestToken)||void 0===e||e.cancel(),this._requestToken=void 0,this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:t}))}},{key:"clear",value:function(){this._completionDisposables.clear()}},{key:"_updateActiveSuggestSession",value:function(){0!==this._state&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:2===this._state,shy:!1,noSelect:!1},!0):this.cancel())}},{key:"_onCursorChange",value:function(e){if(this._editor.hasModel()){var t=this._currentSelection;this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():0===this._state&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():0!==this._state&&3===e.reason&&this._refilterCompletionItems()}}},{key:"_onCompositionEnd",value:function(){0===this._state?this._doTriggerQuickSuggest():this._refilterCompletionItems()}},{key:"_doTriggerQuickSuggest",value:function(){var e,t=this;Z.tG.isAllOff(this._editor.getOption(81))||this._editor.getOption(108).snippetsPreventQuickSuggestions&&(null===(e=E.SnippetController2.get(this._editor))||void 0===e?void 0:e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet((function(){if(0===t._state&&ie.shouldAutoTrigger(t._editor)&&t._editor.hasModel()&&t._editor.hasWidgetFocus()){var e=t._editor.getModel(),n=t._editor.getPosition(),i=t._editor.getOption(81);if(!Z.tG.isAllOff(i)){if(!Z.tG.isAllOn(i)){e.tokenization.tokenizeIfCheap(n.lineNumber);var r=e.tokenization.getLineTokens(n.lineNumber),o=r.getStandardTokenType(r.findTokenIndexAtOffset(Math.max(n.column-1-1,0)));if("on"!==Z.tG.valueFor(i,o))return}(function(e,t,n){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;var i=n.getValue("editor.inlineSuggest.allowQuickSuggestions");return void 0!==i&&Boolean(i)})(t._editor,t._contextKeyService,t._configurationService)&&t._languageFeaturesService.completionProvider.has(e)&&t.trigger({auto:!0,shy:!1,noSelect:!1})}}}),this._editor.getOption(82)))}},{key:"_refilterCompletionItems",value:function(){var e=this;Promise.resolve().then((function(){if(0!==e._state&&e._editor.hasModel()){var t=e._editor.getModel(),n=e._editor.getPosition(),i=new ie(t,n,2===e._state,!1,!1);e._onNewContext(i)}}))}},{key:"trigger",value:function(t){var n,i=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;if(this._editor.hasModel()){var l=this._editor.getModel(),c=t.auto,u=new ie(l,this._editor.getPosition(),c,t.shy,t.noSelect);this.cancel(r),this._state=c?2:1,this._onDidTrigger.fire({auto:c,shy:t.shy,position:this._editor.getPosition()}),this._context=u;var d={triggerKind:null!==(n=t.triggerKind)&&void 0!==n?n:0};t.triggerCharacter&&(d={triggerKind:1,triggerCharacter:t.triggerCharacter}),this._requestToken=new h.A;var p=this._editor.getOption(103),g=1;switch(p){case"top":g=0;break;case"bottom":g=2}var v=e._createSuggestFilter(this._editor),m=v.itemKind,y=v.showDeprecated,_=new Z.A9(g,s?new Set:m,o,y),b=Y.K.create(this._editorWorkerService,this._editor),C=(0,Z.kL)(this._languageFeaturesService.completionProvider,l,this._editor.getPosition(),_,d,this._requestToken.token);Promise.all([C,b]).then((function(e){var n=(0,W.Z)(e,2),r=n[0],o=n[1];return ne(i,void 0,void 0,(0,V.Z)().mark((function e(){var n,i,s,l,u,d;return(0,V.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(n=this._requestToken)||void 0===n||n.dispose(),this._editor.hasModel()){e.next=3;break}return e.abrupt("return");case 3:if((i=null===a||void 0===a?void 0:a.clipboardText)||!r.needsClipboard){e.next=8;break}return e.next=7,this._clipboardService.readText();case 7:i=e.sent;case 8:if(0!==this._state){e.next=10;break}return e.abrupt("return");case 10:s=this._editor.getModel(),l=r.items,a&&(u=(0,Z.wg)(g),l=l.concat(a.items).sort(u)),d=new ie(s,this._editor.getPosition(),c,t.shy,t.noSelect),this._completionModel=new Q._(l,this._context.column,{leadingLineContent:d.leadingLineContent,characterCountDelta:d.column-this._context.column},o,this._editor.getOption(108),this._editor.getOption(103),void 0,i),this._completionDisposables.add(r.disposable),this._onNewContext(d),this._reportDurationsTelemetry(r.durations);case 18:case"end":return e.stop()}}),e,this)})))})).catch(f.dL)}}},{key:"_reportDurationsTelemetry",value:function(e){var t=this;this._telemetryGate++%230===0&&setTimeout((function(){t._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),t._logService.debug("suggest.durations.json",e)}))}},{key:"_onNewContext",value:function(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if((0,U.V8)(e.leadingLineContent)===(0,U.V8)(this._context.leadingLineContent)){if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0):this.cancel();else if(this._completionModel)if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){var t,n=new Set(this._languageFeaturesService.completionProvider.all(this._editor.getModel())),i=(0,a.Z)(this._completionModel.allProvider);try{for(i.s();!(t=i.n()).done;){var r=t.value;n.delete(r)}}catch(d){i.e(d)}finally{i.f()}var o=this._completionModel.adopt(new Set);this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0,n,{items:o,clipboardText:this._completionModel.clipboardText})}else if(e.column>this._context.column&&this._completionModel.incomplete.size>0&&0!==e.leadingWord.word.length){var s=this._completionModel.incomplete,l=this._completionModel.adopt(s);this.trigger({auto:2===this._state,shy:!1,noSelect:!1,triggerKind:2},!0,s,{items:l,clipboardText:this._completionModel.clipboardText})}else{var c=this._completionModel.lineContext,u=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(ie.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0);if(this._context.auto)return void this.cancel();if(this._completionModel.lineContext=c,(u=this._completionModel.items.length>0)&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,noSelect:this._context.noSelect,isFrozen:u})}}else this.cancel();else this.cancel()}}],[{key:"_createSuggestFilter",value:function(e){var t=new Set;"none"===e.getOption(103)&&t.add(27);var n=e.getOption(108);return n.showMethods||t.add(0),n.showFunctions||t.add(1),n.showConstructors||t.add(2),n.showFields||t.add(3),n.showVariables||t.add(4),n.showClasses||t.add(5),n.showStructs||t.add(6),n.showInterfaces||t.add(7),n.showModules||t.add(8),n.showProperties||t.add(9),n.showEvents||t.add(10),n.showOperators||t.add(11),n.showUnits||t.add(12),n.showValues||t.add(13),n.showConstants||t.add(14),n.showEnums||t.add(15),n.showEnumMembers||t.add(16),n.showKeywords||t.add(17),n.showWords||t.add(18),n.showColors||t.add(19),n.showFiles||t.add(20),n.showReferences||t.add(21),n.showColors||t.add(22),n.showFolders||t.add(23),n.showTypeParameters||t.add(24),n.showSnippets||t.add(27),n.showUsers||t.add(25),n.showIssues||t.add(26),{itemKind:t,showDeprecated:n.showDeprecated}}}]),e}();re=ee([te(1,K.p),te(2,q.p),te(3,X.b),te(4,P.VZ),te(5,I.i6),te(6,$.Ui),te(7,J.p)],re);var oe=function(){function e(t,n){var i=this;(0,s.Z)(this,e),this._disposables=new v.SL,this._lastOvertyped=[],this._empty=!0,this._disposables.add(t.onWillType((function(){if(i._empty&&t.hasModel()){for(var n=t.getSelections(),r=n.length,o=!1,a=0;a<r;a++)if(!n[a].isEmpty()){o=!0;break}if(o){i._lastOvertyped=[];for(var s=t.getModel(),l=0;l<r;l++){var c=n[l];if(s.getValueLengthInRange(c)>e._maxSelectionLength)return;i._lastOvertyped[l]={value:s.getValueInRange(c),multiline:c.startLineNumber!==c.endLineNumber}}i._empty=!1}}}))),this._disposables.add(n.onDidCancel((function(e){i._empty||e.retrigger||(i._empty=!0)})))}return(0,l.Z)(e,[{key:"getLastOvertypedInfo",value:function(e){if(!this._empty&&e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}},{key:"dispose",value:function(){this._disposables.dispose()}}]),e}();oe._maxSelectionLength=51200;var ae=n(81531),se=(n(28423),n(30816)),le=n(53710),ce=n(96535),ue=n(11752),de=n(61120),he=n(78644),fe=n(14835),pe=n(48996),ge=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ve=function(e,t){return function(n,i){t(n,i,e)}},me=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,s.Z)(this,n),t.apply(this,arguments)}return(0,l.Z)(n,[{key:"updateLabel",value:function(){var e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return(0,ue.Z)((0,de.Z)(n.prototype),"updateLabel",this).call(this);this.label&&(this.label.textContent=(0,R.NC)("ddd","{0} ({1})",this._action.label,n.symbolPrintEnter(e)))}}],[{key:"symbolPrintEnter",value:function(e){var t;return null===(t=e.getLabel())||void 0===t?void 0:t.replace(/\benter\b/gi,"\u23ce")}}]),n}(fe.Mm),ye=function(){function e(t,n,i,r){(0,s.Z)(this,e),this._menuService=i,this._contextKeyService=r,this._menuDisposables=new v.SL,this.element=ae.append(t,ae.$(".suggest-status-bar"));var o=function(e){return e instanceof pe.U8?n.createInstance(me,e,void 0):void 0};this._leftActions=new he.o(this.element,{actionViewItemProvider:o}),this._rightActions=new he.o(this.element,{actionViewItemProvider:o}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}return(0,l.Z)(e,[{key:"dispose",value:function(){this._menuDisposables.dispose(),this.element.remove()}},{key:"show",value:function(){var e=this,t=this._menuService.createMenu(Z.GI,this._contextKeyService);this._menuDisposables.add(t.onDidChange((function(){return function(){var n,i=[],r=[],s=(0,a.Z)(t.getActions());try{for(s.s();!(n=s.n()).done;){var l=(0,W.Z)(n.value,2),c=l[0],u=l[1];"left"===c?i.push.apply(i,(0,o.Z)(u)):r.push.apply(r,(0,o.Z)(u))}}catch(d){s.e(d)}finally{s.f()}e._leftActions.clear(),e._leftActions.push(i),e._rightActions.clear(),e._rightActions.push(r)}()}))),this._menuDisposables.add(t)}},{key:"hide",value:function(){this._menuDisposables.clear()}}]),e}();ye=ge([ve(1,M.TG),ve(2,pe.co),ve(3,I.i6)],ye);n(82730);var _e=n(69681),be=n(32379),Ce=n(77406),Se=n(59632),we=n(64014),ke=n(24674),xe=function(){function e(){var t,n=this;(0,s.Z)(this,e),this._onDidWillResize=new p.Q5,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new p.Q5,this.onDidResize=this._onDidResize.event,this._sashListener=new v.SL,this._size=new ae.Dimension(0,0),this._minSize=new ae.Dimension(0,0),this._maxSize=new ae.Dimension(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new ke.g(this.domNode,{getVerticalSashLeft:function(){return n._size.width}},{orientation:0}),this._westSash=new ke.g(this.domNode,{getVerticalSashLeft:function(){return 0}},{orientation:0}),this._northSash=new ke.g(this.domNode,{getHorizontalSashTop:function(){return 0}},{orientation:1,orthogonalEdge:ke.l.North}),this._southSash=new ke.g(this.domNode,{getHorizontalSashTop:function(){return n._size.height}},{orientation:1,orthogonalEdge:ke.l.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;var i=0,r=0;this._sashListener.add(p.ju.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((function(){void 0===t&&(n._onDidWillResize.fire(),t=n._size,i=0,r=0)}))),this._sashListener.add(p.ju.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((function(){void 0!==t&&(t=void 0,i=0,r=0,n._onDidResize.fire({dimension:n._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((function(e){t&&(r=e.currentX-e.startX,n.layout(t.height+i,t.width+r),n._onDidResize.fire({dimension:n._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((function(e){t&&(r=-(e.currentX-e.startX),n.layout(t.height+i,t.width+r),n._onDidResize.fire({dimension:n._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((function(e){t&&(i=-(e.currentY-e.startY),n.layout(t.height+i,t.width+r),n._onDidResize.fire({dimension:n._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((function(e){t&&(i=e.currentY-e.startY,n.layout(t.height+i,t.width+r),n._onDidResize.fire({dimension:n._size,done:!1,south:!0}))}))),this._sashListener.add(p.ju.any(this._eastSash.onDidReset,this._westSash.onDidReset)((function(e){n._preferredSize&&(n.layout(n._size.height,n._preferredSize.width),n._onDidResize.fire({dimension:n._size,done:!0}))}))),this._sashListener.add(p.ju.any(this._northSash.onDidReset,this._southSash.onDidReset)((function(e){n._preferredSize&&(n.layout(n._preferredSize.height,n._size.width),n._onDidResize.fire({dimension:n._size,done:!0}))})))}return(0,l.Z)(e,[{key:"dispose",value:function(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}},{key:"enableSashes",value:function(e,t,n,i){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=n?3:0,this._westSash.state=i?3:0}},{key:"layout",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.size.height,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size.width,n=this._minSize,i=n.height,r=n.width,o=this._maxSize,a=o.height,s=o.width;e=Math.max(i,Math.min(a,e)),t=Math.max(r,Math.min(s,t));var l=new ae.Dimension(t,e);ae.Dimension.equals(l,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=l,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}},{key:"clearSashHoverState",value:function(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}},{key:"size",get:function(){return this._size}},{key:"maxSize",get:function(){return this._maxSize},set:function(e){this._maxSize=e}},{key:"minSize",get:function(){return this._minSize},set:function(e){this._minSize=e}},{key:"preferredSize",get:function(){return this._preferredSize},set:function(e){this._preferredSize=e}}]),e}(),Ee=n(27338),Te=n(2801),Ne=n(61066),Ie=n(21919),De=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Le=function(e,t){return function(n,i){t(n,i,e)}};function Oe(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}var Re=function(){function e(t,n){var i=this;(0,s.Z)(this,e),this._editor=t,this._onDidClose=new p.Q5,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new p.Q5,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new v.SL,this._renderDisposeable=new v.SL,this._borderWidth=1,this._size=new ae.Dimension(330,0),this.domNode=ae.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=n.createInstance(Ie.$,{editor:t}),this._body=ae.$(".body"),this._scrollbar=new Ee.s$(this._body,{alwaysConsumeMouseWheel:!0}),ae.append(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=ae.append(this._body,ae.$(".header")),this._close=ae.append(this._header,ae.$("span"+Te.lA.close.cssSelector)),this._close.title=R.NC("details.close","Close"),this._type=ae.append(this._header,ae.$("p.type")),this._docs=ae.append(this._body,ae.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration((function(e){e.hasChanged(46)&&i._configureFont()})))}return(0,l.Z)(e,[{key:"dispose",value:function(){this._disposables.dispose(),this._renderDisposeable.dispose()}},{key:"_configureFont",value:function(){var e=this._editor.getOptions(),t=e.get(46),n=t.getMassagedFontFamily(),i=e.get(109)||t.fontSize,r=e.get(110)||t.lineHeight,o=t.fontWeight,a="".concat(i,"px"),s="".concat(r,"px");this.domNode.style.fontSize=a,this.domNode.style.lineHeight="".concat(r/i),this.domNode.style.fontWeight=o,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=n,this._close.style.height=s,this._close.style.width=s}},{key:"getLayoutInfo",value:function(){var e=this._editor.getOption(110)||this._editor.getOption(46).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}},{key:"renderLoading",value:function(){this._type.textContent=R.NC("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}},{key:"renderItem",value:function(e,t){var n,i,r=this;this._renderDisposeable.clear();var o=e.completion,a=o.detail,s=o.documentation;if(t){var l="";l+="score: ".concat(e.score[0],"\n"),l+="prefix: ".concat(null!==(n=e.word)&&void 0!==n?n:"(no prefix)","\n"),l+="word: ".concat(e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel,"\n"),l+="distance: ".concat(e.distance," (localityBonus-setting)\n"),l+="index: ".concat(e.idx,", based on ").concat(e.completion.sortText&&'sortText: "'.concat(e.completion.sortText,'"')||"label","\n"),l+="commit_chars: ".concat(null===(i=e.completion.commitCharacters)||void 0===i?void 0:i.join(""),"\n"),s=(new Ne.W5).appendCodeblock("empty",l),a="Provider: ".concat(e.provider._debugDisplayName)}if(t||Oe(e)){if(this.domNode.classList.remove("no-docs","no-type"),a){var c=a.length>1e5?"".concat(a.substr(0,1e5),"\u2026"):a;this._type.textContent=c,this._type.title=c,ae.show(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(c))}else ae.clearNode(this._type),this._type.title="",ae.hide(this._type),this.domNode.classList.add("no-type");if(ae.clearNode(this._docs),"string"===typeof s)this._docs.classList.remove("markdown-docs"),this._docs.textContent=s;else if(s){this._docs.classList.add("markdown-docs"),ae.clearNode(this._docs);var u=this._markdownRenderer.render(s);this._docs.appendChild(u.element),this._renderDisposeable.add(u),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync((function(){r.layout(r._size.width,r._type.clientHeight+r._docs.clientHeight),r._onDidChangeContents.fire(r)})))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=function(e){e.preventDefault(),e.stopPropagation()},this._close.onclick=function(e){e.preventDefault(),e.stopPropagation(),r._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}},{key:"clearContents",value:function(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}},{key:"size",get:function(){return this._size}},{key:"layout",value:function(e,t){var n=new ae.Dimension(e,t);ae.Dimension.equals(n,this._size)||(this._size=n,ae.size(this.domNode,e,t)),this._scrollbar.scanDomNode()}},{key:"scrollDown",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;this._body.scrollTop+=e}},{key:"scrollUp",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;this._body.scrollTop-=e}},{key:"scrollTop",value:function(){this._body.scrollTop=0}},{key:"scrollBottom",value:function(){this._body.scrollTop=this._body.scrollHeight}},{key:"pageDown",value:function(){this.scrollDown(80)}},{key:"pageUp",value:function(){this.scrollUp(80)}},{key:"borderWidth",get:function(){return this._borderWidth},set:function(e){this._borderWidth=e}}]),e}();Re=De([Le(1,M.TG)],Re);var Ae,Me=function(){function e(t,n){var i,r,o=this;(0,s.Z)(this,e),this.widget=t,this._editor=n,this._disposables=new v.SL,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new xe,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(t.domNode),this._resizable.enableSashes(!1,!0,!0,!1);var a=0,l=0;this._disposables.add(this._resizable.onDidWillResize((function(){i=o._topLeft,r=o._resizable.size}))),this._disposables.add(this._resizable.onDidResize((function(e){if(i&&r){o.widget.layout(e.dimension.width,e.dimension.height);var t=!1;e.west&&(l=r.width-e.dimension.width,t=!0),e.north&&(a=r.height-e.dimension.height,t=!0),t&&o._applyTopLeft({top:i.top+a,left:i.left+l})}e.done&&(i=void 0,r=void 0,a=0,l=0,o._userSize=e.dimension)}))),this._disposables.add(this.widget.onDidChangeContents((function(){var e;o._anchorBox&&o._placeAtAnchor(o._anchorBox,null!==(e=o._userSize)&&void 0!==e?e:o.widget.size,o._preferAlignAtTop)})))}return(0,l.Z)(e,[{key:"dispose",value:function(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}},{key:"getId",value:function(){return"suggest.details"}},{key:"getDomNode",value:function(){return this._resizable.domNode}},{key:"getPosition",value:function(){return null}},{key:"show",value:function(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}},{key:"placeAtAnchor",value:function(e,t){var n,i=e.getBoundingClientRect();this._anchorBox=i,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,null!==(n=this._userSize)&&void 0!==n?n:this.widget.size,t)}},{key:"_placeAtAnchor",value:function(e,t,n){var i,r,o,a=ae.getClientArea(document.body),s=this.widget.getLayoutInfo(),l=new ae.Dimension(220,2*s.lineHeight),c=e.top,u=function(){var n=a.width-(e.left+e.width+s.borderWidth+s.horizontalPadding),i=-s.borderWidth+e.left+e.width,r=new ae.Dimension(n,a.height-e.top-s.borderHeight-s.verticalPadding),o=r.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:c,left:i,fit:n-t.width,maxSizeTop:r,maxSizeBottom:o,minSize:l.with(Math.min(n,l.width))}}(),d=[u,function(){var n=e.left-s.borderWidth-s.horizontalPadding,i=Math.max(s.horizontalPadding,e.left-t.width-s.borderWidth),r=new ae.Dimension(n,a.height-e.top-s.borderHeight-s.verticalPadding),o=r.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:c,left:i,fit:n-t.width,maxSizeTop:r,maxSizeBottom:o,minSize:l.with(Math.min(n,l.width))}}(),function(){var n=e.left,i=-s.borderWidth+e.top+e.height,r=new ae.Dimension(e.width-s.borderHeight,a.height-e.top-e.height-s.verticalPadding);return{top:i,left:n,fit:r.height-t.height,maxSizeBottom:r,maxSizeTop:r,minSize:l.with(r.width)}}()],h=null!==(i=d.find((function(e){return e.fit>=0})))&&void 0!==i?i:d.sort((function(e,t){return t.fit-e.fit}))[0],f=e.top+e.height-s.borderHeight,p=t.height,g=Math.max(h.maxSizeTop.height,h.maxSizeBottom.height);p>g&&(p=g),n?p<=h.maxSizeTop.height?(r=!0,o=h.maxSizeTop):(r=!1,o=h.maxSizeBottom):p<=h.maxSizeBottom.height?(r=!1,o=h.maxSizeBottom):(r=!0,o=h.maxSizeTop),this._applyTopLeft({left:h.left,top:r?h.top:f-p}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!r,h===u,r,h!==u),this._resizable.minSize=h.minSize,this._resizable.maxSize=o,this._resizable.layout(p,Math.min(o.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}},{key:"_applyTopLeft",value:function(e){this._topLeft=e,this.getDomNode().style.left="".concat(this._topLeft.left,"px"),this.getDomNode().style.top="".concat(this._topLeft.top,"px")}}]),e}(),Pe=n(89182),Ze=n(73160),Fe=n(72112),Be=n(12905),He=n(84855),ze=n(41175),je=n(24092);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(Ae||(Ae={}));var Ve=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function We(e,t,n,i){var r=i===Ae.ROOT_FOLDER?["rootfolder-icon"]:i===Ae.FOLDER?["folder-icon"]:["file-icon"];if(n){var o;if(n.scheme===He.lg.data){o=ze.Vb.parseMetaData(n).get(ze.Vb.META_DATA_LABEL)}else{var a=n.path.match(Ve);a?(o=Ue(a[2].toLowerCase()),a[1]&&r.push("".concat(Ue(a[1].toLowerCase()),"-name-dir-icon"))):o=Ue(n.authority.toLowerCase())}if(i===Ae.FOLDER)r.push("".concat(o,"-name-folder-icon"));else{if(o){if(r.push("".concat(o,"-name-file-icon")),r.push("name-file-icon"),o.length<=255)for(var s=o.split("."),l=1;l<s.length;l++)r.push("".concat(s.slice(l).join("."),"-ext-file-icon"));r.push("ext-file-icon")}var c=function(e,t,n){if(!n)return null;var i=null;if(n.scheme===He.lg.data){var r=ze.Vb.parseMetaData(n).get(ze.Vb.META_DATA_MIME);r&&(i=t.getLanguageIdByMimeType(r))}else{var o=e.getModel(n);o&&(i=o.getLanguageId())}if(i&&i!==je.bd)return i;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);c&&r.push("".concat(Ue(c),"-lang-file-icon"))}}return r}function Ue(e){return e.replace(/[\11\12\14\15\40]/g,"/")}var Ge,Ke=n(29257),Ye=n(72762),qe=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},$e=function(e,t){return function(n,i){t(n,i,e)}};function Xe(e){return"suggest-aria-id:".concat(e)}var Qe=(0,n(96752).q5)("suggest-more-info",Te.lA.chevronRight,R.NC("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),Je=new((Ge=function(){function e(){(0,s.Z)(this,e)}return(0,l.Z)(e,[{key:"extract",value:function(t,n){if(t.textLabel.match(e._regexStrict))return n[0]=t.textLabel,!0;if(t.completion.detail&&t.completion.detail.match(e._regexStrict))return n[0]=t.completion.detail,!0;if("string"===typeof t.completion.documentation){var i=e._regexRelaxed.exec(t.completion.documentation);if(i&&(0===i.index||i.index+i[0].length===t.completion.documentation.length))return n[0]=i[0],!0}return!1}}]),e}())._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,Ge._regexStrict=new RegExp("^".concat(Ge._regexRelaxed.source,"$"),"i"),Ge),et=function(){function e(t,n,i,r){(0,s.Z)(this,e),this._editor=t,this._modelService=n,this._languageService=i,this._themeService=r,this._onDidToggleDetails=new p.Q5,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}return(0,l.Z)(e,[{key:"dispose",value:function(){this._onDidToggleDetails.dispose()}},{key:"renderTemplate",value:function(e){var t=this,n=Object.create(null);n.disposables=new v.SL,n.root=e,n.root.classList.add("show-file-icons"),n.icon=(0,ae.append)(e,(0,ae.$)(".icon")),n.colorspan=(0,ae.append)(n.icon,(0,ae.$)("span.colorspan"));var i=(0,ae.append)(e,(0,ae.$)(".contents")),r=(0,ae.append)(i,(0,ae.$)(".main"));n.iconContainer=(0,ae.append)(r,(0,ae.$)(".icon-label.codicon")),n.left=(0,ae.append)(r,(0,ae.$)("span.left")),n.right=(0,ae.append)(r,(0,ae.$)("span.right")),n.iconLabel=new Pe.g(n.left,{supportHighlights:!0,supportIcons:!0}),n.disposables.add(n.iconLabel),n.parametersLabel=(0,ae.append)(n.left,(0,ae.$)("span.signature-label")),n.qualifierLabel=(0,ae.append)(n.left,(0,ae.$)("span.qualifier-label")),n.detailsLabel=(0,ae.append)(n.right,(0,ae.$)("span.details-label")),n.readMore=(0,ae.append)(n.right,(0,ae.$)("span.readMore"+we.kS.asCSSSelector(Qe))),n.readMore.title=R.NC("readMore","Read More");var o=function(){var e=t._editor.getOptions(),i=e.get(46),o=i.getMassagedFontFamily(),a=i.fontFeatureSettings,s=e.get(109)||i.fontSize,l=e.get(110)||i.lineHeight,c=i.fontWeight,u=i.letterSpacing,d="".concat(s,"px"),h="".concat(l,"px"),f="".concat(u,"px");n.root.style.fontSize=d,n.root.style.fontWeight=c,n.root.style.letterSpacing=f,r.style.fontFamily=o,r.style.fontFeatureSettings=a,r.style.lineHeight=h,n.icon.style.height=h,n.icon.style.width=h,n.readMore.style.height=h,n.readMore.style.width=h};return o(),n.disposables.add(this._editor.onDidChangeConfiguration((function(e){(e.hasChanged(46)||e.hasChanged(109)||e.hasChanged(110))&&o()}))),n}},{key:"renderElement",value:function(e,t,n){var i=this,r=e.completion;n.root.id=Xe(t),n.colorspan.style.backgroundColor="";var a={labelEscapeNewLines:!0,matches:(0,Ze.mB)(e.score)},s=[];if(19===r.kind&&Je.extract(e,s))n.icon.className="icon customcolor",n.iconContainer.className="icon hide",n.colorspan.style.backgroundColor=s[0];else if(20===r.kind&&this._themeService.getFileIconTheme().hasFileIcons){n.icon.className="icon hide",n.iconContainer.className="icon hide";var l=We(this._modelService,this._languageService,Fe.o.from({scheme:"fake",path:e.textLabel}),Ae.FILE),c=We(this._modelService,this._languageService,Fe.o.from({scheme:"fake",path:r.detail}),Ae.FILE);a.extraClasses=l.length>c.length?l:c}else if(23===r.kind&&this._themeService.getFileIconTheme().hasFolderIcons)n.icon.className="icon hide",n.iconContainer.className="icon hide",a.extraClasses=[We(this._modelService,this._languageService,Fe.o.from({scheme:"fake",path:e.textLabel}),Ae.FOLDER),We(this._modelService,this._languageService,Fe.o.from({scheme:"fake",path:r.detail}),Ae.FOLDER)].flat();else{var u;n.icon.className="icon hide",n.iconContainer.className="",(u=n.iconContainer.classList).add.apply(u,["suggest-icon"].concat((0,o.Z)(Te.dT.asClassNameArray(Be.gX.toIcon(r.kind)))))}r.tags&&r.tags.indexOf(1)>=0&&(a.extraClasses=(a.extraClasses||[]).concat(["deprecated"]),a.matches=[]),n.iconLabel.setLabel(e.textLabel,void 0,a),"string"===typeof r.label?(n.parametersLabel.textContent="",n.detailsLabel.textContent=tt(r.detail||""),n.root.classList.add("string-label")):(n.parametersLabel.textContent=tt(r.label.detail||""),n.detailsLabel.textContent=tt(r.label.description||""),n.root.classList.remove("string-label")),this._editor.getOption(108).showInlineDetails?(0,ae.show)(n.detailsLabel):(0,ae.hide)(n.detailsLabel),Oe(e)?(n.right.classList.add("can-expand-details"),(0,ae.show)(n.readMore),n.readMore.onmousedown=function(e){e.stopPropagation(),e.preventDefault()},n.readMore.onclick=function(e){e.stopPropagation(),e.preventDefault(),i._onDidToggleDetails.fire()}):(n.right.classList.remove("can-expand-details"),(0,ae.hide)(n.readMore),n.readMore.onmousedown=null,n.readMore.onclick=null)}},{key:"disposeTemplate",value:function(e){e.disposables.dispose()}}]),e}();function tt(e){return e.replace(/\r\n|\r|\n/g,"")}et=qe([$e(1,Ke.q),$e(2,Ye.O),$e(3,we.XE)],et);var nt=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},it=function(e,t){return function(n,i){t(n,i,e)}},rt=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},ot=((0,be.P6G)("editorSuggestWidget.background",{dark:be.D0T,light:be.D0T,hcDark:be.D0T,hcLight:be.D0T},R.NC("editorSuggestWidgetBackground","Background color of the suggest widget.")),(0,be.P6G)("editorSuggestWidget.border",{dark:be.D1_,light:be.D1_,hcDark:be.D1_,hcLight:be.D1_},R.NC("editorSuggestWidgetBorder","Border color of the suggest widget.")),(0,be.P6G)("editorSuggestWidget.foreground",{dark:be.NOs,light:be.NOs,hcDark:be.NOs,hcLight:be.NOs},R.NC("editorSuggestWidgetForeground","Foreground color of the suggest widget."))),at=((0,be.P6G)("editorSuggestWidget.selectedForeground",{dark:be.NPS,light:be.NPS,hcDark:be.NPS,hcLight:be.NPS},R.NC("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),(0,be.P6G)("editorSuggestWidget.selectedIconForeground",{dark:be.cbQ,light:be.cbQ,hcDark:be.cbQ,hcLight:be.cbQ},R.NC("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget.")),(0,be.P6G)("editorSuggestWidget.selectedBackground",{dark:be.Vqd,light:be.Vqd,hcDark:be.Vqd,hcLight:be.Vqd},R.NC("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."))),st=((0,be.P6G)("editorSuggestWidget.highlightForeground",{dark:be.Gwp,light:be.Gwp,hcDark:be.Gwp,hcLight:be.Gwp},R.NC("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),(0,be.P6G)("editorSuggestWidget.focusHighlightForeground",{dark:be.PX0,light:be.PX0,hcDark:be.PX0,hcLight:be.PX0},R.NC("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),(0,be.P6G)("editorSuggestWidgetStatus.foreground",{dark:(0,be.ZnX)(ot,.5),light:(0,be.ZnX)(ot,.5),hcDark:(0,be.ZnX)(ot,.5),hcLight:(0,be.ZnX)(ot,.5)},R.NC("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status.")),function(){function e(t,n){(0,s.Z)(this,e),this._service=t,this._key="suggestWidget.size/".concat(n.getEditorType(),"/").concat(n instanceof ce.H)}return(0,l.Z)(e,[{key:"restore",value:function(){var e,t=null!==(e=this._service.get(this._key,0))&&void 0!==e?e:"";try{var n=JSON.parse(t);if(ae.Dimension.is(n))return ae.Dimension.lift(n)}catch(i){}}},{key:"store",value:function(e){this._service.store(this._key,JSON.stringify(e),0,1)}},{key:"reset",value:function(){this._service.remove(this._key,0)}}]),e}()),lt=function(){function e(t,n,i,r,o){var a=this;(0,s.Z)(this,e),this.editor=t,this._storageService=n,this._state=0,this._isAuto=!1,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new d._F,this._disposables=new v.SL,this._onDidSelect=new p.Q5,this._onDidFocus=new p.Q5,this._onDidHide=new p.Q5,this._onDidShow=new p.Q5,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new p.Q5,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new xe,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new ct(this,t),this._persistedSize=new st(n,t);var c,u=(0,l.Z)((function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(0,s.Z)(this,e),this.persistedSize=t,this.currentSize=n,this.persistHeight=i,this.persistWidth=r}));this._disposables.add(this.element.onDidWillResize((function(){a._contentWidget.lockPreference(),c=new u(a._persistedSize.restore(),a.element.size)}))),this._disposables.add(this.element.onDidResize((function(e){var t,n,i,r;if(a._resize(e.dimension.width,e.dimension.height),c&&(c.persistHeight=c.persistHeight||!!e.north||!!e.south,c.persistWidth=c.persistWidth||!!e.east||!!e.west),e.done){if(c){var o=a.getLayoutInfo(),s=o.itemHeight,l=o.defaultSize,u=Math.round(s/2),d=a.element.size,h=d.width,f=d.height;(!c.persistHeight||Math.abs(c.currentSize.height-f)<=u)&&(f=null!==(n=null===(t=c.persistedSize)||void 0===t?void 0:t.height)&&void 0!==n?n:l.height),(!c.persistWidth||Math.abs(c.currentSize.width-h)<=u)&&(h=null!==(r=null===(i=c.persistedSize)||void 0===i?void 0:i.width)&&void 0!==r?r:l.width),a._persistedSize.store(new ae.Dimension(h,f))}a._contentWidget.unlockPreference(),c=void 0}}))),this._messageElement=ae.append(this.element.domNode,ae.$(".message")),this._listElement=ae.append(this.element.domNode,ae.$(".tree"));var h=o.createInstance(Re,this.editor);h.onDidClose(this.toggleDetails,this,this._disposables),this._details=new Me(h,this.editor);var f=function(){return a.element.domNode.classList.toggle("no-icons",!a.editor.getOption(108).showIcons)};f();var g=o.createInstance(et,this.editor);this._disposables.add(g),this._disposables.add(g.onDidToggleDetails((function(){return a.toggleDetails()}))),this._list=new se.aV("SuggestWidget",this._listElement,{getHeight:function(e){return a.getLayoutInfo().itemHeight},getTemplateId:function(e){return"suggestion"}},[g],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:function(){return"option"},getWidgetAriaLabel:function(){return R.NC("suggest","Suggest")},getWidgetRole:function(){return"listbox"},getAriaLabel:function(e){var t=e.textLabel;if("string"!==typeof e.completion.label){var n=e.completion.label,i=n.detail,r=n.description;i&&r?t=R.NC("label.full","{0}{1}, {2}",t,i,r):i?t=R.NC("label.detail","{0}{1}",t,i):r&&(t=R.NC("label.desc","{0}, {1}",t,r))}if(!e.isResolved||!a._isDetailsVisible())return t;var o=e.completion,s=o.documentation,l=o.detail,c=U.WU("{0}{1}",l||"",s?"string"===typeof s?s:s.value:"");return R.NC("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,c)}}}),this._status=o.createInstance(ye,this.element.domNode);var m=function(){return a.element.domNode.classList.toggle("with-status-bar",a.editor.getOption(108).showStatusBar)};m(),this._disposables.add((0,Ce.Jl)(this._list,r,{listInactiveFocusBackground:at,listInactiveFocusOutline:be.xL1})),this._disposables.add(r.onDidColorThemeChange((function(e){return a._onThemeChange(e)}))),this._onThemeChange(r.getColorTheme()),this._disposables.add(this._list.onMouseDown((function(e){return a._onListMouseDownOrTap(e)}))),this._disposables.add(this._list.onTap((function(e){return a._onListMouseDownOrTap(e)}))),this._disposables.add(this._list.onDidChangeSelection((function(e){return a._onListSelection(e)}))),this._disposables.add(this._list.onDidChangeFocus((function(e){return a._onListFocus(e)}))),this._disposables.add(this.editor.onDidChangeCursorSelection((function(){return a._onCursorSelectionChanged()}))),this._disposables.add(this.editor.onDidChangeConfiguration((function(e){e.hasChanged(108)&&(m(),f())}))),this._ctxSuggestWidgetVisible=Z._y.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=Z._y.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=Z._y.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=Z._y.HasFocusedSuggestion.bindTo(i),this._disposables.add(ae.addStandardDisposableListener(this._details.widget.domNode,"keydown",(function(e){a._onDetailsKeydown.fire(e)}))),this._disposables.add(this.editor.onMouseDown((function(e){return a._onEditorMouseDown(e)})))}return(0,l.Z)(e,[{key:"dispose",value:function(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}},{key:"_onEditorMouseDown",value:function(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}},{key:"_onCursorSelectionChanged",value:function(){0!==this._state&&this._contentWidget.layout()}},{key:"_onListMouseDownOrTap",value:function(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}},{key:"_onListSelection",value:function(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}},{key:"_select",value:function(e,t){var n=this._completionModel;n&&(this._onDidSelect.fire({item:e,index:t,model:n}),this.editor.focus())}},{key:"_onThemeChange",value:function(e){this._details.widget.borderWidth=(0,Se.c3)(e.type)?2:1}},{key:"_onListFocus",value:function(e){var t,n=this;if(!this._ignoreFocusEvents){if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),void this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);if(this._completionModel){this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);var i=e.elements[0],r=e.indexes[0];i!==this._focusedItem&&(null===(t=this._currentSuggestionDetails)||void 0===t||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(r),this._currentSuggestionDetails=(0,d.PG)((function(e){return rt(n,void 0,void 0,(0,V.Z)().mark((function t(){var n,r,o,a=this;return(0,V.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,d.Vg)((function(){a._isDetailsVisible()&&a.showDetails(!0)}),250),r=e.onCancellationRequested((function(){return n.dispose()})),t.next=4,i.resolve(e);case 4:return o=t.sent,n.dispose(),r.dispose(),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))})),this._currentSuggestionDetails.then((function(){r>=n._list.length||i!==n._list.element(r)||(n._ignoreFocusEvents=!0,n._list.splice(r,1,[i]),n._list.setFocus([r]),n._ignoreFocusEvents=!1,n._isDetailsVisible()?n.showDetails(!1):n.element.domNode.classList.remove("docs-side"),n.editor.setAriaOptions({activeDescendant:Xe(r)}))})).catch(f.dL)),this._onDidFocus.fire({item:i,index:r,model:this._completionModel})}}}},{key:"_setState",value:function(t){if(this._state!==t)switch(this._state=t,this.element.domNode.classList.toggle("frozen",4===t),this.element.domNode.classList.remove("message"),t){case 0:ae.hide(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=e.LOADING_MESSAGE,ae.hide(this._listElement,this._status.element),ae.show(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=e.NO_SUGGESTIONS_MESSAGE,ae.hide(this._listElement,this._status.element),ae.show(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 3:case 4:ae.hide(this._messageElement),ae.show(this._listElement,this._status.element),this._show();break;case 5:ae.hide(this._messageElement),ae.show(this._listElement,this._status.element),this._details.show(),this._show()}}},{key:"_show",value:function(){var e=this;this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet((function(){e.element.domNode.classList.add("visible"),e._onDidShow.fire(e)}),100)}},{key:"showTriggered",value:function(e,t){var n=this;0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=(0,d.Vg)((function(){return n._setState(1)}),t)))}},{key:"showSuggestions",value:function(e,t,n,i){var r,o;if(this._contentWidget.setPosition(this.editor.getPosition()),null===(r=this._loadingTimeout)||void 0===r||r.dispose(),null===(o=this._currentSuggestionDetails)||void 0===o||o.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),n&&2!==this._state&&0!==this._state)this._setState(4);else{var a=this._completionModel.items.length,s=0===a;if(this._ctxSuggestWidgetMultipleSuggestions.set(a>1),s)return this._setState(i?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._list.splice(0,this._list.length,this._completionModel.items),this._setState(n?4:3),t>=0&&(this._list.reveal(t,0),this._list.setFocus([t])),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}}},{key:"selectNextPage",value:function(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}},{key:"selectNext",value:function(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}},{key:"selectLast",value:function(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}},{key:"selectPreviousPage",value:function(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}},{key:"selectPrevious",value:function(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}},{key:"selectFirst",value:function(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}},{key:"getFocusedItem",value:function(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}},{key:"toggleDetailsFocus",value:function(){5===this._state?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}},{key:"toggleDetails",value:function(){this._isDetailsVisible()?(this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!Oe(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}},{key:"showDetails",value:function(e){this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")}},{key:"toggleExplainMode",value:function(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}},{key:"resetPersistedSize",value:function(){this._persistedSize.reset()}},{key:"hideWidget",value:function(){var e;null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();var t=this._persistedSize.restore(),n=Math.ceil(4.3*this.getLayoutInfo().itemHeight);t&&t.height<n&&this._persistedSize.store(t.with(void 0,n))}},{key:"isFrozen",value:function(){return 4===this._state}},{key:"_afterRender",value:function(e){null!==e?2!==this._state&&1!==this._state&&(this._isDetailsVisible()&&this._details.show(),this._positionDetails()):this._isDetailsVisible()&&this._details.hide()}},{key:"_layout",value:function(e){var t,n,i;if(this.editor.hasModel()&&this.editor.getDomNode()){var r=ae.getClientArea(document.body),o=this.getLayoutInfo();e||(e=o.defaultSize);var a=e.height,s=e.width;if(this._status.element.style.lineHeight="".concat(o.itemHeight,"px"),2===this._state||1===this._state)a=o.itemHeight+o.borderHeight,s=o.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new ae.Dimension(s,a),this._contentWidget.setPreference(2);else{var l=r.width-o.borderHeight-2*o.horizontalPadding;s>l&&(s=l);var c=this._completionModel?this._completionModel.stats.pLabelLen*o.typicalHalfwidthCharacterWidth:s,u=o.statusBarHeight+this._list.contentHeight+o.borderHeight,d=o.itemHeight+o.statusBarHeight,h=ae.getDomNodePagePosition(this.editor.getDomNode()),f=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),p=h.top+f.top+f.height,g=Math.min(r.height-p-o.verticalPadding,u),v=h.top+f.top-o.verticalPadding,m=Math.min(v,u),y=Math.min(Math.max(m,g)+o.borderHeight,u);a===(null===(t=this._cappedHeight)||void 0===t?void 0:t.capped)&&(a=this._cappedHeight.wanted),a<d&&(a=d),a>y&&(a=y);a>g||this._forceRenderingAbove&&v>150?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),y=m):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),y=g),this.element.preferredSize=new ae.Dimension(c,o.defaultSize.height),this.element.maxSize=new ae.Dimension(l,y),this.element.minSize=new ae.Dimension(220,d),this._cappedHeight=a===u?{wanted:null!==(i=null===(n=this._cappedHeight)||void 0===n?void 0:n.wanted)&&void 0!==i?i:e.height,capped:a}:void 0}this._resize(s,a)}}},{key:"_resize",value:function(e,t){var n=this.element.maxSize,i=n.width,r=n.height;e=Math.min(i,e),t=Math.min(r,t);var o=this.getLayoutInfo().statusBarHeight;this._list.layout(t-o,e),this._listElement.style.height="".concat(t-o,"px"),this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}},{key:"_positionDetails",value:function(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,2===(null===(e=this._contentWidget.getPosition())||void 0===e?void 0:e.preference[0]))}},{key:"getLayoutInfo",value:function(){var e=this.editor.getOption(46),t=(0,le.uZ)(this.editor.getOption(110)||e.lineHeight,8,1e3),n=this.editor.getOption(108).showStatusBar&&2!==this._state&&1!==this._state?t:0,i=this._details.widget.borderWidth,r=2*i;return{itemHeight:t,statusBarHeight:n,borderWidth:i,borderHeight:r,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new ae.Dimension(430,n+12*t+r)}}},{key:"_isDetailsVisible",value:function(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}},{key:"_setDetailsVisible",value:function(e){this._storageService.store("expandSuggestionDocs",e,0,0)}},{key:"forceRenderingAbove",value:function(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}},{key:"stopForceRenderingAbove",value:function(){this._forceRenderingAbove=!1}}]),e}();lt.LOADING_MESSAGE=R.NC("suggestWidget.loading","Loading..."),lt.NO_SUGGESTIONS_MESSAGE=R.NC("suggestWidget.noSuggestions","No suggestions."),lt=nt([it(1,_e.Uy),it(2,I.i6),it(3,we.XE),it(4,M.TG)],lt);var ct=function(){function e(t,n){(0,s.Z)(this,e),this._widget=t,this._editor=n,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}return(0,l.Z)(e,[{key:"dispose",value:function(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}},{key:"getId",value:function(){return"editor.widget.suggestWidget"}},{key:"getDomNode",value:function(){return this._widget.element.domNode}},{key:"show",value:function(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}},{key:"hide",value:function(){this._hidden||(this._hidden=!0,this.layout())}},{key:"layout",value:function(){this._editor.layoutContentWidget(this)}},{key:"getPosition",value:function(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}},{key:"beforeRender",value:function(){var e=this._widget.element.size,t=e.height,n=e.width,i=this._widget.getLayoutInfo(),r=i.borderWidth,o=i.horizontalPadding;return new ae.Dimension(n+2*r+o,t+2*r)}},{key:"afterRender",value:function(e){this._widget._afterRender(e)}},{key:"setPreference",value:function(e){this._preferenceLocked||(this._preference=e)}},{key:"lockPreference",value:function(){this._preferenceLocked=!0}},{key:"unlockPreference",value:function(){this._preferenceLocked=!1}},{key:"setPosition",value:function(e){this._position=e}}]),e}(),ut=n(57741),dt=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ht=function(e,t){return function(n,i){t(n,i,e)}},ft=function(){function e(t,n){if((0,s.Z)(this,e),this._model=t,this._position=n,t.getLineMaxColumn(n.lineNumber)!==n.column){var i=t.getOffsetAt(n),r=t.getPositionAt(i+1);this._marker=t.deltaDecorations([],[{range:k.e.fromPositions(n,r),options:{description:"suggest-line-suffix",stickiness:1}}])}}return(0,l.Z)(e,[{key:"dispose",value:function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}},{key:"delta",value:function(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){var t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}]),e}(),pt=function(){function e(t,n,i,r,o,l,c){var u=this;(0,s.Z)(this,e),this._memoryService=n,this._commandService=i,this._contextKeyService=r,this._instantiationService=o,this._logService=l,this._telemetryService=c,this._lineSuffix=new v.XK,this._toDispose=new v.SL,this._selectors=new gt((function(e){return e.priority})),this._telemetryGate=0,this.editor=t,this.model=o.createInstance(re,this.editor);var h=Z._y.InsertMode.bindTo(r);h.set(t.getOption(108).insertMode),this.model.onDidTrigger((function(){return h.set(t.getOption(108).insertMode)})),this.widget=this._toDispose.add(new d.Ue((function(){var e=u._instantiationService.createInstance(lt,u.editor);u._toDispose.add(e),u._toDispose.add(e.onDidSelect((function(e){return u._insertSuggestion(e,0)}),u));var t=new j(u.editor,e,(function(e){return u._insertSuggestion(e,2)}));u._toDispose.add(t),u._toDispose.add(u.model.onDidSuggest((function(e){0===e.completionModel.items.length&&t.reset()})));var n=Z._y.MakesTextEdit.bindTo(u._contextKeyService),i=Z._y.HasInsertAndReplaceRange.bindTo(u._contextKeyService),r=Z._y.CanResolve.bindTo(u._contextKeyService);return u._toDispose.add((0,v.OF)((function(){n.reset(),i.reset(),r.reset()}))),u._toDispose.add(e.onDidFocus((function(e){var t=e.item,o=u.editor.getPosition(),a=t.editStart.column,s=o.column,l=!0;"smart"!==u.editor.getOption(1)||2!==u.model.state||t.completion.additionalTextEdits||4&t.completion.insertTextRules||s-a!==t.completion.insertText.length||(l=u.editor.getModel().getValueInRange({startLineNumber:o.lineNumber,startColumn:a,endLineNumber:o.lineNumber,endColumn:s})!==t.completion.insertText);n.set(l),i.set(!w.L.equals(t.editInsertEnd,t.editReplaceEnd)),r.set(Boolean(t.provider.resolveCompletionItem)||Boolean(t.completion.documentation)||t.completion.detail!==t.completion.label)}))),u._toDispose.add(e.onDetailsKeyDown((function(e){e.toKeybinding().equals(new g.QC(!0,!1,!1,!1,33))||m.dz&&e.toKeybinding().equals(new g.QC(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeybinding().isModifierKey()||u.editor.focus()}))),e}))),this._overtypingCapturer=this._toDispose.add(new d.Ue((function(){return u._toDispose.add(new oe(u.editor,u.model))}))),this._alternatives=this._toDispose.add(new d.Ue((function(){return u._toDispose.add(new H(u.editor,u._contextKeyService))}))),this._toDispose.add(o.createInstance(O,t)),this._toDispose.add(this.model.onDidTrigger((function(e){u.widget.value.showTriggered(e.auto,e.shy?250:50),u._lineSuffix.value=new ft(u.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((function(e){if(!e.shy){var t=-1;if(!e.noSelect){var n,i=(0,a.Z)(u._selectors.itemsOrderedByPriorityDesc);try{for(i.s();!(n=i.n()).done;){if(-1!==(t=n.value.select(u.editor.getModel(),u.editor.getPosition(),e.completionModel.items)))break}}catch(r){i.e(r)}finally{i.f()}-1===t&&(t=u._memoryService.select(u.editor.getModel(),u.editor.getPosition(),e.completionModel.items))}u.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.auto)}}))),this._toDispose.add(this.model.onDidCancel((function(e){e.retrigger||u.widget.value.hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((function(){u.model.cancel(),u.model.clear()})));var f=Z._y.AcceptSuggestionsOnEnter.bindTo(r),p=function(){var e=u.editor.getOption(1);f.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((function(){return p()}))),p()}return(0,l.Z)(e,[{key:"dispose",value:function(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}},{key:"_insertSuggestion",value:function(e,t){var n=this;if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(this.editor.hasModel()){var i=E.SnippetController2.get(this.editor);if(i){var r=this.editor.getModel(),s=r.getAlternativeVersionId(),l=e.item,c=[],u=new h.A;1&t||this.editor.pushUndoStop();var d=this.getOverwriteInfo(l,Boolean(8&t));if(this._memoryService.memorize(r,this.editor.getPosition(),l),Array.isArray(l.completion.additionalTextEdits)){var p=b.Z.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",l.completion.additionalTextEdits.map((function(e){return S.h.replaceMove(k.e.lift(e.range),e.text)}))),p.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!l.isResolved){var g,v=new y.G(!0),m=r.onDidChangeContent((function(e){if(e.isFlush)return u.cancel(),void m.dispose();var t,n=(0,a.Z)(e.changes);try{for(n.s();!(t=n.n()).done;){var i=t.value,r=k.e.getEndPosition(i.range);g&&!w.L.isBefore(r,g)||(g=r)}}catch(o){n.e(o)}finally{n.f()}})),_=t;t|=2;var C=!1,x=this.editor.onWillType((function(){x.dispose(),C=!0,2&_||n.editor.pushUndoStop()}));c.push(l.resolve(u.token).then((function(){if(!l.completion.additionalTextEdits||u.token.isCancellationRequested)return!1;if(g&&l.completion.additionalTextEdits.some((function(e){return w.L.isBefore(g,k.e.getStartPosition(e.range))})))return!1;C&&n.editor.pushUndoStop();var e=b.Z.capture(n.editor);return n.editor.executeEdits("suggestController.additionalTextEdits.async",l.completion.additionalTextEdits.map((function(e){return S.h.replaceMove(k.e.lift(e.range),e.text)}))),e.restoreRelativeVerticalPositionOfCursor(n.editor),!C&&2&_||n.editor.pushUndoStop(),!0})).then((function(e){n._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",v.elapsed(),e),m.dispose(),x.dispose()})))}var N=l.completion.insertText;if(4&l.completion.insertTextRules||(N=T.Yj.escape(N)),i.insert(N,{overwriteBefore:d.overwriteBefore,overwriteAfter:d.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&l.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),l.completion.command)if(l.completion.command.id===vt.id)this.model.trigger({auto:!0,shy:!1,noSelect:!1},!0);else{var I;c.push((I=this._commandService).executeCommand.apply(I,[l.completion.command.id].concat((0,o.Z)(l.completion.command.arguments?(0,o.Z)(l.completion.command.arguments):[]))).catch(f.dL)),this.model.cancel()}else this.model.cancel();4&t&&this._alternatives.value.set(e,(function(e){for(u.cancel();r.canUndo();){s!==r.getAlternativeVersionId()&&r.undo(),n._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(l),Promise.all(c).finally((function(){n._reportSuggestionAcceptedTelemetry(l,r,e),n.model.clear(),u.dispose()}))}}}},{key:"_reportSuggestionAcceptedTelemetry",value:function(e,t,n){var i;if(this._telemetryGate++%100===0){var r=e.extensionId?e.extensionId.value:(null!==(i=n.item.provider._debugDisplayName)&&void 0!==i?i:"unknown").split("(",1)[0].toLowerCase();this._telemetryService.publicLog2("suggest.acceptedSuggestion",{providerId:r,kind:e.completion.kind,basenameHash:(0,ut.vp)((0,ze.EZ)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,ze.DZ)(t.uri)})}}},{key:"getOverwriteInfo",value:function(e,t){(0,_.p_)(this.editor.hasModel());var n="replace"===this.editor.getOption(108).insertMode;t&&(n=!n);var i=e.position.column-e.editStart.column,r=(n?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:i+(this.editor.getPosition().column-e.position.column),overwriteAfter:r+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}},{key:"_alertCompletionItem",value:function(e){if((0,u.Of)(e.completion.additionalTextEdits)){var t=R.NC("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,c.Z9)(t)}}},{key:"triggerSuggest",value:function(e,t,n,i){this.editor.hasModel()&&(this.model.trigger({auto:null!==t&&void 0!==t&&t,shy:!1,noSelect:null!==i&&void 0!==i&&i},!1,e,void 0,n),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}},{key:"triggerSuggestAndAcceptBest",value:function(e){var t=this;if(this.editor.hasModel()){var n=this.editor.getPosition(),i=function(){n.equals(t.editor.getPosition())&&t._commandService.executeCommand(e.fallback)};p.ju.once(this.model.onDidTrigger)((function(e){var n=[];p.ju.any(t.model.onDidTrigger,t.model.onDidCancel)((function(){(0,v.B9)(n),i()}),void 0,n),t.model.onDidSuggest((function(e){var r=e.completionModel;if((0,v.B9)(n),0!==r.items.length){var o=t._memoryService.select(t.editor.getModel(),t.editor.getPosition(),r.items),a=r.items[o];!function(e){if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;var n=t.editor.getPosition(),i=e.editStart.column,r=n.column;return r-i!==e.completion.insertText.length||t.editor.getModel().getValueInRange({startLineNumber:n.lineNumber,startColumn:i,endLineNumber:n.lineNumber,endColumn:r})!==e.completion.insertText}(a)?i():(t.editor.pushUndoStop(),t._insertSuggestion({index:o,item:a,model:r},7))}else i()}),void 0,n)})),this.model.trigger({auto:!1,shy:!0,noSelect:!1}),this.editor.revealPosition(n,0),this.editor.focus()}}},{key:"acceptSelectedSuggestion",value:function(e,t){var n=this.widget.value.getFocusedItem(),i=0;e&&(i|=4),t&&(i|=8),this._insertSuggestion(n,i)}},{key:"acceptNextSuggestion",value:function(){this._alternatives.value.next()}},{key:"acceptPrevSuggestion",value:function(){this._alternatives.value.prev()}},{key:"cancelSuggestWidget",value:function(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}},{key:"selectNextSuggestion",value:function(){this.widget.value.selectNext()}},{key:"selectNextPageSuggestion",value:function(){this.widget.value.selectNextPage()}},{key:"selectLastSuggestion",value:function(){this.widget.value.selectLast()}},{key:"selectPrevSuggestion",value:function(){this.widget.value.selectPrevious()}},{key:"selectPrevPageSuggestion",value:function(){this.widget.value.selectPreviousPage()}},{key:"selectFirstSuggestion",value:function(){this.widget.value.selectFirst()}},{key:"toggleSuggestionDetails",value:function(){this.widget.value.toggleDetails()}},{key:"toggleExplainMode",value:function(){this.widget.value.toggleExplainMode()}},{key:"toggleSuggestionFocus",value:function(){this.widget.value.toggleDetailsFocus()}},{key:"resetWidgetSize",value:function(){this.widget.value.resetPersistedSize()}},{key:"forceRenderingAbove",value:function(){this.widget.value.forceRenderingAbove()}},{key:"stopForceRenderingAbove",value:function(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}},{key:"registerSelector",value:function(e){return this._selectors.register(e)}}],[{key:"get",value:function(t){return t.getContribution(e.ID)}}]),e}();pt.ID="editor.contrib.suggestController",pt=dt([ht(1,N.Fh),ht(2,A.Hy),ht(3,I.i6),ht(4,M.TG),ht(5,P.VZ),ht(6,X.b)],pt);var gt=function(){function e(t){(0,s.Z)(this,e),this.prioritySelector=t,this._items=new Array}return(0,l.Z)(e,[{key:"register",value:function(e){var t=this;if(-1!==this._items.indexOf(e))throw new Error("Value is already registered");return this._items.push(e),this._items.sort((function(e,n){return t.prioritySelector(n)-t.prioritySelector(e)})),{dispose:function(){var n=t._items.indexOf(e);n>=0&&t._items.splice(n,1)}}}},{key:"itemsOrderedByPriorityDesc",get:function(){return this._items}}]),e}(),vt=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:n.id,label:R.NC("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:I.Ao.and(x.u.writable,x.u.hasCompletionItemProvider),kbOpts:{kbExpr:x.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}return(0,l.Z)(n,[{key:"run",value:function(e,t,n){var i,r,o=pt.get(t);o&&(n&&"object"===typeof n&&(!0===n.auto&&(i=!0),!0===n.noSelection&&(r=!0)),o.triggerSuggest(void 0,i,void 0,r))}}]),n}(C.R6);vt.id="editor.action.triggerSuggest",(0,C._K)(pt.ID,pt),(0,C.Qr)(vt);var mt=190,yt=C._l.bindToContribution(pt.get);(0,C.fK)(new yt({id:"acceptSelectedSuggestion",precondition:I.Ao.and(Z._y.Visible,Z._y.HasFocusedSuggestion),handler:function(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:I.Ao.and(Z._y.Visible,x.u.textInputFocus),weight:mt},{primary:3,kbExpr:I.Ao.and(Z._y.Visible,x.u.textInputFocus,Z._y.AcceptSuggestionsOnEnter,Z._y.MakesTextEdit),weight:mt}],menuOpts:[{menuId:Z.GI,title:R.NC("accept.insert","Insert"),group:"left",order:1,when:Z._y.HasInsertAndReplaceRange.toNegated()},{menuId:Z.GI,title:R.NC("accept.insert","Insert"),group:"left",order:1,when:I.Ao.and(Z._y.HasInsertAndReplaceRange,Z._y.InsertMode.isEqualTo("insert"))},{menuId:Z.GI,title:R.NC("accept.replace","Replace"),group:"left",order:1,when:I.Ao.and(Z._y.HasInsertAndReplaceRange,Z._y.InsertMode.isEqualTo("replace"))}]})),(0,C.fK)(new yt({id:"acceptAlternativeSelectedSuggestion",precondition:I.Ao.and(Z._y.Visible,x.u.textInputFocus,Z._y.HasFocusedSuggestion),kbOpts:{weight:mt,kbExpr:x.u.textInputFocus,primary:1027,secondary:[1026]},handler:function(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:Z.GI,group:"left",order:2,when:I.Ao.and(Z._y.HasInsertAndReplaceRange,Z._y.InsertMode.isEqualTo("insert")),title:R.NC("accept.replace","Replace")},{menuId:Z.GI,group:"left",order:2,when:I.Ao.and(Z._y.HasInsertAndReplaceRange,Z._y.InsertMode.isEqualTo("replace")),title:R.NC("accept.insert","Insert")}]})),A.P0.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,C.fK)(new yt({id:"hideSuggestWidget",precondition:Z._y.Visible,handler:function(e){return e.cancelSuggestWidget()},kbOpts:{weight:mt,kbExpr:x.u.textInputFocus,primary:9,secondary:[1033]}})),(0,C.fK)(new yt({id:"selectNextSuggestion",precondition:I.Ao.and(Z._y.Visible,Z._y.MultipleSuggestions),handler:function(e){return e.selectNextSuggestion()},kbOpts:{weight:mt,kbExpr:x.u.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,C.fK)(new yt({id:"selectNextPageSuggestion",precondition:I.Ao.and(Z._y.Visible,Z._y.MultipleSuggestions),handler:function(e){return e.selectNextPageSuggestion()},kbOpts:{weight:mt,kbExpr:x.u.textInputFocus,primary:12,secondary:[2060]}})),(0,C.fK)(new yt({id:"selectLastSuggestion",precondition:I.Ao.and(Z._y.Visible,Z._y.MultipleSuggestions),handler:function(e){return e.selectLastSuggestion()}})),(0,C.fK)(new yt({id:"selectPrevSuggestion",precondition:I.Ao.and(Z._y.Visible,Z._y.MultipleSuggestions),handler:function(e){return e.selectPrevSuggestion()},kbOpts:{weight:mt,kbExpr:x.u.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,C.fK)(new yt({id:"selectPrevPageSuggestion",precondition:I.Ao.and(Z._y.Visible,Z._y.MultipleSuggestions),handler:function(e){return e.selectPrevPageSuggestion()},kbOpts:{weight:mt,kbExpr:x.u.textInputFocus,primary:11,secondary:[2059]}})),(0,C.fK)(new yt({id:"selectFirstSuggestion",precondition:I.Ao.and(Z._y.Visible,Z._y.MultipleSuggestions),handler:function(e){return e.selectFirstSuggestion()}})),(0,C.fK)(new yt({id:"toggleSuggestionDetails",precondition:Z._y.Visible,handler:function(e){return e.toggleSuggestionDetails()},kbOpts:{weight:mt,kbExpr:x.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:Z.GI,group:"right",order:1,when:I.Ao.and(Z._y.DetailsVisible,Z._y.CanResolve),title:R.NC("detail.more","show less")},{menuId:Z.GI,group:"right",order:1,when:I.Ao.and(Z._y.DetailsVisible.toNegated(),Z._y.CanResolve),title:R.NC("detail.less","show more")}]})),(0,C.fK)(new yt({id:"toggleExplainMode",precondition:Z._y.Visible,handler:function(e){return e.toggleExplainMode()},kbOpts:{weight:100,primary:2133}})),(0,C.fK)(new yt({id:"toggleSuggestionFocus",precondition:Z._y.Visible,handler:function(e){return e.toggleSuggestionFocus()},kbOpts:{weight:mt,kbExpr:x.u.textInputFocus,primary:2570,mac:{primary:778}}})),(0,C.fK)(new yt({id:"insertBestCompletion",precondition:I.Ao.and(x.u.textInputFocus,I.Ao.equals("config.editor.tabCompletion","on"),O.AtEnd,Z._y.Visible.toNegated(),H.OtherSuggestions.toNegated(),E.SnippetController2.InSnippetMode.toNegated()),handler:function(e,t){e.triggerSuggestAndAcceptBest((0,_.Kn)(t)?Object.assign({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:mt,primary:2}})),(0,C.fK)(new yt({id:"insertNextSuggestion",precondition:I.Ao.and(x.u.textInputFocus,I.Ao.equals("config.editor.tabCompletion","on"),H.OtherSuggestions,Z._y.Visible.toNegated(),E.SnippetController2.InSnippetMode.toNegated()),handler:function(e){return e.acceptNextSuggestion()},kbOpts:{weight:mt,kbExpr:x.u.textInputFocus,primary:2}})),(0,C.fK)(new yt({id:"insertPrevSuggestion",precondition:I.Ao.and(x.u.textInputFocus,I.Ao.equals("config.editor.tabCompletion","on"),H.OtherSuggestions,Z._y.Visible.toNegated(),E.SnippetController2.InSnippetMode.toNegated()),handler:function(e){return e.acceptPrevSuggestion()},kbOpts:{weight:mt,kbExpr:x.u.textInputFocus,primary:1026}})),(0,C.Qr)(function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"editor.action.resetSuggestSize",label:R.NC("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}return(0,l.Z)(n,[{key:"run",value:function(e,t){var n;null===(n=pt.get(t))||void 0===n||n.resetWidgetSize()}}]),n}(C.R6))},87629:function(e,t,n){"use strict";n.r(t),n.d(t,{SuggestInlineCompletions:function(){return I}});var i=n(74165),r=n(37762),o=n(60136),a=n(27277),s=n(43144),l=n(15671),c=n(82784),u=n(73160),d=n(94016),h=n(11860),f=n(62381),p=n(98596),g=n(80133),v=n(53584),m=n(18615),y=n(90423),_=n(96161),b=n(59560),C=n(38619),S=n(1255),w=n(36888),k=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},x=function(e,t){return function(n,i){t(n,i,e)}},E=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},T=(0,s.Z)((function e(t,n,i,r,o,a){(0,l.Z)(this,e),this.range=t,this.insertText=n,this.filterText=i,this.additionalTextEdits=r,this.command=o,this.completion=a})),N=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r,o,a,s){var c;return(0,l.Z)(this,n),(c=t.call(this,a.disposable)).model=e,c.line=i,c.word=r,c.completionModel=o,c._suggestMemoryService=s,c}return(0,s.Z)(n,[{key:"canBeReused",value:function(e,t,n){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===n.startColumn&&this.word.endColumn<n.endColumn&&0===this.completionModel.incomplete.size}},{key:"items",get:function(){var e,t,n=[],i=this.completionModel.items,o=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},i),a=d.$.slice(i,o),s=d.$.slice(i,0,o),l=5,h=(0,r.Z)(d.$.concat(a,s));try{for(h.s();!(t=h.n()).done;){var f=t.value;if(f.score!==u.CL.Default){var p=new g.e(f.editStart.lineNumber,f.editStart.column,f.editInsertEnd.lineNumber,f.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),v=f.completion.insertTextRules&&f.completion.insertTextRules&m.a7.InsertAsSnippet?{snippet:f.completion.insertText}:f.completion.insertText;n.push(new T(p,v,null!==(e=f.filterTextLow)&&void 0!==e?e:f.labelLow,f.completion.additionalTextEdits,f.completion.command,f)),l-- >=0&&f.resolve(c.T.None)}}}catch(y){h.e(y)}finally{h.f()}return n}}]),n}(h.L6);N=k([x(5,b.Fh)],N);var I=function(){function e(t,n,i,r){(0,l.Z)(this,e),this._getEditorOption=t,this._languageFeatureService=n,this._clipboardService=i,this._suggestMemoryService=r}return(0,s.Z)(e,[{key:"provideInlineCompletions",value:function(e,t,n,r){var o;return E(this,void 0,void 0,(0,i.Z)().mark((function a(){var s,l,c,u,d,h,f,p,v,m,b;return(0,i.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!n.selectedSuggestionInfo){i.next=2;break}return i.abrupt("return");case 2:if(s=this._getEditorOption(81,e),!_.tG.isAllOff(s)){i.next=5;break}return i.abrupt("return");case 5:if(e.tokenization.tokenizeIfCheap(t.lineNumber),l=e.tokenization.getLineTokens(t.lineNumber),c=l.getStandardTokenType(l.findTokenIndexAtOffset(Math.max(t.column-1-1,0))),"inline"===_.tG.valueFor(s,c)){i.next=10;break}return i.abrupt("return",void 0);case 10:if((null===(u=e.getWordAtPosition(t))||void 0===u?void 0:u.word)||(d=this._getTriggerCharacterInfo(e,t)),(null===u||void 0===u?void 0:u.word)||d){i.next=14;break}return i.abrupt("return");case 14:if(u||(u=e.getWordUntilPosition(t)),u.endColumn===t.column){i.next=17;break}return i.abrupt("return");case 17:if(f=e.getValueInRange(new g.e(t.lineNumber,1,t.lineNumber,t.column)),d||!(null===(o=this._lastResult)||void 0===o?void 0:o.canBeReused(e,t.lineNumber,u))){i.next=25;break}p=new y.t(f,t.column-this._lastResult.word.endColumn),this._lastResult.completionModel.lineContext=p,this._lastResult.acquire(),h=this._lastResult,i.next=34;break;case 25:return i.next=27,(0,_.kL)(this._languageFeatureService.completionProvider,e,t,new _.A9(void 0,void 0,null===d||void 0===d?void 0:d.providers),d&&{triggerKind:1,triggerCharacter:d.ch},r);case 27:if(!(v=i.sent).needsClipboard){i.next=32;break}return i.next=31,this._clipboardService.readText();case 31:m=i.sent;case 32:b=new y._(v.items,t.column,new y.t(f,0),C.K.None,this._getEditorOption(108,e),this._getEditorOption(103,e),{boostFullMatch:!1,firstMatchCanBeWeak:!1},m),h=new N(e,t.lineNumber,u,b,v,this._suggestMemoryService);case 34:return this._lastResult=h,i.abrupt("return",h);case 36:case"end":return i.stop()}}),a,this)})))}},{key:"handleItemDidShow",value:function(e,t){t.completion.resolve(c.T.None)}},{key:"freeInlineCompletions",value:function(e){e.release()}},{key:"_getTriggerCharacterInfo",value:function(e,t){var n,i,o=e.getValueInRange(g.e.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),a=new Set,s=(0,r.Z)(this._languageFeatureService.completionProvider.all(e));try{for(s.s();!(i=s.n()).done;){var l=i.value;(null===(n=l.triggerCharacters)||void 0===n?void 0:n.includes(o))&&a.add(l)}}catch(c){s.e(c)}finally{s.f()}if(0!==a.size)return{providers:a,ch:o}}}]),e}();I=k([x(1,v.p),x(2,S.p),x(3,b.Fh)],I);var D=function(){function e(t,n,i,r){if((0,l.Z)(this,e),1===++e._counter){var o=r.createInstance(I,(function(e,n){var r;return(null!==(r=i.listCodeEditors().find((function(e){return e.getModel()===n})))&&void 0!==r?r:t).getOption(e)}));e._disposable=n.inlineCompletionsProvider.register("*",o)}}return(0,s.Z)(e,[{key:"dispose",value:function(){var t;0===--e._counter&&(null===(t=e._disposable)||void 0===t||t.dispose(),e._disposable=void 0)}}]),e}();D._counter=0,D=k([x(1,v.p),x(2,p.$),x(3,w.TG)],D),(0,f._K)("suggest.inlineCompletionsProvider",D)},59560:function(e,t,n){"use strict";n.d(t,{Fh:function(){return E}});var i=n(29439),r=n(37762),o=n(11752),a=n(61120),s=n(60136),l=n(27277),c=n(15671),u=n(43144),d=n(60022),h=n(11860),f=n(54376),p=n(12905),g=n(87984),v=n(77896),m=n(36888),y=n(69681),_=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},b=function(e,t){return function(n,i){t(n,i,e)}},C=function(){function e(t){(0,c.Z)(this,e),this.name=t}return(0,u.Z)(e,[{key:"select",value:function(e,t,n){if(0===n.length)return 0;for(var i=n[0].score[0],r=0;r<n.length;r++){var o=n[r],a=o.score,s=o.completion;if(a[0]!==i)break;if(s.preselect)return r}return 0}}]),e}(),S=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,c.Z)(this,n),t.call(this,"first")}return(0,u.Z)(n,[{key:"memorize",value:function(e,t,n){}},{key:"toJSON",value:function(){}},{key:"fromJSON",value:function(){}}]),n}(C),w=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,c.Z)(this,n),(e=t.call(this,"recentlyUsed"))._cache=new f.z6(300,.66),e._seq=0,e}return(0,u.Z)(n,[{key:"memorize",value:function(e,t,n){var i="".concat(e.getLanguageId(),"/").concat(n.textLabel);this._cache.set(i,{touch:this._seq++,type:n.completion.kind,insertText:n.completion.insertText})}},{key:"select",value:function(e,t,i){if(0===i.length)return 0;var r=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(r))return(0,o.Z)((0,a.Z)(n.prototype),"select",this).call(this,e,t,i);for(var s=i[0].score[0],l=-1,c=-1,u=-1,d=0;d<i.length&&i[d].score[0]===s;d++){var h="".concat(e.getLanguageId(),"/").concat(i[d].textLabel),f=this._cache.peek(h);if(f&&f.touch>u&&f.type===i[d].completion.kind&&f.insertText===i[d].completion.insertText&&(u=f.touch,c=d),i[d].completion.preselect&&-1===l)return d}return-1!==c?c:-1!==l?l:0}},{key:"toJSON",value:function(){return this._cache.toJSON()}},{key:"fromJSON",value:function(e){this._cache.clear();var t,n=(0,r.Z)(e);try{for(n.s();!(t=n.n()).done;){var o=(0,i.Z)(t.value,2),a=o[0],s=o[1];s.touch=0,s.type="number"===typeof s.type?s.type:p.gX.fromString(s.type),this._cache.set(a,s)}}catch(l){n.e(l)}finally{n.f()}this._seq=this._cache.size}}]),n}(C),k=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,c.Z)(this,n),(e=t.call(this,"recentlyUsedByPrefix"))._trie=f.Id.forStrings(),e._seq=0,e}return(0,u.Z)(n,[{key:"memorize",value:function(e,t,n){var i=e.getWordUntilPosition(t).word,r="".concat(e.getLanguageId(),"/").concat(i);this._trie.set(r,{type:n.completion.kind,insertText:n.completion.insertText,touch:this._seq++})}},{key:"select",value:function(e,t,i){var r=e.getWordUntilPosition(t).word;if(!r)return(0,o.Z)((0,a.Z)(n.prototype),"select",this).call(this,e,t,i);var s="".concat(e.getLanguageId(),"/").concat(r),l=this._trie.get(s);if(l||(l=this._trie.findSubstr(s)),l)for(var c=0;c<i.length;c++){var u=i[c].completion,d=u.kind,h=u.insertText;if(d===l.type&&h===l.insertText)return c}return(0,o.Z)((0,a.Z)(n.prototype),"select",this).call(this,e,t,i)}},{key:"toJSON",value:function(){var e=[];return this._trie.forEach((function(t,n){return e.push([n,t])})),e.sort((function(e,t){return-(e[1].touch-t[1].touch)})).forEach((function(e,t){return e[1].touch=t})),e.slice(0,200)}},{key:"fromJSON",value:function(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;var t,n=(0,r.Z)(e);try{for(n.s();!(t=n.n()).done;){var o=(0,i.Z)(t.value,2),a=o[0],s=o[1];s.type="number"===typeof s.type?s.type:p.gX.fromString(s.type),this._trie.set(a,s)}}catch(l){n.e(l)}finally{n.f()}}}}]),n}(C),x=function(){function e(t,n){var i=this;(0,c.Z)(this,e),this._storageService=t,this._configService=n,this._disposables=new h.SL,this._persistSoon=new d.pY((function(){return i._saveState()}),500),this._disposables.add(t.onWillSaveState((function(e){e.reason===y.fk.SHUTDOWN&&i._saveState()})))}return(0,u.Z)(e,[{key:"dispose",value:function(){this._disposables.dispose(),this._persistSoon.dispose()}},{key:"memorize",value:function(e,t,n){this._withStrategy(e,t).memorize(e,t,n),this._persistSoon.schedule()}},{key:"select",value:function(e,t,n){return this._withStrategy(e,t).select(e,t,n)}},{key:"_withStrategy",value:function(t,n){var i,r=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:t.getLanguageIdAtPosition(n.lineNumber,n.column),resource:t.uri});if((null===(i=this._strategy)||void 0===i?void 0:i.name)!==r){this._saveState();var o=e._strategyCtors.get(r)||S;this._strategy=new o;try{var a=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,s=this._storageService.get("".concat(e._storagePrefix,"/").concat(r),a);s&&this._strategy.fromJSON(JSON.parse(s))}catch(l){}}return this._strategy}},{key:"_saveState",value:function(){if(this._strategy){var t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,n=JSON.stringify(this._strategy);this._storageService.store("".concat(e._storagePrefix,"/").concat(this._strategy.name),n,t,1)}}}]),e}();x._strategyCtors=new Map([["recentlyUsedByPrefix",k],["recentlyUsed",w],["first",S]]),x._storagePrefix="suggest/memories",x=_([b(0,y.Uy),b(1,g.Ui)],x);var E=(0,m.yh)("ISuggestMemories");(0,v.z)(E,x,!0)},38619:function(e,t,n){"use strict";n.d(t,{K:function(){return p}});var i=n(74165),r=n(37762),o=n(60136),a=n(27277),s=n(29439),l=n(15671),c=n(43144),u=n(29671),d=n(80133),h=n(96610),f=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},p=function(){function e(){(0,l.Z)(this,e)}return(0,c.Z)(e,null,[{key:"create",value:function(t,n){return f(this,void 0,void 0,(0,i.Z)().mark((function f(){var p,g,v,m,y,_,b;return(0,i.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(n.getOption(108).localityBonus){i.next=2;break}return i.abrupt("return",e.None);case 2:if(n.hasModel()){i.next=4;break}return i.abrupt("return",e.None);case 4:if(p=n.getModel(),g=n.getPosition(),t.canComputeWordRanges(p.uri)){i.next=8;break}return i.abrupt("return",e.None);case 8:return i.next=10,(new h.x).provideSelectionRanges(p,[g]);case 10:if(v=i.sent,m=(0,s.Z)(v,1),0!==(y=m[0]).length){i.next=15;break}return i.abrupt("return",e.None);case 15:return i.next=17,t.computeWordRanges(p.uri,y[0].range);case 17:if(_=i.sent){i.next=20;break}return i.abrupt("return",e.None);case 20:return b=p.getWordUntilPosition(g),delete _[b.word],i.abrupt("return",new(function(e){(0,o.Z)(i,e);var t=(0,a.Z)(i);function i(){return(0,l.Z)(this,i),t.apply(this,arguments)}return(0,c.Z)(i,[{key:"distance",value:function(e,t){if(!g.equals(n.getPosition()))return 0;if(17===t.kind)return 2<<20;var i="string"===typeof t.label?t.label:t.label.label,o=_[i];if((0,u.XY)(o))return 2<<20;var a,s=(0,u.ry)(o,d.e.fromPositions(e),d.e.compareRangesUsingStarts),l=s>=0?o[s]:o[Math.max(0,~s-1)],c=y.length,h=(0,r.Z)(y);try{for(h.s();!(a=h.n()).done;){var f=a.value;if(!d.e.containsRange(f.range,l))break;c-=1}}catch(p){h.e(p)}finally{h.f()}return c}}]),i}(e)));case 23:case"end":return i.stop()}}),f)})))}}]),e}();p.None=new(function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"distance",value:function(){return 0}}]),n}(p))},82730:function(e,t,n){"use strict";var i=n(2801),r=n(27722),o=n(32379),a=n(64014),s=(0,o.P6G)("symbolIcon.arrayForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=(0,o.P6G)("symbolIcon.booleanForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=(0,o.P6G)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,r.NC)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=(0,o.P6G)("symbolIcon.colorForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=(0,o.P6G)("symbolIcon.constantForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=(0,o.P6G)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,r.NC)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=(0,o.P6G)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,r.NC)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=(0,o.P6G)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,r.NC)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=(0,o.P6G)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,r.NC)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=(0,o.P6G)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,r.NC)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=(0,o.P6G)("symbolIcon.fileForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=(0,o.P6G)("symbolIcon.folderForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=(0,o.P6G)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,r.NC)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=(0,o.P6G)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,r.NC)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=(0,o.P6G)("symbolIcon.keyForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=(0,o.P6G)("symbolIcon.keywordForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=(0,o.P6G)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,r.NC)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=(0,o.P6G)("symbolIcon.moduleForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=(0,o.P6G)("symbolIcon.namespaceForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=(0,o.P6G)("symbolIcon.nullForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),T=(0,o.P6G)("symbolIcon.numberForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),N=(0,o.P6G)("symbolIcon.objectForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=(0,o.P6G)("symbolIcon.operatorForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),D=(0,o.P6G)("symbolIcon.packageForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=(0,o.P6G)("symbolIcon.propertyForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=(0,o.P6G)("symbolIcon.referenceForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=(0,o.P6G)("symbolIcon.snippetForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=(0,o.P6G)("symbolIcon.stringForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),M=(0,o.P6G)("symbolIcon.structForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=(0,o.P6G)("symbolIcon.textForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Z=(0,o.P6G)("symbolIcon.typeParameterForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),F=(0,o.P6G)("symbolIcon.unitForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,r.NC)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),B=(0,o.P6G)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,r.NC)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));(0,a.Ic)((function(e,t){var n=e.getColor(s);n&&t.addRule("".concat(i.lA.symbolArray.cssSelector," { color: ").concat(n,"; }"));var r=e.getColor(l);r&&t.addRule("".concat(i.lA.symbolBoolean.cssSelector," { color: ").concat(r,"; }"));var o=e.getColor(c);o&&t.addRule("".concat(i.lA.symbolClass.cssSelector," { color: ").concat(o,"; }"));var a=e.getColor(w);a&&t.addRule("".concat(i.lA.symbolMethod.cssSelector," { color: ").concat(a,"; }"));var H=e.getColor(u);H&&t.addRule("".concat(i.lA.symbolColor.cssSelector," { color: ").concat(H,"; }"));var z=e.getColor(d);z&&t.addRule("".concat(i.lA.symbolConstant.cssSelector," { color: ").concat(z,"; }"));var j=e.getColor(h);j&&t.addRule("".concat(i.lA.symbolConstructor.cssSelector," { color: ").concat(j,"; }"));var V=e.getColor(f);V&&t.addRule("\n\t\t\t".concat(i.lA.symbolValue.cssSelector,",").concat(i.lA.symbolEnum.cssSelector," { color: ").concat(V,"; }"));var W=e.getColor(p);W&&t.addRule("".concat(i.lA.symbolEnumMember.cssSelector," { color: ").concat(W,"; }"));var U=e.getColor(g);U&&t.addRule("".concat(i.lA.symbolEvent.cssSelector," { color: ").concat(U,"; }"));var G=e.getColor(v);G&&t.addRule("".concat(i.lA.symbolField.cssSelector," { color: ").concat(G,"; }"));var K=e.getColor(m);K&&t.addRule("".concat(i.lA.symbolFile.cssSelector," { color: ").concat(K,"; }"));var Y=e.getColor(y);Y&&t.addRule("".concat(i.lA.symbolFolder.cssSelector," { color: ").concat(Y,"; }"));var q=e.getColor(_);q&&t.addRule("".concat(i.lA.symbolFunction.cssSelector," { color: ").concat(q,"; }"));var $=e.getColor(b);$&&t.addRule("".concat(i.lA.symbolInterface.cssSelector," { color: ").concat($,"; }"));var X=e.getColor(C);X&&t.addRule("".concat(i.lA.symbolKey.cssSelector," { color: ").concat(X,"; }"));var Q=e.getColor(S);Q&&t.addRule("".concat(i.lA.symbolKeyword.cssSelector," { color: ").concat(Q,"; }"));var J=e.getColor(k);J&&t.addRule("".concat(i.lA.symbolModule.cssSelector," { color: ").concat(J,"; }"));var ee=e.getColor(x);ee&&t.addRule("".concat(i.lA.symbolNamespace.cssSelector," { color: ").concat(ee,"; }"));var te=e.getColor(E);te&&t.addRule("".concat(i.lA.symbolNull.cssSelector," { color: ").concat(te,"; }"));var ne=e.getColor(T);ne&&t.addRule("".concat(i.lA.symbolNumber.cssSelector," { color: ").concat(ne,"; }"));var ie=e.getColor(N);ie&&t.addRule("".concat(i.lA.symbolObject.cssSelector," { color: ").concat(ie,"; }"));var re=e.getColor(I);re&&t.addRule("".concat(i.lA.symbolOperator.cssSelector," { color: ").concat(re,"; }"));var oe=e.getColor(D);oe&&t.addRule("".concat(i.lA.symbolPackage.cssSelector," { color: ").concat(oe,"; }"));var ae=e.getColor(L);ae&&t.addRule("".concat(i.lA.symbolProperty.cssSelector," { color: ").concat(ae,"; }"));var se=e.getColor(O);se&&t.addRule("".concat(i.lA.symbolReference.cssSelector," { color: ").concat(se,"; }"));var le=e.getColor(R);le&&t.addRule("".concat(i.lA.symbolSnippet.cssSelector," { color: ").concat(le,"; }"));var ce=e.getColor(A);ce&&t.addRule("".concat(i.lA.symbolString.cssSelector," { color: ").concat(ce,"; }"));var ue=e.getColor(M);ue&&t.addRule("".concat(i.lA.symbolStruct.cssSelector," { color: ").concat(ue,"; }"));var de=e.getColor(P);de&&t.addRule("".concat(i.lA.symbolText.cssSelector," { color: ").concat(de,"; }"));var he=e.getColor(Z);he&&t.addRule("".concat(i.lA.symbolTypeParameter.cssSelector," { color: ").concat(he,"; }"));var fe=e.getColor(F);fe&&t.addRule("".concat(i.lA.symbolUnit.cssSelector," { color: ").concat(fe,"; }"));var pe=e.getColor(B);pe&&t.addRule("".concat(i.lA.symbolVariable.cssSelector," { color: ").concat(pe,"; }"))}))},36373:function(e,t,n){"use strict";n.r(t),n.d(t,{ToggleTabFocusModeAction:function(){return d}});var i=n(15671),r=n(43144),o=n(60136),a=n(27277),s=n(4801),l=n(75735),c=n(62381),u=n(27722),d=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{id:n.ID,label:u.NC({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}return(0,r.Z)(n,[{key:"run",value:function(e,t){var n=!l.n.getTabFocusMode();l.n.setTabFocusMode(n),n?(0,s.Z9)(u.NC("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,s.Z9)(u.NC("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}]),n}(c.R6);d.ID="editor.action.toggleTabFocusMode",(0,c.Qr)(d)},6981:function(e,t,n){"use strict";n.r(t);var i=n(15671),r=n(43144),o=n(60136),a=n(27277),s=n(25),l=n(62381),c=n(27722),u=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{id:"editor.action.forceRetokenize",label:c.NC("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}return(0,r.Z)(n,[{key:"run",value:function(e,t){if(t.hasModel()){var n=t.getModel();n.tokenization.resetTokenization();var i=new s.G(!0);n.tokenization.forceTokenization(n.getLineCount()),i.stop(),console.log("tokenization took ".concat(i.elapsed()))}}}]),n}(l.R6);(0,l.Qr)(u)},23957:function(e,t,n){"use strict";n.r(t),n.d(t,{DisableHighlightingInCommentsAction:function(){return le},DisableHighlightingInStringsAction:function(){return ce},DisableHighlightingOfAmbiguousCharactersAction:function(){return ue},DisableHighlightingOfInvisibleCharactersAction:function(){return de},DisableHighlightingOfNonBasicAsciiCharactersAction:function(){return he},ShowExcludeOptions:function(){return fe},UnicodeHighlighter:function(){return ee},UnicodeHighlighterHoverParticipant:function(){return ie},warningIcon:function(){return J}});var i=n(74165),r=n(37762),o=n(15671),a=n(43144),s=n(11752),l=n(61120),c=n(60136),u=n(27277),d=n(60022),h=n(2801),f=n(61066),p=n(11860),g=n(73616),v=n(32377),m=n(62381),y=n(64472),_=n(70845),b=n(42454),C=n(5323),S=n(72762),w=n(39268),k=n(47854),x=n(43645),E=n(81531),T=n(78644),N=n(18247),I=n(21919),D=n(36888),L=n(25425),O=n(33813),R=n(81238),A=n(73097),M=n(83078),P=n(32379),Z=n(64014),F=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},B=function(e,t){return function(n,i){t(n,i,e)}},H=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i){var r,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;(0,o.Z)(this,n),(r=t.call(this))._link=i,r._enabled=!0,r.el=(0,E.append)(e,(0,E.$)("a.monaco-link",{tabIndex:null!==(a=i.tabIndex)&&void 0!==a?a:0,href:i.href,title:i.title},i.label)),r.el.setAttribute("role","button");var c=r._register(new L.Y(r.el,"click")),u=r._register(new L.Y(r.el,"keypress")),d=A.ju.chain(u.event).map((function(e){return new O.y(e)})).filter((function(e){return 3===e.keyCode})).event,h=r._register(new L.Y(r.el,R.t.Tap)).event;r._register(R.o.addTarget(r.el));var f=A.ju.any(c.event,d,h);return r._register(f((function(e){r.enabled&&(E.EventHelper.stop(e,!0),(null===s||void 0===s?void 0:s.opener)?s.opener(r._link.href):l.open(r._link.href,{allowCommands:!0}))}))),r.enabled=!0,r}return(0,a.Z)(n,[{key:"enabled",get:function(){return this._enabled},set:function(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}}]),n}(p.JT);H=F([B(3,M.v4)],H),(0,Z.Ic)((function(e,t){var n=e.getColor(P.url);n&&t.addRule(".monaco-link { color: ".concat(n,"; }"));var i=e.getColor(P.sgC);i&&t.addRule(".monaco-link:hover { color: ".concat(i,"; }"))}));var z=n(96752),j=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},V=function(e,t){return function(n,i){t(n,i,e)}},W=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this))._editor=e,r.instantiationService=i,r.banner=r._register(r.instantiationService.createInstance(U)),r}return(0,a.Z)(n,[{key:"hide",value:function(){this._editor.setBanner(null,0),this.banner.clear()}},{key:"show",value:function(e){var t=this;this.banner.show(Object.assign(Object.assign({},e),{onClose:function(){var n;t.hide(),null===(n=e.onClose)||void 0===n||n.call(e)}})),this._editor.setBanner(this.banner.element,26)}}]),n}(p.JT);W=j([V(1,D.TG)],W);var U=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,o.Z)(this,n),(i=t.call(this)).instantiationService=e,i.markdownRenderer=i.instantiationService.createInstance(I.$,{}),i.element=(0,E.$)("div.editor-banner"),i.element.tabIndex=0,i}return(0,a.Z)(n,[{key:"getAriaLabel",value:function(e){return e.ariaLabel?e.ariaLabel:"string"===typeof e.message?e.message:void 0}},{key:"getBannerMessage",value:function(e){if("string"===typeof e){var t=(0,E.$)("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}},{key:"clear",value:function(){(0,E.clearNode)(this.element)}},{key:"show",value:function(e){(0,E.clearNode)(this.element);var t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);var n=(0,E.append)(this.element,(0,E.$)("div.icon-container"));n.setAttribute("aria-hidden","true"),e.icon&&n.appendChild((0,E.$)("div".concat(Z.kS.asCSSSelector(e.icon))));var i=(0,E.append)(this.element,(0,E.$)("div.message-container"));if(i.setAttribute("aria-hidden","true"),i.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=(0,E.append)(this.element,(0,E.$)("div.message-actions-container")),e.actions){var o,a=(0,r.Z)(e.actions);try{for(a.s();!(o=a.n()).done;){var s=o.value;this._register(this.instantiationService.createInstance(H,this.messageActionsContainer,Object.assign(Object.assign({},s),{tabIndex:-1}),{}))}}catch(c){a.e(c)}finally{a.f()}}var l=(0,E.append)(this.element,(0,E.$)("div.action-container"));this.actionBar=this._register(new T.o(l)),this.actionBar.push(this._register(new N.aU("banner.close","Close Banner",Z.kS.asClassName(z.s_),!0,(function(){"function"===typeof e.onClose&&e.onClose()}))),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}}]),n}(p.JT);U=j([V(0,D.TG)],U);var G=n(27722),K=n(87984),Y=n(23664),q=n(57215),$=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},X=function(e,t){return function(n,i){t(n,i,e)}},Q=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},J=(0,z.q5)("extensions-warning-message",h.lA.warning,G.NC("warningIcon","Icon shown with a warning message in the extensions editor.")),ee=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r,a){var s;return(0,o.Z)(this,n),(s=t.call(this))._editor=e,s._editorWorkerService=i,s._workspaceTrustService=r,s._highlighter=null,s._bannerClosed=!1,s._updateState=function(e){if(e&&e.hasMore){if(s._bannerClosed)return;var t,n=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);if(e.nonBasicAsciiCharacterCount>=n)t={message:G.NC("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new he};else if(e.ambiguousCharacterCount>=n)t={message:G.NC("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new ue};else{if(!(e.invisibleCharacterCount>=n))throw new Error("Unreachable");t={message:G.NC("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new de}}s._bannerController.show({id:"unicodeHighlightBanner",message:t.message,icon:J,actions:[{label:t.command.shortLabel,href:"command:".concat(t.command.id)}],onClose:function(){s._bannerClosed=!0}})}else s._bannerController.hide()},s._bannerController=s._register(a.createInstance(W,e)),s._register(s._editor.onDidChangeModel((function(){s._bannerClosed=!1,s._updateHighlighter()}))),s._options=e.getOption(115),s._register(r.onDidChangeTrust((function(e){s._updateHighlighter()}))),s._register(e.onDidChangeConfiguration((function(t){t.hasChanged(115)&&(s._options=e.getOption(115),s._updateHighlighter())}))),s._updateHighlighter(),s}return(0,a.Z)(n,[{key:"dispose",value:function(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"_updateHighlighter",value:function(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),this._editor.hasModel()){var e=function(e,t){return{nonBasicASCII:t.nonBasicASCII===y.Av?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===y.Av?!e:t.includeComments,includeStrings:t.includeStrings===y.Av?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if(![e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every((function(e){return!1===e}))){var t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map((function(e){return e.codePointAt(0)})),allowedLocales:Object.keys(e.allowedLocales).map((function(e){return"_os"===e?(new Intl.NumberFormat).resolvedOptions().locale:"_vscode"===e?g.dK:e}))};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new te(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new ne(this._editor,t,this._updateState)}}}},{key:"getDecorationInfo",value:function(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}}]),n}(p.JT);ee.ID="editor.contrib.unicodeHighlighter",ee=$([X(1,C.p),X(2,q.Y),X(3,D.TG)],ee);var te=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r,a){var s;return(0,o.Z)(this,n),(s=t.call(this))._editor=e,s._options=i,s._updateState=r,s._editorWorkerService=a,s._model=s._editor.getModel(),s._decorations=s._editor.createDecorationsCollection(),s._updateSoon=s._register(new d.pY((function(){return s._update()}),250)),s._register(s._editor.onDidChangeModelContent((function(){s._updateSoon.schedule()}))),s._updateSoon.schedule(),s}return(0,a.Z)(n,[{key:"dispose",value:function(){this._decorations.clear(),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"_update",value:function(){var e=this;if(!this._model.isDisposed())if(this._model.mightContainNonBasicASCII()){var t=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then((function(n){if(!e._model.isDisposed()&&e._model.getVersionId()===t){e._updateState(n);var i=[];if(!n.hasMore){var o,a=(0,r.Z)(n.ranges);try{for(a.s();!(o=a.n()).done;){var s=o.value;i.push({range:s,options:se.instance.getDecorationFromOptions(e._options)})}}catch(l){a.e(l)}finally{a.f()}}e._decorations.set(i)}}))}else this._decorations.clear()}},{key:"getDecorationInfo",value:function(e){if(!this._decorations.has(e))return null;var t=this._editor.getModel();return(0,w.Fd)(t,e)?{reason:ae(t.getValueInRange(e.range),this._options),inComment:(0,w.$t)(t,e),inString:(0,w.zg)(t,e)}:null}}]),n}(p.JT);te=$([X(3,C.p)],te);var ne=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r){var a;return(0,o.Z)(this,n),(a=t.call(this))._editor=e,a._options=i,a._updateState=r,a._model=a._editor.getModel(),a._decorations=a._editor.createDecorationsCollection(),a._updateSoon=a._register(new d.pY((function(){return a._update()}),250)),a._register(a._editor.onDidLayoutChange((function(){a._updateSoon.schedule()}))),a._register(a._editor.onDidScrollChange((function(){a._updateSoon.schedule()}))),a._register(a._editor.onDidChangeHiddenAreas((function(){a._updateSoon.schedule()}))),a._register(a._editor.onDidChangeModelContent((function(){a._updateSoon.schedule()}))),a._updateSoon.schedule(),a}return(0,a.Z)(n,[{key:"dispose",value:function(){this._decorations.clear(),(0,s.Z)((0,l.Z)(n.prototype),"dispose",this).call(this)}},{key:"_update",value:function(){if(!this._model.isDisposed())if(this._model.mightContainNonBasicASCII()){var e,t=this._editor.getVisibleRanges(),n=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1},o=(0,r.Z)(t);try{for(o.s();!(e=o.n()).done;){var a,s=e.value,l=b.a.computeUnicodeHighlights(this._model,this._options,s),c=(0,r.Z)(l.ranges);try{for(c.s();!(a=c.n()).done;){var u=a.value;i.ranges.push(u)}}catch(p){c.e(p)}finally{c.f()}i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||l.hasMore}}catch(p){o.e(p)}finally{o.f()}if(!i.hasMore){var d,h=(0,r.Z)(i.ranges);try{for(h.s();!(d=h.n()).done;){var f=d.value;n.push({range:f,options:se.instance.getDecorationFromOptions(this._options)})}}catch(p){h.e(p)}finally{h.f()}}this._updateState(i),this._decorations.set(n)}else this._decorations.clear()}},{key:"getDecorationInfo",value:function(e){if(!this._decorations.has(e))return null;var t=this._editor.getModel(),n=t.getValueInRange(e.range);return(0,w.Fd)(t,e)?{reason:ae(n,this._options),inComment:(0,w.$t)(t,e),inString:(0,w.zg)(t,e)}:null}}]),n}(p.JT),ie=function(){function e(t,n,i){(0,o.Z)(this,e),this._editor=t,this._languageService=n,this._openerService=i,this.hoverOrdinal=4}return(0,a.Z)(e,[{key:"computeSync",value:function(e,t){if(!this._editor.hasModel()||1!==e.type)return[];var n=this._editor.getModel(),i=this._editor.getContribution(ee.ID);if(!i)return[];var o,a=[],s=300,l=(0,r.Z)(t);try{for(l.s();!(o=l.n()).done;){var c=o.value,u=i.getDecorationInfo(c);if(u){var d=n.getValueInRange(c.range).codePointAt(0),h=oe(d),p=void 0;switch(u.reason.kind){case 0:p=G.NC("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,oe(u.reason.confusableWith.codePointAt(0)));break;case 1:p=G.NC("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:p=G.NC("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h)}var g={codePoint:d,reason:u.reason,inComment:u.inComment,inString:u.inString},v=G.NC("unicodeHighlight.adjustSettings","Adjust settings"),m="command:".concat(fe.ID,"?").concat(encodeURIComponent(JSON.stringify(g))),y=new f.W5("",!0).appendMarkdown(p).appendText(" ").appendLink(m,v);a.push(new x.hU(this,c.range,[y],s++))}}}catch(_){l.e(_)}finally{l.f()}return a}},{key:"renderHoverParts",value:function(e,t){return(0,x.c)(e,t,this._editor,this._languageService,this._openerService)}}]),e}();function re(e){return"U+".concat(e.toString(16).padStart(4,"0"))}function oe(e){var t="`".concat(re(e),"`");return v.vU.isInvisibleCharacter(e)||(t+=' "'.concat("".concat(function(e){if(96===e)return"`` ` ``";return"`"+String.fromCodePoint(e)+"`"}(e)),'"')),t}function ae(e,t){return b.a.computeUnicodeHighlightReason(e,t)}ie=$([X(1,S.O),X(2,M.v4)],ie);var se=function(){function e(){(0,o.Z)(this,e),this.map=new Map}return(0,a.Z)(e,[{key:"getDecorationFromOptions",value:function(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}},{key:"getDecoration",value:function(e,t){var n="".concat(e).concat(t),i=this.map.get(n);return i||(i=_.qx.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(n,i)),i}}]),e}();se.instance=new se;var le=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.call(this,{id:ue.ID,label:G.NC("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0})).shortLabel=G.NC("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments"),e}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){return Q(this,void 0,void 0,(0,i.Z)().mark((function t(){var n;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n=null===e||void 0===e?void 0:e.get(K.Ui))&&this.runAction(n);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"runAction",value:function(e){return Q(this,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.updateValue(y.qt.includeComments,!1,2);case 2:case"end":return t.stop()}}),t)})))}}]),n}(m.R6),ce=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.call(this,{id:ue.ID,label:G.NC("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0})).shortLabel=G.NC("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings"),e}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){return Q(this,void 0,void 0,(0,i.Z)().mark((function t(){var n;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n=null===e||void 0===e?void 0:e.get(K.Ui))&&this.runAction(n);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"runAction",value:function(e){return Q(this,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.updateValue(y.qt.includeStrings,!1,2);case 2:case"end":return t.stop()}}),t)})))}}]),n}(m.R6),ue=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.call(this,{id:n.ID,label:G.NC("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0})).shortLabel=G.NC("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight"),e}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){return Q(this,void 0,void 0,(0,i.Z)().mark((function t(){var n;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n=null===e||void 0===e?void 0:e.get(K.Ui))&&this.runAction(n);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"runAction",value:function(e){return Q(this,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.updateValue(y.qt.ambiguousCharacters,!1,2);case 2:case"end":return t.stop()}}),t)})))}}]),n}(m.R6);ue.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";var de=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.call(this,{id:n.ID,label:G.NC("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0})).shortLabel=G.NC("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight"),e}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){return Q(this,void 0,void 0,(0,i.Z)().mark((function t(){var n;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n=null===e||void 0===e?void 0:e.get(K.Ui))&&this.runAction(n);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"runAction",value:function(e){return Q(this,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.updateValue(y.qt.invisibleCharacters,!1,2);case 2:case"end":return t.stop()}}),t)})))}}]),n}(m.R6);de.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";var he=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.call(this,{id:n.ID,label:G.NC("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0})).shortLabel=G.NC("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight"),e}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){return Q(this,void 0,void 0,(0,i.Z)().mark((function t(){var n;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n=null===e||void 0===e?void 0:e.get(K.Ui))&&this.runAction(n);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"runAction",value:function(e){return Q(this,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.updateValue(y.qt.nonBasicASCII,!1,2);case 2:case"end":return t.stop()}}),t)})))}}]),n}(m.R6);he.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";var fe=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:n.ID,label:G.NC("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){return Q(this,void 0,void 0,(0,i.Z)().mark((function t(){var o,a,s,l,c,u,d,h,f,p,g,m,y,_,b,C,S,w,k=this;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(h=function(e){return v.vU.isInvisibleCharacter(e)?G.NC("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",re(e)):G.NC("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted","".concat(re(e),' "').concat(c,'"'))},o=n.codePoint,a=n.reason,s=n.inString,l=n.inComment,c=String.fromCodePoint(o),u=e.get(Y.eJ),d=e.get(K.Ui),f=[],0===a.kind){p=(0,r.Z)(a.notAmbiguousInLocales);try{for(m=function(){var e=g.value;f.push({label:G.NC("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',e),run:function(){return Q(k,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:ge(d,[e]);case 1:case"end":return t.stop()}}),t)})))}})},p.s();!(g=p.n()).done;)m()}catch(x){p.e(x)}finally{p.f()}}return f.push({label:h(o),run:function(){return pe(d,[o])}}),l?(y=new le,f.push({label:y.label,run:function(){return Q(k,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",y.runAction(d));case 1:case"end":return e.stop()}}),e)})))}})):s&&(_=new ce,f.push({label:_.label,run:function(){return Q(k,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",_.runAction(d));case 1:case"end":return e.stop()}}),e)})))}})),0===a.kind?(b=new ue,f.push({label:b.label,run:function(){return Q(k,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",b.runAction(d));case 1:case"end":return e.stop()}}),e)})))}})):1===a.kind?(C=new de,f.push({label:C.label,run:function(){return Q(k,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",C.runAction(d));case 1:case"end":return e.stop()}}),e)})))}})):2===a.kind?(S=new he,f.push({label:S.label,run:function(){return Q(k,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",S.runAction(d));case 1:case"end":return e.stop()}}),e)})))}})):ve(a),t.next=12,u.pick(f,{title:G.NC("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options")});case 12:if(!(w=t.sent)){t.next=16;break}return t.next=16,w.run();case 16:case"end":return t.stop()}}),t)})))}}]),n}(m.R6);function pe(e,t){return Q(this,void 0,void 0,(0,i.Z)().mark((function n(){var o,a,s,l,c;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=e.getValue(y.qt.allowedCharacters),a="object"===typeof o&&o?o:{},s=(0,r.Z)(t);try{for(s.s();!(l=s.n()).done;)c=l.value,a[String.fromCodePoint(c)]=!0}catch(i){s.e(i)}finally{s.f()}return n.next=6,e.updateValue(y.qt.allowedCharacters,a,2);case 6:case"end":return n.stop()}}),n)})))}function ge(e,t){var n;return Q(this,void 0,void 0,(0,i.Z)().mark((function o(){var a,s,l,c,u;return(0,i.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:a=null===(n=e.inspect(y.qt.allowedLocales).user)||void 0===n?void 0:n.value,s="object"===typeof a&&a?Object.assign({},a):{},l=(0,r.Z)(t);try{for(l.s();!(c=l.n()).done;)u=c.value,s[u]=!0}catch(o){l.e(o)}finally{l.f()}return i.next=6,e.updateValue(y.qt.allowedLocales,s,2);case 6:case"end":return i.stop()}}),o)})))}function ve(e){throw new Error("Unexpected value: ".concat(e))}fe.ID="editor.action.unicodeHighlight.showExcludeOptions",(0,m.Qr)(ue),(0,m.Qr)(de),(0,m.Qr)(he),(0,m.Qr)(fe),(0,m._K)(ee.ID,ee),k.Ae.register(ie)},94075:function(e,t,n){"use strict";n.r(t),n.d(t,{UnusualLineTerminatorsDetector:function(){return b}});var i=n(74165),r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(11860),c=n(41175),u=n(62381),d=n(98596),h=n(27722),f=n(21330),p=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},g=function(e,t){return function(n,i){t(n,i,e)}},v=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},m="ignoreUnusualLineTerminators";function y(e,t,n){e.setModelProperty(t.uri,m,n)}function _(e,t){return e.getModelProperty(t.uri,m)}var b=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,o){var a;return(0,r.Z)(this,n),(a=t.call(this))._editor=e,a._dialogService=i,a._codeEditorService=o,a._config=a._editor.getOption(116),a._register(a._editor.onDidChangeConfiguration((function(e){e.hasChanged(116)&&(a._config=a._editor.getOption(116),a._checkForUnusualLineTerminators())}))),a._register(a._editor.onDidChangeModel((function(){a._checkForUnusualLineTerminators()}))),a._register(a._editor.onDidChangeModelContent((function(e){e.isUndoing||a._checkForUnusualLineTerminators()}))),a}return(0,o.Z)(n,[{key:"_checkForUnusualLineTerminators",value:function(){return v(this,void 0,void 0,(0,i.Z)().mark((function e(){var t;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("off"!==this._config){e.next=2;break}return e.abrupt("return");case 2:if(this._editor.hasModel()){e.next=4;break}return e.abrupt("return");case 4:if((t=this._editor.getModel()).mightContainUnusualLineTerminators()){e.next=7;break}return e.abrupt("return");case 7:if(!0!==_(this._codeEditorService,t)){e.next=10;break}return e.abrupt("return");case 10:if(!this._editor.getOption(83)){e.next=12;break}return e.abrupt("return");case 12:if("auto"!==this._config){e.next=15;break}return t.removeUnusualLineTerminators(this._editor.getSelections()),e.abrupt("return");case 15:return e.next=17,this._dialogService.confirm({title:h.NC("unusualLineTerminators.title","Unusual Line Terminators"),message:h.NC("unusualLineTerminators.message","Detected unusual line terminators"),detail:h.NC("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,c.EZ)(t.uri)),primaryButton:h.NC("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:h.NC("unusualLineTerminators.ignore","Ignore")});case 17:if(e.sent.confirmed){e.next=21;break}return y(this._codeEditorService,t,!0),e.abrupt("return");case 21:t.removeUnusualLineTerminators(this._editor.getSelections());case 22:case"end":return e.stop()}}),e,this)})))}}]),n}(l.JT);b.ID="editor.contrib.unusualLineTerminatorsDetector",b=p([g(1,f.S),g(2,d.$)],b),(0,u._K)(b.ID,b)},12548:function(e,t,n){"use strict";n.r(t);var i=n(37762),r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(60022),c=n(11860),u=n(62381),d=n(63689),h=n(29257),f=n(45310),p=n(6222),g=n(87984),v=n(64014),m=n(98971),y=n(25),_=n(53584),b=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},C=function(e,t){return function(n,i){t(n,i,e)}},S=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,o,a,s,c){var u;(0,r.Z)(this,n),(u=t.call(this))._modelService=i,u._themeService=o,u._configurationService=a,u._editor=e,u._provider=c.documentRangeSemanticTokensProvider,u._debounceInformation=s.for(u._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),u._tokenizeViewport=u._register(new l.pY((function(){return u._tokenizeViewportNow()}),100)),u._outstandingRequests=[];var d=function(){u._editor.hasModel()&&u._tokenizeViewport.schedule(u._debounceInformation.get(u._editor.getModel()))};return u._register(u._editor.onDidScrollChange((function(){d()}))),u._register(u._editor.onDidChangeModel((function(){u._cancelAll(),d()}))),u._register(u._editor.onDidChangeModelContent((function(e){u._cancelAll(),d()}))),u._register(u._provider.onDidChange((function(){u._cancelAll(),d()}))),u._register(u._configurationService.onDidChangeConfiguration((function(e){e.affectsConfiguration(f.e3)&&(u._cancelAll(),d())}))),u._register(u._themeService.onDidColorThemeChange((function(){u._cancelAll(),d()}))),u}return(0,o.Z)(n,[{key:"_cancelAll",value:function(){var e,t=(0,i.Z)(this._outstandingRequests);try{for(t.s();!(e=t.n()).done;){e.value.cancel()}}catch(n){t.e(n)}finally{t.f()}this._outstandingRequests=[]}},{key:"_removeOutstandingRequest",value:function(e){for(var t=0,n=this._outstandingRequests.length;t<n;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}},{key:"_tokenizeViewportNow",value:function(){var e=this;if(this._editor.hasModel()){var t=this._editor.getModel();if(!t.tokenization.hasCompleteSemanticTokens())if((0,f.tw)(t,this._themeService,this._configurationService))if((0,d.KO)(this._provider,t)){var n=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(n.map((function(n){return e._requestRange(t,n)})))}else t.tokenization.hasSomeSemanticTokens()&&t.tokenization.setSemanticTokens(null,!1);else t.tokenization.hasSomeSemanticTokens()&&t.tokenization.setSemanticTokens(null,!1)}}},{key:"_requestRange",value:function(e,t){var n=this,i=e.getVersionId(),r=(0,l.PG)((function(i){return Promise.resolve((0,d.OG)(n._provider,e,t,i))})),o=new y.G(!1);return r.then((function(r){if(n._debounceInformation.update(e,o.elapsed()),r&&r.tokens&&!e.isDisposed()&&e.getVersionId()===i){var a=r.provider,s=r.tokens,l=n._modelService.getSemanticTokensProviderStyling(a);e.tokenization.setPartialSemanticTokens(t,(0,p.h)(s,l,e.getLanguageId()))}})).then((function(){return n._removeOutstandingRequest(r)}),(function(){return n._removeOutstandingRequest(r)})),r}}]),n}(c.JT);S.ID="editor.contrib.viewportSemanticTokens",S=b([C(1,h.q),C(2,v.XE),C(3,g.Ui),C(4,m.A),C(5,_.p)],S),(0,u._K)(S.ID,S)},54796:function(e,t,n){"use strict";n.r(t),n.d(t,{getOccurrencesAtPosition:function(){return Z}});var i=n(37762),r=n(11752),o=n(61120),a=n(60136),s=n(27277),l=n(15671),c=n(43144),u=n(4801),d=n(29671),h=n(60022),f=n(82784),p=n(14173),g=n(11860),v=n(62381),m=n(80133),y=n(67245),_=n(36550),b=n(70845),C=n(12905),S=n(27722),w=n(34509),k=n(32379),x=n(64014),E=n(53584),T=n(59632),N=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},I=function(e,t){return function(n,i){t(n,i,e)}},D=(0,k.P6G)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},S.NC("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),L=(0,k.P6G)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},S.NC("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),O=(0,k.P6G)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:k.xL1,hcLight:k.xL1},S.NC("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),R=(0,k.P6G)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:k.xL1,hcLight:k.xL1},S.NC("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),A=(0,k.P6G)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},S.NC("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),M=(0,k.P6G)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},S.NC("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),P=new w.uy("hasWordHighlights",!1);function Z(e,t,n,i){var r=e.ordered(t);return(0,h.Ps)(r.map((function(e){return function(){return Promise.resolve(e.provideDocumentHighlights(t,n,i)).then(void 0,p.Cp)}})),d.Of)}var F=function(){function e(t,n,i){(0,l.Z)(this,e),this._model=t,this._selection=n,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(t,n),this._result=null}return(0,c.Z)(e,[{key:"result",get:function(){var e=this;return this._result||(this._result=(0,h.PG)((function(t){return e._compute(e._model,e._selection,e._wordSeparators,t)}))),this._result}},{key:"_getCurrentWordRange",value:function(e,t){var n=e.getWordAtPosition(t.getPosition());return n?new m.e(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null}},{key:"isValid",value:function(e,t,n){for(var i=t.startLineNumber,r=t.startColumn,o=t.endColumn,a=this._getCurrentWordRange(e,t),s=Boolean(this._wordRange&&this._wordRange.equalsRange(a)),l=0,c=n.length;!s&&l<c;l++){var u=n.getRange(l);u&&u.startLineNumber===i&&u.startColumn<=r&&u.endColumn>=o&&(s=!0)}return s}},{key:"cancel",value:function(){this.result.cancel()}}]),e}(),B=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o){var a;return(0,l.Z)(this,n),(a=t.call(this,e,i,r))._providers=o,a}return(0,c.Z)(n,[{key:"_compute",value:function(e,t,n,i){return Z(this._providers,e,t.getPosition(),i).then((function(e){return e||[]}))}}]),n}(F),H=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this,e,i,r))._selectionIsEmpty=i.isEmpty(),o}return(0,c.Z)(n,[{key:"_compute",value:function(e,t,n,i){return(0,h.Vs)(250,i).then((function(){if(!t.isEmpty())return[];var i=e.getWordAtPosition(t.getPosition());return!i||i.word.length>1e3?[]:e.findMatches(i.word,!0,!1,!0,n,!1).map((function(e){return{range:e.range,kind:C.MY.Text}}))}))}},{key:"isValid",value:function(e,t,i){var a=t.isEmpty();return this._selectionIsEmpty===a&&(0,r.Z)((0,o.Z)(n.prototype),"isValid",this).call(this,e,t,i)}}]),n}(F);(0,v.sb)("_executeDocumentHighlights",(function(e,t,n){return Z(e.get(E.p).documentHighlightProvider,t,n,f.T.None)}));var z=function(){function e(t,n,i){var r=this;(0,l.Z)(this,e),this.toUnhook=new g.SL,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=t,this.providers=n,this._hasWordHighlights=P.bindTo(i),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(74),this.model=this.editor.getModel(),this.toUnhook.add(t.onDidChangeCursorPosition((function(e){r._ignorePositionChangeEvent||r.occurrencesHighlight&&r._onPositionChanged(e)}))),this.toUnhook.add(t.onDidChangeModelContent((function(e){r._stopAll()}))),this.toUnhook.add(t.onDidChangeConfiguration((function(e){var t=r.editor.getOption(74);r.occurrencesHighlight!==t&&(r.occurrencesHighlight=t,r._stopAll())}))),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}return(0,c.Z)(e,[{key:"hasDecorations",value:function(){return this.decorations.length>0}},{key:"restore",value:function(){this.occurrencesHighlight&&this._run()}},{key:"_getSortedHighlights",value:function(){return this.decorations.getRanges().sort(m.e.compareRangesUsingStarts)}},{key:"moveNext",value:function(){var e=this,t=this._getSortedHighlights(),n=(t.findIndex((function(t){return t.containsPosition(e.editor.getPosition())}))+1)%t.length,i=t[n];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);var r=this._getWord();if(r){var o=this.editor.getModel().getLineContent(i.startLineNumber);(0,u.Z9)("".concat(o,", ").concat(n+1," of ").concat(t.length," for '").concat(r.word,"'"))}}finally{this._ignorePositionChangeEvent=!1}}},{key:"moveBack",value:function(){var e=this,t=this._getSortedHighlights(),n=(t.findIndex((function(t){return t.containsPosition(e.editor.getPosition())}))-1+t.length)%t.length,i=t[n];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);var r=this._getWord();if(r){var o=this.editor.getModel().getLineContent(i.startLineNumber);(0,u.Z9)("".concat(o,", ").concat(n+1," of ").concat(t.length," for '").concat(r.word,"'"))}}finally{this._ignorePositionChangeEvent=!1}}},{key:"_removeDecorations",value:function(){this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1))}},{key:"_stopAll",value:function(){this._removeDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}},{key:"_onPositionChanged",value:function(e){this.occurrencesHighlight&&3===e.reason?this._run():this._stopAll()}},{key:"_getWord",value:function(){var e=this.editor.getSelection(),t=e.startLineNumber,n=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:n})}},{key:"_run",value:function(){var e=this,t=this.editor.getSelection();if(t.startLineNumber===t.endLineNumber){var n=t.startColumn,i=t.endColumn,r=this._getWord();if(!r||r.startColumn>n||r.endColumn<i)this._stopAll();else{var o,a,s,l,c=this.workerRequest&&this.workerRequest.isValid(this.model,t,this.decorations);if(this.lastCursorPositionChangeTime=(new Date).getTime(),c)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();var u=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=(o=this.providers,a=this.model,s=this.editor.getSelection(),l=this.editor.getOption(119),o.has(a)?new B(a,s,l,o):new H(a,s,l)),this.workerRequest.result.then((function(t){u===e.workerRequestTokenId&&(e.workerRequestCompleted=!0,e.workerRequestValue=t||[],e._beginRenderDecorations())}),p.dL)}}}else this._stopAll()}},{key:"_beginRenderDecorations",value:function(){var e=this,t=(new Date).getTime(),n=this.lastCursorPositionChangeTime+250;t>=n?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((function(){e.renderDecorations()}),n-t)}},{key:"renderDecorations",value:function(){this.renderDecorationsTimer=-1;var t,n=[],r=(0,i.Z)(this.workerRequestValue);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.range&&n.push({range:o.range,options:e._getDecorationOptions(o.kind)})}}catch(a){r.e(a)}finally{r.f()}this.decorations.set(n),this._hasWordHighlights.set(this.hasDecorations())}},{key:"dispose",value:function(){this._stopAll(),this.toUnhook.dispose()}}],[{key:"_getDecorationOptions",value:function(e){return e===C.MY.Write?this._WRITE_OPTIONS:e===C.MY.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS}}]),e}();z._WRITE_OPTIONS=b.qx.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,x.EN)(M),position:_.sh.Center},minimap:{color:(0,x.EN)(k.IYc),position:_.F5.Inline}}),z._TEXT_OPTIONS=b.qx.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,x.EN)(k.SPM),position:_.sh.Center},minimap:{color:(0,x.EN)(k.IYc),position:_.F5.Inline}}),z._REGULAR_OPTIONS=b.qx.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,x.EN)(A),position:_.sh.Center},minimap:{color:(0,x.EN)(k.IYc),position:_.F5.Inline}});var j=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o;(0,l.Z)(this,n),(o=t.call(this)).wordHighlighter=null;var a=function(){e.hasModel()&&(o.wordHighlighter=new z(e,r.documentHighlightProvider,i))};return o._register(e.onDidChangeModel((function(e){o.wordHighlighter&&(o.wordHighlighter.dispose(),o.wordHighlighter=null),a()}))),a(),o}return(0,c.Z)(n,[{key:"saveViewState",value:function(){return!(!this.wordHighlighter||!this.wordHighlighter.hasDecorations())}},{key:"moveNext",value:function(){this.wordHighlighter&&this.wordHighlighter.moveNext()}},{key:"moveBack",value:function(){this.wordHighlighter&&this.wordHighlighter.moveBack()}},{key:"restoreViewState",value:function(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}},{key:"dispose",value:function(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),(0,r.Z)((0,o.Z)(n.prototype),"dispose",this).call(this)}}],[{key:"get",value:function(e){return e.getContribution(n.ID)}}]),n}(g.JT);j.ID="editor.contrib.wordHighlighter",j=N([I(1,w.i6),I(2,E.p)],j);var V=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,i))._isNext=e,r}return(0,c.Z)(n,[{key:"run",value:function(e,t){var n=j.get(t);n&&(this._isNext?n.moveNext():n.moveBack())}}]),n}(v.R6),W=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,!0,{id:"editor.action.wordHighlight.next",label:S.NC("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:P,kbOpts:{kbExpr:y.u.editorTextFocus,primary:65,weight:100}})}return(0,c.Z)(n)}(V),U=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,!1,{id:"editor.action.wordHighlight.prev",label:S.NC("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:P,kbOpts:{kbExpr:y.u.editorTextFocus,primary:1089,weight:100}})}return(0,c.Z)(n)}(V),G=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.call(this,{id:"editor.action.wordHighlight.trigger",label:S.NC("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:P.toNegated(),kbOpts:{kbExpr:y.u.editorTextFocus,primary:0,weight:100}})}return(0,c.Z)(n,[{key:"run",value:function(e,t,n){var i=j.get(t);i&&i.restoreViewState(!0)}}]),n}(v.R6);(0,v._K)(j.ID,j),(0,v.Qr)(W),(0,v.Qr)(U),(0,v.Qr)(G),(0,x.Ic)((function(e,t){var n=e.getColor(k.Rzx);n&&(t.addRule(".monaco-editor .focused .selectionHighlight { background-color: ".concat(n,"; }")),t.addRule(".monaco-editor .selectionHighlight { background-color: ".concat(n.transparent(.5),"; }")));var i=e.getColor(D);i&&t.addRule(".monaco-editor .wordHighlight { background-color: ".concat(i,"; }"));var r=e.getColor(L);r&&t.addRule(".monaco-editor .wordHighlightStrong { background-color: ".concat(r,"; }"));var o=e.getColor(k.g_n);o&&t.addRule(".monaco-editor .selectionHighlight { border: 1px ".concat((0,T.c3)(e.type)?"dotted":"solid"," ").concat(o,"; box-sizing: border-box; }"));var a=e.getColor(O);a&&t.addRule(".monaco-editor .wordHighlight { border: 1px ".concat((0,T.c3)(e.type)?"dashed":"solid"," ").concat(a,"; box-sizing: border-box; }"));var s=e.getColor(R);s&&t.addRule(".monaco-editor .wordHighlightStrong { border: 1px ".concat((0,T.c3)(e.type)?"dashed":"solid"," ").concat(s,"; box-sizing: border-box; }"))}))},69321:function(e,t,n){"use strict";n.r(t),n.d(t,{CursorWordAccessibilityLeft:function(){return R},CursorWordAccessibilityLeftSelect:function(){return A},CursorWordAccessibilityRight:function(){return z},CursorWordAccessibilityRightSelect:function(){return j},CursorWordEndLeft:function(){return N},CursorWordEndLeftSelect:function(){return L},CursorWordEndRight:function(){return P},CursorWordEndRightSelect:function(){return B},CursorWordLeft:function(){return I},CursorWordLeftSelect:function(){return O},CursorWordRight:function(){return Z},CursorWordRightSelect:function(){return H},CursorWordStartLeft:function(){return T},CursorWordStartLeftSelect:function(){return D},CursorWordStartRight:function(){return M},CursorWordStartRightSelect:function(){return F},DeleteInsideWord:function(){return Q},DeleteWordCommand:function(){return V},DeleteWordEndLeft:function(){return K},DeleteWordEndRight:function(){return $},DeleteWordLeft:function(){return Y},DeleteWordLeftCommand:function(){return W},DeleteWordRight:function(){return X},DeleteWordRightCommand:function(){return U},DeleteWordStartLeft:function(){return G},DeleteWordStartRight:function(){return q},MoveWordCommand:function(){return k},WordLeftCommand:function(){return x},WordRightCommand:function(){return E}});var i=n(11752),r=n(61120),o=n(15671),a=n(43144),s=n(60136),l=n(27277),c=n(62381),u=n(76469),d=n(64472),h=n(21577),f=n(97290),p=n(3109),g=n(38622),v=n(80133),m=n(23145),y=n(67245),_=n(29662),b=n(27722),C=n(41330),S=n(34509),w=n(3058),k=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var i;return(0,o.Z)(this,n),(i=t.call(this,e))._inSelectionMode=e.inSelectionMode,i._wordNavigationType=e.wordNavigationType,i}return(0,a.Z)(n,[{key:"runEditorCommand",value:function(e,t,n){var i=this;if(t.hasModel()){var r=(0,p.u)(t.getOption(119)),o=t.getModel(),a=t.getSelections().map((function(e){var t=new g.L(e.positionLineNumber,e.positionColumn),n=i._move(r,o,t,i._wordNavigationType);return i._moveTo(e,n,i._inSelectionMode)}));if(o.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map((function(e){return h.Vi.fromModelSelection(e)}))),1===a.length){var s=new g.L(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(s,0)}}}},{key:"_moveTo",value:function(e,t,n){return n?new m.Y(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new m.Y(t.lineNumber,t.column,t.lineNumber,t.column)}}]),n}(c._l),x=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"_move",value:function(e,t,n,i){return f.w.moveWordLeft(e,t,n,i)}}]),n}(k),E=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"_move",value:function(e,t,n,i){return f.w.moveWordRight(e,t,n,i)}}]),n}(k),T=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}return(0,a.Z)(n)}(x),N=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}return(0,a.Z)(n)}(x),I=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:S.Ao.and(y.u.textInputFocus,null===(e=S.Ao.and(C.U,w.cv))||void 0===e?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}return(0,a.Z)(n)}(x),D=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}return(0,a.Z)(n)}(x),L=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}return(0,a.Z)(n)}(x),O=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:S.Ao.and(y.u.textInputFocus,null===(e=S.Ao.and(C.U,w.cv))||void 0===e?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}return(0,a.Z)(n)}(x),R=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}return(0,a.Z)(n,[{key:"_move",value:function(e,t,o,a){return(0,i.Z)((0,r.Z)(n.prototype),"_move",this).call(this,(0,p.u)(d.BH.wordSeparators.defaultValue),t,o,a)}}]),n}(x),A=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}return(0,a.Z)(n,[{key:"_move",value:function(e,t,o,a){return(0,i.Z)((0,r.Z)(n.prototype),"_move",this).call(this,(0,p.u)(d.BH.wordSeparators.defaultValue),t,o,a)}}]),n}(x),M=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}return(0,a.Z)(n)}(E),P=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:S.Ao.and(y.u.textInputFocus,null===(e=S.Ao.and(C.U,w.cv))||void 0===e?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}return(0,a.Z)(n)}(E),Z=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}return(0,a.Z)(n)}(E),F=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}return(0,a.Z)(n)}(E),B=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:S.Ao.and(y.u.textInputFocus,null===(e=S.Ao.and(C.U,w.cv))||void 0===e?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}return(0,a.Z)(n)}(E),H=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}return(0,a.Z)(n)}(E),z=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}return(0,a.Z)(n,[{key:"_move",value:function(e,t,o,a){return(0,i.Z)((0,r.Z)(n.prototype),"_move",this).call(this,(0,p.u)(d.BH.wordSeparators.defaultValue),t,o,a)}}]),n}(E),j=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}return(0,a.Z)(n,[{key:"_move",value:function(e,t,o,a){return(0,i.Z)((0,r.Z)(n.prototype),"_move",this).call(this,(0,p.u)(d.BH.wordSeparators.defaultValue),t,o,a)}}]),n}(E),V=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var i;return(0,o.Z)(this,n),(i=t.call(this,e))._whitespaceHeuristics=e.whitespaceHeuristics,i._wordNavigationType=e.wordNavigationType,i}return(0,a.Z)(n,[{key:"runEditorCommand",value:function(e,t,n){var i=this,r=e.get(_.c_);if(t.hasModel()){var o=(0,p.u)(t.getOption(119)),a=t.getModel(),s=t.getSelections(),l=t.getOption(5),c=t.getOption(8),d=r.getLanguageConfiguration(a.getLanguageId()).getAutoClosingPairs(),h=t._getViewModel(),f=s.map((function(e){var n=i._delete({wordSeparators:o,model:a,selection:e,whitespaceHeuristics:i._whitespaceHeuristics,autoClosingDelete:t.getOption(6),autoClosingBrackets:l,autoClosingQuotes:c,autoClosingPairs:d,autoClosedCharacters:h.getCursorAutoClosedCharacters()},i._wordNavigationType);return new u.T4(n,"")}));t.pushUndoStop(),t.executeCommands(this.id,f),t.pushUndoStop()}}}]),n}(c._l),W=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"_delete",value:function(e,t){var n=f.w.deleteWordLeft(e,t);return n||new v.e(1,1,1,1)}}]),n}(V),U=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"_delete",value:function(e,t){var n=f.w.deleteWordRight(e,t);if(n)return n;var i=e.model.getLineCount(),r=e.model.getLineMaxColumn(i);return new v.e(i,r,i,r)}}]),n}(V),G=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:y.u.writable})}return(0,a.Z)(n)}(W),K=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:y.u.writable})}return(0,a.Z)(n)}(W),Y=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:y.u.writable,kbOpts:{kbExpr:y.u.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}return(0,a.Z)(n)}(W),q=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:y.u.writable})}return(0,a.Z)(n)}(U),$=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:y.u.writable})}return(0,a.Z)(n)}(U),X=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:y.u.writable,kbOpts:{kbExpr:y.u.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}return(0,a.Z)(n)}(U),Q=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,o.Z)(this,n),t.call(this,{id:"deleteInsideWord",precondition:y.u.writable,label:b.NC("deleteInsideWord","Delete Word"),alias:"Delete Word"})}return(0,a.Z)(n,[{key:"run",value:function(e,t,n){if(t.hasModel()){var i=(0,p.u)(t.getOption(119)),r=t.getModel(),o=t.getSelections().map((function(e){var t=f.w.deleteInsideWord(i,r,e);return new u.T4(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}}]),n}(c.R6);(0,c.fK)(new T),(0,c.fK)(new N),(0,c.fK)(new I),(0,c.fK)(new D),(0,c.fK)(new L),(0,c.fK)(new O),(0,c.fK)(new M),(0,c.fK)(new P),(0,c.fK)(new Z),(0,c.fK)(new F),(0,c.fK)(new B),(0,c.fK)(new H),(0,c.fK)(new R),(0,c.fK)(new A),(0,c.fK)(new z),(0,c.fK)(new j),(0,c.fK)(new G),(0,c.fK)(new K),(0,c.fK)(new Y),(0,c.fK)(new q),(0,c.fK)(new $),(0,c.fK)(new X),(0,c.Qr)(Q)},95483:function(e,t,n){"use strict";n.r(t),n.d(t,{CursorWordPartLeft:function(){return v},CursorWordPartLeftSelect:function(){return m},CursorWordPartRight:function(){return _},CursorWordPartRightSelect:function(){return b},DeleteWordPartLeft:function(){return f},DeleteWordPartRight:function(){return p},WordPartLeftCommand:function(){return g},WordPartRightCommand:function(){return y}});var i=n(15671),r=n(43144),o=n(60136),a=n(27277),s=n(62381),l=n(97290),c=n(80133),u=n(67245),d=n(69321),h=n(11133),f=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:u.u.writable,kbOpts:{kbExpr:u.u.textInputFocus,primary:0,mac:{primary:769},weight:100}})}return(0,r.Z)(n,[{key:"_delete",value:function(e,t){var n=l.L.deleteWordPartLeft(e);return n||new c.e(1,1,1,1)}}]),n}(d.DeleteWordCommand),p=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:u.u.writable,kbOpts:{kbExpr:u.u.textInputFocus,primary:0,mac:{primary:788},weight:100}})}return(0,r.Z)(n,[{key:"_delete",value:function(e,t){var n=l.L.deleteWordPartRight(e);if(n)return n;var i=e.model.getLineCount(),r=e.model.getLineMaxColumn(i);return new c.e(i,r,i,r)}}]),n}(d.DeleteWordCommand),g=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,[{key:"_move",value:function(e,t,n,i){return l.L.moveWordPartLeft(e,t,n)}}]),n}(d.MoveWordCommand),v=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:u.u.textInputFocus,primary:0,mac:{primary:783},weight:100}})}return(0,r.Z)(n)}(g);h.P0.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var m=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:u.u.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}return(0,r.Z)(n)}(g);h.P0.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var y=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,[{key:"_move",value:function(e,t,n,i){return l.L.moveWordPartRight(e,t,n)}}]),n}(d.MoveWordCommand),_=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:u.u.textInputFocus,primary:0,mac:{primary:785},weight:100}})}return(0,r.Z)(n)}(y),b=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:u.u.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}return(0,r.Z)(n)}(y);(0,s.fK)(new f),(0,s.fK)(new p),(0,s.fK)(new v),(0,s.fK)(new m),(0,s.fK)(new _),(0,s.fK)(new b)},54962:function(e,t,n){"use strict";n.r(t);var i=n(97326),r=n(11752),o=n(61120),a=n(15671),s=n(43144),l=n(60136),c=n(27277),u=n(81531),d=n(25652),h=n(94212),f=n(4801),p=n(70176),g=n(11860),v=n(73616),m=n(32377),y=n(72112),_=n(62381),b=n(67245),C=n(36373),S=n(34509),w=n(36888),k=n(47569),x=n(83078),E=n(32379),T=n(64014),N=n(22742),I=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},D=function(e,t){return function(n,i){t(n,i,e)}},L=new S.uy("accessibilityHelpWidgetVisible",!1),O=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){var r;return(0,a.Z)(this,n),(r=t.call(this))._editor=e,r._widget=r._register(i.createInstance(R,r._editor)),r}return(0,s.Z)(n,[{key:"show",value:function(){this._widget.show()}},{key:"hide",value:function(){this._widget.hide()}}],[{key:"get",value:function(e){return e.getContribution(n.ID)}}]),n}(g.JT);O.ID="editor.contrib.accessibilityHelpController",O=I([D(1,w.TG)],O);var R=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,r,o,s){var l;return(0,a.Z)(this,n),(l=t.call(this))._contextKeyService=r,l._keybindingService=o,l._openerService=s,l._editor=e,l._isVisibleKey=L.bindTo(l._contextKeyService),l._domNode=(0,d.X)(document.createElement("div")),l._domNode.setClassName("accessibilityHelpWidget"),l._domNode.setDisplay("none"),l._domNode.setAttribute("role","dialog"),l._domNode.setAttribute("aria-hidden","true"),l._contentDomNode=(0,d.X)(document.createElement("div")),l._contentDomNode.setAttribute("role","document"),l._domNode.appendChild(l._contentDomNode),l._isVisible=!1,l._register(l._editor.onDidLayoutChange((function(){l._isVisible&&l._layout()}))),l._register(u.addStandardDisposableListener(l._contentDomNode.domNode,"keydown",(function(e){if(l._isVisible&&(e.equals(2083)&&((0,f.Z9)(N.Oe.emergencyConfOn),l._editor.updateOptions({accessibilitySupport:"on"}),u.clearNode(l._contentDomNode.domNode),l._buildContent(),l._contentDomNode.domNode.focus(),e.preventDefault(),e.stopPropagation()),e.equals(2086))){(0,f.Z9)(N.Oe.openingDocs);var t=l._editor.getRawOptions().accessibilityHelpUrl;"undefined"===typeof t&&(t="https://go.microsoft.com/fwlink/?linkid=852450"),l._openerService.open(y.o.parse(t)),e.preventDefault(),e.stopPropagation()}}))),l.onblur(l._contentDomNode.domNode,(function(){l.hide()})),l._editor.addOverlayWidget((0,i.Z)(l)),l}return(0,s.Z)(n,[{key:"dispose",value:function(){this._editor.removeOverlayWidget(this),(0,r.Z)((0,o.Z)(n.prototype),"dispose",this).call(this)}},{key:"getId",value:function(){return n.ID}},{key:"getDomNode",value:function(){return this._domNode.domNode}},{key:"getPosition",value:function(){return{preference:null}}},{key:"show",value:function(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}},{key:"_descriptionForCommand",value:function(e,t,n){var i=this._keybindingService.lookupKeybinding(e);return i?m.WU(t,i.getAriaLabel()):m.WU(n,e)}},{key:"_buildContent",value:function(){var e=this._editor.getOptions(),t=this._editor.getSelections(),n=0;if(t){var i=this._editor.getModel();i&&t.forEach((function(e){n+=i.getValueLengthInRange(e)}))}var r=function(e,t){return e&&0!==e.length?1===e.length?t?m.WU(N.Oe.singleSelectionRange,e[0].positionLineNumber,e[0].positionColumn,t):m.WU(N.Oe.singleSelection,e[0].positionLineNumber,e[0].positionColumn):t?m.WU(N.Oe.multiSelectionRange,e.length,t):e.length>0?m.WU(N.Oe.multiSelection,e.length):"":N.Oe.noSelection}(t,n);e.get(56)?e.get(83)?r+=N.Oe.readonlyDiffEditor:r+=N.Oe.editableDiffEditor:e.get(83)?r+=N.Oe.readonlyEditor:r+=N.Oe.editableEditor;var o=v.dz?N.Oe.changeConfigToOnMac:N.Oe.changeConfigToOnWinLinux;switch(e.get(2)){case 0:r+="\n\n - "+o;break;case 2:r+="\n\n - "+N.Oe.auto_on;break;case 1:r+="\n\n - "+N.Oe.auto_off,r+=" "+o}e.get(132)?r+="\n\n - "+this._descriptionForCommand(C.ToggleTabFocusModeAction.ID,N.Oe.tabFocusModeOnMsg,N.Oe.tabFocusModeOnMsgNoKb):r+="\n\n - "+this._descriptionForCommand(C.ToggleTabFocusModeAction.ID,N.Oe.tabFocusModeOffMsg,N.Oe.tabFocusModeOffMsgNoKb),r+="\n\n - "+(v.dz?N.Oe.openDocMac:N.Oe.openDocWinLinux),r+="\n\n"+N.Oe.outroMsg,this._contentDomNode.domNode.appendChild((0,h.BO)(r)),this._contentDomNode.domNode.setAttribute("aria-label",r)}},{key:"hide",value:function(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,u.clearNode(this._contentDomNode.domNode),this._editor.focus())}},{key:"_layout",value:function(){var e=this._editor.getLayoutInfo(),t=Math.max(5,Math.min(n.WIDTH,e.width-40)),i=Math.max(5,Math.min(n.HEIGHT,e.height-40));this._domNode.setWidth(t),this._domNode.setHeight(i);var r=Math.round((e.height-i)/2);this._domNode.setTop(r);var o=Math.round((e.width-t)/2);this._domNode.setLeft(o)}}]),n}(p.$);R.ID="editor.contrib.accessibilityHelpWidget",R.WIDTH=500,R.HEIGHT=300,R=I([D(1,S.i6),D(2,k.d),D(3,x.v4)],R);var A=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"editor.action.showAccessibilityHelp",label:N.Oe.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}return(0,s.Z)(n,[{key:"run",value:function(e,t){var n=O.get(t);n&&n.show()}}]),n}(_.R6);(0,_._K)(O.ID,O),(0,_.Qr)(A);var M=_._l.bindToContribution(O.get);(0,_.fK)(new M({id:"closeAccessibilityHelp",precondition:L,handler:function(e){return e.hide()},kbOpts:{weight:200,kbExpr:b.u.focus,primary:9,secondary:[1033]}})),(0,T.Ic)((function(e,t){var n=e.getColor(E.D0T);n&&t.addRule(".monaco-editor .accessibilityHelpWidget { background-color: ".concat(n,"; }"));var i=e.getColor(E.Hfx);i&&t.addRule(".monaco-editor .accessibilityHelpWidget { color: ".concat(i,"; }"));var r=e.getColor(E.rh);r&&t.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ".concat(r,"; }"));var o=e.getColor(E.lRK);o&&t.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid ".concat(o,"; }"))}))},11366:function(e,t,n){"use strict";n.r(t),n.d(t,{IPadShowKeyboard:function(){return p}});var i=n(97326),r=n(15671),o=n(43144),a=n(11752),s=n(61120),l=n(60136),c=n(27277),u=n(81531),d=n(11860),h=n(62381),f=n(73616),p=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).editor=e,i.widget=null,f.gn&&(i._register(e.onDidChangeConfiguration((function(){return i.update()}))),i.update()),i}return(0,o.Z)(n,[{key:"update",value:function(){var e=!this.editor.getOption(83);!this.widget&&e?this.widget=new g(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}},{key:"dispose",value:function(){(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this),this.widget&&(this.widget.dispose(),this.widget=null)}}]),n}(d.JT);p.ID="editor.contrib.iPadShowKeyboard";var g=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var o;return(0,r.Z)(this,n),(o=t.call(this)).editor=e,o._domNode=document.createElement("textarea"),o._domNode.className="iPadShowKeyboard",o._register(u.addDisposableListener(o._domNode,"touchstart",(function(e){o.editor.focus()}))),o._register(u.addDisposableListener(o._domNode,"focus",(function(e){o.editor.focus()}))),o.editor.addOverlayWidget((0,i.Z)(o)),o}return(0,o.Z)(n,[{key:"dispose",value:function(){this.editor.removeOverlayWidget(this),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}},{key:"getId",value:function(){return n.ID}},{key:"getDomNode",value:function(){return this._domNode}},{key:"getPosition",value:function(){return{preference:1}}}]),n}(d.JT);g.ID="editor.contrib.ShowKeyboardWidget",(0,h._K)(p.ID,p)},47372:function(e,t,n){"use strict";n.r(t);var i=n(97326),r=n(15671),o=n(43144),a=n(11752),s=n(61120),l=n(60136),c=n(27277),u=n(81531),d=n(62458),h=n(11860),f=n(62381),p=n(12905),g=n(56124),v=n(38584),m=n(72762),y=n(12293),_=n(32379),b=n(64014),C=n(22742),S=n(59632),w=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},k=function(e,t){return function(n,i){t(n,i,e)}},x=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,o){var a;return(0,r.Z)(this,n),(a=t.call(this))._editor=e,a._languageService=o,a._widget=null,a._register(a._editor.onDidChangeModel((function(e){return a.stop()}))),a._register(a._editor.onDidChangeModelLanguage((function(e){return a.stop()}))),a._register(p.RW.onDidChange((function(e){return a.stop()}))),a._register(a._editor.onKeyUp((function(e){return 9===e.keyCode&&a.stop()}))),a}return(0,o.Z)(n,[{key:"dispose",value:function(){this.stop(),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}},{key:"launch",value:function(){this._widget||this._editor.hasModel()&&(this._widget=new T(this._editor,this._languageService))}},{key:"stop",value:function(){this._widget&&(this._widget.dispose(),this._widget=null)}}],[{key:"get",value:function(e){return e.getContribution(n.ID)}}]),n}(h.JT);x.ID="editor.contrib.inspectTokens",x=w([k(1,y.Z),k(2,m.O)],x);var E=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.inspectTokens",label:C.ug.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}return(0,o.Z)(n,[{key:"run",value:function(e,t){var n=x.get(t);n&&n.launch()}}]),n}(f.R6);var T=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,o){var a;return(0,r.Z)(this,n),(a=t.call(this)).allowEditorOverflow=!0,a._editor=e,a._languageService=o,a._model=a._editor.getModel(),a._domNode=document.createElement("div"),a._domNode.className="tokens-inspect-widget",a._tokenizationSupport=function(e,t){var n=p.RW.get(t);if(n)return n;var i=e.encodeLanguageId(t);return{getInitialState:function(){return v.TJ},tokenize:function(e,n,i){return(0,v.Ri)(t,i)},tokenizeEncoded:function(e,t,n){return(0,v.Dy)(i,n)}}}(a._languageService.languageIdCodec,a._model.getLanguageId()),a._compute(a._editor.getPosition()),a._register(a._editor.onDidChangeCursorPosition((function(e){return a._compute(a._editor.getPosition())}))),a._editor.addContentWidget((0,i.Z)(a)),a}return(0,o.Z)(n,[{key:"dispose",value:function(){this._editor.removeContentWidget(this),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}},{key:"getId",value:function(){return n._ID}},{key:"_compute",value:function(e){for(var t=this._getTokensAtLine(e.lineNumber),n=0,i=t.tokens1.length-1;i>=0;i--){var r=t.tokens1[i];if(e.column-1>=r.offset){n=i;break}}for(var o=0,a=t.tokens2.length>>>1;a>=0;a--)if(e.column-1>=t.tokens2[a<<1]){o=a;break}var s=this._model.getLineContent(e.lineNumber),l="";if(n<t.tokens1.length){var c=t.tokens1[n].offset,h=n+1<t.tokens1.length?t.tokens1[n+1].offset:s.length;l=s.substring(c,h)}(0,u.reset)(this._domNode,(0,u.$)("h2.tm-token",void 0,function(e){for(var t="",n=0,i=e.length;n<i;n++){var r=e.charCodeAt(n);switch(r){case 9:t+="\u2192";break;case 32:t+="\xb7";break;default:t+=String.fromCharCode(r)}}return t}(l),(0,u.$)("span.tm-token-length",void 0,"".concat(l.length," ").concat(1===l.length?"char":"chars")))),(0,u.append)(this._domNode,(0,u.$)("hr.tokens-inspect-separator",{style:"clear:both"}));var f=1+(o<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(o<<1)]):null;(0,u.append)(this._domNode,(0,u.$)("table.tm-metadata-table",void 0,(0,u.$)("tbody",void 0,(0,u.$)("tr",void 0,(0,u.$)("td.tm-metadata-key",void 0,"language"),(0,u.$)("td.tm-metadata-value",void 0,"".concat(f?f.languageId:"-?-"))),(0,u.$)("tr",void 0,(0,u.$)("td.tm-metadata-key",void 0,"token type"),(0,u.$)("td.tm-metadata-value",void 0,"".concat(f?this._tokenTypeToString(f.tokenType):"-?-"))),(0,u.$)("tr",void 0,(0,u.$)("td.tm-metadata-key",void 0,"font style"),(0,u.$)("td.tm-metadata-value",void 0,"".concat(f?this._fontStyleToString(f.fontStyle):"-?-"))),(0,u.$)("tr",void 0,(0,u.$)("td.tm-metadata-key",void 0,"foreground"),(0,u.$)("td.tm-metadata-value",void 0,"".concat(f?d.Il.Format.CSS.formatHex(f.foreground):"-?-"))),(0,u.$)("tr",void 0,(0,u.$)("td.tm-metadata-key",void 0,"background"),(0,u.$)("td.tm-metadata-value",void 0,"".concat(f?d.Il.Format.CSS.formatHex(f.background):"-?-")))))),(0,u.append)(this._domNode,(0,u.$)("hr.tokens-inspect-separator")),n<t.tokens1.length&&(0,u.append)(this._domNode,(0,u.$)("span.tm-token-type",void 0,t.tokens1[n].type)),this._editor.layoutContentWidget(this)}},{key:"_decodeMetadata",value:function(e){var t=p.RW.getColorMap(),n=g.N.getLanguageId(e),i=g.N.getTokenType(e),r=g.N.getFontStyle(e),o=g.N.getForeground(e),a=g.N.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(n),tokenType:i,fontStyle:r,foreground:t[o],background:t[a]}}},{key:"_tokenTypeToString",value:function(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}},{key:"_fontStyleToString",value:function(e){var t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),0===t.length&&(t="---"),t}},{key:"_getTokensAtLine",value:function(e){var t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),i=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:n.tokens,tokens2:i.tokens,endState:n.endState}}},{key:"_getStateBeforeLine",value:function(e){for(var t=this._tokenizationSupport.getInitialState(),n=1;n<e;n++){t=this._tokenizationSupport.tokenize(this._model.getLineContent(n),!0,t).endState}return t}},{key:"getDomNode",value:function(){return this._domNode}},{key:"getPosition",value:function(){return{position:this._editor.getPosition(),preference:[2,1]}}}]),n}(h.JT);T._ID="editor.contrib.inspectTokensWidget",(0,f._K)(x.ID,x),(0,f.Qr)(E),(0,b.Ic)((function(e,t){var n=e.getColor(_.CNo);if(n){var i=(0,S.c3)(e.type)?2:1;t.addRule(".monaco-editor .tokens-inspect-widget { border: ".concat(i,"px solid ").concat(n,"; }")),t.addRule(".monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ".concat(n,"; }"))}var r=e.getColor(_.yJx);r&&t.addRule(".monaco-editor .tokens-inspect-widget { background-color: ".concat(r,"; }"));var o=e.getColor(_.Sbf);o&&t.addRule(".monaco-editor .tokens-inspect-widget { color: ".concat(o,"; }"))}))},86854:function(e,t,n){"use strict";n.r(t),n.d(t,{GotoLineAction:function(){return te},StandaloneCommandsQuickAccessProvider:function(){return ee}});var i=n(74165),r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(69077),c=n(83672),u=n(22742),d=n(98596),h=n(37762),f=n(56148),p=n(29671),g=n(85294),v=n(27722);function m(e,t){return t&&(e.stack||e.stacktrace)?v.NC("stackTrace.format","{0}: {1}",_(e),y(e.stack)||y(e.stacktrace)):_(e)}function y(e){return Array.isArray(e)?e.join("\n"):e}function _(e){return"string"===typeof e.code&&"number"===typeof e.errno&&"string"===typeof e.syscall?v.NC("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||v.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return v.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){var n=p.kX(e),i=b(n[0],t);return n.length>1?v.NC("error.moreErrors","{0} ({1} errors in total)",i,n.length):i}if(g.HD(e))return e;if(e.detail){var r=e.detail;if(r.error)return m(r.error,t);if(r.exception)return m(r.exception,t)}return e.stack?m(e,t):e.message?e.message:v.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var C,S=n(14173),w=n(73160),k=n(11860),x=n(54376),E=n(49750),T=n(11133),N=n(87984),I=n(21330),D=n(36888),L=n(47569),O=n(29439),R=n(93433),A=n(60022),M=n(82784),P=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};function Z(e){var t=e;return Array.isArray(t.items)}function F(e){var t=e;return!!t.picks&&t.additionalPicks instanceof Promise}!function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"}(C||(C={}));var B=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).prefix=e,o.options=i,o}return(0,o.Z)(n,[{key:"provide",value:function(e,t){var r,o=this,a=new k.SL;e.canAcceptInBackground=!!(null===(r=this.options)||void 0===r?void 0:r.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;var s=void 0,l=a.add(new k.XK),c=function(){return P(o,void 0,void 0,(0,i.Z)().mark((function r(){var o,a,c,u,d,h,f,p,g=this;return(0,i.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=l.value=new k.SL,null===s||void 0===s||s.dispose(!0),e.busy=!1,s=new M.A(t),a=s.token,c=e.value.substr(this.prefix.length).trim(),u=this._getPicks(c,o,a),d=function(t,n){var i,r,o=void 0;if(Z(t)?(r=t.items,o=t.active):r=t,0===r.length){if(n)return!1;c.length>0&&(null===(i=g.options)||void 0===i?void 0:i.noResultsPick)&&(r=[g.options.noResultsPick])}return e.items=r,o&&(e.activeItems=[o]),!0},null!==u){r.next=11;break}r.next=33;break;case 11:if(!F(u)){r.next=18;break}return h=!1,f=!1,r.next=16,Promise.all([P(g,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,A.Vs)(n.FAST_PICKS_RACE_DELAY);case 2:if(!a.isCancellationRequested){e.next=4;break}return e.abrupt("return");case 4:f||(h=d(u.picks,!0));case 5:case"end":return e.stop()}}),e)}))),P(g,void 0,void 0,(0,i.Z)().mark((function t(){var n,r,o,s,l,c,p;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.busy=!0,t.prev=1,t.next=4,u.additionalPicks;case 4:if(n=t.sent,!a.isCancellationRequested){t.next=7;break}return t.abrupt("return");case 7:o=void 0,Z(u.picks)?(r=u.picks.items,o=u.picks.active):r=u.picks,l=void 0,Z(n)?(s=n.items,l=n.active):s=n,(s.length>0||!h)&&(c=void 0,o||l||(p=e.activeItems[0])&&-1!==r.indexOf(p)&&(c=p),d({items:[].concat((0,R.Z)(r),(0,R.Z)(s)),active:o||l||c}));case 12:return t.prev=12,a.isCancellationRequested||(e.busy=!1),f=!0,t.finish(12);case 16:case"end":return t.stop()}}),t,null,[[1,,12,16]])})))]);case 16:r.next=33;break;case 18:if(u instanceof Promise){r.next=22;break}d(u),r.next=33;break;case 22:return e.busy=!0,r.prev=23,r.next=26,u;case 26:if(p=r.sent,!a.isCancellationRequested){r.next=29;break}return r.abrupt("return");case 29:d(p);case 30:return r.prev=30,a.isCancellationRequested||(e.busy=!1),r.finish(30);case 33:case"end":return r.stop()}}),r,this,[[23,,30,33]])})))};return a.add(e.onDidChangeValue((function(){return c()}))),c(),a.add(e.onDidAccept((function(t){var n=(0,O.Z)(e.selectedItems,1)[0];"function"===typeof(null===n||void 0===n?void 0:n.accept)&&(t.inBackground||e.hide(),n.accept(e.keyMods,t))}))),a.add(e.onDidTriggerItemButton((function(n){var r=n.button,a=n.item;return P(o,void 0,void 0,(0,i.Z)().mark((function n(){var o,s,l,u,d,h,f,p,g,v;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("function"!==typeof a.trigger){n.next=25;break}if(!((l=null!==(s=null===(o=a.buttons)||void 0===o?void 0:o.indexOf(r))&&void 0!==s?s:-1)>=0)){n.next=25;break}if("number"!==typeof(u=a.trigger(l,e.keyMods))){n.next=8;break}n.t0=u,n.next=11;break;case 8:return n.next=10,u;case 10:n.t0=n.sent;case 11:if(d=n.t0,!t.isCancellationRequested){n.next=14;break}return n.abrupt("return");case 14:n.t1=d,n.next=n.t1===C.NO_ACTION?17:n.t1===C.CLOSE_PICKER?18:n.t1===C.REFRESH_PICKER?20:n.t1===C.REMOVE_ITEM?22:25;break;case 17:return n.abrupt("break",25);case 18:return e.hide(),n.abrupt("break",25);case 20:return c(),n.abrupt("break",25);case 22:return-1!==(h=e.items.indexOf(a))&&(f=e.items.slice(),p=f.splice(h,1),g=e.activeItems.filter((function(e){return e!==p[0]})),v=e.keepScrollPosition,e.keepScrollPosition=!0,e.items=f,g&&(e.activeItems=g),e.keepScrollPosition=v),n.abrupt("break",25);case 25:case"end":return n.stop()}}),n)})))}))),a}}]),n}(k.JT);B.FAST_PICKS_RACE_DELAY=200;var H=n(69681),z=n(15323),j=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},V=function(e,t){return function(n,i){t(n,i,e)}},W=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},U=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,o,a,s,l){var c;return(0,r.Z)(this,n),(c=t.call(this,n.PREFIX,e)).instantiationService=i,c.keybindingService=o,c.commandService=a,c.telemetryService=s,c.dialogService=l,c.commandsHistory=c._register(c.instantiationService.createInstance(G)),c.options=e,c}return(0,o.Z)(n,[{key:"_getPicks",value:function(e,t,r){return W(this,void 0,void 0,(0,i.Z)().mark((function o(){var a,s,l,c,u,d,f,p,m,y,_,C,w,k,x,T,N=this;return(0,i.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.getCommandPicks(t,r);case 2:if(a=o.sent,!r.isCancellationRequested){o.next=5;break}return o.abrupt("return",[]);case 5:s=[],l=(0,h.Z)(a);try{for(l.s();!(c=l.n()).done;)u=c.value,d=(0,g.f6)(n.WORD_FILTER(e,u.label)),f=u.commandAlias?(0,g.f6)(n.WORD_FILTER(e,u.commandAlias)):void 0,d||f?(u.highlights={label:d,detail:this.options.showAlias?f:void 0},s.push(u)):e===u.commandId&&s.push(u)}catch(I){l.e(I)}finally{l.f()}for(p=new Map,m=0,y=s;m<y.length;m++)_=y[m],(C=p.get(_.label))?(_.description=_.commandId,C.description=C.commandId):p.set(_.label,_);for(s.sort((function(e,t){var n=N.commandsHistory.peek(e.commandId),i=N.commandsHistory.peek(t.commandId);return n&&i?n>i?-1:1:n?-1:i?1:e.label.localeCompare(t.label)})),w=[],k=!1,x=function(e){var t=s[e],n=N.keybindingService.lookupKeybinding(t.commandId),r=n?(0,v.NC)("commandPickAriaLabelWithKeybinding","{0}, {1}",t.label,n.getAriaLabel()):t.label;0===e&&N.commandsHistory.peek(t.commandId)&&(w.push({type:"separator",label:(0,v.NC)("recentlyUsed","recently used")}),k=!0),0!==e&&k&&!N.commandsHistory.peek(t.commandId)&&(w.push({type:"separator",label:(0,v.NC)("morecCommands","other commands")}),k=!1),w.push(Object.assign(Object.assign({},t),{ariaLabel:r,detail:N.options.showAlias&&t.commandAlias!==t.label?t.commandAlias:void 0,keybinding:n,accept:function(){return W(N,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.commandsHistory.push(t.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:t.commandId,from:"quick open"}),e.prev=2,e.next=5,this.commandService.executeCommand(t.commandId);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),(0,S.n2)(e.t0)||this.dialogService.show(E.Z.Error,(0,v.NC)("canNotRun","Command '{0}' resulted in an error ({1})",t.label,b(e.t0)));case 10:case"end":return e.stop()}}),e,this,[[2,7]])})))}}))},T=0;T<s.length;T++)x(T);return o.abrupt("return",w);case 16:case"end":return o.stop()}}),o,this)})))}}]),n}(B);U.PREFIX=">",U.WORD_FILTER=(0,w.or)(w.Ji,w.KZ,w.ir),U=j([V(1,D.TG),V(2,L.d),V(3,T.Hy),V(4,z.b),V(5,I.S)],U);var G=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).storageService=e,o.configurationService=i,o.configuredCommandsHistoryLength=0,o.updateConfiguration(),o.load(),o.registerListeners(),o}return(0,o.Z)(n,[{key:"registerListeners",value:function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(){return e.updateConfiguration()})))}},{key:"updateConfiguration",value:function(){this.configuredCommandsHistoryLength=n.getConfiguredCommandHistoryLength(this.configurationService),n.cache&&n.cache.limit!==this.configuredCommandsHistoryLength&&(n.cache.limit=this.configuredCommandsHistoryLength,n.saveState(this.storageService))}},{key:"load",value:function(){var e,t=this.storageService.get(n.PREF_KEY_CACHE,0);if(t)try{e=JSON.parse(t)}catch(r){}var i=n.cache=new x.z6(this.configuredCommandsHistoryLength,1);e&&(e.usesLRU?e.entries:e.entries.sort((function(e,t){return e.value-t.value}))).forEach((function(e){return i.set(e.key,e.value)}));n.counter=this.storageService.getNumber(n.PREF_KEY_COUNTER,0,n.counter)}},{key:"push",value:function(e){n.cache&&(n.cache.set(e,n.counter++),n.saveState(this.storageService))}},{key:"peek",value:function(e){var t;return null===(t=n.cache)||void 0===t?void 0:t.peek(e)}}],[{key:"saveState",value:function(e){if(n.cache){var t={usesLRU:!0,entries:[]};n.cache.forEach((function(e,n){return t.entries.push({key:n,value:e})})),e.store(n.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(n.PREF_KEY_COUNTER,n.counter,0,0)}}},{key:"getConfiguredCommandHistoryLength",value:function(e){var t,i,r=null===(i=null===(t=e.getValue().workbench)||void 0===t?void 0:t.commandPalette)||void 0===i?void 0:i.history;return"number"===typeof r?r:n.DEFAULT_COMMANDS_HISTORY_LENGTH}}]),n}(k.JT);G.DEFAULT_COMMANDS_HISTORY_LENGTH=50,G.PREF_KEY_CACHE="commandPalette.mru.cache",G.PREF_KEY_COUNTER="commandPalette.mru.counter",G.counter=1,G=j([V(0,H.Uy),V(1,N.Ui)],G);var K=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,o,a,s,l){return(0,r.Z)(this,n),t.call(this,e,i,o,a,s,l)}return(0,o.Z)(n,[{key:"getCodeEditorCommandPicks",value:function(){var e=this.activeTextEditorControl;if(!e)return[];var t,n=[],i=(0,h.Z)(e.getSupportedActions());try{for(i.s();!(t=i.n()).done;){var r=t.value;n.push({commandId:r.id,commandAlias:r.alias,label:(0,f.x$)(r.label)||r.id})}}catch(o){i.e(o)}finally{i.f()}return n}}]),n}(U),Y=n(62381),q=n(67245),$=n(23664),X=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Q=function(e,t){return function(n,i){t(n,i,e)}},J=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},ee=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,o,a,s,l){var c;return(0,r.Z)(this,n),(c=t.call(this,{showAlias:!1},e,o,a,s,l)).codeEditorService=i,c}return(0,o.Z)(n,[{key:"activeTextEditorControl",get:function(){return(0,g.f6)(this.codeEditorService.getFocusedCodeEditor())}},{key:"getCommandPicks",value:function(){return J(this,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getCodeEditorCommandPicks());case 1:case"end":return e.stop()}}),e,this)})))}}]),n}(K);ee=X([Q(0,D.TG),Q(1,d.$),Q(2,L.d),Q(3,T.Hy),Q(4,z.b),Q(5,I.S)],ee);var te=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:n.ID,label:u.UX.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:q.u.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}return(0,o.Z)(n,[{key:"run",value:function(e){e.get($.eJ).quickAccess.show(ee.PREFIX)}}]),n}(Y.R6);te.ID="editor.action.quickCommand",(0,Y.Qr)(te),l.B.as(c.IP.Quickaccess).registerQuickAccessProvider({ctor:ee,prefix:ee.PREFIX,helpEntries:[{description:u.UX.quickCommandHelp,commandId:te.ID}]})},34403:function(e,t,n){"use strict";n.r(t),n.d(t,{GotoLineAction:function(){return x},StandaloneGotoLineQuickAccessProvider:function(){return k}});var i=n(15671),r=n(43144),o=n(60136),a=n(27277),s=n(29439),l=n(11860),c=n(64314),u=n(99984),d=n(27722),h=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{canAcceptInBackground:!0})}return(0,r.Z)(n,[{key:"provideWithoutTextEditor",value:function(e){var t=(0,d.NC)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,l.JT.None}},{key:"provideWithTextEditor",value:function(e,t,i){var r=this,o=e.editor,a=new l.SL;a.add(t.onDidAccept((function(n){var i=(0,s.Z)(t.selectedItems,1)[0];if(i){if(!r.isValidLineNumber(o,i.lineNumber))return;r.gotoLocation(e,{range:r.toRange(i.lineNumber,i.column),keyMods:t.keyMods,preserveFocus:n.inBackground}),n.inBackground||t.hide()}})));var u=function(){var e=r.parsePosition(o,t.value.trim().substr(n.PREFIX.length)),i=r.getPickLabel(o,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,r.isValidLineNumber(o,e.lineNumber)){var a=r.toRange(e.lineNumber,e.column);o.revealRangeInCenter(a,0),r.addDecorations(o,a)}else r.clearDecorations(o)};u(),a.add(t.onDidChangeValue((function(){return u()})));var d=(0,c.Pi)(o);d&&(2===d.getOptions().get(62).renderType&&(d.updateOptions({lineNumbers:"on"}),a.add((0,l.OF)((function(){return d.updateOptions({lineNumbers:"relative"})})))));return a}},{key:"toRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}},{key:"parsePosition",value:function(e,t){var n=t.split(/,|:|#/).map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)})),i=this.lineCount(e)+1;return{lineNumber:n[0]>0?n[0]:i+n[0],column:n[1]}}},{key:"getPickLabel",value:function(e,t,n){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,n)?(0,d.NC)("gotoLineColumnLabel","Go to line {0} and character {1}.",t,n):(0,d.NC)("gotoLineLabel","Go to line {0}.",t);var i=e.getPosition()||{lineNumber:1,column:1},r=this.lineCount(e);return r>1?(0,d.NC)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",i.lineNumber,i.column,r):(0,d.NC)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",i.lineNumber,i.column)}},{key:"isValidLineNumber",value:function(e,t){return!(!t||"number"!==typeof t)&&(t>0&&t<=this.lineCount(e))}},{key:"isValidColumn",value:function(e,t,n){if(!n||"number"!==typeof n)return!1;var i=this.getModel(e);if(!i)return!1;var r={lineNumber:t,column:n};return i.validatePosition(r).equals(r)}},{key:"lineCount",value:function(e){var t,n;return null!==(n=null===(t=this.getModel(e))||void 0===t?void 0:t.getLineCount())&&void 0!==n?n:0}}]),n}(u.X);h.PREFIX=":";var f=n(69077),p=n(83672),g=n(98596),v=n(85294),m=n(22742),y=n(73097),_=n(62381),b=n(67245),C=n(23664),S=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},w=function(e,t){return function(n,i){t(n,i,e)}},k=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this)).editorService=e,r.onDidActiveTextEditorControlChange=y.ju.None,r}return(0,r.Z)(n,[{key:"activeTextEditorControl",get:function(){return(0,v.f6)(this.editorService.getFocusedCodeEditor())}}]),n}(h);k=S([w(0,g.$)],k);var x=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{id:n.ID,label:m.qq.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:b.u.focus,primary:2085,mac:{primary:293},weight:100}})}return(0,r.Z)(n,[{key:"run",value:function(e){e.get(C.eJ).quickAccess.show(k.PREFIX)}}]),n}(_.R6);x.ID="editor.action.gotoLine",(0,_.Qr)(x),f.B.as(p.IP.Quickaccess).registerQuickAccessProvider({ctor:k,prefix:k.PREFIX,helpEntries:[{description:m.qq.gotoLineActionLabel,commandId:x.ID}]})},44356:function(e,t,n){"use strict";n.r(t),n.d(t,{GotoSymbolAction:function(){return ne},StandaloneGotoSymbolQuickAccessProvider:function(){return te}});var i=n(15671),r=n(43144),o=n(60136),a=n(27277),s=(n(28423),n(82730),n(4942)),l=n(93433),c=n(37762),u=n(29439),d=n(74165),h=n(60022),f=n(82784),p=n(2801),g=n(73160),v=n(52090),m=n(73616),y=n(32377),_=[void 0,[]];function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=t;return r.values&&r.values.length>1?C(e,r.values,n,i):S(e,t,n,i)}function C(e,t,n,i){var r,o=0,a=[],s=(0,c.Z)(t);try{for(s.s();!(r=s.n()).done;){var d=S(e,r.value,n,i),h=(0,u.Z)(d,2),f=h[0],p=h[1];if("number"!==typeof f)return _;o+=f,a.push.apply(a,(0,l.Z)(p))}}catch(g){s.e(g)}finally{s.f()}return[o,w(a)]}function S(e,t,n,i){var r=(0,g.EW)(t.original,t.originalLowercase,n,e,e.toLowerCase(),i,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return r?[r[0],(0,g.mB)(r)]:_}Object.freeze({score:0});function w(e){var t,n=e.sort((function(e,t){return e.start-t.start})),i=[],r=void 0,o=(0,c.Z)(n);try{for(o.s();!(t=o.n()).done;){var a=t.value;r&&k(r,a)?(r.start=Math.min(r.start,a.start),r.end=Math.max(r.end,a.end)):(r=a,i.push(a))}}catch(s){o.e(s)}finally{o.f()}return i}function k(e,t){return!(e.end<t.start)&&!(t.end<e.start)}function x(e){return e.startsWith('"')&&e.endsWith('"')}function E(e){"string"!==typeof e&&(e="");var t=e.toLowerCase(),n=T(e),i=n.pathNormalized,r=n.normalized,o=n.normalizedLowercase,a=i.indexOf(v.ir)>=0,s=x(e),l=void 0,u=e.split(" ");if(u.length>1){var d,h=(0,c.Z)(u);try{for(h.s();!(d=h.n()).done;){var f=d.value,p=x(f),g=T(f),m=g.pathNormalized,y=g.normalized,_=g.normalizedLowercase;y&&(l||(l=[]),l.push({original:f,originalLowercase:f.toLowerCase(),pathNormalized:m,normalized:y,normalizedLowercase:_,expectContiguousMatch:p}))}}catch(b){h.e(b)}finally{h.f()}}return{original:e,originalLowercase:t,pathNormalized:i,normalized:r,normalizedLowercase:o,values:l,containsPathSeparator:a,expectContiguousMatch:s}}function T(e){var t;t=m.ED?e.replace(/\//g,v.ir):e.replace(/\\/g,v.ir);var n=(0,y.R1)(t).replace(/\s|"/g,"");return{pathNormalized:t,normalized:n,normalizedLowercase:n.toLowerCase()}}function N(e){return Array.isArray(e)?E(e.map((function(e){return e.original})).join(" ")):E(e.original)}var I,D=n(11860),L=n(80133),O=n(12905),R=n(52170),A=n(99984),M=n(27722),P=n(53584),Z=n(29671),F=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},B=function(e,t){return function(n,i){t(n,i,e)}},H=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},z=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,r){var o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.create(null);return(0,i.Z)(this,n),(o=t.call(this,a))._languageFeaturesService=e,o._outlineModelService=r,o.options=a,o.options.canAcceptInBackground=!0,o}return(0,r.Z)(n,[{key:"provideWithoutTextEditor",value:function(e){return this.provideLabelPick(e,(0,M.NC)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),D.JT.None}},{key:"provideWithTextEditor",value:function(e,t,n){var i=e.editor,r=this.getModel(i);return r?this._languageFeaturesService.documentSymbolProvider.has(r)?this.doProvideWithEditorSymbols(e,r,t,n):this.doProvideWithoutEditorSymbols(e,r,t,n):D.JT.None}},{key:"doProvideWithoutEditorSymbols",value:function(e,t,n,i){var r=this,o=new D.SL;return this.provideLabelPick(n,(0,M.NC)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),H(r,void 0,void 0,(0,d.Z)().mark((function r(){return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.waitForLanguageSymbolRegistry(t,o);case 2:if(r.sent&&!i.isCancellationRequested){r.next=5;break}return r.abrupt("return");case 5:o.add(this.doProvideWithEditorSymbols(e,t,n,i));case 6:case"end":return r.stop()}}),r,this)}))),o}},{key:"provideLabelPick",value:function(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}},{key:"waitForLanguageSymbolRegistry",value:function(e,t){return H(this,void 0,void 0,(0,d.Z)().mark((function n(){var i,r,o=this;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this._languageFeaturesService.documentSymbolProvider.has(e)){n.next=2;break}return n.abrupt("return",!0);case 2:return i=new h.CR,r=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((function(){o._languageFeaturesService.documentSymbolProvider.has(e)&&(r.dispose(),i.complete(!0))}))),t.add((0,D.OF)((function(){return i.complete(!1)}))),n.abrupt("return",i.p);case 6:case"end":return n.stop()}}),n,this)})))}},{key:"doProvideWithEditorSymbols",value:function(e,t,i,r){var o,a=this,s=e.editor,l=new D.SL;l.add(i.onDidAccept((function(t){var n=(0,u.Z)(i.selectedItems,1)[0];n&&n.range&&(a.gotoLocation(e,{range:n.range.selection,keyMods:i.keyMods,preserveFocus:t.inBackground}),t.inBackground||i.hide())}))),l.add(i.onDidTriggerItemButton((function(t){var n=t.item;n&&n.range&&(a.gotoLocation(e,{range:n.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())})));var c=this.getDocumentSymbols(t,r),h=void 0,p=function(e){return H(a,void 0,void 0,(0,d.Z)().mark((function t(){var o,a,s;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null===h||void 0===h||h.dispose(!0),i.busy=!1,h=new f.A(r),i.busy=!0,t.prev=4,o=E(i.value.substr(n.PREFIX.length).trim()),t.next=8,this.doGetSymbolPicks(c,o,void 0,h.token);case 8:if(a=t.sent,!r.isCancellationRequested){t.next=11;break}return t.abrupt("return");case 11:a.length>0?(i.items=a,e&&0===o.original.length&&(s=(0,Z.dF)(a,(function(t){return Boolean("separator"!==t.type&&t.range&&L.e.containsPosition(t.range.decoration,e))})))&&(i.activeItems=[s])):o.original.length>0?this.provideLabelPick(i,(0,M.NC)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,(0,M.NC)("noSymbolResults","No editor symbols"));case 12:return t.prev=12,r.isCancellationRequested||(i.busy=!1),t.finish(12);case 15:case"end":return t.stop()}}),t,this,[[4,,12,15]])})))};l.add(i.onDidChangeValue((function(){return p(void 0)}))),p(null===(o=s.getSelection())||void 0===o?void 0:o.getPosition());var g=2;return l.add(i.onDidChangeActive((function(){var e=(0,u.Z)(i.activeItems,1)[0];if(e&&e.range){if(g-- >0)return;s.revealRangeInCenter(e.range.selection,0),a.addDecorations(s,e.range.decoration)}}))),l}},{key:"doGetSymbolPicks",value:function(e,t,i,r){return H(this,void 0,void 0,(0,d.Z)().mark((function o(){var a,s,h,f,g,v,m,_,C,S,w,k,x,E,T,I,D,R,A,P,Z,F,B,H,z,W,U,G,K,Y,q,$,X,Q=this;return(0,d.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,e;case 2:if(a=o.sent,!r.isCancellationRequested){o.next=5;break}return o.abrupt("return",[]);case 5:s=0===t.original.indexOf(n.SCOPE_PREFIX),h=s?1:0,t.values&&t.values.length>1?(f=N(t.values[0]),g=N(t.values.slice(1))):f=t,v=[],m=0;case 10:if(!(m<a.length)){o.next=41;break}if(_=a[m],C=(0,y.fy)(_.name),S="$(".concat(O.uZ.toIcon(_.kind).id,") ").concat(C),w=S.length-C.length,k=_.containerName,(null===i||void 0===i?void 0:i.extraContainerLabel)&&(k=k?"".concat(i.extraContainerLabel," \u2022 ").concat(k):i.extraContainerLabel),x=void 0,E=void 0,T=void 0,I=void 0,!(t.original.length>h)){o.next=36;break}if(D=!1,f!==t&&(R=b(S,Object.assign(Object.assign({},t),{values:void 0}),h,w),A=(0,u.Z)(R,2),x=A[0],E=A[1],"number"===typeof x&&(D=!0)),"number"===typeof x){o.next=31;break}if(P=b(S,f,h,w),Z=(0,u.Z)(P,2),x=Z[0],E=Z[1],"number"===typeof x){o.next=31;break}return o.abrupt("continue",38);case 31:if(D||!g){o.next=36;break}if(k&&g.original.length>0&&(F=b(k,g),B=(0,u.Z)(F,2),T=B[0],I=B[1]),"number"===typeof T){o.next=35;break}return o.abrupt("continue",38);case 35:"number"===typeof x&&(x+=T);case 36:H=_.tags&&_.tags.indexOf(1)>=0,v.push({index:m,kind:_.kind,score:x,label:S,ariaLabel:C,description:k,highlights:H?void 0:{label:E,description:I},range:{selection:L.e.collapseToStart(_.selectionRange),decoration:_.range},strikethrough:H,buttons:function(){var e,t,n=(null===(e=Q.options)||void 0===e?void 0:e.openSideBySideDirection)?null===(t=Q.options)||void 0===t?void 0:t.openSideBySideDirection():void 0;if(n)return[{iconClass:"right"===n?p.lA.splitHorizontal.classNames:p.lA.splitVertical.classNames,tooltip:"right"===n?(0,M.NC)("openToSide","Open to the Side"):(0,M.NC)("openToBottom","Open to the Bottom")}]}()});case 38:m++,o.next=10;break;case 41:if(z=v.sort((function(e,t){return s?Q.compareByKindAndScore(e,t):Q.compareByScore(e,t)})),W=[],s){U=function(){K&&"number"===typeof G&&Y>0&&(K.label=(0,y.WU)(V[G]||j,Y))},G=void 0,K=void 0,Y=0,q=(0,c.Z)(z);try{for(q.s();!($=q.n()).done;)X=$.value,G!==X.kind?(U(),G=X.kind,Y=1,K={type:"separator"},W.push(K)):Y++,W.push(X)}catch(d){q.e(d)}finally{q.f()}U()}else z.length>0&&(W=[{label:(0,M.NC)("symbols","symbols ({0})",v.length),type:"separator"}].concat((0,l.Z)(z)));return o.abrupt("return",W);case 45:case"end":return o.stop()}}),o)})))}},{key:"compareByScore",value:function(e,t){if("number"!==typeof e.score&&"number"===typeof t.score)return 1;if("number"===typeof e.score&&"number"!==typeof t.score)return-1;if("number"===typeof e.score&&"number"===typeof t.score){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}},{key:"compareByKindAndScore",value:function(e,t){var n=V[e.kind]||j,i=V[t.kind]||j,r=n.localeCompare(i);return 0===r?this.compareByScore(e,t):r}},{key:"getDocumentSymbols",value:function(e,t){return H(this,void 0,void 0,(0,d.Z)().mark((function n(){var i;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this._outlineModelService.getOrCreate(e,t);case 2:return i=n.sent,n.abrupt("return",t.isCancellationRequested?[]:i.asListOfDocumentSymbols());case 4:case"end":return n.stop()}}),n,this)})))}}]),n}(A.X);z.PREFIX="@",z.SCOPE_PREFIX=":",z.PREFIX_BY_CATEGORY="".concat(z.PREFIX).concat(z.SCOPE_PREFIX),z=F([B(0,P.p),B(1,R.Je)],z);var j=(0,M.NC)("property","properties ({0})"),V=(I={},(0,s.Z)(I,5,(0,M.NC)("method","methods ({0})")),(0,s.Z)(I,11,(0,M.NC)("function","functions ({0})")),(0,s.Z)(I,8,(0,M.NC)("_constructor","constructors ({0})")),(0,s.Z)(I,12,(0,M.NC)("variable","variables ({0})")),(0,s.Z)(I,4,(0,M.NC)("class","classes ({0})")),(0,s.Z)(I,22,(0,M.NC)("struct","structs ({0})")),(0,s.Z)(I,23,(0,M.NC)("event","events ({0})")),(0,s.Z)(I,24,(0,M.NC)("operator","operators ({0})")),(0,s.Z)(I,10,(0,M.NC)("interface","interfaces ({0})")),(0,s.Z)(I,2,(0,M.NC)("namespace","namespaces ({0})")),(0,s.Z)(I,3,(0,M.NC)("package","packages ({0})")),(0,s.Z)(I,25,(0,M.NC)("typeParameter","type parameters ({0})")),(0,s.Z)(I,1,(0,M.NC)("modules","modules ({0})")),(0,s.Z)(I,6,(0,M.NC)("property","properties ({0})")),(0,s.Z)(I,9,(0,M.NC)("enum","enumerations ({0})")),(0,s.Z)(I,21,(0,M.NC)("enumMember","enumeration members ({0})")),(0,s.Z)(I,14,(0,M.NC)("string","strings ({0})")),(0,s.Z)(I,0,(0,M.NC)("file","files ({0})")),(0,s.Z)(I,17,(0,M.NC)("array","arrays ({0})")),(0,s.Z)(I,15,(0,M.NC)("number","numbers ({0})")),(0,s.Z)(I,16,(0,M.NC)("boolean","booleans ({0})")),(0,s.Z)(I,18,(0,M.NC)("object","objects ({0})")),(0,s.Z)(I,19,(0,M.NC)("key","keys ({0})")),(0,s.Z)(I,7,(0,M.NC)("field","fields ({0})")),(0,s.Z)(I,13,(0,M.NC)("constant","constants ({0})")),I),W=n(69077),U=n(83672),G=n(98596),K=n(85294),Y=n(22742),q=n(73097),$=n(62381),X=n(67245),Q=n(23664),J=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ee=function(e,t){return function(n,i){t(n,i,e)}},te=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,r,o){var a;return(0,i.Z)(this,n),(a=t.call(this,r,o)).editorService=e,a.onDidActiveTextEditorControlChange=q.ju.None,a}return(0,r.Z)(n,[{key:"activeTextEditorControl",get:function(){return(0,K.f6)(this.editorService.getFocusedCodeEditor())}}]),n}(z);te=J([ee(0,G.$),ee(1,P.p),ee(2,R.Je)],te);var ne=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.call(this,{id:n.ID,label:Y.aq.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:X.u.hasDocumentSymbolProvider,kbOpts:{kbExpr:X.u.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}return(0,r.Z)(n,[{key:"run",value:function(e){e.get(Q.eJ).quickAccess.show(z.PREFIX)}}]),n}($.R6);ne.ID="editor.action.quickOutline",(0,$.Qr)(ne),W.B.as(U.IP.Quickaccess).registerQuickAccessProvider({ctor:te,prefix:z.PREFIX,helpEntries:[{description:Y.aq.quickOutlineActionLabel,prefix:z.PREFIX,commandId:ne.ID},{description:Y.aq.quickOutlineByCategoryActionLabel,prefix:z.PREFIX_BY_CATEGORY}]})},46948:function(e,t,n){"use strict";n.r(t);var i=n(69077),r=n(83672),o=n(22742),a=n(37762),s=n(29439),l=n(15671),c=n(43144),u=n(27722),d=n(11860),h=n(47569),f=n(23664),p=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},g=function(e,t){return function(n,i){t(n,i,e)}},v=function(){function e(t,n){(0,l.Z)(this,e),this.quickInputService=t,this.keybindingService=n,this.registry=i.B.as(r.IP.Quickaccess)}return(0,c.Z)(e,[{key:"provide",value:function(t){var n=this,i=new d.SL;return i.add(t.onDidAccept((function(){var e=(0,s.Z)(t.selectedItems,1)[0];e&&n.quickInputService.quickAccess.show(e.prefix,{preserveValue:!0})}))),i.add(t.onDidChangeValue((function(t){var i=n.registry.getQuickAccessProvider(t.substr(e.PREFIX.length));i&&i.prefix&&i.prefix!==e.PREFIX&&n.quickInputService.quickAccess.show(i.prefix,{preserveValue:!0})}))),t.items=this.getQuickAccessProviders(),i}},{key:"getQuickAccessProviders",value:function(){var t,n=[],i=(0,a.Z)(this.registry.getQuickAccessProviders().sort((function(e,t){return e.prefix.localeCompare(t.prefix)})));try{for(i.s();!(t=i.n()).done;){var r=t.value;if(r.prefix!==e.PREFIX){var o,s=(0,a.Z)(r.helpEntries);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=l.prefix||r.prefix,d=c||"\u2026";n.push({prefix:c,label:d,keybinding:l.commandId?this.keybindingService.lookupKeybinding(l.commandId):void 0,ariaLabel:(0,u.NC)("helpPickAriaLabel","{0}, {1}",d,l.description),description:l.description})}}catch(h){s.e(h)}finally{s.f()}}}}catch(h){i.e(h)}finally{i.f()}return n}}]),e}();v.PREFIX="?",v=p([g(0,f.eJ),g(1,h.d)],v),i.B.as(r.IP.Quickaccess).registerQuickAccessProvider({ctor:v,prefix:"",helpEntries:[{description:o.ld.helpQuickAccessActionLabel}]})},55553:function(e,t,n){"use strict";n.r(t),n.d(t,{StandaloneReferencesController:function(){return m}});var i=n(43144),r=n(15671),o=n(60136),a=n(27277),s=n(62381),l=n(98596),c=n(9936),u=n(87984),d=n(34509),h=n(36888),f=n(15493),p=n(69681),g=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},v=function(e,t){return function(n,i){t(n,i,e)}},m=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o,a,s,l,c){return(0,r.Z)(this,n),t.call(this,!0,e,i,o,a,s,l,c)}return(0,i.Z)(n)}(c.J);m=g([v(1,d.i6),v(2,l.$),v(3,f.lT),v(4,h.TG),v(5,p.Uy),v(6,u.Ui)],m),(0,s._K)(c.J.ID,m)},61513:function(e,t,n){"use strict";n.d(t,{kR:function(){return j},MU:function(){return V},nI:function(){return $},rW:function(){return z},TG:function(){return H}});var i=n(37762),r=n(97326),o=n(60136),a=n(27277),s=n(15671),l=n(43144),c=n(81531),u=n(62865),d=n(62458),h=n(73097),f=n(12905),p=n(56124),g=(0,l.Z)((function e(t,n,i,r,o){(0,s.Z)(this,e),this._parsedThemeRuleBrand=void 0,this.token=t,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o}));function v(e,t){e.sort((function(e,t){var n=function(e,t){if(e<t)return-1;if(e>t)return 1;return 0}(e.token,t.token);return 0!==n?n:e.index-t.index}));for(var n=0,r="000000",o="ffffff";e.length>=1&&""===e[0].token;){var a=e.shift();-1!==a.fontStyle&&(n=a.fontStyle),null!==a.foreground&&(r=a.foreground),null!==a.background&&(o=a.background)}var s,l=new y,c=(0,i.Z)(t);try{for(c.s();!(s=c.n()).done;){var u=s.value;l.getId(u)}}catch(b){c.e(b)}finally{c.f()}for(var d=l.getId(r),h=l.getId(o),f=new C(n,d,h),p=new S(f),g=0,v=e.length;g<v;g++){var m=e[g];p.insert(m.token,m.fontStyle,l.getId(m.foreground),l.getId(m.background))}return new _(l,p)}var m=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,y=function(){function e(){(0,s.Z)(this,e),this._lastColorId=0,this._id2color=[],this._color2id=new Map}return(0,l.Z)(e,[{key:"getId",value:function(e){if(null===e)return 0;var t=e.match(m);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();var n=this._color2id.get(e);return n||(n=++this._lastColorId,this._color2id.set(e,n),this._id2color[n]=d.Il.fromHex("#"+e),n)}},{key:"getColorMap",value:function(){return this._id2color.slice(0)}}]),e}(),_=function(){function e(t,n){(0,s.Z)(this,e),this._colorMap=t,this._root=n,this._cache=new Map}return(0,l.Z)(e,[{key:"getColorMap",value:function(){return this._colorMap.getColorMap()}},{key:"_match",value:function(e){return this._root.match(e)}},{key:"match",value:function(e,t){var n=this._cache.get(t);if("undefined"===typeof n){var i=this._match(t),r=function(e){var t=e.match(b);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}(t);n=(i.metadata|r<<8)>>>0,this._cache.set(t,n)}return(n|e<<0)>>>0}}],[{key:"createFromRawTokenTheme",value:function(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];for(var t=[],n=0,i=0,r=e.length;i<r;i++){var o=e[i],a=-1;if("string"===typeof o.fontStyle){a=0;for(var s=o.fontStyle.split(" "),l=0,c=s.length;l<c;l++)switch(s[l]){case"italic":a|=1;break;case"bold":a|=2;break;case"underline":a|=4;break;case"strikethrough":a|=8}}var u=null;"string"===typeof o.foreground&&(u=o.foreground);var d=null;"string"===typeof o.background&&(d=o.background),t[n++]=new g(o.token||"",i,a,u,d)}return t}(e),t)}},{key:"createFromParsedTokenTheme",value:function(e,t){return v(e,t)}}]),e}(),b=/\b(comment|string|regex|regexp)\b/;var C=function(){function e(t,n,i){(0,s.Z)(this,e),this._themeTrieElementRuleBrand=void 0,this._fontStyle=t,this._foreground=n,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}return(0,l.Z)(e,[{key:"clone",value:function(){return new e(this._fontStyle,this._foreground,this._background)}},{key:"acceptOverwrite",value:function(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}]),e}(),S=function(){function e(t){(0,s.Z)(this,e),this._themeTrieElementBrand=void 0,this._mainRule=t,this._children=new Map}return(0,l.Z)(e,[{key:"match",value:function(e){if(""===e)return this._mainRule;var t,n,i=e.indexOf(".");-1===i?(t=e,n=""):(t=e.substring(0,i),n=e.substring(i+1));var r=this._children.get(t);return"undefined"!==typeof r?r.match(n):this._mainRule}},{key:"insert",value:function(t,n,i,r){if(""!==t){var o,a,s=t.indexOf(".");-1===s?(o=t,a=""):(o=t.substring(0,s),a=t.substring(s+1));var l=this._children.get(o);"undefined"===typeof l&&(l=new e(this._mainRule.clone()),this._children.set(o,l)),l.insert(a,n,i,r)}else this._mainRule.acceptOverwrite(n,i,r)}}]),e}();var w,k,x,E,T=n(4942),N=n(29700),I=n(32379),D={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:(w={},(0,T.Z)(w,I.cvW,"#FFFFFE"),(0,T.Z)(w,I.NOs,"#000000"),(0,T.Z)(w,I.ES4,"#E5EBF1"),(0,T.Z)(w,N.tR,"#D3D3D3"),(0,T.Z)(w,N.Ym,"#939393"),(0,T.Z)(w,I.Rzx,"#ADD6FF4D"),w)},L={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(k={},(0,T.Z)(k,I.cvW,"#1E1E1E"),(0,T.Z)(k,I.NOs,"#D4D4D4"),(0,T.Z)(k,I.ES4,"#3A3D41"),(0,T.Z)(k,N.tR,"#404040"),(0,T.Z)(k,N.Ym,"#707070"),(0,T.Z)(k,I.Rzx,"#ADD6FF26"),k)},O={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(x={},(0,T.Z)(x,I.cvW,"#000000"),(0,T.Z)(x,I.NOs,"#FFFFFF"),(0,T.Z)(x,N.tR,"#FFFFFF"),(0,T.Z)(x,N.Ym,"#FFFFFF"),x)},R={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:(E={},(0,T.Z)(E,I.cvW,"#FFFFFF"),(0,T.Z)(E,I.NOs,"#292929"),(0,T.Z)(E,N.tR,"#292929"),(0,T.Z)(E,N.Ym,"#292929"),E)},A=n(69077),M=n(64014),P=n(11860),Z=n(59632),F=n(96752);var B=function(){function e(){(0,s.Z)(this,e)}return(0,l.Z)(e,[{key:"getIcon",value:function(e){for(var t=(0,F.Ks)(),n=e.defaults;M.kS.isThemeIcon(n);){var i=t.getIcon(n.id);if(!i)return;n=i.defaults}return n}}]),e}(),H="vs",z="vs-dark",j="hc-black",V="hc-light",W=A.B.as(I.IPX.ColorContribution),U=A.B.as(M.IP.ThemingContribution),G=function(){function e(t,n){(0,s.Z)(this,e),this.semanticHighlighting=!1,this.themeData=n;var i=n.base;t.length>0?(K(t)?this.id=t:this.id=i+" "+t,this.themeName=t):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return(0,l.Z)(e,[{key:"base",get:function(){return this.themeData.base}},{key:"notifyBaseUpdated",value:function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}},{key:"getColors",value:function(){if(!this.colors){var e=new Map;for(var t in this.themeData.colors)e.set(t,d.Il.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){var n=Y(this.themeData.base);for(var i in n.colors)e.has(i)||e.set(i,d.Il.fromHex(n.colors[i]))}this.colors=e}return this.colors}},{key:"getColor",value:function(e,t){var n=this.getColors().get(e);return n||(!1!==t?this.getDefault(e):void 0)}},{key:"getDefault",value:function(e){var t=this.defaultColors[e];return t||(t=W.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}},{key:"defines",value:function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}},{key:"type",get:function(){switch(this.base){case H:return Z.eL.LIGHT;case j:return Z.eL.HIGH_CONTRAST_DARK;case V:return Z.eL.HIGH_CONTRAST_LIGHT;default:return Z.eL.DARK}}},{key:"tokenTheme",get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var n=Y(this.themeData.base);e=n.rules,n.encodedTokensColors&&(t=n.encodedTokensColors)}var i=this.themeData.colors["editor.foreground"],r=this.themeData.colors["editor.background"];if(i||r){var o={token:""};i&&(o.foreground=i),r&&(o.background=r),e.push(o)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=_.createFromRawTokenTheme(e,t)}return this._tokenTheme}},{key:"getTokenStyleMetadata",value:function(e,t,n){var i=this.tokenTheme._match([e].concat(t).join(".")).metadata,r=p.N.getForeground(i),o=p.N.getFontStyle(i);return{foreground:r,italic:Boolean(1&o),bold:Boolean(2&o),underline:Boolean(4&o),strikethrough:Boolean(8&o)}}}]),e}();function K(e){return e===H||e===z||e===j||e===V}function Y(e){switch(e){case H:return D;case z:return L;case j:return O;case V:return R}}function q(e){var t=Y(e);return new G(e,t)}var $=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,s.Z)(this,n),(e=t.call(this))._onColorThemeChange=e._register(new h.Q5),e.onDidColorThemeChange=e._onColorThemeChange.event,e._onProductIconThemeChange=e._register(new h.Q5),e.onDidProductIconThemeChange=e._onProductIconThemeChange.event,e._environment=Object.create(null),e._builtInProductIconTheme=new B,e._autoDetectHighContrast=!0,e._knownThemes=new Map,e._knownThemes.set(H,q(H)),e._knownThemes.set(z,q(z)),e._knownThemes.set(j,q(j)),e._knownThemes.set(V,q(V));var o=function(e){var t=new h.Q5,n=(0,F.Ks)();return n.onDidChange((function(){return t.fire()})),null===e||void 0===e||e.onDidProductIconThemeChange((function(){return t.fire()})),{onDidChange:t.event,getCSS:function(){var t,r=e?e.getProductIconTheme():new B,o={},a=function(e){var t=r.getIcon(e);if(t){var n=t.font;return n?(o[n.id]=n.definition,".codicon-".concat(e.id,":before { content: '").concat(t.fontCharacter,"'; font-family: ").concat((0,c.asCSSPropertyValue)(n.id),"; }")):".codicon-".concat(e.id,":before { content: '").concat(t.fontCharacter,"'; }")}},s=[],l=(0,i.Z)(n.getIcons());try{for(l.s();!(t=l.n()).done;){var u=a(t.value);u&&s.push(u)}}catch(v){l.e(v)}finally{l.f()}for(var d in o){var h=o[d],f=h.weight?"font-weight: ".concat(h.weight,";"):"",p=h.style?"font-style: ".concat(h.style,";"):"",g=h.src.map((function(e){return"".concat((0,c.asCSSUrl)(e.location)," format('").concat(e.format,"')")})).join(", ");s.push("@font-face { src: ".concat(g,"; font-family: ").concat((0,c.asCSSPropertyValue)(d),";").concat(f).concat(p," font-display: block; }"))}return s.join("\n")}}}((0,r.Z)(e));return e._codiconCSS=o.getCSS(),e._themeCSS="",e._allCSS="".concat(e._codiconCSS,"\n").concat(e._themeCSS),e._globalStyleElement=null,e._styleElements=[],e._colorMapOverride=null,e.setTheme(H),e._onOSSchemeChanged(),o.onDidChange((function(){e._codiconCSS=o.getCSS(),e._updateCSS()})),(0,u.addMatchMediaChangeListener)("(forced-colors: active)",(function(){e._onOSSchemeChanged()})),e}return(0,l.Z)(n,[{key:"registerEditorContainer",value:function(e){return c.isInShadowDOM(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}},{key:"_registerRegularEditorContainer",value:function(){return this._globalStyleElement||(this._globalStyleElement=c.createStyleSheet(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),P.JT.None}},{key:"_registerShadowDomContainer",value:function(e){var t=this,n=c.createStyleSheet(e);return n.className="monaco-colors",n.textContent=this._allCSS,this._styleElements.push(n),{dispose:function(){for(var e=0;e<t._styleElements.length;e++)if(t._styleElements[e]===n)return void t._styleElements.splice(e,1)}}}},{key:"defineTheme",value:function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!K(t.base)&&!K(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new G(e,t)),K(e)&&this._knownThemes.forEach((function(t){t.base===e&&t.notifyBaseUpdated()})),this._theme.themeName===e&&this.setTheme(e)}},{key:"getColorTheme",value:function(){return this._theme}},{key:"setColorMapOverride",value:function(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}},{key:"setTheme",value:function(e){var t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(H),this._updateActualTheme(t)}},{key:"_updateActualTheme",value:function(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}},{key:"_onOSSchemeChanged",value:function(){if(this._autoDetectHighContrast){var e,t=window.matchMedia("(forced-colors: active)").matches;if(t!==(0,Z.c3)(this._theme.type))e=(0,Z._T)(this._theme.type)?t?j:z:t?V:H,this._updateActualTheme(this._knownThemes.get(e))}}},{key:"setAutoDetectHighContrast",value:function(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}},{key:"_updateThemeOrColorMap",value:function(){var e=this,t=[],n={},r={addRule:function(e){n[e]||(t.push(e),n[e]=!0)}};U.getThemingParticipants().forEach((function(t){return t(e._theme,r,e._environment)}));var o,a=[],s=(0,i.Z)(W.getColors());try{for(s.s();!(o=s.n()).done;){var l=o.value,c=this._theme.getColor(l.id,!0);c&&a.push("".concat((0,I.QO2)(l.id),": ").concat(c.toString(),";"))}}catch(d){s.e(d)}finally{s.f()}r.addRule(".monaco-editor { ".concat(a.join("\n")," }"));var u=this._colorMapOverride||this._theme.tokenTheme.getColorMap();r.addRule(function(e){for(var t=[],n=1,i=e.length;n<i;n++){var r=e[n];t[n]=".mtk".concat(n," { color: ").concat(r,"; }")}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.push(".mtks { text-decoration: line-through; }"),t.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),t.join("\n")}(u)),this._themeCSS=t.join("\n"),this._updateCSS(),f.RW.setColorMap(u),this._onColorThemeChange.fire(this._theme)}},{key:"_updateCSS",value:function(){var e=this;this._allCSS="".concat(this._codiconCSS,"\n").concat(this._themeCSS),this._styleElements.forEach((function(t){return t.textContent=e._allCSS}))}},{key:"getFileIconTheme",value:function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}},{key:"getProductIconTheme",value:function(){return this._builtInProductIconTheme}}]),n}(P.JT)},16420:function(e,t,n){"use strict";n.r(t);var i=n(15671),r=n(43144),o=n(60136),a=n(27277),s=n(62381),l=n(12293),c=n(22742),u=n(59632),d=n(61513),h=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,i.Z)(this,n),(e=t.call(this,{id:"editor.action.toggleHighContrast",label:c.xi.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}))._originalThemeName=null,e}return(0,r.Z)(n,[{key:"run",value:function(e,t){var n=e.get(l.Z),i=n.getColorTheme();(0,u.c3)(i.type)?(n.setTheme(this._originalThemeName||((0,u._T)(i.type)?d.rW:d.TG)),this._originalThemeName=null):(n.setTheme((0,u._T)(i.type)?d.kR:d.MU),this._originalThemeName=i.themeName)}}]),n}(s.R6);(0,s.Qr)(h)},12293:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var i=(0,n(36888).yh)("themeService")},88082:function(e,t,n){"use strict";n.r(t),n.d(t,{jsonDefaults:function(){return p}});var i=n(15671),r=n(43144),o=n(4942),a=n(37762),s=n(16599),l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=function(e,t,n,i){if(t&&"object"===typeof t||"function"===typeof t){var r,o=(0,a.Z)(u(t));try{var s=function(){var o=r.value;d.call(e,o)||o===n||l(e,o,{get:function(){return t[o]},enumerable:!(i=c(t,o))||i.enumerable})};for(o.s();!(r=o.n()).done;)s()}catch(h){o.e(h)}finally{o.f()}}return e},f={};!function(e,t,n){h(e,t,"default"),n&&h(n,t,"default")}(f,s);var p=new(function(){function e(t,n,r){(0,i.Z)(this,e),(0,o.Z)(this,"_onDidChange",new f.Emitter),(0,o.Z)(this,"_diagnosticsOptions",void 0),(0,o.Z)(this,"_modeConfiguration",void 0),(0,o.Z)(this,"_languageId",void 0),this._languageId=t,this.setDiagnosticsOptions(n),this.setModeConfiguration(r)}return(0,r.Z)(e,[{key:"onDidChange",get:function(){return this._onDidChange.event}},{key:"languageId",get:function(){return this._languageId}},{key:"modeConfiguration",get:function(){return this._modeConfiguration}},{key:"diagnosticsOptions",get:function(){return this._diagnosticsOptions}},{key:"setDiagnosticsOptions",value:function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}},{key:"setModeConfiguration",value:function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}]),e}())("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});f.languages.json={jsonDefaults:p},f.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),f.languages.onLanguage("json",(function(){n.e(342).then(n.bind(n,95342)).then((function(e){return e.setupMode(p)}))}))},64104:function(e,t,n){"use strict";n.r(t),n.d(t,{JsxEmit:function(){return g},ModuleKind:function(){return p},ModuleResolutionKind:function(){return y},NewLineKind:function(){return v},ScriptTarget:function(){return m},getJavaScriptWorker:function(){return k},getTypeScriptWorker:function(){return w},javascriptDefaults:function(){return S},typescriptDefaults:function(){return C},typescriptVersion:function(){return b}});var i=n(15671),r=n(43144),o=n(4942),a=n(37762),s=n(16599),l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=function(e,t,n,i){if(t&&"object"===typeof t||"function"===typeof t){var r,o=(0,a.Z)(u(t));try{var s=function(){var o=r.value;d.call(e,o)||o===n||l(e,o,{get:function(){return t[o]},enumerable:!(i=c(t,o))||i.enumerable})};for(o.s();!(r=o.n()).done;)s()}catch(h){o.e(h)}finally{o.f()}}return e},f={};!function(e,t,n){h(e,t,"default"),n&&h(n,t,"default")}(f,s);var p=function(e){return e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e}(p||{}),g=function(e){return e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e}(g||{}),v=function(e){return e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e}(v||{}),m=function(e){return e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e}(m||{}),y=function(e){return e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e}(y||{}),_=function(){function e(t,n,r,a){(0,i.Z)(this,e),(0,o.Z)(this,"_onDidChange",new f.Emitter),(0,o.Z)(this,"_onDidExtraLibsChange",new f.Emitter),(0,o.Z)(this,"_extraLibs",void 0),(0,o.Z)(this,"_removedExtraLibs",void 0),(0,o.Z)(this,"_eagerModelSync",void 0),(0,o.Z)(this,"_compilerOptions",void 0),(0,o.Z)(this,"_diagnosticsOptions",void 0),(0,o.Z)(this,"_workerOptions",void 0),(0,o.Z)(this,"_onDidExtraLibsChangeTimeout",void 0),(0,o.Z)(this,"_inlayHintsOptions",void 0),this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(t),this.setDiagnosticsOptions(n),this.setWorkerOptions(r),this.setInlayHintsOptions(a),this._onDidExtraLibsChangeTimeout=-1}return(0,r.Z)(e,[{key:"onDidChange",get:function(){return this._onDidChange.event}},{key:"onDidExtraLibsChange",get:function(){return this._onDidExtraLibsChange.event}},{key:"workerOptions",get:function(){return this._workerOptions}},{key:"inlayHintsOptions",get:function(){return this._inlayHintsOptions}},{key:"getExtraLibs",value:function(){return this._extraLibs}},{key:"addExtraLib",value:function(e,t){var n,i=this;if(n="undefined"===typeof t?"ts:extralib-".concat(Math.random().toString(36).substring(2,15)):t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var r=1;return this._removedExtraLibs[n]&&(r=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(r=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var e=i._extraLibs[n];e&&e.version===r&&(delete i._extraLibs[n],i._removedExtraLibs[n]=r,i._fireOnDidExtraLibsChangeSoon())}}}},{key:"setExtraLibs",value:function(e){for(var t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0){var n,i=(0,a.Z)(e);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.filePath||"ts:extralib-".concat(Math.random().toString(36).substring(2,15)),s=r.content,l=1;this._removedExtraLibs[o]&&(l=this._removedExtraLibs[o]+1),this._extraLibs[o]={content:s,version:l}}}catch(c){i.e(c)}finally{i.f()}}this._fireOnDidExtraLibsChangeSoon()}},{key:"_fireOnDidExtraLibsChangeSoon",value:function(){var e=this;-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((function(){e._onDidExtraLibsChangeTimeout=-1,e._onDidExtraLibsChange.fire(void 0)}),0))}},{key:"getCompilerOptions",value:function(){return this._compilerOptions}},{key:"setCompilerOptions",value:function(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}},{key:"getDiagnosticsOptions",value:function(){return this._diagnosticsOptions}},{key:"setDiagnosticsOptions",value:function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}},{key:"setWorkerOptions",value:function(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}},{key:"setInlayHintsOptions",value:function(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}},{key:"setMaximumWorkerIdleTime",value:function(e){}},{key:"setEagerModelSync",value:function(e){this._eagerModelSync=e}},{key:"getEagerModelSync",value:function(){return this._eagerModelSync}}]),e}(),b="4.5.5",C=new _({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),S=new _({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),w=function(){return x().then((function(e){return e.getTypeScriptWorker()}))},k=function(){return x().then((function(e){return e.getJavaScriptWorker()}))};function x(){return n.e(258).then(n.bind(n,41258))}f.languages.typescript={ModuleKind:p,JsxEmit:g,NewLineKind:v,ScriptTarget:m,ModuleResolutionKind:y,typescriptVersion:b,typescriptDefaults:C,javascriptDefaults:S,getTypeScriptWorker:w,getJavaScriptWorker:k},f.languages.onLanguage("typescript",(function(){return x().then((function(e){return e.setupTypeScript(C)}))})),f.languages.onLanguage("javascript",(function(){return x().then((function(e){return e.setupJavaScript(S)}))}))},27722:function(e,t,n){"use strict";n.d(t,{NC:function(){return o},aj:function(){return a}});var i="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function r(e,t){var n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){var i=n[0],r=t[i],o=e;return"string"===typeof r?o=r:"number"!==typeof r&&"boolean"!==typeof r&&void 0!==r&&null!==r||(o=String(r)),o})),i&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return r(t,i)}function a(e){}},41330:function(e,t,n){"use strict";n.d(t,{F:function(){return r},U:function(){return o}});var i=n(34509),r=(0,n(36888).yh)("accessibilityService"),o=new i.uy("accessibilityModeEnabled",!1)},14835:function(e,t,n){"use strict";n.d(t,{Mm:function(){return B},Id:function(){return j},vr:function(){return F}});var i=n(74165),r=n(15671),o=n(43144),a=n(11752),s=n(61120),l=n(60136),c=n(27277),u=n(93433),d=n(29439),h=n(37762),f=n(81531),p=n(33813),g=n(82290),v=n(81238),m=n(18247),y=n(73097),_=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,e,i))._actions=[],o._contextMenuProvider=i.contextMenuProvider,o.actions=i.actions||[],o.actionProvider=i.actionProvider,o.menuClassName=i.menuClassName||"",o.menuAsChild=!!i.menuAsChild,o}return(0,o.Z)(n,[{key:"menuOptions",get:function(){return this._menuOptions},set:function(e){this._menuOptions=e}},{key:"actions",get:function(){return this.actionProvider?this.actionProvider.getActions():this._actions},set:function(e){this._actions=e}},{key:"show",value:function(){var e=this;(0,a.Z)((0,s.Z)(n.prototype),"show",this).call(this),this.element.classList.add("active"),this._contextMenuProvider.showContextMenu({getAnchor:function(){return e.element},getActions:function(){return e.actions},getActionsContext:function(){return e.menuOptions?e.menuOptions.context:null},getActionViewItem:function(t){return e.menuOptions&&e.menuOptions.actionViewItemProvider?e.menuOptions.actionViewItemProvider(t):void 0},getKeyBinding:function(t){return e.menuOptions&&e.menuOptions.getKeyBinding?e.menuOptions.getKeyBinding(t):void 0},getMenuClassName:function(){return e.menuClassName},onHide:function(){return e.onHide()},actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.menuAsChild?this.element:void 0})}},{key:"hide",value:function(){(0,a.Z)((0,s.Z)(n.prototype),"hide",this).call(this)}},{key:"onHide",value:function(){this.hide(),this.element.classList.remove("active")}}]),n}(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){var o;(0,r.Z)(this,n),(o=t.call(this))._onDidChangeVisibility=o._register(new y.Q5),o.onDidChangeVisibility=o._onDidChangeVisibility.event,o._element=(0,f.append)(e,(0,f.$)(".monaco-dropdown")),o._label=(0,f.append)(o._element,(0,f.$)(".dropdown-label"));var a=i.labelRenderer;a||(a=function(e){return e.textContent=i.label||"",null});for(var s=0,l=[f.EventType.CLICK,f.EventType.MOUSE_DOWN,v.t.Tap];s<l.length;s++){var c=l[s];o._register((0,f.addDisposableListener)(o.element,c,(function(e){return f.EventHelper.stop(e,!0)})))}for(var u=0,d=[f.EventType.MOUSE_DOWN,v.t.Tap];u<d.length;u++){var h=d[u];o._register((0,f.addDisposableListener)(o._label,h,(function(e){e instanceof MouseEvent&&(e.detail>1||0!==e.button)||(o.visible?o.hide():o.show())})))}o._register((0,f.addDisposableListener)(o._label,f.EventType.KEY_UP,(function(e){var t=new p.y(e);(t.equals(3)||t.equals(10))&&(f.EventHelper.stop(e,!0),o.visible?o.hide():o.show())})));var g=a(o._label);return g&&o._register(g),o._register(v.o.addTarget(o._label)),o}return(0,o.Z)(n,[{key:"element",get:function(){return this._element}},{key:"show",value:function(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}},{key:"hide",value:function(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}},{key:"dispose",value:function(){(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}]),n}(m.Wi)),b=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,o){var a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object.create(null);return(0,r.Z)(this,n),(a=t.call(this,null,e,s)).actionItem=null,a._onDidChangeVisibility=a._register(new y.Q5),a.menuActionsOrProvider=i,a.contextMenuProvider=o,a.options=s,a.options.actionRunner&&(a.actionRunner=a.options.actionRunner),a}return(0,o.Z)(n,[{key:"render",value:function(e){var t=this;this.actionItem=e;var n=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:function(e){var n;t.element=(0,f.append)(e,(0,f.$)("a.action-label"));var i=[];return"string"===typeof t.options.classNames?i=t.options.classNames.split(/\s+/g).filter((function(e){return!!e})):t.options.classNames&&(i=t.options.classNames),i.find((function(e){return"icon"===e}))||i.push("codicon"),(n=t.element.classList).add.apply(n,(0,u.Z)(i)),t.element.setAttribute("role","button"),t.element.setAttribute("aria-haspopup","true"),t.element.setAttribute("aria-expanded","false"),t.element.title=t._action.label||"",t.element.ariaLabel=t._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:n?this.menuActionsOrProvider:void 0,actionProvider:n?void 0:this.menuActionsOrProvider};if(this.dropdownMenu=this._register(new _(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility((function(e){var n;null===(n=t.element)||void 0===n||n.setAttribute("aria-expanded","".concat(e)),t._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){var r=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return r.options.anchorAlignmentProvider()}})}this.updateTooltip(),this.updateEnabled()}},{key:"getTooltip",value:function(){var e=null;return this.getAction().tooltip?e=this.getAction().tooltip:this.getAction().label&&(e=this.getAction().label),null!==e&&void 0!==e?e:void 0}},{key:"setActionContext",value:function(e){(0,a.Z)((0,s.Z)(n.prototype),"setActionContext",this).call(this,e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}},{key:"updateEnabled",value:function(){var e,t,n=!this.getAction().enabled;null===(e=this.actionItem)||void 0===e||e.classList.toggle("disabled",n),null===(t=this.element)||void 0===t||t.classList.toggle("disabled",n)}}]),n}(g.Y),C=n(51828),S=n(11860),w=n(73616),k=n(27722),x=n(48996),E=n(34509),T=n(22468),N=n(36888),I=n(47569),D=n(15493),L=n(69681),O=n(64014),R=n(59632),A=n(85294),M=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},P=function(e,t){return function(n,i){t(n,i,e)}},Z=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};function F(e,t,n,i,r,o,a){var s=e.getActions(t);return function(e,t,n){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return"navigation"===e},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Number.MAX_SAFE_INTEGER,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return!1},l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];Array.isArray(t)?(i=t,r=t):(i=t.primary,r=t.secondary);var c,f=new Set,p=(0,h.Z)(e);try{for(p.s();!(c=p.n()).done;){var g=(0,d.Z)(c.value,2),v=g[0],y=g[1],_=void 0;o(v)?(_=i).length>0&&l&&_.push(new m.Z0):(_=r).length>0&&_.push(new m.Z0);var b,C=(0,h.Z)(y);try{for(C.s();!(b=C.n()).done;){var S=b.value;n&&(S=S instanceof x.U8&&S.alt?S.alt:S);var w=_.push(S);S instanceof m.wY&&f.add({group:v,action:S,index:w-1})}}catch(P){C.e(P)}finally{C.f()}}}catch(P){p.e(P)}finally{p.f()}var k,E=(0,h.Z)(f);try{for(E.s();!(k=E.n()).done;){var T,N=k.value,I=N.group,D=N.action,L=N.index,O=o(I)?i:r,R=D.actions;if((R.length<=1||O.length+R.length-2<=a)&&s(D,I,O.length))(T=O).splice.apply(T,[L,1].concat((0,u.Z)(R)))}}catch(P){E.e(P)}finally{E.f()}if(i!==r&&i.length>a){var A,M=i.splice(a,i.length-a);(A=r).unshift.apply(A,(0,u.Z)(M).concat([new m.Z0]))}}(s,n,!1,"string"===typeof i?function(e){return e===i}:i,r,o,a),function(e){var t,n=new S.SL,i=(0,h.Z)(e);try{for(i.s();!(t=i.n()).done;){var r,o=(0,d.Z)(t.value,2)[1],a=(0,h.Z)(o);try{for(a.s();!(r=a.n()).done;){var s=r.value;n.add(s)}}catch(l){a.e(l)}finally{a.f()}}}catch(l){i.e(l)}finally{i.f()}return n}(s)}var B=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,o,a,s,l,c){var u;return(0,r.Z)(this,n),(u=t.call(this,void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:null===i||void 0===i?void 0:i.draggable,keybinding:null===i||void 0===i?void 0:i.keybinding,hoverDelegate:null===i||void 0===i?void 0:i.hoverDelegate}))._keybindingService=o,u._notificationService=a,u._contextKeyService=s,u._themeService=l,u._contextMenuService=c,u._wantsAltCommand=!1,u._itemClassDispose=u._register(new S.XK),u._altKey=f.ModifierKeyEmitter.getInstance(),u}return(0,o.Z)(n,[{key:"_menuItemAction",get:function(){return this._action}},{key:"_commandAction",get:function(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}},{key:"onClick",value:function(e){return Z(this,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),e.stopPropagation(),t.prev=2,t.next=5,this.actionRunner.run(this._commandAction,this._context);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(2),this._notificationService.error(t.t0);case 10:case"end":return t.stop()}}),t,this,[[2,7]])})))}},{key:"render",value:function(e){var t=this;(0,a.Z)((0,s.Z)(n.prototype),"render",this).call(this,e),e.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);var i=!1,r=this._altKey.keyStatus.altKey||(w.ED||w.IJ)&&this._altKey.keyStatus.shiftKey,o=function(){var e,n=i&&r&&!!(null===(e=t._commandAction.alt)||void 0===e?void 0:e.enabled);n!==t._wantsAltCommand&&(t._wantsAltCommand=n,t.updateLabel(),t.updateTooltip(),t.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event((function(e){r=e.altKey||(w.ED||w.IJ)&&e.shiftKey,o()}))),this._register((0,f.addDisposableListener)(e,"mouseleave",(function(e){i=!1,o()}))),this._register((0,f.addDisposableListener)(e,"mouseenter",(function(e){i=!0,o()})))}},{key:"updateLabel",value:function(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}},{key:"getTooltip",value:function(){var e,t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),n=t&&t.getLabel(),i=this._commandAction.tooltip||this._commandAction.label,r=n?(0,k.NC)("titleAndKb","{0} ({1})",i,n):i;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){var o=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,a=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),s=a&&a.getLabel(),l=s?(0,k.NC)("titleAndKb","{0} ({1})",o,s):o;r=(0,k.NC)("titleAndKbAndAlt","{0}\n[{1}] {2}",r,C.xo.modifierLabels[w.OS].altKey,l)}return r}},{key:"updateClass",value:function(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}},{key:"_updateItemClass",value:function(e){var t,n=this;this._itemClassDispose.value=void 0;var i=this.element,r=this.label;if(i&&r){var o=this._commandAction.checked&&(null===(t=e.toggled)||void 0===t?void 0:t.icon)?e.toggled.icon:e.icon;if(o)if(O.kS.isThemeIcon(o)){var a,s=O.kS.asClassNameArray(o);(a=r.classList).add.apply(a,(0,u.Z)(s)),this._itemClassDispose.value=(0,S.OF)((function(){var e;(e=r.classList).remove.apply(e,(0,u.Z)(s))}))}else r.style.backgroundImage=(0,R._T)(this._themeService.getColorTheme().type)?(0,f.asCSSUrl)(o.dark):(0,f.asCSSUrl)(o.light),r.classList.add("icon"),this._itemClassDispose.value=(0,S.F8)((0,S.OF)((function(){r.style.backgroundImage="",r.classList.remove("icon")})),this._themeService.onDidColorThemeChange((function(){n.updateClass()})))}}}]),n}(g.g);B=M([P(2,I.d),P(3,D.lT),P(4,E.i6),P(5,O.XE),P(6,T.i)],B);var H=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,o,a){var s,l,c;(0,r.Z)(this,n);var u=Object.assign({},null!==i&&void 0!==i?i:Object.create(null),{menuAsChild:null!==(l=null===i||void 0===i?void 0:i.menuAsChild)&&void 0!==l&&l,classNames:null!==(c=null===i||void 0===i?void 0:i.classNames)&&void 0!==c?c:O.kS.isThemeIcon(e.item.icon)?O.kS.asClassName(e.item.icon):void 0});return(s=t.call(this,e,{getActions:function(){return e.actions}},o,u))._contextMenuService=o,s._themeService=a,s}return(0,o.Z)(n,[{key:"render",value:function(e){var t=this;(0,a.Z)((0,s.Z)(n.prototype),"render",this).call(this,e),(0,A.p_)(this.element),e.classList.add("menu-entry");var i=this._action.item.icon;if(i&&!O.kS.isThemeIcon(i)){this.element.classList.add("icon");var r=function(){t.element&&(t.element.style.backgroundImage=(0,R._T)(t._themeService.getColorTheme().type)?(0,f.asCSSUrl)(i.dark):(0,f.asCSSUrl)(i.light))};r(),this._register(this._themeService.onDidColorThemeChange((function(){r()})))}}}]),n}(b);H=M([P(2,T.i),P(3,O.XE)],H);var z=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,o,a,s,l,c,u){var d,h,f,p,g;(0,r.Z)(this,n),(d=t.call(this,null,e))._keybindingService=o,d._notificationService=a,d._contextMenuService=s,d._menuService=l,d._instaService=c,d._storageService=u,d._container=null,d._options=i,d._storageKey="".concat(e.item.submenu.id,"_lastActionId");var v=u.get(d._storageKey,1);v&&(g=e.actions.find((function(e){return v===e.id}))),g||(g=e.actions[0]),d._defaultAction=d._instaService.createInstance(B,g,{keybinding:d._getDefaultActionKeybindingLabel(g)});var y=Object.assign({},null!==i&&void 0!==i?i:Object.create(null),{menuAsChild:null===(h=null===i||void 0===i?void 0:i.menuAsChild)||void 0===h||h,classNames:null!==(f=null===i||void 0===i?void 0:i.classNames)&&void 0!==f?f:["codicon","codicon-chevron-down"],actionRunner:null!==(p=null===i||void 0===i?void 0:i.actionRunner)&&void 0!==p?p:new m.Wi});return d._dropdown=new b(e,e.actions,d._contextMenuService,y),d._dropdown.actionRunner.onDidRun((function(e){e.action instanceof x.U8&&d.update(e.action)})),d}return(0,o.Z)(n,[{key:"update",value:function(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(B,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"runAction",value:function(e,t){return Z(this,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.run(void 0);case 2:case"end":return t.stop()}}),t)})))}}]),n}(m.Wi)),this._container&&this._defaultAction.render((0,f.prepend)(this._container,(0,f.$)(".action-container")))}},{key:"_getDefaultActionKeybindingLabel",value:function(e){var t,n;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){var i=this._keybindingService.lookupKeybinding(e.id);i&&(n="(".concat(i.getLabel(),")"))}return n}},{key:"setActionContext",value:function(e){(0,a.Z)((0,s.Z)(n.prototype),"setActionContext",this).call(this,e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}},{key:"render",value:function(e){var t=this;this._container=e,(0,a.Z)((0,s.Z)(n.prototype),"render",this).call(this,this._container),this._container.classList.add("monaco-dropdown-with-default");var i=(0,f.$)(".action-container");this._defaultAction.render((0,f.append)(this._container,i)),this._register((0,f.addDisposableListener)(i,f.EventType.KEY_DOWN,(function(e){var n=new p.y(e);n.equals(17)&&(t._defaultAction.element.tabIndex=-1,t._dropdown.focus(),n.stopPropagation())})));var r=(0,f.$)(".dropdown-action-container");this._dropdown.render((0,f.append)(this._container,r)),this._register((0,f.addDisposableListener)(r,f.EventType.KEY_DOWN,(function(e){var n,i=new p.y(e);i.equals(15)&&(t._defaultAction.element.tabIndex=0,t._dropdown.setFocusable(!1),null===(n=t._defaultAction.element)||void 0===n||n.focus(),i.stopPropagation())})))}},{key:"focus",value:function(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}},{key:"blur",value:function(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}},{key:"setFocusable",value:function(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}},{key:"dispose",value:function(){this._defaultAction.dispose(),this._dropdown.dispose(),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}}]),n}(g.Y);function j(e,t,n){return t instanceof x.U8?e.createInstance(B,t,n):t instanceof x.NZ?t.item.rememberDefaultAction?e.createInstance(z,t,n):e.createInstance(H,t,n):void 0}z=M([P(2,I.d),P(3,D.lT),P(4,T.i),P(5,x.co),P(6,N.TG),P(7,L.Uy)],z)},48996:function(e,t,n){"use strict";n.d(t,{BH:function(){return x},NZ:function(){return E},U8:function(){return T},co:function(){return k},eH:function(){return w},vr:function(){return S}});var i=n(29439),r=n(60136),o=n(27277),a=n(93433),s=n(37762),l=n(43144),c=n(15671),u=n(18247),d=n(2801),h=n(73097),f=n(94016),p=n(11860),g=n(17832),v=n(11133),m=n(34509),y=n(36888),_=n(64014),b=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},C=function(e,t){return function(n,i){t(n,i,e)}};function S(e){return void 0!==e.command}var w=(0,l.Z)((function e(t){if((0,c.Z)(this,e),e._instances.has(t))throw new TypeError("MenuId with identifier '".concat(t,"' already exists. Use MenuId.for(ident) or a unique identifier"));e._instances.set(t,this),this.id=t}));w._instances=new Map,w.CommandPalette=new w("CommandPalette"),w.DebugBreakpointsContext=new w("DebugBreakpointsContext"),w.DebugCallStackContext=new w("DebugCallStackContext"),w.DebugConsoleContext=new w("DebugConsoleContext"),w.DebugVariablesContext=new w("DebugVariablesContext"),w.DebugWatchContext=new w("DebugWatchContext"),w.DebugToolBar=new w("DebugToolBar"),w.DebugToolBarStop=new w("DebugToolBarStop"),w.EditorContext=new w("EditorContext"),w.SimpleEditorContext=new w("SimpleEditorContext"),w.EditorContextCopy=new w("EditorContextCopy"),w.EditorContextPeek=new w("EditorContextPeek"),w.EditorContextShare=new w("EditorContextShare"),w.EditorTitle=new w("EditorTitle"),w.EditorTitleRun=new w("EditorTitleRun"),w.EditorTitleContext=new w("EditorTitleContext"),w.EmptyEditorGroup=new w("EmptyEditorGroup"),w.EmptyEditorGroupContext=new w("EmptyEditorGroupContext"),w.ExplorerContext=new w("ExplorerContext"),w.ExtensionContext=new w("ExtensionContext"),w.GlobalActivity=new w("GlobalActivity"),w.CommandCenter=new w("CommandCenter"),w.LayoutControlMenuSubmenu=new w("LayoutControlMenuSubmenu"),w.LayoutControlMenu=new w("LayoutControlMenu"),w.MenubarMainMenu=new w("MenubarMainMenu"),w.MenubarAppearanceMenu=new w("MenubarAppearanceMenu"),w.MenubarDebugMenu=new w("MenubarDebugMenu"),w.MenubarEditMenu=new w("MenubarEditMenu"),w.MenubarCopy=new w("MenubarCopy"),w.MenubarFileMenu=new w("MenubarFileMenu"),w.MenubarGoMenu=new w("MenubarGoMenu"),w.MenubarHelpMenu=new w("MenubarHelpMenu"),w.MenubarLayoutMenu=new w("MenubarLayoutMenu"),w.MenubarNewBreakpointMenu=new w("MenubarNewBreakpointMenu"),w.MenubarPanelAlignmentMenu=new w("MenubarPanelAlignmentMenu"),w.MenubarPanelPositionMenu=new w("MenubarPanelPositionMenu"),w.MenubarPreferencesMenu=new w("MenubarPreferencesMenu"),w.MenubarRecentMenu=new w("MenubarRecentMenu"),w.MenubarSelectionMenu=new w("MenubarSelectionMenu"),w.MenubarShare=new w("MenubarShare"),w.MenubarSwitchEditorMenu=new w("MenubarSwitchEditorMenu"),w.MenubarSwitchGroupMenu=new w("MenubarSwitchGroupMenu"),w.MenubarTerminalMenu=new w("MenubarTerminalMenu"),w.MenubarViewMenu=new w("MenubarViewMenu"),w.MenubarHomeMenu=new w("MenubarHomeMenu"),w.OpenEditorsContext=new w("OpenEditorsContext"),w.ProblemsPanelContext=new w("ProblemsPanelContext"),w.SCMChangeContext=new w("SCMChangeContext"),w.SCMResourceContext=new w("SCMResourceContext"),w.SCMResourceFolderContext=new w("SCMResourceFolderContext"),w.SCMResourceGroupContext=new w("SCMResourceGroupContext"),w.SCMSourceControl=new w("SCMSourceControl"),w.SCMTitle=new w("SCMTitle"),w.SearchContext=new w("SearchContext"),w.StatusBarWindowIndicatorMenu=new w("StatusBarWindowIndicatorMenu"),w.StatusBarRemoteIndicatorMenu=new w("StatusBarRemoteIndicatorMenu"),w.TestItem=new w("TestItem"),w.TestItemGutter=new w("TestItemGutter"),w.TestPeekElement=new w("TestPeekElement"),w.TestPeekTitle=new w("TestPeekTitle"),w.TouchBarContext=new w("TouchBarContext"),w.TitleBarContext=new w("TitleBarContext"),w.TitleBarTitleContext=new w("TitleBarTitleContext"),w.TunnelContext=new w("TunnelContext"),w.TunnelPrivacy=new w("TunnelPrivacy"),w.TunnelProtocol=new w("TunnelProtocol"),w.TunnelPortInline=new w("TunnelInline"),w.TunnelTitle=new w("TunnelTitle"),w.TunnelLocalAddressInline=new w("TunnelLocalAddressInline"),w.TunnelOriginInline=new w("TunnelOriginInline"),w.ViewItemContext=new w("ViewItemContext"),w.ViewContainerTitle=new w("ViewContainerTitle"),w.ViewContainerTitleContext=new w("ViewContainerTitleContext"),w.ViewTitle=new w("ViewTitle"),w.ViewTitleContext=new w("ViewTitleContext"),w.CommentThreadTitle=new w("CommentThreadTitle"),w.CommentThreadActions=new w("CommentThreadActions"),w.CommentTitle=new w("CommentTitle"),w.CommentActions=new w("CommentActions"),w.InteractiveToolbar=new w("InteractiveToolbar"),w.InteractiveCellTitle=new w("InteractiveCellTitle"),w.InteractiveCellDelete=new w("InteractiveCellDelete"),w.InteractiveCellExecute=new w("InteractiveCellExecute"),w.InteractiveInputExecute=new w("InteractiveInputExecute"),w.NotebookToolbar=new w("NotebookToolbar"),w.NotebookCellTitle=new w("NotebookCellTitle"),w.NotebookCellDelete=new w("NotebookCellDelete"),w.NotebookCellInsert=new w("NotebookCellInsert"),w.NotebookCellBetween=new w("NotebookCellBetween"),w.NotebookCellListTop=new w("NotebookCellTop"),w.NotebookCellExecute=new w("NotebookCellExecute"),w.NotebookCellExecutePrimary=new w("NotebookCellExecutePrimary"),w.NotebookDiffCellInputTitle=new w("NotebookDiffCellInputTitle"),w.NotebookDiffCellMetadataTitle=new w("NotebookDiffCellMetadataTitle"),w.NotebookDiffCellOutputsTitle=new w("NotebookDiffCellOutputsTitle"),w.NotebookOutputToolbar=new w("NotebookOutputToolbar"),w.NotebookEditorLayoutConfigure=new w("NotebookEditorLayoutConfigure"),w.NotebookKernelSource=new w("NotebookKernelSource"),w.BulkEditTitle=new w("BulkEditTitle"),w.BulkEditContext=new w("BulkEditContext"),w.TimelineItemContext=new w("TimelineItemContext"),w.TimelineTitle=new w("TimelineTitle"),w.TimelineTitleContext=new w("TimelineTitleContext"),w.TimelineFilterSubMenu=new w("TimelineFilterSubMenu"),w.AccountsContext=new w("AccountsContext"),w.PanelTitle=new w("PanelTitle"),w.AuxiliaryBarTitle=new w("AuxiliaryBarTitle"),w.TerminalInstanceContext=new w("TerminalInstanceContext"),w.TerminalEditorInstanceContext=new w("TerminalEditorInstanceContext"),w.TerminalNewDropdownContext=new w("TerminalNewDropdownContext"),w.TerminalTabContext=new w("TerminalTabContext"),w.TerminalTabEmptyAreaContext=new w("TerminalTabEmptyAreaContext"),w.TerminalInlineTabContext=new w("TerminalInlineTabContext"),w.WebviewContext=new w("WebviewContext"),w.InlineCompletionsActions=new w("InlineCompletionsActions"),w.NewFile=new w("NewFile"),w.MergeToolbar=new w("MergeToolbar"),w.MergeInput1Toolbar=new w("MergeToolbar1Toolbar"),w.MergeInput2Toolbar=new w("MergeToolbar2Toolbar");var k=(0,y.yh)("menuService"),x=new(function(){function e(){(0,c.Z)(this,e),this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new h.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:function(e){return e===w.CommandPalette}}}return(0,l.Z)(e,[{key:"addCommand",value:function(e){return this.addCommands(f.$.single(e))}},{key:"addCommands",value:function(e){var t,n=this,i=(0,s.Z)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;this._commands.set(r.id,r)}}catch(o){i.e(o)}finally{i.f()}return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,p.OF)((function(){var t,i=!1,r=(0,s.Z)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;i=n._commands.delete(a.id)||i}}catch(o){r.e(o)}finally{r.f()}i&&n._onDidChangeMenu.fire(n._commandPaletteChangeEvent)}))}},{key:"getCommand",value:function(e){return this._commands.get(e)}},{key:"getCommands",value:function(){var e=new Map;return this._commands.forEach((function(t,n){return e.set(n,t)})),e}},{key:"appendMenuItem",value:function(e,t){return this.appendMenuItems(f.$.single({id:e,item:t}))}},{key:"appendMenuItems",value:function(e){var t,n=this,i=new Set,r=new g.S,o=(0,s.Z)(e);try{for(o.s();!(t=o.n()).done;){var a=t.value,l=a.id,c=a.item,u=this._menuItems.get(l);u||(u=new g.S,this._menuItems.set(l,u)),r.push(u.push(c)),i.add(l)}}catch(d){o.e(d)}finally{o.f()}return this._onDidChangeMenu.fire(i),(0,p.OF)((function(){if(r.size>0){var e,t=(0,s.Z)(r);try{for(t.s();!(e=t.n()).done;){(0,e.value)()}}catch(d){t.e(d)}finally{t.f()}n._onDidChangeMenu.fire(i),r.clear()}}))}},{key:"getMenuItems",value:function(e){var t;return t=this._menuItems.has(e)?(0,a.Z)(this._menuItems.get(e)):[],e===w.CommandPalette&&this._appendImplicitItems(t),t}},{key:"_appendImplicitItems",value:function(e){var t,n=new Set,i=(0,s.Z)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;S(r)&&(n.add(r.command.id),r.alt&&n.add(r.alt.id))}}catch(o){i.e(o)}finally{i.f()}this._commands.forEach((function(t,i){n.has(i)||e.push({command:t})}))}}]),e}()),E=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e,i,r,o){var a;return(0,c.Z)(this,n),(a=t.call(this,"submenuitem.".concat(e.submenu.id),"string"===typeof e.title?e.title:e.title.value,[],"submenu")).item=e,a._menuService=i,a._contextKeyService=r,a._options=o,a}return(0,l.Z)(n,[{key:"actions",get:function(){var e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),n=t.getActions(this._options);t.dispose();var r,o=(0,s.Z)(n);try{for(o.s();!(r=o.n()).done;){var l=(0,i.Z)(r.value,2)[1];l.length>0&&(e.push.apply(e,(0,a.Z)(l)),e.push(new u.Z0))}}catch(c){o.e(c)}finally{o.f()}return e.length&&e.pop(),e}}]),n}(u.wY),T=function(){function e(t,n,i,r,o,a){var s,l;if((0,c.Z)(this,e),this.hideActions=r,this._commandService=a,this.id=t.id,this.label=(null===i||void 0===i?void 0:i.renderShortTitle)&&t.shortTitle?"string"===typeof t.shortTitle?t.shortTitle:t.shortTitle.value:"string"===typeof t.title?t.title:t.title.value,this.tooltip=null!==(l="string"===typeof t.tooltip?t.tooltip:null===(s=t.tooltip)||void 0===s?void 0:s.value)&&void 0!==l?l:"",this.enabled=!t.precondition||o.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){var u=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=o.contextMatchesRules(u.condition),this.checked&&u.tooltip&&(this.tooltip="string"===typeof u.tooltip?u.tooltip:u.tooltip.value),u.title&&(this.label="string"===typeof u.title?u.title:u.title.value)}this.item=t,this.alt=n?new e(n,void 0,i,r,o,a):void 0,this._options=i,_.kS.isThemeIcon(t.icon)&&(this.class=d.dT.asClassName(t.icon))}return(0,l.Z)(e,[{key:"dispose",value:function(){}},{key:"run",value:function(){var e,t,n,i=[];if((null===(t=this._options)||void 0===t?void 0:t.arg)&&(i=[].concat((0,a.Z)(i),[this._options.arg])),null===(n=this._options)||void 0===n?void 0:n.shouldForwardArgs){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];i=[].concat((0,a.Z)(i),o)}return(e=this._commandService).executeCommand.apply(e,[this.id].concat((0,a.Z)(i)))}}]),e}();T=b([C(4,m.i6),C(5,v.Hy)],T)},1255:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var i=(0,n(36888).yh)("clipboardService")},11133:function(e,t,n){"use strict";n.d(t,{Hy:function(){return d},P0:function(){return h}});var i=n(37762),r=n(15671),o=n(43144),a=n(73097),s=n(94016),l=n(11860),c=n(17832),u=n(85294),d=(0,n(36888).yh)("commandService"),h=new(function(){function e(){(0,r.Z)(this,e),this._commands=new Map,this._onDidRegisterCommand=new a.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return(0,o.Z)(e,[{key:"registerCommand",value:function(e,t){var n=this;if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){var r,o=[],a=(0,i.Z)(e.description.args);try{for(a.s();!(r=a.n()).done;){var s=r.value;o.push(s.constraint)}}catch(v){a.e(v)}finally{a.f()}var d=e.handler;e.handler=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return(0,u.D8)(n,o),d.apply(void 0,[e].concat(n))}}var h=e.id,f=this._commands.get(h);f||(f=new c.S,this._commands.set(h,f));var p=f.unshift(e),g=(0,l.OF)((function(){p();var e=n._commands.get(h);(null===e||void 0===e?void 0:e.isEmpty())&&n._commands.delete(h)}));return this._onDidRegisterCommand.fire(h),g}},{key:"registerCommandAlias",value:function(e,t){return h.registerCommand(e,(function(e){for(var n,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return(n=e.get(d)).executeCommand.apply(n,[t].concat(r))}))}},{key:"getCommand",value:function(e){var t=this._commands.get(e);if(t&&!t.isEmpty())return s.$.first(t)}},{key:"getCommands",value:function(){var e,t=new Map,n=(0,i.Z)(this._commands.keys());try{for(n.s();!(e=n.n()).done;){var r=e.value,o=this.getCommand(r);o&&t.set(r,o)}}catch(a){n.e(a)}finally{n.f()}return t}}]),e}());h.registerCommand("noop",(function(){}))},87984:function(e,t,n){"use strict";n.d(t,{KV:function(){return a},Mt:function(){return c},Od:function(){return o},UI:function(){return u},Ui:function(){return r},xL:function(){return s}});var i=n(37762),r=(0,n(36888).yh)("configurationService");function o(e,t){var n=Object.create(null);for(var i in e)a(n,i,e[i],t);return n}function a(e,t,n,i){for(var r=t.split("."),o=r.pop(),a=e,s=0;s<r.length;s++){var l=r[s],c=a[l];switch(typeof c){case"undefined":c=a[l]=Object.create(null);break;case"object":break;default:return void i("Ignoring ".concat(t," as ").concat(r.slice(0,s+1).join(".")," is ").concat(JSON.stringify(c)))}a=c}if("object"===typeof a&&null!==a)try{a[o]=n}catch(u){i("Ignoring ".concat(t," as ").concat(r.join(".")," is ").concat(JSON.stringify(a)))}else i("Ignoring ".concat(t," as ").concat(r.join(".")," is ").concat(JSON.stringify(a)))}function s(e,t){l(e,t.split("."))}function l(e,t){var n=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(n)){var i=e[n];"object"!==typeof i||Array.isArray(i)||(l(i,t),0===Object.keys(i).length&&delete e[n])}}else delete e[n]}function c(e,t,n){var r=function(e,t){var n,r=e,o=(0,i.Z)(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("object"!==typeof r||null===r)return;r=r[a]}}catch(s){o.e(s)}finally{o.f()}return r}(e,t.split("."));return"undefined"===typeof r?n:r}function u(e){return e.replace(/[\[\]]/g,"")}},50818:function(e,t,n){"use strict";n.d(t,{IP:function(){return p},eU:function(){return T},ny:function(){return N}});var i=n(93433),r=n(37762),o=n(15671),a=n(43144),s=n(29671),l=n(73097),c=n(85294),u=n(27722),d=n(87984),h=n(21775),f=n(69077),p={Configuration:"base.contributions.configuration"},g={properties:{},patternProperties:{}},v={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},y={properties:{},patternProperties:{}},_={properties:{},patternProperties:{}},b={properties:{},patternProperties:{}},C="vscode://schemas/settings/resourceLanguage",S=f.B.as(h.I.JSONContribution),w=function(){function e(){(0,o.Z)(this,e),this.overrideIdentifiers=new Set,this._onDidSchemaChange=new l.Q5,this._onDidUpdateConfiguration=new l.Q5,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:u.NC("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},S.registerSchema(C,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}return(0,a.Z)(e,[{key:"registerConfiguration",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.registerConfigurations([e],t)}},{key:"registerConfigurations",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.doRegisterConfigurations(e,t);S.registerSchema(C,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}},{key:"registerDefaultConfigurations",value:function(e){var t,n,o=[],a=[],s=(0,r.Z)(e);try{for(s.s();!(n=s.n()).done;){var l=n.value,h=l.overrides,f=l.source;for(var p in h)if(o.push(p),T.test(p)){var g=this.configurationDefaultsOverrides.get(p),v=null!==(t=null===g||void 0===g?void 0:g.valuesSources)&&void 0!==t?t:new Map;if(f)for(var m=0,y=Object.keys(h[p]);m<y.length;m++){var _=y[m];v.set(_,f)}var b=Object.assign(Object.assign({},(null===g||void 0===g?void 0:g.value)||{}),h[p]);this.configurationDefaultsOverrides.set(p,{source:f,value:b,valuesSources:v});var S=(0,d.UI)(p),w={type:"object",default:b,description:u.NC("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",S),$ref:C,defaultDefaultValue:b,source:c.HD(f)?void 0:f,defaultValueSource:f};a.push.apply(a,(0,i.Z)(N(p))),this.configurationProperties[p]=w,this.defaultLanguageConfigurationOverridesNode.properties[p]=w}else{this.configurationDefaultsOverrides.set(p,{value:h[p],source:f});var k=this.configurationProperties[p];k&&(this.updatePropertyDefaultValue(p,k),this.updateSchema(p,k))}}}catch(x){s.e(x)}finally{s.f()}this.registerOverrideIdentifiers(a),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:o,defaultsOverrides:!0})}},{key:"registerOverrideIdentifiers",value:function(e){var t,n=(0,r.Z)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.overrideIdentifiers.add(i)}}catch(o){n.e(o)}finally{n.f()}this.updateOverridePropertyPatternKey()}},{key:"doRegisterConfigurations",value:function(e,t){var n=this,r=[];return e.forEach((function(e){r.push.apply(r,(0,i.Z)(n.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties))),n.configurationContributors.push(e),n.registerJSONConfiguration(e)})),r}},{key:"validateAndRegisterProperties",value:function(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3;s=c.Jp(e.scope)?s:e.scope;var l=[],u=e.properties;if(u)for(var d in u){var h=u[d];n&&D(d,h)?delete u[d]:(h.source=o,h.defaultDefaultValue=u[d].default,this.updatePropertyDefaultValue(d,h),T.test(d)?h.scope=void 0:(h.scope=c.Jp(h.scope)?s:h.scope,h.restricted=c.Jp(h.restricted)?!!(null===a||void 0===a?void 0:a.includes(d)):h.restricted),!u[d].hasOwnProperty("included")||u[d].included?(this.configurationProperties[d]=u[d],(null===(t=u[d].policy)||void 0===t?void 0:t.name)&&this.policyConfigurations.set(u[d].policy.name,d),!u[d].deprecationMessage&&u[d].markdownDeprecationMessage&&(u[d].deprecationMessage=u[d].markdownDeprecationMessage),l.push(d)):(this.excludedConfigurationProperties[d]=u[d],delete u[d]))}var f=e.allOf;if(f){var p,g=(0,r.Z)(f);try{for(g.s();!(p=g.n()).done;){var v=p.value;l.push.apply(l,(0,i.Z)(this.validateAndRegisterProperties(v,n,o,a,s)))}}catch(m){g.e(m)}finally{g.f()}}return l}},{key:"getConfigurationProperties",value:function(){return this.configurationProperties}},{key:"getPolicyConfigurations",value:function(){return this.policyConfigurations}},{key:"registerJSONConfiguration",value:function(e){var t=this;!function e(n){var i=n.properties;if(i)for(var r in i)t.updateSchema(r,i[r]);var o=n.allOf;null===o||void 0===o||o.forEach(e)}(e)}},{key:"updateSchema",value:function(e,t){switch(g.properties[e]=t,t.scope){case 1:v.properties[e]=t;break;case 2:m.properties[e]=t;break;case 6:y.properties[e]=t;break;case 3:_.properties[e]=t;break;case 4:b.properties[e]=t;break;case 5:b.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}},{key:"updateOverridePropertyPatternKey",value:function(){var e,t=(0,r.Z)(this.overrideIdentifiers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value,i="[".concat(n,"]"),o={type:"object",description:u.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:u.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:C};this.updatePropertyDefaultValue(i,o),g.properties[i]=o,v.properties[i]=o,m.properties[i]=o,y.properties[i]=o,_.properties[i]=o,b.properties[i]=o}}catch(a){t.e(a)}finally{t.f()}this._onDidSchemaChange.fire()}},{key:"registerOverridePropertyPatternKey",value:function(){var e={type:"object",description:u.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:u.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:C};g.patternProperties[E]=e,v.patternProperties[E]=e,m.patternProperties[E]=e,y.patternProperties[E]=e,_.patternProperties[E]=e,b.patternProperties[E]=e,this._onDidSchemaChange.fire()}},{key:"updatePropertyDefaultValue",value:function(e,t){var n=this.configurationDefaultsOverrides.get(e),i=null===n||void 0===n?void 0:n.value,r=null===n||void 0===n?void 0:n.source;c.o8(i)&&(i=t.defaultDefaultValue,r=void 0),c.o8(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i,t.defaultValueSource=r}}]),e}(),k="\\[([^\\]]+)\\]",x=new RegExp(k,"g"),E="^(".concat(k,")+$"),T=new RegExp(E);function N(e){var t=[];if(T.test(e))for(var n=x.exec(e);null===n||void 0===n?void 0:n.length;){var i=n[1].trim();i&&t.push(i),n=x.exec(e)}return(0,s.EB)(t)}var I=new w;function D(e,t){var n,i,r,o;return e.trim()?T.test(e)?u.NC("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==I.getConfigurationProperties()[e]?u.NC("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(n=t.policy)||void 0===n?void 0:n.name)&&void 0!==I.getPolicyConfigurations().get(null===(i=t.policy)||void 0===i?void 0:i.name)?u.NC("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(r=t.policy)||void 0===r?void 0:r.name,I.getPolicyConfigurations().get(null===(o=t.policy)||void 0===o?void 0:o.name)):null:u.NC("config.property.empty","Cannot register an empty property")}f.B.add(p.Configuration,I)},34509:function(e,t,n){"use strict";n.d(t,{Ao:function(){return p},Eq:function(){return Z},Fb:function(){return g},K8:function(){return H},i6:function(){return P},uy:function(){return M}});var i=n(60136),r=n(27277),o=n(93433),a=n(37762),s=n(15671),l=n(43144),c=n(73616),u=n(32377),d=n(36888),h=new Map;h.set("false",!1),h.set("true",!0),h.set("isMac",c.dz),h.set("isLinux",c.IJ),h.set("isWindows",c.ED),h.set("isWeb",c.$L),h.set("isMacNative",c.dz&&!c.$L),h.set("isEdge",c.un),h.set("isFirefox",c.vU),h.set("isChrome",c.i7),h.set("isSafari",c.G6);var f=Object.prototype.hasOwnProperty,p=function(){function e(){(0,s.Z)(this,e)}return(0,l.Z)(e,null,[{key:"has",value:function(e){return _.create(e)}},{key:"equals",value:function(e,t){return b.create(e,t)}},{key:"regex",value:function(e,t){return D.create(e,t)}},{key:"not",value:function(e){return k.create(e)}},{key:"and",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return R.create(t,null)}},{key:"or",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A.create(t,null,!0)}},{key:"deserialize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this._deserializeOrExpression(e,t)}},{key:"_deserializeOrExpression",value:function(e,t){var n=this,i=e.split("||");return A.create(i.map((function(e){return n._deserializeAndExpression(e,t)})),null,!0)}},{key:"_deserializeAndExpression",value:function(e,t){var n=this,i=e.split("&&");return R.create(i.map((function(e){return n._deserializeOne(e,t)})),null)}},{key:"_deserializeOne",value:function(e,t){if((e=e.trim()).indexOf("!=")>=0){var n=e.split("!=");return w.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("==")>=0){var i=e.split("==");return b.create(i[0].trim(),this._deserializeValue(i[1],t))}if(e.indexOf("=~")>=0){var r=e.split("=~");return D.create(r[0].trim(),this._deserializeRegexValue(r[1],t))}if(e.indexOf(" not in ")>=0){var o=e.split(" not in ");return S.create(o[0].trim(),o[1].trim())}if(e.indexOf(" in ")>=0){var a=e.split(" in ");return C.create(a[0].trim(),a[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(e)){var s=e.split(">=");return T.create(s[0].trim(),s[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(e)){var l=e.split(">");return E.create(l[0].trim(),l[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(e)){var c=e.split("<=");return I.create(c[0].trim(),c[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(e)){var u=e.split("<");return N.create(u[0].trim(),u[1].trim())}return/^\!\s*/.test(e)?k.create(e.substr(1).trim()):_.create(e)}},{key:"_deserializeValue",value:function(e,t){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;var n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e}},{key:"_deserializeRegexValue",value:function(e,t){if((0,u.m5)(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var n=e.indexOf("/"),i=e.lastIndexOf("/");if(n===i||n<0){if(t)throw new Error("bad regexp-value '".concat(e,"', missing /-enclosure"));return console.warn("bad regexp-value '".concat(e,"', missing /-enclosure")),null}var r=e.slice(n+1,i),o="i"===e[i+1]?"i":"";try{return new RegExp(r,o)}catch(a){if(t)throw new Error("bad regexp-value '".concat(e,"', parse error: ").concat(a));return console.warn("bad regexp-value '".concat(e,"', parse error: ").concat(a)),null}}}]),e}();function g(e,t){var n=e?e.substituteConstants():void 0,i=t?t.substituteConstants():void 0;return!n&&!i||!(!n||!i)&&n.equals(i)}function v(e,t){return e.cmp(t)}var m=function(){function e(){(0,s.Z)(this,e),this.type=0}return(0,l.Z)(e,[{key:"cmp",value:function(e){return this.type-e.type}},{key:"equals",value:function(e){return e.type===this.type}},{key:"substituteConstants",value:function(){return this}},{key:"evaluate",value:function(e){return!1}},{key:"serialize",value:function(){return"false"}},{key:"keys",value:function(){return[]}},{key:"negate",value:function(){return y.INSTANCE}}]),e}();m.INSTANCE=new m;var y=function(){function e(){(0,s.Z)(this,e),this.type=1}return(0,l.Z)(e,[{key:"cmp",value:function(e){return this.type-e.type}},{key:"equals",value:function(e){return e.type===this.type}},{key:"substituteConstants",value:function(){return this}},{key:"evaluate",value:function(e){return!0}},{key:"serialize",value:function(){return"true"}},{key:"keys",value:function(){return[]}},{key:"negate",value:function(){return m.INSTANCE}}]),e}();y.INSTANCE=new y;var _=function(){function e(t,n){(0,s.Z)(this,e),this.key=t,this.negated=n,this.type=2}return(0,l.Z)(e,[{key:"cmp",value:function(e){return e.type!==this.type?this.type-e.type:F(this.key,e.key)}},{key:"equals",value:function(e){return e.type===this.type&&this.key===e.key}},{key:"substituteConstants",value:function(){var e=h.get(this.key);return"boolean"===typeof e?e?y.INSTANCE:m.INSTANCE:this}},{key:"evaluate",value:function(e){return!!e.getValue(this.key)}},{key:"serialize",value:function(){return this.key}},{key:"keys",value:function(){return[this.key]}},{key:"negate",value:function(){return this.negated||(this.negated=k.create(this.key,this)),this.negated}}],[{key:"create",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=h.get(t);return"boolean"===typeof i?i?y.INSTANCE:m.INSTANCE:new e(t,n)}}]),e}(),b=function(){function e(t,n,i){(0,s.Z)(this,e),this.key=t,this.value=n,this.negated=i,this.type=4}return(0,l.Z)(e,[{key:"cmp",value:function(e){return e.type!==this.type?this.type-e.type:B(this.key,this.value,e.key,e.value)}},{key:"equals",value:function(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}},{key:"substituteConstants",value:function(){var e=h.get(this.key);if("boolean"===typeof e){var t=e?"true":"false";return this.value===t?y.INSTANCE:m.INSTANCE}return this}},{key:"evaluate",value:function(e){return e.getValue(this.key)==this.value}},{key:"serialize",value:function(){return"".concat(this.key," == '").concat(this.value,"'")}},{key:"keys",value:function(){return[this.key]}},{key:"negate",value:function(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}],[{key:"create",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("boolean"===typeof n)return n?_.create(t,i):k.create(t,i);var r=h.get(t);if("boolean"===typeof r){var o=r?"true":"false";return n===o?y.INSTANCE:m.INSTANCE}return new e(t,n,i)}}]),e}(),C=function(){function e(t,n){(0,s.Z)(this,e),this.key=t,this.valueKey=n,this.type=10,this.negated=null}return(0,l.Z)(e,[{key:"cmp",value:function(e){return e.type!==this.type?this.type-e.type:B(this.key,this.valueKey,e.key,e.valueKey)}},{key:"equals",value:function(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}},{key:"substituteConstants",value:function(){return this}},{key:"evaluate",value:function(e){var t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&f.call(t,n)}},{key:"serialize",value:function(){return"".concat(this.key," in '").concat(this.valueKey,"'")}},{key:"keys",value:function(){return[this.key,this.valueKey]}},{key:"negate",value:function(){return this.negated||(this.negated=S.create(this.key,this.valueKey)),this.negated}}],[{key:"create",value:function(t,n){return new e(t,n)}}]),e}(),S=function(){function e(t,n){(0,s.Z)(this,e),this.key=t,this.valueKey=n,this.type=11,this._negated=C.create(t,n)}return(0,l.Z)(e,[{key:"cmp",value:function(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}},{key:"equals",value:function(e){return e.type===this.type&&this._negated.equals(e._negated)}},{key:"substituteConstants",value:function(){return this}},{key:"evaluate",value:function(e){return!this._negated.evaluate(e)}},{key:"serialize",value:function(){return"".concat(this.key," not in '").concat(this.valueKey,"'")}},{key:"keys",value:function(){return this._negated.keys()}},{key:"negate",value:function(){return this._negated}}],[{key:"create",value:function(t,n){return new e(t,n)}}]),e}(),w=function(){function e(t,n,i){(0,s.Z)(this,e),this.key=t,this.value=n,this.negated=i,this.type=5}return(0,l.Z)(e,[{key:"cmp",value:function(e){return e.type!==this.type?this.type-e.type:B(this.key,this.value,e.key,e.value)}},{key:"equals",value:function(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}},{key:"substituteConstants",value:function(){var e=h.get(this.key);if("boolean"===typeof e){var t=e?"true":"false";return this.value===t?m.INSTANCE:y.INSTANCE}return this}},{key:"evaluate",value:function(e){return e.getValue(this.key)!=this.value}},{key:"serialize",value:function(){return"".concat(this.key," != '").concat(this.value,"'")}},{key:"keys",value:function(){return[this.key]}},{key:"negate",value:function(){return this.negated||(this.negated=b.create(this.key,this.value,this)),this.negated}}],[{key:"create",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("boolean"===typeof n)return n?k.create(t,i):_.create(t,i);var r=h.get(t);if("boolean"===typeof r){var o=r?"true":"false";return n===o?m.INSTANCE:y.INSTANCE}return new e(t,n,i)}}]),e}(),k=function(){function e(t,n){(0,s.Z)(this,e),this.key=t,this.negated=n,this.type=3}return(0,l.Z)(e,[{key:"cmp",value:function(e){return e.type!==this.type?this.type-e.type:F(this.key,e.key)}},{key:"equals",value:function(e){return e.type===this.type&&this.key===e.key}},{key:"substituteConstants",value:function(){var e=h.get(this.key);return"boolean"===typeof e?e?m.INSTANCE:y.INSTANCE:this}},{key:"evaluate",value:function(e){return!e.getValue(this.key)}},{key:"serialize",value:function(){return"!".concat(this.key)}},{key:"keys",value:function(){return[this.key]}},{key:"negate",value:function(){return this.negated||(this.negated=_.create(this.key,this)),this.negated}}],[{key:"create",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=h.get(t);return"boolean"===typeof i?i?m.INSTANCE:y.INSTANCE:new e(t,n)}}]),e}();function x(e,t){if("string"===typeof e){var n=parseFloat(e);isNaN(n)||(e=n)}return"string"===typeof e||"number"===typeof e?t(e):m.INSTANCE}var E=function(){function e(t,n,i){(0,s.Z)(this,e),this.key=t,this.value=n,this.negated=i,this.type=12}return(0,l.Z)(e,[{key:"cmp",value:function(e){return e.type!==this.type?this.type-e.type:B(this.key,this.value,e.key,e.value)}},{key:"equals",value:function(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}},{key:"substituteConstants",value:function(){return this}},{key:"evaluate",value:function(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}},{key:"serialize",value:function(){return"".concat(this.key," > ").concat(this.value)}},{key:"keys",value:function(){return[this.key]}},{key:"negate",value:function(){return this.negated||(this.negated=I.create(this.key,this.value,this)),this.negated}}],[{key:"create",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return x(n,(function(n){return new e(t,n,i)}))}}]),e}(),T=function(){function e(t,n,i){(0,s.Z)(this,e),this.key=t,this.value=n,this.negated=i,this.type=13}return(0,l.Z)(e,[{key:"cmp",value:function(e){return e.type!==this.type?this.type-e.type:B(this.key,this.value,e.key,e.value)}},{key:"equals",value:function(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}},{key:"substituteConstants",value:function(){return this}},{key:"evaluate",value:function(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}},{key:"serialize",value:function(){return"".concat(this.key," >= ").concat(this.value)}},{key:"keys",value:function(){return[this.key]}},{key:"negate",value:function(){return this.negated||(this.negated=N.create(this.key,this.value,this)),this.negated}}],[{key:"create",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return x(n,(function(n){return new e(t,n,i)}))}}]),e}(),N=function(){function e(t,n,i){(0,s.Z)(this,e),this.key=t,this.value=n,this.negated=i,this.type=14}return(0,l.Z)(e,[{key:"cmp",value:function(e){return e.type!==this.type?this.type-e.type:B(this.key,this.value,e.key,e.value)}},{key:"equals",value:function(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}},{key:"substituteConstants",value:function(){return this}},{key:"evaluate",value:function(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}},{key:"serialize",value:function(){return"".concat(this.key," < ").concat(this.value)}},{key:"keys",value:function(){return[this.key]}},{key:"negate",value:function(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}],[{key:"create",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return x(n,(function(n){return new e(t,n,i)}))}}]),e}(),I=function(){function e(t,n,i){(0,s.Z)(this,e),this.key=t,this.value=n,this.negated=i,this.type=15}return(0,l.Z)(e,[{key:"cmp",value:function(e){return e.type!==this.type?this.type-e.type:B(this.key,this.value,e.key,e.value)}},{key:"equals",value:function(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}},{key:"substituteConstants",value:function(){return this}},{key:"evaluate",value:function(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}},{key:"serialize",value:function(){return"".concat(this.key," <= ").concat(this.value)}},{key:"keys",value:function(){return[this.key]}},{key:"negate",value:function(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}],[{key:"create",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return x(n,(function(n){return new e(t,n,i)}))}}]),e}(),D=function(){function e(t,n){(0,s.Z)(this,e),this.key=t,this.regexp=n,this.type=7,this.negated=null}return(0,l.Z)(e,[{key:"cmp",value:function(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}},{key:"equals",value:function(e){if(e.type===this.type){var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}},{key:"substituteConstants",value:function(){return this}},{key:"evaluate",value:function(e){var t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}},{key:"serialize",value:function(){var e=this.regexp?"/".concat(this.regexp.source,"/").concat(this.regexp.ignoreCase?"i":""):"/invalid/";return"".concat(this.key," =~ ").concat(e)}},{key:"keys",value:function(){return[this.key]}},{key:"negate",value:function(){return this.negated||(this.negated=L.create(this)),this.negated}}],[{key:"create",value:function(t,n){return new e(t,n)}}]),e}(),L=function(){function e(t){(0,s.Z)(this,e),this._actual=t,this.type=8}return(0,l.Z)(e,[{key:"cmp",value:function(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}},{key:"equals",value:function(e){return e.type===this.type&&this._actual.equals(e._actual)}},{key:"substituteConstants",value:function(){return this}},{key:"evaluate",value:function(e){return!this._actual.evaluate(e)}},{key:"serialize",value:function(){throw new Error("Method not implemented.")}},{key:"keys",value:function(){return this._actual.keys()}},{key:"negate",value:function(){return this._actual}}],[{key:"create",value:function(t){return new e(t)}}]),e}();function O(e){for(var t=null,n=0,i=e.length;n<i;n++){var r=e[n].substituteConstants();if(e[n]!==r&&null===t){t=[];for(var o=0;o<n;o++)t[o]=e[o]}null!==t&&(t[n]=r)}return null===t?e:t}var R=function(){function e(t,n){(0,s.Z)(this,e),this.expr=t,this.negated=n,this.type=6}return(0,l.Z)(e,[{key:"cmp",value:function(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(var t=0,n=this.expr.length;t<n;t++){var i=v(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}},{key:"equals",value:function(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}},{key:"substituteConstants",value:function(){var t=O(this.expr);return t===this.expr?this:e.create(t,this.negated)}},{key:"evaluate",value:function(e){for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}},{key:"serialize",value:function(){return this.expr.map((function(e){return e.serialize()})).join(" && ")}},{key:"keys",value:function(){var e,t=[],n=(0,a.Z)(this.expr);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push.apply(t,(0,o.Z)(i.keys()))}}catch(r){n.e(r)}finally{n.f()}return t}},{key:"negate",value:function(){if(!this.negated){var e,t=[],n=(0,a.Z)(this.expr);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(i.negate())}}catch(r){n.e(r)}finally{n.f()}this.negated=A.create(t,this,!0)}return this.negated}}],[{key:"create",value:function(t,n){return e._normalizeArr(t,n)}},{key:"_normalizeArr",value:function(t,n){var i,r=[],s=!1,l=(0,a.Z)(t);try{for(l.s();!(i=l.n()).done;){var c=i.value;if(c)if(1!==c.type){if(0===c.type)return m.INSTANCE;6!==c.type?r.push(c):r.push.apply(r,(0,o.Z)(c.expr))}else s=!0}}catch(h){l.e(h)}finally{l.f()}if(0===r.length&&s)return y.INSTANCE;if(0!==r.length){if(1===r.length)return r[0];r.sort(v);for(var u=1;u<r.length;u++)r[u-1].equals(r[u])&&(r.splice(u,1),u--);if(1===r.length)return r[0];for(var d=function(){var t=r[r.length-1];if(9!==t.type)return"break";r.pop();var n=r.pop(),i=0===r.length,o=A.create(t.expr.map((function(t){return e.create([t,n],null)})),null,i);o&&(r.push(o),r.sort(v))};r.length>1;){if("break"===d())break}return 1===r.length?r[0]:new e(r,n)}}}]),e}(),A=function(){function e(t,n){(0,s.Z)(this,e),this.expr=t,this.negated=n,this.type=9}return(0,l.Z)(e,[{key:"cmp",value:function(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(var t=0,n=this.expr.length;t<n;t++){var i=v(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}},{key:"equals",value:function(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}},{key:"substituteConstants",value:function(){var t=O(this.expr);return t===this.expr?this:e.create(t,this.negated,!1)}},{key:"evaluate",value:function(e){for(var t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}},{key:"serialize",value:function(){return this.expr.map((function(e){return e.serialize()})).join(" || ")}},{key:"keys",value:function(){var e,t=[],n=(0,a.Z)(this.expr);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push.apply(t,(0,o.Z)(i.keys()))}}catch(r){n.e(r)}finally{n.f()}return t}},{key:"negate",value:function(){if(!this.negated){var t,n=[],i=(0,a.Z)(this.expr);try{for(i.s();!(t=i.n()).done;){var r=t.value;n.push(r.negate())}}catch(v){i.e(v)}finally{i.f()}for(;n.length>1;){var o,s=n.shift(),l=n.shift(),c=[],u=(0,a.Z)(z(s));try{for(u.s();!(o=u.n()).done;){var d,h=o.value,f=(0,a.Z)(z(l));try{for(f.s();!(d=f.n()).done;){var p=d.value;c.push(R.create([h,p],null))}}catch(v){f.e(v)}finally{f.f()}}}catch(v){u.e(v)}finally{u.f()}var g=0===n.length;n.unshift(e.create(c,null,g))}this.negated=n[0]}return this.negated}}],[{key:"create",value:function(t,n,i){return e._normalizeArr(t,n,i)}},{key:"_normalizeArr",value:function(t,n,i){var r=[],o=!1;if(t){for(var a=0,s=t.length;a<s;a++){var l=t[a];if(l)if(0!==l.type){if(1===l.type)return y.INSTANCE;9!==l.type?r.push(l):r=r.concat(l.expr)}else o=!0}if(0===r.length&&o)return m.INSTANCE;r.sort(v)}if(0!==r.length){if(1===r.length)return r[0];for(var c=1;c<r.length;c++)r[c-1].equals(r[c])&&(r.splice(c,1),c--);if(1===r.length)return r[0];if(i){for(var u=0;u<r.length;u++)for(var d=u+1;d<r.length;d++)H(r[u],r[d])&&(r.splice(d,1),d--);if(1===r.length)return r[0]}return new e(r,n)}}}]),e}(),M=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r){var o;return(0,s.Z)(this,n),(o=t.call(this,e,null))._defaultValue=i,"object"===typeof r?n._info.push(Object.assign(Object.assign({},r),{key:e})):!0!==r&&n._info.push({key:e,description:r,type:null!==i&&void 0!==i?typeof i:void 0}),o}return(0,l.Z)(n,[{key:"bindTo",value:function(e){return e.createKey(this.key,this._defaultValue)}},{key:"getValue",value:function(e){return e.getContextKeyValue(this.key)}},{key:"toNegated",value:function(){return this.negate()}},{key:"isEqualTo",value:function(e){return b.create(this.key,e)}}],[{key:"all",value:function(){return n._info.values()}}]),n}(_);M._info=[];var P=(0,d.yh)("contextKeyService"),Z="setContext";function F(e,t){return e<t?-1:e>t?1:0}function B(e,t,n,i){return e<n?-1:e>n?1:t<i?-1:t>i?1:0}function H(e,t){if(6===t.type&&9!==e.type&&6!==e.type){var n,i=(0,a.Z)(t.expr);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(e.equals(r))return!0}}catch(d){i.e(d)}finally{i.f()}}var o=z(e.negate()).concat(z(t));o.sort(v);for(var s=0;s<o.length;s++)for(var l=o[s].negate(),c=s+1;c<o.length;c++){var u=o[c];if(l.equals(u))return!0}return!1}function z(e){return 9===e.type?e.expr:[e]}},3058:function(e,t,n){"use strict";n.d(t,{cv:function(){return a},d0:function(){return s}});var i=n(73616),r=n(27722),o=n(34509),a=(new o.uy("isMac",i.dz,(0,r.NC)("isMac","Whether the operating system is macOS")),new o.uy("isLinux",i.IJ,(0,r.NC)("isLinux","Whether the operating system is Linux")),new o.uy("isWindows",i.ED,(0,r.NC)("isWindows","Whether the operating system is Windows"))),s=(new o.uy("isWeb",i.$L,(0,r.NC)("isWeb","Whether the platform is a web browser")),new o.uy("isMacNative",i.dz&&!i.$L,(0,r.NC)("isMacNative","Whether the operating system is macOS on a non-browser platform")),new o.uy("isIOS",i.gn,(0,r.NC)("isIOS","Whether the operating system is iOS")),new o.uy("isDevelopment",!1,!0),new o.uy("productQualityType","",(0,r.NC)("productQualityType","Quality type of VS Code")),"inputFocus");new o.uy(s,!1,(0,r.NC)("inputFocus","Whether keyboard focus is inside an input box"))},22468:function(e,t,n){"use strict";n.d(t,{i:function(){return o},u:function(){return r}});var i=n(36888),r=(0,i.yh)("contextViewService"),o=(0,i.yh)("contextMenuService")},21330:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var i=(0,n(36888).yh)("dialogService")},28395:function(e,t,n){"use strict";n.d(t,{Yb:function(){return R},Nq:function(){return A},iX:function(){return E}});var i=n(43144),r=n(15671),o=n(60136),a=n(27277),s=n(34582),l=n(11752),c=n(61120),u=n(81531),d=n(29110),h=n(33957),f=n(70176),p=n(2801),g=n(73097),v=(n(55189),n(27722)),m=v.NC("defaultLabel","input"),y=v.NC("label.preserveCaseToggle","Preserve Case"),_=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){return(0,r.Z)(this,n),t.call(this,{icon:p.lA.preserveCase,title:y+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}return(0,i.Z)(n)}(d.Z),b=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o,a){var s;(0,r.Z)(this,n),(s=t.call(this))._showOptionButtons=o,s.fixFocusOnOptionClickEnabled=!0,s.cachedOptionsWidth=0,s._onDidOptionChange=s._register(new g.Q5),s.onDidOptionChange=s._onDidOptionChange.event,s._onKeyDown=s._register(new g.Q5),s.onKeyDown=s._onKeyDown.event,s._onMouseDown=s._register(new g.Q5),s._onInput=s._register(new g.Q5),s._onKeyUp=s._register(new g.Q5),s._onPreserveCaseKeyDown=s._register(new g.Q5),s.onPreserveCaseKeyDown=s._onPreserveCaseKeyDown.event,s.contextViewProvider=i,s.placeholder=a.placeholder||"",s.validation=a.validation,s.label=a.label||m,s.inputActiveOptionBorder=a.inputActiveOptionBorder,s.inputActiveOptionForeground=a.inputActiveOptionForeground,s.inputActiveOptionBackground=a.inputActiveOptionBackground,s.inputBackground=a.inputBackground,s.inputForeground=a.inputForeground,s.inputBorder=a.inputBorder,s.inputValidationInfoBorder=a.inputValidationInfoBorder,s.inputValidationInfoBackground=a.inputValidationInfoBackground,s.inputValidationInfoForeground=a.inputValidationInfoForeground,s.inputValidationWarningBorder=a.inputValidationWarningBorder,s.inputValidationWarningBackground=a.inputValidationWarningBackground,s.inputValidationWarningForeground=a.inputValidationWarningForeground,s.inputValidationErrorBorder=a.inputValidationErrorBorder,s.inputValidationErrorBackground=a.inputValidationErrorBackground,s.inputValidationErrorForeground=a.inputValidationErrorForeground;var l=a.appendPreserveCaseLabel||"",c=a.history||[],d=!!a.flexibleHeight,f=!!a.flexibleWidth,p=a.flexibleMaxHeight;s.domNode=document.createElement("div"),s.domNode.classList.add("monaco-findInput"),s.inputBox=s._register(new h.p(s.domNode,s.contextViewProvider,{ariaLabel:s.label||"",placeholder:s.placeholder||"",validationOptions:{validation:s.validation},inputBackground:s.inputBackground,inputForeground:s.inputForeground,inputBorder:s.inputBorder,inputValidationInfoBackground:s.inputValidationInfoBackground,inputValidationInfoForeground:s.inputValidationInfoForeground,inputValidationInfoBorder:s.inputValidationInfoBorder,inputValidationWarningBackground:s.inputValidationWarningBackground,inputValidationWarningForeground:s.inputValidationWarningForeground,inputValidationWarningBorder:s.inputValidationWarningBorder,inputValidationErrorBackground:s.inputValidationErrorBackground,inputValidationErrorForeground:s.inputValidationErrorForeground,inputValidationErrorBorder:s.inputValidationErrorBorder,history:c,showHistoryHint:a.showHistoryHint,flexibleHeight:d,flexibleWidth:f,flexibleMaxHeight:p})),s.preserveCase=s._register(new _({appendTitle:l,isChecked:!1,inputActiveOptionBorder:s.inputActiveOptionBorder,inputActiveOptionForeground:s.inputActiveOptionForeground,inputActiveOptionBackground:s.inputActiveOptionBackground})),s._register(s.preserveCase.onChange((function(e){s._onDidOptionChange.fire(e),!e&&s.fixFocusOnOptionClickEnabled&&s.inputBox.focus(),s.validate()}))),s._register(s.preserveCase.onKeyDown((function(e){s._onPreserveCaseKeyDown.fire(e)}))),s._showOptionButtons?s.cachedOptionsWidth=s.preserveCase.width():s.cachedOptionsWidth=0;var v=[s.preserveCase.domNode];s.onkeydown(s.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=v.indexOf(document.activeElement);if(t>=0){var n=-1;e.equals(17)?n=(t+1)%v.length:e.equals(15)&&(n=0===t?v.length-1:t-1),e.equals(9)?(v[t].blur(),s.inputBox.focus()):n>=0&&v[n].focus(),u.EventHelper.stop(e,!0)}}}));var y=document.createElement("div");return y.className="controls",y.style.display=s._showOptionButtons?"block":"none",y.appendChild(s.preserveCase.domNode),s.domNode.appendChild(y),null===e||void 0===e||e.appendChild(s.domNode),s.onkeydown(s.inputBox.inputElement,(function(e){return s._onKeyDown.fire(e)})),s.onkeyup(s.inputBox.inputElement,(function(e){return s._onKeyUp.fire(e)})),s.oninput(s.inputBox.inputElement,(function(e){return s._onInput.fire()})),s.onmousedown(s.inputBox.inputElement,(function(e){return s._onMouseDown.fire(e)})),s}return(0,i.Z)(n,[{key:"enable",value:function(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}},{key:"disable",value:function(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}},{key:"setEnabled",value:function(e){e?this.enable():this.disable()}},{key:"style",value:function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}},{key:"applyStyles",value:function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}},{key:"select",value:function(){this.inputBox.select()}},{key:"focus",value:function(){this.inputBox.focus()}},{key:"getPreserveCase",value:function(){return this.preserveCase.checked}},{key:"setPreserveCase",value:function(e){this.preserveCase.checked=e}},{key:"focusOnPreserve",value:function(){this.preserveCase.focus()}},{key:"validate",value:function(){this.inputBox&&this.inputBox.validate()}},{key:"width",set:function(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}},{key:"dispose",value:function(){(0,l.Z)((0,c.Z)(n.prototype),"dispose",this).call(this)}}]),n}(f.$),C=n(34509),S=n(5850),w=n(11860),k=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},x=function(e,t){return function(n,i){t(n,i,e)}},E=new C.uy("suggestWidgetVisible",!1,(0,v.NC)("suggestWidgetVisible","Whether suggestion are visible")),T="historyNavigationWidgetFocus",N="historyNavigationForwardsEnabled",I="historyNavigationBackwardsEnabled",D=void 0,L=[];function O(e,t){if(L.includes(t))throw new Error("Cannot register the same widget multiple times");L.push(t);var n=new w.SL,i=n.add(e.createScoped(t.element)),r=new C.uy(T,!1).bindTo(i),o=new C.uy(N,!0).bindTo(i),a=new C.uy(I,!0).bindTo(i),s=function(){r.set(!0),D=t},l=function(){r.set(!1),D===t&&(D=void 0)};return t.element===document.activeElement&&s(),n.add(t.onDidFocus((function(){return s()}))),n.add(t.onDidBlur((function(){return l()}))),n.add((0,w.OF)((function(){L.splice(L.indexOf(t),1),l()}))),{scopedContextKeyService:i,historyNavigationForwardsEnablement:o,historyNavigationBackwardsEnablement:a,dispose:function(){n.dispose()}}}var R=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o,a){var s,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.Z)(this,n),(s=t.call(this,e,i,l,o))._register(O(a,s.inputBox)),s}return(0,i.Z)(n)}(s.V);R=k([x(3,C.i6)],R);var A=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o,a){var s,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.Z)(this,n),(s=t.call(this,e,i,l,o))._register(O(a,s.inputBox)),s}return(0,i.Z)(n)}(b);A=k([x(3,C.i6)],A),S.W.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:C.Ao.and(C.Ao.has(T),C.Ao.equals(I,!0),E.isEqualTo(!1)),primary:16,secondary:[528],handler:function(e){D&&D.showPreviousValue()}}),S.W.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:C.Ao.and(C.Ao.has(T),C.Ao.equals(N,!0),E.isEqualTo(!1)),primary:18,secondary:[530],handler:function(e){D&&D.showNextValue()}})},36730:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var i=n(43144),r=n(15671),o=(0,i.Z)((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,r.Z)(this,e),this.ctor=t,this.staticArguments=n,this.supportsDelayedInstantiation=i}))},77896:function(e,t,n){"use strict";n.d(t,{d:function(){return a},z:function(){return o}});var i=n(36730),r=[];function o(e,t,n){t instanceof i.M||(t=new i.M(t,[],n)),r.push([e,t])}function a(){return r}},36888:function(e,t,n){"use strict";var i;n.d(t,{I8:function(){return i},TG:function(){return r},yh:function(){return a}}),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]||[]}}(i||(i={}));var r=a("instantiationService");function o(e,t,n){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n}],t[i.DI_TARGET]=t)}function a(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);var t=function e(t,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");o(e,t,i)};return t.toString=function(){return e},i.serviceIds.set(e,t),t}},64919:function(e,t,n){"use strict";n.d(t,{y:function(){return a}});var i=n(29439),r=n(15671),o=n(43144),a=function(){function e(){(0,r.Z)(this,e),this._entries=new Map;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];for(var a=0,s=n;a<s.length;a++){var l=(0,i.Z)(s[a],2),c=l[0],u=l[1];this.set(c,u)}}return(0,o.Z)(e,[{key:"set",value:function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n}},{key:"get",value:function(e){return this._entries.get(e)}}]),e}()},21775:function(e,t,n){"use strict";n.d(t,{I:function(){return s}});var i=n(15671),r=n(43144),o=n(73097),a=n(69077),s={JSONContribution:"base.contributions.json"};var l=new(function(){function e(){(0,i.Z)(this,e),this._onDidChangeSchema=new o.Q5,this.schemasById={}}return(0,r.Z)(e,[{key:"registerSchema",value:function(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}},{key:"notifySchemaChanged",value:function(e){this._onDidChangeSchema.fire(e)}}]),e}());a.B.add(s.JSONContribution,l)},47569:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var i=(0,n(36888).yh)("keybindingService")},5850:function(e,t,n){"use strict";n.d(t,{W:function(){return c}});var i=n(15671),r=n(43144),o=n(94486),a=n(73616),s=n(11133),l=n(69077),c=new(function(){function e(){(0,i.Z)(this,e),this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return(0,r.Z)(e,[{key:"registerKeybindingRule",value:function(t){var n=e.bindToCurrentPlatform(t);if(n&&n.primary){var i=(0,o.gm)(n.primary,a.OS);i&&this._registerDefaultKeybinding(i,t.id,t.args,t.weight,0,t.when)}if(n&&Array.isArray(n.secondary))for(var r=0,s=n.secondary.length;r<s;r++){var l=n.secondary[r],c=(0,o.gm)(l,a.OS);c&&this._registerDefaultKeybinding(c,t.id,t.args,t.weight,-r-1,t.when)}}},{key:"registerCommandAndKeybindingRule",value:function(e){this.registerKeybindingRule(e),s.P0.registerCommand(e)}},{key:"_assertNoCtrlAlt",value:function(t,n){t.ctrlKey&&t.altKey&&!t.metaKey&&e._mightProduceChar(t.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",t," for ",n)}},{key:"_registerDefaultKeybinding",value:function(e,t,n,i,r,o){1===a.OS&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e.parts,command:t,commandArgs:n,when:o,weight1:i,weight2:r,extensionId:null,isBuiltinExtension:!1}),this._cachedMergedKeybindings=null}},{key:"getDefaultKeybindings",value:function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(u)),this._cachedMergedKeybindings.slice(0)}}],[{key:"bindToCurrentPlatform",value:function(e){if(1===a.OS){if(e&&e.win)return e.win}else if(2===a.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}},{key:"_mightProduceChar",value:function(e){return e>=21&&e<=30||(e>=31&&e<=56||(80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e))}}]),e}());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}l.B.add("platform.keybindingsRegistry",c)},38670:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var i=(0,n(36888).yh)("labelService")},39125:function(e,t,n){"use strict";n.d(t,{Lw:function(){return vt},XN:function(){return mt},ls:function(){return an},ev:function(){return Yt},CQ:function(){return bt},PS:function(){return Et},uJ:function(){return Nt}});var i=n(4942),r=n(29439),o=n(97326),a=n(11752),s=n(61120),l=n(60136),c=n(27277),u=n(15671),d=n(43144),h=n(81531),f=n(29671),p=n(82784),g=n(73097),v=n(11860),m=(n(26053),n(30816)),y=function(){function e(t,n){(0,u.Z)(this,e),this.renderer=t,this.modelProvider=n}return(0,d.Z)(e,[{key:"templateId",get:function(){return this.renderer.templateId}},{key:"renderTemplate",value:function(e){return{data:this.renderer.renderTemplate(e),disposable:v.JT.None}}},{key:"renderElement",value:function(e,t,n,i){var r=this;if(n.disposable&&n.disposable.dispose(),n.data){var o=this.modelProvider();if(o.isResolved(e))return this.renderer.renderElement(o.get(e),e,n.data,i);var a=new p.A,s=o.resolve(e,a.token);n.disposable={dispose:function(){return a.cancel()}},this.renderer.renderPlaceholder(e,n.data),s.then((function(t){return r.renderer.renderElement(t,e,n.data,i)}))}}},{key:"disposeTemplate",value:function(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}]),e}(),_=function(){function e(t,n){(0,u.Z)(this,e),this.modelProvider=t,this.accessibilityProvider=n}return(0,d.Z)(e,[{key:"getWidgetAriaLabel",value:function(){return this.accessibilityProvider.getWidgetAriaLabel()}},{key:"getAriaLabel",value:function(e){var t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}]),e}();function b(e,t){return Object.assign(Object.assign({},t),{accessibilityProvider:t.accessibilityProvider&&new _(e,t.accessibilityProvider)})}var C=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};(0,u.Z)(this,e);var s=function(){return o.model},l=r.map((function(e){return new y(e,s)}));this.list=new m.aV(t,n,i,l,b(s,a))}return(0,d.Z)(e,[{key:"updateOptions",value:function(e){this.list.updateOptions(e)}},{key:"getHTMLElement",value:function(){return this.list.getHTMLElement()}},{key:"onDidFocus",get:function(){return this.list.onDidFocus}},{key:"onDidDispose",get:function(){return this.list.onDidDispose}},{key:"onMouseDblClick",get:function(){var e=this;return g.ju.map(this.list.onMouseDblClick,(function(t){var n=t.element,i=t.index,r=t.browserEvent;return{element:void 0===n?void 0:e._model.get(n),index:i,browserEvent:r}}))}},{key:"onPointer",get:function(){var e=this;return g.ju.map(this.list.onPointer,(function(t){var n=t.element,i=t.index,r=t.browserEvent;return{element:void 0===n?void 0:e._model.get(n),index:i,browserEvent:r}}))}},{key:"onDidChangeSelection",get:function(){var e=this;return g.ju.map(this.list.onDidChangeSelection,(function(t){var n=t.elements,i=t.indexes,r=t.browserEvent;return{elements:n.map((function(t){return e._model.get(t)})),indexes:i,browserEvent:r}}))}},{key:"model",get:function(){return this._model},set:function(e){this._model=e,this.list.splice(0,this.list.length,(0,f.w6)(e.length))}},{key:"getFocus",value:function(){return this.list.getFocus()}},{key:"getSelection",value:function(){return this.list.getSelection()}},{key:"getSelectedElements",value:function(){var e=this;return this.getSelection().map((function(t){return e.model.get(t)}))}},{key:"style",value:function(e){this.list.style(e)}},{key:"dispose",value:function(){this.list.dispose()}}]),e}(),S=n(93433),w=n(37762),k=n(9344),x=function(){function e(t,n,i){(0,u.Z)(this,e),this.columns=t,this.getColumnSize=i,this.templateId=e.TemplateId,this.renderedTemplates=new Set;var r=new Map(n.map((function(e){return[e.templateId,e]})));this.renderers=[];var o,a=(0,w.Z)(t);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=r.get(s.templateId);if(!l)throw new Error("Table cell renderer for template id ".concat(s.templateId," not found."));this.renderers.push(l)}}catch(c){a.e(c)}finally{a.f()}}return(0,d.Z)(e,[{key:"renderTemplate",value:function(e){for(var t=(0,h.append)(e,(0,h.$)(".monaco-table-tr")),n=[],i=[],r=0;r<this.columns.length;r++){var o=this.renderers[r],a=(0,h.append)(t,(0,h.$)(".monaco-table-td",{"data-col-index":r}));a.style.width="".concat(this.getColumnSize(r),"px"),n.push(a),i.push(o.renderTemplate(a))}var s={container:e,cellContainers:n,cellTemplateData:i};return this.renderedTemplates.add(s),s}},{key:"renderElement",value:function(e,t,n,i){for(var r=0;r<this.columns.length;r++){var o=this.columns[r].project(e);this.renderers[r].renderElement(o,t,n.cellTemplateData[r],i)}}},{key:"disposeElement",value:function(e,t,n,i){for(var r=0;r<this.columns.length;r++){var o=this.renderers[r];if(o.disposeElement){var a=this.columns[r].project(e);o.disposeElement(a,t,n.cellTemplateData[r],i)}}}},{key:"disposeTemplate",value:function(e){for(var t=0;t<this.columns.length;t++){this.renderers[t].disposeTemplate(e.cellTemplateData[t])}(0,h.clearNode)(e.container),this.renderedTemplates.delete(e)}},{key:"layoutColumn",value:function(e,t){var n,i=(0,w.Z)(this.renderedTemplates);try{for(i.s();!(n=i.n()).done;){n.value.cellContainers[e].style.width="".concat(t,"px")}}catch(r){i.e(r)}finally{i.f()}}}]),e}();x.TemplateId="row";var E=function(){function e(t,n){(0,u.Z)(this,e),this.column=t,this.index=n,this._onDidLayout=new g.Q5,this.onDidLayout=this._onDidLayout.event,this.element=(0,h.$)(".monaco-table-th",{"data-col-index":n,title:t.tooltip},t.label)}return(0,d.Z)(e,[{key:"minimumSize",get:function(){var e;return null!==(e=this.column.minimumWidth)&&void 0!==e?e:120}},{key:"maximumSize",get:function(){var e;return null!==(e=this.column.maximumWidth)&&void 0!==e?e:Number.POSITIVE_INFINITY}},{key:"onDidChange",get:function(){var e;return null!==(e=this.column.onDidChangeWidthConstraints)&&void 0!==e?e:g.ju.None}},{key:"layout",value:function(e){this._onDidLayout.fire([this.index,e])}}]),e}(),T=function(){function e(t,n,i,o,a,s){var l=this;(0,u.Z)(this,e),this.virtualDelegate=i,this.domId="table_id_".concat(++e.InstanceCount),this.disposables=new v.SL,this.cachedWidth=0,this.cachedHeight=0,this.domNode=(0,h.append)(n,(0,h.$)(".monaco-table.".concat(this.domId)));var c=o.map((function(e,t){return new E(e,t)})),d={size:c.reduce((function(e,t){return e+t.column.weight}),0),views:c.map((function(e){return{size:e.column.weight,view:e}}))};this.splitview=this.disposables.add(new k.z(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:function(){return l.cachedHeight},descriptor:d})),this.splitview.el.style.height="".concat(i.headerRowHeight,"px"),this.splitview.el.style.lineHeight="".concat(i.headerRowHeight,"px");var f,p=new x(o,a,(function(e){return l.splitview.getViewSize(e)}));this.list=this.disposables.add(new m.aV(t,this.domNode,(f=i,{getHeight:function(e){return f.getHeight(e)},getTemplateId:function(){return x.TemplateId}}),[p],s)),g.ju.any.apply(g.ju,(0,S.Z)(c.map((function(e){return e.onDidLayout}))))((function(e){var t=(0,r.Z)(e,2),n=t[0],i=t[1];return p.layoutColumn(n,i)}),null,this.disposables),this.splitview.onDidSashReset((function(e){var t=o.reduce((function(e,t){return e+t.weight}),0),n=o[e].weight/t*l.cachedWidth;l.splitview.resizeView(e,n)}),null,this.disposables),this.styleElement=(0,h.createStyleSheet)(this.domNode),this.style({})}return(0,d.Z)(e,[{key:"onDidChangeFocus",get:function(){return this.list.onDidChangeFocus}},{key:"onDidChangeSelection",get:function(){return this.list.onDidChangeSelection}},{key:"onMouseDblClick",get:function(){return this.list.onMouseDblClick}},{key:"onPointer",get:function(){return this.list.onPointer}},{key:"onDidFocus",get:function(){return this.list.onDidFocus}},{key:"onDidDispose",get:function(){return this.list.onDidDispose}},{key:"updateOptions",value:function(e){this.list.updateOptions(e)}},{key:"splice",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.list.splice(e,t,n)}},{key:"getHTMLElement",value:function(){return this.domNode}},{key:"style",value:function(e){var t=[];t.push(".monaco-table.".concat(this.domId," > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ").concat(this.virtualDelegate.headerRowHeight+1,"px;\n\t\t\theight: calc(100% - ").concat(this.virtualDelegate.headerRowHeight,"px);\n\t\t}")),this.styleElement.textContent=t.join("\n"),this.list.style(e)}},{key:"getSelectedElements",value:function(){return this.list.getSelectedElements()}},{key:"getSelection",value:function(){return this.list.getSelection()}},{key:"getFocus",value:function(){return this.list.getFocus()}},{key:"dispose",value:function(){this.disposables.dispose()}}]),e}();T.InstanceCount=0;var N,I=n(74165),D=n(25425),L=n(33813),O=n(78644),R=n(34582),A=n(87808),M=n(29110),P=n(84506),Z=n(28664);!function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element",e[e.Filter=3]="Filter"}(N||(N={}));var F=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){return(0,u.Z)(this,n),t.call(this,"TreeError [".concat(e,"] ").concat(i))}return(0,d.Z)(n)}((0,Z.Z)(Error)),B=function(){function e(t){(0,u.Z)(this,e),this.fn=t,this._map=new WeakMap}return(0,d.Z)(e,[{key:"map",value:function(e){var t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}]),e}(),H=n(60022),z=n(7208),j=n(94016);function V(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function W(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function U(e){return"boolean"===typeof e.collapsible}var G=function(){function e(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,u.Z)(this,e),this.user=t,this.list=n,this.rootRef=[],this.eventBufferer=new g.E7,this._onDidChangeCollapseState=new g.Q5,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new g.Q5,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new g.Q5,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new H.vp(H.ne),this.collapseByDefault="undefined"!==typeof r.collapseByDefault&&r.collapseByDefault,this.filter=r.filter,this.autoExpandSingleChildren="undefined"!==typeof r.autoExpandSingleChildren&&r.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}return(0,d.Z)(e,[{key:"splice",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j.$.empty(),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(0===e.length)throw new F(this.user,"Invalid tree location");i.diffIdentityProvider?this.spliceSmart(i.diffIdentityProvider,e,t,n,i):this.spliceSimple(e,t,n,i)}},{key:"spliceSmart",value:function(e,t,n,i,r,o){var a,s=this;void 0===i&&(i=j.$.empty()),void 0===o&&(o=null!==(a=r.diffDepth)&&void 0!==a?a:0);var l=this.getParentNodeWithListIndex(t).parentNode;if(!l.lastDiffIds)return this.spliceSimple(t,n,i,r);var c=(0,S.Z)(i),u=t[t.length-1],d=new z.Hs({getElements:function(){return l.lastDiffIds}},{getElements:function(){return[].concat((0,S.Z)(l.children.slice(0,u)),(0,S.Z)(c),(0,S.Z)(l.children.slice(u+n))).map((function(t){return e.getId(t.element).toString()}))}}).ComputeDiff(!1);if(d.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,n,c,r);var h,f=t.slice(0,-1),p=function(t,n,i){if(o>0)for(var a=0;a<i;a++)t--,n--,s.spliceSmart(e,[].concat((0,S.Z)(f),[t,0]),Number.MAX_SAFE_INTEGER,c[n].children,r,o-1)},g=Math.min(l.children.length,u+n),v=c.length,m=(0,w.Z)(d.changes.sort((function(e,t){return t.originalStart-e.originalStart})));try{for(m.s();!(h=m.n()).done;){var y=h.value;p(g,v,g-(y.originalStart+y.originalLength)),g=y.originalStart,v=y.modifiedStart-u,this.spliceSimple([].concat((0,S.Z)(f),[g]),y.originalLength,j.$.slice(c,v,v+y.modifiedLength),r)}}catch(_){m.e(_)}finally{m.f()}p(g,v,g)}},{key:"spliceSimple",value:function(e,t){for(var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j.$.empty(),r=arguments.length>3?arguments[3]:void 0,o=r.onDidCreateNode,a=r.onDidDeleteNode,s=r.diffIdentityProvider,l=this.getParentNodeWithListIndex(e),c=l.parentNode,u=l.listIndex,d=l.revealed,h=l.visible,p=[],g=j.$.map(i,(function(e){return n.createTreeNode(e,c,c.visible?1:0,d,p,o)})),v=e[e.length-1],m=c.children.length>0,y=0,_=v;_>=0&&_<c.children.length;_--){var b=c.children[_];if(b.visible){y=b.visibleChildIndex;break}}var C,S=[],k=0,x=0,E=(0,w.Z)(g);try{for(E.s();!(C=E.n()).done;){var T=C.value;S.push(T),x+=T.renderNodeCount,T.visible&&(T.visibleChildIndex=y+k++)}}catch(B){E.e(B)}finally{E.f()}var N=(0,f.db)(c.children,v,t,S);s?c.lastDiffIds?(0,f.db)(c.lastDiffIds,v,t,S.map((function(e){return s.getId(e.element).toString()}))):c.lastDiffIds=c.children.map((function(e){return s.getId(e.element).toString()})):c.lastDiffIds=void 0;var I,D=0,L=(0,w.Z)(N);try{for(L.s();!(I=L.n()).done;){var O=I.value;O.visible&&D++}}catch(B){L.e(B)}finally{L.f()}if(0!==D)for(var R=v+S.length;R<c.children.length;R++){var A=c.children[R];A.visible&&(A.visibleChildIndex-=D)}if(c.visibleChildrenCount+=k-D,d&&h){var M=N.reduce((function(e,t){return e+(t.visible?t.renderNodeCount:0)}),0);this._updateAncestorsRenderNodeCount(c,x-M),this.list.splice(u,M,p)}if(N.length>0&&a){var P=function e(t){a(t),t.children.forEach(e)};N.forEach(P)}this._onDidSplice.fire({insertedNodes:S,deletedNodes:N});var Z=c.children.length>0;m!==Z&&this.setCollapsible(e.slice(0,-1),Z);for(var F=c;F;){if(2===F.visibility){this.refilterDelayer.trigger((function(){return n.refilter()}));break}F=F.parent}}},{key:"rerender",value:function(e){if(0===e.length)throw new F(this.user,"Invalid tree location");var t=this.getTreeNodeWithListIndex(e),n=t.node,i=t.listIndex,r=t.revealed;n.visible&&r&&this.list.splice(i,1,[n])}},{key:"has",value:function(e){return this.hasTreeNode(e)}},{key:"getListIndex",value:function(e){var t=this.getTreeNodeWithListIndex(e),n=t.listIndex,i=t.visible,r=t.revealed;return i&&r?n:-1}},{key:"getListRenderCount",value:function(e){return this.getTreeNode(e).renderNodeCount}},{key:"isCollapsible",value:function(e){return this.getTreeNode(e).collapsible}},{key:"setCollapsible",value:function(e,t){var n=this,i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsible);var r={collapsible:t};return this.eventBufferer.bufferEvents((function(){return n._setCollapseState(e,r)}))}},{key:"isCollapsed",value:function(e){return this.getTreeNode(e).collapsed}},{key:"setCollapsed",value:function(e,t,n){var i=this,r=this.getTreeNode(e);"undefined"===typeof t&&(t=!r.collapsed);var o={collapsed:t,recursive:n||!1};return this.eventBufferer.bufferEvents((function(){return i._setCollapseState(e,o)}))}},{key:"_setCollapseState",value:function(e,t){var n=this.getTreeNodeWithListIndex(e),i=n.node,r=n.listIndex,o=n.revealed,a=this._setListNodeCollapseState(i,r,o,t);if(i!==this.root&&this.autoExpandSingleChildren&&a&&!U(t)&&i.collapsible&&!i.collapsed&&!t.recursive){for(var s=-1,l=0;l<i.children.length;l++){if(i.children[l].visible){if(s>-1){s=-1;break}s=l}}s>-1&&this._setCollapseState([].concat((0,S.Z)(e),[s]),t)}return a}},{key:"_setListNodeCollapseState",value:function(e,t,n,i){var r=this._setNodeCollapseState(e,i,!1);if(!n||!e.visible||!r)return r;var o=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),s=o-(-1===t?0:1);return this.list.splice(t+1,s,a.slice(1)),r}},{key:"_setNodeCollapseState",value:function(e,t,n){var i;if(e===this.root?i=!1:(U(t)?(i=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(i=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):i=!1,i&&this._onDidChangeCollapseState.fire({node:e,deep:n})),!U(t)&&t.recursive){var r,o=(0,w.Z)(e.children);try{for(o.s();!(r=o.n()).done;){var a=r.value;i=this._setNodeCollapseState(a,t,!0)||i}}catch(s){o.e(s)}finally{o.f()}}return i}},{key:"expandTo",value:function(e){var t=this;this.eventBufferer.bufferEvents((function(){for(var n=t.getTreeNode(e);n.parent;)n=n.parent,e=e.slice(0,e.length-1),n.collapsed&&t._setCollapseState(e,{collapsed:!1,recursive:!1})}))}},{key:"refilter",value:function(){var e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}},{key:"createTreeNode",value:function(e,t,n,i,r,o){var a=this,s={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},l=this._filterNode(s,n);s.visibility=l,i&&r.push(s);var c,u=e.children||j.$.empty(),d=i&&0!==l&&!s.collapsed,h=j.$.map(u,(function(e){return a.createTreeNode(e,s,l,d,r,o)})),f=0,p=1,g=(0,w.Z)(h);try{for(g.s();!(c=g.n()).done;){var v=c.value;s.children.push(v),p+=v.renderNodeCount,v.visible&&(v.visibleChildIndex=f++)}}catch(m){g.e(m)}finally{g.f()}return s.collapsible=s.collapsible||s.children.length>0,s.visibleChildrenCount=f,s.visible=2===l?f>0:1===l,s.visible?s.collapsed||(s.renderNodeCount=p):(s.renderNodeCount=0,i&&r.pop()),null===o||void 0===o||o(s),s}},{key:"updateNodeAfterCollapseChange",value:function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterCollapseChange(e,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n}},{key:"_updateNodeAfterCollapseChange",value:function(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed){var n,i=(0,w.Z)(e.children);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.renderNodeCount+=this._updateNodeAfterCollapseChange(r,t)}}catch(o){i.e(o)}finally{i.f()}}return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}},{key:"updateNodeAfterFilterChange",value:function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n}},{key:"_updateNodeAfterFilterChange",value:function(e,t,n){var i,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e!==this.root){if(0===(i=this._filterNode(e,t)))return e.visible=!1,e.renderNodeCount=0,!1;r&&n.push(e)}var o=n.length;e.renderNodeCount=e===this.root?0:1;var a=!1;if(e.collapsed&&0===i)e.visibleChildrenCount=0;else{var s,l=0,c=(0,w.Z)(e.children);try{for(c.s();!(s=c.n()).done;){var u=s.value;a=this._updateNodeAfterFilterChange(u,i,n,r&&!e.collapsed)||a,u.visible&&(u.visibleChildIndex=l++)}}catch(d){c.e(d)}finally{c.f()}e.visibleChildrenCount=l}return e!==this.root&&(e.visible=2===i?a:1===i,e.visibility=i),e.visible?e.collapsed||(e.renderNodeCount+=n.length-o):(e.renderNodeCount=0,r&&n.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}},{key:"_updateAncestorsRenderNodeCount",value:function(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}},{key:"_filterNode",value:function(e,t){var n=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof n?(e.filterData=void 0,n?1:0):V(n)?(e.filterData=n.data,W(n.visibility)):(e.filterData=void 0,W(n))}},{key:"hasTreeNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root;if(!e||0===e.length)return!0;var n=(0,P.Z)(e),i=n[0],r=n.slice(1);return!(i<0||i>t.children.length)&&this.hasTreeNode(r,t.children[i])}},{key:"getTreeNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root;if(!e||0===e.length)return t;var n=(0,P.Z)(e),i=n[0],r=n.slice(1);if(i<0||i>t.children.length)throw new F(this.user,"Invalid tree location");return this.getTreeNode(r,t.children[i])}},{key:"getTreeNodeWithListIndex",value:function(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var t=this.getParentNodeWithListIndex(e),n=t.parentNode,i=t.listIndex,r=t.revealed,o=t.visible,a=e[e.length-1];if(a<0||a>n.children.length)throw new F(this.user,"Invalid tree location");var s=n.children[a];return{node:s,listIndex:i,revealed:r,visible:o&&s.visible}}},{key:"getParentNodeWithListIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=(0,P.Z)(e),a=o[0],s=o.slice(1);if(a<0||a>t.children.length)throw new F(this.user,"Invalid tree location");for(var l=0;l<a;l++)n+=t.children[l].renderNodeCount;return i=i&&!t.collapsed,r=r&&t.visible,0===s.length?{parentNode:t,listIndex:n,revealed:i,visible:r}:this.getParentNodeWithListIndex(s,t.children[a],n+1,i,r)}},{key:"getNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.getTreeNode(e)}},{key:"getNodeLocation",value:function(e){for(var t=[],n=e;n.parent;)t.push(n.parent.children.indexOf(n)),n=n.parent;return t.reverse()}},{key:"getParentNodeLocation",value:function(e){return 0===e.length?void 0:1===e.length?[]:(0,f.JH)(e)[0]}},{key:"getFirstElementChild",value:function(e){var t=this.getTreeNode(e);if(0!==t.children.length)return t.children[0].element}}]),e}(),K=n(18247),Y=n(2801),q=function(){function e(){(0,u.Z)(this,e),this.map=new Map}return(0,d.Z)(e,[{key:"add",value:function(e,t){var n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}},{key:"delete",value:function(e,t){var n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}},{key:"forEach",value:function(e,t){var n=this.map.get(e);n&&n.forEach(t)}}]),e}(),$=n(73160),X=n(53710),Q=n(85294),J=n(27722),ee=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},te=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,u.Z)(this,n),(i=t.call(this,e.elements.map((function(e){return e.element})))).data=e,i}return(0,d.Z)(n)}(A.kX);function ne(e){return e instanceof A.kX?new te(e):e}var ie=function(){function e(t,n){(0,u.Z)(this,e),this.modelProvider=t,this.dnd=n,this.autoExpandDisposable=v.JT.None}return(0,d.Z)(e,[{key:"getDragURI",value:function(e){return this.dnd.getDragURI(e.element)}},{key:"getDragLabel",value:function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})),t)}},{key:"onDragStart",value:function(e,t){var n,i;null===(i=(n=this.dnd).onDragStart)||void 0===i||i.call(n,ne(e),t)}},{key:"onDragOver",value:function(e,t,n,i){var r=this,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.dnd.onDragOver(ne(e),t&&t.element,n,i),s=this.autoExpandNode!==t;if(s&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return a;if(s&&"boolean"!==typeof a&&a.autoExpand&&(this.autoExpandDisposable=(0,H.Vg)((function(){var e=r.modelProvider(),n=e.getNodeLocation(t);e.isCollapsed(n)&&e.setCollapsed(n,!1),r.autoExpandNode=void 0}),500)),"boolean"===typeof a||!a.accept||"undefined"===typeof a.bubble||a.feedback){if(!o){var l="boolean"===typeof a?a:a.accept,c="boolean"===typeof a?void 0:a.effect;return{accept:l,effect:c,feedback:[n]}}return a}if(1===a.bubble){var u=this.modelProvider(),d=u.getNodeLocation(t),h=u.getParentNodeLocation(d),p=u.getNode(h),g=h&&u.getListIndex(h);return this.onDragOver(e,p,g,i,!1)}var v=this.modelProvider(),m=v.getNodeLocation(t),y=v.getListIndex(m),_=v.getListRenderCount(m);return Object.assign(Object.assign({},a),{feedback:(0,f.w6)(y,y+_)})}},{key:"drop",value:function(e,t,n,i){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(ne(e),t&&t.element,n,i)}},{key:"onDragEnd",value:function(e){var t,n;null===(n=(t=this.dnd).onDragEnd)||void 0===n||n.call(t,e)}}]),e}();function re(e,t){return t&&Object.assign(Object.assign({},t),{identityProvider:t.identityProvider&&{getId:function(e){return t.identityProvider.getId(e.element)}},dnd:t.dnd&&new ie(e,t.dnd),multipleSelectionController:t.multipleSelectionController&&{isSelectionSingleChangeEvent:function(e){return t.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},isSelectionRangeChangeEvent:function(e){return t.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))}},accessibilityProvider:t.accessibilityProvider&&Object.assign(Object.assign({},t.accessibilityProvider),{getSetSize:function(t){var n=e(),i=n.getNodeLocation(t),r=n.getParentNodeLocation(i);return n.getNode(r).visibleChildrenCount},getPosInSet:function(e){return e.visibleChildIndex+1},isChecked:t.accessibilityProvider&&t.accessibilityProvider.isChecked?function(e){return t.accessibilityProvider.isChecked(e.element)}:void 0,getRole:t.accessibilityProvider&&t.accessibilityProvider.getRole?function(e){return t.accessibilityProvider.getRole(e.element)}:function(){return"treeitem"},getAriaLabel:function(e){return t.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel:function(){return t.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:t.accessibilityProvider&&t.accessibilityProvider.getWidgetRole?function(){return t.accessibilityProvider.getWidgetRole()}:function(){return"tree"},getAriaLevel:t.accessibilityProvider&&t.accessibilityProvider.getAriaLevel?function(e){return t.accessibilityProvider.getAriaLevel(e.element)}:function(e){return e.depth},getActiveDescendantId:t.accessibilityProvider.getActiveDescendantId&&function(e){return t.accessibilityProvider.getActiveDescendantId(e.element)}}),keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},t.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(e){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}})})}var oe,ae=function(){function e(t){(0,u.Z)(this,e),this.delegate=t}return(0,d.Z)(e,[{key:"getHeight",value:function(e){return this.delegate.getHeight(e.element)}},{key:"getTemplateId",value:function(e){return this.delegate.getTemplateId(e.element)}},{key:"hasDynamicHeight",value:function(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}},{key:"setDynamicHeight",value:function(e,t){var n,i;null===(i=(n=this.delegate).setDynamicHeight)||void 0===i||i.call(n,e.element,t)}}]),e}();!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(oe||(oe={}));var se=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,u.Z)(this,e),this._elements=i,this.disposables=new v.SL,this.onDidChange=g.ju.forEach(t,(function(e){return n._elements=e}),this.disposables)}return(0,d.Z)(e,[{key:"elements",get:function(){return this._elements}},{key:"dispose",value:function(){this.disposables.dispose()}}]),e}(),le=function(){function e(t,n,i,r){var o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};(0,u.Z)(this,e),this.renderer=t,this.modelProvider=n,this.activeNodes=r,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=e.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new q,this.activeIndentNodes=new Set,this.indentGuidesDisposable=v.JT.None,this.disposables=new v.SL,this.templateId=t.templateId,this.updateOptions(a),g.ju.map(i,(function(e){return e.node}))(this.onDidChangeNodeTwistieState,this,this.disposables),null===(o=t.onDidChangeTwistieState)||void 0===o||o.call(t,this.onDidChangeTwistieState,this,this.disposables)}return(0,d.Z)(e,[{key:"updateOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"!==typeof e.indent&&(this.indent=(0,X.uZ)(e.indent,0,40)),"undefined"!==typeof e.renderIndentGuides){var t=e.renderIndentGuides!==oe.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){var n=new v.SL;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,n),this.indentGuidesDisposable=n,this._onDidChangeActiveNodes(this.activeNodes.elements)}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}},{key:"renderTemplate",value:function(e){var t=(0,h.append)(e,(0,h.$)(".monaco-tl-row")),n=(0,h.append)(t,(0,h.$)(".monaco-tl-indent")),i=(0,h.append)(t,(0,h.$)(".monaco-tl-twistie")),r=(0,h.append)(t,(0,h.$)(".monaco-tl-contents")),o=this.renderer.renderTemplate(r);return{container:e,indent:n,twistie:i,indentGuidesDisposable:v.JT.None,templateData:o}}},{key:"renderElement",value:function(t,n,i,r){"number"===typeof r&&(this.renderedNodes.set(t,{templateData:i,height:r}),this.renderedElements.set(t.element,t));var o=e.DefaultIndent+(t.depth-1)*this.indent;i.twistie.style.paddingLeft="".concat(o,"px"),i.indent.style.width="".concat(o+this.indent-16,"px"),this.renderTwistie(t,i),"number"===typeof r&&this.renderIndentGuides(t,i),this.renderer.renderElement(t,n,i.templateData,r)}},{key:"disposeElement",value:function(e,t,n,i){var r,o;n.indentGuidesDisposable.dispose(),null===(o=(r=this.renderer).disposeElement)||void 0===o||o.call(r,e,t,n.templateData,i),"number"===typeof i&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}},{key:"disposeTemplate",value:function(e){this.renderer.disposeTemplate(e.templateData)}},{key:"onDidChangeTwistieState",value:function(e){var t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}},{key:"onDidChangeNodeTwistieState",value:function(e){var t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}},{key:"renderTwistie",value:function(e,t){var n;(n=t.twistie.classList).remove.apply(n,(0,S.Z)(Y.lA.treeItemExpanded.classNamesArray));var i=!1;if(this.renderer.renderTwistie&&(i=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)){var r;if(!i)(r=t.twistie.classList).add.apply(r,(0,S.Z)(Y.lA.treeItemExpanded.classNamesArray));t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)}else t.twistie.classList.remove("collapsible","collapsed");e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}},{key:"renderIndentGuides",value:function(e,t){var n=this;if((0,h.clearNode)(t.indent),t.indentGuidesDisposable.dispose(),this.shouldRenderIndentGuides){for(var i=new v.SL,r=this.modelProvider(),o=e,a=function(){var e=r.getNodeLocation(o),a=r.getParentNodeLocation(e);if(!a)return"break";var s=r.getNode(a),l=(0,h.$)(".indent-guide",{style:"width: ".concat(n.indent,"px")});n.activeIndentNodes.has(s)&&l.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(l):t.indent.insertBefore(l,t.indent.firstElementChild),n.renderedIndentGuides.add(s,l),i.add((0,v.OF)((function(){return n.renderedIndentGuides.delete(s,l)}))),o=s};;){if("break"===a())break}t.indentGuidesDisposable=i}}},{key:"_onDidChangeActiveNodes",value:function(e){var t=this;if(this.shouldRenderIndentGuides){var n=new Set,i=this.modelProvider();e.forEach((function(e){var t=i.getNodeLocation(e);try{var r=i.getParentNodeLocation(t);e.collapsible&&e.children.length>0&&!e.collapsed?n.add(e):r&&n.add(i.getNode(r))}catch(o){}})),this.activeIndentNodes.forEach((function(e){n.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return e.classList.remove("active")}))})),n.forEach((function(e){t.activeIndentNodes.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return e.classList.add("active")}))})),this.activeIndentNodes=n}}},{key:"dispose",value:function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,v.B9)(this.disposables)}}]),e}();le.DefaultIndent=8;var ce,ue=function(){function e(t,n,i){(0,u.Z)(this,e),this.tree=t,this.keyboardNavigationLabelProvider=n,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new v.SL,t.onWillRefilter(this.reset,this,this.disposables)}return(0,d.Z)(e,[{key:"totalCount",get:function(){return this._totalCount}},{key:"matchCount",get:function(){return this._matchCount}},{key:"filter",value:function(e,t){var n=1;if(this._filter){var i=this._filter.filter(e,t);if(0===(n="boolean"===typeof i?i?1:0:V(i)?W(i.visibility):i))return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:$.CL.Default,visibility:n};var r,o=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),a=Array.isArray(o)?o:[o],s=(0,w.Z)(a);try{for(s.s();!(r=s.n()).done;){var l=r.value,c=l&&l.toString();if("undefined"===typeof c)return{data:$.CL.Default,visibility:n};var u=(0,$.EW)(this._pattern,this._lowercasePattern,0,c,c.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(u)return this._matchCount++,1===a.length?{data:u,visibility:n}:{data:{label:c,score:u},visibility:n}}}catch(d){s.e(d)}finally{s.f()}return this.tree.findMode===ce.Filter?2:{data:$.CL.Default,visibility:n}}},{key:"reset",value:function(){this._totalCount=0,this._matchCount=0}},{key:"dispose",value:function(){(0,v.B9)(this.disposables)}}]),e}(),de=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,u.Z)(this,n),t.call(this,{icon:Y.lA.filter,title:(0,J.NC)("filter","Filter"),isChecked:null!==(i=null===e||void 0===e?void 0:e.isChecked)&&void 0!==i&&i,inputActiveOptionBorder:null===e||void 0===e?void 0:e.inputActiveOptionBorder,inputActiveOptionForeground:null===e||void 0===e?void 0:e.inputActiveOptionForeground,inputActiveOptionBackground:null===e||void 0===e?void 0:e.inputActiveOptionBackground})}return(0,d.Z)(n)}(M.Z);!function(e){e[e.Highlight=0]="Highlight",e[e.Filter=1]="Filter"}(ce||(ce={}));v.JT;var he=function(){function e(t,n,i,r,o){var a;(0,u.Z)(this,e),this.tree=t,this.view=i,this.filter=r,this.contextViewProvider=o,this._pattern="",this.width=0,this._onDidChangeMode=new g.Q5,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangePattern=new g.Q5,this._onDidChangeOpenState=new g.Q5,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new v.SL,this.disposables=new v.SL,this._mode=null!==(a=t.options.defaultFindMode)&&void 0!==a?a:ce.Highlight,n.onDidSplice(this.onDidSpliceModel,this,this.disposables)}return(0,d.Z)(e,[{key:"pattern",get:function(){return this._pattern}},{key:"mode",get:function(){return this._mode},set:function(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}},{key:"onDidSpliceModel",value:function(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}},{key:"render",value:function(){var e,t,n=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&n?null===(e=this.widget)||void 0===e||e.showMessage({type:2,content:(0,J.NC)("not found","No elements found.")}):null===(t=this.widget)||void 0===t||t.clearMessage()}},{key:"shouldAllowFocus",value:function(e){return!this.widget||!this.pattern||this._mode===ce.Filter||(this.filter.totalCount>0&&this.filter.matchCount<=1||!$.CL.isDefault(e.filterData))}},{key:"style",value:function(e){var t;this.styles=e,null===(t=this.widget)||void 0===t||t.style(e)}},{key:"layout",value:function(e){var t;this.width=e,null===(t=this.widget)||void 0===t||t.layout(e)}},{key:"dispose",value:function(){this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}]),e}();function fe(e){var t=N.Unknown;return(0,h.hasParentWithClass)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=N.Twistie:(0,h.hasParentWithClass)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=N.Element:(0,h.hasParentWithClass)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=N.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function pe(e,t){t(e),e.children.forEach((function(e){return pe(e,t)}))}var ge=function(){function e(t,n){(0,u.Z)(this,e),this.getFirstViewElementWithTrait=t,this.identityProvider=n,this.nodes=[],this._onDidChange=new g.Q5,this.onDidChange=this._onDidChange.event}return(0,d.Z)(e,[{key:"nodeSet",get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}},{key:"set",value:function(e,t){!(null===t||void 0===t?void 0:t.__forceEvent)&&(0,f.fS)(this.nodes,e)||this._set(e,!1,t)}},{key:"_set",value:function(e,t,n){if(this.nodes=(0,S.Z)(e),this.elements=void 0,this._nodeSet=void 0,!t){var i=this;this._onDidChange.fire({get elements(){return i.get()},browserEvent:n})}}},{key:"get",value:function(){return this.elements||(this.elements=this.nodes.map((function(e){return e.element}))),(0,S.Z)(this.elements)}},{key:"getNodes",value:function(){return this.nodes}},{key:"has",value:function(e){return this.nodeSet.has(e)}},{key:"onDidModelSplice",value:function(e){var t=this,n=e.insertedNodes,i=e.deletedNodes;if(!this.identityProvider){var r=this.createNodeSet(),o=function(e){return r.delete(e)};return i.forEach((function(e){return pe(e,o)})),void this.set((0,S.Z)(r.values()))}var a=new Set,s=function(e){return a.add(t.identityProvider.getId(e.element).toString())};i.forEach((function(e){return pe(e,s)}));var l=new Map,c=function(e){return l.set(t.identityProvider.getId(e.element).toString(),e)};n.forEach((function(e){return pe(e,c)}));var u,d=[],h=(0,w.Z)(this.nodes);try{for(h.s();!(u=h.n()).done;){var f=u.value,p=this.identityProvider.getId(f.element).toString();if(a.has(p)){var g=l.get(p);g&&d.push(g)}else d.push(f)}}catch(m){h.e(m)}finally{h.f()}if(this.nodes.length>0&&0===d.length){var v=this.getFirstViewElementWithTrait();v&&d.push(v)}this._set(d,!0)}},{key:"createNodeSet",value:function(){var e,t=new Set,n=(0,w.Z)(this.nodes);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.add(i)}}catch(r){n.e(r)}finally{n.f()}return t}}]),e}(),ve=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){var r;return(0,u.Z)(this,n),(r=t.call(this,e)).tree=i,r}return(0,d.Z)(n,[{key:"onViewPointer",value:function(e){if(!((0,m.iK)(e.browserEvent.target)||(0,m.cK)(e.browserEvent.target)||(0,m.hD)(e.browserEvent.target))){var t=e.element;if(!t)return(0,a.Z)((0,s.Z)(n.prototype),"onViewPointer",this).call(this,e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return(0,a.Z)((0,s.Z)(n.prototype),"onViewPointer",this).call(this,e);var i=e.browserEvent.target,r=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,o=!1;if((o="function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick)&&!r&&2!==e.browserEvent.detail)return(0,a.Z)((0,s.Z)(n.prototype),"onViewPointer",this).call(this,e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return(0,a.Z)((0,s.Z)(n.prototype),"onViewPointer",this).call(this,e);if(t.collapsible){var l=this.tree.model,c=l.getNodeLocation(t),u=e.browserEvent.altKey;if(this.tree.setFocus([c]),l.setCollapsed(c,void 0,u),o&&r)return}(0,a.Z)((0,s.Z)(n.prototype),"onViewPointer",this).call(this,e)}}},{key:"onDoubleClick",value:function(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&(0,a.Z)((0,s.Z)(n.prototype),"onDoubleClick",this).call(this,e)}}]),n}(m.sx),me=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o,a,s,l,c){var d;return(0,u.Z)(this,n),(d=t.call(this,e,i,r,o,c)).focusTrait=a,d.selectionTrait=s,d.anchorTrait=l,d}return(0,d.Z)(n,[{key:"createMouseController",value:function(e){return new ve(this,e.tree)}},{key:"splice",value:function(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if((0,a.Z)((0,s.Z)(n.prototype),"splice",this).call(this,e,t,r),0!==r.length){var o,l=[],c=[];r.forEach((function(t,n){i.focusTrait.has(t)&&l.push(e+n),i.selectionTrait.has(t)&&c.push(e+n),i.anchorTrait.has(t)&&(o=e+n)})),l.length>0&&(0,a.Z)((0,s.Z)(n.prototype),"setFocus",this).call(this,(0,f.EB)([].concat((0,S.Z)((0,a.Z)((0,s.Z)(n.prototype),"getFocus",this).call(this)),l))),c.length>0&&(0,a.Z)((0,s.Z)(n.prototype),"setSelection",this).call(this,(0,f.EB)([].concat((0,S.Z)((0,a.Z)((0,s.Z)(n.prototype),"getSelection",this).call(this)),c))),"number"===typeof o&&(0,a.Z)((0,s.Z)(n.prototype),"setAnchor",this).call(this,o)}}},{key:"setFocus",value:function(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,a.Z)((0,s.Z)(n.prototype),"setFocus",this).call(this,e,t),r||this.focusTrait.set(e.map((function(e){return i.element(e)})),t)}},{key:"setSelection",value:function(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,a.Z)((0,s.Z)(n.prototype),"setSelection",this).call(this,e,t),r||this.selectionTrait.set(e.map((function(e){return i.element(e)})),t)}},{key:"setAnchor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.Z)((0,s.Z)(n.prototype),"setAnchor",this).call(this,e),t||("undefined"===typeof e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}]),n}(m.aV),ye=function(){function e(t,n,i,r){var o,a=this,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};(0,u.Z)(this,e),this._user=t,this._options=s,this.eventBufferer=new g.E7,this.onDidChangeFindOpenState=g.ju.None,this.disposables=new v.SL,this._onWillRefilter=new g.Q5,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new g.Q5;var l=new ae(i),c=new g.ZD,d=new g.ZD,f=this.disposables.add(new se(d.event));this.renderers=r.map((function(e){return new le(e,(function(){return a.model}),c.event,f,s)}));var p,y,_=(0,w.Z)(this.renderers);try{for(_.s();!(p=_.n()).done;){var b=p.value;this.disposables.add(b)}}catch(x){_.e(x)}finally{_.f()}s.keyboardNavigationLabelProvider&&(y=new ue(this,s.keyboardNavigationLabelProvider,s.filter),s=Object.assign(Object.assign({},s),{filter:y}),this.disposables.add(y)),this.focus=new ge((function(){return a.view.getFocusedElements()[0]}),s.identityProvider),this.selection=new ge((function(){return a.view.getSelectedElements()[0]}),s.identityProvider),this.anchor=new ge((function(){return a.view.getAnchorElement()}),s.identityProvider),this.view=new me(t,n,l,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},re((function(){return a.model}),s)),{tree:this})),this.model=this.createModel(t,this.view,s),c.input=this.model.onDidChangeCollapseState;var C=g.ju.forEach(this.model.onDidSplice,(function(e){a.eventBufferer.bufferEvents((function(){a.focus.onDidModelSplice(e),a.selection.onDidModelSplice(e)}))}),this.disposables);if(C((function(){return null}),null,this.disposables),d.input=g.ju.chain(g.ju.any(C,this.focus.onDidChange,this.selection.onDidChange)).debounce((function(){return null}),0).map((function(){var e,t=new Set,n=(0,w.Z)(a.focus.getNodes());try{for(n.s();!(e=n.n()).done;){var i=e.value;t.add(i)}}catch(x){n.e(x)}finally{n.f()}var r,o=(0,w.Z)(a.selection.getNodes());try{for(o.s();!(r=o.n()).done;){var s=r.value;t.add(s)}}catch(x){o.e(x)}finally{o.f()}return(0,S.Z)(t.values())})).event,!1!==s.keyboardSupport){var k=g.ju.chain(this.view.onKeyDown).filter((function(e){return!(0,m.cK)(e.target)})).map((function(e){return new L.y(e)}));k.filter((function(e){return 15===e.keyCode})).on(this.onLeftArrow,this,this.disposables),k.filter((function(e){return 17===e.keyCode})).on(this.onRightArrow,this,this.disposables),k.filter((function(e){return 10===e.keyCode})).on(this.onSpace,this,this.disposables)}(null===(o=s.findWidgetEnabled)||void 0===o||o)&&s.keyboardNavigationLabelProvider&&s.contextViewProvider?(this.findController=new he(this,this.model,this.view,y,s.contextViewProvider),this.focusNavigationFilter=function(e){return a.findController.shouldAllowFocus(e)},this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode):this.onDidChangeFindMode=g.ju.None,this.styleElement=(0,h.createStyleSheet)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===oe.Always)}return(0,d.Z)(e,[{key:"onDidChangeFocus",get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}},{key:"onDidChangeSelection",get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}},{key:"onMouseDblClick",get:function(){return g.ju.filter(g.ju.map(this.view.onMouseDblClick,fe),(function(e){return e.target!==N.Filter}))}},{key:"onPointer",get:function(){return g.ju.map(this.view.onPointer,fe)}},{key:"onDidFocus",get:function(){return this.view.onDidFocus}},{key:"onDidChangeModel",get:function(){return g.ju.signal(this.model.onDidSplice)}},{key:"onDidChangeCollapseState",get:function(){return this.model.onDidChangeCollapseState}},{key:"findMode",get:function(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.mode)&&void 0!==t?t:ce.Highlight},set:function(e){this.findController&&(this.findController.mode=e)}},{key:"expandOnDoubleClick",get:function(){return"undefined"===typeof this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}},{key:"expandOnlyOnTwistieClick",get:function(){return"undefined"===typeof this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}},{key:"onDidDispose",get:function(){return this.view.onDidDispose}},{key:"updateOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._options=Object.assign(Object.assign({},this._options),e);var t,n=(0,w.Z)(this.renderers);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.updateOptions(e)}}catch(r){n.e(r)}finally{n.f()}this.view.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===oe.Always)}},{key:"options",get:function(){return this._options}},{key:"getHTMLElement",value:function(){return this.view.getHTMLElement()}},{key:"scrollTop",get:function(){return this.view.scrollTop},set:function(e){this.view.scrollTop=e}},{key:"domFocus",value:function(){this.view.domFocus()}},{key:"layout",value:function(e,t){var n;this.view.layout(e,t),(0,Q.hj)(t)&&(null===(n=this.findController)||void 0===n||n.layout(t))}},{key:"style",value:function(e){var t,n=".".concat(this.view.domId),i=[];e.treeIndentGuidesStroke&&(i.push(".monaco-list".concat(n,":hover .monaco-tl-indent > .indent-guide, .monaco-list").concat(n,".always .monaco-tl-indent > .indent-guide { border-color: ").concat(e.treeIndentGuidesStroke.transparent(.4),"; }")),i.push(".monaco-list".concat(n," .monaco-tl-indent > .indent-guide.active { border-color: ").concat(e.treeIndentGuidesStroke,"; }"))),this.styleElement.textContent=i.join("\n"),null===(t=this.findController)||void 0===t||t.style(e),this.view.style(e)}},{key:"getParentElement",value:function(e){var t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}},{key:"getFirstElementChild",value:function(e){return this.model.getFirstElementChild(e)}},{key:"getNode",value:function(e){return this.model.getNode(e)}},{key:"collapse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.model.setCollapsed(e,!0,t)}},{key:"expand",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.model.setCollapsed(e,!1,t)}},{key:"isCollapsible",value:function(e){return this.model.isCollapsible(e)}},{key:"setCollapsible",value:function(e,t){return this.model.setCollapsible(e,t)}},{key:"isCollapsed",value:function(e){return this.model.isCollapsed(e)}},{key:"refilter",value:function(){this._onWillRefilter.fire(void 0),this.model.refilter()}},{key:"setSelection",value:function(e,t){var n=this,i=e.map((function(e){return n.model.getNode(e)}));this.selection.set(i,t);var r=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return e>-1}));this.view.setSelection(r,t,!0)}},{key:"getSelection",value:function(){return this.selection.get()}},{key:"setFocus",value:function(e,t){var n=this,i=e.map((function(e){return n.model.getNode(e)}));this.focus.set(i,t);var r=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return e>-1}));this.view.setFocus(r,t,!0)}},{key:"getFocus",value:function(){return this.focus.get()}},{key:"reveal",value:function(e,t){this.model.expandTo(e);var n=this.model.getListIndex(e);-1!==n&&this.view.reveal(n,t)}},{key:"onLeftArrow",value:function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n);if(!this.model.setCollapsed(i,!0)){var r=this.model.getParentNodeLocation(i);if(!r)return;var o=this.model.getListIndex(r);this.view.reveal(o),this.view.setFocus([o])}}}},{key:"onRightArrow",value:function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n);if(!this.model.setCollapsed(i,!1)){if(!n.children.some((function(e){return e.visible})))return;var o=this.view.getFocus(),a=(0,r.Z)(o,1)[0]+1;this.view.reveal(a),this.view.setFocus([a])}}}},{key:"onSpace",value:function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n),r=e.browserEvent.altKey;this.model.setCollapsed(i,void 0,r)}}},{key:"dispose",value:function(){(0,v.B9)(this.disposables),this.view.dispose()}}]),e}(),_e=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,u.Z)(this,e),this.user=t,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new G(t,n,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:function(e,t){return i.sorter.compare(e.element,t.element)}}),this.identityProvider=i.identityProvider}return(0,d.Z)(e,[{key:"setChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.$.empty(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getElementLocation(e);this._setChildren(i,this.preserveCollapseState(t),n)}},{key:"_setChildren",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.$.empty(),i=arguments.length>2?arguments[2]:void 0,r=new Set,o=new Set,a=function(e){var n;if(null!==e.element){var a=e;if(r.add(a.element),t.nodes.set(a.element,a),t.identityProvider){var s=t.identityProvider.getId(a.element).toString();o.add(s),t.nodesByIdentity.set(s,a)}null===(n=i.onDidCreateNode)||void 0===n||n.call(i,a)}},s=function(e){var n;if(null!==e.element){var a=e;if(r.has(a.element)||t.nodes.delete(a.element),t.identityProvider){var s=t.identityProvider.getId(a.element).toString();o.has(s)||t.nodesByIdentity.delete(s)}null===(n=i.onDidDeleteNode)||void 0===n||n.call(i,a)}};this.model.splice([].concat((0,S.Z)(e),[0]),Number.MAX_VALUE,n,Object.assign(Object.assign({},i),{onDidCreateNode:a,onDidDeleteNode:s}))}},{key:"preserveCollapseState",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j.$.empty();return this.sorter&&(t=(0,S.Z)(t).sort(this.sorter.compare.bind(this.sorter))),j.$.map(t,(function(t){var n=e.nodes.get(t.element);if(!n&&e.identityProvider){var i=e.identityProvider.getId(t.element).toString();n=e.nodesByIdentity.get(i)}if(!n)return Object.assign(Object.assign({},t),{children:e.preserveCollapseState(t.children)});var r="boolean"===typeof t.collapsible?t.collapsible:n.collapsible,o="undefined"!==typeof t.collapsed?t.collapsed:n.collapsed;return Object.assign(Object.assign({},t),{collapsible:r,collapsed:o,children:e.preserveCollapseState(t.children)})}))}},{key:"rerender",value:function(e){var t=this.getElementLocation(e);this.model.rerender(t)}},{key:"getFirstElementChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}},{key:"has",value:function(e){return this.nodes.has(e)}},{key:"getListIndex",value:function(e){var t=this.getElementLocation(e);return this.model.getListIndex(t)}},{key:"getListRenderCount",value:function(e){var t=this.getElementLocation(e);return this.model.getListRenderCount(t)}},{key:"isCollapsible",value:function(e){var t=this.getElementLocation(e);return this.model.isCollapsible(t)}},{key:"setCollapsible",value:function(e,t){var n=this.getElementLocation(e);return this.model.setCollapsible(n,t)}},{key:"isCollapsed",value:function(e){var t=this.getElementLocation(e);return this.model.isCollapsed(t)}},{key:"setCollapsed",value:function(e,t,n){var i=this.getElementLocation(e);return this.model.setCollapsed(i,t,n)}},{key:"expandTo",value:function(e){var t=this.getElementLocation(e);this.model.expandTo(t)}},{key:"refilter",value:function(){this.model.refilter()}},{key:"getNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null===e)return this.model.getNode(this.model.rootRef);var t=this.nodes.get(e);if(!t)throw new F(this.user,"Tree element not found: ".concat(e));return t}},{key:"getNodeLocation",value:function(e){return e.element}},{key:"getParentNodeLocation",value:function(e){if(null===e)throw new F(this.user,"Invalid getParentNodeLocation call");var t=this.nodes.get(e);if(!t)throw new F(this.user,"Tree element not found: ".concat(e));var n=this.model.getNodeLocation(t),i=this.model.getParentNodeLocation(n);return this.model.getNode(i).element}},{key:"getElementLocation",value:function(e){if(null===e)return[];var t=this.nodes.get(e);if(!t)throw new F(this.user,"Tree element not found: ".concat(e));return this.model.getNodeLocation(t)}}]),e}();function be(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:j.$.map(j.$.from(e.children),be),collapsible:e.collapsible,collapsed:e.collapsed}}function Ce(e){for(var t,n,i=[e.element],o=e.incompressible||!1;;){var a=j.$.consume(j.$.from(e.children),2),s=(0,r.Z)(a,2);if(n=s[0],t=s[1],1!==n.length)break;if(n[0].incompressible)break;e=n[0],i.push(e.element)}return{element:{elements:i,incompressible:o},children:j.$.map(j.$.concat(n,t),Ce),collapsible:e.collapsible,collapsed:e.collapsed}}function Se(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=n<e.element.elements.length-1?[Se(e,n+1)]:j.$.map(j.$.from(e.children),(function(e){return Se(e,0)})),0===n&&e.element.incompressible?{element:e.element.elements[n],children:t,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[n],children:t,collapsible:e.collapsible,collapsed:e.collapsed}}function we(e){return Se(e,0)}function ke(e,t,n){return e.element===t?Object.assign(Object.assign({},e),{children:n}):Object.assign(Object.assign({},e),{children:j.$.map(j.$.from(e.children),(function(e){return ke(e,t,n)}))})}var xe=function(e){return{getId:function(t){return t.elements.map((function(t){return e.getId(t).toString()})).join("\0")}}},Ee=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,u.Z)(this,e),this.user=t,this.rootRef=null,this.nodes=new Map,this.model=new _e(t,n,i),this.enabled="undefined"===typeof i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}return(0,d.Z)(e,[{key:"onDidSplice",get:function(){return this.model.onDidSplice}},{key:"onDidChangeCollapseState",get:function(){return this.model.onDidChangeCollapseState}},{key:"onDidChangeRenderNodeCount",get:function(){return this.model.onDidChangeRenderNodeCount}},{key:"setChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.$.empty(),n=arguments.length>2?arguments[2]:void 0,i=n.diffIdentityProvider&&xe(n.diffIdentityProvider);if(null!==e){var r=this.nodes.get(e);if(!r)throw new Error("Unknown compressed tree node");var o=this.model.getNode(r),a=this.model.getParentNodeLocation(r),s=this.model.getNode(a),l=we(o),c=ke(l,e,t),u=(this.enabled?Ce:be)(c),d=s.children.map((function(e){return e===o?u:e}));this._setChildren(s.element,d,{diffIdentityProvider:i,diffDepth:o.depth-s.depth})}else{var h=j.$.map(t,this.enabled?Ce:be);this._setChildren(null,h,{diffIdentityProvider:i,diffDepth:1/0})}}},{key:"setCompressionEnabled",value:function(e){if(e!==this.enabled){this.enabled=e;var t=this.model.getNode().children,n=j.$.map(t,we),i=j.$.map(n,e?Ce:be);this._setChildren(null,i,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}}},{key:"_setChildren",value:function(e,t,n){var i=this,r=new Set;this.model.setChildren(e,t,Object.assign(Object.assign({},n),{onDidCreateNode:function(e){var t,n=(0,w.Z)(e.element.elements);try{for(n.s();!(t=n.n()).done;){var o=t.value;r.add(o),i.nodes.set(o,e.element)}}catch(a){n.e(a)}finally{n.f()}},onDidDeleteNode:function(e){var t,n=(0,w.Z)(e.element.elements);try{for(n.s();!(t=n.n()).done;){var o=t.value;r.has(o)||i.nodes.delete(o)}}catch(a){n.e(a)}finally{n.f()}}}))}},{key:"has",value:function(e){return this.nodes.has(e)}},{key:"getListIndex",value:function(e){var t=this.getCompressedNode(e);return this.model.getListIndex(t)}},{key:"getListRenderCount",value:function(e){var t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}},{key:"getNode",value:function(e){if("undefined"===typeof e)return this.model.getNode();var t=this.getCompressedNode(e);return this.model.getNode(t)}},{key:"getNodeLocation",value:function(e){var t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}},{key:"getParentNodeLocation",value:function(e){var t=this.getCompressedNode(e),n=this.model.getParentNodeLocation(t);return null===n?null:n.elements[n.elements.length-1]}},{key:"getFirstElementChild",value:function(e){var t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}},{key:"isCollapsible",value:function(e){var t=this.getCompressedNode(e);return this.model.isCollapsible(t)}},{key:"setCollapsible",value:function(e,t){var n=this.getCompressedNode(e);return this.model.setCollapsible(n,t)}},{key:"isCollapsed",value:function(e){var t=this.getCompressedNode(e);return this.model.isCollapsed(t)}},{key:"setCollapsed",value:function(e,t,n){var i=this.getCompressedNode(e);return this.model.setCollapsed(i,t,n)}},{key:"expandTo",value:function(e){var t=this.getCompressedNode(e);this.model.expandTo(t)}},{key:"rerender",value:function(e){var t=this.getCompressedNode(e);this.model.rerender(t)}},{key:"refilter",value:function(){this.model.refilter()}},{key:"getCompressedNode",value:function(e){if(null===e)return null;var t=this.nodes.get(e);if(!t)throw new F(this.user,"Tree element not found: ".concat(e));return t}}]),e}(),Te=function(e){return e[e.length-1]},Ne=function(){function e(t,n){(0,u.Z)(this,e),this.unwrapper=t,this.node=n}return(0,d.Z)(e,[{key:"element",get:function(){return null===this.node.element?null:this.unwrapper(this.node.element)}},{key:"children",get:function(){var t=this;return this.node.children.map((function(n){return new e(t.unwrapper,n)}))}},{key:"depth",get:function(){return this.node.depth}},{key:"visibleChildrenCount",get:function(){return this.node.visibleChildrenCount}},{key:"visibleChildIndex",get:function(){return this.node.visibleChildIndex}},{key:"collapsible",get:function(){return this.node.collapsible}},{key:"collapsed",get:function(){return this.node.collapsed}},{key:"visible",get:function(){return this.node.visible}},{key:"filterData",get:function(){return this.node.filterData}}]),e}();function Ie(e,t){return{splice:function(n,i,r){t.splice(n,i,r.map((function(t){return e.map(t)})))},updateElementHeight:function(e,n){t.updateElementHeight(e,n)}}}function De(e,t){return Object.assign(Object.assign({},t),{identityProvider:t.identityProvider&&{getId:function(n){return t.identityProvider.getId(e(n))}},sorter:t.sorter&&{compare:function(e,n){return t.sorter.compare(e.elements[0],n.elements[0])}},filter:t.filter&&{filter:function(n,i){return t.filter.filter(e(n),i)}}})}var Le=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,u.Z)(this,e),this.rootRef=null,this.elementMapper=r.elementMapper||Te;var o=function(e){return i.elementMapper(e.elements)};this.nodeMapper=new B((function(e){return new Ne(o,e)})),this.model=new Ee(t,Ie(this.nodeMapper,n),De(o,r))}return(0,d.Z)(e,[{key:"onDidSplice",get:function(){var e=this;return g.ju.map(this.model.onDidSplice,(function(t){var n=t.insertedNodes,i=t.deletedNodes;return{insertedNodes:n.map((function(t){return e.nodeMapper.map(t)})),deletedNodes:i.map((function(t){return e.nodeMapper.map(t)}))}}))}},{key:"onDidChangeCollapseState",get:function(){var e=this;return g.ju.map(this.model.onDidChangeCollapseState,(function(t){var n=t.node,i=t.deep;return{node:e.nodeMapper.map(n),deep:i}}))}},{key:"onDidChangeRenderNodeCount",get:function(){var e=this;return g.ju.map(this.model.onDidChangeRenderNodeCount,(function(t){return e.nodeMapper.map(t)}))}},{key:"setChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.$.empty(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.model.setChildren(e,t,n)}},{key:"setCompressionEnabled",value:function(e){this.model.setCompressionEnabled(e)}},{key:"has",value:function(e){return this.model.has(e)}},{key:"getListIndex",value:function(e){return this.model.getListIndex(e)}},{key:"getListRenderCount",value:function(e){return this.model.getListRenderCount(e)}},{key:"getNode",value:function(e){return this.nodeMapper.map(this.model.getNode(e))}},{key:"getNodeLocation",value:function(e){return e.element}},{key:"getParentNodeLocation",value:function(e){return this.model.getParentNodeLocation(e)}},{key:"getFirstElementChild",value:function(e){var t=this.model.getFirstElementChild(e);return null===t||"undefined"===typeof t?t:this.elementMapper(t.elements)}},{key:"isCollapsible",value:function(e){return this.model.isCollapsible(e)}},{key:"setCollapsible",value:function(e,t){return this.model.setCollapsible(e,t)}},{key:"isCollapsed",value:function(e){return this.model.isCollapsed(e)}},{key:"setCollapsed",value:function(e,t,n){return this.model.setCollapsed(e,t,n)}},{key:"expandTo",value:function(e){return this.model.expandTo(e)}},{key:"rerender",value:function(e){return this.model.rerender(e)}},{key:"refilter",value:function(){return this.model.refilter()}},{key:"getCompressedTreeNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.model.getNode(e)}}]),e}(),Oe=n(24030),Re=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ae=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o){var a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return(0,u.Z)(this,n),(a=t.call(this,e,i,r,o,s)).user=e,a}return(0,d.Z)(n,[{key:"onDidChangeCollapseState",get:function(){return this.model.onDidChangeCollapseState}},{key:"setChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.$.empty(),n=arguments.length>2?arguments[2]:void 0;this.model.setChildren(e,t,n)}},{key:"rerender",value:function(e){void 0!==e?this.model.rerender(e):this.view.rerender()}},{key:"hasElement",value:function(e){return this.model.has(e)}},{key:"createModel",value:function(e,t,n){return new _e(e,t,n)}}]),n}(ye),Me=function(){function e(t,n){(0,u.Z)(this,e),this._compressedTreeNodeProvider=t,this.renderer=n,this.templateId=n.templateId,n.onDidChangeTwistieState&&(this.onDidChangeTwistieState=n.onDidChangeTwistieState)}return(0,d.Z)(e,[{key:"compressedTreeNodeProvider",get:function(){return this._compressedTreeNodeProvider()}},{key:"renderTemplate",value:function(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}},{key:"renderElement",value:function(e,t,n,i){var r=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===r.element.elements.length?(n.compressedTreeNode=void 0,this.renderer.renderElement(e,t,n.data,i)):(n.compressedTreeNode=r,this.renderer.renderCompressedElements(r,t,n.data,i))}},{key:"disposeElement",value:function(e,t,n,i){var r,o,a,s;n.compressedTreeNode?null===(o=(r=this.renderer).disposeCompressedElements)||void 0===o||o.call(r,n.compressedTreeNode,t,n.data,i):null===(s=(a=this.renderer).disposeElement)||void 0===s||s.call(a,e,t,n.data,i)}},{key:"disposeTemplate",value:function(e){this.renderer.disposeTemplate(e.data)}},{key:"renderTwistie",value:function(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}]),e}();function Pe(e,t){return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(n){var i;try{i=e().getCompressedTreeNode(n)}catch(r){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n)}return 1===i.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}})}Re([Oe.H],Me.prototype,"compressedTreeNodeProvider",null);var Ze=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,a){var s,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};(0,u.Z)(this,n);var c=function(){return(0,o.Z)(s)},d=a.map((function(e){return new Me(c,e)}));return s=t.call(this,e,i,r,d,Pe(c,l))}return(0,d.Z)(n,[{key:"setChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.$.empty(),n=arguments.length>2?arguments[2]:void 0;this.model.setChildren(e,t,n)}},{key:"createModel",value:function(e,t,n){return new Le(e,t,n)}},{key:"updateOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.Z)((0,s.Z)(n.prototype),"updateOptions",this).call(this,e),"undefined"!==typeof e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}},{key:"getCompressedTreeNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.model.getCompressedTreeNode(e)}}]),n}(Ae),Fe=n(14173),Be=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};function He(e){return Object.assign(Object.assign({},e),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function ze(e,t){return!!t.parent&&(t.parent===e||ze(e,t.parent))}function je(e,t){return e===t||ze(e,t)||ze(t,e)}var Ve=function(){function e(t){(0,u.Z)(this,e),this.node=t}return(0,d.Z)(e,[{key:"element",get:function(){return this.node.element.element}},{key:"children",get:function(){return this.node.children.map((function(t){return new e(t)}))}},{key:"depth",get:function(){return this.node.depth}},{key:"visibleChildrenCount",get:function(){return this.node.visibleChildrenCount}},{key:"visibleChildIndex",get:function(){return this.node.visibleChildIndex}},{key:"collapsible",get:function(){return this.node.collapsible}},{key:"collapsed",get:function(){return this.node.collapsed}},{key:"visible",get:function(){return this.node.visible}},{key:"filterData",get:function(){return this.node.filterData}}]),e}(),We=function(){function e(t,n,i){(0,u.Z)(this,e),this.renderer=t,this.nodeMapper=n,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=t.templateId}return(0,d.Z)(e,[{key:"renderTemplate",value:function(e){return{templateData:this.renderer.renderTemplate(e)}}},{key:"renderElement",value:function(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)}},{key:"renderTwistie",value:function(e,t){var n,i;return e.slow?((n=t.classList).add.apply(n,(0,S.Z)(Y.lA.treeItemLoading.classNamesArray)),!0):((i=t.classList).remove.apply(i,(0,S.Z)(Y.lA.treeItemLoading.classNamesArray)),!1)}},{key:"disposeElement",value:function(e,t,n,i){var r,o;null===(o=(r=this.renderer).disposeElement)||void 0===o||o.call(r,this.nodeMapper.map(e),t,n.templateData,i)}},{key:"disposeTemplate",value:function(e){this.renderer.disposeTemplate(e.templateData)}},{key:"dispose",value:function(){this.renderedNodes.clear()}}]),e}();function Ue(e){return{browserEvent:e.browserEvent,elements:e.elements.map((function(e){return e.element}))}}function Ge(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}var Ke=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,u.Z)(this,n),(i=t.call(this,e.elements.map((function(e){return e.element})))).data=e,i}return(0,d.Z)(n)}(A.kX);function Ye(e){return e instanceof A.kX?new Ke(e):e}var qe=function(){function e(t){(0,u.Z)(this,e),this.dnd=t}return(0,d.Z)(e,[{key:"getDragURI",value:function(e){return this.dnd.getDragURI(e.element)}},{key:"getDragLabel",value:function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})),t)}},{key:"onDragStart",value:function(e,t){var n,i;null===(i=(n=this.dnd).onDragStart)||void 0===i||i.call(n,Ye(e),t)}},{key:"onDragOver",value:function(e,t,n,i){return this.dnd.onDragOver(Ye(e),t&&t.element,n,i)}},{key:"drop",value:function(e,t,n,i){this.dnd.drop(Ye(e),t&&t.element,n,i)}},{key:"onDragEnd",value:function(e){var t,n;null===(n=(t=this.dnd).onDragEnd)||void 0===n||n.call(t,e)}}]),e}();function $e(e){return e&&Object.assign(Object.assign({},e),{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:function(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new qe(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:function(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},isSelectionRangeChangeEvent:function(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?function(t){return e.accessibilityProvider.getRole(t.element)}:function(){return"treeitem"},isChecked:e.accessibilityProvider.isChecked?function(t){var n;return!!(null===(n=e.accessibilityProvider)||void 0===n?void 0:n.isChecked(t.element))}:void 0,getAriaLabel:function(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel:function(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider.getWidgetRole?function(){return e.accessibilityProvider.getWidgetRole()}:function(){return"tree"},getAriaLevel:e.accessibilityProvider.getAriaLevel&&function(t){return e.accessibilityProvider.getAriaLevel(t.element)},getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&function(t){return e.accessibilityProvider.getActiveDescendantId(t.element)}}),filter:e.filter&&{filter:function(t,n){return e.filter.filter(t.element,n)}},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:function(t){return e.expandOnlyOnTwistieClick(t.element)},additionalScrollHeight:e.additionalScrollHeight})}function Xe(e,t){t(e),e.children.forEach((function(e){return Xe(e,t)}))}var Qe=function(){function e(t,n,i,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};(0,u.Z)(this,e),this.user=t,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new g.Q5,this._onDidChangeNodeSlowState=new g.Q5,this.nodeMapper=new B((function(e){return new Ve(e)})),this.disposables=new v.SL,this.identityProvider=a.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof a.autoExpandSingleChildren&&a.autoExpandSingleChildren,this.sorter=a.sorter,this.collapseByDefault=a.collapseByDefault,this.tree=this.createTree(t,n,i,r,a),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.root=He({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}return(0,d.Z)(e,[{key:"onDidChangeFocus",get:function(){return g.ju.map(this.tree.onDidChangeFocus,Ue)}},{key:"onDidChangeSelection",get:function(){return g.ju.map(this.tree.onDidChangeSelection,Ue)}},{key:"onMouseDblClick",get:function(){return g.ju.map(this.tree.onMouseDblClick,Ge)}},{key:"onPointer",get:function(){return g.ju.map(this.tree.onPointer,Ge)}},{key:"onDidFocus",get:function(){return this.tree.onDidFocus}},{key:"onDidChangeModel",get:function(){return this.tree.onDidChangeModel}},{key:"onDidChangeCollapseState",get:function(){return this.tree.onDidChangeCollapseState}},{key:"onDidChangeFindOpenState",get:function(){return this.tree.onDidChangeFindOpenState}},{key:"onDidDispose",get:function(){return this.tree.onDidDispose}},{key:"createTree",value:function(e,t,n,i,r){var o=this,a=new ae(n),s=i.map((function(e){return new We(e,o.nodeMapper,o._onDidChangeNodeSlowState.event)})),l=$e(r)||{};return new Ae(e,t,a,s,l)}},{key:"updateOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.tree.updateOptions(e)}},{key:"getHTMLElement",value:function(){return this.tree.getHTMLElement()}},{key:"scrollTop",get:function(){return this.tree.scrollTop},set:function(e){this.tree.scrollTop=e}},{key:"domFocus",value:function(){this.tree.domFocus()}},{key:"layout",value:function(e,t){this.tree.layout(e,t)}},{key:"style",value:function(e){this.tree.style(e)}},{key:"getInput",value:function(){return this.root.element}},{key:"setInput",value:function(e,t){return Be(this,void 0,void 0,(0,I.Z)().mark((function n(){var i;return(0,I.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.refreshPromises.forEach((function(e){return e.cancel()})),this.refreshPromises.clear(),this.root.element=e,i=t&&{viewState:t,focus:[],selection:[]},n.next=6,this._updateChildren(e,!0,!1,i);case 6:i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop);case 8:case"end":return n.stop()}}),n,this)})))}},{key:"_updateChildren",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root.element,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;return Be(this,void 0,void 0,(0,I.Z)().mark((function o(){var a;return(0,I.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if("undefined"!==typeof this.root.element){o.next=2;break}throw new F(this.user,"Tree input not set");case 2:if(!this.root.refreshPromise){o.next=7;break}return o.next=5,this.root.refreshPromise;case 5:return o.next=7,g.ju.toPromise(this._onDidRender.event);case 7:return a=this.getDataNode(e),o.next=10,this.refreshAndRenderNode(a,t,i,r);case 10:if(n)try{this.tree.rerender(a)}catch(s){}case 11:case"end":return o.stop()}}),o,this)})))}},{key:"rerender",value:function(e){if(void 0!==e&&e!==this.root.element){var t=this.getDataNode(e);this.tree.rerender(t)}else this.tree.rerender()}},{key:"getNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root.element,t=this.getDataNode(e),n=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(n)}},{key:"collapse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getDataNode(e);return this.tree.collapse(n===this.root?null:n,t)}},{key:"expand",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Be(this,void 0,void 0,(0,I.Z)().mark((function n(){var i,r;return(0,I.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("undefined"!==typeof this.root.element){n.next=2;break}throw new F(this.user,"Tree input not set");case 2:if(!this.root.refreshPromise){n.next=7;break}return n.next=5,this.root.refreshPromise;case 5:return n.next=7,g.ju.toPromise(this._onDidRender.event);case 7:if(i=this.getDataNode(e),!this.tree.hasElement(i)||this.tree.isCollapsible(i)){n.next=10;break}return n.abrupt("return",!1);case 10:if(!i.refreshPromise){n.next=15;break}return n.next=13,this.root.refreshPromise;case 13:return n.next=15,g.ju.toPromise(this._onDidRender.event);case 15:if(i===this.root||i.refreshPromise||this.tree.isCollapsed(i)){n.next=17;break}return n.abrupt("return",!1);case 17:if(r=this.tree.expand(i===this.root?null:i,t),!i.refreshPromise){n.next=23;break}return n.next=21,this.root.refreshPromise;case 21:return n.next=23,g.ju.toPromise(this._onDidRender.event);case 23:return n.abrupt("return",r);case 24:case"end":return n.stop()}}),n,this)})))}},{key:"setSelection",value:function(e,t){var n=this,i=e.map((function(e){return n.getDataNode(e)}));this.tree.setSelection(i,t)}},{key:"getSelection",value:function(){return this.tree.getSelection().map((function(e){return e.element}))}},{key:"setFocus",value:function(e,t){var n=this,i=e.map((function(e){return n.getDataNode(e)}));this.tree.setFocus(i,t)}},{key:"getFocus",value:function(){return this.tree.getFocus().map((function(e){return e.element}))}},{key:"reveal",value:function(e,t){this.tree.reveal(this.getDataNode(e),t)}},{key:"getParentElement",value:function(e){var t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}},{key:"getFirstElementChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root.element,t=this.getDataNode(e),n=this.tree.getFirstElementChild(t===this.root?null:t);return n&&n.element}},{key:"getDataNode",value:function(e){var t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new F(this.user,"Data tree node not found: ".concat(e));return t}},{key:"refreshAndRenderNode",value:function(e,t,n,i){return Be(this,void 0,void 0,(0,I.Z)().mark((function r(){return(0,I.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.refreshNode(e,t,n);case 2:this.render(e,n,i);case 3:case"end":return r.stop()}}),r,this)})))}},{key:"refreshNode",value:function(e,t,n){return Be(this,void 0,void 0,(0,I.Z)().mark((function i(){var r,o=this;return(0,I.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(this.subTreeRefreshPromises.forEach((function(i,a){!r&&je(a,e)&&(r=i.then((function(){return o.refreshNode(e,t,n)})))})),!r){i.next=3;break}return i.abrupt("return",r);case 3:if(e===this.root){i.next=9;break}if(!this.tree.getNode(e).collapsed){i.next=9;break}return e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,i.abrupt("return");case 9:return i.abrupt("return",this.doRefreshSubTree(e,t,n));case 10:case"end":return i.stop()}}),i,this)})))}},{key:"doRefreshSubTree",value:function(e,t,n){return Be(this,void 0,void 0,(0,I.Z)().mark((function i(){var r,o,a=this;return(0,I.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return e.refreshPromise=new Promise((function(e){return r=e})),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((function(){e.refreshPromise=void 0,a.subTreeRefreshPromises.delete(e)})),i.prev=3,i.next=6,this.doRefreshNode(e,t,n);case 6:return o=i.sent,e.stale=!1,i.next=10,H.jT.settled(o.map((function(e){return a.doRefreshSubTree(e,t,n)})));case 10:return i.prev=10,r(),i.finish(10);case 13:case"end":return i.stop()}}),i,this,[[3,,10,13]])})))}},{key:"doRefreshNode",value:function(e,t,n){return Be(this,void 0,void 0,(0,I.Z)().mark((function i(){var r,o,a,s,l=this;return(0,I.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren?(o=this.doGetChildren(e),(0,Q.TW)(o)?r=Promise.resolve(o):((a=(0,H.Vs)(800)).then((function(){e.slow=!0,l._onDidChangeNodeSlowState.fire(e)}),(function(e){return null})),r=o.finally((function(){return a.cancel()})))):r=Promise.resolve(j.$.empty()),i.prev=2,i.next=5,r;case 5:return s=i.sent,i.abrupt("return",this.setChildren(e,s,t,n));case 9:if(i.prev=9,i.t0=i.catch(2),e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),!(0,Fe.n2)(i.t0)){i.next=14;break}return i.abrupt("return",[]);case 14:throw i.t0;case 15:return i.prev=15,e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e)),i.finish(15);case 18:case"end":return i.stop()}}),i,this,[[2,9,15,18]])})))}},{key:"doGetChildren",value:function(e){var t=this,n=this.refreshPromises.get(e);if(n)return n;var i=this.dataSource.getChildren(e.element);return(0,Q.TW)(i)?this.processChildren(i):(n=(0,H.PG)((function(){return Be(t,void 0,void 0,(0,I.Z)().mark((function e(){return(0,I.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=this,e.next=3,i;case 3:return e.t1=e.sent,e.abrupt("return",e.t0.processChildren.call(e.t0,e.t1));case 5:case"end":return e.stop()}}),e,this)})))})),this.refreshPromises.set(e,n),n.finally((function(){t.refreshPromises.delete(e)})))}},{key:"_onDidChangeCollapseState",value:function(e){var t=e.node,n=e.deep;null!==t.element&&!t.collapsed&&t.element.stale&&(n?this.collapse(t.element.element):this.refreshAndRenderNode(t.element,!1).catch(Fe.dL))}},{key:"setChildren",value:function(e,t,n,i){var r,o=this,a=(0,S.Z)(t);if(0===e.children.length&&0===a.length)return[];var s,l=new Map,c=new Map,u=(0,w.Z)(e.children);try{for(u.s();!(s=u.n()).done;){var d=s.value;if(l.set(d.element,d),this.identityProvider){var h=this.tree.isCollapsed(d);c.set(d.id,{node:d,collapsed:h})}}}catch(b){u.e(b)}finally{u.f()}var f,p=[],g=a.map((function(t){var r=!!o.dataSource.hasChildren(t);if(!o.identityProvider){var a=He({element:t,parent:e,hasChildren:r});return r&&o.collapseByDefault&&!o.collapseByDefault(t)&&(a.collapsedByDefault=!1,p.push(a)),a}var s=o.identityProvider.getId(t).toString(),u=c.get(s);if(u){var d=u.node;return l.delete(d.element),o.nodes.delete(d.element),o.nodes.set(t,d),d.element=t,d.hasChildren=r,n?u.collapsed?(d.children.forEach((function(e){return Xe(e,(function(e){return o.nodes.delete(e.element)}))})),d.children.splice(0,d.children.length),d.stale=!0):p.push(d):r&&o.collapseByDefault&&!o.collapseByDefault(t)&&(d.collapsedByDefault=!1,p.push(d)),d}var h=He({element:t,parent:e,id:s,hasChildren:r});return i&&i.viewState.focus&&i.viewState.focus.indexOf(s)>-1&&i.focus.push(h),i&&i.viewState.selection&&i.viewState.selection.indexOf(s)>-1&&i.selection.push(h),i&&i.viewState.expanded&&i.viewState.expanded.indexOf(s)>-1?p.push(h):r&&o.collapseByDefault&&!o.collapseByDefault(t)&&(h.collapsedByDefault=!1,p.push(h)),h})),v=(0,w.Z)(l.values());try{for(v.s();!(f=v.n()).done;){Xe(f.value,(function(e){return o.nodes.delete(e.element)}))}}catch(b){v.e(b)}finally{v.f()}var m,y=(0,w.Z)(g);try{for(y.s();!(m=y.n()).done;){var _=m.value;this.nodes.set(_.element,_)}}catch(b){y.e(b)}finally{y.f()}return(r=e.children).splice.apply(r,[0,e.children.length].concat((0,S.Z)(g))),e!==this.root&&this.autoExpandSingleChildren&&1===g.length&&0===p.length&&(g[0].collapsedByDefault=!1,p.push(g[0])),p}},{key:"render",value:function(e,t,n){var i=this,r=e.children.map((function(e){return i.asTreeElement(e,t)})),o=n&&Object.assign(Object.assign({},n),{diffIdentityProvider:n.diffIdentityProvider&&{getId:function(e){return n.diffIdentityProvider.getId(e.element)}}});this.tree.setChildren(e===this.root?null:e,r,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}},{key:"asTreeElement",value:function(e,t){var n,i=this;return e.stale?{element:e,collapsible:e.hasChildren,collapsed:!0}:(n=!(t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1)&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?j.$.map(e.children,(function(e){return i.asTreeElement(e,t)})):[],collapsible:e.hasChildren,collapsed:n})}},{key:"processChildren",value:function(e){return this.sorter&&(e=(0,S.Z)(e).sort(this.sorter.compare.bind(this.sorter))),e}},{key:"dispose",value:function(){this.disposables.dispose()}}]),e}(),Je=function(){function e(t){(0,u.Z)(this,e),this.node=t}return(0,d.Z)(e,[{key:"element",get:function(){return{elements:this.node.element.elements.map((function(e){return e.element})),incompressible:this.node.element.incompressible}}},{key:"children",get:function(){return this.node.children.map((function(t){return new e(t)}))}},{key:"depth",get:function(){return this.node.depth}},{key:"visibleChildrenCount",get:function(){return this.node.visibleChildrenCount}},{key:"visibleChildIndex",get:function(){return this.node.visibleChildIndex}},{key:"collapsible",get:function(){return this.node.collapsible}},{key:"collapsed",get:function(){return this.node.collapsed}},{key:"visible",get:function(){return this.node.visible}},{key:"filterData",get:function(){return this.node.filterData}}]),e}(),et=function(){function e(t,n,i,r){(0,u.Z)(this,e),this.renderer=t,this.nodeMapper=n,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=r,this.renderedNodes=new Map,this.disposables=[],this.templateId=t.templateId}return(0,d.Z)(e,[{key:"renderTemplate",value:function(e){return{templateData:this.renderer.renderTemplate(e)}}},{key:"renderElement",value:function(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)}},{key:"renderCompressedElements",value:function(e,t,n,i){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)}},{key:"renderTwistie",value:function(e,t){var n,i;return e.slow?((n=t.classList).add.apply(n,(0,S.Z)(Y.lA.treeItemLoading.classNamesArray)),!0):((i=t.classList).remove.apply(i,(0,S.Z)(Y.lA.treeItemLoading.classNamesArray)),!1)}},{key:"disposeElement",value:function(e,t,n,i){var r,o;null===(o=(r=this.renderer).disposeElement)||void 0===o||o.call(r,this.nodeMapper.map(e),t,n.templateData,i)}},{key:"disposeCompressedElements",value:function(e,t,n,i){var r,o;null===(o=(r=this.renderer).disposeCompressedElements)||void 0===o||o.call(r,this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)}},{key:"disposeTemplate",value:function(e){this.renderer.disposeTemplate(e.templateData)}},{key:"dispose",value:function(){this.renderedNodes.clear(),this.disposables=(0,v.B9)(this.disposables)}}]),e}();var tt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o,a,s){var l,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};return(0,u.Z)(this,n),(l=t.call(this,e,i,r,a,s,c)).compressionDelegate=o,l.compressibleNodeMapper=new B((function(e){return new Je(e)})),l.filter=c.filter,l}return(0,d.Z)(n,[{key:"createTree",value:function(e,t,n,i,r){var o=this,a=new ae(n),s=i.map((function(e){return new et(e,o.nodeMapper,(function(){return o.compressibleNodeMapper}),o._onDidChangeNodeSlowState.event)})),l=function(e){var t=e&&$e(e);return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},t.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(t){return e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((function(e){return e.element})))}})})}(r)||{};return new Ze(e,t,a,s,l)}},{key:"asTreeElement",value:function(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},(0,a.Z)((0,s.Z)(n.prototype),"asTreeElement",this).call(this,e,t))}},{key:"updateOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.tree.updateOptions(e)}},{key:"render",value:function(e,t){var i=this;if(!this.identityProvider)return(0,a.Z)((0,s.Z)(n.prototype),"render",this).call(this,e,t);var r=function(e){return i.identityProvider.getId(e).toString()},o=function(e){var t,n=new Set,o=(0,w.Z)(e);try{for(o.s();!(t=o.n()).done;){var a=t.value,s=i.tree.getCompressedTreeNode(a===i.root?null:a);if(s.element){var l,c=(0,w.Z)(s.element.elements);try{for(c.s();!(l=c.n()).done;){var u=l.value;n.add(r(u.element))}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){o.e(d)}finally{o.f()}return n},l=o(this.tree.getSelection()),c=o(this.tree.getFocus());(0,a.Z)((0,s.Z)(n.prototype),"render",this).call(this,e,t);var u=this.getSelection(),d=!1,h=this.getFocus(),f=!1;!function e(t){var n=t.element;if(n)for(var i=0;i<n.elements.length;i++){var o=r(n.elements[i].element),a=n.elements[n.elements.length-1].element;l.has(o)&&-1===u.indexOf(a)&&(u.push(a),d=!0),c.has(o)&&-1===h.indexOf(a)&&(h.push(a),f=!0)}t.children.forEach(e)}(this.tree.getCompressedTreeNode(e===this.root?null:e)),d&&this.setSelection(u),f&&this.setFocus(h)}},{key:"processChildren",value:function(e){var t=this;return this.filter&&(e=j.$.filter(e,(function(e){var n,i=t.filter.filter(e,1),r="boolean"===typeof(n=i)?n?1:0:V(n)?W(n.visibility):W(n);if(2===r)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===r}))),(0,a.Z)((0,s.Z)(n.prototype),"processChildren",this).call(this,e)}}]),n}(Qe);var nt,it=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o,a){var s,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return(0,u.Z)(this,n),(s=t.call(this,e,i,r,o,l)).user=e,s.dataSource=a,s.identityProvider=l.identityProvider,s}return(0,d.Z)(n,[{key:"createModel",value:function(e,t,n){return new _e(e,t,n)}}]),n}(ye),rt=n(87984),ot=n(50818),at=n(34509),st=n(3058),lt=n(22468),ct=n(36888),ut=n(47569),dt=n(69077),ht=n(77406),ft=n(64014),pt=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},gt=function(e,t){return function(n,i){t(n,i,e)}},vt=(0,ct.yh)("listService"),mt=function(){function e(t){(0,u.Z)(this,e),this._themeService=t,this.disposables=new v.SL,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}return(0,d.Z)(e,[{key:"lastFocusedList",get:function(){return this._lastFocusedWidget}},{key:"setLastFocusedList",value:function(e){var t,n;e!==this._lastFocusedWidget&&(null===(t=this._lastFocusedWidget)||void 0===t||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,null===(n=this._lastFocusedWidget)||void 0===n||n.getHTMLElement().classList.add("last-focused"))}},{key:"register",value:function(e,t){var n=this;if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;var i=new m.wD((0,h.createStyleSheet)(),"");this.disposables.add((0,ht.Jl)(i,this._themeService))}if(this.lists.some((function(t){return t.widget===e})))throw new Error("Cannot register the same widget multiple times");var r={widget:e,extraContextKeys:t};return this.lists.push(r),e.getHTMLElement()===document.activeElement&&this.setLastFocusedList(e),(0,v.F8)(e.onDidFocus((function(){return n.setLastFocusedList(e)})),(0,v.OF)((function(){return n.lists.splice(n.lists.indexOf(r),1)})),e.onDidDispose((function(){n.lists=n.lists.filter((function(e){return e!==r})),n._lastFocusedWidget===e&&n.setLastFocusedList(void 0)})))}},{key:"dispose",value:function(){this.disposables.dispose()}}]),e}();mt=pt([gt(0,ft.XE)],mt);var yt=new at.uy("listFocus",!0),_t=new at.uy("listSupportsMultiselect",!0),bt=at.Ao.and(yt,at.Ao.not(st.d0)),Ct=new at.uy("listHasSelectionOrFocus",!1),St=new at.uy("listDoubleSelection",!1),wt=new at.uy("listMultiSelection",!1),kt=new at.uy("listSelectionNavigation",!1),xt=new at.uy("listSupportsFind",!0),Et=new at.uy("treeElementCanCollapse",!1),Tt=new at.uy("treeElementHasParent",!1),Nt=new at.uy("treeElementCanExpand",!1),It=new at.uy("treeElementHasChild",!1),Dt=new at.uy("treeFindOpen",!1),Lt="listTypeNavigationMode",Ot="listAutomaticKeyboardNavigation";function Rt(e,t){var n=e.createScoped(t.getHTMLElement());return yt.bindTo(n),n}var At="workbench.list.multiSelectModifier",Mt="workbench.list.openMode",Pt="workbench.list.horizontalScrolling",Zt="workbench.list.defaultFindMode",Ft="workbench.list.keyboardNavigation",Bt="workbench.tree.indent",Ht="workbench.tree.renderIndentGuides",zt="workbench.list.smoothScrolling",jt="workbench.list.mouseWheelScrollSensitivity",Vt="workbench.list.fastScrollSensitivity",Wt="workbench.tree.expandMode";function Ut(e){return"alt"===e.getValue(At)}var Gt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,u.Z)(this,n),(i=t.call(this)).configurationService=e,i.useAltAsMultipleSelectionModifier=Ut(e),i.registerListeners(),i}return(0,d.Z)(n,[{key:"registerListeners",value:function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(t){t.affectsConfiguration(At)&&(e.useAltAsMultipleSelectionModifier=Ut(e.configurationService))})))}},{key:"isSelectionSingleChangeEvent",value:function(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,m.Zo)(e)}},{key:"isSelectionRangeChangeEvent",value:function(e){return(0,m.wn)(e)}}]),n}(v.JT);function Kt(e,t){var n,i=e.get(rt.Ui),r=e.get(ut.d),o=new v.SL;return[Object.assign(Object.assign({},t),{keyboardNavigationDelegate:{mightProducePrintableCharacter:function(e){return r.mightProducePrintableCharacter(e)}},smoothScrolling:Boolean(i.getValue(zt)),mouseWheelScrollSensitivity:i.getValue(jt),fastScrollSensitivity:i.getValue(Vt),multipleSelectionController:null!==(n=t.multipleSelectionController)&&void 0!==n?n:o.add(new Gt(i)),keyboardNavigationEventFilter:tn(r)}),o]}var Yt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,a,s,l,c,d,h,f,p){var g;(0,u.Z)(this,n);var v="undefined"!==typeof l.horizontalScrolling?l.horizontalScrolling:Boolean(f.getValue(Pt)),m=p.invokeFunction(Kt,l),y=(0,r.Z)(m,2),_=y[0],b=y[1];return(g=t.call(this,e,i,a,s,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},(0,ht.o)(h.getColorTheme(),ht.O2)),_),{horizontalScrolling:v}))).disposables.add(b),g.contextKeyService=Rt(c,(0,o.Z)(g)),g.themeService=h,g.listSupportsMultiSelect=_t.bindTo(g.contextKeyService),g.listSupportsMultiSelect.set(!1!==l.multipleSelectionSupport),kt.bindTo(g.contextKeyService).set(Boolean(l.selectionNavigation)),g.listHasSelectionOrFocus=Ct.bindTo(g.contextKeyService),g.listDoubleSelection=St.bindTo(g.contextKeyService),g.listMultiSelection=wt.bindTo(g.contextKeyService),g.horizontalScrolling=l.horizontalScrolling,g._useAltAsMultipleSelectionModifier=Ut(f),g.disposables.add(g.contextKeyService),g.disposables.add(d.register((0,o.Z)(g))),l.overrideStyles&&g.updateStyles(l.overrideStyles),g.disposables.add(g.onDidChangeSelection((function(){var e=g.getSelection(),t=g.getFocus();g.contextKeyService.bufferChangeEvents((function(){g.listHasSelectionOrFocus.set(e.length>0||t.length>0),g.listMultiSelection.set(e.length>1),g.listDoubleSelection.set(2===e.length)}))}))),g.disposables.add(g.onDidChangeFocus((function(){var e=g.getSelection(),t=g.getFocus();g.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),g.disposables.add(f.onDidChangeConfiguration((function(e){e.affectsConfiguration(At)&&(g._useAltAsMultipleSelectionModifier=Ut(f));var t={};if(e.affectsConfiguration(Pt)&&void 0===g.horizontalScrolling){var n=Boolean(f.getValue(Pt));t=Object.assign(Object.assign({},t),{horizontalScrolling:n})}if(e.affectsConfiguration(zt)){var i=Boolean(f.getValue(zt));t=Object.assign(Object.assign({},t),{smoothScrolling:i})}if(e.affectsConfiguration(jt)){var r=f.getValue(jt);t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:r})}if(e.affectsConfiguration(Vt)){var o=f.getValue(Vt);t=Object.assign(Object.assign({},t),{fastScrollSensitivity:o})}Object.keys(t).length>0&&g.updateOptions(t)}))),g.navigator=new Qt((0,o.Z)(g),Object.assign({configurationService:f},l)),g.disposables.add(g.navigator),g}return(0,d.Z)(n,[{key:"updateOptions",value:function(e){(0,a.Z)((0,s.Z)(n.prototype),"updateOptions",this).call(this,e),e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}},{key:"updateStyles",value:function(e){var t;null===(t=this._styler)||void 0===t||t.dispose(),this._styler=(0,ht.Jl)(this,this.themeService,e)}},{key:"dispose",value:function(){var e;null===(e=this._styler)||void 0===e||e.dispose(),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}}]),n}(m.aV);Yt=pt([gt(5,at.i6),gt(6,vt),gt(7,ft.XE),gt(8,rt.Ui),gt(9,ct.TG)],Yt);var qt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,a,s,l,c,d,h,f,p){var g;(0,u.Z)(this,n);var m="undefined"!==typeof l.horizontalScrolling?l.horizontalScrolling:Boolean(f.getValue(Pt)),y=p.invokeFunction(Kt,l),_=(0,r.Z)(y,2),b=_[0],C=_[1];return(g=t.call(this,e,i,a,s,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},(0,ht.o)(h.getColorTheme(),ht.O2)),b),{horizontalScrolling:m}))).disposables=new v.SL,g.disposables.add(C),g.contextKeyService=Rt(c,(0,o.Z)(g)),g.themeService=h,g.horizontalScrolling=l.horizontalScrolling,g.listSupportsMultiSelect=_t.bindTo(g.contextKeyService),g.listSupportsMultiSelect.set(!1!==l.multipleSelectionSupport),kt.bindTo(g.contextKeyService).set(Boolean(l.selectionNavigation)),g._useAltAsMultipleSelectionModifier=Ut(f),g.disposables.add(g.contextKeyService),g.disposables.add(d.register((0,o.Z)(g))),l.overrideStyles&&g.updateStyles(l.overrideStyles),l.overrideStyles&&g.disposables.add((0,ht.Jl)((0,o.Z)(g),h,l.overrideStyles)),g.disposables.add(f.onDidChangeConfiguration((function(e){e.affectsConfiguration(At)&&(g._useAltAsMultipleSelectionModifier=Ut(f));var t={};if(e.affectsConfiguration(Pt)&&void 0===g.horizontalScrolling){var n=Boolean(f.getValue(Pt));t=Object.assign(Object.assign({},t),{horizontalScrolling:n})}if(e.affectsConfiguration(zt)){var i=Boolean(f.getValue(zt));t=Object.assign(Object.assign({},t),{smoothScrolling:i})}if(e.affectsConfiguration(jt)){var r=f.getValue(jt);t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:r})}if(e.affectsConfiguration(Vt)){var o=f.getValue(Vt);t=Object.assign(Object.assign({},t),{fastScrollSensitivity:o})}Object.keys(t).length>0&&g.updateOptions(t)}))),g.navigator=new Qt((0,o.Z)(g),Object.assign({configurationService:f},l)),g.disposables.add(g.navigator),g}return(0,d.Z)(n,[{key:"updateOptions",value:function(e){(0,a.Z)((0,s.Z)(n.prototype),"updateOptions",this).call(this,e),e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}},{key:"updateStyles",value:function(e){var t;null===(t=this._styler)||void 0===t||t.dispose(),this._styler=(0,ht.Jl)(this,this.themeService,e)}},{key:"dispose",value:function(){var e;null===(e=this._styler)||void 0===e||e.dispose(),this.disposables.dispose(),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}}]),n}(C);qt=pt([gt(5,at.i6),gt(6,vt),gt(7,ft.XE),gt(8,rt.Ui),gt(9,ct.TG)],qt);var $t=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,a,s,l,c,d,h,f,p,g){var v;(0,u.Z)(this,n);var m="undefined"!==typeof c.horizontalScrolling?c.horizontalScrolling:Boolean(p.getValue(Pt)),y=g.invokeFunction(Kt,c),_=(0,r.Z)(y,2),b=_[0],C=_[1];return(v=t.call(this,e,i,a,s,l,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},(0,ht.o)(f.getColorTheme(),ht.O2)),b),{horizontalScrolling:m}))).disposables.add(C),v.contextKeyService=Rt(d,(0,o.Z)(v)),v.themeService=f,v.listSupportsMultiSelect=_t.bindTo(v.contextKeyService),v.listSupportsMultiSelect.set(!1!==c.multipleSelectionSupport),kt.bindTo(v.contextKeyService).set(Boolean(c.selectionNavigation)),v.listHasSelectionOrFocus=Ct.bindTo(v.contextKeyService),v.listDoubleSelection=St.bindTo(v.contextKeyService),v.listMultiSelection=wt.bindTo(v.contextKeyService),v.horizontalScrolling=c.horizontalScrolling,v._useAltAsMultipleSelectionModifier=Ut(p),v.disposables.add(v.contextKeyService),v.disposables.add(h.register((0,o.Z)(v))),c.overrideStyles&&v.updateStyles(c.overrideStyles),v.disposables.add(v.onDidChangeSelection((function(){var e=v.getSelection(),t=v.getFocus();v.contextKeyService.bufferChangeEvents((function(){v.listHasSelectionOrFocus.set(e.length>0||t.length>0),v.listMultiSelection.set(e.length>1),v.listDoubleSelection.set(2===e.length)}))}))),v.disposables.add(v.onDidChangeFocus((function(){var e=v.getSelection(),t=v.getFocus();v.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),v.disposables.add(p.onDidChangeConfiguration((function(e){e.affectsConfiguration(At)&&(v._useAltAsMultipleSelectionModifier=Ut(p));var t={};if(e.affectsConfiguration(Pt)&&void 0===v.horizontalScrolling){var n=Boolean(p.getValue(Pt));t=Object.assign(Object.assign({},t),{horizontalScrolling:n})}if(e.affectsConfiguration(zt)){var i=Boolean(p.getValue(zt));t=Object.assign(Object.assign({},t),{smoothScrolling:i})}if(e.affectsConfiguration(jt)){var r=p.getValue(jt);t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:r})}if(e.affectsConfiguration(Vt)){var o=p.getValue(Vt);t=Object.assign(Object.assign({},t),{fastScrollSensitivity:o})}Object.keys(t).length>0&&v.updateOptions(t)}))),v.navigator=new Jt((0,o.Z)(v),Object.assign({configurationService:p},c)),v.disposables.add(v.navigator),v}return(0,d.Z)(n,[{key:"updateOptions",value:function(e){(0,a.Z)((0,s.Z)(n.prototype),"updateOptions",this).call(this,e),e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}},{key:"updateStyles",value:function(e){var t;null===(t=this._styler)||void 0===t||t.dispose(),this._styler=(0,ht.Jl)(this,this.themeService,e)}},{key:"dispose",value:function(){var e;null===(e=this._styler)||void 0===e||e.dispose(),this.disposables.dispose(),(0,a.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}}]),n}(T);$t=pt([gt(6,at.i6),gt(7,vt),gt(8,ft.XE),gt(9,rt.Ui),gt(10,ct.TG)],$t);var Xt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){var r,o;return(0,u.Z)(this,n),(r=t.call(this)).widget=e,r._onDidOpen=r._register(new g.Q5),r.onDidOpen=r._onDidOpen.event,r._register(g.ju.filter(r.widget.onDidChangeSelection,(function(e){return e.browserEvent instanceof KeyboardEvent}))((function(e){return r.onSelectionFromKeyboard(e)}))),r._register(r.widget.onPointer((function(e){return r.onPointer(e.element,e.browserEvent)}))),r._register(r.widget.onMouseDblClick((function(e){return r.onMouseDblClick(e.element,e.browserEvent)}))),"boolean"!==typeof(null===i||void 0===i?void 0:i.openOnSingleClick)&&(null===i||void 0===i?void 0:i.configurationService)?(r.openOnSingleClick="doubleClick"!==(null===i||void 0===i?void 0:i.configurationService.getValue(Mt)),r._register(null===i||void 0===i?void 0:i.configurationService.onDidChangeConfiguration((function(){r.openOnSingleClick="doubleClick"!==(null===i||void 0===i?void 0:i.configurationService.getValue(Mt))})))):r.openOnSingleClick=null===(o=null===i||void 0===i?void 0:i.openOnSingleClick)||void 0===o||o,r}return(0,d.Z)(n,[{key:"onSelectionFromKeyboard",value:function(e){if(1===e.elements.length){var t=e.browserEvent,n="boolean"!==typeof t.preserveFocus||t.preserveFocus,i="boolean"===typeof t.pinned?t.pinned:!n;this._open(this.getSelectedElement(),n,i,!1,e.browserEvent)}}},{key:"onPointer",value:function(e,t){if(this.openOnSingleClick&&!(2===t.detail)){var n=1===t.button,i=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,n,i,t)}}},{key:"onMouseDblClick",value:function(e,t){if(t){var n=t.target;if(!(n.classList.contains("monaco-tl-twistie")||n.classList.contains("monaco-icon-label")&&n.classList.contains("folder-icon")&&t.offsetX<16)){var i=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,i,t)}}}},{key:"_open",value:function(e,t,n,i,r){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:n,revealIfVisible:!0},sideBySide:i,element:e,browserEvent:r})}}]),n}(v.JT),Qt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){var r;return(0,u.Z)(this,n),(r=t.call(this,e,i)).widget=e,r}return(0,d.Z)(n,[{key:"getSelectedElement",value:function(){return this.widget.getSelectedElements()[0]}}]),n}(Xt),Jt=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){return(0,u.Z)(this,n),t.call(this,e,i)}return(0,d.Z)(n,[{key:"getSelectedElement",value:function(){return this.widget.getSelectedElements()[0]}}]),n}(Xt),en=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){return(0,u.Z)(this,n),t.call(this,e,i)}return(0,d.Z)(n,[{key:"getSelectedElement",value:function(){var e;return null!==(e=this.widget.getSelection()[0])&&void 0!==e?e:void 0}}]),n}(Xt);function tn(e){var t=!1;return function(n){if(n.toKeybinding().isModifierKey())return!1;if(t)return t=!1,!1;var i=e.softDispatch(n,n.target);return(null===i||void 0===i?void 0:i.enterChord)?(t=!0,!1):(t=!1,!i)}}var nn=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,a,s,l,c,d,h,f){var p;(0,u.Z)(this,n);var g=l.invokeFunction(cn,s),v=g.options,m=g.getTypeNavigationMode,y=g.disposable;return(p=t.call(this,e,i,r,a,v)).disposables.add(y),p.internals=new un((0,o.Z)(p),s,m,s.overrideStyles,c,d,h,f),p.disposables.add(p.internals),p}return(0,d.Z)(n,[{key:"updateOptions",value:function(e){(0,a.Z)((0,s.Z)(n.prototype),"updateOptions",this).call(this,e),this.internals.updateOptions(e)}}]),n}(Ae);nn=pt([gt(5,ct.TG),gt(6,at.i6),gt(7,vt),gt(8,ft.XE),gt(9,rt.Ui)],nn);var rn=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,a,s,l,c,d,h,f){var p;(0,u.Z)(this,n);var g=l.invokeFunction(cn,s),v=g.options,m=g.getTypeNavigationMode,y=g.disposable;return(p=t.call(this,e,i,r,a,v)).disposables.add(y),p.internals=new un((0,o.Z)(p),s,m,s.overrideStyles,c,d,h,f),p.disposables.add(p.internals),p}return(0,d.Z)(n,[{key:"updateOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.Z)((0,s.Z)(n.prototype),"updateOptions",this).call(this,e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}}]),n}(Ze);rn=pt([gt(5,ct.TG),gt(6,at.i6),gt(7,vt),gt(8,ft.XE),gt(9,rt.Ui)],rn);var on=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,a,s,l,c,d,h,f,p){var g;(0,u.Z)(this,n);var v=c.invokeFunction(cn,l),m=v.options,y=v.getTypeNavigationMode,_=v.disposable;return(g=t.call(this,e,i,r,a,s,m)).disposables.add(_),g.internals=new un((0,o.Z)(g),l,y,l.overrideStyles,d,h,f,p),g.disposables.add(g.internals),g}return(0,d.Z)(n,[{key:"updateOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.Z)((0,s.Z)(n.prototype),"updateOptions",this).call(this,e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}}]),n}(it);on=pt([gt(6,ct.TG),gt(7,at.i6),gt(8,vt),gt(9,ft.XE),gt(10,rt.Ui)],on);var an=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,a,s,l,c,d,h,f,p){var g;(0,u.Z)(this,n);var v=c.invokeFunction(cn,l),m=v.options,y=v.getTypeNavigationMode,_=v.disposable;return(g=t.call(this,e,i,r,a,s,m)).disposables.add(_),g.internals=new un((0,o.Z)(g),l,y,l.overrideStyles,d,h,f,p),g.disposables.add(g.internals),g}return(0,d.Z)(n,[{key:"onDidOpen",get:function(){return this.internals.onDidOpen}},{key:"updateOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.Z)((0,s.Z)(n.prototype),"updateOptions",this).call(this,e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}}]),n}(Qe);an=pt([gt(6,ct.TG),gt(7,at.i6),gt(8,vt),gt(9,ft.XE),gt(10,rt.Ui)],an);var sn=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,a,s,l,c,d,h,f,p,g){var v;(0,u.Z)(this,n);var m=d.invokeFunction(cn,c),y=m.options,_=m.getTypeNavigationMode,b=m.disposable;return(v=t.call(this,e,i,r,a,s,l,y)).disposables.add(b),v.internals=new un((0,o.Z)(v),c,_,c.overrideStyles,h,f,p,g),v.disposables.add(v.internals),v}return(0,d.Z)(n,[{key:"updateOptions",value:function(e){(0,a.Z)((0,s.Z)(n.prototype),"updateOptions",this).call(this,e),this.internals.updateOptions(e)}}]),n}(tt);function ln(e){var t=e.getValue(Zt);if("highlight"===t)return ce.Highlight;if("filter"===t)return ce.Filter;var n=e.getValue(Ft);return"simple"===n||"highlight"===n?ce.Highlight:"filter"===n?ce.Filter:void 0}function cn(e,t){var n,i=e.get(rt.Ui),o=e.get(lt.u),a=e.get(at.i6),s=e.get(ct.TG),l=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(i.getValue(Pt)),c=s.invokeFunction(Kt,t),u=(0,r.Z)(c,2),d=u[0],h=u[1],f=t.additionalScrollHeight;return{getTypeNavigationMode:function(){var e=a.getContextKeyValue(Lt);return"automatic"===e?m.AA.Automatic:"trigger"===e||!1===a.getContextKeyValue(Ot)?m.AA.Trigger:void 0},disposable:h,options:Object.assign(Object.assign({keyboardSupport:!1},d),{indent:"number"===typeof i.getValue(Bt)?i.getValue(Bt):void 0,renderIndentGuides:i.getValue(Ht),smoothScrolling:Boolean(i.getValue(zt)),defaultFindMode:ln(i),horizontalScrolling:l,additionalScrollHeight:f,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:null!==(n=t.expandOnlyOnTwistieClick)&&void 0!==n?n:"doubleClick"===i.getValue(Wt),contextViewProvider:o})}}sn=pt([gt(7,ct.TG),gt(8,at.i6),gt(9,vt),gt(10,ft.XE),gt(11,rt.Ui)],sn);var un=function(){function e(t,n,i,r,o,a,s,l){var c,d=this;(0,u.Z)(this,e),this.tree=t,this.themeService=s,this.disposables=[],this.contextKeyService=Rt(o,t),this.listSupportsMultiSelect=_t.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==n.multipleSelectionSupport),kt.bindTo(this.contextKeyService).set(Boolean(n.selectionNavigation)),this.listSupportFindWidget=xt.bindTo(this.contextKeyService),this.listSupportFindWidget.set(null===(c=n.findWidgetEnabled)||void 0===c||c),this.hasSelectionOrFocus=Ct.bindTo(this.contextKeyService),this.hasDoubleSelection=St.bindTo(this.contextKeyService),this.hasMultiSelection=wt.bindTo(this.contextKeyService),this.treeElementCanCollapse=Et.bindTo(this.contextKeyService),this.treeElementHasParent=Tt.bindTo(this.contextKeyService),this.treeElementCanExpand=Nt.bindTo(this.contextKeyService),this.treeElementHasChild=It.bindTo(this.contextKeyService),this.treeFindOpen=Dt.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=Ut(l),this.updateStyleOverrides(r);var h=function(){var e=t.getFocus()[0];if(e){var n=t.getNode(e);d.treeElementCanCollapse.set(n.collapsible&&!n.collapsed),d.treeElementHasParent.set(!!t.getParentElement(e)),d.treeElementCanExpand.set(n.collapsible&&n.collapsed),d.treeElementHasChild.set(!!t.getFirstElementChild(e))}},f=new Set;f.add(Lt),f.add(Ot),this.disposables.push(this.contextKeyService,a.register(t),t.onDidChangeSelection((function(){var e=t.getSelection(),n=t.getFocus();d.contextKeyService.bufferChangeEvents((function(){d.hasSelectionOrFocus.set(e.length>0||n.length>0),d.hasMultiSelection.set(e.length>1),d.hasDoubleSelection.set(2===e.length)}))})),t.onDidChangeFocus((function(){var e=t.getSelection(),n=t.getFocus();d.hasSelectionOrFocus.set(e.length>0||n.length>0),h()})),t.onDidChangeCollapseState(h),t.onDidChangeModel(h),t.onDidChangeFindOpenState((function(e){return d.treeFindOpen.set(e)})),l.onDidChangeConfiguration((function(e){var i={};if(e.affectsConfiguration(At)&&(d._useAltAsMultipleSelectionModifier=Ut(l)),e.affectsConfiguration(Bt)){var r=l.getValue(Bt);i=Object.assign(Object.assign({},i),{indent:r})}if(e.affectsConfiguration(Ht)){var o=l.getValue(Ht);i=Object.assign(Object.assign({},i),{renderIndentGuides:o})}if(e.affectsConfiguration(zt)){var a=Boolean(l.getValue(zt));i=Object.assign(Object.assign({},i),{smoothScrolling:a})}if((e.affectsConfiguration(Zt)||e.affectsConfiguration(Ft))&&t.updateOptions({defaultFindMode:ln(l)}),e.affectsConfiguration(Pt)&&void 0===n.horizontalScrolling){var s=Boolean(l.getValue(Pt));i=Object.assign(Object.assign({},i),{horizontalScrolling:s})}if(e.affectsConfiguration(Wt)&&void 0===n.expandOnlyOnTwistieClick&&(i=Object.assign(Object.assign({},i),{expandOnlyOnTwistieClick:"doubleClick"===l.getValue(Wt)})),e.affectsConfiguration(jt)){var c=l.getValue(jt);i=Object.assign(Object.assign({},i),{mouseWheelScrollSensitivity:c})}if(e.affectsConfiguration(Vt)){var u=l.getValue(Vt);i=Object.assign(Object.assign({},i),{fastScrollSensitivity:u})}Object.keys(i).length>0&&t.updateOptions(i)})),this.contextKeyService.onDidChangeContext((function(e){e.affectsSome(f)&&t.updateOptions({typeNavigationMode:i()})}))),this.navigator=new en(t,Object.assign({configurationService:l},n)),this.disposables.push(this.navigator)}return(0,d.Z)(e,[{key:"onDidOpen",get:function(){return this.navigator.onDidOpen}},{key:"updateOptions",value:function(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}},{key:"updateStyleOverrides",value:function(e){(0,v.B9)(this.styler),this.styler=e?(0,ht.Jl)(this.tree,this.themeService,e):v.JT.None}},{key:"dispose",value:function(){this.disposables=(0,v.B9)(this.disposables),(0,v.B9)(this.styler),this.styler=void 0}}]),e}();un=pt([gt(4,at.i6),gt(5,vt),gt(6,ft.XE),gt(7,rt.Ui)],un),dt.B.as(ot.IP.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,J.NC)("workbenchConfigurationTitle","Workbench"),type:"object",properties:(nt={},(0,i.Z)(nt,At,{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,J.NC)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,J.NC)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,J.NC)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")}),(0,i.Z)(nt,Mt,{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,J.NC)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")}),(0,i.Z)(nt,Pt,{type:"boolean",default:!1,description:(0,J.NC)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")}),(0,i.Z)(nt,Bt,{type:"number",default:8,minimum:4,maximum:40,description:(0,J.NC)("tree indent setting","Controls tree indentation in pixels.")}),(0,i.Z)(nt,Ht,{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,J.NC)("render tree indent guides","Controls whether the tree should render indent guides.")}),(0,i.Z)(nt,zt,{type:"boolean",default:!1,description:(0,J.NC)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")}),(0,i.Z)(nt,jt,{type:"number",default:1,markdownDescription:(0,J.NC)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")}),(0,i.Z)(nt,Vt,{type:"number",default:5,description:(0,J.NC)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")}),(0,i.Z)(nt,Zt,{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,J.NC)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,J.NC)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,J.NC)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")}),(0,i.Z)(nt,Ft,{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,J.NC)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,J.NC)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,J.NC)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,J.NC)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,J.NC)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' instead.")}),(0,i.Z)(nt,Wt,{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,J.NC)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")}),nt)})},11561:function(e,t,n){"use strict";n.d(t,{$V:function(){return p},VZ:function(){return u},in:function(){return i},kw:function(){return f}});var i,r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(73097),c=n(11860),u=(0,n(36888).yh)("logService");!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off"}(i||(i={}));var d=i.Info,h=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).level=d,e._onDidChangeLogLevel=e._register(new l.Q5),e}return(0,o.Z)(n,[{key:"setLevel",value:function(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}},{key:"getLevel",value:function(){return this.level}}]),n}(c.JT),f=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return(0,r.Z)(this,n),(e=t.call(this)).setLevel(i),e}return(0,o.Z)(n,[{key:"trace",value:function(e){if(this.getLevel()<=i.Trace){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=console).log.apply(t,["%cTRACE","color: #888",e].concat(r))}}},{key:"debug",value:function(e){if(this.getLevel()<=i.Debug){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=console).log.apply(t,["%cDEBUG","background: #eee; color: #888",e].concat(r))}}},{key:"info",value:function(e){if(this.getLevel()<=i.Info){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=console).log.apply(t,["%c INFO","color: #33f",e].concat(r))}}},{key:"error",value:function(e){if(this.getLevel()<=i.Error){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=console).log.apply(t,["%c ERR","color: #f33",e].concat(r))}}},{key:"dispose",value:function(){}}]),n}(h),p=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).logger=e,i._register(e),i}return(0,o.Z)(n,[{key:"getLevel",value:function(){return this.logger.getLevel()}},{key:"trace",value:function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(t=this.logger).trace.apply(t,[e].concat(i))}},{key:"debug",value:function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(t=this.logger).debug.apply(t,[e].concat(i))}},{key:"info",value:function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(t=this.logger).info.apply(t,[e].concat(i))}},{key:"error",value:function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(t=this.logger).error.apply(t,[e].concat(i))}}]),n}(c.JT)},46813:function(e,t,n){"use strict";n.d(t,{H0:function(){return r},ZL:function(){return i},lT:function(){return l}});var i,r,o=n(49750),a=n(27722),s=n(36888);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(i||(i={})),function(e){e.compare=function(e,t){return t-e};var t=Object.create(null);t[e.Error]=(0,a.NC)("sev.error","Error"),t[e.Warning]=(0,a.NC)("sev.warning","Warning"),t[e.Info]=(0,a.NC)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case o.Z.Error:return e.Error;case o.Z.Warning:return e.Warning;case o.Z.Info:return e.Info;case o.Z.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return o.Z.Error;case e.Warning:return o.Z.Warning;case e.Info:return o.Z.Info;case e.Hint:return o.Z.Ignore}}}(i||(i={})),function(e){var t="";function n(e,n){var r=[t];return e.source?r.push(e.source.replace("\xa6","\\\xa6")):r.push(t),e.code?"string"===typeof e.code?r.push(e.code.replace("\xa6","\\\xa6")):r.push(e.code.value.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.severity&&null!==e.severity?r.push(i.toString(e.severity)):r.push(t),e.message&&n?r.push(e.message.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?r.push(e.startLineNumber.toString()):r.push(t),void 0!==e.startColumn&&null!==e.startColumn?r.push(e.startColumn.toString()):r.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?r.push(e.endLineNumber.toString()):r.push(t),void 0!==e.endColumn&&null!==e.endColumn?r.push(e.endColumn.toString()):r.push(t),r.push(t),r.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(r||(r={}));var l=(0,s.yh)("markerService")},15493:function(e,t,n){"use strict";n.d(t,{EO:function(){return c},lT:function(){return l},zb:function(){return s}});var i=n(43144),r=n(15671),o=n(49750),a=n(36888),s=o.Z,l=(0,a.yh)("notificationService"),c=(0,i.Z)((function e(){(0,r.Z)(this,e)}))},83078:function(e,t,n){"use strict";n.d(t,{Gs:function(){return h},SW:function(){return u},v4:function(){return c},xI:function(){return f},xn:function(){return d}});var i=n(74165),r=n(11860),o=n(32377),a=n(72112),s=n(36888),l=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},c=(0,s.yh)("openerService"),u=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return r.JT.None},registerValidator:function(){return r.JT.None},registerExternalUriResolver:function(){return r.JT.None},setDefaultExternalOpener:function(){},registerExternalOpener:function(){return r.JT.None},open:function(){return l(this,void 0,void 0,(0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})))},resolveExternalUri:function(e){return l(this,void 0,void 0,(0,i.Z)().mark((function t(){return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{resolved:e,dispose:function(){}});case 1:case"end":return t.stop()}}),t)})))}});function d(e,t){return a.o.isUri(e)?(0,o.qq)(e.scheme,t):(0,o.ok)(e,t+":")}function h(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.some((function(t){return d(e,t)}))}function f(e){var t=void 0,n=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return n&&(t={startLineNumber:parseInt(n[1]),startColumn:n[2]?parseInt(n[2]):1,endLineNumber:n[4]?parseInt(n[4]):void 0,endColumn:n[4]?n[5]?parseInt(n[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},47901:function(e,t,n){"use strict";n.d(t,{Ex:function(){return s},R9:function(){return a},ek:function(){return l}});var i=n(15671),r=n(43144),o=n(36888),a=(0,o.yh)("progressService"),s=(Object.freeze({total:function(){},worked:function(){},done:function(){}}),function(){function e(t){(0,i.Z)(this,e),this.callback=t}return(0,r.Z)(e,[{key:"report",value:function(e){this._value=e,this.callback(this._value)}}]),e}());s.None=Object.freeze({report:function(){}});var l=(0,o.yh)("editorProgressService")},83672:function(e,t,n){"use strict";n.d(t,{IP:function(){return u},Ry:function(){return i}});var i,r=n(93433),o=n(15671),a=n(43144),s=n(29671),l=n(11860),c=n(69077);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(i||(i={}));var u={Quickaccess:"workbench.contributions.quickaccess"},d=function(){function e(){(0,o.Z)(this,e),this.providers=[],this.defaultProvider=void 0}return(0,a.Z)(e,[{key:"registerQuickAccessProvider",value:function(e){var t=this;return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort((function(e,t){return t.prefix.length-e.prefix.length})),(0,l.OF)((function(){t.providers.splice(t.providers.indexOf(e),1),t.defaultProvider===e&&(t.defaultProvider=void 0)}))}},{key:"getQuickAccessProviders",value:function(){return(0,s.kX)([this.defaultProvider].concat((0,r.Z)(this.providers)))}},{key:"getQuickAccessProvider",value:function(e){return e&&this.providers.find((function(t){return e.startsWith(t.prefix)}))||void 0||this.defaultProvider}}]),e}();c.B.add(u.Quickaccess,new d)},23664:function(e,t,n){"use strict";n.d(t,{eJ:function(){return o},jG:function(){return r.jG}});var i=n(36888),r=n(57090),o=(0,i.yh)("quickInputService")},69077:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var i=n(15671),r=n(43144),o=n(51492),a=n(85294),s=new(function(){function e(){(0,i.Z)(this,e),this.data=new Map}return(0,r.Z)(e,[{key:"add",value:function(e,t){o.ok(a.HD(e)),o.ok(a.Kn(t)),o.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}},{key:"as",value:function(e){return this.data.get(e)||null}}]),e}())},69681:function(e,t,n){"use strict";n.d(t,{Uy:function(){return C},vm:function(){return w},fk:function(){return m}});var i,r=n(15671),o=n(43144),a=n(60136),s=n(27277),l=n(73097),c=n(11860),u=n(85294),d=n(74165),h=n(11752),f=n(61120),p=n(60022),g=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};!function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(i||(i={}));var v=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null);return(0,r.Z)(this,n),(o=t.call(this)).database=e,o.options=a,o._onDidChangeStorage=o._register(new l.Q5),o.onDidChangeStorage=o._onDidChangeStorage.event,o.state=i.None,o.cache=new Map,o.flushDelayer=new p.rH(n.DEFAULT_FLUSH_DELAY),o.pendingDeletes=new Set,o.pendingInserts=new Map,o.whenFlushedCallbacks=[],o.registerListeners(),o}return(0,o.Z)(n,[{key:"registerListeners",value:function(){var e=this;this._register(this.database.onDidChangeItemsExternal((function(t){return e.onDidChangeItemsExternal(t)})))}},{key:"onDidChangeItemsExternal",value:function(e){var t,n,i=this;null===(t=e.changed)||void 0===t||t.forEach((function(e,t){return i.accept(t,e)})),null===(n=e.deleted)||void 0===n||n.forEach((function(e){return i.accept(e,void 0)}))}},{key:"accept",value:function(e,t){if(this.state!==i.Closed){var n=!1;if((0,u.Jp)(t))n=this.cache.delete(e);else this.cache.get(e)!==t&&(this.cache.set(e,t),n=!0);n&&this._onDidChangeStorage.fire(e)}}},{key:"get",value:function(e,t){var n=this.cache.get(e);return(0,u.Jp)(n)?t:n}},{key:"getBoolean",value:function(e,t){var n=this.get(e);return(0,u.Jp)(n)?t:"true"===n}},{key:"getNumber",value:function(e,t){var n=this.get(e);return(0,u.Jp)(n)?t:parseInt(n,10)}},{key:"set",value:function(e,t){return g(this,void 0,void 0,(0,d.Z)().mark((function n(){var r;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.state!==i.Closed){n.next=2;break}return n.abrupt("return");case 2:if(!(0,u.Jp)(t)){n.next=4;break}return n.abrupt("return",this.delete(e));case 4:if(r=String(t),this.cache.get(e)!==r){n.next=8;break}return n.abrupt("return");case 8:return this.cache.set(e,r),this.pendingInserts.set(e,r),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire(e),n.abrupt("return",this.doFlush());case 13:case"end":return n.stop()}}),n,this)})))}},{key:"delete",value:function(e){return g(this,void 0,void 0,(0,d.Z)().mark((function t(){return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.state!==i.Closed){t.next=2;break}return t.abrupt("return");case 2:if(this.cache.delete(e)){t.next=5;break}return t.abrupt("return");case 5:return this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire(e),t.abrupt("return",this.doFlush());case 9:case"end":return t.stop()}}),t,this)})))}},{key:"hasPending",get:function(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}},{key:"flushPending",value:function(){return g(this,void 0,void 0,(0,d.Z)().mark((function e(){var t,n=this;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasPending){e.next=2;break}return e.abrupt("return");case 2:return t={insert:this.pendingInserts,delete:this.pendingDeletes},this.pendingDeletes=new Set,this.pendingInserts=new Map,e.abrupt("return",this.database.updateItems(t).finally((function(){var e;if(!n.hasPending)for(;n.whenFlushedCallbacks.length;)null===(e=n.whenFlushedCallbacks.pop())||void 0===e||e()})));case 6:case"end":return e.stop()}}),e,this)})))}},{key:"doFlush",value:function(e){return g(this,void 0,void 0,(0,d.Z)().mark((function t(){var n=this;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.flushDelayer.trigger((function(){return n.flushPending()}),e));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"dispose",value:function(){this.flushDelayer.dispose(),(0,h.Z)((0,f.Z)(n.prototype),"dispose",this).call(this)}}]),n}(c.JT);v.DEFAULT_FLUSH_DELAY=100;var m,y=function(){function e(){(0,r.Z)(this,e),this.onDidChangeItemsExternal=l.ju.None,this.items=new Map}return(0,o.Z)(e,[{key:"updateItems",value:function(e){var t,n;return g(this,void 0,void 0,(0,d.Z)().mark((function i(){var r=this;return(0,d.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:null===(t=e.insert)||void 0===t||t.forEach((function(e,t){return r.items.set(t,e)})),null===(n=e.delete)||void 0===n||n.forEach((function(e){return r.items.delete(e)}));case 2:case"end":return i.stop()}}),i)})))}}]),e}(),_=n(36888),b="__$__targetStorageMarker",C=(0,_.yh)("storageService");!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(m||(m={}));var S=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{flushInterval:n.DEFAULT_FLUSH_INTERVAL};return(0,r.Z)(this,n),(e=t.call(this)).options=i,e._onDidChangeValue=e._register(new l.K3),e.onDidChangeValue=e._onDidChangeValue.event,e._onDidChangeTarget=e._register(new l.K3),e._onWillSaveState=e._register(new l.Q5),e.onWillSaveState=e._onWillSaveState.event,e._workspaceKeyTargets=void 0,e._profileKeyTargets=void 0,e._applicationKeyTargets=void 0,e}return(0,o.Z)(n,[{key:"emitDidChangeValue",value:function(e,t){if(t===b){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}},{key:"get",value:function(e,t,n){var i;return null===(i=this.getStorage(t))||void 0===i?void 0:i.get(e,n)}},{key:"getBoolean",value:function(e,t,n){var i;return null===(i=this.getStorage(t))||void 0===i?void 0:i.getBoolean(e,n)}},{key:"getNumber",value:function(e,t,n){var i;return null===(i=this.getStorage(t))||void 0===i?void 0:i.getNumber(e,n)}},{key:"store",value:function(e,t,n,i){var r=this;(0,u.Jp)(t)?this.remove(e,n):this.withPausedEmitters((function(){var o;r.updateKeyTarget(e,n,i),null===(o=r.getStorage(n))||void 0===o||o.set(e,t)}))}},{key:"remove",value:function(e,t){var n=this;this.withPausedEmitters((function(){var i;n.updateKeyTarget(e,t,void 0),null===(i=n.getStorage(t))||void 0===i||i.delete(e)}))}},{key:"withPausedEmitters",value:function(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}},{key:"updateKeyTarget",value:function(e,t,n){var i,r,o=this.getKeyTargets(t);"number"===typeof n?o[e]!==n&&(o[e]=n,null===(i=this.getStorage(t))||void 0===i||i.set(b,JSON.stringify(o))):"number"===typeof o[e]&&(delete o[e],null===(r=this.getStorage(t))||void 0===r||r.set(b,JSON.stringify(o)))}},{key:"workspaceKeyTargets",get:function(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}},{key:"profileKeyTargets",get:function(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}},{key:"applicationKeyTargets",get:function(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}},{key:"getKeyTargets",value:function(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}},{key:"loadKeyTargets",value:function(e){var t=this.get(b,e);if(t)try{return JSON.parse(t)}catch(n){}return Object.create(null)}}]),n}(c.JT);S.DEFAULT_FLUSH_INTERVAL=6e4;var w=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).applicationStorage=e._register(new v(new y)),e.profileStorage=e._register(new v(new y)),e.workspaceStorage=e._register(new v(new y)),e._register(e.workspaceStorage.onDidChangeStorage((function(t){return e.emitDidChangeValue(1,t)}))),e._register(e.profileStorage.onDidChangeStorage((function(t){return e.emitDidChangeValue(0,t)}))),e._register(e.applicationStorage.onDidChangeStorage((function(t){return e.emitDidChangeValue(-1,t)}))),e}return(0,o.Z)(n,[{key:"getStorage",value:function(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}]),n}(S)},15323:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i=(0,n(36888).yh)("telemetryService")},32379:function(e,t,n){"use strict";n.d(t,{$DX:function(){return qt},$d5:function(){return Dt},ABB:function(){return ie},AS1:function(){return Lt},AWI:function(){return De},BOY:function(){return Cn},Bqu:function(){return bt},C3g:function(){return j},CA6:function(){return mn},CNo:function(){return Ge},Cdg:function(){return Ut},CzK:function(){return it},D0T:function(){return _e},D1_:function(){return Ce},DEr:function(){return Gt},Dut:function(){return ge},E3h:function(){return $t},EPQ:function(){return B},EQn:function(){return Ht},ES4:function(){return Ae},EiJ:function(){return ze},F3d:function(){return Nt},F9q:function(){return ht},Fm_:function(){return ln},Fu1:function(){return tt},GO4:function(){return X},Gj_:function(){return fn},Gwp:function(){return Ot},HCL:function(){return Je},Hfx:function(){return be},Hz8:function(){return Kt},IPX:function(){return p},IYc:function(){return dn},Ido:function(){return S},Itd:function(){return vn},Ivo:function(){return pn},JpG:function(){return bn},K19:function(){return Le},LLc:function(){return gt},L_H:function(){return ae},L_t:function(){return vt},LoV:function(){return Ke},M6C:function(){return St},MUv:function(){return Fe},NOs:function(){return ye},NPS:function(){return jt},Ng6:function(){return Se},OLZ:function(){return Sn},OZR:function(){return U},Oop:function(){return _t},P4M:function(){return at},P6G:function(){return m},P6Y:function(){return dt},PRb:function(){return A},PX0:function(){return Rt},PpC:function(){return $e},Pvw:function(){return P},QO2:function(){return f},R80:function(){return k},RV_:function(){return H},Rzx:function(){return Me},SPM:function(){return cn},SUG:function(){return z},SUY:function(){return un},Saq:function(){return Pt},Sbf:function(){return Ue},Snq:function(){return Nn},SwI:function(){return I},T83:function(){return pe},Tnx:function(){return wt},UnT:function(){return Ft},VVv:function(){return qe},Vqd:function(){return Wt},XEs:function(){return M},XL$:function(){return ft},XZx:function(){return w},Xy4:function(){return yn},YI3:function(){return F},ZGJ:function(){return Xt},ZnX:function(){return xn},_2n:function(){return yt},_Yy:function(){return Ye},_bK:function(){return mt},_lC:function(){return Z},_t9:function(){return W},_wn:function(){return te},b6y:function(){return le},b7$:function(){return $},bKB:function(){return Qe},brw:function(){return _n},c63:function(){return fe},cbQ:function(){return Vt},cvW:function(){return me},dCr:function(){return Ct},dRz:function(){return C},dt_:function(){return R},etL:function(){return ne},fEB:function(){return ve},few:function(){return he},g8u:function(){return J},g_n:function(){return Pe},gkn:function(){return je},gpD:function(){return ce},hEj:function(){return Oe},hX8:function(){return Xe},hzo:function(){return st},j51:function(){return ct},j5u:function(){return q},jUe:function(){return Be},jbW:function(){return Yt},kJk:function(){return Ee},kVY:function(){return gn},keg:function(){return rt},kvU:function(){return Et},kwl:function(){return En},lRK:function(){return x},lUq:function(){return Qt},lWp:function(){return Ie},lXJ:function(){return se},loF:function(){return xe},mHy:function(){return pt},mV1:function(){return It},nyM:function(){return Ze},oQ$:function(){return Ne},oSI:function(){return Mt},opG:function(){return Te},ov3:function(){return hn},pW3:function(){return de},paE:function(){return V},phM:function(){return et},pnM:function(){return He},ptc:function(){return Ve},qeD:function(){return ee},rg2:function(){return kt},rh:function(){return D},s$:function(){return Tt},sEe:function(){return L},sKV:function(){return nt},sgC:function(){return N},tZ6:function(){return ke},uoC:function(){return ue},url:function(){return T},uxu:function(){return Bt},vGG:function(){return At},xL1:function(){return E},xi6:function(){return lt},y65:function(){return Zt},yJx:function(){return We},yb5:function(){return Re},ynu:function(){return re},ypS:function(){return ot},ytC:function(){return xt},zJb:function(){return O},zKr:function(){return we},zOm:function(){return ut},zRJ:function(){return oe}});var i=n(37762),r=n(15671),o=n(43144),a=n(60022),s=n(62458),l=n(73097),c=n(85294),u=n(27722),d=n(21775),h=n(69077);function f(e){return"--vscode-".concat(e.replace(/\./g,"-"))}var p={ColorContribution:"base.contributions.colors"},g=function(){function e(){(0,r.Z)(this,e),this._onDidChangeSchema=new l.Q5,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return(0,o.Z)(e,[{key:"registerColor",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0,o={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=o;var a={type:"string",description:n,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(a.deprecationMessage=r),this.colorSchema.properties[e]=a,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}},{key:"getColors",value:function(){var e=this;return Object.keys(this.colorsById).map((function(t){return e.colorsById[t]}))}},{key:"resolveDefaultColor",value:function(e,t){var n=this.colorsById[e];if(n&&n.defaults)return Nn(n.defaults[t.type],t)}},{key:"getColorSchema",value:function(){return this.colorSchema}},{key:"toString",value:function(){var e=this;return Object.keys(this.colorsById).sort((function(e,t){var n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)})).map((function(t){return"- `".concat(t,"`: ").concat(e.colorsById[t].description)})).join("\n")}}]),e}(),v=new g;function m(e,t,n,i,r){return v.registerColor(e,(null===(o=t)||"undefined"===typeof o.hcLight&&(null===o.hcDark||"string"===typeof o.hcDark?o.hcLight=o.hcDark:o.hcLight=o.light),o),n,i,r);var o}h.B.add(p.ColorContribution,v);var y,_,b,C=m("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},u.NC("foreground","Overall foreground color. This color is only used if not overridden by a component.")),S=(m("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},u.NC("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),m("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},u.NC("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component."))),w=(m("descriptionForeground",{light:"#717171",dark:xn(C,.7),hcDark:xn(C,.7),hcLight:xn(C,.7)},u.NC("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),m("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},u.NC("iconForeground","The default color for icons in the workbench."))),k=m("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#0F4A85"},u.NC("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),x=m("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},u.NC("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),E=m("contrastActiveBorder",{light:null,dark:null,hcDark:k,hcLight:k},u.NC("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),T=(m("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},u.NC("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),m("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Il.black,hcLight:"#292929"},u.NC("textSeparatorForeground","Color for text separators.")),m("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},u.NC("textLinkForeground","Foreground color for links in text."))),N=m("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},u.NC("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),I=(m("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#D7BA7D",hcLight:"#292929"},u.NC("textPreformatForeground","Foreground color for preformatted text segments.")),m("textBlockQuote.background",{light:"#7f7f7f1a",dark:"#7f7f7f1a",hcDark:null,hcLight:"#F2F2F2"},u.NC("textBlockQuoteBackground","Background color for block quotes in text.")),m("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Il.white,hcLight:"#292929"},u.NC("textBlockQuoteBorder","Border color for block quotes in text.")),m("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Il.black,hcLight:"#F2F2F2"},u.NC("textCodeBlockBackground","Background color for code blocks in text."))),D=m("widget.shadow",{dark:xn(s.Il.black,.36),light:xn(s.Il.black,.16),hcDark:null,hcLight:null},u.NC("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),L=m("input.background",{dark:"#3C3C3C",light:s.Il.white,hcDark:s.Il.black,hcLight:s.Il.white},u.NC("inputBoxBackground","Input box background.")),O=m("input.foreground",{dark:C,light:C,hcDark:C,hcLight:C},u.NC("inputBoxForeground","Input box foreground.")),R=m("input.border",{dark:null,light:null,hcDark:x,hcLight:x},u.NC("inputBoxBorder","Input box border.")),A=m("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hcDark:x,hcLight:x},u.NC("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),M=(m("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},u.NC("inputOption.hoverBackground","Background color of activated options in input fields.")),m("inputOption.activeBackground",{dark:xn(k,.4),light:xn(k,.2),hcDark:s.Il.transparent,hcLight:s.Il.transparent},u.NC("inputOption.activeBackground","Background hover color of options in input fields."))),P=m("inputOption.activeForeground",{dark:s.Il.white,light:s.Il.black,hcDark:null,hcLight:C},u.NC("inputOption.activeForeground","Foreground color of activated options in input fields.")),Z=(m("input.placeholderForeground",{light:xn(C,.5),dark:xn(C,.5),hcDark:xn(C,.7),hcLight:xn(C,.7)},u.NC("inputPlaceholderForeground","Input box foreground color for placeholder text.")),m("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Il.black,hcLight:s.Il.white},u.NC("inputValidationInfoBackground","Input validation background color for information severity."))),F=m("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:C},u.NC("inputValidationInfoForeground","Input validation foreground color for information severity.")),B=m("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:x,hcLight:x},u.NC("inputValidationInfoBorder","Input validation border color for information severity.")),H=m("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Il.black,hcLight:s.Il.white},u.NC("inputValidationWarningBackground","Input validation background color for warning severity.")),z=m("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:C},u.NC("inputValidationWarningForeground","Input validation foreground color for warning severity.")),j=m("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:x,hcLight:x},u.NC("inputValidationWarningBorder","Input validation border color for warning severity.")),V=m("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Il.black,hcLight:s.Il.white},u.NC("inputValidationErrorBackground","Input validation background color for error severity.")),W=m("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:C},u.NC("inputValidationErrorForeground","Input validation foreground color for error severity.")),U=m("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:x,hcLight:x},u.NC("inputValidationErrorBorder","Input validation border color for error severity.")),G=m("dropdown.background",{dark:"#3C3C3C",light:s.Il.white,hcDark:s.Il.black,hcLight:s.Il.white},u.NC("dropdownBackground","Dropdown background.")),K=(m("dropdown.listBackground",{dark:null,light:null,hcDark:s.Il.black,hcLight:s.Il.white},u.NC("dropdownListBackground","Dropdown list background.")),m("dropdown.foreground",{dark:"#F0F0F0",light:null,hcDark:s.Il.white,hcLight:C},u.NC("dropdownForeground","Dropdown foreground."))),Y=m("dropdown.border",{dark:G,light:"#CECECE",hcDark:x,hcLight:x},u.NC("dropdownBorder","Dropdown border.")),q=(m("checkbox.background",{dark:G,light:G,hcDark:G,hcLight:G},u.NC("checkbox.background","Background color of checkbox widget.")),m("checkbox.foreground",{dark:K,light:K,hcDark:K,hcLight:K},u.NC("checkbox.foreground","Foreground color of checkbox widget.")),m("checkbox.border",{dark:Y,light:Y,hcDark:Y,hcLight:Y},u.NC("checkbox.border","Border color of checkbox widget.")),m("button.foreground",{dark:s.Il.white,light:s.Il.white,hcDark:s.Il.white,hcLight:s.Il.white},u.NC("buttonForeground","Button foreground color."))),$=(m("button.separator",{dark:xn(q,.4),light:xn(q,.4),hcDark:xn(q,.4),hcLight:xn(q,.4)},u.NC("buttonSeparator","Button separator color.")),m("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},u.NC("buttonBackground","Button background color."))),X=m("button.hoverBackground",{dark:kn($,.2),light:wn($,.2),hcDark:null,hcLight:null},u.NC("buttonHoverBackground","Button background color when hovering.")),Q=(m("button.border",{dark:x,light:x,hcDark:x,hcLight:x},u.NC("buttonBorder","Button border color.")),m("button.secondaryForeground",{dark:s.Il.white,light:s.Il.white,hcDark:s.Il.white,hcLight:C},u.NC("buttonSecondaryForeground","Secondary button foreground color.")),m("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Il.white},u.NC("buttonSecondaryBackground","Secondary button background color."))),J=(m("button.secondaryHoverBackground",{dark:kn(Q,.2),light:wn(Q,.2),hcDark:null,hcLight:null},u.NC("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),m("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Il.black,hcLight:"#0F4A85"},u.NC("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),ee=m("badge.foreground",{dark:s.Il.white,light:"#333",hcDark:s.Il.white,hcLight:s.Il.white},u.NC("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),te=m("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},u.NC("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),ne=m("scrollbarSlider.background",{dark:s.Il.fromHex("#797979").transparent(.4),light:s.Il.fromHex("#646464").transparent(.4),hcDark:xn(x,.6),hcLight:xn(x,.4)},u.NC("scrollbarSliderBackground","Scrollbar slider background color.")),ie=m("scrollbarSlider.hoverBackground",{dark:s.Il.fromHex("#646464").transparent(.7),light:s.Il.fromHex("#646464").transparent(.7),hcDark:xn(x,.8),hcLight:xn(x,.8)},u.NC("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),re=m("scrollbarSlider.activeBackground",{dark:s.Il.fromHex("#BFBFBF").transparent(.4),light:s.Il.fromHex("#000000").transparent(.6),hcDark:x,hcLight:x},u.NC("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),oe=m("progressBar.background",{dark:s.Il.fromHex("#0E70C0"),light:s.Il.fromHex("#0E70C0"),hcDark:x,hcLight:x},u.NC("progressBarBackground","Background color of the progress bar that can show for long running operations.")),ae=m("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),se=m("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},u.NC("editorError.foreground","Foreground color of error squigglies in the editor.")),le=m("editorError.border",{dark:null,light:null,hcDark:s.Il.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},u.NC("errorBorder","Border color of error boxes in the editor.")),ce=m("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),ue=m("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD37",hcLight:"#895503"},u.NC("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),de=m("editorWarning.border",{dark:null,light:null,hcDark:s.Il.fromHex("#FFCC00").transparent(.8),hcLight:"#"},u.NC("warningBorder","Border color of warning boxes in the editor.")),he=m("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),fe=m("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},u.NC("editorInfo.foreground","Foreground color of info squigglies in the editor.")),pe=m("editorInfo.border",{dark:null,light:null,hcDark:s.Il.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},u.NC("infoBorder","Border color of info boxes in the editor.")),ge=m("editorHint.foreground",{dark:s.Il.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},u.NC("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ve=m("editorHint.border",{dark:null,light:null,hcDark:s.Il.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},u.NC("hintBorder","Border color of hint boxes in the editor.")),me=(m("sash.hoverBorder",{dark:k,light:k,hcDark:k,hcLight:k},u.NC("sashActiveBorder","Border color of active sashes.")),m("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Il.black,hcLight:s.Il.white},u.NC("editorBackground","Editor background color."))),ye=m("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Il.white,hcLight:C},u.NC("editorForeground","Editor default foreground color.")),_e=(m("editorStickyScroll.background",{light:me,dark:me,hcDark:me,hcLight:me},u.NC("editorStickyScrollBackground","Sticky scroll background color for the editor")),m("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Il.fromHex("#0F4A85").transparent(.1)},u.NC("editorStickyScrollHoverBackground","Sticky scroll on hover background color for the editor")),m("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Il.white},u.NC("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),be=m("editorWidget.foreground",{dark:C,light:C,hcDark:C,hcLight:C},u.NC("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),Ce=m("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:x,hcLight:x},u.NC("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),Se=m("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},u.NC("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),we=m("quickInput.background",{dark:_e,light:_e,hcDark:_e,hcLight:_e},u.NC("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),ke=m("quickInput.foreground",{dark:be,light:be,hcDark:be,hcLight:be},u.NC("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),xe=m("quickInputTitle.background",{dark:new s.Il(new s.VS(255,255,255,.105)),light:new s.Il(new s.VS(0,0,0,.06)),hcDark:"#000000",hcLight:s.Il.white},u.NC("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),Ee=m("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Il.white,hcLight:"#0F4A85"},u.NC("pickerGroupForeground","Quick picker color for grouping labels.")),Te=m("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Il.white,hcLight:"#0F4A85"},u.NC("pickerGroupBorder","Quick picker color for grouping borders.")),Ne=m("keybindingLabel.background",{dark:new s.Il(new s.VS(128,128,128,.17)),light:new s.Il(new s.VS(221,221,221,.4)),hcDark:s.Il.transparent,hcLight:s.Il.transparent},u.NC("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),Ie=m("keybindingLabel.foreground",{dark:s.Il.fromHex("#CCCCCC"),light:s.Il.fromHex("#555555"),hcDark:s.Il.white,hcLight:C},u.NC("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),De=m("keybindingLabel.border",{dark:new s.Il(new s.VS(51,51,51,.6)),light:new s.Il(new s.VS(204,204,204,.4)),hcDark:new s.Il(new s.VS(111,195,223)),hcLight:x},u.NC("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),Le=m("keybindingLabel.bottomBorder",{dark:new s.Il(new s.VS(68,68,68,.6)),light:new s.Il(new s.VS(187,187,187,.4)),hcDark:new s.Il(new s.VS(111,195,223)),hcLight:C},u.NC("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Oe=m("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},u.NC("editorSelectionBackground","Color of the editor selection.")),Re=m("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Il.white},u.NC("editorSelectionForeground","Color of the selected text for high contrast.")),Ae=m("editor.inactiveSelectionBackground",{light:xn(Oe,.5),dark:xn(Oe,.5),hcDark:xn(Oe,.7),hcLight:xn(Oe,.5)},u.NC("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Me=m("editor.selectionHighlightBackground",{light:Tn(Oe,me,.3,.6),dark:Tn(Oe,me,.3,.6),hcDark:null,hcLight:null},u.NC("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Pe=m("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:E,hcLight:E},u.NC("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),Ze=m("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},u.NC("editorFindMatch","Color of the current search match.")),Fe=m("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},u.NC("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Be=m("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},u.NC("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),He=m("editor.findMatchBorder",{light:null,dark:null,hcDark:E,hcLight:E},u.NC("editorFindMatchBorder","Border color of the current search match.")),ze=m("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:E,hcLight:E},u.NC("findMatchHighlightBorder","Border color of the other search matches.")),je=m("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:xn(E,.4),hcLight:xn(E,.4)},u.NC("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Ve=(m("searchEditor.findMatchBackground",{light:xn(Fe,.66),dark:xn(Fe,.66),hcDark:Fe,hcLight:Fe},u.NC("searchEditor.queryMatch","Color of the Search Editor query matches.")),m("searchEditor.findMatchBorder",{light:xn(ze,.66),dark:xn(ze,.66),hcDark:ze,hcLight:ze},u.NC("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches.")),m("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},u.NC("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0)),We=m("editorHoverWidget.background",{light:_e,dark:_e,hcDark:_e,hcLight:_e},u.NC("hoverBackground","Background color of the editor hover.")),Ue=m("editorHoverWidget.foreground",{light:be,dark:be,hcDark:be,hcLight:be},u.NC("hoverForeground","Foreground color of the editor hover.")),Ge=m("editorHoverWidget.border",{light:Ce,dark:Ce,hcDark:Ce,hcLight:Ce},u.NC("hoverBorder","Border color of the editor hover.")),Ke=m("editorHoverWidget.statusBarBackground",{dark:kn(We,.2),light:wn(We,.05),hcDark:_e,hcLight:_e},u.NC("statusBarBackground","Background color of the editor hover status bar.")),Ye=m("editorLink.activeForeground",{dark:"#4E94CE",light:s.Il.blue,hcDark:s.Il.cyan,hcLight:"#292929"},u.NC("activeLinkForeground","Color of active links.")),qe=m("editorInlayHint.foreground",{dark:xn(ee,.8),light:xn(ee,.8),hcDark:ee,hcLight:ee},u.NC("editorInlayHintForeground","Foreground color of inline hints")),$e=m("editorInlayHint.background",{dark:xn(J,.6),light:xn(J,.3),hcDark:J,hcLight:J},u.NC("editorInlayHintBackground","Background color of inline hints")),Xe=m("editorInlayHint.typeForeground",{dark:qe,light:qe,hcDark:qe,hcLight:qe},u.NC("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),Qe=m("editorInlayHint.typeBackground",{dark:$e,light:$e,hcDark:$e,hcLight:$e},u.NC("editorInlayHintBackgroundTypes","Background color of inline hints for types")),Je=m("editorInlayHint.parameterForeground",{dark:qe,light:qe,hcDark:qe,hcLight:qe},u.NC("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),et=m("editorInlayHint.parameterBackground",{dark:$e,light:$e,hcDark:$e,hcLight:$e},u.NC("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),tt=m("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},u.NC("editorLightBulbForeground","The color used for the lightbulb actions icon.")),nt=m("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},u.NC("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),it=new s.Il(new s.VS(155,185,85,.2)),rt=new s.Il(new s.VS(255,0,0,.2)),ot=m("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c66",hcDark:null,hcLight:null},u.NC("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),at=m("diffEditor.removedTextBackground",{dark:"#ff000066",light:"#ff00004d",hcDark:null,hcLight:null},u.NC("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),st=m("diffEditor.insertedLineBackground",{dark:it,light:it,hcDark:null,hcLight:null},u.NC("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),lt=m("diffEditor.removedLineBackground",{dark:rt,light:rt,hcDark:null,hcLight:null},u.NC("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),ct=m("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),ut=m("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),dt=m("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),ht=m("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),ft=m("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},u.NC("diffEditorInsertedOutline","Outline color for the text that got inserted.")),pt=m("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},u.NC("diffEditorRemovedOutline","Outline color for text that got removed.")),gt=m("diffEditor.border",{dark:null,light:null,hcDark:x,hcLight:x},u.NC("diffEditorBorder","Border color between the two text editors.")),vt=m("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},u.NC("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),mt=m("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),yt=m("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),_t=m("list.focusOutline",{dark:k,light:k,hcDark:E,hcLight:E},u.NC("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),bt=m("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),Ct=m("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Il.fromHex("#0F4A85").transparent(.1)},u.NC("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),St=m("list.activeSelectionForeground",{dark:s.Il.white,light:s.Il.white,hcDark:null,hcLight:null},u.NC("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),wt=m("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),kt=m("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Il.fromHex("#0F4A85").transparent(.1)},u.NC("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),xt=m("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Et=m("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Tt=m("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Nt=m("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),It=m("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Il.fromHex("#0F4A85").transparent(.1)},u.NC("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Dt=m("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),Lt=m("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},u.NC("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),Ot=m("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:k,hcLight:k},u.NC("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Rt=m("list.focusHighlightForeground",{dark:Ot,light:(y=Ct,_=Ot,b="#BBE7FF",{op:5,if:y,then:_,else:b}),hcDark:Ot,hcLight:Ot},u.NC("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),At=(m("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},u.NC("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),m("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},u.NC("listErrorForeground","Foreground color of list items containing errors.")),m("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},u.NC("listWarningForeground","Foreground color of list items containing warnings.")),m("listFilterWidget.background",{light:wn(_e,0),dark:kn(_e,0),hcDark:_e,hcLight:_e},u.NC("listFilterWidgetBackground","Background color of the type filter widget in lists and trees."))),Mt=m("listFilterWidget.outline",{dark:s.Il.transparent,light:s.Il.transparent,hcDark:"#f38518",hcLight:"#007ACC"},u.NC("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Pt=m("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:x,hcLight:x},u.NC("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Zt=m("listFilterWidget.shadow",{dark:D,light:D,hcDark:D,hcLight:D},u.NC("listFilterWidgetShadow","Shadown color of the type filter widget in lists and trees.")),Ft=(m("list.filterMatchBackground",{dark:Fe,light:Fe,hcDark:null,hcLight:null},u.NC("listFilterMatchHighlight","Background color of the filtered match.")),m("list.filterMatchBorder",{dark:ze,light:ze,hcDark:x,hcLight:E},u.NC("listFilterMatchHighlightBorder","Border color of the filtered match.")),m("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},u.NC("treeIndentGuidesStroke","Tree stroke color for the indentation guides."))),Bt=m("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},u.NC("tableColumnsBorder","Table border color between columns.")),Ht=m("tree.tableOddRowsBackground",{dark:xn(C,.04),light:xn(C,.04),hcDark:null,hcLight:null},u.NC("tableOddRowsBackgroundColor","Background color for odd table rows.")),zt=(m("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},u.NC("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized. ")),m("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,u.NC("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead"))),jt=m("quickInputList.focusForeground",{dark:St,light:St,hcDark:St,hcLight:St},u.NC("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),Vt=m("quickInputList.focusIconForeground",{dark:wt,light:wt,hcDark:wt,hcLight:wt},u.NC("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),Wt=m("quickInputList.focusBackground",{dark:En(zt,Ct),light:En(zt,Ct),hcDark:null,hcLight:null},u.NC("quickInput.listFocusBackground","Quick picker background color for the focused item.")),Ut=m("menu.border",{dark:null,light:null,hcDark:x,hcLight:x},u.NC("menuBorder","Border color of menus.")),Gt=m("menu.foreground",{dark:K,light:C,hcDark:K,hcLight:K},u.NC("menuForeground","Foreground color of menu items.")),Kt=m("menu.background",{dark:G,light:G,hcDark:G,hcLight:G},u.NC("menuBackground","Background color of menu items.")),Yt=m("menu.selectionForeground",{dark:St,light:St,hcDark:St,hcLight:St},u.NC("menuSelectionForeground","Foreground color of the selected menu item in menus.")),qt=m("menu.selectionBackground",{dark:Ct,light:Ct,hcDark:Ct,hcLight:Ct},u.NC("menuSelectionBackground","Background color of the selected menu item in menus.")),$t=m("menu.selectionBorder",{dark:null,light:null,hcDark:E,hcLight:E},u.NC("menuSelectionBorder","Border color of the selected menu item in menus.")),Xt=m("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:x,hcLight:x},u.NC("menuSeparatorBackground","Color of a separator menu item in menus.")),Qt=m("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},u.NC("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),Jt=(m("toolbar.hoverOutline",{dark:null,light:null,hcDark:E,hcLight:E},u.NC("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),m("toolbar.activeBackground",{dark:kn(Qt,.1),light:wn(Qt,.1),hcDark:null,hcLight:null},u.NC("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),m("editor.snippetTabstopHighlightBackground",{dark:new s.Il(new s.VS(124,124,124,.3)),light:new s.Il(new s.VS(10,50,100,.2)),hcDark:new s.Il(new s.VS(124,124,124,.3)),hcLight:new s.Il(new s.VS(10,50,100,.2))},u.NC("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),m("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),m("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),m("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Il(new s.VS(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},u.NC("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),m("breadcrumb.foreground",{light:xn(C,.8),dark:xn(C,.8),hcDark:xn(C,.8),hcLight:xn(C,.8)},u.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),m("breadcrumb.background",{light:me,dark:me,hcDark:me,hcLight:me},u.NC("breadcrumbsBackground","Background color of breadcrumb items.")),m("breadcrumb.focusForeground",{light:wn(C,.2),dark:kn(C,.1),hcDark:kn(C,.1),hcLight:kn(C,.1)},u.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),m("breadcrumb.activeSelectionForeground",{light:wn(C,.2),dark:kn(C,.1),hcDark:kn(C,.1),hcLight:kn(C,.1)},u.NC("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),m("breadcrumbPicker.background",{light:_e,dark:_e,hcDark:_e,hcLight:_e},u.NC("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Il.fromHex("#40C8AE").transparent(.5)),en=s.Il.fromHex("#40A6FF").transparent(.5),tn=s.Il.fromHex("#606060").transparent(.4),nn=.4,rn=m("merge.currentHeaderBackground",{dark:Jt,light:Jt,hcDark:null,hcLight:null},u.NC("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),on=(m("merge.currentContentBackground",{dark:xn(rn,nn),light:xn(rn,nn),hcDark:xn(rn,nn),hcLight:xn(rn,nn)},u.NC("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),m("merge.incomingHeaderBackground",{dark:en,light:en,hcDark:null,hcLight:null},u.NC("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),an=(m("merge.incomingContentBackground",{dark:xn(on,nn),light:xn(on,nn),hcDark:xn(on,nn),hcLight:xn(on,nn)},u.NC("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),m("merge.commonHeaderBackground",{dark:tn,light:tn,hcDark:null,hcLight:null},u.NC("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),sn=(m("merge.commonContentBackground",{dark:xn(an,nn),light:xn(an,nn),hcDark:xn(an,nn),hcLight:xn(an,nn)},u.NC("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),m("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},u.NC("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),ln=(m("editorOverviewRuler.currentContentForeground",{dark:xn(rn,1),light:xn(rn,1),hcDark:sn,hcLight:sn},u.NC("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),m("editorOverviewRuler.incomingContentForeground",{dark:xn(on,1),light:xn(on,1),hcDark:sn,hcLight:sn},u.NC("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),m("editorOverviewRuler.commonContentForeground",{dark:xn(an,1),light:xn(an,1),hcDark:sn,hcLight:sn},u.NC("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),m("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},u.NC("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),cn=m("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},u.NC("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),un=m("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},u.NC("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),dn=m("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},u.NC("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),hn=m("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},u.NC("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),fn=m("minimap.errorHighlight",{dark:new s.Il(new s.VS(255,18,18,.7)),light:new s.Il(new s.VS(255,18,18,.7)),hcDark:new s.Il(new s.VS(255,50,50,1)),hcLight:"#B5200D"},u.NC("minimapError","Minimap marker color for errors.")),pn=m("minimap.warningHighlight",{dark:ue,light:ue,hcDark:de,hcLight:de},u.NC("overviewRuleWarning","Minimap marker color for warnings.")),gn=m("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},u.NC("minimapBackground","Minimap background color.")),vn=m("minimap.foregroundOpacity",{dark:s.Il.fromHex("#000f"),light:s.Il.fromHex("#000f"),hcDark:s.Il.fromHex("#000f"),hcLight:s.Il.fromHex("#000f")},u.NC("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),mn=m("minimapSlider.background",{light:xn(ne,.5),dark:xn(ne,.5),hcDark:xn(ne,.5),hcLight:xn(ne,.5)},u.NC("minimapSliderBackground","Minimap slider background color.")),yn=m("minimapSlider.hoverBackground",{light:xn(ie,.5),dark:xn(ie,.5),hcDark:xn(ie,.5),hcLight:xn(ie,.5)},u.NC("minimapSliderHoverBackground","Minimap slider background color when hovering.")),_n=m("minimapSlider.activeBackground",{light:xn(re,.5),dark:xn(re,.5),hcDark:xn(re,.5),hcLight:xn(re,.5)},u.NC("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),bn=m("problemsErrorIcon.foreground",{dark:se,light:se,hcDark:se,hcLight:se},u.NC("problemsErrorIconForeground","The color used for the problems error icon.")),Cn=m("problemsWarningIcon.foreground",{dark:ue,light:ue,hcDark:ue,hcLight:ue},u.NC("problemsWarningIconForeground","The color used for the problems warning icon.")),Sn=m("problemsInfoIcon.foreground",{dark:fe,light:fe,hcDark:fe,hcLight:fe},u.NC("problemsInfoIconForeground","The color used for the problems info icon."));m("charts.foreground",{dark:C,light:C,hcDark:C,hcLight:C},u.NC("chartsForeground","The foreground color used in charts.")),m("charts.lines",{dark:xn(C,.5),light:xn(C,.5),hcDark:xn(C,.5),hcLight:xn(C,.5)},u.NC("chartsLines","The color used for horizontal lines in charts.")),m("charts.red",{dark:se,light:se,hcDark:se,hcLight:se},u.NC("chartsRed","The red color used in chart visualizations.")),m("charts.blue",{dark:fe,light:fe,hcDark:fe,hcLight:fe},u.NC("chartsBlue","The blue color used in chart visualizations.")),m("charts.yellow",{dark:ue,light:ue,hcDark:ue,hcLight:ue},u.NC("chartsYellow","The yellow color used in chart visualizations.")),m("charts.orange",{dark:un,light:un,hcDark:un,hcLight:un},u.NC("chartsOrange","The orange color used in chart visualizations.")),m("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},u.NC("chartsGreen","The green color used in chart visualizations.")),m("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},u.NC("chartsPurple","The purple color used in chart visualizations."));function wn(e,t){return{op:0,value:e,factor:t}}function kn(e,t){return{op:1,value:e,factor:t}}function xn(e,t){return{op:2,value:e,factor:t}}function En(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{op:3,values:t}}function Tn(e,t,n,i){return{op:4,value:e,background:t,factor:n,transparency:i}}function Nn(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?s.Il.fromHex(e):t.getColor(e):e instanceof s.Il?e:"object"===typeof e?function(e,t){var n,r,o;switch(e.op){case 0:return null===(n=Nn(e.value,t))||void 0===n?void 0:n.darken(e.factor);case 1:return null===(r=Nn(e.value,t))||void 0===r?void 0:r.lighten(e.factor);case 2:return null===(o=Nn(e.value,t))||void 0===o?void 0:o.transparent(e.factor);case 3:var a,l=(0,i.Z)(e.values);try{for(l.s();!(a=l.n()).done;){var u=Nn(a.value,t);if(u)return u}}catch(f){l.e(f)}finally{l.f()}return;case 5:return Nn(t.defines(e.if)?e.then:e.else,t);case 4:var d=Nn(e.value,t);if(!d)return;var h=Nn(e.background,t);return h?d.isDarkerThan(h)?s.Il.getLighterColor(d,h,e.factor).transparent(e.transparency):s.Il.getDarkerColor(d,h,e.factor).transparent(e.transparency):d.transparent(e.factor*e.transparency);default:throw(0,c.vE)(e)}}(e,t):void 0}var In="vscode://schemas/workbench-colors",Dn=h.B.as(d.I.JSONContribution);Dn.registerSchema(In,v.getColorSchema());var Ln=new a.pY((function(){return Dn.notifySchemaChanged(In)}),200);v.onDidChangeSchema((function(){Ln.isScheduled()||Ln.schedule()}))},96752:function(e,t,n){"use strict";n.d(t,{Ks:function(){return _},q5:function(){return y},s_:function(){return w}});var i,r,o=n(37762),a=n(15671),s=n(43144),l=n(60022),c=n(2801),u=n(73097),d=n(85294),h=n(72112),f=n(27722),p=n(21775),g=n(69077),v=n(64014);!function(e){e.getDefinition=function(e,t){for(var n=e.defaults;v.kS.isThemeIcon(n);){var i=m.getIcon(n.id);if(!i)return;n=i.defaults}return n}}(i||(i={})),function(e){e.toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map((function(e){return{format:e.format,location:e.location.toString()}}))}},e.fromJSONObject=function(e){var t=function(e){return(0,d.HD)(e)?e:void 0};if(e&&Array.isArray(e.src)&&e.src.every((function(e){return(0,d.HD)(e.format)&&(0,d.HD)(e.location)})))return{weight:t(e.weight),style:t(e.style),src:e.src.map((function(e){return{format:e.format,location:h.o.parse(e.location)}}))}}}(r||(r={}));var m=new(function(){function e(){(0,a.Z)(this,e),this._onDidChange=new u.Q5,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,f.NC)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,f.NC)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:"^".concat(c.dT.iconNameExpression,"$"),enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}return(0,s.Z)(e,[{key:"registerIcon",value:function(e,t,n,i){var r=this.iconsById[e];if(r){if(n&&!r.description){r.description=n,this.iconSchema.properties[e].markdownDescription="".concat(n," $(").concat(e,")");var o=this.iconReferenceSchema.enum.indexOf(e);-1!==o&&(this.iconReferenceSchema.enumDescriptions[o]=n),this._onDidChange.fire()}return r}var a={id:e,description:n,defaults:t,deprecationMessage:i};this.iconsById[e]=a;var s={$ref:"#/definitions/icons"};return i&&(s.deprecationMessage=i),n&&(s.markdownDescription="".concat(n,": $(").concat(e,")")),this.iconSchema.properties[e]=s,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(n||""),this._onDidChange.fire(),{id:e}}},{key:"getIcons",value:function(){var e=this;return Object.keys(this.iconsById).map((function(t){return e.iconsById[t]}))}},{key:"getIcon",value:function(e){return this.iconsById[e]}},{key:"getIconSchema",value:function(){return this.iconSchema}},{key:"toString",value:function(){var e=this,t=function(e,t){return e.id.localeCompare(t.id)},n=function(t){for(;v.kS.isThemeIcon(t.defaults);)t=e.iconsById[t.defaults.id];return"codicon codicon-".concat(t?t.id:"")},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");var r,a=Object.keys(this.iconsById).map((function(t){return e.iconsById[t]})),s=(0,o.Z)(a.filter((function(e){return!!e.description})).sort(t));try{for(s.s();!(r=s.n()).done;){var l=r.value;i.push('|<i class="'.concat(n(l),'"></i>|').concat(l.id,"|").concat(v.kS.isThemeIcon(l.defaults)?l.defaults.id:l.id,"|").concat(l.description||"","|"))}}catch(h){s.e(h)}finally{s.f()}i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");var c,u=(0,o.Z)(a.filter((function(e){return!v.kS.isThemeIcon(e.defaults)})).sort(t));try{for(u.s();!(c=u.n()).done;){var d=c.value;i.push('|<i class="'.concat(n(d),'"></i>|').concat(d.id,"|"))}}catch(h){u.e(h)}finally{u.f()}return i.join("\n")}}]),e}());function y(e,t,n,i){return m.registerIcon(e,t,n,i)}function _(){return m}g.B.add("base.contributions.icons",m),function(){var e,t=(0,o.Z)(c.lA.getAll());try{for(t.s();!(e=t.n()).done;){var n=e.value;m.registerIcon(n.id,n.definition,n.description)}}catch(i){t.e(i)}finally{t.f()}}();var b="vscode://schemas/icons",C=g.B.as(p.I.JSONContribution);C.registerSchema(b,m.getIconSchema());var S=new l.pY((function(){return C.notifySchemaChanged(b)}),200);m.onDidChange((function(){S.isScheduled()||S.schedule()}));var w=y("widget-close",c.lA.close,(0,f.NC)("widgetClose","Icon for the close action in widgets."));y("goto-previous-location",c.lA.arrowUp,(0,f.NC)("previousChangeIcon","Icon for goto previous editor location.")),y("goto-next-location",c.lA.arrowDown,(0,f.NC)("nextChangeIcon","Icon for goto next editor location.")),v.kS.modify(c.lA.sync,"spin"),v.kS.modify(c.lA.loading,"spin")},77406:function(e,t,n){"use strict";n.d(t,{Jl:function(){return s},O2:function(){return l},WZ:function(){return a},o:function(){return r},tj:function(){return u}});var i=n(32379);function r(e,t){var n=Object.create(null);for(var r in t){var o=t[r];o&&(n[r]=(0,i.Snq)(o,e))}return n}function o(e,t,n){function i(){var i=r(e.getColorTheme(),t);"function"===typeof n?n(i):n.style(i)}return i(),e.onDidColorThemeChange(i)}function a(e,t,n){return o(t,{badgeBackground:(null===n||void 0===n?void 0:n.badgeBackground)||i.g8u,badgeForeground:(null===n||void 0===n?void 0:n.badgeForeground)||i.qeD,badgeBorder:i.lRK},e)}function s(e,t,n){return o(t,Object.assign(Object.assign({},l),n||{}),e)}var l={listFocusBackground:i._bK,listFocusForeground:i._2n,listFocusOutline:i.Oop,listActiveSelectionBackground:i.dCr,listActiveSelectionForeground:i.M6C,listActiveSelectionIconForeground:i.Tnx,listFocusAndSelectionOutline:i.Bqu,listFocusAndSelectionBackground:i.dCr,listFocusAndSelectionForeground:i.M6C,listInactiveSelectionBackground:i.rg2,listInactiveSelectionIconForeground:i.kvU,listInactiveSelectionForeground:i.ytC,listInactiveFocusBackground:i.s$,listInactiveFocusOutline:i.F3d,listHoverBackground:i.mV1,listHoverForeground:i.$d5,listDropBackground:i.AS1,listSelectionOutline:i.xL1,listHoverOutline:i.xL1,listFilterWidgetBackground:i.vGG,listFilterWidgetOutline:i.oSI,listFilterWidgetNoMatchesOutline:i.Saq,listFilterWidgetShadow:i.y65,treeIndentGuidesStroke:i.UnT,tableColumnsBorder:i.uxu,tableOddRowsBackgroundColor:i.EQn,inputActiveOptionBorder:i.PRb,inputActiveOptionForeground:i.Pvw,inputActiveOptionBackground:i.XEs,inputBackground:i.sEe,inputForeground:i.zJb,inputBorder:i.dt_,inputValidationInfoBackground:i._lC,inputValidationInfoForeground:i.YI3,inputValidationInfoBorder:i.EPQ,inputValidationWarningBackground:i.RV_,inputValidationWarningForeground:i.SUG,inputValidationWarningBorder:i.C3g,inputValidationErrorBackground:i.paE,inputValidationErrorForeground:i._t9,inputValidationErrorBorder:i.OZR},c={shadowColor:i.rh,borderColor:i.Cdg,foregroundColor:i.DEr,backgroundColor:i.Hz8,selectionForegroundColor:i.jbW,selectionBackgroundColor:i.$DX,selectionBorderColor:i.E3h,separatorColor:i.ZGJ,scrollbarShadow:i._wn,scrollbarSliderBackground:i.etL,scrollbarSliderHoverBackground:i.ABB,scrollbarSliderActiveBackground:i.ynu};function u(e,t,n){return o(t,Object.assign(Object.assign({},c),n),e)}},59632:function(e,t,n){"use strict";var i;function r(e){return e===i.HIGH_CONTRAST_DARK||e===i.HIGH_CONTRAST_LIGHT}function o(e){return e===i.DARK||e===i.HIGH_CONTRAST_DARK}n.d(t,{_T:function(){return o},c3:function(){return r},eL:function(){return i}}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(i||(i={}))},64014:function(e,t,n){"use strict";n.d(t,{EN:function(){return m},IP:function(){return _},Ic:function(){return C},XE:function(){return v},bB:function(){return S},kS:function(){return r},m6:function(){return y}});var i,r,o=n(60136),a=n(27277),s=n(15671),l=n(43144),c=n(29439),u=n(2801),d=n(73097),h=n(11860),f=n(36888),p=n(69077),g=n(59632),v=(0,f.yh)("themeService");function m(e){return{id:e}}function y(e){switch(e){case g.eL.DARK:return"vs-dark";case g.eL.HIGH_CONTRAST_DARK:return"hc-black";case g.eL.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(i||(i={})),function(e){e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||i.isThemeColor(e.color))};var t=new RegExp("^\\$\\((".concat(u.dT.iconNameExpression,"(?:").concat(u.dT.iconModifierExpression,")?)\\)$"));e.fromString=function(e){var n=t.exec(e);if(n)return{id:(0,c.Z)(n,2)[1]}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){var n=e.id,i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n="".concat(n,"~").concat(t)),{id:n}},e.getModifier=function(e){var t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){var n,i;return e.id===t.id&&(null===(n=e.color)||void 0===n?void 0:n.id)===(null===(i=t.color)||void 0===i?void 0:i.id)},e.asThemeIcon=function(e,t){return{id:e.id,color:t?m(t):void 0}},e.asClassNameArray=u.dT.asClassNameArray,e.asClassName=u.dT.asClassName,e.asCSSSelector=u.dT.asCSSSelector}(r||(r={}));var _={ThemingContribution:"base.contributions.theming"},b=new(function(){function e(){(0,s.Z)(this,e),this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new d.Q5}return(0,l.Z)(e,[{key:"onColorThemeChange",value:function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,h.OF)((function(){var n=t.themingParticipants.indexOf(e);t.themingParticipants.splice(n,1)}))}},{key:"getThemingParticipants",value:function(){return this.themingParticipants}}]),e}());function C(e){return b.onColorThemeChange(e)}p.B.add(_.ThemingContribution,b);var S=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,s.Z)(this,n),(i=t.call(this)).themeService=e,i.theme=e.getColorTheme(),i._register(i.themeService.onDidColorThemeChange((function(e){return i.onThemeChange(e)}))),i}return(0,l.Z)(n,[{key:"onThemeChange",value:function(e){this.theme=e,this.updateStyles()}},{key:"updateStyles",value:function(){}}]),n}(h.JT)},25530:function(e,t,n){"use strict";n.d(t,{Xt:function(){return s},YO:function(){return a},gJ:function(){return l},tJ:function(){return o}});var i=n(43144),r=n(15671),o=(0,n(36888).yh)("undoRedoService"),a=(0,i.Z)((function e(t,n){(0,r.Z)(this,e),this.resource=t,this.elements=n})),s=function(){function e(){(0,r.Z)(this,e),this.id=e._ID++,this.order=1}return(0,i.Z)(e,[{key:"nextOrder",value:function(){return 0===this.id?0:this.order++}}]),e}();s._ID=0,s.None=new s;var l=function(){function e(){(0,r.Z)(this,e),this.id=e._ID++,this.order=1}return(0,i.Z)(e,[{key:"nextOrder",value:function(){return 0===this.id?0:this.order++}}]),e}();l._ID=0,l.None=new l},17844:function(e,t,n){"use strict";n.d(t,{A6:function(){return d},eb:function(){return l},ec:function(){return s},md:function(){return u},uT:function(){return c}});var i=n(15671),r=n(43144),o=n(27722),a=(n(54376),n(72112)),s=(0,n(36888).yh)("contextService");function l(e){var t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&a.o.isUri(t.uri)}function c(e){return e.configuration?{id:e.id,configPath:e.configuration}:1===e.folders.length?{id:e.id,uri:e.folders[0].uri}:void 0}var u=function(){function e(t,n){(0,i.Z)(this,e),this.raw=n,this.uri=t.uri,this.index=t.index,this.name=t.name}return(0,r.Z)(e,[{key:"toJSON",value:function(){return{uri:this.uri,name:this.name,index:this.index}}}]),e}(),d="code-workspace";(0,o.NC)("codeWorkspace","Code Workspace")},57215:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var i=(0,n(36888).yh)("workspaceTrustManagementService")},42584:function(e,t,n){var i="function"===typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=i&&r&&"function"===typeof r.get?r.get:null,a=i&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,g=Object.prototype.toString,v=Function.prototype.toString,m=String.prototype.match,y=String.prototype.slice,_=String.prototype.replace,b=String.prototype.toUpperCase,C=String.prototype.toLowerCase,S=RegExp.prototype.test,w=Array.prototype.concat,k=Array.prototype.join,x=Array.prototype.slice,E=Math.floor,T="function"===typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,I="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"===typeof Symbol&&"object"===typeof Symbol.iterator,L="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D||"symbol")?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,R=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function A(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var i=e<0?-E(-e):E(e);if(i!==e){var r=String(i),o=y.call(t,r.length+1);return _.call(r,n,"$&_")+"."+_.call(_.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,n,"$&_")}var M=n(24654),P=M.custom,Z=j(P)?P:null;function F(e,t,n){var i="double"===(n.quoteStyle||t)?'"':"'";return i+e+i}function B(e){return _.call(String(e),/"/g,""")}function H(e){return"[object Array]"===U(e)&&(!L||!("object"===typeof e&&L in e))}function z(e){return"[object RegExp]"===U(e)&&(!L||!("object"===typeof e&&L in e))}function j(e){if(D)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!I)return!1;try{return I.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,i,r){var s=n||{};if(W(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(s,"maxStringLength")&&("number"===typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!W(s,"customInspect")||s.customInspect;if("boolean"!==typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(s,"numericSeparator")&&"boolean"!==typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var g=s.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return K(t,s);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var b=String(t);return g?A(t,b):b}if("bigint"===typeof t){var S=String(t)+"n";return g?A(t,S):S}var E="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof i&&(i=0),i>=E&&E>0&&"object"===typeof t)return H(t)?"[Array]":"[Object]";var N=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=k.call(Array(e.indent+1)," ")}return{base:n,prev:k.call(Array(t+1),n)}}(s,i);if("undefined"===typeof r)r=[];else if(G(r,t)>=0)return"[Circular]";function P(t,n,o){if(n&&(r=x.call(r)).push(n),o){var a={depth:s.depth};return W(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,i+1,r)}return e(t,s,i+1,r)}if("function"===typeof t&&!z(t)){var V=function(e){if(e.name)return e.name;var t=m.call(v.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Y=J(t,P);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(Y.length>0?" { "+k.call(Y,", ")+" }":"")}if(j(t)){var ee=D?_.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(t);return"object"!==typeof t||D?ee:q(ee)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var te="<"+C.call(String(t.nodeName)),ne=t.attributes||[],ie=0;ie<ne.length;ie++)te+=" "+ne[ie].name+"="+F(B(ne[ie].value),"double",s);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+C.call(String(t.nodeName))+">"}if(H(t)){if(0===t.length)return"[]";var re=J(t,P);return N&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(re)?"["+Q(re,N)+"]":"[ "+k.call(re,", ")+" ]"}if(function(e){return"[object Error]"===U(e)&&(!L||!("object"===typeof e&&L in e))}(t)){var oe=J(t,P);return"cause"in Error.prototype||!("cause"in t)||O.call(t,"cause")?0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(oe,", ")+" }":"{ ["+String(t)+"] "+k.call(w.call("[cause]: "+P(t.cause),oe),", ")+" }"}if("object"===typeof t&&l){if(Z&&"function"===typeof t[Z]&&M)return M(t,{depth:E-i});if("symbol"!==l&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{c.call(e)}catch(te){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ae=[];return a&&a.call(t,(function(e,n){ae.push(P(n,t,!0)+" => "+P(e,t))})),X("Map",o.call(t),ae,N)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var se=[];return u&&u.call(t,(function(e){se.push(P(e,t))})),X("Set",c.call(t),se,N)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(te){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return $("WeakMap");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(te){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return $("WeakSet");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{return f.call(e),!0}catch(t){}return!1}(t))return $("WeakRef");if(function(e){return"[object Number]"===U(e)&&(!L||!("object"===typeof e&&L in e))}(t))return q(P(Number(t)));if(function(e){if(!e||"object"!==typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}(t))return q(P(T.call(t)));if(function(e){return"[object Boolean]"===U(e)&&(!L||!("object"===typeof e&&L in e))}(t))return q(p.call(t));if(function(e){return"[object String]"===U(e)&&(!L||!("object"===typeof e&&L in e))}(t))return q(P(String(t)));if(!function(e){return"[object Date]"===U(e)&&(!L||!("object"===typeof e&&L in e))}(t)&&!z(t)){var le=J(t,P),ce=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,ue=t instanceof Object?"":"null prototype",de=!ce&&L&&Object(t)===t&&L in t?y.call(U(t),8,-1):ue?"Object":"",he=(ce||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||ue?"["+k.call(w.call([],de||[],ue||[]),": ")+"] ":"");return 0===le.length?he+"{}":N?he+"{"+Q(le,N)+"}":he+"{ "+k.call(le,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return V.call(e,t)}function U(e){return g.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}function K(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return K(y.call(e,0,t.maxStringLength),t)+i}return F(_.call(_.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function q(e){return"Object("+e+")"}function $(e){return e+" { ? }"}function X(e,t,n,i){return e+" ("+t+") {"+(i?Q(n,i):k.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+k.call(e,","+n)+"\n"+t.prev}function J(e,t){var n=H(e),i=[];if(n){i.length=e.length;for(var r=0;r<e.length;r++)i[r]=W(e,r)?t(e[r],e):""}var o,a="function"===typeof N?N(e):[];if(D){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)W(e,l)&&(n&&String(Number(l))===l&&l<e.length||D&&o["$"+l]instanceof Symbol||(S.call(/[^\w$]/,l)?i.push(t(l,e)+": "+t(e[l],e)):i.push(l+": "+t(e[l],e))));if("function"===typeof N)for(var c=0;c<a.length;c++)O.call(e,a[c])&&i.push("["+t(a[c])+"]: "+t(e[a[c]],e));return i}},23654:function(e){"use strict";var t=e.exports;e.exports.isNumber=function(e){return"number"===typeof e},e.exports.findMin=function(e){if(0===e.length)return 1/0;for(var t=e[0],n=1;n<e.length;n++)t=Math.min(t,e[n]);return t},e.exports.findMax=function(e){if(0===e.length)return-1/0;for(var t=e[0],n=1;n<e.length;n++)t=Math.max(t,e[n]);return t},e.exports.findMinMulti=function(e){for(var n=t.findMin(e[0]),i=1;i<e.length;i++)n=Math.min(n,t.findMin(e[i]));return n},e.exports.findMaxMulti=function(e){for(var n=t.findMax(e[0]),i=1;i<e.length;i++)n=Math.max(n,t.findMax(e[i]));return n},e.exports.inside=function(e,t,n){return e<=n&&n<=t}},71024:function(e,t,n){"use strict";var i=Math.log(2),r=e.exports,o=n(23654);function a(e){return 1-Math.abs(e)}e.exports.getUnifiedMinMax=function(e,t){return r.getUnifiedMinMaxMulti([e],t)},e.exports.getUnifiedMinMaxMulti=function(e,t){t=t||{};var n=!1,i=!1,r=o.isNumber(t.width)?t.width:2,a=o.isNumber(t.size)?t.size:50,s=o.isNumber(t.min)?t.min:(n=!0,o.findMinMulti(e)),l=o.isNumber(t.max)?t.max:(i=!0,o.findMaxMulti(e)),c=(l-s)/(a-1);return n&&(s-=2*r*c),i&&(l+=2*r*c),{min:s,max:l}},e.exports.create=function(e,t){if(t=t||{},!e||0===e.length)return[];var n=o.isNumber(t.size)?t.size:50,i=o.isNumber(t.width)?t.width:2,s=r.getUnifiedMinMax(e,{size:n,width:i,min:t.min,max:t.max}),l=s.min,c=s.max-l,u=c/(n-1);if(0===c)return[{x:l,y:1}];for(var d=[],h=0;h<n;h++)d.push({x:l+h*u,y:0});var f=function(e,t){for(var n={},i=0,r=-t;r<=t;r++)i+=e(r/t),n[r]=i;return n}(a,i),p=f[i],g=f[i-1]-f[i-2],v=0;e.forEach((function(e){var t=function(e){return Math.floor((e-l)/u)}(e);if(!(t+i<0||t-i>=d.length)){var n=Math.max(t-i,0),r=t,a=Math.min(t+i,d.length-1),s=n-(t-i),c=t+i-a,h=f[-i-1+s]||0,m=f[-i-1+c]||0,y=p/(p-h-m);s>0&&(v+=y*(s-1)*g);var _=Math.max(0,t-i+1);o.inside(0,d.length-1,_)&&(d[_].y+=1*y*g),o.inside(0,d.length-1,r+1)&&(d[r+1].y-=2*y*g),o.inside(0,d.length-1,a+1)&&(d[a+1].y+=1*y*g)}}));var m=v,y=0,_=0;return d.forEach((function(e){y+=e.y,m+=y,e.y=m,_+=m})),_>0&&d.forEach((function(e){e.y/=_})),d},e.exports.getExpectedValueFromPdf=function(e){if(e&&0!==e.length){var t=0;return e.forEach((function(e){t+=e.x*e.y})),t}},e.exports.getXWithLeftTailArea=function(e,t){if(e&&0!==e.length){for(var n=0,i=0,r=0;r<e.length&&(i=r,!((n+=e[r].y)>=t));r++);return e[i].x}},e.exports.getPerplexity=function(e){if(e&&0!==e.length){var t=0;return e.forEach((function(e){var n=Math.log(e.y);isFinite(n)&&(t+=e.y*n)})),t=-t/i,Math.pow(2,t)}}},59874:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,i="RFC1738",r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:r}},32808:function(e,t,n){"use strict";var i=n(22334),r=n(4360),o=n(59874);e.exports={formats:o,parse:r,stringify:i}},4360:function(e,t,n){"use strict";var i=n(64184),r=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:i.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,i){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,u=[];if(c){if(!n.plainObjects&&r.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&r.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+o.slice(s.index)+"]"),function(e,t,n,i){for(var r=i?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=r:"__proto__"!==c&&(a[c]=r):a={0:r}}r=a}return r}(u,t,n,i)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var u="string"===typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,d),f=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<h.length;++n)0===h[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[n]?p="utf-8":"utf8=%26%2310003%3B"===h[n]&&(p="iso-8859-1"),f=n,n=h.length);for(n=0;n<h.length;++n)if(n!==f){var g,v,m=h[n],y=m.indexOf("]="),_=-1===y?m.indexOf("="):y+1;-1===_?(g=t.decoder(m,a.decoder,p,"key"),v=t.strictNullHandling?null:""):(g=t.decoder(m.slice(0,_),a.decoder,p,"key"),v=i.maybeMap(l(m.slice(_+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===p&&(v=s(v)),m.indexOf("[]=")>-1&&(v=o(v)?[v]:v),r.call(c,g)?c[g]=i.combine(c[g],v):c[g]=v}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},h=Object.keys(u),f=0;f<h.length;++f){var p=h[f],g=c(p,u[p],n,"string"===typeof e);d=i.merge(d,g,n)}return!0===n.allowSparse?d:i.compact(d)}},22334:function(e,t,n){"use strict";var i=n(40581),r=n(64184),o=n(59874),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=String.prototype.split,u=Array.prototype.push,d=function(e,t){u.apply(e,l(t)?t:[t])},h=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},g={},v=function e(t,n,o,a,s,u,h,f,v,m,y,_,b,C,S,w){for(var k,x=t,E=w,T=0,N=!1;void 0!==(E=E.get(g))&&!N;){var I=E.get(t);if(T+=1,"undefined"!==typeof I){if(I===T)throw new RangeError("Cyclic object value");N=!0}"undefined"===typeof E.get(g)&&(T=0)}if("function"===typeof f?x=f(n,x):x instanceof Date?x=y(x):"comma"===o&&l(x)&&(x=r.maybeMap(x,(function(e){return e instanceof Date?y(e):e}))),null===x){if(s)return h&&!C?h(n,p.encoder,S,"key",_):n;x=""}if("string"===typeof(k=x)||"number"===typeof k||"boolean"===typeof k||"symbol"===typeof k||"bigint"===typeof k||r.isBuffer(x)){if(h){var D=C?n:h(n,p.encoder,S,"key",_);if("comma"===o&&C){for(var L=c.call(String(x),","),O="",R=0;R<L.length;++R)O+=(0===R?"":",")+b(h(L[R],p.encoder,S,"value",_));return[b(D)+(a&&l(x)&&1===L.length?"[]":"")+"="+O]}return[b(D)+"="+b(h(x,p.encoder,S,"value",_))]}return[b(n)+"="+b(String(x))]}var A,M=[];if("undefined"===typeof x)return M;if("comma"===o&&l(x))A=[{value:x.length>0?x.join(",")||null:void 0}];else if(l(f))A=f;else{var P=Object.keys(x);A=v?P.sort(v):P}for(var Z=a&&l(x)&&1===x.length?n+"[]":n,F=0;F<A.length;++F){var B=A[F],H="object"===typeof B&&"undefined"!==typeof B.value?B.value:x[B];if(!u||null!==H){var z=l(x)?"function"===typeof o?o(Z,B):Z:Z+(m?"."+B:"["+B+"]");w.set(t,T);var j=i();j.set(g,w),d(M,e(H,z,o,a,s,u,h,f,v,m,y,_,b,C,S,j))}}return M};e.exports=function(e,t){var n,r=e,c=function(e){if(!e)return p;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=o.formatters[n],r=p.filter;return("function"===typeof e.filter||l(e.filter))&&(r=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:r,format:n,formatter:i,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"===typeof c.filter?r=(0,c.filter)("",r):l(c.filter)&&(n=c.filter);var u,h=[];if("object"!==typeof r||null===r)return"";u=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=s[u];if(t&&"commaRoundTrip"in t&&"boolean"!==typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var g="comma"===f&&t&&t.commaRoundTrip;n||(n=Object.keys(r)),c.sort&&n.sort(c.sort);for(var m=i(),y=0;y<n.length;++y){var _=n[y];c.skipNulls&&null===r[_]||d(h,v(r[_],_,f,g,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,m))}var b=h.join(c.delimiter),C=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?C+="utf8=%26%2310003%3B&":C+="utf8=%E2%9C%93&"),b.length>0?C+b:""}},64184:function(e,t,n){"use strict";var i=n(59874),r=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)"undefined"!==typeof e[i]&&(n[i]=e[i]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var r=t[i],a=r.obj[r.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var i=[],r=0;r<n.length;++r)"undefined"!==typeof n[r]&&i.push(n[r]);t.obj[t.prop]=i}}}(t),e},decode:function(e,t,n){var i=e.replace(/\+/g," ");if("iso-8859-1"===n)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(r){return i}},encode:function(e,t,n,r,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===i.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=a[u]:u<2048?l+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?l+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(t(e[i]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),a)}}},94501:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function C(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case v:case g:case l:return e;default:return t}}case r:return t}}}function S(e){return C(e)===d}t.isFragment=function(e){return C(e)===o},t.isMemo=function(e){return C(e)===g}},73873:function(e,t,n){"use strict";e.exports=n(94501)},34463:function(e,t,n){"use strict";var i=n(72791),r=n(45296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function g(e,t,n,i,r,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function _(e,t,n,i){var r=v.hasOwnProperty(t)?v[t]:null;(null!==r?0!==r.type:i||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,i){if(null===t||"undefined"===typeof t||function(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,i)&&(n=null),i||null===r?function(e){return!!d.call(p,e)||!d.call(f,e)&&(h.test(e)?p[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,i=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,y);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for("react.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),T=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function M(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=A&&e[A]||e["@@iterator"])?e:null}var P,Z=Object.assign;function F(e){if(void 0===P)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return"\n"+P+e}var B=!1;function H(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var i=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){i=c}e.call(t.prototype)}else{try{throw Error()}catch(c){i=c}e()}}catch(c){if(c&&i&&"string"===typeof c.stack){for(var r=c.stack.split("\n"),o=i.stack.split("\n"),a=r.length-1,s=o.length-1;1<=a&&0<=s&&r[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(r[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||r[a]!==o[s]){var l="\n"+r[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function z(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 1:return e=H(e.type,!0);default:return""}}function j(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case w:return"Fragment";case S:return"Portal";case x:return"Profiler";case k:return"StrictMode";case I:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(t=e.displayName||null)?t:j(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return j(e(t))}catch(n){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return j(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){i=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=U(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function $(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function Q(e,t){X(e,t);var n=W(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(i&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return Z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),i=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,i){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=ge(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}Object.keys(fe).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var me=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function _e(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,we=null,ke=null;function xe(e){if(e=_r(e)){if("function"!==typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=Cr(t),Se(e.stateNode,e.type,t))}}function Ee(e){we?ke?ke.push(e):ke=[e]:we=e}function Te(){if(we){var e=we,t=ke;if(ke=we=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function Ne(e,t){return e(t)}function Ie(){}var De=!1;function Le(e,t,n){if(De)return e(t,n);De=!0;try{return Ne(e,t,n)}finally{De=!1,(null!==we||null!==ke)&&(Ie(),Te())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var i=Cr(n);if(null===i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Re=!1;if(u)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ue){Re=!1}function Me(e,t,n,i,r,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Pe=!1,Ze=null,Fe=!1,Be=null,He={onError:function(e){Pe=!0,Ze=e}};function ze(e,t,n,i,r,o,a,s,l){Pe=!1,Ze=null,Me.apply(He,arguments)}function je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(je(e)!==e)throw Error(o(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=je(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(null===r)break;var a=r.alternate;if(null===a){if(null!==(i=r.return)){n=i;continue}break}if(r.child===a.child){for(a=r.child;a;){if(a===n)return We(r),e;if(a===i)return We(r),t;a=a.sibling}throw Error(o(188))}if(n.return!==i.return)n=r,i=a;else{for(var s=!1,l=r.child;l;){if(l===n){s=!0,n=r,i=a;break}if(l===i){s=!0,i=r,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,i=r;break}if(l===i){s=!0,i=a,n=r;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ke=r.unstable_scheduleCallback,Ye=r.unstable_cancelCallback,qe=r.unstable_shouldYield,$e=r.unstable_requestPaint,Xe=r.unstable_now,Qe=r.unstable_getCurrentPriorityLevel,Je=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,it=r.unstable_IdlePriority,rt=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~r;0!==s?i=dt(s):0!==(o&=a)&&(i=dt(o))}else 0!==(a=n&~r)?i=dt(a):0!==o&&(i=dt(o));if(0===i)return 0;if(0!==t&&t!==i&&0===(t&r)&&((r=i&-i)>=(o=t&-t)||16===r&&0!==(4194240&o)))return t;if(0!==(4&i)&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)r=1<<(n=31-at(t)),i|=e[n],t&=~r;return i}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-at(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}var _t=0;function bt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var Ct,St,wt,kt,xt,Et=!1,Tt=[],Nt=null,It=null,Dt=null,Lt=new Map,Ot=new Map,Rt=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":Lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Pt(e,t,n,i,r,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},null!==t&&(null!==(t=_r(t))&&St(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function Zt(e){var t=yr(e.target);if(null!==t){var n=je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void xt(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=_r(n))&&St(t),e.blockedOn=n,!1;var i=new(n=e.nativeEvent).constructor(n.type,n);be=i,n.target.dispatchEvent(i),be=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function Ht(){Et=!1,null!==Nt&&Ft(Nt)&&(Nt=null),null!==It&&Ft(It)&&(It=null),null!==Dt&&Ft(Dt)&&(Dt=null),Lt.forEach(Bt),Ot.forEach(Bt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ht)))}function jt(e){function t(t){return zt(t,e)}if(0<Tt.length){zt(Tt[0],e);for(var n=1;n<Tt.length;n++){var i=Tt[n];i.blockedOn===e&&(i.blockedOn=null)}}for(null!==Nt&&zt(Nt,e),null!==It&&zt(It,e),null!==Dt&&zt(Dt,e),Lt.forEach(t),Ot.forEach(t),n=0;n<Rt.length;n++)(i=Rt[n]).blockedOn===e&&(i.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Zt(n),null===n.blockedOn&&Rt.shift()}var Vt=b.ReactCurrentBatchConfig,Wt=!0;function Ut(e,t,n,i){var r=_t,o=Vt.transition;Vt.transition=null;try{_t=1,Kt(e,t,n,i)}finally{_t=r,Vt.transition=o}}function Gt(e,t,n,i){var r=_t,o=Vt.transition;Vt.transition=null;try{_t=4,Kt(e,t,n,i)}finally{_t=r,Vt.transition=o}}function Kt(e,t,n,i){if(Wt){var r=qt(e,t,n,i);if(null===r)Wi(e,t,i,Yt,n),Mt(e,i);else if(function(e,t,n,i,r){switch(t){case"focusin":return Nt=Pt(Nt,e,t,n,i,r),!0;case"dragenter":return It=Pt(It,e,t,n,i,r),!0;case"mouseover":return Dt=Pt(Dt,e,t,n,i,r),!0;case"pointerover":var o=r.pointerId;return Lt.set(o,Pt(Lt.get(o)||null,e,t,n,i,r)),!0;case"gotpointercapture":return o=r.pointerId,Ot.set(o,Pt(Ot.get(o)||null,e,t,n,i,r)),!0}return!1}(r,e,t,n,i))i.stopPropagation();else if(Mt(e,i),4&t&&-1<At.indexOf(e)){for(;null!==r;){var o=_r(r);if(null!==o&&Ct(o),null===(o=qt(e,t,n,i))&&Wi(e,t,i,Yt,n),o===r)break;r=o}null!==r&&i.stopPropagation()}else Wi(e,t,i,null,n)}}var Yt=null;function qt(e,t,n,i){if(Yt=null,null!==(e=yr(e=Ce(i))))if(null===(t=je(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function $t(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case it:return 536870912;default:return 16}default:return 16}}var Xt=null,Qt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Qt,i=n.length,r="value"in Xt?Xt.value:Xt.textContent,o=r.length;for(e=0;e<i&&n[e]===r[e];e++);var a=i-e;for(t=1;t<=a&&n[i-t]===r[o-t];t++);return Jt=r.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,i,r,o){for(var a in this._reactName=t,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(r):r[a]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return Z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=Z({},cn,{view:0,detail:0}),hn=on(dn),fn=Z({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(fn),gn=on(Z({},fn,{dataTransfer:0})),vn=on(Z({},dn,{relatedTarget:0})),mn=on(Z({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=Z({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_n=on(yn),bn=on(Z({},cn,{data:0})),Cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function xn(){return kn}var En=Z({},dn,{key:function(e){if(e.key){var t=Cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(En),Nn=on(Z({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=on(Z({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xn})),Dn=on(Z({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=Z({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=on(Ln),Rn=[9,13,27,32],An=u&&"CompositionEvent"in window,Mn=null;u&&"documentMode"in document&&(Mn=document.documentMode);var Pn=u&&"TextEvent"in window&&!Mn,Zn=u&&(!An||Mn&&8<Mn&&11>=Mn),Fn=String.fromCharCode(32),Bn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var jn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Un(e,t,n,i){Ee(i),0<(t=Gi(t,"onChange")).length&&(n=new un("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Gn=null,Kn=null;function Yn(e){Fi(e,0)}function qn(e){if(K(br(e)))return e}function $n(e,t){if("change"===e)return t}var Xn=!1;if(u){var Qn;if(u){var Jn="oninput"in document;if(!Jn){var ei=document.createElement("div");ei.setAttribute("oninput","return;"),Jn="function"===typeof ei.oninput}Qn=Jn}else Qn=!1;Xn=Qn&&(!document.documentMode||9<document.documentMode)}function ti(){Gn&&(Gn.detachEvent("onpropertychange",ni),Kn=Gn=null)}function ni(e){if("value"===e.propertyName&&qn(Kn)){var t=[];Un(t,Kn,e,Ce(e)),Le(Yn,t)}}function ii(e,t,n){"focusin"===e?(ti(),Kn=n,(Gn=t).attachEvent("onpropertychange",ni)):"focusout"===e&&ti()}function ri(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Kn)}function oi(e,t){if("click"===e)return qn(t)}function ai(e,t){if("input"===e||"change"===e)return qn(t)}var si="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function li(e,t){if(si(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!d.call(t,r)||!si(e[r],t[r]))return!1}return!0}function ci(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ui(e,t){var n,i=ci(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=ci(i)}}function di(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?di(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hi(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(i){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function fi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pi(e){var t=hi(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&di(n.ownerDocument.documentElement,n)){if(null!==i&&fi(n))if(t=i.start,void 0===(e=i.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=void 0===i.end?o:Math.min(i.end,r),!e.extend&&o>i&&(r=i,i=o,o=r),r=ui(n,o);var a=ui(n,i);r&&a&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),o>i?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gi=u&&"documentMode"in document&&11>=document.documentMode,vi=null,mi=null,yi=null,_i=!1;function bi(e,t,n){var i=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_i||null==vi||vi!==Y(i)||("selectionStart"in(i=vi)&&fi(i)?i={start:i.selectionStart,end:i.selectionEnd}:i={anchorNode:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset},yi&&li(yi,i)||(yi=i,0<(i=Gi(mi,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=vi)))}function Ci(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Si={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionend:Ci("Transition","TransitionEnd")},wi={},ki={};function xi(e){if(wi[e])return wi[e];if(!Si[e])return e;var t,n=Si[e];for(t in n)if(n.hasOwnProperty(t)&&t in ki)return wi[e]=n[t];return e}u&&(ki=document.createElement("div").style,"AnimationEvent"in window||(delete Si.animationend.animation,delete Si.animationiteration.animation,delete Si.animationstart.animation),"TransitionEvent"in window||delete Si.transitionend.transition);var Ei=xi("animationend"),Ti=xi("animationiteration"),Ni=xi("animationstart"),Ii=xi("transitionend"),Di=new Map,Li="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Oi(e,t){Di.set(e,t),l(t,[e])}for(var Ri=0;Ri<Li.length;Ri++){var Ai=Li[Ri];Oi(Ai.toLowerCase(),"on"+(Ai[0].toUpperCase()+Ai.slice(1)))}Oi(Ei,"onAnimationEnd"),Oi(Ti,"onAnimationIteration"),Oi(Ni,"onAnimationStart"),Oi("dblclick","onDoubleClick"),Oi("focusin","onFocus"),Oi("focusout","onBlur"),Oi(Ii,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Pi=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mi));function Zi(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,i,r,a,s,l,c){if(ze.apply(this,arguments),Pe){if(!Pe)throw Error(o(198));var u=Ze;Pe=!1,Ze=null,Fe||(Fe=!0,Be=u)}}(i,t,void 0,e),e.currentTarget=null}function Fi(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var a=i.length-1;0<=a;a--){var s=i[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&r.isPropagationStopped())break e;Zi(r,s,c),o=l}else for(a=0;a<i.length;a++){if(l=(s=i[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&r.isPropagationStopped())break e;Zi(r,s,c),o=l}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Bi(e,t){var n=t[gr];void 0===n&&(n=t[gr]=new Set);var i=e+"__bubble";n.has(i)||(Vi(t,e,2,!1),n.add(i))}function Hi(e,t,n){var i=0;t&&(i|=4),Vi(n,e,i,t)}var zi="_reactListening"+Math.random().toString(36).slice(2);function ji(e){if(!e[zi]){e[zi]=!0,a.forEach((function(t){"selectionchange"!==t&&(Pi.has(t)||Hi(t,!1,e),Hi(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zi]||(t[zi]=!0,Hi("selectionchange",!1,t))}}function Vi(e,t,n,i){switch($t(t)){case 1:var r=Ut;break;case 4:r=Gt;break;default:r=Kt}n=r.bind(null,t,n,e),r=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),i?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Wi(e,t,n,i,r){var o=i;if(0===(1&t)&&0===(2&t)&&null!==i)e:for(;;){if(null===i)return;var a=i.tag;if(3===a||4===a){var s=i.stateNode.containerInfo;if(s===r||8===s.nodeType&&s.parentNode===r)break;if(4===a)for(a=i.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;a=a.return}for(;null!==s;){if(null===(a=yr(s)))return;if(5===(l=a.tag)||6===l){i=o=a;continue e}s=s.parentNode}}i=i.return}Le((function(){var i=o,r=Ce(n),a=[];e:{var s=Di.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":c="focus",l=vn;break;case"focusout":c="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=In;break;case Ei:case Ti:case Ni:l=mn;break;case Ii:l=Dn;break;case"scroll":l=hn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var u=0!==(4&t),d=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;u=[];for(var f,p=i;null!==p;){var g=(f=p).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==h&&(null!=(g=Oe(p,h))&&u.push(Ui(p,g,f)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,r),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(c=n.relatedTarget||n.fromElement)||!yr(c)&&!c[pr])&&(l||s)&&(s=r.window===r?r:(s=r.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=i,null!==(c=(c=n.relatedTarget||n.toElement)?yr(c):null)&&(c!==(d=je(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=i),l!==c)){if(u=pn,g="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Nn,g="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?s:br(l),f=null==c?s:br(c),(s=new u(g,p+"leave",l,n,r)).target=d,s.relatedTarget=f,g=null,yr(r)===i&&((u=new u(h,p+"enter",c,n,r)).target=f,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(h=c,p=0,f=u=l;f;f=Ki(f))p++;for(f=0,g=h;g;g=Ki(g))f++;for(;0<p-f;)u=Ki(u),p--;for(;0<f-p;)h=Ki(h),f--;for(;p--;){if(u===h||null!==h&&u===h.alternate)break e;u=Ki(u),h=Ki(h)}u=null}else u=null;null!==l&&Yi(a,s,l,u,!1),null!==c&&null!==d&&Yi(a,d,c,u,!0)}if("select"===(l=(s=i?br(i):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=$n;else if(Wn(s))if(Xn)v=ai;else{v=ri;var m=ii}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=oi);switch(v&&(v=v(e,i))?Un(a,v,n,r):(m&&m(e,s,i),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&ee(s,"number",s.value)),m=i?br(i):window,e){case"focusin":(Wn(m)||"true"===m.contentEditable)&&(vi=m,mi=i,yi=null);break;case"focusout":yi=mi=vi=null;break;case"mousedown":_i=!0;break;case"contextmenu":case"mouseup":case"dragend":_i=!1,bi(a,n,r);break;case"selectionchange":if(gi)break;case"keydown":case"keyup":bi(a,n,r)}var y;if(An)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else jn?Hn(e,n)&&(_="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(_="onCompositionStart");_&&(Zn&&"ko"!==n.locale&&(jn||"onCompositionStart"!==_?"onCompositionEnd"===_&&jn&&(y=en()):(Qt="value"in(Xt=r)?Xt.value:Xt.textContent,jn=!0)),0<(m=Gi(i,_)).length&&(_=new bn(_,e,null,n,r),a.push({event:_,listeners:m}),y?_.data=y:null!==(y=zn(n))&&(_.data=y))),(y=Pn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(jn)return"compositionend"===e||!An&&Hn(e,t)?(e=en(),Jt=Qt=Xt=null,jn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(i=Gi(i,"onBeforeInput")).length&&(r=new bn("onBeforeInput","beforeinput",null,n,r),a.push({event:r,listeners:i}),r.data=y))}Fi(a,t)}))}function Ui(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gi(e,t){for(var n=t+"Capture",i=[];null!==e;){var r=e,o=r.stateNode;5===r.tag&&null!==o&&(r=o,null!=(o=Oe(e,n))&&i.unshift(Ui(e,o,r)),null!=(o=Oe(e,t))&&i.push(Ui(e,o,r))),e=e.return}return i}function Ki(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yi(e,t,n,i,r){for(var o=t._reactName,a=[];null!==n&&n!==i;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===i)break;5===s.tag&&null!==c&&(s=c,r?null!=(l=Oe(n,o))&&a.unshift(Ui(n,l,s)):r||null!=(l=Oe(n,o))&&a.push(Ui(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qi=/\r\n?/g,$i=/\u0000|\uFFFD/g;function Xi(e){return("string"===typeof e?e:""+e).replace(qi,"\n").replace($i,"")}function Qi(e,t,n){if(t=Xi(t),Xi(e)!==t&&n)throw Error(o(425))}function Ji(){}var er=null,tr=null;function nr(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ir="function"===typeof setTimeout?setTimeout:void 0,rr="function"===typeof clearTimeout?clearTimeout:void 0,or="function"===typeof Promise?Promise:void 0,ar="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof or?function(e){return or.resolve(null).then(e).catch(sr)}:ir;function sr(e){setTimeout((function(){throw e}))}function lr(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===i)return e.removeChild(r),void jt(t);i--}else"$"!==n&&"$?"!==n&&"$!"!==n||i++;n=r}while(n);jt(t)}function cr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ur(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var dr=Math.random().toString(36).slice(2),hr="__reactFiber$"+dr,fr="__reactProps$"+dr,pr="__reactContainer$"+dr,gr="__reactEvents$"+dr,vr="__reactListeners$"+dr,mr="__reactHandles$"+dr;function yr(e){var t=e[hr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pr]||n[hr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ur(e);null!==e;){if(n=e[hr])return n;e=ur(e)}return t}n=(e=n).parentNode}return null}function _r(e){return!(e=e[hr]||e[pr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function br(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Cr(e){return e[fr]||null}var Sr=[],wr=-1;function kr(e){return{current:e}}function xr(e){0>wr||(e.current=Sr[wr],Sr[wr]=null,wr--)}function Er(e,t){wr++,Sr[wr]=e.current,e.current=t}var Tr={},Nr=kr(Tr),Ir=kr(!1),Dr=Tr;function Lr(e,t){var n=e.type.contextTypes;if(!n)return Tr;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=t[r];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Or(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Rr(){xr(Ir),xr(Nr)}function Ar(e,t,n){if(Nr.current!==Tr)throw Error(o(168));Er(Nr,t),Er(Ir,n)}function Mr(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,"function"!==typeof i.getChildContext)return n;for(var r in i=i.getChildContext())if(!(r in t))throw Error(o(108,V(e)||"Unknown",r));return Z({},n,i)}function Pr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tr,Dr=Nr.current,Er(Nr,e),Er(Ir,Ir.current),!0}function Zr(e,t,n){var i=e.stateNode;if(!i)throw Error(o(169));n?(e=Mr(e,t,Dr),i.__reactInternalMemoizedMergedChildContext=e,xr(Ir),xr(Nr),Er(Nr,e)):xr(Ir),Er(Ir,n)}var Fr=null,Br=!1,Hr=!1;function zr(e){null===Fr?Fr=[e]:Fr.push(e)}function jr(){if(!Hr&&null!==Fr){Hr=!0;var e=0,t=_t;try{var n=Fr;for(_t=1;e<n.length;e++){var i=n[e];do{i=i(!0)}while(null!==i)}Fr=null,Br=!1}catch(r){throw null!==Fr&&(Fr=Fr.slice(e+1)),Ke(Je,jr),r}finally{_t=t,Hr=!1}}return null}var Vr=[],Wr=0,Ur=null,Gr=0,Kr=[],Yr=0,qr=null,$r=1,Xr="";function Qr(e,t){Vr[Wr++]=Gr,Vr[Wr++]=Ur,Ur=e,Gr=t}function Jr(e,t,n){Kr[Yr++]=$r,Kr[Yr++]=Xr,Kr[Yr++]=qr,qr=e;var i=$r;e=Xr;var r=32-at(i)-1;i&=~(1<<r),n+=1;var o=32-at(t)+r;if(30<o){var a=r-r%5;o=(i&(1<<a)-1).toString(32),i>>=a,r-=a,$r=1<<32-at(t)+r|n<<r|i,Xr=o+e}else $r=1<<o|n<<r|i,Xr=e}function eo(e){null!==e.return&&(Qr(e,1),Jr(e,1,0))}function to(e){for(;e===Ur;)Ur=Vr[--Wr],Vr[Wr]=null,Gr=Vr[--Wr],Vr[Wr]=null;for(;e===qr;)qr=Kr[--Yr],Kr[Yr]=null,Xr=Kr[--Yr],Kr[Yr]=null,$r=Kr[--Yr],Kr[Yr]=null}var no=null,io=null,ro=!1,oo=null;function ao(e,t){var n=Lc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,io=cr(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,io=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==qr?{id:$r,overflow:Xr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Lc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,io=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(ro){var t=io;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=cr(n.nextSibling);var i=no;t&&so(e,t)?ao(i,n):(e.flags=-4097&e.flags|2,ro=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,ro=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function ho(e){if(e!==no)return!1;if(!ro)return uo(e),ro=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!nr(e.type,e.memoizedProps)),t&&(t=io)){if(lo(e))throw fo(),Error(o(418));for(;t;)ao(e,t),t=cr(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){io=cr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}io=null}}else io=no?cr(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=io;e;)e=cr(e.nextSibling)}function po(){io=no=null,ro=!1}function go(e){null===oo?oo=[e]:oo.push(e)}var vo=b.ReactCurrentBatchConfig;function mo(e,t){if(e&&e.defaultProps){for(var n in t=Z({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=kr(null),_o=null,bo=null,Co=null;function So(){Co=bo=_o=null}function wo(e){var t=yo.current;xr(yo),e._currentValue=t}function ko(e,t,n){for(;null!==e;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==i&&(i.childLanes|=t)):null!==i&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function xo(e,t){_o=e,Co=bo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Eo(e){var t=e._currentValue;if(Co!==e)if(e={context:e,memoizedValue:t,next:null},null===bo){if(null===_o)throw Error(o(308));bo=e,_o.dependencies={lanes:0,firstContext:e}}else bo=bo.next=e;return t}var To=null;function No(e){null===To?To=[e]:To.push(e)}function Io(e,t,n,i){var r=t.interleaved;return null===r?(n.next=n,No(t)):(n.next=r.next,r.next=n),t.interleaved=n,Do(e,i)}function Do(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Lo=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ro(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ao(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mo(e,t,n){var i=e.updateQueue;if(null===i)return null;if(i=i.shared,0!==(2&Nl)){var r=i.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),i.pending=t,Do(e,n)}return null===(r=i.interleaved)?(t.next=t,No(i)):(t.next=r.next,r.next=t),i.interleaved=t,Do(e,n)}function Po(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Zo(e,t){var n=e.updateQueue,i=e.alternate;if(null!==i&&n===(i=i.updateQueue)){var r=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?r=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?r=o=t:o=o.next=t}else r=o=t;return n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fo(e,t,n,i){var r=e.updateQueue;Lo=!1;var o=r.firstBaseUpdate,a=r.lastBaseUpdate,s=r.shared.pending;if(null!==s){r.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=r.baseState;for(a=0,u=c=l=null,s=o;;){var h=s.lane,f=s.eventTime;if((i&h)===h){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(h=t,f=n,g.tag){case 1:if("function"===typeof(p=g.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(h="function"===typeof(p=g.payload)?p.call(f,d,h):p)||void 0===h)break e;d=Z({},d,h);break e;case 2:Lo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=r.effects)?r.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,a|=h;if(null===(s=s.next)){if(null===(s=r.shared.pending))break;s=(h=s).next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}if(null===u&&(l=d),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,null!==(t=r.shared.interleaved)){r=t;do{a|=r.lane,r=r.next}while(r!==t)}else null===o&&(r.shared.lanes=0);Pl|=a,e.lanes=a,e.memoizedState=d}}function Bo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(null!==r){if(i.callback=null,i=n,"function"!==typeof r)throw Error(o(191,r));r.call(i)}}}var Ho=(new i.Component).refs;function zo(e,t,n,i){n=null===(n=n(i,t=e.memoizedState))||void 0===n?t:Z({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var jo={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=ec(),r=tc(e),o=Ao(i,r);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Mo(e,o,r))&&(nc(t,e,r,i),Po(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=ec(),r=tc(e),o=Ao(i,r);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Mo(e,o,r))&&(nc(t,e,r,i),Po(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),i=tc(e),r=Ao(n,i);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=Mo(e,r,i))&&(nc(t,e,i,n),Po(t,e,i))}};function Vo(e,t,n,i,r,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!li(n,i)||!li(r,o))}function Wo(e,t,n){var i=!1,r=Tr,o=t.contextType;return"object"===typeof o&&null!==o?o=Eo(o):(r=Or(t)?Dr:Nr.current,o=(i=null!==(i=t.contextTypes)&&void 0!==i)?Lr(e,r):Tr),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=jo,e.stateNode=t,t._reactInternals=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function Uo(e,t,n,i){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&jo.enqueueReplaceState(t,t.state,null)}function Go(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Ho,Oo(e);var o=t.contextType;"object"===typeof o&&null!==o?r.context=Eo(o):(o=Or(t)?Dr:Nr.current,r.context=Lr(e,o)),r.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(zo(e,t,o,n),r.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof r.getSnapshotBeforeUpdate||"function"!==typeof r.UNSAFE_componentWillMount&&"function"!==typeof r.componentWillMount||(t=r.state,"function"===typeof r.componentWillMount&&r.componentWillMount(),"function"===typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&jo.enqueueReplaceState(r,r.state,null),Fo(e,n,r,i),r.state=e.memoizedState),"function"===typeof r.componentDidMount&&(e.flags|=4194308)}function Ko(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var i=n.stateNode}if(!i)throw Error(o(147,e));var r=i,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===Ho&&(t=r.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qo(e){return(0,e._init)(e._payload)}function $o(e){function t(t,n){if(e){var i=t.deletions;null===i?(t.deletions=[n],t.flags|=16):i.push(n)}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=Rc(e,t)).index=0,e.sibling=null,e}function a(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.flags|=2,n):i:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,i){return null===t||6!==t.tag?((t=Zc(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function c(e,t,n,i){var o=n.type;return o===w?d(e,t,n.props.children,i,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===O&&qo(o)===t.type)?((i=r(t,n.props)).ref=Ko(e,t,n),i.return=e,i):((i=Ac(n.type,n.key,n.props,null,e.mode,i)).ref=Ko(e,t,n),i.return=e,i)}function u(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,i,o){return null===t||7!==t.tag?((t=Mc(n,e.mode,i,o)).return=e,t):((t=r(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Zc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case C:return(n=Ac(t.type,t.key,t.props,null,e.mode,n)).ref=Ko(e,null,t),n.return=e,n;case S:return(t=Fc(t,e.mode,n)).return=e,t;case O:return h(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Mc(t,e.mode,n,null)).return=e,t;Yo(e,t)}return null}function f(e,t,n,i){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==r?null:l(e,t,""+n,i);if("object"===typeof n&&null!==n){switch(n.$$typeof){case C:return n.key===r?c(e,t,n,i):null;case S:return n.key===r?u(e,t,n,i):null;case O:return f(e,t,(r=n._init)(n._payload),i)}if(te(n)||M(n))return null!==r?null:d(e,t,n,i,null);Yo(e,n)}return null}function p(e,t,n,i,r){if("string"===typeof i&&""!==i||"number"===typeof i)return l(t,e=e.get(n)||null,""+i,r);if("object"===typeof i&&null!==i){switch(i.$$typeof){case C:return c(t,e=e.get(null===i.key?n:i.key)||null,i,r);case S:return u(t,e=e.get(null===i.key?n:i.key)||null,i,r);case O:return p(e,t,n,(0,i._init)(i._payload),r)}if(te(i)||M(i))return d(t,e=e.get(n)||null,i,r,null);Yo(t,i)}return null}function g(r,o,s,l){for(var c=null,u=null,d=o,g=o=0,v=null;null!==d&&g<s.length;g++){d.index>g?(v=d,d=null):v=d.sibling;var m=f(r,d,s[g],l);if(null===m){null===d&&(d=v);break}e&&d&&null===m.alternate&&t(r,d),o=a(m,o,g),null===u?c=m:u.sibling=m,u=m,d=v}if(g===s.length)return n(r,d),ro&&Qr(r,g),c;if(null===d){for(;g<s.length;g++)null!==(d=h(r,s[g],l))&&(o=a(d,o,g),null===u?c=d:u.sibling=d,u=d);return ro&&Qr(r,g),c}for(d=i(r,d);g<s.length;g++)null!==(v=p(d,r,g,s[g],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?g:v.key),o=a(v,o,g),null===u?c=v:u.sibling=v,u=v);return e&&d.forEach((function(e){return t(r,e)})),ro&&Qr(r,g),c}function v(r,s,l,c){var u=M(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,g=s,v=s=0,m=null,y=l.next();null!==g&&!y.done;v++,y=l.next()){g.index>v?(m=g,g=null):m=g.sibling;var _=f(r,g,y.value,c);if(null===_){null===g&&(g=m);break}e&&g&&null===_.alternate&&t(r,g),s=a(_,s,v),null===d?u=_:d.sibling=_,d=_,g=m}if(y.done)return n(r,g),ro&&Qr(r,v),u;if(null===g){for(;!y.done;v++,y=l.next())null!==(y=h(r,y.value,c))&&(s=a(y,s,v),null===d?u=y:d.sibling=y,d=y);return ro&&Qr(r,v),u}for(g=i(r,g);!y.done;v++,y=l.next())null!==(y=p(g,r,v,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),s=a(y,s,v),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(r,e)})),ro&&Qr(r,v),u}return function e(i,o,a,l){if("object"===typeof a&&null!==a&&a.type===w&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case C:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===w){if(7===u.tag){n(i,u.sibling),(o=r(u,a.props.children)).return=i,i=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===O&&qo(c)===u.type){n(i,u.sibling),(o=r(u,a.props)).ref=Ko(i,u,a),o.return=i,i=o;break e}n(i,u);break}t(i,u),u=u.sibling}a.type===w?((o=Mc(a.props.children,i.mode,l,a.key)).return=i,i=o):((l=Ac(a.type,a.key,a.props,null,i.mode,l)).ref=Ko(i,o,a),l.return=i,i=l)}return s(i);case S:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(i,o.sibling),(o=r(o,a.children||[])).return=i,i=o;break e}n(i,o);break}t(i,o),o=o.sibling}(o=Fc(a,i.mode,l)).return=i,i=o}return s(i);case O:return e(i,o,(u=a._init)(a._payload),l)}if(te(a))return g(i,o,a,l);if(M(a))return v(i,o,a,l);Yo(i,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(i,o.sibling),(o=r(o,a)).return=i,i=o):(n(i,o),(o=Zc(a,i.mode,l)).return=i,i=o),s(i)):n(i,o)}}var Xo=$o(!0),Qo=$o(!1),Jo={},ea=kr(Jo),ta=kr(Jo),na=kr(Jo);function ia(e){if(e===Jo)throw Error(o(174));return e}function ra(e,t){switch(Er(na,t),Er(ta,e),Er(ea,Jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xr(ea),Er(ea,t)}function oa(){xr(ea),xr(ta),xr(na)}function aa(e){ia(na.current);var t=ia(ea.current),n=le(t,e.type);t!==n&&(Er(ta,e),Er(ea,n))}function sa(e){ta.current===e&&(xr(ea),xr(ta))}var la=kr(0);function ca(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function da(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var ha=b.ReactCurrentDispatcher,fa=b.ReactCurrentBatchConfig,pa=0,ga=null,va=null,ma=null,ya=!1,_a=!1,ba=0,Ca=0;function Sa(){throw Error(o(321))}function wa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!si(e[n],t[n]))return!1;return!0}function ka(e,t,n,i,r,a){if(pa=a,ga=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ha.current=null===e||null===e.memoizedState?ss:ls,e=n(i,r),_a){a=0;do{if(_a=!1,ba=0,25<=a)throw Error(o(301));a+=1,ma=va=null,t.updateQueue=null,ha.current=cs,e=n(i,r)}while(_a)}if(ha.current=as,t=null!==va&&null!==va.next,pa=0,ma=va=ga=null,ya=!1,t)throw Error(o(300));return e}function xa(){var e=0!==ba;return ba=0,e}function Ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ma?ga.memoizedState=ma=e:ma=ma.next=e,ma}function Ta(){if(null===va){var e=ga.alternate;e=null!==e?e.memoizedState:null}else e=va.next;var t=null===ma?ga.memoizedState:ma.next;if(null!==t)ma=t,va=e;else{if(null===e)throw Error(o(310));e={memoizedState:(va=e).memoizedState,baseState:va.baseState,baseQueue:va.baseQueue,queue:va.queue,next:null},null===ma?ga.memoizedState=ma=e:ma=ma.next=e}return ma}function Na(e,t){return"function"===typeof t?t(e):t}function Ia(e){var t=Ta(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var i=va,r=i.baseQueue,a=n.pending;if(null!==a){if(null!==r){var s=r.next;r.next=a.next,a.next=s}i.baseQueue=r=a,n.pending=null}if(null!==r){a=r.next,i=i.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((pa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,s=i):c=c.next=h,ga.lanes|=d,Pl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=i:c.next=l,si(i,t.memoizedState)||(bs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=c,n.lastRenderedState=i}if(null!==(e=n.interleaved)){r=e;do{a=r.lane,ga.lanes|=a,Pl|=a,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Da(e){var t=Ta(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,a=t.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{a=e(a,s.action),s=s.next}while(s!==r);si(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function La(){}function Oa(e,t){var n=ga,i=Ta(),r=t(),a=!si(i.memoizedState,r);if(a&&(i.memoizedState=r,bs=!0),i=i.queue,Wa(Ma.bind(null,n,i,e),[e]),i.getSnapshot!==t||a||null!==ma&&1&ma.memoizedState.tag){if(n.flags|=2048,Ba(9,Aa.bind(null,n,i,r,t),void 0,null),null===Il)throw Error(o(349));0!==(30&pa)||Ra(n,t,r)}return r}function Ra(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ga.updateQueue)?(t={lastEffect:null,stores:null},ga.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Aa(e,t,n,i){t.value=n,t.getSnapshot=i,Pa(t)&&Za(e)}function Ma(e,t,n){return n((function(){Pa(t)&&Za(e)}))}function Pa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!si(e,n)}catch(i){return!0}}function Za(e){var t=Do(e,1);null!==t&&nc(t,e,1,-1)}function Fa(e){var t=Ea();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ga,e),[t.memoizedState,e]}function Ba(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=ga.updateQueue)?(t={lastEffect:null,stores:null},ga.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Ha(){return Ta().memoizedState}function za(e,t,n,i){var r=Ea();ga.flags|=e,r.memoizedState=Ba(1|t,n,void 0,void 0===i?null:i)}function ja(e,t,n,i){var r=Ta();i=void 0===i?null:i;var o=void 0;if(null!==va){var a=va.memoizedState;if(o=a.destroy,null!==i&&wa(i,a.deps))return void(r.memoizedState=Ba(t,n,o,i))}ga.flags|=e,r.memoizedState=Ba(1|t,n,o,i)}function Va(e,t){return za(8390656,8,e,t)}function Wa(e,t){return ja(2048,8,e,t)}function Ua(e,t){return ja(4,2,e,t)}function Ga(e,t){return ja(4,4,e,t)}function Ka(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ya(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ja(4,4,Ka.bind(null,t,e),n)}function qa(){}function $a(e,t){var n=Ta();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&wa(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=Ta();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&wa(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Qa(e,t,n){return 0===(21&pa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(si(n,t)||(n=gt(),ga.lanes|=n,Pl|=n,e.baseState=!0),t)}function Ja(e,t){var n=_t;_t=0!==n&&4>n?n:4,e(!0);var i=fa.transition;fa.transition={};try{e(!1),t()}finally{_t=n,fa.transition=i}}function es(){return Ta().memoizedState}function ts(e,t,n){var i=tc(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},is(e))rs(t,n);else if(null!==(n=Io(e,t,n,i))){nc(n,e,i,ec()),os(n,t,i)}}function ns(e,t,n){var i=tc(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(is(e))rs(t,r);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(r.hasEagerState=!0,r.eagerState=s,si(s,a)){var l=t.interleaved;return null===l?(r.next=r,No(t)):(r.next=l.next,l.next=r),void(t.interleaved=r)}}catch(c){}null!==(n=Io(e,t,r,i))&&(nc(n,e,i,r=ec()),os(n,t,i))}}function is(e){var t=e.alternate;return e===ga||null!==t&&t===ga}function rs(e,t){_a=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!==(4194240&n)){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,yt(e,n)}}var as={readContext:Eo,useCallback:Sa,useContext:Sa,useEffect:Sa,useImperativeHandle:Sa,useInsertionEffect:Sa,useLayoutEffect:Sa,useMemo:Sa,useReducer:Sa,useRef:Sa,useState:Sa,useDebugValue:Sa,useDeferredValue:Sa,useTransition:Sa,useMutableSource:Sa,useSyncExternalStore:Sa,useId:Sa,unstable_isNewReconciler:!1},ss={readContext:Eo,useCallback:function(e,t){return Ea().memoizedState=[e,void 0===t?null:t],e},useContext:Eo,useEffect:Va,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,za(4194308,4,Ka.bind(null,t,e),n)},useLayoutEffect:function(e,t){return za(4194308,4,e,t)},useInsertionEffect:function(e,t){return za(4,2,e,t)},useMemo:function(e,t){var n=Ea();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Ea();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=ts.bind(null,ga,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},Ea().memoizedState=e},useState:Fa,useDebugValue:qa,useDeferredValue:function(e){return Ea().memoizedState=e},useTransition:function(){var e=Fa(!1),t=e[0];return e=Ja.bind(null,e[1]),Ea().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ga,r=Ea();if(ro){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Il)throw Error(o(349));0!==(30&pa)||Ra(i,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,Va(Ma.bind(null,i,a,e),[e]),i.flags|=2048,Ba(9,Aa.bind(null,i,a,n,t),void 0,null),n},useId:function(){var e=Ea(),t=Il.identifierPrefix;if(ro){var n=Xr;t=":"+t+"R"+(n=($r&~(1<<32-at($r)-1)).toString(32)+n),0<(n=ba++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ca++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Eo,useCallback:$a,useContext:Eo,useEffect:Wa,useImperativeHandle:Ya,useInsertionEffect:Ua,useLayoutEffect:Ga,useMemo:Xa,useReducer:Ia,useRef:Ha,useState:function(){return Ia(Na)},useDebugValue:qa,useDeferredValue:function(e){return Qa(Ta(),va.memoizedState,e)},useTransition:function(){return[Ia(Na)[0],Ta().memoizedState]},useMutableSource:La,useSyncExternalStore:Oa,useId:es,unstable_isNewReconciler:!1},cs={readContext:Eo,useCallback:$a,useContext:Eo,useEffect:Wa,useImperativeHandle:Ya,useInsertionEffect:Ua,useLayoutEffect:Ga,useMemo:Xa,useReducer:Da,useRef:Ha,useState:function(){return Da(Na)},useDebugValue:qa,useDeferredValue:function(e){var t=Ta();return null===va?t.memoizedState=e:Qa(t,va.memoizedState,e)},useTransition:function(){return[Da(Na)[0],Ta().memoizedState]},useMutableSource:La,useSyncExternalStore:Oa,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",i=t;do{n+=z(i),i=i.return}while(i);var r=n}catch(o){r="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:r,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function hs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Ao(-1,n)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){Wl||(Wl=!0,Ul=i),hs(0,t)},n}function gs(e,t,n){(n=Ao(-1,n)).tag=3;var i=e.type.getDerivedStateFromError;if("function"===typeof i){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){hs(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){hs(0,t),"function"!==typeof i&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vs(e,t,n){var i=e.pingCache;if(null===i){i=e.pingCache=new fs;var r=new Set;i.set(t,r)}else void 0===(r=i.get(t))&&(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=xc.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,i,r){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ao(-1,1)).tag=2,Mo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var _s=b.ReactCurrentOwner,bs=!1;function Cs(e,t,n,i){t.child=null===e?Qo(t,null,n,i):Xo(t,e.child,n,i)}function Ss(e,t,n,i,r){n=n.render;var o=t.ref;return xo(t,r),i=ka(e,t,n,i,o,r),n=xa(),null===e||bs?(ro&&n&&eo(t),t.flags|=1,Cs(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Ws(e,t,r))}function ws(e,t,n,i,r){if(null===e){var o=n.type;return"function"!==typeof o||Oc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ac(n.type,null,i,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ks(e,t,o,i,r))}if(o=e.child,0===(e.lanes&r)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:li)(a,i)&&e.ref===t.ref)return Ws(e,t,r)}return t.flags|=1,(e=Rc(o,i)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,i,r){if(null!==e){var o=e.memoizedProps;if(li(o,i)&&e.ref===t.ref){if(bs=!1,t.pendingProps=i=o,0===(e.lanes&r))return t.lanes=e.lanes,Ws(e,t,r);0!==(131072&e.flags)&&(bs=!0)}}return Ts(e,t,n,i,r)}function xs(e,t,n){var i=t.pendingProps,r=i.children,o=null!==e?e.memoizedState:null;if("hidden"===i.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Er(Rl,Ol),Ol|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Er(Rl,Ol),Ol|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=null!==o?o.baseLanes:n,Er(Rl,Ol),Ol|=i}else null!==o?(i=o.baseLanes|n,t.memoizedState=null):i=n,Er(Rl,Ol),Ol|=i;return Cs(e,t,r,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,i,r){var o=Or(n)?Dr:Nr.current;return o=Lr(t,o),xo(t,r),n=ka(e,t,n,i,o,r),i=xa(),null===e||bs?(ro&&i&&eo(t),t.flags|=1,Cs(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Ws(e,t,r))}function Ns(e,t,n,i,r){if(Or(n)){var o=!0;Pr(t)}else o=!1;if(xo(t,r),null===t.stateNode)Vs(e,t),Wo(t,n,i),Go(t,n,i,r),i=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Eo(c):c=Lr(t,c=Or(n)?Dr:Nr.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==i||l!==c)&&Uo(t,a,i,c),Lo=!1;var h=t.memoizedState;a.state=h,Fo(t,i,a,r),l=t.memoizedState,s!==i||h!==l||Ir.current||Lo?("function"===typeof u&&(zo(t,n,u,i),l=t.memoizedState),(s=Lo||Vo(t,n,s,i,h,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=l),a.props=i,a.state=l,a.context=c,i=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),i=!1)}else{a=t.stateNode,Ro(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:mo(t.type,s),a.props=c,d=t.pendingProps,h=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Eo(l):l=Lr(t,l=Or(n)?Dr:Nr.current);var f=n.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||h!==l)&&Uo(t,a,i,l),Lo=!1,h=t.memoizedState,a.state=h,Fo(t,i,a,r);var p=t.memoizedState;s!==d||h!==p||Ir.current||Lo?("function"===typeof f&&(zo(t,n,f,i),p=t.memoizedState),(c=Lo||Vo(t,n,c,i,h,p,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(i,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(i,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=p),a.props=i,a.state=p,a.context=l,i=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),i=!1)}return Is(e,t,n,i,o,r)}function Is(e,t,n,i,r,o){Es(e,t);var a=0!==(128&t.flags);if(!i&&!a)return r&&Zr(t,n,!1),Ws(e,t,o);i=t.stateNode,_s.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:i.render();return t.flags|=1,null!==e&&a?(t.child=Xo(t,e.child,null,o),t.child=Xo(t,null,s,o)):Cs(e,t,s,o),t.memoizedState=i.state,r&&Zr(t,n,!0),t.child}function Ds(e){var t=e.stateNode;t.pendingContext?Ar(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ar(0,t.context,!1),ra(e,t.containerInfo)}function Ls(e,t,n,i,r){return po(),go(r),t.flags|=256,Cs(e,t,n,i),t.child}var Os,Rs,As,Ms={dehydrated:null,treeContext:null,retryLane:0};function Ps(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zs(e,t,n){var i,r=t.pendingProps,a=la.current,s=!1,l=0!==(128&t.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&0!==(2&a)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Er(la,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&r)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Pc(l,r,0,null),e=Mc(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ps(n),t.memoizedState=Ms,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(i=a.dehydrated))return function(e,t,n,i,r,a,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,i=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=i.fallback,r=t.mode,i=Pc({mode:"visible",children:i.children},r,0,null),(a=Mc(a,r,s,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,0!==(1&t.mode)&&Xo(t,e.child,null,s),t.child.memoizedState=Ps(s),t.memoizedState=Ms,a);if(0===(1&t.mode))return Bs(e,t,s,null);if("$!"===r.data){if(i=r.nextSibling&&r.nextSibling.dataset)var l=i.dgst;return i=l,Bs(e,t,s,i=ds(a=Error(o(419)),i,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(i=Il)){switch(s&-s){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!==(r&(i.suspendedLanes|s))?0:r)&&r!==a.retryLane&&(a.retryLane=r,Do(e,r),nc(i,e,r,-1))}return gc(),Bs(e,t,s,i=ds(Error(o(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=Tc.bind(null,e),r._reactRetry=t,null):(e=a.treeContext,io=cr(r.nextSibling),no=t,ro=!0,oo=null,null!==e&&(Kr[Yr++]=$r,Kr[Yr++]=Xr,Kr[Yr++]=qr,$r=e.id,Xr=e.overflow,qr=t),(t=Fs(t,i.children)).flags|=4096,t)}(e,t,l,r,i,a,n);if(s){s=r.fallback,l=t.mode,i=(a=e.child).sibling;var c={mode:"hidden",children:r.children};return 0===(1&l)&&t.child!==a?((r=t.child).childLanes=0,r.pendingProps=c,t.deletions=null):(r=Rc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==i?s=Rc(i,s):(s=Mc(s,l,n,null)).flags|=2,s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=null===(l=e.child.memoizedState)?Ps(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,r}return e=(s=e.child).sibling,r=Rc(s,{mode:"visible",children:r.children}),0===(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Fs(e,t){return(t=Pc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,i){return null!==i&&go(i),Xo(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hs(e,t,n){e.lanes|=t;var i=e.alternate;null!==i&&(i.lanes|=t),ko(e.return,t,n)}function zs(e,t,n,i,r){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=r)}function js(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(Cs(e,t,i.children,n),0!==(2&(i=la.current)))i=1&i|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hs(e,n,t);else if(19===e.tag)Hs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(Er(la,i),0===(1&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===ca(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),zs(t,!1,r,n,o);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===ca(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}zs(t,!0,n,null,o);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ws(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Pl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Rc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Us(e,t){if(!ro)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=14680064&r.subtreeFlags,i|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Ks(e,t,n){var i=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Or(t.type)&&Rr(),Gs(t),null;case 3:return i=t.stateNode,oa(),xr(Ir),xr(Nr),da(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(ac(oo),oo=null))),Gs(t),null;case 5:sa(t);var r=ia(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Rs(e,t,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(o(166));return Gs(t),null}if(e=ia(ea.current),ho(t)){i=t.stateNode,n=t.type;var a=t.memoizedProps;switch(i[hr]=t,i[fr]=a,e=0!==(1&t.mode),n){case"dialog":Bi("cancel",i),Bi("close",i);break;case"iframe":case"object":case"embed":Bi("load",i);break;case"video":case"audio":for(r=0;r<Mi.length;r++)Bi(Mi[r],i);break;case"source":Bi("error",i);break;case"img":case"image":case"link":Bi("error",i),Bi("load",i);break;case"details":Bi("toggle",i);break;case"input":$(i,a),Bi("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!a.multiple},Bi("invalid",i);break;case"textarea":re(i,a),Bi("invalid",i)}for(var l in ye(n,a),r=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?i.textContent!==c&&(!0!==a.suppressHydrationWarning&&Qi(i.textContent,c,e),r=["children",c]):"number"===typeof c&&i.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Qi(i.textContent,c,e),r=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Bi("scroll",i)}switch(n){case"input":G(i),J(i,a,!0);break;case"textarea":G(i),ae(i);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(i.onclick=Ji)}i=r,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof i.is?e=l.createElement(n,{is:i.is}):(e=l.createElement(n),"select"===n&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,n),e[hr]=t,e[fr]=i,Os(e,t),t.stateNode=e;e:{switch(l=_e(n,i),n){case"dialog":Bi("cancel",e),Bi("close",e),r=i;break;case"iframe":case"object":case"embed":Bi("load",e),r=i;break;case"video":case"audio":for(r=0;r<Mi.length;r++)Bi(Mi[r],e);r=i;break;case"source":Bi("error",e),r=i;break;case"img":case"image":case"link":Bi("error",e),Bi("load",e),r=i;break;case"details":Bi("toggle",e),r=i;break;case"input":$(e,i),r=q(e,i),Bi("invalid",e);break;case"option":default:r=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},r=Z({},i,{value:void 0}),Bi("invalid",e);break;case"textarea":re(e,i),r=ie(e,i),Bi("invalid",e)}for(a in ye(n,r),c=r)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ve(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&he(e,u):"number"===typeof u&&he(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Bi("scroll",e):null!=u&&_(e,a,u,l))}switch(n){case"input":G(e),J(e,i,!1);break;case"textarea":G(e),ae(e);break;case"option":null!=i.value&&e.setAttribute("value",""+W(i.value));break;case"select":e.multiple=!!i.multiple,null!=(a=i.value)?ne(e,!!i.multiple,a,!1):null!=i.defaultValue&&ne(e,!!i.multiple,i.defaultValue,!0);break;default:"function"===typeof r.onClick&&(e.onclick=Ji)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)As(0,t,e.memoizedProps,i);else{if("string"!==typeof i&&null===t.stateNode)throw Error(o(166));if(n=ia(na.current),ia(ea.current),ho(t)){if(i=t.stateNode,n=t.memoizedProps,i[hr]=t,(a=i.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Qi(i.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qi(i.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(i=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[hr]=t,t.stateNode=i}return Gs(t),null;case 13:if(xr(la),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ro&&null!==io&&0!==(1&t.mode)&&0===(128&t.flags))fo(),po(),t.flags|=98560,a=!1;else if(a=ho(t),null!==i&&null!==i.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[hr]=t}else po(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),a=!1}else null!==oo&&(ac(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&la.current)?0===Al&&(Al=3):gc())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return oa(),null===e&&ji(t.stateNode.containerInfo),Gs(t),null;case 10:return wo(t.type._context),Gs(t),null;case 19:if(xr(la),null===(a=t.memoizedState))return Gs(t),null;if(i=0!==(128&t.flags),null===(l=a.rendering))if(i)Us(a,!1);else{if(0!==Al||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ca(e))){for(t.flags|=128,Us(a,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;null!==n;)e=i,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Er(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>jl&&(t.flags|=128,i=!0,Us(a,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ca(l))){if(t.flags|=128,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Us(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ro)return Gs(t),null}else 2*Xe()-a.renderingStartTime>jl&&1073741824!==n&&(t.flags|=128,i=!0,Us(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=la.current,Er(la,i?1&n|2:1&n),t):(Gs(t),null);case 22:case 23:return dc(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&0!==(1&t.mode)?0!==(1073741824&Ol)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ys(e,t){switch(to(t),t.tag){case 1:return Or(t.type)&&Rr(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),xr(Ir),xr(Nr),da(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(xr(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xr(la),null;case 4:return oa(),null;case 10:return wo(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(e,t,n,i){var r=e.memoizedProps;if(r!==i){e=t.stateNode,ia(ea.current);var o,a=null;switch(n){case"input":r=q(e,r),i=q(e,i),a=[];break;case"select":r=Z({},r,{value:void 0}),i=Z({},i,{value:void 0}),a=[];break;case"textarea":r=ie(e,r),i=ie(e,i),a=[];break;default:"function"!==typeof r.onClick&&"function"===typeof i.onClick&&(e.onclick=Ji)}for(u in ye(n,i),n=null,r)if(!i.hasOwnProperty(u)&&r.hasOwnProperty(u)&&null!=r[u])if("style"===u){var l=r[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in i){var c=i[u];if(l=null!=r?r[u]:void 0,i.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Bi("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},As=function(e,t,n,i){n!==i&&(t.flags|=4)};var qs=!1,$s=!1,Xs="function"===typeof WeakSet?WeakSet:Set,Qs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(i){kc(e,t,i)}else n.current=null}function el(e,t,n){try{n()}catch(i){kc(e,t,i)}}var tl=!1;function nl(e,t,n){var i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){var r=i=i.next;do{if((r.tag&e)===e){var o=r.destroy;r.destroy=void 0,void 0!==o&&el(t,n,o)}r=r.next}while(r!==i)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hr],delete t[fr],delete t[gr],delete t[vr],delete t[mr])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Ji));else if(4!==i&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==i&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function hl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(rt,n)}catch(s){}switch(n.tag){case 5:$s||Js(n,t);case 6:var i=ul,r=dl;ul=null,hl(e,t,n),dl=r,null!==(ul=i)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lr(e.parentNode,n):1===e.nodeType&&lr(e,n),jt(e)):lr(ul,n.stateNode));break;case 4:i=ul,r=dl,ul=n.stateNode.containerInfo,dl=!0,hl(e,t,n),ul=i,dl=r;break;case 0:case 11:case 14:case 15:if(!$s&&(null!==(i=n.updateQueue)&&null!==(i=i.lastEffect))){r=i=i.next;do{var o=r,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(n,t,a),r=r.next}while(r!==i)}hl(e,t,n);break;case 1:if(!$s&&(Js(n,t),"function"===typeof(i=n.stateNode).componentWillUnmount))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(s){kc(n,t,s)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?($s=(i=$s)||null!==n.memoizedState,hl(e,t,n),$s=i):hl(e,t,n);break;default:hl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var i=Nc.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var i=0;i<n.length;i++){var r=n[i];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));fl(a,s,r),ul=null,dl=!1;var c=r.alternate;null!==c&&(c.return=null),r.return=null}catch(u){kc(r,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),ml(e),4&i){try{nl(3,e,e.return),il(3,e)}catch(v){kc(e,e.return,v)}try{nl(5,e,e.return)}catch(v){kc(e,e.return,v)}}break;case 1:gl(t,e),ml(e),512&i&&null!==n&&Js(n,n.return);break;case 5:if(gl(t,e),ml(e),512&i&&null!==n&&Js(n,n.return),32&e.flags){var r=e.stateNode;try{he(r,"")}catch(v){kc(e,e.return,v)}}if(4&i&&null!=(r=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(r,a),_e(l,s);var u=_e(l,a);for(s=0;s<c.length;s+=2){var d=c[s],h=c[s+1];"style"===d?ve(r,h):"dangerouslySetInnerHTML"===d?de(r,h):"children"===d?he(r,h):_(r,d,h,u)}switch(l){case"input":Q(r,a);break;case"textarea":oe(r,a);break;case"select":var f=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(r,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?ne(r,!!a.multiple,a.defaultValue,!0):ne(r,!!a.multiple,a.multiple?[]:"",!1))}r[fr]=a}catch(v){kc(e,e.return,v)}}break;case 6:if(gl(t,e),ml(e),4&i){if(null===e.stateNode)throw Error(o(162));r=e.stateNode,a=e.memoizedProps;try{r.nodeValue=a}catch(v){kc(e,e.return,v)}}break;case 3:if(gl(t,e),ml(e),4&i&&null!==n&&n.memoizedState.isDehydrated)try{jt(t.containerInfo)}catch(v){kc(e,e.return,v)}break;case 4:default:gl(t,e),ml(e);break;case 13:gl(t,e),ml(e),8192&(r=e.child).flags&&(a=null!==r.memoizedState,r.stateNode.isHidden=a,!a||null!==r.alternate&&null!==r.alternate.memoizedState||(zl=Xe())),4&i&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?($s=(u=$s)||d,gl(t,e),$s=u):gl(t,e),ml(e),8192&i){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Qs=e,d=e.child;null!==d;){for(h=Qs=d;null!==Qs;){switch(p=(f=Qs).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:Js(f,f.return);var g=f.stateNode;if("function"===typeof g.componentWillUnmount){i=f,n=f.return;try{t=i,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){kc(i,n,v)}}break;case 5:Js(f,f.return);break;case 22:if(null!==f.memoizedState){Cl(h);continue}}null!==p?(p.return=f,Qs=p):Cl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{r=h.stateNode,u?"function"===typeof(a=r.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=void 0!==(c=h.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",s))}catch(v){kc(e,e.return,v)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(v){kc(e,e.return,v)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:gl(t,e),ml(e),4&i&&pl(e);case 21:}}function ml(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var i=n;break e}n=n.return}throw Error(o(160))}switch(i.tag){case 5:var r=i.stateNode;32&i.flags&&(he(r,""),i.flags&=-33),cl(e,sl(e),r);break;case 3:case 4:var a=i.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(s){kc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Qs=e,_l(e,t,n)}function _l(e,t,n){for(var i=0!==(1&e.mode);null!==Qs;){var r=Qs,o=r.child;if(22===r.tag&&i){var a=null!==r.memoizedState||qs;if(!a){var s=r.alternate,l=null!==s&&null!==s.memoizedState||$s;s=qs;var c=$s;if(qs=a,($s=l)&&!c)for(Qs=r;null!==Qs;)l=(a=Qs).child,22===a.tag&&null!==a.memoizedState?Sl(r):null!==l?(l.return=a,Qs=l):Sl(r);for(;null!==o;)Qs=o,_l(o,t,n),o=o.sibling;Qs=r,qs=s,$s=c}bl(e)}else 0!==(8772&r.subtreeFlags)&&null!==o?(o.return=r,Qs=o):bl(e)}}function bl(e){for(;null!==Qs;){var t=Qs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:$s||il(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!$s)if(null===n)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:mo(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bo(t,a,i);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&jt(h)}}}break;default:throw Error(o(163))}$s||512&t.flags&&rl(t)}catch(f){kc(t,t.return,f)}}if(t===e){Qs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qs=n;break}Qs=t.return}}function Cl(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qs=n;break}Qs=t.return}}function Sl(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(l){kc(t,n,l)}break;case 1:var i=t.stateNode;if("function"===typeof i.componentDidMount){var r=t.return;try{i.componentDidMount()}catch(l){kc(t,r,l)}}var o=t.return;try{rl(t)}catch(l){kc(t,o,l)}break;case 5:var a=t.return;try{rl(t)}catch(l){kc(t,a,l)}}}catch(l){kc(t,t.return,l)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var wl,kl=Math.ceil,xl=b.ReactCurrentDispatcher,El=b.ReactCurrentOwner,Tl=b.ReactCurrentBatchConfig,Nl=0,Il=null,Dl=null,Ll=0,Ol=0,Rl=kr(0),Al=0,Ml=null,Pl=0,Zl=0,Fl=0,Bl=null,Hl=null,zl=0,jl=1/0,Vl=null,Wl=!1,Ul=null,Gl=null,Kl=!1,Yl=null,ql=0,$l=0,Xl=null,Ql=-1,Jl=0;function ec(){return 0!==(6&Nl)?Xe():-1!==Ql?Ql:Ql=Xe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Nl)&&0!==Ll?Ll&-Ll:null!==vo.transition?(0===Jl&&(Jl=gt()),Jl):0!==(e=_t)?e:e=void 0===(e=window.event)?16:$t(e.type)}function nc(e,t,n,i){if(50<$l)throw $l=0,Xl=null,Error(o(185));mt(e,n,i),0!==(2&Nl)&&e===Il||(e===Il&&(0===(2&Nl)&&(Zl|=n),4===Al&&sc(e,Ll)),ic(e,i),1===n&&0===Nl&&0===(1&t.mode)&&(jl=Xe()+500,Br&&jr()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=r[a];-1===l?0!==(s&n)&&0===(s&i)||(r[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var i=ht(e,e===Il?Ll:0);if(0===i)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Br=!0,zr(e)}(lc.bind(null,e)):zr(lc.bind(null,e)),ar((function(){0===(6&Nl)&&jr()})),n=null;else{switch(bt(i)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=it}n=Ic(n,rc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rc(e,t){if(Ql=-1,Jl=0,0!==(6&Nl))throw Error(o(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var i=ht(e,e===Il?Ll:0);if(0===i)return null;if(0!==(30&i)||0!==(i&e.expiredLanes)||t)t=vc(e,i);else{t=i;var r=Nl;Nl|=2;var a=pc();for(Il===e&&Ll===t||(Vl=null,jl=Xe()+500,hc(e,t));;)try{yc();break}catch(l){fc(e,l)}So(),xl.current=a,Nl=r,null!==Dl?t=0:(Il=null,Ll=0,t=Al)}if(0!==t){if(2===t&&(0!==(r=pt(e))&&(i=r,t=oc(e,r))),1===t)throw n=Ml,hc(e,0),sc(e,i),ic(e,Xe()),n;if(6===t)sc(e,i);else{if(r=e.current.alternate,0===(30&i)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var i=0;i<n.length;i++){var r=n[i],o=r.getSnapshot;r=r.value;try{if(!si(o(),r))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)&&(2===(t=vc(e,i))&&(0!==(a=pt(e))&&(i=a,t=oc(e,a))),1===t))throw n=Ml,hc(e,0),sc(e,i),ic(e,Xe()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(o(345));case 2:case 5:Cc(e,Hl,Vl);break;case 3:if(sc(e,i),(130023424&i)===i&&10<(t=zl+500-Xe())){if(0!==ht(e,0))break;if(((r=e.suspendedLanes)&i)!==i){ec(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=ir(Cc.bind(null,e,Hl,Vl),t);break}Cc(e,Hl,Vl);break;case 4:if(sc(e,i),(4194240&i)===i)break;for(t=e.eventTimes,r=-1;0<i;){var s=31-at(i);a=1<<s,(s=t[s])>r&&(r=s),i&=~a}if(i=r,10<(i=(120>(i=Xe()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*kl(i/1960))-i)){e.timeoutHandle=ir(Cc.bind(null,e,Hl,Vl),i);break}Cc(e,Hl,Vl);break;default:throw Error(o(329))}}}return ic(e,Xe()),e.callbackNode===n?rc.bind(null,e):null}function oc(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=vc(e,t))&&(t=Hl,Hl=n,null!==t&&ac(t)),e}function ac(e){null===Hl?Hl=e:Hl.push.apply(Hl,e)}function sc(e,t){for(t&=~Fl,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),i=1<<n;e[n]=-1,t&=~i}}function lc(e){if(0!==(6&Nl))throw Error(o(327));Sc();var t=ht(e,0);if(0===(1&t))return ic(e,Xe()),null;var n=vc(e,t);if(0!==e.tag&&2===n){var i=pt(e);0!==i&&(t=i,n=oc(e,i))}if(1===n)throw n=Ml,hc(e,0),sc(e,t),ic(e,Xe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cc(e,Hl,Vl),ic(e,Xe()),null}function cc(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&(jl=Xe()+500,Br&&jr())}}function uc(e){null!==Yl&&0===Yl.tag&&0===(6&Nl)&&Sc();var t=Nl;Nl|=1;var n=Tl.transition,i=_t;try{if(Tl.transition=null,_t=1,e)return e()}finally{_t=i,Tl.transition=n,0===(6&(Nl=t))&&jr()}}function dc(){Ol=Rl.current,xr(Rl)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rr(n)),null!==Dl)for(n=Dl.return;null!==n;){var i=n;switch(to(i),i.tag){case 1:null!==(i=i.type.childContextTypes)&&void 0!==i&&Rr();break;case 3:oa(),xr(Ir),xr(Nr),da();break;case 5:sa(i);break;case 4:oa();break;case 13:case 19:xr(la);break;case 10:wo(i.type._context);break;case 22:case 23:dc()}n=n.return}if(Il=e,Dl=e=Rc(e.current,null),Ll=Ol=t,Al=0,Ml=null,Fl=Zl=Pl=0,Hl=Bl=null,null!==To){for(t=0;t<To.length;t++)if(null!==(i=(n=To[t]).interleaved)){n.interleaved=null;var r=i.next,o=n.pending;if(null!==o){var a=o.next;o.next=r,i.next=a}n.pending=i}To=null}return e}function fc(e,t){for(;;){var n=Dl;try{if(So(),ha.current=as,ya){for(var i=ga.memoizedState;null!==i;){var r=i.queue;null!==r&&(r.pending=null),i=i.next}ya=!1}if(pa=0,ma=va=ga=null,_a=!1,ba=0,El.current=null,null===n||null===n.return){Al=1,Ml=t,Dl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Ll,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,h=d.tag;if(0===(1&d.mode)&&(0===h||11===h||15===h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,ys(p,s,l,0,t),1&p.mode&&vs(a,u,t),c=u;var g=(t=p).updateQueue;if(null===g){var v=new Set;v.add(c),t.updateQueue=v}else g.add(c);break e}if(0===(1&t)){vs(a,u,t),gc();break e}c=Error(o(426))}else if(ro&&1&l.mode){var m=ms(s);if(null!==m){0===(65536&m.flags)&&(m.flags|=256),ys(m,s,l,0,t),go(us(c,l));break e}}a=c=us(c,l),4!==Al&&(Al=2),null===Bl?Bl=[a]:Bl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Zo(a,ps(0,c,t));break e;case 1:l=c;var y=a.type,_=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Gl||!Gl.has(_)))){a.flags|=65536,t&=-t,a.lanes|=t,Zo(a,gs(a,l,t));break e}}a=a.return}while(null!==a)}bc(n)}catch(b){t=b,Dl===n&&null!==n&&(Dl=n=n.return);continue}break}}function pc(){var e=xl.current;return xl.current=as,null===e?as:e}function gc(){0!==Al&&3!==Al&&2!==Al||(Al=4),null===Il||0===(268435455&Pl)&&0===(268435455&Zl)||sc(Il,Ll)}function vc(e,t){var n=Nl;Nl|=2;var i=pc();for(Il===e&&Ll===t||(Vl=null,hc(e,t));;)try{mc();break}catch(r){fc(e,r)}if(So(),Nl=n,xl.current=i,null!==Dl)throw Error(o(261));return Il=null,Ll=0,Al}function mc(){for(;null!==Dl;)_c(Dl)}function yc(){for(;null!==Dl&&!qe();)_c(Dl)}function _c(e){var t=wl(e.alternate,e,Ol);e.memoizedProps=e.pendingProps,null===t?bc(e):Dl=t,El.current=null}function bc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ks(n,t,Ol)))return void(Dl=n)}else{if(null!==(n=Ys(n,t)))return n.flags&=32767,void(Dl=n);if(null===e)return Al=6,void(Dl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Dl=t);Dl=t=e}while(null!==t);0===Al&&(Al=5)}function Cc(e,t,n){var i=_t,r=Tl.transition;try{Tl.transition=null,_t=1,function(e,t,n,i){do{Sc()}while(null!==Yl);if(0!==(6&Nl))throw Error(o(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-at(n),o=1<<r;t[r]=0,i[r]=-1,e[r]=-1,n&=~o}}(e,a),e===Il&&(Dl=Il=null,Ll=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Kl||(Kl=!0,Ic(tt,(function(){return Sc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=_t;_t=1;var l=Nl;Nl|=4,El.current=null,function(e,t){if(er=Wt,fi(e=hi())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var r=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{n.nodeType,a.nodeType}catch(C){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==r&&3!==h.nodeType||(l=s+r),h!==a||0!==i&&3!==h.nodeType||(c=s+i),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++u===r&&(l=s),f===a&&++d===i&&(c=s),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(tr={focusedElem:e,selectionRange:n},Wt=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var v=g.memoizedProps,m=g.memoizedState,y=t.stateNode,_=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:mo(t.type,v),m);y.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(o(163))}}catch(C){kc(t,t.return,C)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}g=tl,tl=!1}(e,n),vl(n,e),pi(tr),Wt=!!er,tr=er=null,e.current=n,yl(n,e,r),$e(),Nl=l,_t=s,Tl.transition=a}else e.current=n;if(Kl&&(Kl=!1,Yl=e,ql=r),0===(a=e.pendingLanes)&&(Gl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(rt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ic(e,Xe()),null!==t)for(i=e.onRecoverableError,n=0;n<t.length;n++)i((r=t[n]).value,{componentStack:r.stack,digest:r.digest});if(Wl)throw Wl=!1,e=Ul,Ul=null,e;0!==(1&ql)&&0!==e.tag&&Sc(),0!==(1&(a=e.pendingLanes))?e===Xl?$l++:($l=0,Xl=e):$l=0,jr()}(e,t,n,i)}finally{Tl.transition=r,_t=i}return null}function Sc(){if(null!==Yl){var e=bt(ql),t=Tl.transition,n=_t;try{if(Tl.transition=null,_t=16>e?16:e,null===Yl)var i=!1;else{if(e=Yl,Yl=null,ql=0,0!==(6&Nl))throw Error(o(331));var r=Nl;for(Nl|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(0!==(16&Qs.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Qs=u;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Qs=h;else for(;null!==Qs;){var f=(d=Qs).sibling,p=d.return;if(ol(d),d===u){Qs=null;break}if(null!==f){f.return=p,Qs=f;break}Qs=p}}}var g=a.alternate;if(null!==g){var v=g.child;if(null!==v){g.child=null;do{var m=v.sibling;v.sibling=null,v=m}while(null!==v)}}Qs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(0!==(2048&(a=Qs).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Qs=y;break e}Qs=a.return}}var _=e.current;for(Qs=_;null!==Qs;){var b=(s=Qs).child;if(0!==(2064&s.subtreeFlags)&&null!==b)b.return=s,Qs=b;else e:for(s=_;null!==Qs;){if(0!==(2048&(l=Qs).flags))try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(S){kc(l,l.return,S)}if(l===s){Qs=null;break e}var C=l.sibling;if(null!==C){C.return=l.return,Qs=C;break e}Qs=l.return}}if(Nl=r,jr(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(rt,e)}catch(S){}i=!0}return i}finally{_t=n,Tl.transition=t}}return!1}function wc(e,t,n){e=Mo(e,t=ps(0,t=us(n,t),1),1),t=ec(),null!==e&&(mt(e,1,t),ic(e,t))}function kc(e,t,n){if(3===e.tag)wc(e,e,n);else for(;null!==t;){if(3===t.tag){wc(t,e,n);break}if(1===t.tag){var i=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof i.componentDidCatch&&(null===Gl||!Gl.has(i))){t=Mo(t,e=gs(t,e=us(n,e),1),1),e=ec(),null!==t&&(mt(t,1,e),ic(t,e));break}}t=t.return}}function xc(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Il===e&&(Ll&n)===n&&(4===Al||3===Al&&(130023424&Ll)===Ll&&500>Xe()-zl?hc(e,0):Fl|=n),ic(e,t)}function Ec(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Do(e,t))&&(mt(e,t,n),ic(e,n))}function Tc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ec(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(o(314))}null!==i&&i.delete(t),Ec(e,n)}function Ic(e,t){return Ke(e,t)}function Dc(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lc(e,t,n,i){return new Dc(e,t,n,i)}function Oc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rc(e,t){var n=e.alternate;return null===n?((n=Lc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ac(e,t,n,i,r,a){var s=2;if(i=e,"function"===typeof e)Oc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case w:return Mc(n.children,r,a,t);case k:s=8,r|=8;break;case x:return(e=Lc(12,n,t,2|r)).elementType=x,e.lanes=a,e;case I:return(e=Lc(13,n,t,r)).elementType=I,e.lanes=a,e;case D:return(e=Lc(19,n,t,r)).elementType=D,e.lanes=a,e;case R:return Pc(n,r,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case T:s=9;break e;case N:s=11;break e;case L:s=14;break e;case O:s=16,i=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Lc(s,n,t,r)).elementType=e,t.type=i,t.lanes=a,t}function Mc(e,t,n,i){return(e=Lc(7,e,i,t)).lanes=n,e}function Pc(e,t,n,i){return(e=Lc(22,e,i,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Zc(e,t,n){return(e=Lc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Lc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Hc(e,t,n,i,r,o,a,s,l){return e=new Bc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Lc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(o),e}function zc(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}function jc(e){if(!e)return Tr;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Or(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Or(n))return Mr(e,n,t)}return t}function Vc(e,t,n,i,r,o,a,s,l){return(e=Hc(n,i,!0,e,0,o,0,s,l)).context=jc(null),n=e.current,(o=Ao(i=ec(),r=tc(n))).callback=void 0!==t&&null!==t?t:null,Mo(n,o,r),e.current.lanes=r,mt(e,r,i),ic(e,i),e}function Wc(e,t,n,i){var r=t.current,o=ec(),a=tc(r);return n=jc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ao(o,a)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),null!==(e=Mo(r,t,a))&&(nc(e,r,a,o),Po(e,r,a)),a}function Uc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){Gc(e,t),(e=e.alternate)&&Gc(e,t)}wl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ir.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ds(t),po();break;case 5:aa(t);break;case 1:Or(t.type)&&Pr(t);break;case 4:ra(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,r=t.memoizedProps.value;Er(yo,i._currentValue),i._currentValue=r;break;case 13:if(null!==(i=t.memoizedState))return null!==i.dehydrated?(Er(la,1&la.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Zs(e,t,n):(Er(la,1&la.current),null!==(e=Ws(e,t,n))?e.sibling:null);Er(la,1&la.current);break;case 19:if(i=0!==(n&t.childLanes),0!==(128&e.flags)){if(i)return js(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Er(la,la.current),i)break;return null;case 22:case 23:return t.lanes=0,xs(e,t,n)}return Ws(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,ro&&0!==(1048576&t.flags)&&Jr(t,Gr,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Vs(e,t),e=t.pendingProps;var r=Lr(t,Nr.current);xo(t,n),r=ka(null,t,i,e,r,n);var a=xa();return t.flags|=1,"object"===typeof r&&null!==r&&"function"===typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Or(i)?(a=!0,Pr(t)):a=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Oo(t),r.updater=jo,t.stateNode=r,r._reactInternals=t,Go(t,i,e,n),t=Is(null,t,i,!0,a,n)):(t.tag=0,ro&&a&&eo(t),Cs(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,i=(r=i._init)(i._payload),t.type=i,r=t.tag=function(e){if("function"===typeof e)return Oc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===L)return 14}return 2}(i),e=mo(i,e),r){case 0:t=Ts(null,t,i,e,n);break e;case 1:t=Ns(null,t,i,e,n);break e;case 11:t=Ss(null,t,i,e,n);break e;case 14:t=ws(null,t,i,mo(i.type,e),n);break e}throw Error(o(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,Ts(e,t,i,r=t.elementType===i?r:mo(i,r),n);case 1:return i=t.type,r=t.pendingProps,Ns(e,t,i,r=t.elementType===i?r:mo(i,r),n);case 3:e:{if(Ds(t),null===e)throw Error(o(387));i=t.pendingProps,r=(a=t.memoizedState).element,Ro(e,t),Fo(t,i,null,n);var s=t.memoizedState;if(i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ls(e,t,i,n,r=us(Error(o(423)),t));break e}if(i!==r){t=Ls(e,t,i,n,r=us(Error(o(424)),t));break e}for(io=cr(t.stateNode.containerInfo.firstChild),no=t,ro=!0,oo=null,n=Qo(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),i===r){t=Ws(e,t,n);break e}Cs(e,t,i,n)}t=t.child}return t;case 5:return aa(t),null===e&&co(t),i=t.type,r=t.pendingProps,a=null!==e?e.memoizedProps:null,s=r.children,nr(i,r)?s=null:null!==a&&nr(i,a)&&(t.flags|=32),Es(e,t),Cs(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Zs(e,t,n);case 4:return ra(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Xo(t,null,i,n):Cs(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,Ss(e,t,i,r=t.elementType===i?r:mo(i,r),n);case 7:return Cs(e,t,t.pendingProps,n),t.child;case 8:case 12:return Cs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,a=t.memoizedProps,s=r.value,Er(yo,i._currentValue),i._currentValue=s,null!==a)if(si(a.value,s)){if(a.children===r.children&&!Ir.current){t=Ws(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===i){if(1===a.tag){(c=Ao(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),ko(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),ko(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}Cs(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,xo(t,n),i=i(r=Eo(r)),t.flags|=1,Cs(e,t,i,n),t.child;case 14:return r=mo(i=t.type,t.pendingProps),ws(e,t,i,r=mo(i.type,r),n);case 15:return ks(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:mo(i,r),Vs(e,t),t.tag=1,Or(i)?(e=!0,Pr(t)):e=!1,xo(t,n),Wo(t,i,r),Go(t,i,r,n),Is(null,t,i,!0,e,n);case 19:return js(e,t,n);case 22:return xs(e,t,n)}throw Error(o(156,t.tag))};var Yc="function"===typeof reportError?reportError:function(e){console.error(e)};function qc(e){this._internalRoot=e}function $c(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,i,r){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof r){var s=r;r=function(){var e=Uc(a);s.call(e)}}Wc(t,a,e,r)}else a=function(e,t,n,i,r){if(r){if("function"===typeof i){var o=i;i=function(){var e=Uc(a);o.call(e)}}var a=Vc(t,i,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[pr]=a.current,ji(8===e.nodeType?e.parentNode:e),uc(),a}for(;r=e.lastChild;)e.removeChild(r);if("function"===typeof i){var s=i;i=function(){var e=Uc(l);s.call(e)}}var l=Hc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[pr]=l.current,ji(8===e.nodeType?e.parentNode:e),uc((function(){Wc(t,l,n,i)})),l}(n,t,e,r,i);return Uc(a)}$c.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Wc(e,t,null,null)},$c.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Wc(null,e,null,null)})),t[pr]=null}},$c.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Zt(e)}},Ct=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ic(t,Xe()),0===(6&Nl)&&(jl=Xe()+500,jr()))}break;case 13:uc((function(){var t=Do(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Kc(e,1)}},St=function(e){if(13===e.tag){var t=Do(e,134217728);if(null!==t)nc(t,e,134217728,ec());Kc(e,134217728)}},wt=function(e){if(13===e.tag){var t=tc(e),n=Do(e,t);if(null!==n)nc(n,e,t,ec());Kc(e,t)}},kt=function(){return _t},xt=function(e,t){var n=_t;try{return _t=e,t()}finally{_t=n}},Se=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=Cr(i);if(!r)throw Error(o(90));K(i),Q(i,r)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=cc,Ie=uc;var tu={usingClientEntryPoint:!1,Events:[_r,br,Cr,Ee,Te,cc]},nu={findFiberByHostInstance:yr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},iu={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{rt=ru.inject(iu),ot=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(o(200));return zc(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(o(299));var n=!1,i="",r=Yc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=Hc(e,1,!1,null,0,n,0,i,r),e[pr]=t.current,ji(8===e.nodeType?e.parentNode:e),new qc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(o(405));var i=null!=n&&n.hydratedSources||null,r=!1,a="",s=Yc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Vc(t,null,e,1,null!=n?n:null,r,0,a,s),e[pr]=t.current,ji(e),i)for(e=0;e<i.length;e++)r=(r=(n=i[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new $c(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(o(40));return!!e._reactRootContainer&&(uc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[pr]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Qc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,i)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var i=n(54164);t.createRoot=i.createRoot,t.hydrateRoot=i.hydrateRoot},54164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(34463)},66374:function(e,t,n){"use strict";var i=n(72791),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var i,o={},c=null,u=null;for(i in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,i)&&!l.hasOwnProperty(i)&&(o[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===o[i]&&(o[i]=t[i]);return{$$typeof:r,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},59117:function(e,t){"use strict";var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}function y(){}function _(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var b=_.prototype=new y;b.constructor=_,g(b,m.prototype),b.isPureReactComponent=!0;var C=Array.isArray,S=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,i){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=i;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:w.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function N(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function I(e,t,r,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case i:l=!0}}if(l)return a=a(l=e),e=""===o?"."+N(l,0):o,C(a)?(r="",null!=e&&(r=e.replace(T,"$&/")+"/"),I(a,t,r,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",C(e))for(var c=0;c<e.length;c++){var u=o+N(s=e[c],c);l+=I(s,t,r,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=I(s=s.value,t,r,u=o+N(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var i=[],r=0;return I(e,i,"","",(function(e){return t.call(n,e,r++)})),i}function L(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},R={transition:null},A={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:R,ReactCurrentOwner:w};t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=r,t.Profiler=a,t.PureComponent=_,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,i){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=g({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!k.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=i;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:r,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.current.useTransition()},t.version="18.2.0"},72791:function(e,t,n){"use strict";e.exports=n(59117)},80184:function(e,t,n){"use strict";e.exports=n(66374)},30124:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var i,r=n(14689),o=(i=r)&&i.__esModule?i:{default:i},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};var s={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},l=t.autoprefix=function(e){var t={};return(0,o.default)(e,(function(e,n){var i={};(0,o.default)(e,(function(e,t){var n=s[t];n?i=a({},i,n(e)):i[t]=e})),t[n]=i})),t};t.default=l},38438:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var i,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=n(72791),a=(i=o)&&i.__esModule?i:{default:i};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function i(){var n,o,c;s(this,i);for(var u=arguments.length,d=Array(u),h=0;h<u;h++)d[h]=arguments[h];return o=c=l(this,(n=i.__proto__||Object.getPrototypeOf(i)).call.apply(n,[this].concat(d))),c.state={active:!1},c.handleMouseDown=function(){return c.setState({active:!0})},c.handleMouseUp=function(){return c.setState({active:!1})},c.render=function(){return a.default.createElement(t,{onMouseDown:c.handleMouseDown,onMouseUp:c.handleMouseUp},a.default.createElement(e,r({},c.props,c.state)))},l(c,o)}return c(i,n),i}(a.default.Component)};t.default=u},20296:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var i,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=n(72791),a=(i=o)&&i.__esModule?i:{default:i};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function i(){var n,o,c;s(this,i);for(var u=arguments.length,d=Array(u),h=0;h<u;h++)d[h]=arguments[h];return o=c=l(this,(n=i.__proto__||Object.getPrototypeOf(i)).call.apply(n,[this].concat(d))),c.state={hover:!1},c.handleMouseOver=function(){return c.setState({hover:!0})},c.handleMouseOut=function(){return c.setState({hover:!1})},c.render=function(){return a.default.createElement(t,{onMouseOver:c.handleMouseOver,onMouseOut:c.handleMouseOut},a.default.createElement(e,r({},c.props,c.state)))},l(c,o)}return c(i,n),i}(a.default.Component)};t.default=u},9198:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var i=s(n(26769)),r=s(n(14689)),o=s(n(93977)),a=s(n(72034));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,o.default)(t)?(0,r.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,i.default)(t)&&n.push(t)})),n};t.default=l},54093:function(e,t,n){"use strict";var i=c(n(9198)),r=c(n(58351)),o=c(n(30124)),a=c(n(20296)),s=c(n(38438)),l=c(n(72196));function c(e){return e&&e.__esModule?e:{default:e}}a.default,a.default,s.default,l.default;var u=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var s=(0,i.default)(n),l=(0,r.default)(e,s);return(0,o.default)(l)};t.ZP=u},72196:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},i=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&i("first-child"),e===t-1&&i("last-child"),(0===e||e%2===0)&&i("even"),1===Math.abs(e%2)&&i("odd"),i("nth-child",e),n}},58351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var i=a(n(14689)),r=a(n(58121)),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function a(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,r.default)(e.default)||{};return t.map((function(t){var r=e[t];return r&&(0,i.default)(r,(function(e,t){n[t]||(n[t]={}),n[t]=o({},n[t],r[t])})),t})),n};t.default=s},36813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,r=e[i];if(!(0<o(r,t)))break e;e[i]=t,e[n]=r,n=i}}function i(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,r=e.length,a=r>>>1;i<a;){var s=2*(i+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<r&&0>o(u,l)?(e[i]=u,e[c]=n,i=c):(e[i]=l,e[s]=n,i=s);else{if(!(c<r&&0>o(u,n)))break e;e[i]=u,e[c]=n,i=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,h=null,f=3,p=!1,g=!1,v=!1,m="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,_="undefined"!==typeof setImmediate?setImmediate:null;function b(e){for(var t=i(u);null!==t;){if(null===t.callback)r(u);else{if(!(t.startTime<=e))break;r(u),t.sortIndex=t.expirationTime,n(c,t)}t=i(u)}}function C(e){if(v=!1,b(e),!g)if(null!==i(c))g=!0,R(S);else{var t=i(u);null!==t&&A(C,t.startTime-e)}}function S(e,n){g=!1,v&&(v=!1,y(E),E=-1),p=!0;var o=f;try{for(b(n),h=i(c);null!==h&&(!(h.expirationTime>n)||e&&!I());){var a=h.callback;if("function"===typeof a){h.callback=null,f=h.priorityLevel;var s=a(h.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?h.callback=s:h===i(c)&&r(c),b(n)}else r(c);h=i(c)}if(null!==h)var l=!0;else{var d=i(u);null!==d&&A(C,d.startTime-n),l=!1}return l}finally{h=null,f=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,k=!1,x=null,E=-1,T=5,N=-1;function I(){return!(t.unstable_now()-N<T)}function D(){if(null!==x){var e=t.unstable_now();N=e;var n=!0;try{n=x(!0,e)}finally{n?w():(k=!1,x=null)}}else k=!1}if("function"===typeof _)w=function(){_(D)};else if("undefined"!==typeof MessageChannel){var L=new MessageChannel,O=L.port2;L.port1.onmessage=D,w=function(){O.postMessage(null)}}else w=function(){m(D,0)};function R(e){x=e,k||(k=!0,w())}function A(e,n){E=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,R(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return i(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,r,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:r,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===i(c)&&e===i(u)&&(v?(y(E),E=-1):v=!0,A(C,o-a))):(e.sortIndex=s,n(c,e),g||p||(g=!0,R(S))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},45296:function(e,t,n){"use strict";e.exports=n(36813)},79613:function(e){e.exports=function(e,t,n,i){var r=n?n.call(i,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(r=n?n.call(i,u,d,c):void 0)||void 0===r&&u!==d)return!1}return!0}},40581:function(e,t,n){"use strict";var i=n(52506),r=n(44037),o=n(42584),a=i("%TypeError%"),s=i("%WeakMap%",!0),l=i("%Map%",!0),c=r("WeakMap.prototype.get",!0),u=r("WeakMap.prototype.set",!0),d=r("WeakMap.prototype.has",!0),h=r("Map.prototype.get",!0),f=r("Map.prototype.set",!0),p=r("Map.prototype.has",!0),g=function(e,t){for(var n,i=e;null!==(n=i.next);i=n)if(n.key===t)return i.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,i={assert:function(e){if(!i.has(e))throw new a("Side channel does not contain "+o(e))},get:function(i){if(s&&i&&("object"===typeof i||"function"===typeof i)){if(e)return c(e,i)}else if(l){if(t)return h(t,i)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,i)},has:function(i){if(s&&i&&("object"===typeof i||"function"===typeof i)){if(e)return d(e,i)}else if(l){if(t)return p(t,i)}else if(n)return function(e,t){return!!g(e,t)}(n,i);return!1},set:function(i,r){s&&i&&("object"===typeof i||"function"===typeof i)?(e||(e=new s),u(e,i,r)):l?(t||(t=new l),f(t,i,r)):(n||(n={key:{},next:null}),function(e,t,n){var i=g(e,t);i?i.value=n:e.next={key:t,next:e.next,value:n}}(n,i,r))}};return i}},3010:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SensorTabIndex=t.SensorClassName=t.SizeSensorId=void 0;t.SizeSensorId="size-sensor-id";t.SensorClassName="size-sensor-object";t.SensorTabIndex="-1"},78281:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var i=this,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){e.apply(i,o)}),t)}}},52904:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=1;t.default=function(){return"".concat(n++)}},80315:function(e,t,n){"use strict";t.ak=void 0;var i=n(34374);t.ak=function(e,t){var n=(0,i.getSensor)(e);return n.bind(t),function(){n.unbind(t)}}},34374:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeSensor=t.getSensor=void 0;var i,r=(i=n(52904))&&i.__esModule?i:{default:i},o=n(96413),a=n(3010);var s={};t.getSensor=function(e){var t=e.getAttribute(a.SizeSensorId);if(t&&s[t])return s[t];var n=(0,r.default)();e.setAttribute(a.SizeSensorId,n);var i=(0,o.createSensor)(e);return s[n]=i,i};t.removeSensor=function(e){var t=e.element.getAttribute(a.SizeSensorId);e.element.removeAttribute(a.SizeSensorId),e.destroy(),t&&s[t]&&delete s[t]}},96413:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var i=n(18850),r=n(54881),o="undefined"!==typeof ResizeObserver?r.createSensor:i.createSensor;t.createSensor=o},18850:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var i,r=(i=n(78281))&&i.__esModule?i:{default:i},o=n(3010);t.createSensor=function(e){var t=void 0,n=[],i=(0,r.default)((function(){n.forEach((function(t){t(e)}))})),a=function(){t&&t.parentNode&&(t.contentDocument&&t.contentDocument.defaultView.removeEventListener("resize",i),t.parentNode.removeChild(t),t=void 0,n=[])};return{element:e,bind:function(r){t||(t=function(){"static"===getComputedStyle(e).position&&(e.style.position="relative");var t=document.createElement("object");return t.onload=function(){t.contentDocument.defaultView.addEventListener("resize",i),i()},t.style.display="block",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.style.opacity="0",t.setAttribute("class",o.SensorClassName),t.setAttribute("tabindex",o.SensorTabIndex),t.type="text/html",e.appendChild(t),t.data="about:blank",t}()),-1===n.indexOf(r)&&n.push(r)},destroy:a,unbind:function(e){var i=n.indexOf(e);-1!==i&&n.splice(i,1),0===n.length&&t&&a()}}}},54881:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var i,r=(i=n(78281))&&i.__esModule?i:{default:i};t.createSensor=function(e){var t=void 0,n=[],i=(0,r.default)((function(){n.forEach((function(t){t(e)}))})),o=function(){t.disconnect(),n=[],t=void 0};return{element:e,bind:function(r){t||(t=function(){var t=new ResizeObserver(i);return t.observe(e),i(),t}()),-1===n.indexOf(r)&&n.push(r)},destroy:o,unbind:function(e){var i=n.indexOf(e);-1!==i&&n.splice(i,1),0===n.length&&t&&o()}}}},42458:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],i=0;i<e.rangeCount;i++)n.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},29388:function(e,t,n){"use strict";n.d(t,{CR:function(){return u},Jh:function(){return l},XA:function(){return c},ZT:function(){return r},_T:function(){return a},ev:function(){return h},mG:function(){return s},pi:function(){return o},pr:function(){return d}});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function l(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function c(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function d(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function h(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}Object.create},51561:function(e,t,n){"use strict";var i=n(72791);var r="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=i.useState,a=i.useEffect,s=i.useLayoutEffect,l=i.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(i){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=o({inst:{value:n,getSnapshot:t}}),r=i[0].inst,u=i[1];return s((function(){r.value=n,r.getSnapshot=t,c(r)&&u({inst:r})}),[e,n,t]),a((function(){return c(r)&&u({inst:r}),e((function(){c(r)&&u({inst:r})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:u},37248:function(e,t,n){"use strict";e.exports=n(51561)},32699:function(e,t,n){var i=n(3515).default,r=n(17061).default,o=n(94993).default,a=n(861).default,s=n(41588).default,l=n(73808).default,c=n(27424).default,u=n(74704).default,d=n(56690).default,h=n(89728).default,f=n(66115).default,p=n(61655).default,g=n(26389).default;self,e.exports=function(){"use strict";var e={4567:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;var o=n(9042),a=n(6114),s=n(9924),l=n(844),c=n(5596),u=n(4725),v=n(3656),m=function(e){p(n,e);var t=g(n);function n(e,i){var r;d(this,n),(r=t.call(this))._terminal=e,r._renderService=i,r._liveRegionLineCount=0,r._charsToConsume=[],r._charsToAnnounce="",r._accessibilityContainer=document.createElement("div"),r._accessibilityContainer.classList.add("xterm-accessibility"),r._rowContainer=document.createElement("div"),r._rowContainer.setAttribute("role","list"),r._rowContainer.classList.add("xterm-accessibility-tree"),r._rowElements=[];for(var o=0;o<r._terminal.rows;o++)r._rowElements[o]=r._createAccessibilityTreeNode(),r._rowContainer.appendChild(r._rowElements[o]);if(r._topBoundaryFocusListener=function(e){return r._handleBoundaryFocus(e,0)},r._bottomBoundaryFocusListener=function(e){return r._handleBoundaryFocus(e,1)},r._rowElements[0].addEventListener("focus",r._topBoundaryFocusListener),r._rowElements[r._rowElements.length-1].addEventListener("focus",r._bottomBoundaryFocusListener),r._refreshRowsDimensions(),r._accessibilityContainer.appendChild(r._rowContainer),r._liveRegion=document.createElement("div"),r._liveRegion.classList.add("live-region"),r._liveRegion.setAttribute("aria-live","assertive"),r._accessibilityContainer.appendChild(r._liveRegion),r._liveRegionDebouncer=r.register(new s.TimeBasedDebouncer(r._announceCharacters.bind(f(r)))),!r._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return r._terminal.element.insertAdjacentElement("afterbegin",r._accessibilityContainer),r.register(r._liveRegionDebouncer),r.register(r._terminal.onResize((function(e){return r._handleResize(e.rows)}))),r.register(r._terminal.onRender((function(e){return r._refreshRows(e.start,e.end)}))),r.register(r._terminal.onScroll((function(){return r._refreshRows()}))),r.register(r._terminal.onA11yChar((function(e){return r._handleChar(e)}))),r.register(r._terminal.onLineFeed((function(){return r._handleChar("\n")}))),r.register(r._terminal.onA11yTab((function(e){return r._handleTab(e)}))),r.register(r._terminal.onKey((function(e){return r._handleKey(e.key)}))),r.register(r._terminal.onBlur((function(){return r._clearLiveRegion()}))),r.register(r._renderService.onDimensionsChange((function(){return r._refreshRowsDimensions()}))),r._screenDprMonitor=new c.ScreenDprMonitor(window),r.register(r._screenDprMonitor),r._screenDprMonitor.setListener((function(){return r._refreshRowsDimensions()})),r.register((0,v.addDisposableDomListener)(window,"resize",(function(){return r._refreshRowsDimensions()}))),r._refreshRows(),r.register((0,l.toDisposable)((function(){r._accessibilityContainer.remove(),r._rowElements.length=0}))),r}return h(n,[{key:"_handleTab",value:function(e){for(var t=0;t<e;t++)this._handleChar(" ")}},{key:"_handleChar",value:function(e){var t=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=o.tooMuchOutput)),a.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout((function(){t._accessibilityContainer.appendChild(t._liveRegion)}),0))}},{key:"_clearLiveRegion",value:function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,a.isMac&&this._liveRegion.remove()}},{key:"_handleKey",value:function(e){this._clearLiveRegion(),/[\0-\x1F\x7F-\x9F]/.test(e)||this._charsToConsume.push(e)}},{key:"_refreshRows",value:function(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}},{key:"_announceCharacters",value:function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}},{key:"_handleBoundaryFocus",value:function(e,t){var n=e.target,i=this._rowElements[0===t?1:this._rowElements.length-2];if(n.getAttribute("aria-posinset")!==(0===t?"1":"".concat(this._terminal.buffer.lines.length))&&e.relatedTarget===i){var r,o;if(0===t?(r=n,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(r=this._rowElements.shift(),o=n,this._rowContainer.removeChild(r)),r.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){var a=this._createAccessibilityTreeNode();this._rowElements.unshift(a),this._rowContainer.insertAdjacentElement("afterbegin",a)}else{var s=this._createAccessibilityTreeNode();this._rowElements.push(s),this._rowContainer.appendChild(s)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}}},{key:"_handleResize",value:function(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}},{key:"_createAccessibilityTreeNode",value:function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}},{key:"_refreshRowsDimensions",value:function(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width="".concat(this._renderService.dimensions.css.canvas.width,"px"),this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(var e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}}},{key:"_refreshRowDimensions",value:function(e){e.style.height="".concat(this._renderService.dimensions.css.cell.height,"px")}}]),n}(l.Disposable);m=i([r(1,u.IRenderService)],m),t.AccessibilityManager=m},3614:function(e,t){function n(e){return e.replace(/\r?\n/g,"\r")}function i(e,t){return t?"\x1b[200~"+e+"\x1b[201~":e}function r(e,t,r){e=i(e=n(e),r.decPrivateModes.bracketedPasteMode),r.triggerDataEvent(e,!0),t.value=""}function o(e,t,n){var i=n.getBoundingClientRect(),r=e.clientX-i.left-10,o=e.clientY-i.top-10;t.style.width="20px",t.style.height="20px",t.style.left="".concat(r,"px"),t.style.top="".concat(o,"px"),t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=n,t.bracketTextForPaste=i,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,n){e.stopPropagation(),e.clipboardData&&r(e.clipboardData.getData("text/plain"),t,n)},t.paste=r,t.moveTextAreaUnderMouseCursor=o,t.rightClickHandler=function(e,t,n,i,r){o(e,t,n),r&&i.rightClickSelect(e),t.value=i.selectionText,t.select()}},7239:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;var i=n(1505);t.ColorContrastCache=function(){function e(){d(this,e),this._color=new i.TwoKeyMap,this._css=new i.TwoKeyMap}return h(e,[{key:"setCss",value:function(e,t,n){this._css.set(e,t,n)}},{key:"getCss",value:function(e,t){return this._css.get(e,t)}},{key:"setColor",value:function(e,t,n){this._color.set(e,t,n)}},{key:"getColor",value:function(e,t){return this._color.get(e,t)}},{key:"clear",value:function(){this._color.clear(),this._css.clear()}}]),e}()},3656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,n,i){e.addEventListener(t,n,i);var r=!1;return{dispose:function(){r||(r=!0,e.removeEventListener(t,n,i))}}}},6465:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;var o=n(2585),a=n(8460),s=n(844),l=n(3656),f=function(e){p(n,e);var t=g(n);function n(e){var i;return d(this,n),(i=t.call(this))._bufferService=e,i._linkProviders=[],i._linkCacheDisposables=[],i._isMouseOut=!0,i._wasResized=!1,i._activeLine=-1,i._onShowLinkUnderline=i.register(new a.EventEmitter),i.onShowLinkUnderline=i._onShowLinkUnderline.event,i._onHideLinkUnderline=i.register(new a.EventEmitter),i.onHideLinkUnderline=i._onHideLinkUnderline.event,i.register((0,s.getDisposeArrayDisposable)(i._linkCacheDisposables)),i.register((0,s.toDisposable)((function(){i._lastMouseEvent=void 0}))),i.register(i._bufferService.onResize((function(){i._clearCurrentLink(),i._wasResized=!0}))),i}return h(n,[{key:"currentLink",get:function(){return this._currentLink}},{key:"registerLinkProvider",value:function(e){var t=this;return this._linkProviders.push(e),{dispose:function(){var n=t._linkProviders.indexOf(e);-1!==n&&t._linkProviders.splice(n,1)}}}},{key:"attachToDom",value:function(e,t,n){var i=this;this._element=e,this._mouseService=t,this._renderService=n,this.register((0,l.addDisposableDomListener)(this._element,"mouseleave",(function(){i._isMouseOut=!0,i._clearCurrentLink()}))),this.register((0,l.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,l.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,l.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}},{key:"_handleMouseMove",value:function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(t){this._isMouseOut=!1;for(var n=e.composedPath(),i=0;i<n.length;i++){var r=n[i];if(r.classList.contains("xterm"))break;if(r.classList.contains("xterm-hover"))return}this._lastBufferCell&&t.x===this._lastBufferCell.x&&t.y===this._lastBufferCell.y||(this._handleHover(t),this._lastBufferCell=t)}}}},{key:"_handleHover",value:function(e){if(this._activeLine!==e.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(e,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}},{key:"_askForLink",value:function(e,t){var n,i,r=this;this._activeProviderReplies&&t||(null===(n=this._activeProviderReplies)||void 0===n||n.forEach((function(e){null==e||e.forEach((function(e){e.link.dispose&&e.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=e.y);var o,a=!1,s=u(this._linkProviders.entries());try{var l=function(){var n=c(o.value,2),s=n[0],l=n[1];t?(null===(i=r._activeProviderReplies)||void 0===i?void 0:i.get(s))&&(a=r._checkLinkProviderResult(s,e,a)):l.provideLinks(e.y,(function(t){var n,i;if(!r._isMouseOut){var o=null==t?void 0:t.map((function(e){return{link:e}}));null===(n=r._activeProviderReplies)||void 0===n||n.set(s,o),a=r._checkLinkProviderResult(s,e,a),(null===(i=r._activeProviderReplies)||void 0===i?void 0:i.size)===r._linkProviders.length&&r._removeIntersectingLinks(e.y,r._activeProviderReplies)}}))};for(s.s();!(o=s.n()).done;)l()}catch(d){s.e(d)}finally{s.f()}}},{key:"_removeIntersectingLinks",value:function(e,t){for(var n=new Set,i=0;i<t.size;i++){var r=t.get(i);if(r)for(var o=0;o<r.length;o++)for(var a=r[o],s=a.link.range.start.y<e?0:a.link.range.start.x,l=a.link.range.end.y>e?this._bufferService.cols:a.link.range.end.x,c=s;c<=l;c++){if(n.has(c)){r.splice(o--,1);break}n.add(c)}}}},{key:"_checkLinkProviderResult",value:function(e,t,n){var i,r=this;if(!this._activeProviderReplies)return n;for(var o=this._activeProviderReplies.get(e),a=!1,s=0;s<e;s++)this._activeProviderReplies.has(s)&&!this._activeProviderReplies.get(s)||(a=!0);if(!a&&o){var l=o.find((function(e){return r._linkAtPosition(e.link,t)}));l&&(n=!0,this._handleNewLink(l))}if(this._activeProviderReplies.size===this._linkProviders.length&&!n)for(var c=0;c<this._activeProviderReplies.size;c++){var u=null===(i=this._activeProviderReplies.get(c))||void 0===i?void 0:i.find((function(e){return r._linkAtPosition(e.link,t)}));if(u){n=!0,this._handleNewLink(u);break}}return n}},{key:"_handleMouseDown",value:function(){this._mouseDownLink=this._currentLink}},{key:"_handleMouseUp",value:function(e){if(this._element&&this._mouseService&&this._currentLink){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}}},{key:"_clearCurrentLink",value:function(e,t){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,s.disposeArray)(this._linkCacheDisposables))}},{key:"_handleNewLink",value:function(e){var t=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var n=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);n&&this._linkAtPosition(e.link,n)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.pointerCursor},set:function(e){var n,i;(null===(n=t._currentLink)||void 0===n?void 0:n.state)&&t._currentLink.state.decorations.pointerCursor!==e&&(t._currentLink.state.decorations.pointerCursor=e,t._currentLink.state.isHovered&&(null===(i=t._element)||void 0===i||i.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.underline},set:function(n){var i,r,o;(null===(i=t._currentLink)||void 0===i?void 0:i.state)&&(null===(o=null===(r=t._currentLink)||void 0===r?void 0:r.state)||void 0===o?void 0:o.decorations.underline)!==n&&(t._currentLink.state.decorations.underline=n,t._currentLink.state.isHovered&&t._fireUnderlineEvent(e.link,n))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((function(e){if(t._currentLink){var n=0===e.start?0:e.start+1+t._bufferService.buffer.ydisp,i=t._bufferService.buffer.ydisp+1+e.end;if(t._currentLink.link.range.start.y>=n&&t._currentLink.link.range.end.y<=i&&(t._clearCurrentLink(n,i),t._lastMouseEvent&&t._element)){var r=t._positionFromMouseEvent(t._lastMouseEvent,t._element,t._mouseService);r&&t._askForLink(r,!1)}}}))))}}},{key:"_linkHover",value:function(e,t,n){var i;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(n,t.text)}},{key:"_fireUnderlineEvent",value:function(e,t){var n=e.range,i=this._bufferService.buffer.ydisp,r=this._createLinkUnderlineEvent(n.start.x-1,n.start.y-i-1,n.end.x,n.end.y-i-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(r)}},{key:"_linkLeave",value:function(e,t,n){var i;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(n,t.text)}},{key:"_linkAtPosition",value:function(e,t){var n=e.range.start.y*this._bufferService.cols+e.range.start.x,i=e.range.end.y*this._bufferService.cols+e.range.end.x,r=t.y*this._bufferService.cols+t.x;return n<=r&&r<=i}},{key:"_positionFromMouseEvent",value:function(e,t,n){var i=n.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}}},{key:"_createLinkUnderlineEvent",value:function(e,t,n,i,r){return{x1:e,y1:t,x2:n,y2:i,cols:this._bufferService.cols,fg:r}}}]),n}(s.Disposable);f=i([r(0,o.IBufferService)],f),t.Linkifier2=f},9042:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkProvider=void 0;var o=n(511),a=n(2585),s=function(){function e(t,n,i){d(this,e),this._bufferService=t,this._optionsService=n,this._oscLinkService=i}return h(e,[{key:"provideLinks",value:function(e,t){var n,i=this._bufferService.buffer.lines.get(e-1);if(i){for(var r=[],a=this._optionsService.rawOptions.linkHandler,s=new o.CellData,c=i.getTrimmedLength(),u=-1,d=-1,h=!1,f=0;f<c;f++)if(-1!==d||i.hasContent(f)){if(i.loadCell(f,s),s.hasExtendedAttrs()&&s.extended.urlId){if(-1===d){d=f,u=s.extended.urlId;continue}h=s.extended.urlId!==u}else-1!==d&&(h=!0);if(h||-1!==d&&f===c-1){var p=null===(n=this._oscLinkService.getLinkData(u))||void 0===n?void 0:n.uri;p&&function(){var t={start:{x:d+1,y:e},end:{x:f+(h||f!==c-1?0:1),y:e}},n=!1;if(!(null==a?void 0:a.allowNonHttpProtocols))try{var i=new URL(p);["http:","https:"].includes(i.protocol)||(n=!0)}catch(e){n=!0}n||r.push({text:p,range:t,activate:function(e,n){return a?a.activate(e,n,t):l(0,n)},hover:function(e,n){var i;return null===(i=null==a?void 0:a.hover)||void 0===i?void 0:i.call(a,e,n,t)},leave:function(e,n){var i;return null===(i=null==a?void 0:a.leave)||void 0===i?void 0:i.call(a,e,n,t)}})}(),h=!1,s.hasExtendedAttrs()&&s.extended.urlId?(d=f,u=s.extended.urlId):(d=-1,u=-1)}}t(r)}else t(void 0)}}]),e}();function l(e,t){if(confirm("Do you want to navigate to ".concat(t,"?\n\nWARNING: This link could potentially be dangerous"))){var n=window.open();if(n){try{n.opener=null}catch(e){}n.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}s=i([r(0,a.IBufferService),r(1,a.IOptionsService),r(2,a.IOscLinkService)],s),t.OscLinkProvider=s},6193:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0,t.RenderDebouncer=function(){function e(t,n){d(this,e),this._parentWindow=t,this._renderCallback=n,this._refreshCallbacks=[]}return h(e,[{key:"dispose",value:function(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}},{key:"addRefreshCallback",value:function(e){var t=this;return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame((function(){return t._innerRefresh()}))),this._animationFrame}},{key:"refresh",value:function(e,t,n){var i=this;this._rowCount=n,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame((function(){return i._innerRefresh()})))}},{key:"_innerRefresh",value:function(){if(this._animationFrame=void 0,void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}else this._runRefreshCallbacks()}},{key:"_runRefreshCallbacks",value:function(){var e,t=u(this._refreshCallbacks);try{for(t.s();!(e=t.n()).done;)(0,e.value)(0)}catch(n){t.e(n)}finally{t.f()}this._refreshCallbacks=[]}}]),e}()},5596:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;var i=n(844),r=function(e){p(n,e);var t=g(n);function n(e){var r;return d(this,n),(r=t.call(this))._parentWindow=e,r._currentDevicePixelRatio=r._parentWindow.devicePixelRatio,r.register((0,i.toDisposable)((function(){r.clearListener()}))),r}return h(n,[{key:"setListener",value:function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener&&(t._listener(t._parentWindow.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()}},{key:"_updateDpr",value:function(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia("screen and (resolution: ".concat(this._parentWindow.devicePixelRatio,"dppx)")),this._resolutionMediaMatchList.addListener(this._outerListener))}},{key:"clearListener",value:function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}]),n}(i.Disposable);t.ScreenDprMonitor=r},3236:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var i=n(2950),r=n(1680),o=n(3614),c=n(2584),f=n(5435),v=n(9312),m=n(6114),y=n(3656),_=n(9042),b=n(4567),C=n(1296),S=n(7399),w=n(8460),k=n(8437),x=n(3230),E=n(4725),T=n(428),N=n(8934),I=n(6465),D=n(5114),L=n(8969),O=n(8055),R=n(4269),A=n(5941),M=n(3107),P=n(5744),Z=n(9074),F=n(2585),B=n(3730),H=n(844),z=n(6731),j="undefined"!=typeof window?window.document:null,V=function(e){p(n,e);var t=g(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(this,n),(e=t.call(this,i)).browser=m,e._keyDownHandled=!1,e._keyDownSeen=!1,e._keyPressHandled=!1,e._unprocessedDeadKey=!1,e._onCursorMove=e.register(new w.EventEmitter),e.onCursorMove=e._onCursorMove.event,e._onKey=e.register(new w.EventEmitter),e.onKey=e._onKey.event,e._onRender=e.register(new w.EventEmitter),e.onRender=e._onRender.event,e._onSelectionChange=e.register(new w.EventEmitter),e.onSelectionChange=e._onSelectionChange.event,e._onTitleChange=e.register(new w.EventEmitter),e.onTitleChange=e._onTitleChange.event,e._onBell=e.register(new w.EventEmitter),e.onBell=e._onBell.event,e._onFocus=e.register(new w.EventEmitter),e._onBlur=e.register(new w.EventEmitter),e._onA11yCharEmitter=e.register(new w.EventEmitter),e._onA11yTabEmitter=e.register(new w.EventEmitter),e._onWillOpen=e.register(new w.EventEmitter),e._setup(),e.linkifier2=e.register(e._instantiationService.createInstance(I.Linkifier2)),e.linkifier2.registerLinkProvider(e._instantiationService.createInstance(B.OscLinkProvider)),e._decorationService=e._instantiationService.createInstance(Z.DecorationService),e._instantiationService.setService(F.IDecorationService,e._decorationService),e.register(e._inputHandler.onRequestBell((function(){return e._onBell.fire()}))),e.register(e._inputHandler.onRequestRefreshRows((function(t,n){return e.refresh(t,n)}))),e.register(e._inputHandler.onRequestSendFocus((function(){return e._reportFocus()}))),e.register(e._inputHandler.onRequestReset((function(){return e.reset()}))),e.register(e._inputHandler.onRequestWindowsOptionsReport((function(t){return e._reportWindowsOptions(t)}))),e.register(e._inputHandler.onColor((function(t){return e._handleColorEvent(t)}))),e.register((0,w.forwardEvent)(e._inputHandler.onCursorMove,e._onCursorMove)),e.register((0,w.forwardEvent)(e._inputHandler.onTitleChange,e._onTitleChange)),e.register((0,w.forwardEvent)(e._inputHandler.onA11yChar,e._onA11yCharEmitter)),e.register((0,w.forwardEvent)(e._inputHandler.onA11yTab,e._onA11yTabEmitter)),e.register(e._bufferService.onResize((function(t){return e._afterResize(t.cols,t.rows)}))),e.register((0,H.toDisposable)((function(){var t,n;e._customKeyEventHandler=void 0,null===(n=null===(t=e.element)||void 0===t?void 0:t.parentNode)||void 0===n||n.removeChild(e.element)}))),e}return h(n,[{key:"onFocus",get:function(){return this._onFocus.event}},{key:"onBlur",get:function(){return this._onBlur.event}},{key:"onA11yChar",get:function(){return this._onA11yCharEmitter.event}},{key:"onA11yTab",get:function(){return this._onA11yTabEmitter.event}},{key:"onWillOpen",get:function(){return this._onWillOpen.event}},{key:"_handleColorEvent",value:function(e){var t=this;if(this._themeService){var n,i=u(e);try{var r=function(){var e=n.value,i=void 0,r="";switch(e.index){case 256:i="foreground",r="10";break;case 257:i="background",r="11";break;case 258:i="cursor",r="12";break;default:i="ansi",r="4;"+e.index}switch(e.type){case 0:var o=O.color.toColorRGB("ansi"===i?t._themeService.colors.ansi[e.index]:t._themeService.colors[i]);t.coreService.triggerDataEvent("".concat(c.C0.ESC,"]").concat(r,";").concat((0,A.toRgbString)(o)).concat(c.C1_ESCAPED.ST));break;case 1:if("ansi"===i)t._themeService.modifyColors((function(t){var n;return t.ansi[e.index]=(n=O.rgba).toColor.apply(n,a(e.color))}));else{var s=i;t._themeService.modifyColors((function(t){var n;return t[s]=(n=O.rgba).toColor.apply(n,a(e.color))}))}break;case 2:t._themeService.restoreColor(e.index)}};for(i.s();!(n=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}}},{key:"_setup",value:function(){s(l(n.prototype),"_setup",this).call(this),this._customKeyEventHandler=void 0}},{key:"buffer",get:function(){return this.buffers.active}},{key:"focus",value:function(){this.textarea&&this.textarea.focus({preventScroll:!0})}},{key:"_handleScreenReaderModeOptionChange",value:function(e){var t;e?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=this._instantiationService.createInstance(b.AccessibilityManager,this)):(null===(t=this._accessibilityManager)||void 0===t||t.dispose(),this._accessibilityManager=void 0)}},{key:"_handleTextAreaFocus",value:function(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(c.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}},{key:"blur",value:function(){var e;return null===(e=this.textarea)||void 0===e?void 0:e.blur()}},{key:"_handleTextAreaBlur",value:function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(c.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}},{key:"_syncTextArea",value:function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(t){var n=Math.min(this.buffer.x,this.cols-1),i=this._renderService.dimensions.css.cell.height,r=t.getWidth(n),o=this._renderService.dimensions.css.cell.width*r,a=this.buffer.y*this._renderService.dimensions.css.cell.height,s=n*this._renderService.dimensions.css.cell.width;this.textarea.style.left=s+"px",this.textarea.style.top=a+"px",this.textarea.style.width=o+"px",this.textarea.style.height=i+"px",this.textarea.style.lineHeight=i+"px",this.textarea.style.zIndex="-5"}}}},{key:"_initGlobal",value:function(){var e=this;this._bindKeys(),this.register((0,y.addDisposableDomListener)(this.element,"copy",(function(t){e.hasSelection()&&(0,o.copyHandler)(t,e._selectionService)})));var t=function(t){return(0,o.handlePasteEvent)(t,e.textarea,e.coreService)};this.register((0,y.addDisposableDomListener)(this.textarea,"paste",t)),this.register((0,y.addDisposableDomListener)(this.element,"paste",t)),m.isFirefox?this.register((0,y.addDisposableDomListener)(this.element,"mousedown",(function(t){2===t.button&&(0,o.rightClickHandler)(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)}))):this.register((0,y.addDisposableDomListener)(this.element,"contextmenu",(function(t){(0,o.rightClickHandler)(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)}))),m.isLinux&&this.register((0,y.addDisposableDomListener)(this.element,"auxclick",(function(t){1===t.button&&(0,o.moveTextAreaUnderMouseCursor)(t,e.textarea,e.screenElement)})))}},{key:"_bindKeys",value:function(){var e=this;this.register((0,y.addDisposableDomListener)(this.textarea,"keyup",(function(t){return e._keyUp(t)}),!0)),this.register((0,y.addDisposableDomListener)(this.textarea,"keydown",(function(t){return e._keyDown(t)}),!0)),this.register((0,y.addDisposableDomListener)(this.textarea,"keypress",(function(t){return e._keyPress(t)}),!0)),this.register((0,y.addDisposableDomListener)(this.textarea,"compositionstart",(function(){return e._compositionHelper.compositionstart()}))),this.register((0,y.addDisposableDomListener)(this.textarea,"compositionupdate",(function(t){return e._compositionHelper.compositionupdate(t)}))),this.register((0,y.addDisposableDomListener)(this.textarea,"compositionend",(function(){return e._compositionHelper.compositionend()}))),this.register((0,y.addDisposableDomListener)(this.textarea,"input",(function(t){return e._inputEvent(t)}),!0)),this.register(this.onRender((function(){return e._compositionHelper.updateCompositionElements()})))}},{key:"open",value:function(e){var t,n=this;if(!e)throw new Error("Terminal requires a parent element.");e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),e.appendChild(this.element);var o=j.createDocumentFragment();this._viewportElement=j.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),o.appendChild(this._viewportElement),this._viewportScrollArea=j.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=j.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=j.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),o.appendChild(this.screenElement),this.textarea=j.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",_.promptLabel),m.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this._instantiationService.createInstance(D.CoreBrowserService,this.textarea,null!==(t=this._document.defaultView)&&void 0!==t?t:window),this._instantiationService.setService(E.ICoreBrowserService,this._coreBrowserService),this.register((0,y.addDisposableDomListener)(this.textarea,"focus",(function(e){return n._handleTextAreaFocus(e)}))),this.register((0,y.addDisposableDomListener)(this.textarea,"blur",(function(){return n._handleTextAreaBlur()}))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(T.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(E.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(z.ThemeService),this._instantiationService.setService(E.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(R.CharacterJoinerService),this._instantiationService.setService(E.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(x.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(E.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange((function(e){return n._onRender.fire(e)}))),this.onResize((function(e){return n._renderService.resize(e.cols,e.rows)})),this._compositionView=j.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(i.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(o);try{this._onWillOpen.fire(this.element)}catch(e){}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(N.MouseService),this._instantiationService.setService(E.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(r.Viewport,(function(e){return n.scrollLines(e,!0,1)}),this._viewportElement,this._viewportScrollArea),this.register(this._inputHandler.onRequestSyncScrollBar((function(){return n.viewport.syncScrollArea()}))),this.register(this.viewport),this.register(this.onCursorMove((function(){n._renderService.handleCursorMove(),n._syncTextArea()}))),this.register(this.onResize((function(){return n._renderService.handleResize(n.cols,n.rows)}))),this.register(this.onBlur((function(){return n._renderService.handleBlur()}))),this.register(this.onFocus((function(){return n._renderService.handleFocus()}))),this.register(this._renderService.onDimensionsChange((function(){return n.viewport.syncScrollArea()}))),this._selectionService=this.register(this._instantiationService.createInstance(v.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(E.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((function(e){return n.scrollLines(e.amount,e.suppressScrollEvent)}))),this.register(this._selectionService.onSelectionChange((function(){return n._onSelectionChange.fire()}))),this.register(this._selectionService.onRequestRedraw((function(e){return n._renderService.handleSelectionChanged(e.start,e.end,e.columnSelectMode)}))),this.register(this._selectionService.onLinuxMouseSelection((function(e){n.textarea.value=e,n.textarea.focus(),n.textarea.select()}))),this.register(this._onScroll.event((function(e){n.viewport.syncScrollArea(),n._selectionService.refresh()}))),this.register((0,y.addDisposableDomListener)(this._viewportElement,"scroll",(function(){return n._selectionService.refresh()}))),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(M.BufferDecorationRenderer,this.screenElement)),this.register((0,y.addDisposableDomListener)(this.element,"mousedown",(function(e){return n._selectionService.handleMouseDown(e)}))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=this._instantiationService.createInstance(b.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(function(e){return n._handleScreenReaderModeOptionChange(e)}))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(P.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(function(e){!n._overviewRulerRenderer&&e&&n._viewportElement&&n.screenElement&&(n._overviewRulerRenderer=n.register(n._instantiationService.createInstance(P.OverviewRulerRenderer,n._viewportElement,n.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}},{key:"_createRenderer",value:function(){return this._instantiationService.createInstance(C.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}},{key:"bindMouse",value:function(){var e=this,t=this,n=this.element;function i(e){var n,i,r=t._mouseService.getMouseReportCoords(e,t.screenElement);if(!r)return!1;switch(e.overrideType||e.type){case"mousemove":i=32,void 0===e.buttons?(n=3,void 0!==e.button&&(n=e.button<3?e.button:3)):n=1&e.buttons?0:4&e.buttons?1:2&e.buttons?2:3;break;case"mouseup":i=0,n=e.button<3?e.button:3;break;case"mousedown":i=1,n=e.button<3?e.button:3;break;case"wheel":if(0===t.viewport.getLinesScrolled(e))return!1;i=e.deltaY<0?0:1,n=4;break;default:return!1}return!(void 0===i||void 0===n||n>4)&&t.coreMouseService.triggerMouseEvent({col:r.col,row:r.row,x:r.x,y:r.y,button:n,action:i,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}var r={mouseup:null,wheel:null,mousedrag:null,mousemove:null},o={mouseup:function(t){return i(t),t.buttons||(e._document.removeEventListener("mouseup",r.mouseup),r.mousedrag&&e._document.removeEventListener("mousemove",r.mousedrag)),e.cancel(t)},wheel:function(t){return i(t),e.cancel(t,!0)},mousedrag:function(e){e.buttons&&i(e)},mousemove:function(e){e.buttons||i(e)}};this.register(this.coreMouseService.onProtocolChange((function(t){t?("debug"===e.optionsService.rawOptions.logLevel&&e._logService.debug("Binding to mouse events:",e.coreMouseService.explainEvents(t)),e.element.classList.add("enable-mouse-events"),e._selectionService.disable()):(e._logService.debug("Unbinding from mouse events."),e.element.classList.remove("enable-mouse-events"),e._selectionService.enable()),8&t?r.mousemove||(n.addEventListener("mousemove",o.mousemove),r.mousemove=o.mousemove):(n.removeEventListener("mousemove",r.mousemove),r.mousemove=null),16&t?r.wheel||(n.addEventListener("wheel",o.wheel,{passive:!1}),r.wheel=o.wheel):(n.removeEventListener("wheel",r.wheel),r.wheel=null),2&t?r.mouseup||(r.mouseup=o.mouseup):(e._document.removeEventListener("mouseup",r.mouseup),r.mouseup=null),4&t?r.mousedrag||(r.mousedrag=o.mousedrag):(e._document.removeEventListener("mousemove",r.mousedrag),r.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,y.addDisposableDomListener)(n,"mousedown",(function(t){if(t.preventDefault(),e.focus(),e.coreMouseService.areMouseEventsActive&&!e._selectionService.shouldForceSelection(t))return i(t),r.mouseup&&e._document.addEventListener("mouseup",r.mouseup),r.mousedrag&&e._document.addEventListener("mousemove",r.mousedrag),e.cancel(t)}))),this.register((0,y.addDisposableDomListener)(n,"wheel",(function(t){if(!r.wheel){if(!e.buffer.hasScrollback){var n=e.viewport.getLinesScrolled(t);if(0===n)return;for(var i=c.C0.ESC+(e.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),o="",a=0;a<Math.abs(n);a++)o+=i;return e.coreService.triggerDataEvent(o,!0),e.cancel(t,!0)}return e.viewport.handleWheel(t)?e.cancel(t):void 0}}),{passive:!1})),this.register((0,y.addDisposableDomListener)(n,"touchstart",(function(t){if(!e.coreMouseService.areMouseEventsActive)return e.viewport.handleTouchStart(t),e.cancel(t)}),{passive:!0})),this.register((0,y.addDisposableDomListener)(n,"touchmove",(function(t){if(!e.coreMouseService.areMouseEventsActive)return e.viewport.handleTouchMove(t)?void 0:e.cancel(t)}),{passive:!1}))}},{key:"refresh",value:function(e,t){var n;null===(n=this._renderService)||void 0===n||n.refreshRows(e,t)}},{key:"updateCursorStyle",value:function(e){var t;(null===(t=this._selectionService)||void 0===t?void 0:t.shouldColumnSelect(e))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}},{key:"_showCursor",value:function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}},{key:"scrollLines",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;s(l(n.prototype),"scrollLines",this).call(this,e,t,i),this.refresh(0,this.rows-1)}},{key:"paste",value:function(e){(0,o.paste)(e,this.textarea,this.coreService)}},{key:"attachCustomKeyEventHandler",value:function(e){this._customKeyEventHandler=e}},{key:"registerLinkProvider",value:function(e){return this.linkifier2.registerLinkProvider(e)}},{key:"registerCharacterJoiner",value:function(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}},{key:"deregisterCharacterJoiner",value:function(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}},{key:"markers",get:function(){return this.buffer.markers}},{key:"addMarker",value:function(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}},{key:"registerDecoration",value:function(e){return this._decorationService.registerDecoration(e)}},{key:"hasSelection",value:function(){return!!this._selectionService&&this._selectionService.hasSelection}},{key:"select",value:function(e,t,n){this._selectionService.setSelection(e,t,n)}},{key:"getSelection",value:function(){return this._selectionService?this._selectionService.selectionText:""}},{key:"getSelectionPosition",value:function(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}},{key:"clearSelection",value:function(){var e;null===(e=this._selectionService)||void 0===e||e.clearSelection()}},{key:"selectAll",value:function(){var e;null===(e=this._selectionService)||void 0===e||e.selectAll()}},{key:"selectLines",value:function(e,t){var n;null===(n=this._selectionService)||void 0===n||n.selectLines(e,t)}},{key:"_keyDown",value:function(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;var t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;t||"Dead"!==e.key&&"AltGraph"!==e.key||(this._unprocessedDeadKey=!0);var n=(0,S.evaluateKeyboardEvent)(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===n.type||2===n.type){var i=this.rows-1;return this.scrollLines(2===n.type?-i:i),this.cancel(e,!0)}return 1===n.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(n.cancel&&this.cancel(e,!0),!n.key||!!(e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&1===e.key.length&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(n.key!==c.C0.ETX&&n.key!==c.C0.CR||(this.textarea.value=""),this._onKey.fire({key:n.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(n.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey?this.cancel(e,!0):void(this._keyDownHandled=!0))))}},{key:"_isThirdLevelShift",value:function(e,t){var n=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?n:n&&(!t.keyCode||t.keyCode>47)}},{key:"_keyUp",value:function(e){this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}},{key:"_keyPress",value:function(e){var t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}},{key:"_inputEvent",value:function(e){if(e.data&&"insertText"===e.inputType&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}},{key:"resize",value:function(e,t){e!==this.cols||t!==this.rows?s(l(n.prototype),"resize",this).call(this,e,t):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}},{key:"_afterResize",value:function(e,t){var n,i;null===(n=this._charSizeService)||void 0===n||n.measure(),null===(i=this.viewport)||void 0===i||i.syncScrollArea(!0)}},{key:"clear",value:function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(k.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}}},{key:"reset",value:function(){var e,t;this.options.rows=this.rows,this.options.cols=this.cols;var i=this._customKeyEventHandler;this._setup(),s(l(n.prototype),"reset",this).call(this),null===(e=this._selectionService)||void 0===e||e.reset(),this._decorationService.reset(),this._customKeyEventHandler=i,this.refresh(0,this.rows-1),null===(t=this.viewport)||void 0===t||t.syncScrollArea()}},{key:"clearTextureAtlas",value:function(){var e;null===(e=this._renderService)||void 0===e||e.clearTextureAtlas()}},{key:"_reportFocus",value:function(){var e;(null===(e=this.element)||void 0===e?void 0:e.classList.contains("focus"))?this.coreService.triggerDataEvent(c.C0.ESC+"[I"):this.coreService.triggerDataEvent(c.C0.ESC+"[O")}},{key:"_reportWindowsOptions",value:function(e){if(this._renderService)switch(e){case f.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var t=this._renderService.dimensions.css.canvas.width.toFixed(0),n=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent("".concat(c.C0.ESC,"[4;").concat(n,";").concat(t,"t"));break;case f.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var i=this._renderService.dimensions.css.cell.width.toFixed(0),r=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent("".concat(c.C0.ESC,"[6;").concat(r,";").concat(i,"t"))}}},{key:"cancel",value:function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1}}]),n}(L.CoreTerminal);t.Terminal=V},9924:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0,t.TimeBasedDebouncer=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;d(this,e),this._renderCallback=t,this._debounceThresholdMS=n,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return h(e,[{key:"dispose",value:function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}},{key:"refresh",value:function(e,t,n){var i=this;this._rowCount=n,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;var r=Date.now();if(r-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=r,this._innerRefresh();else if(!this._additionalRefreshRequested){var o=r-this._lastRefreshMs,a=this._debounceThresholdMS-o;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((function(){i._lastRefreshMs=Date.now(),i._innerRefresh(),i._additionalRefreshRequested=!1,i._refreshTimeoutID=void 0}),a)}}},{key:"_innerRefresh",value:function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}}}]),e}()},1680:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;var o=n(844),a=n(3656),s=n(4725),l=n(2585),c=function(e){p(n,e);var t=g(n);function n(e,i,r,o,s,l,c,u,h){var p;return d(this,n),(p=t.call(this))._scrollLines=e,p._viewportElement=i,p._scrollArea=r,p._bufferService=o,p._optionsService=s,p._charSizeService=l,p._renderService=c,p._coreBrowserService=u,p.scrollBarWidth=0,p._currentRowHeight=0,p._currentDeviceCellHeight=0,p._lastRecordedBufferLength=0,p._lastRecordedViewportHeight=0,p._lastRecordedBufferHeight=0,p._lastTouchY=0,p._lastScrollTop=0,p._wheelPartialScroll=0,p._refreshAnimationFrame=null,p._ignoreNextScrollEvent=!1,p._smoothScrollState={startTime:0,origin:-1,target:-1},p.scrollBarWidth=p._viewportElement.offsetWidth-p._scrollArea.offsetWidth||15,p.register((0,a.addDisposableDomListener)(p._viewportElement,"scroll",p._handleScroll.bind(f(p)))),p._activeBuffer=p._bufferService.buffer,p.register(p._bufferService.buffers.onBufferActivate((function(e){return p._activeBuffer=e.activeBuffer}))),p._renderDimensions=p._renderService.dimensions,p.register(p._renderService.onDimensionsChange((function(e){return p._renderDimensions=e}))),p._handleThemeChange(h.colors),p.register(h.onChangeColors((function(e){return p._handleThemeChange(e)}))),p.register(p._optionsService.onSpecificOptionChange("scrollback",(function(){return p.syncScrollArea()}))),setTimeout((function(){return p.syncScrollArea()}),0),p}return h(n,[{key:"_handleThemeChange",value:function(e){this._viewportElement.style.backgroundColor=e.background.css}},{key:"_refresh",value:function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((function(){return t._innerRefresh()})))}},{key:"_innerRefresh",value:function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null}},{key:"syncScrollArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(e)}},{key:"_handleScroll",value:function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}}},{key:"_smoothScroll",value:function(){var e=this;if(!this._isDisposed&&-1!==this._smoothScrollState.origin&&-1!==this._smoothScrollState.target){var t=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(t*(this._smoothScrollState.target-this._smoothScrollState.origin)),t<1?this._coreBrowserService.window.requestAnimationFrame((function(){return e._smoothScroll()})):this._clearSmoothScrollState()}}},{key:"_smoothScrollPercent",value:function(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}},{key:"_clearSmoothScrollState",value:function(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}},{key:"_bubbleScroll",value:function(e,t){var n=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&n<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)}},{key:"handleWheel",value:function(e){var t=this._getPixelsScrolled(e);return 0!==t&&(this._optionsService.rawOptions.smoothScrollDuration?(this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,-1===this._smoothScrollState.target?this._smoothScrollState.target=this._viewportElement.scrollTop+t:this._smoothScrollState.target+=t,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()):this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}},{key:"_getPixelsScrolled",value:function(e){if(0===e.deltaY||e.shiftKey)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._bufferService.rows),t}},{key:"getBufferElements",value:function(e,t){for(var n,i,r="",o=[],a=null!=t?t:this._bufferService.buffer.lines.length,s=this._bufferService.buffer.lines,l=e;l<a;l++){var c=s.get(l);if(c){var u=null===(n=s.get(l+1))||void 0===n?void 0:n.isWrapped;if(r+=c.translateToString(!u),!u||l===s.length-1){var d=document.createElement("div");d.textContent=r,o.push(d),r.length>0&&(i=d),r=""}}}return{bufferElements:o,cursorElement:i}}},{key:"getLinesScrolled",value:function(e){if(0===e.deltaY||e.shiftKey)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t}},{key:"_applyScrollModifier",value:function(e,t){var n=this._optionsService.rawOptions.fastScrollModifier;return"alt"===n&&t.altKey||"ctrl"===n&&t.ctrlKey||"shift"===n&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}},{key:"handleTouchStart",value:function(e){this._lastTouchY=e.touches[0].pageY}},{key:"handleTouchMove",value:function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}}]),n}(o.Disposable);c=i([r(3,l.IBufferService),r(4,l.IOptionsService),r(5,s.ICharSizeService),r(6,s.IRenderService),r(7,s.ICoreBrowserService),r(8,s.IThemeService)],c),t.Viewport=c},3107:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;var o=n(3656),a=n(4725),s=n(844),l=n(2585),c=function(e){p(n,e);var t=g(n);function n(e,i,r,a){var l;return d(this,n),(l=t.call(this))._screenElement=e,l._bufferService=i,l._decorationService=r,l._renderService=a,l._decorationElements=new Map,l._altBufferIsActive=!1,l._dimensionsChanged=!1,l._container=document.createElement("div"),l._container.classList.add("xterm-decoration-container"),l._screenElement.appendChild(l._container),l.register(l._renderService.onRenderedViewportChange((function(){return l._doRefreshDecorations()}))),l.register(l._renderService.onDimensionsChange((function(){l._dimensionsChanged=!0,l._queueRefresh()}))),l.register((0,o.addDisposableDomListener)(window,"resize",(function(){return l._queueRefresh()}))),l.register(l._bufferService.buffers.onBufferActivate((function(){l._altBufferIsActive=l._bufferService.buffer===l._bufferService.buffers.alt}))),l.register(l._decorationService.onDecorationRegistered((function(){return l._queueRefresh()}))),l.register(l._decorationService.onDecorationRemoved((function(e){return l._removeDecoration(e)}))),l.register((0,s.toDisposable)((function(){l._container.remove(),l._decorationElements.clear()}))),l}return h(n,[{key:"_queueRefresh",value:function(){var e=this;void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback((function(){e._doRefreshDecorations(),e._animationFrame=void 0})))}},{key:"_doRefreshDecorations",value:function(){var e,t=u(this._decorationService.decorations);try{for(t.s();!(e=t.n()).done;){var n=e.value;this._renderDecoration(n)}}catch(i){t.e(i)}finally{t.f()}this._dimensionsChanged=!1}},{key:"_renderDecoration",value:function(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}},{key:"_createElement",value:function(e){var t,n,i=document.createElement("div");i.classList.add("xterm-decoration"),i.classList.toggle("xterm-decoration-top-layer","top"===(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.layer)),i.style.width="".concat(Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width),"px"),i.style.height=(e.options.height||1)*this._renderService.dimensions.css.cell.height+"px",i.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",i.style.lineHeight="".concat(this._renderService.dimensions.css.cell.height,"px");var r=null!==(n=e.options.x)&&void 0!==n?n:0;return r&&r>this._bufferService.cols&&(i.style.display="none"),this._refreshXPosition(e,i),i}},{key:"_refreshStyle",value:function(e){var t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{var n=this._decorationElements.get(e);n||(n=this._createElement(e),e.element=n,this._decorationElements.set(e,n),this._container.appendChild(n)),n.style.top=t*this._renderService.dimensions.css.cell.height+"px",n.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(n)}}},{key:"_refreshXPosition",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.element;if(n){var i=null!==(t=e.options.x)&&void 0!==t?t:0;"right"===(e.options.anchor||"left")?n.style.right=i?i*this._renderService.dimensions.css.cell.width+"px":"":n.style.left=i?i*this._renderService.dimensions.css.cell.width+"px":""}}},{key:"_removeDecoration",value:function(e){var t;null===(t=this._decorationElements.get(e))||void 0===t||t.remove(),this._decorationElements.delete(e),e.dispose()}}]),n}(s.Disposable);c=i([r(1,l.IBufferService),r(2,l.IDecorationService),r(3,a.IRenderService)],c),t.BufferDecorationRenderer=c},5871:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0,t.ColorZoneStore=function(){function e(){d(this,e),this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return h(e,[{key:"zones",get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}},{key:"clear",value:function(){this._zones.length=0,this._zonePoolIndex=0}},{key:"addDecoration",value:function(e){if(e.options.overviewRulerOptions){var t,n=u(this._zones);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.color===e.options.overviewRulerOptions.color&&i.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(i,e.marker.line))return;if(this._lineAdjacentToZone(i,e.marker.line,e.options.overviewRulerOptions.position))return void this._addLineToZone(i,e.marker.line)}}}catch(r){n.e(r)}finally{n.f()}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=e.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=e.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=e.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=e.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:e.options.overviewRulerOptions.color,position:e.options.overviewRulerOptions.position,startBufferLine:e.marker.line,endBufferLine:e.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}},{key:"setPadding",value:function(e){this._linePadding=e}},{key:"_lineIntersectsZone",value:function(e,t){return t>=e.startBufferLine&&t<=e.endBufferLine}},{key:"_lineAdjacentToZone",value:function(e,t,n){return t>=e.startBufferLine-this._linePadding[n||"full"]&&t<=e.endBufferLine+this._linePadding[n||"full"]}},{key:"_addLineToZone",value:function(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}}]),e}()},5744:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;var o=n(5871),a=n(3656),s=n(4725),l=n(844),c=n(2585),f={full:0,left:0,center:0,right:0},v={full:0,left:0,center:0,right:0},m={full:0,left:0,center:0,right:0},y=function(e){p(n,e);var t=g(n);function n(e,i,r,a,s,c,u){var h,f;d(this,n),(h=t.call(this))._viewportElement=e,h._screenElement=i,h._bufferService=r,h._decorationService=a,h._renderService=s,h._optionsService=c,h._coreBrowseService=u,h._colorZoneStore=new o.ColorZoneStore,h._shouldUpdateDimensions=!0,h._shouldUpdateAnchor=!0,h._lastKnownBufferLength=0,h._canvas=document.createElement("canvas"),h._canvas.classList.add("xterm-decoration-overview-ruler"),h._refreshCanvasDimensions(),null===(f=h._viewportElement.parentElement)||void 0===f||f.insertBefore(h._canvas,h._viewportElement);var p=h._canvas.getContext("2d");if(!p)throw new Error("Ctx cannot be null");return h._ctx=p,h._registerDecorationListeners(),h._registerBufferChangeListeners(),h._registerDimensionChangeListeners(),h.register((0,l.toDisposable)((function(){var e;null===(e=h._canvas)||void 0===e||e.remove()}))),h}return h(n,[{key:"_width",get:function(){return this._optionsService.options.overviewRulerWidth||0}},{key:"_registerDecorationListeners",value:function(){var e=this;this.register(this._decorationService.onDecorationRegistered((function(){return e._queueRefresh(void 0,!0)}))),this.register(this._decorationService.onDecorationRemoved((function(){return e._queueRefresh(void 0,!0)})))}},{key:"_registerBufferChangeListeners",value:function(){var e=this;this.register(this._renderService.onRenderedViewportChange((function(){return e._queueRefresh()}))),this.register(this._bufferService.buffers.onBufferActivate((function(){e._canvas.style.display=e._bufferService.buffer===e._bufferService.buffers.alt?"none":"block"}))),this.register(this._bufferService.onScroll((function(){e._lastKnownBufferLength!==e._bufferService.buffers.normal.lines.length&&(e._refreshDrawHeightConstants(),e._refreshColorZonePadding())})))}},{key:"_registerDimensionChangeListeners",value:function(){var e=this;this.register(this._renderService.onRender((function(){e._containerHeight&&e._containerHeight===e._screenElement.clientHeight||(e._queueRefresh(!0),e._containerHeight=e._screenElement.clientHeight)}))),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",(function(){return e._queueRefresh(!0)}))),this.register((0,a.addDisposableDomListener)(this._coreBrowseService.window,"resize",(function(){return e._queueRefresh(!0)}))),this._queueRefresh(!0)}},{key:"_refreshDrawConstants",value:function(){var e=Math.floor(this._canvas.width/3),t=Math.ceil(this._canvas.width/3);v.full=this._canvas.width,v.left=e,v.center=t,v.right=e,this._refreshDrawHeightConstants(),m.full=0,m.left=0,m.center=v.left,m.right=v.left+v.center}},{key:"_refreshDrawHeightConstants",value:function(){f.full=Math.round(2*this._coreBrowseService.dpr);var e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowseService.dpr);f.left=t,f.center=t,f.right=t}},{key:"_refreshColorZonePadding",value:function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*f.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*f.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*f.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*f.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}},{key:"_refreshCanvasDimensions",value:function(){this._canvas.style.width="".concat(this._width,"px"),this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height="".concat(this._screenElement.clientHeight,"px"),this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}},{key:"_refreshDecorations",value:function(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();var e,t=u(this._decorationService.decorations);try{for(t.s();!(e=t.n()).done;){var n=e.value;this._colorZoneStore.addDecoration(n)}}catch(d){t.e(d)}finally{t.f()}this._ctx.lineWidth=1;var i,r=this._colorZoneStore.zones,o=u(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;"full"!==a.position&&this._renderColorZone(a)}}catch(d){o.e(d)}finally{o.f()}var s,l=u(r);try{for(l.s();!(s=l.n()).done;){var c=s.value;"full"===c.position&&this._renderColorZone(c)}}catch(d){l.e(d)}finally{l.f()}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}},{key:"_renderColorZone",value:function(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(m[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-f[e.position||"full"]/2),v[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+f[e.position||"full"]))}},{key:"_queueRefresh",value:function(e,t){var n=this;this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame((function(){n._refreshDecorations(),n._animationFrame=void 0})))}}]),n}(l.Disposable);y=i([r(2,c.IBufferService),r(3,c.IDecorationService),r(4,s.IRenderService),r(5,c.IOptionsService),r(6,s.ICoreBrowserService)],y),t.OverviewRulerRenderer=y},2950:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;var o=n(4725),a=n(2585),s=n(2584),l=function(){function e(t,n,i,r,o,a){d(this,e),this._textarea=t,this._compositionView=n,this._bufferService=i,this._optionsService=r,this._coreService=o,this._renderService=a,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return h(e,[{key:"isComposing",get:function(){return this._isComposing}},{key:"compositionstart",value:function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}},{key:"compositionupdate",value:function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout((function(){t._compositionPosition.end=t._textarea.value.length}),0)}},{key:"compositionend",value:function(){this._finalizeComposition(!0)}},{key:"keydown",value:function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)}},{key:"_finalizeComposition",value:function(e){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){var n={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((function(){var e;t._isSendingComposition&&(t._isSendingComposition=!1,n.start+=t._dataAlreadySent.length,(e=t._isComposing?t._textarea.value.substring(n.start,n.end):t._textarea.value.substring(n.start)).length>0&&t._coreService.triggerDataEvent(e,!0))}),0)}else{this._isSendingComposition=!1;var i=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(i,!0)}}},{key:"_handleAnyTextareaChanges",value:function(){var e=this,t=this._textarea.value;setTimeout((function(){if(!e._isComposing){var n=e._textarea.value,i=n.replace(t,"");e._dataAlreadySent=i,n.length>t.length?e._coreService.triggerDataEvent(i,!0):n.length<t.length?e._coreService.triggerDataEvent("".concat(s.C0.DEL),!0):n.length===t.length&&n!==t&&e._coreService.triggerDataEvent(n,!0)}}),0)}},{key:"updateCompositionElements",value:function(e){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var n=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),i=this._renderService.dimensions.css.cell.height,r=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,o=n*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=o+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=i+"px",this._compositionView.style.lineHeight=i+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var a=this._compositionView.getBoundingClientRect();this._textarea.style.left=o+"px",this._textarea.style.top=r+"px",this._textarea.style.width=Math.max(a.width,1)+"px",this._textarea.style.height=Math.max(a.height,1)+"px",this._textarea.style.lineHeight=a.height+"px"}e||setTimeout((function(){return t.updateCompositionElements(!0)}),0)}}}]),e}();l=i([r(2,a.IBufferService),r(3,a.IOptionsService),r(4,a.ICoreService),r(5,o.IRenderService)],l),t.CompositionHelper=l},9806:function(e,t){function n(e,t,n){var i=n.getBoundingClientRect(),r=e.getComputedStyle(n),o=parseInt(r.getPropertyValue("padding-left")),a=parseInt(r.getPropertyValue("padding-top"));return[t.clientX-i.left-o,t.clientY-i.top-a]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=n,t.getCoords=function(e,t,i,r,o,a,s,l,c){if(a){var u=n(e,t,i);return u?(u[0]=Math.ceil((u[0]+(c?s/2:0))/s),u[1]=Math.ceil(u[1]/l),u[0]=Math.min(Math.max(u[0],1),r+(c?1:0)),u[1]=Math.min(Math.max(u[1],1),o),u):void 0}}},9504:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;var i=n(2584);function r(e,t,n,i){var r=e-o(e,n),s=t-o(t,n),u=Math.abs(r-s)-function(e,t,n){for(var i=0,r=e-o(e,n),s=t-o(t,n),l=0;l<Math.abs(r-s);l++){var c="A"===a(e,t)?-1:1,u=n.buffer.lines.get(r+c*l);(null==u?void 0:u.isWrapped)&&i++}return i}(e,t,n);return c(u,l(a(e,t),i))}function o(e,t){for(var n=0,i=t.buffer.lines.get(e),r=null==i?void 0:i.isWrapped;r&&e>=0&&e<t.rows;)n++,r=null==(i=t.buffer.lines.get(--e))?void 0:i.isWrapped;return n}function a(e,t){return e>t?"A":"B"}function s(e,t,n,i,r,o){for(var a=e,s=t,l="";a!==n||s!==i;)a+=r?1:-1,r&&a>o.cols-1?(l+=o.buffer.translateBufferLineToString(s,!1,e,a),a=0,e=0,s++):!r&&a<0&&(l+=o.buffer.translateBufferLineToString(s,!1,0,e+1),e=a=o.cols-1,s--);return l+o.buffer.translateBufferLineToString(s,!1,e,a)}function l(e,t){var n=t?"O":"[";return i.C0.ESC+n+e}function c(e,t){e=Math.floor(e);for(var n="",i=0;i<e;i++)n+=t;return n}t.moveToCellSequence=function(e,t,n,i){var a,u=n.buffer.x,d=n.buffer.y;if(!n.buffer.hasScrollback)return function(e,t,n,i,a,u){return 0===r(t,i,a,u).length?"":c(s(e,t,e,t-o(t,a),!1,a).length,l("D",u))}(u,d,0,t,n,i)+r(d,t,n,i)+function(e,t,n,i,a,u){var d;d=r(t,i,a,u).length>0?i-o(i,a):t;var h=i,f=function(e,t,n,i,a,s){var l;return l=r(n,i,a,s).length>0?i-o(i,a):t,e<n&&l<=i||e>=n&&l<i?"C":"D"}(e,t,n,i,a,u);return c(s(e,d,n,h,"C"===f,a).length,l(f,u))}(u,d,e,t,n,i);if(d===t)return a=u>e?"D":"C",c(Math.abs(u-e),l(a,i));a=d>t?"D":"C";var h=Math.abs(d-t);return c(function(e,t){return t.cols-e}(d>t?e:u,n)+(h-1)*n.cols+1+((d>t?u:e)-1),l(a,i))}},1296:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;var o=n(3787),a=n(2223),s=n(6171),l=n(4725),f=n(8055),v=n(8460),m=n(844),y=n(2585),_="xterm-dom-renderer-owner-",b="xterm-focus",C=1,S=function(e){p(n,e);var t=g(n);function n(e,i,r,a,l,c,u,h,f,p){var g;return d(this,n),(g=t.call(this))._element=e,g._screenElement=i,g._viewportElement=r,g._linkifier2=a,g._charSizeService=c,g._optionsService=u,g._bufferService=h,g._coreBrowserService=f,g._themeService=p,g._terminalClass=C++,g._rowElements=[],g._cellToRowElements=[],g.onRequestRedraw=g.register(new v.EventEmitter).event,g._rowContainer=document.createElement("div"),g._rowContainer.classList.add("xterm-rows"),g._rowContainer.style.lineHeight="normal",g._rowContainer.setAttribute("aria-hidden","true"),g._refreshRowElements(g._bufferService.cols,g._bufferService.rows),g._selectionContainer=document.createElement("div"),g._selectionContainer.classList.add("xterm-selection"),g._selectionContainer.setAttribute("aria-hidden","true"),g.dimensions=(0,s.createRenderDimensions)(),g._updateDimensions(),g.register(g._optionsService.onOptionChange((function(){return g._handleOptionsChanged()}))),g.register(g._themeService.onChangeColors((function(e){return g._injectCss(e)}))),g._injectCss(g._themeService.colors),g._rowFactory=l.createInstance(o.DomRendererRowFactory,document),g._element.classList.add(_+g._terminalClass),g._screenElement.appendChild(g._rowContainer),g._screenElement.appendChild(g._selectionContainer),g.register(g._linkifier2.onShowLinkUnderline((function(e){return g._handleLinkHover(e)}))),g.register(g._linkifier2.onHideLinkUnderline((function(e){return g._handleLinkLeave(e)}))),g.register((0,m.toDisposable)((function(){g._element.classList.remove(_+g._terminalClass),g._rowContainer.remove(),g._selectionContainer.remove(),g._themeStyleElement.remove(),g._dimensionsStyleElement.remove()}))),g}return h(n,[{key:"_updateDimensions",value:function(){var e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;var t,n=u(this._rowElements);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.style.width="".concat(this.dimensions.css.canvas.width,"px"),i.style.height="".concat(this.dimensions.css.cell.height,"px"),i.style.lineHeight="".concat(this.dimensions.css.cell.height,"px"),i.style.overflow="hidden"}}catch(o){n.e(o)}finally{n.f()}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var r="".concat(this._terminalSelector," .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: ").concat(this.dimensions.css.cell.width,"px}");this._dimensionsStyleElement.textContent=r,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width="".concat(this.dimensions.css.canvas.width,"px"),this._screenElement.style.height="".concat(this.dimensions.css.canvas.height,"px")}},{key:"_injectCss",value:function(e){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var t="".concat(this._terminalSelector," .xterm-rows { color: ").concat(e.foreground.css,"; font-family: ").concat(this._optionsService.rawOptions.fontFamily,"; font-size: ").concat(this._optionsService.rawOptions.fontSize,"px;}");t+="".concat(this._terminalSelector," .xterm-rows .xterm-dim { color: ").concat(f.color.multiplyOpacity(e.foreground,.5).css,";}"),t+="".concat(this._terminalSelector," span:not(.").concat(o.BOLD_CLASS,") { font-weight: ").concat(this._optionsService.rawOptions.fontWeight,";}").concat(this._terminalSelector," span.").concat(o.BOLD_CLASS," { font-weight: ").concat(this._optionsService.rawOptions.fontWeightBold,";}").concat(this._terminalSelector," span.").concat(o.ITALIC_CLASS," { font-style: italic;}"),t+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",t+="@keyframes blink_block_"+this._terminalClass+" { 0% {"+" background-color: ".concat(e.cursor.css,";")+" color: ".concat(e.cursorAccent.css,"; } 50% {")+" background-color: ".concat(e.cursorAccent.css,";")+" color: ".concat(e.cursor.css,"; }}"),t+="".concat(this._terminalSelector," .xterm-rows:not(.xterm-focus) .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_STYLE_BLOCK_CLASS," ,").concat(this._terminalSelector," .xterm-rows:not(.xterm-focus) .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_STYLE_BAR_CLASS," ,").concat(this._terminalSelector," .xterm-rows:not(.xterm-focus) .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_STYLE_UNDERLINE_CLASS," { outline: 1px solid ").concat(e.cursor.css,"; outline-offset: -1px;}").concat(this._terminalSelector," .xterm-rows.xterm-focus .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_BLINK_CLASS,":not(.").concat(o.CURSOR_STYLE_BLOCK_CLASS,") { animation: blink_box_shadow_")+this._terminalClass+" 1s step-end infinite;}"+"".concat(this._terminalSelector," .xterm-rows.xterm-focus .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_BLINK_CLASS,".").concat(o.CURSOR_STYLE_BLOCK_CLASS," { animation: blink_block_")+this._terminalClass+" 1s step-end infinite;}"+"".concat(this._terminalSelector," .xterm-rows.xterm-focus .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_STYLE_BLOCK_CLASS," {")+" background-color: ".concat(e.cursor.css,";")+" color: ".concat(e.cursorAccent.css,";}")+"".concat(this._terminalSelector," .xterm-rows .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_STYLE_BAR_CLASS," {")+" box-shadow: ".concat(this._optionsService.rawOptions.cursorWidth,"px 0 0 ").concat(e.cursor.css," inset;}")+"".concat(this._terminalSelector," .xterm-rows .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_STYLE_UNDERLINE_CLASS," {")+" box-shadow: 0 -1px 0 ".concat(e.cursor.css," inset;}"),t+="".concat(this._terminalSelector," .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}").concat(this._terminalSelector,".focus .xterm-selection div { position: absolute; background-color: ").concat(e.selectionBackgroundOpaque.css,";}").concat(this._terminalSelector," .xterm-selection div { position: absolute; background-color: ").concat(e.selectionInactiveBackgroundOpaque.css,";}");var n,i=u(e.ansi.entries());try{for(i.s();!(n=i.n()).done;){var r=c(n.value,2),s=r[0],l=r[1];t+="".concat(this._terminalSelector," .xterm-fg-").concat(s," { color: ").concat(l.css,"; }").concat(this._terminalSelector," .xterm-fg-").concat(s,".").concat(o.DIM_CLASS," { color: ").concat(f.color.multiplyOpacity(l,.5).css,"; }").concat(this._terminalSelector," .xterm-bg-").concat(s," { background-color: ").concat(l.css,"; }")}}catch(d){i.e(d)}finally{i.f()}t+="".concat(this._terminalSelector," .xterm-fg-").concat(a.INVERTED_DEFAULT_COLOR," { color: ").concat(f.color.opaque(e.background).css,"; }").concat(this._terminalSelector," .xterm-fg-").concat(a.INVERTED_DEFAULT_COLOR,".").concat(o.DIM_CLASS," { color: ").concat(f.color.multiplyOpacity(f.color.opaque(e.background),.5).css,"; }").concat(this._terminalSelector," .xterm-bg-").concat(a.INVERTED_DEFAULT_COLOR," { background-color: ").concat(e.foreground.css,"; }"),this._themeStyleElement.textContent=t}},{key:"handleDevicePixelRatioChange",value:function(){this._updateDimensions()}},{key:"_refreshRowElements",value:function(e,t){for(var n=this._rowElements.length;n<=t;n++){var i=document.createElement("div");this._rowContainer.appendChild(i),this._rowElements.push(i)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}},{key:"handleResize",value:function(e,t){this._refreshRowElements(e,t),this._updateDimensions()}},{key:"handleCharSizeChanged",value:function(){this._updateDimensions()}},{key:"handleBlur",value:function(){this._rowContainer.classList.remove(b)}},{key:"handleFocus",value:function(){this._rowContainer.classList.add(b)}},{key:"handleSelectionChanged",value:function(e,t,n){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.handleSelectionChanged(e,t,n),this.renderRows(0,this._bufferService.rows-1),e&&t){var i=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,o=Math.max(i,0),a=Math.min(r,this._bufferService.rows-1);if(!(o>=this._bufferService.rows||a<0)){var s=document.createDocumentFragment();if(n){var l=e[0]>t[0];s.appendChild(this._createSelectionElement(o,l?t[0]:e[0],l?e[0]:t[0],a-o+1))}else{var c=i===o?e[0]:0,u=o===r?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(o,c,u));var d=a-o-1;if(s.appendChild(this._createSelectionElement(o+1,0,this._bufferService.cols,d)),o!==a){var h=r===a?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(a,0,h))}}this._selectionContainer.appendChild(s)}}}},{key:"_createSelectionElement",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=document.createElement("div");return r.style.height=i*this.dimensions.css.cell.height+"px",r.style.top=e*this.dimensions.css.cell.height+"px",r.style.left=t*this.dimensions.css.cell.width+"px",r.style.width=this.dimensions.css.cell.width*(n-t)+"px",r}},{key:"handleCursorMove",value:function(){}},{key:"_handleOptionsChanged",value:function(){this._updateDimensions(),this._injectCss(this._themeService.colors)}},{key:"clear",value:function(){var e,t=u(this._rowElements);try{for(t.s();!(e=t.n()).done;)e.value.replaceChildren()}catch(n){t.e(n)}finally{t.f()}}},{key:"renderRows",value:function(e,t){for(var n=this._bufferService.buffer.ybase+this._bufferService.buffer.y,i=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),r=this._optionsService.rawOptions.cursorBlink,o=e;o<=t;o++){var a=this._rowElements[o],s=o+this._bufferService.buffer.ydisp,l=this._bufferService.buffer.lines.get(s),c=this._optionsService.rawOptions.cursorStyle;this._cellToRowElements[o]&&this._cellToRowElements[o].length===this._bufferService.cols||(this._cellToRowElements[o]=new Int16Array(this._bufferService.cols)),a.replaceChildren(this._rowFactory.createRow(l,s,s===n,c,i,r,this.dimensions.css.cell.width,this._bufferService.cols,this._cellToRowElements[o]))}}},{key:"_terminalSelector",get:function(){return".".concat(_).concat(this._terminalClass)}},{key:"_handleLinkHover",value:function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}},{key:"_handleLinkLeave",value:function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}},{key:"_setCellUnderline",value:function(e,t,n,i,r,o){n<0&&(e=0),i<0&&(t=0);var a=this._cellToRowElements.length-1;n=Math.max(Math.min(n,a),0),i=Math.max(Math.min(i,a),0);var s=this._cellToRowElements[n],l=this._cellToRowElements[i];if(!(e>=s.length||t>=l.length)&&(e=s[e],t=l[t],-1!==e&&-1!==t))for(;e!==t||n!==i;){var c=this._rowElements[n];if(!c)return;var u=c.children[e];u&&(u.style.textDecoration=o?"underline":"none"),++e>=r&&(e=0,n++)}}}]),n}(m.Disposable);S=i([r(4,y.IInstantiationService),r(5,l.ICharSizeService),r(6,y.IOptionsService),r(7,y.IBufferService),r(8,l.ICoreBrowserService),r(9,l.IThemeService)],S),t.DomRenderer=S},3787:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=t.CURSOR_STYLE_UNDERLINE_CLASS=t.CURSOR_STYLE_BAR_CLASS=t.CURSOR_STYLE_BLOCK_CLASS=t.CURSOR_BLINK_CLASS=t.CURSOR_CLASS=t.STRIKETHROUGH_CLASS=t.OVERLINE_CLASS=t.UNDERLINE_CLASS=t.ITALIC_CLASS=t.DIM_CLASS=t.BOLD_CLASS=void 0;var o=n(2223),a=n(643),s=n(511),l=n(2585),c=n(8055),u=n(4725),f=n(4269),p=n(6171),g=n(3734);t.BOLD_CLASS="xterm-bold",t.DIM_CLASS="xterm-dim",t.ITALIC_CLASS="xterm-italic",t.UNDERLINE_CLASS="xterm-underline",t.OVERLINE_CLASS="xterm-overline",t.STRIKETHROUGH_CLASS="xterm-strikethrough",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_BLINK_CLASS="xterm-cursor-blink",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var v=function(){function e(t,n,i,r,o,a,l){d(this,e),this._document=t,this._characterJoinerService=n,this._optionsService=i,this._coreBrowserService=r,this._coreService=o,this._decorationService=a,this._themeService=l,this._workCell=new s.CellData,this._columnSelectMode=!1}return h(e,[{key:"handleSelectionChanged",value:function(e,t,n){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=n}},{key:"createRow",value:function(e,n,i,r,s,l,u,d,h){for(var p=this,v=this._document.createDocumentFragment(),y=this._characterJoinerService.getJoinedCharacters(n),_=0,b=Math.min(e.length,d)-1;b>=0;b--)if(e.loadCell(b,this._workCell).getCode()!==a.NULL_CELL_CODE||i&&b===s){_=b+1;break}for(var C=this._themeService.colors,S=-1,w=0,k=function(){e.loadCell(w,p._workCell);var d=p._workCell.getWidth();if(0===d)return h[w]=S,"continue";var _=!1,b=w,k=p._workCell;if(y.length>0&&w===y[0][0]){_=!0;var x=y.shift();k=new f.JoinedCellData(p._workCell,e.translateToString(!0,x[0],x[1]),x[1]-x[0]),b=x[1]-1,d=k.getWidth()}var E=p._document.createElement("span");if(d>1&&(E.style.width=u*d+"px"),_&&(E.style.display="inline",s>=w&&s<=b&&(s=w)),!p._coreService.isCursorHidden&&i&&w===s)switch(E.classList.add(t.CURSOR_CLASS),l&&E.classList.add(t.CURSOR_BLINK_CLASS),r){case"bar":E.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":E.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:E.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}if(k.isBold()&&E.classList.add(t.BOLD_CLASS),k.isItalic()&&E.classList.add(t.ITALIC_CLASS),k.isDim()&&E.classList.add(t.DIM_CLASS),k.isInvisible()?E.textContent=a.WHITESPACE_CELL_CHAR:E.textContent=k.getChars()||a.WHITESPACE_CELL_CHAR,k.isUnderline()&&(E.classList.add("".concat(t.UNDERLINE_CLASS,"-").concat(k.extended.underlineStyle))," "===E.textContent&&(E.textContent="\xa0"),!k.isUnderlineColorDefault()))if(k.isUnderlineColorRGB())E.style.textDecorationColor="rgb(".concat(g.AttributeData.toColorRGB(k.getUnderlineColor()).join(","),")");else{var T=k.getUnderlineColor();p._optionsService.rawOptions.drawBoldTextInBrightColors&&k.isBold()&&T<8&&(T+=8),E.style.textDecorationColor=C.ansi[T].css}k.isOverline()&&(E.classList.add(t.OVERLINE_CLASS)," "===E.textContent&&(E.textContent="\xa0")),k.isStrikethrough()&&E.classList.add(t.STRIKETHROUGH_CLASS);var N=k.getFgColor(),I=k.getFgColorMode(),D=k.getBgColor(),L=k.getBgColorMode(),O=!!k.isInverse();if(O){var R=N;N=D,D=R;var A=I;I=L,L=A}var M=void 0,P=void 0,Z=!1;p._decorationService.forEachDecorationAtCell(w,n,void 0,(function(e){"top"!==e.options.layer&&Z||(e.backgroundColorRGB&&(L=50331648,D=e.backgroundColorRGB.rgba>>8&16777215,M=e.backgroundColorRGB),e.foregroundColorRGB&&(I=50331648,N=e.foregroundColorRGB.rgba>>8&16777215,P=e.foregroundColorRGB),Z="top"===e.options.layer)}));var F=p._isCellInSelection(w,n),B=void 0;switch(Z||C.selectionForeground&&F&&(I=50331648,N=C.selectionForeground.rgba>>8&16777215,P=C.selectionForeground),F&&(M=p._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque,Z=!0),Z&&E.classList.add("xterm-decoration-top"),L){case 16777216:case 33554432:B=C.ansi[D],E.classList.add("xterm-bg-".concat(D));break;case 50331648:B=c.rgba.toColor(D>>16,D>>8&255,255&D),p._addStyle(E,"background-color:#".concat(m((D>>>0).toString(16),"0",6)));break;default:O?(B=C.foreground,E.classList.add("xterm-bg-".concat(o.INVERTED_DEFAULT_COLOR))):B=C.background}switch(M||k.isDim()&&(M=c.color.multiplyOpacity(B,.5)),I){case 16777216:case 33554432:k.isBold()&&N<8&&p._optionsService.rawOptions.drawBoldTextInBrightColors&&(N+=8),p._applyMinimumContrast(E,B,C.ansi[N],k,M,void 0)||E.classList.add("xterm-fg-".concat(N));break;case 50331648:var H=c.rgba.toColor(N>>16&255,N>>8&255,255&N);p._applyMinimumContrast(E,B,H,k,M,P)||p._addStyle(E,"color:#".concat(m(N.toString(16),"0",6)));break;default:p._applyMinimumContrast(E,B,C.foreground,k,M,void 0)||O&&E.classList.add("xterm-fg-".concat(o.INVERTED_DEFAULT_COLOR))}v.appendChild(E),h[w]=++S,w=b};w<_;w++)k();return w<d-1&&h.subarray(w).fill(++S),v}},{key:"_applyMinimumContrast",value:function(e,t,n,i,r,o){return 1!==this._optionsService.rawOptions.minimumContrastRatio&&!(0,p.excludeFromContrastRatioDemands)(i.getCode())&&(r||o||(a=this._themeService.colors.contrastCache.getColor(t.rgba,n.rgba)),void 0===a&&(a=c.color.ensureContrastRatio(r||t,o||n,this._optionsService.rawOptions.minimumContrastRatio),this._themeService.colors.contrastCache.setColor((r||t).rgba,(o||n).rgba,null!=a?a:null)),!!a&&(this._addStyle(e,"color:".concat(a.css)),!0));var a}},{key:"_addStyle",value:function(e,t){e.setAttribute("style","".concat(e.getAttribute("style")||"").concat(t,";"))}},{key:"_isCellInSelection",value:function(e,t){var n=this._selectionStart,i=this._selectionEnd;return!(!n||!i)&&(this._columnSelectMode?n[0]<=i[0]?e>=n[0]&&t>=n[1]&&e<i[0]&&t<=i[1]:e<n[0]&&t>=n[1]&&e>=i[0]&&t<=i[1]:t>n[1]&&t<i[1]||n[1]===i[1]&&t===n[1]&&e>=n[0]&&e<i[0]||n[1]<i[1]&&t===i[1]&&e<i[0]||n[1]<i[1]&&t===n[1]&&e>=n[0])}}]),e}();function m(e,t,n){for(;e.length<n;)e=t+e;return e}v=i([r(1,u.ICharacterJoinerService),r(2,l.IOptionsService),r(3,u.ICoreBrowserService),r(4,l.ICoreService),r(5,l.IDecorationService),r(6,u.IThemeService)],v),t.DomRendererRowFactory=v},2223:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;var i=n(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=i.isFirefox||i.isLegacyEdge?"bottom":"ideographic"},6171:function(e,t){function n(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.createRenderDimensions=t.excludeFromContrastRatioDemands=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e},t.isPowerlineGlyph=n,t.isRestrictedPowerlineGlyph=function(e){return 57520<=e&&e<=57527},t.excludeFromContrastRatioDemands=function(e){return n(e)||function(e){return 9472<=e&&e<=9631}(e)},t.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0,t.SelectionModel=function(){function e(t){d(this,e),this._bufferService=t,this.isSelectAllActive=!1,this.selectionStartLength=0}return h(e,[{key:"clearSelection",value:function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}},{key:"finalSelectionStart",get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}},{key:"finalSelectionEnd",get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){var t=this.selectionStart[0]+this.selectionStartLength;return t>this._bufferService.cols?[t%this._bufferService.cols,this.selectionStart[1]+Math.floor(t/this._bufferService.cols)]:[Math.max(t,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}},{key:"areSelectionValuesReversed",value:function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])}},{key:"handleTrim",value:function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}]),e}()},428:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;var o=n(2585),a=n(8460),s=function(e){p(n,e);var t=g(n);function n(e,i,r){var o;return d(this,n),(o=t.call(this))._optionsService=r,o.width=0,o.height=0,o._onCharSizeChange=o.register(new a.EventEmitter),o.onCharSizeChange=o._onCharSizeChange.event,o._measureStrategy=new l(e,i,o._optionsService),o.register(o._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(function(){return o.measure()}))),o}return h(n,[{key:"hasValidSize",get:function(){return this.width>0&&this.height>0}},{key:"measure",value:function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}}]),n}(n(844).Disposable);s=i([r(2,o.IOptionsService)],s),t.CharSizeService=s;var l=function(){function e(t,n,i){d(this,e),this._document=t,this._parentElement=n,this._optionsService=i,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return h(e,[{key:"measure",value:function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize="".concat(this._optionsService.rawOptions.fontSize,"px");var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result}}]),e}()},4269:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;var o=n(3734),a=n(643),s=n(511),l=n(2585),c=function(e){p(n,e);var t=g(n);function n(e,i,r){var o;return d(this,n),(o=t.call(this)).content=0,o.combinedData="",o.fg=e.fg,o.bg=e.bg,o.combinedData=i,o._width=r,o}return h(n,[{key:"isCombined",value:function(){return 2097152}},{key:"getWidth",value:function(){return this._width}},{key:"getChars",value:function(){return this.combinedData}},{key:"getCode",value:function(){return 2097151}},{key:"setFromCharData",value:function(e){throw new Error("not implemented")}},{key:"getAsCharData",value:function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}]),n}(o.AttributeData);t.JoinedCellData=c;var u=function(){function e(t){d(this,e),this._bufferService=t,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new s.CellData}return h(e,[{key:"register",value:function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}},{key:"deregister",value:function(e){for(var t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1}},{key:"getJoinedCharacters",value:function(e){if(0===this._characterJoiners.length)return[];var t=this._bufferService.buffer.lines.get(e);if(!t||0===t.length)return[];for(var n=[],i=t.translateToString(!0),r=0,o=0,s=0,l=t.getFg(0),c=t.getBg(0),u=0;u<t.getTrimmedLength();u++)if(t.loadCell(u,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==l||this._workCell.bg!==c){if(u-r>1)for(var d=this._getJoinedRanges(i,s,o,t,r),h=0;h<d.length;h++)n.push(d[h]);r=u,s=o,l=this._workCell.fg,c=this._workCell.bg}o+=this._workCell.getChars().length||a.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-r>1)for(var f=this._getJoinedRanges(i,s,o,t,r),p=0;p<f.length;p++)n.push(f[p]);return n}},{key:"_getJoinedRanges",value:function(t,n,i,r,o){var a=t.substring(n,i),s=[];try{s=this._characterJoiners[0].handler(a)}catch(d){console.error(d)}for(var l=1;l<this._characterJoiners.length;l++)try{for(var c=this._characterJoiners[l].handler(a),u=0;u<c.length;u++)e._mergeRanges(s,c[u])}catch(h){console.error(h)}return this._stringRangesToCellRanges(s,r,o),s}},{key:"_stringRangesToCellRanges",value:function(e,t,n){var i=0,r=!1,o=0,s=e[i];if(s){for(var l=n;l<this._bufferService.cols;l++){var c=t.getWidth(l),u=t.getString(l).length||a.WHITESPACE_CELL_CHAR.length;if(0!==c){if(!r&&s[0]<=o&&(s[0]=l,r=!0),s[1]<=o){if(s[1]=l,!(s=e[++i]))break;s[0]<=o?(s[0]=l,r=!0):r=!1}o+=u}}s&&(s[1]=this._bufferService.cols)}}}],[{key:"_mergeRanges",value:function(e,t){for(var n=!1,i=0;i<e.length;i++){var r=e[i];if(n){if(t[1]<=r[0])return e[i-1][1]=t[1],e;if(t[1]<=r[1])return e[i-1][1]=Math.max(t[1],r[1]),e.splice(i,1),e;e.splice(i,1),i--}else{if(t[1]<=r[0])return e.splice(i,0,t),e;if(t[1]<=r[1])return r[0]=Math.min(t[0],r[0]),e;t[0]<r[1]&&(r[0]=Math.min(t[0],r[0]),n=!0)}}return n?e[e.length-1][1]=t[1]:e.push(t),e}}]),e}();u=i([r(0,l.IBufferService)],u),t.CharacterJoinerService=u},5114:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0,t.CoreBrowserService=function(){function e(t,n){var i=this;d(this,e),this._textarea=t,this.window=n,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",(function(){return i._isFocused=!0})),this._textarea.addEventListener("blur",(function(){return i._isFocused=!1}))}return h(e,[{key:"dpr",get:function(){return this.window.devicePixelRatio}},{key:"isFocused",get:function(){var e=this;return void 0===this._cachedIsFocused&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask((function(){return e._cachedIsFocused=void 0}))),this._cachedIsFocused}}]),e}()},8934:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;var o=n(4725),a=n(9806),s=function(){function e(t,n){d(this,e),this._renderService=t,this._charSizeService=n}return h(e,[{key:"getCoords",value:function(e,t,n,i,r){return(0,a.getCoords)(window,e,t,n,i,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,r)}},{key:"getMouseReportCoords",value:function(e,t){var n=(0,a.getCoordsRelativeToElement)(window,e,t);if(!(!this._charSizeService.hasValidSize||n[0]<0||n[1]<0||n[0]>=this._renderService.dimensions.css.canvas.width||n[1]>=this._renderService.dimensions.css.canvas.height))return{col:Math.floor(n[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(n[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(n[0]),y:Math.floor(n[1])}}}]),e}();s=i([r(0,o.IRenderService),r(1,o.ICharSizeService)],s),t.MouseService=s},3230:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;var a=n(6193),s=n(8460),l=n(844),c=n(5596),u=n(3656),f=n(2585),v=n(4725),m=n(7226),y=function(e){p(n,e);var t=g(n);function n(e,i,r,l,h,f,p,g){var v;if(d(this,n),(v=t.call(this))._rowCount=e,v._charSizeService=l,v._pausedResizeTask=new m.DebouncedIdleTask,v._isPaused=!1,v._needsFullRefresh=!1,v._isNextRenderRedrawOnly=!0,v._needsSelectionRefresh=!1,v._canvasWidth=0,v._canvasHeight=0,v._selectionState={start:void 0,end:void 0,columnSelectMode:!1},v._onDimensionsChange=v.register(new s.EventEmitter),v.onDimensionsChange=v._onDimensionsChange.event,v._onRenderedViewportChange=v.register(new s.EventEmitter),v.onRenderedViewportChange=v._onRenderedViewportChange.event,v._onRender=v.register(new s.EventEmitter),v.onRender=v._onRender.event,v._onRefreshRequest=v.register(new s.EventEmitter),v.onRefreshRequest=v._onRefreshRequest.event,v.register({dispose:function(){var e;return null===(e=v._renderer)||void 0===e?void 0:e.dispose()}}),v._renderDebouncer=new a.RenderDebouncer(p.window,(function(e,t){return v._renderRows(e,t)})),v.register(v._renderDebouncer),v._screenDprMonitor=new c.ScreenDprMonitor(p.window),v._screenDprMonitor.setListener((function(){return v.handleDevicePixelRatioChange()})),v.register(v._screenDprMonitor),v.register(f.onResize((function(){return v._fullRefresh()}))),v.register(f.buffers.onBufferActivate((function(){var e;return null===(e=v._renderer)||void 0===e?void 0:e.clear()}))),v.register(r.onOptionChange((function(){return v._handleOptionsChanged()}))),v.register(v._charSizeService.onCharSizeChange((function(){return v.handleCharSizeChanged()}))),v.register(h.onDecorationRegistered((function(){return v._fullRefresh()}))),v.register(h.onDecorationRemoved((function(){return v._fullRefresh()}))),v.register(r.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],(function(){v.clear(),v.handleResize(f.cols,f.rows),v._fullRefresh()}))),v.register(r.onMultipleOptionChange(["cursorBlink","cursorStyle"],(function(){return v.refreshRows(f.buffer.y,f.buffer.y,!0)}))),v.register((0,u.addDisposableDomListener)(p.window,"resize",(function(){return v.handleDevicePixelRatioChange()}))),v.register(g.onChangeColors((function(){return v._fullRefresh()}))),"IntersectionObserver"in p.window){var y=new p.window.IntersectionObserver((function(e){return v._handleIntersectionChange(e[e.length-1])}),{threshold:0});y.observe(i),v.register({dispose:function(){return y.disconnect()}})}return o(v)}return h(n,[{key:"dimensions",get:function(){return this._renderer.dimensions}},{key:"_handleIntersectionChange",value:function(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}},{key:"refreshRows",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._isPaused?this._needsFullRefresh=!0:(n||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))}},{key:"_renderRows",value:function(e,t){this._renderer&&(e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0)}},{key:"resize",value:function(e,t){this._rowCount=t,this._fireOnCanvasResize()}},{key:"_handleOptionsChanged",value:function(){this._renderer&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}},{key:"_fireOnCanvasResize",value:function(){this._renderer&&(this._renderer.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions))}},{key:"hasRenderer",value:function(){return!!this._renderer}},{key:"setRenderer",value:function(e){var t,n=this;null===(t=this._renderer)||void 0===t||t.dispose(),this._renderer=e,this._renderer.onRequestRedraw((function(e){return n.refreshRows(e.start,e.end,!0)})),this._needsSelectionRefresh=!0,this._fullRefresh()}},{key:"addRefreshCallback",value:function(e){return this._renderDebouncer.addRefreshCallback(e)}},{key:"_fullRefresh",value:function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}},{key:"clearTextureAtlas",value:function(){var e,t;this._renderer&&(null===(t=(e=this._renderer).clearTextureAtlas)||void 0===t||t.call(e),this._fullRefresh())}},{key:"handleDevicePixelRatioChange",value:function(){this._charSizeService.measure(),this._renderer&&(this._renderer.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}},{key:"handleResize",value:function(e,t){var n=this;this._renderer&&(this._isPaused?this._pausedResizeTask.set((function(){return n._renderer.handleResize(e,t)})):this._renderer.handleResize(e,t),this._fullRefresh())}},{key:"handleCharSizeChanged",value:function(){var e;null===(e=this._renderer)||void 0===e||e.handleCharSizeChanged()}},{key:"handleBlur",value:function(){var e;null===(e=this._renderer)||void 0===e||e.handleBlur()}},{key:"handleFocus",value:function(){var e;null===(e=this._renderer)||void 0===e||e.handleFocus()}},{key:"handleSelectionChanged",value:function(e,t,n){var i;this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=n,null===(i=this._renderer)||void 0===i||i.handleSelectionChanged(e,t,n)}},{key:"handleCursorMove",value:function(){var e;null===(e=this._renderer)||void 0===e||e.handleCursorMove()}},{key:"clear",value:function(){var e;null===(e=this._renderer)||void 0===e||e.clear()}}]),n}(l.Disposable);y=i([r(2,f.IOptionsService),r(3,v.ICharSizeService),r(4,f.IDecorationService),r(5,f.IBufferService),r(6,v.ICoreBrowserService),r(7,v.IThemeService)],y),t.RenderService=y},9312:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;var o=n(6114),a=n(456),s=n(511),l=n(8460),c=n(4725),u=n(2585),f=n(9806),v=n(9504),m=n(844),y=n(4841),_=String.fromCharCode(160),b=new RegExp(_,"g"),C=function(e){p(n,e);var t=g(n);function n(e,i,r,o,c,u,h,f,p){var g;return d(this,n),(g=t.call(this))._element=e,g._screenElement=i,g._linkifier=r,g._bufferService=o,g._coreService=c,g._mouseService=u,g._optionsService=h,g._renderService=f,g._coreBrowserService=p,g._dragScrollAmount=0,g._enabled=!0,g._workCell=new s.CellData,g._mouseDownTimeStamp=0,g._oldHasSelection=!1,g._oldSelectionStart=void 0,g._oldSelectionEnd=void 0,g._onLinuxMouseSelection=g.register(new l.EventEmitter),g.onLinuxMouseSelection=g._onLinuxMouseSelection.event,g._onRedrawRequest=g.register(new l.EventEmitter),g.onRequestRedraw=g._onRedrawRequest.event,g._onSelectionChange=g.register(new l.EventEmitter),g.onSelectionChange=g._onSelectionChange.event,g._onRequestScrollLines=g.register(new l.EventEmitter),g.onRequestScrollLines=g._onRequestScrollLines.event,g._mouseMoveListener=function(e){return g._handleMouseMove(e)},g._mouseUpListener=function(e){return g._handleMouseUp(e)},g._coreService.onUserInput((function(){g.hasSelection&&g.clearSelection()})),g._trimListener=g._bufferService.buffer.lines.onTrim((function(e){return g._handleTrim(e)})),g.register(g._bufferService.buffers.onBufferActivate((function(e){return g._handleBufferActivate(e)}))),g.enable(),g._model=new a.SelectionModel(g._bufferService),g._activeSelectionMode=0,g.register((0,m.toDisposable)((function(){g._removeMouseDownListeners()}))),g}return h(n,[{key:"reset",value:function(){this.clearSelection()}},{key:"disable",value:function(){this.clearSelection(),this._enabled=!1}},{key:"enable",value:function(){this._enabled=!0}},{key:"selectionStart",get:function(){return this._model.finalSelectionStart}},{key:"selectionEnd",get:function(){return this._model.finalSelectionEnd}},{key:"hasSelection",get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])}},{key:"selectionText",get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var n=this._bufferService.buffer,i=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var r=e[0]<t[0]?e[0]:t[0],a=e[0]<t[0]?t[0]:e[0],s=e[1];s<=t[1];s++){var l=n.translateBufferLineToString(s,!0,r,a);i.push(l)}}else{var c=e[1]===t[1]?t[0]:void 0;i.push(n.translateBufferLineToString(e[1],!0,e[0],c));for(var u=e[1]+1;u<=t[1]-1;u++){var d=n.lines.get(u),h=n.translateBufferLineToString(u,!0);(null==d?void 0:d.isWrapped)?i[i.length-1]+=h:i.push(h)}if(e[1]!==t[1]){var f=n.lines.get(t[1]),p=n.translateBufferLineToString(t[1],!0,0,t[0]);f&&f.isWrapped?i[i.length-1]+=p:i.push(p)}}return i.map((function(e){return e.replace(b," ")})).join(o.isWindows?"\r\n":"\n")}},{key:"clearSelection",value:function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}},{key:"refresh",value:function(e){var t=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((function(){return t._refresh()}))),o.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}},{key:"_refresh",value:function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})}},{key:"_isClickInSelection",value:function(e){var t=this._getMouseBufferCoords(e),n=this._model.finalSelectionStart,i=this._model.finalSelectionEnd;return!!(n&&i&&t)&&this._areCoordsInSelection(t,n,i)}},{key:"isCellInSelection",value:function(e,t){var n=this._model.finalSelectionStart,i=this._model.finalSelectionEnd;return!(!n||!i)&&this._areCoordsInSelection([e,t],n,i)}},{key:"_areCoordsInSelection",value:function(e,t,n){return e[1]>t[1]&&e[1]<n[1]||t[1]===n[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<n[0]||t[1]<n[1]&&e[1]===n[1]&&e[0]<n[0]||t[1]<n[1]&&e[1]===t[1]&&e[0]>=t[0]}},{key:"_selectWordAtCursor",value:function(e,t){var n,i,r=null===(i=null===(n=this._linkifier.currentLink)||void 0===n?void 0:n.link)||void 0===i?void 0:i.range;if(r)return this._model.selectionStart=[r.start.x-1,r.start.y-1],this._model.selectionStartLength=(0,y.getRangeLength)(r,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var o=this._getMouseBufferCoords(e);return!!o&&(this._selectWordAt(o,t),this._model.selectionEnd=void 0,!0)}},{key:"selectAll",value:function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}},{key:"selectLines",value:function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}},{key:"_handleTrim",value:function(e){this._model.handleTrim(e)&&this.refresh()}},{key:"_getMouseBufferCoords",value:function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}},{key:"_getMouseEventScrollAmount",value:function(e){var t=(0,f.getCoordsRelativeToElement)(this._coreBrowserService.window,e,this._screenElement)[1],n=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=n?0:(t>n&&(t-=n),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))}},{key:"shouldForceSelection",value:function(e){return o.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}},{key:"handleMouseDown",value:function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):1===e.detail?this._handleSingleClick(e):2===e.detail?this._handleDoubleClick(e):3===e.detail&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}},{key:"_addMouseDownListeners",value:function(){var e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((function(){return e._dragScroll()}),50)}},{key:"_removeMouseDownListeners",value:function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}},{key:"_handleIncrementalClick",value:function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}},{key:"_handleSingleClick",value:function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=void 0;var t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}}},{key:"_handleDoubleClick",value:function(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}},{key:"_handleTripleClick",value:function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}},{key:"shouldColumnSelect",value:function(e){return e.altKey&&!(o.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}},{key:"_handleMouseMove",value:function(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var n=this._bufferService.buffer;if(this._model.selectionEnd[1]<n.lines.length){var i=n.lines.get(this._model.selectionEnd[1]);i&&0===i.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}}},{key:"_dragScroll",value:function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var e=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}},{key:"_handleMouseUp",value:function(e){var t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var n=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(n&&void 0!==n[0]&&void 0!==n[1]){var i=(0,v.moveToCellSequence)(n[0]-1,n[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(i,!0)}}}else this._fireEventIfSelectionChanged()}},{key:"_fireEventIfSelectionChanged",value:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,n=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);n?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,n)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,n)}},{key:"_fireOnSelectionChange",value:function(e,t,n){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=n,this._onSelectionChange.fire()}},{key:"_handleBufferActivate",value:function(e){var t=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim((function(e){return t._handleTrim(e)}))}},{key:"_convertViewportColToCharacterIndex",value:function(e,t){for(var n=t,i=0;t>=i;i++){var r=e.loadCell(i,this._workCell).getChars().length;0===this._workCell.getWidth()?n--:r>1&&t!==i&&(n+=r-1)}return n}},{key:"setSelection",value:function(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh(),this._fireEventIfSelectionChanged()}},{key:"rightClickSelect",value:function(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}},{key:"_getWordAt",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!(e[0]>=this._bufferService.cols)){var r=this._bufferService.buffer,o=r.lines.get(e[1]);if(o){var a=r.translateBufferLineToString(e[1],!1),s=this._convertViewportColToCharacterIndex(o,e[0]),l=s,c=e[0]-s,u=0,d=0,h=0,f=0;if(" "===a.charAt(s)){for(;s>0&&" "===a.charAt(s-1);)s--;for(;l<a.length&&" "===a.charAt(l+1);)l++}else{var p=e[0],g=e[0];0===o.getWidth(p)&&(u++,p--),2===o.getWidth(g)&&(d++,g++);var v=o.getString(g).length;for(v>1&&(f+=v-1,l+=v-1);p>0&&s>0&&!this._isCharWordSeparator(o.loadCell(p-1,this._workCell));){o.loadCell(p-1,this._workCell);var m=this._workCell.getChars().length;0===this._workCell.getWidth()?(u++,p--):m>1&&(h+=m-1,s-=m-1),s--,p--}for(;g<o.length&&l+1<a.length&&!this._isCharWordSeparator(o.loadCell(g+1,this._workCell));){o.loadCell(g+1,this._workCell);var y=this._workCell.getChars().length;2===this._workCell.getWidth()?(d++,g++):y>1&&(f+=y-1,l+=y-1),l++,g++}}l++;var _=s+c-u+h,b=Math.min(this._bufferService.cols,l-s+u+d-h-f);if(t||""!==a.slice(s,l).trim()){if(n&&0===_&&32!==o.getCodePoint(0)){var C=r.lines.get(e[1]-1);if(C&&o.isWrapped&&32!==C.getCodePoint(this._bufferService.cols-1)){var S=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(S){var w=this._bufferService.cols-S.start;_-=w,b+=w}}}if(i&&_+b===this._bufferService.cols&&32!==o.getCodePoint(this._bufferService.cols-1)){var k=r.lines.get(e[1]+1);if((null==k?void 0:k.isWrapped)&&32!==k.getCodePoint(0)){var x=this._getWordAt([0,e[1]+1],!1,!1,!0);x&&(b+=x.length)}}return{start:_,length:b}}}}}},{key:"_selectWordAt",value:function(e,t){var n=this._getWordAt(e,t);if(n){for(;n.start<0;)n.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[n.start,e[1]],this._model.selectionStartLength=n.length}}},{key:"_selectToWordAt",value:function(e){var t=this._getWordAt(e,!0);if(t){for(var n=e[1];t.start<0;)t.start+=this._bufferService.cols,n--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,n++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,n]}}},{key:"_isCharWordSeparator",value:function(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}},{key:"_selectLineAt",value:function(e){var t=this._bufferService.buffer.getWrappedRangeForLine(e),n={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,y.getRangeLength)(n,this._bufferService.cols)}}]),n}(m.Disposable);C=i([r(3,u.IBufferService),r(4,u.ICoreService),r(5,c.IMouseService),r(6,u.IOptionsService),r(7,c.IRenderService),r(8,c.ICoreBrowserService)],C),t.SelectionService=C},4725:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IThemeService=t.ICharacterJoinerService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;var i=n(8343);t.ICharSizeService=(0,i.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,i.createDecorator)("CoreBrowserService"),t.IMouseService=(0,i.createDecorator)("MouseService"),t.IRenderService=(0,i.createDecorator)("RenderService"),t.ISelectionService=(0,i.createDecorator)("SelectionService"),t.ICharacterJoinerService=(0,i.createDecorator)("CharacterJoinerService"),t.IThemeService=(0,i.createDecorator)("ThemeService")},6731:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeService=t.DEFAULT_ANSI_COLORS=void 0;var o=n(7239),a=n(8055),s=n(8460),l=n(844),c=n(2585),u=a.css.toColor("#ffffff"),f=a.css.toColor("#000000"),v=a.css.toColor("#ffffff"),m=a.css.toColor("#000000"),y={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var e=[a.css.toColor("#2e3436"),a.css.toColor("#cc0000"),a.css.toColor("#4e9a06"),a.css.toColor("#c4a000"),a.css.toColor("#3465a4"),a.css.toColor("#75507b"),a.css.toColor("#06989a"),a.css.toColor("#d3d7cf"),a.css.toColor("#555753"),a.css.toColor("#ef2929"),a.css.toColor("#8ae234"),a.css.toColor("#fce94f"),a.css.toColor("#729fcf"),a.css.toColor("#ad7fa8"),a.css.toColor("#34e2e2"),a.css.toColor("#eeeeec")],t=[0,95,135,175,215,255],n=0;n<216;n++){var i=t[n/36%6|0],r=t[n/6%6|0],o=t[n%6];e.push({css:a.channels.toCss(i,r,o),rgba:a.channels.toRgba(i,r,o)})}for(var s=0;s<24;s++){var l=8+10*s;e.push({css:a.channels.toCss(l,l,l),rgba:a.channels.toRgba(l,l,l)})}return e}());var _=function(e){p(i,e);var n=g(i);function i(e){var r;return d(this,i),(r=n.call(this))._optionsService=e,r._onChangeColors=r.register(new s.EventEmitter),r.onChangeColors=r._onChangeColors.event,r._contrastCache=new o.ColorContrastCache,r._colors={foreground:u,background:f,cursor:v,cursorAccent:m,selectionForeground:void 0,selectionBackgroundTransparent:y,selectionBackgroundOpaque:a.color.blend(f,y),selectionInactiveBackgroundTransparent:y,selectionInactiveBackgroundOpaque:a.color.blend(f,y),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:r._contrastCache},r._updateRestoreColors(),r._setTheme(r._optionsService.rawOptions.theme),r.register(r._optionsService.onSpecificOptionChange("minimumContrastRatio",(function(){return r._contrastCache.clear()}))),r.register(r._optionsService.onSpecificOptionChange("theme",(function(){return r._setTheme(r._optionsService.rawOptions.theme)}))),r}return h(i,[{key:"colors",get:function(){return this._colors}},{key:"_setTheme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._colors;if(n.foreground=b(e.foreground,u),n.background=b(e.background,f),n.cursor=b(e.cursor,v),n.cursorAccent=b(e.cursorAccent,m),n.selectionBackgroundTransparent=b(e.selectionBackground,y),n.selectionBackgroundOpaque=a.color.blend(n.background,n.selectionBackgroundTransparent),n.selectionInactiveBackgroundTransparent=b(e.selectionInactiveBackground,n.selectionBackgroundTransparent),n.selectionInactiveBackgroundOpaque=a.color.blend(n.background,n.selectionInactiveBackgroundTransparent),n.selectionForeground=e.selectionForeground?b(e.selectionForeground,a.NULL_COLOR):void 0,n.selectionForeground===a.NULL_COLOR&&(n.selectionForeground=void 0),a.color.isOpaque(n.selectionBackgroundTransparent)){var i=.3;n.selectionBackgroundTransparent=a.color.opacity(n.selectionBackgroundTransparent,i)}if(a.color.isOpaque(n.selectionInactiveBackgroundTransparent)){var r=.3;n.selectionInactiveBackgroundTransparent=a.color.opacity(n.selectionInactiveBackgroundTransparent,r)}if(n.ansi=t.DEFAULT_ANSI_COLORS.slice(),n.ansi[0]=b(e.black,t.DEFAULT_ANSI_COLORS[0]),n.ansi[1]=b(e.red,t.DEFAULT_ANSI_COLORS[1]),n.ansi[2]=b(e.green,t.DEFAULT_ANSI_COLORS[2]),n.ansi[3]=b(e.yellow,t.DEFAULT_ANSI_COLORS[3]),n.ansi[4]=b(e.blue,t.DEFAULT_ANSI_COLORS[4]),n.ansi[5]=b(e.magenta,t.DEFAULT_ANSI_COLORS[5]),n.ansi[6]=b(e.cyan,t.DEFAULT_ANSI_COLORS[6]),n.ansi[7]=b(e.white,t.DEFAULT_ANSI_COLORS[7]),n.ansi[8]=b(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),n.ansi[9]=b(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),n.ansi[10]=b(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),n.ansi[11]=b(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),n.ansi[12]=b(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),n.ansi[13]=b(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),n.ansi[14]=b(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),n.ansi[15]=b(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),e.extendedAnsi)for(var o=Math.min(n.ansi.length-16,e.extendedAnsi.length),s=0;s<o;s++)n.ansi[s+16]=b(e.extendedAnsi[s],t.DEFAULT_ANSI_COLORS[s+16]);this._contrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}},{key:"restoreColor",value:function(e){this._restoreColor(e),this._onChangeColors.fire(this.colors)}},{key:"_restoreColor",value:function(e){if(void 0!==e)switch(e){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[e]=this._restoreColors.ansi[e]}else for(var t=0;t<this._restoreColors.ansi.length;++t)this._colors.ansi[t]=this._restoreColors.ansi[t]}},{key:"modifyColors",value:function(e){e(this._colors),this._onChangeColors.fire(this.colors)}},{key:"_updateRestoreColors",value:function(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}}]),i}(l.Disposable);function b(e,t){if(void 0!==e)try{return a.css.toColor(e)}catch(e){}return t}_=i([r(0,c.IOptionsService)],_),t.ThemeService=_},6349:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;var i=n(8460),r=function(e){p(n,e);var t=g(n);function n(e){var r;return d(this,n),(r=t.call(this))._maxLength=e,r.onDeleteEmitter=r.register(new i.EventEmitter),r.onDelete=r.onDeleteEmitter.event,r.onInsertEmitter=r.register(new i.EventEmitter),r.onInsert=r.onInsertEmitter.event,r.onTrimEmitter=r.register(new i.EventEmitter),r.onTrim=r.onTrimEmitter.event,r._array=new Array(r._maxLength),r._startIndex=0,r._length=0,r}return h(n,[{key:"maxLength",get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),n=0;n<Math.min(e,this.length);n++)t[n]=this._array[this._getCyclicIndex(n)];this._array=t,this._maxLength=e,this._startIndex=0}}},{key:"length",get:function(){return this._length},set:function(e){if(e>this._length)for(var t=this._length;t<e;t++)this._array[t]=void 0;this._length=e}},{key:"get",value:function(e){return this._array[this._getCyclicIndex(e)]}},{key:"set",value:function(e,t){this._array[this._getCyclicIndex(e)]=t}},{key:"push",value:function(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}},{key:"recycle",value:function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}},{key:"isFull",get:function(){return this._length===this._maxLength}},{key:"pop",value:function(){return this._array[this._getCyclicIndex(this._length---1)]}},{key:"splice",value:function(e,t){if(t){for(var n=e;n<this._length-t;n++)this._array[this._getCyclicIndex(n)]=this._array[this._getCyclicIndex(n+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(var i=this._length-1;i>=e;i--)this._array[this._getCyclicIndex(i+(arguments.length<=2?0:arguments.length-2))]=this._array[this._getCyclicIndex(i)];for(var r=0;r<(arguments.length<=2?0:arguments.length-2);r++)this._array[this._getCyclicIndex(e+r)]=r+2<2||arguments.length<=r+2?void 0:arguments[r+2];if((arguments.length<=2?0:arguments.length-2)&&this.onInsertEmitter.fire({index:e,amount:arguments.length<=2?0:arguments.length-2}),this._length+(arguments.length<=2?0:arguments.length-2)>this._maxLength){var o=this._length+(arguments.length<=2?0:arguments.length-2)-this._maxLength;this._startIndex+=o,this._length=this._maxLength,this.onTrimEmitter.fire(o)}else this._length+=arguments.length<=2?0:arguments.length-2}},{key:"trimStart",value:function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}},{key:"shiftElements",value:function(e,t,n){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+n<0)throw new Error("Cannot shift elements in list beyond index 0");if(n>0){for(var i=t-1;i>=0;i--)this.set(e+i+n,this.get(e+i));var r=e+t+n-this._length;if(r>0)for(this._length+=r;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(var o=0;o<t;o++)this.set(e+o+n,this.get(e+o))}}},{key:"_getCyclicIndex",value:function(e){return(this._startIndex+e)%this._maxLength}}]),n}(n(844).Disposable);t.CircularList=r},1439:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if("object"!=typeof t)return t;var i=Array.isArray(t)?[]:{};for(var r in t)i[r]=n<=1?t[r]:t[r]&&e(t[r],n-1);return i}},8055:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;var i,r,o,a=n(6114),s=0,l=0,u=0,d=0;function h(e){var t=e.toString(16);return t.length<2?"0"+t:t}function f(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}t.NULL_COLOR={css:"#00000000",rgba:0},function(e){e.toCss=function(e,t,n,i){return void 0!==i?"#".concat(h(e)).concat(h(t)).concat(h(n)).concat(h(i)):"#".concat(h(e)).concat(h(t)).concat(h(n))},e.toRgba=function(e,t,n){return(e<<24|t<<16|n<<8|(arguments.length>3&&void 0!==arguments[3]?arguments[3]:255))>>>0}}(i=t.channels||(t.channels={})),function(e){function t(e,t){var n,r;return d=Math.round(255*t),n=o.toChannels(e.rgba),r=c(n,3),s=r[0],l=r[1],u=r[2],{css:i.toCss(s,l,u,d),rgba:i.toRgba(s,l,u,d)}}e.blend=function(e,t){if(1===(d=(255&t.rgba)/255))return{css:t.css,rgba:t.rgba};var n=t.rgba>>24&255,r=t.rgba>>16&255,o=t.rgba>>8&255,a=e.rgba>>24&255,c=e.rgba>>16&255,h=e.rgba>>8&255;return s=a+Math.round((n-a)*d),l=c+Math.round((r-c)*d),u=h+Math.round((o-h)*d),{css:i.toCss(s,l,u),rgba:i.toRgba(s,l,u)}},e.isOpaque=function(e){return 255==(255&e.rgba)},e.ensureContrastRatio=function(e,t,n){var i=o.ensureContrastRatio(e.rgba,t.rgba,n);if(i)return o.toColor(i>>24&255,i>>16&255,i>>8&255)},e.opaque=function(e){var t,n,r=(255|e.rgba)>>>0;return t=o.toChannels(r),n=c(t,3),s=n[0],l=n[1],u=n[2],{css:i.toCss(s,l,u),rgba:r}},e.opacity=t,e.multiplyOpacity=function(e,n){return t(e,(d=255&e.rgba)*n/255)},e.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}}(t.color||(t.color={})),function(e){var t,n;if(!a.isNode){var r=document.createElement("canvas");r.width=1,r.height=1;var h=r.getContext("2d",{willReadFrequently:!0});h&&((t=h).globalCompositeOperation="copy",n=t.createLinearGradient(0,0,1,1))}e.toColor=function(e){var r;if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return s=parseInt(e.slice(1,2).repeat(2),16),l=parseInt(e.slice(2,3).repeat(2),16),u=parseInt(e.slice(3,4).repeat(2),16),o.toColor(s,l,u);case 5:return s=parseInt(e.slice(1,2).repeat(2),16),l=parseInt(e.slice(2,3).repeat(2),16),u=parseInt(e.slice(3,4).repeat(2),16),d=parseInt(e.slice(4,5).repeat(2),16),o.toColor(s,l,u,d);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}var a=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(a)return s=parseInt(a[1]),l=parseInt(a[2]),u=parseInt(a[3]),d=Math.round(255*(void 0===a[5]?1:parseFloat(a[5]))),o.toColor(s,l,u,d);if(!t||!n)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=n,t.fillStyle=e,"string"!=typeof t.fillStyle)throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),r=c(t.getImageData(0,0,1,1).data,4),s=r[0],l=r[1],u=r[2],255!==(d=r[3]))throw new Error("css.toColor: Unsupported css format");return{rgba:i.toRgba(s,l,u,d),css:e}}}(t.css||(t.css={})),function(e){function t(e,t,n){var i=e/255,r=t/255,o=n/255;return.2126*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(r=t.rgb||(t.rgb={})),function(e){function t(e,t,n){for(var i=e>>24&255,o=e>>16&255,a=e>>8&255,s=t>>24&255,l=t>>16&255,c=t>>8&255,u=f(r.relativeLuminance2(s,l,c),r.relativeLuminance2(i,o,a));u<n&&(s>0||l>0||c>0);)s-=Math.max(0,Math.ceil(.1*s)),l-=Math.max(0,Math.ceil(.1*l)),c-=Math.max(0,Math.ceil(.1*c)),u=f(r.relativeLuminance2(s,l,c),r.relativeLuminance2(i,o,a));return(s<<24|l<<16|c<<8|255)>>>0}function n(e,t,n){for(var i=e>>24&255,o=e>>16&255,a=e>>8&255,s=t>>24&255,l=t>>16&255,c=t>>8&255,u=f(r.relativeLuminance2(s,l,c),r.relativeLuminance2(i,o,a));u<n&&(s<255||l<255||c<255);)s=Math.min(255,s+Math.ceil(.1*(255-s))),l=Math.min(255,l+Math.ceil(.1*(255-l))),c=Math.min(255,c+Math.ceil(.1*(255-c))),u=f(r.relativeLuminance2(s,l,c),r.relativeLuminance2(i,o,a));return(s<<24|l<<16|c<<8|255)>>>0}e.ensureContrastRatio=function(e,i,o){var a=r.relativeLuminance(e>>8),s=r.relativeLuminance(i>>8);if(f(a,s)<o){if(s<a){var l=t(e,i,o),c=f(a,r.relativeLuminance(l>>8));if(c<o){var u=n(e,i,o);return c>f(a,r.relativeLuminance(u>>8))?l:u}return l}var d=n(e,i,o),h=f(a,r.relativeLuminance(d>>8));if(h<o){var p=t(e,i,o);return h>f(a,r.relativeLuminance(p>>8))?d:p}return d}},e.reduceLuminance=t,e.increaseLuminance=n,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,n,r){return{css:i.toCss(e,t,n,r),rgba:i.toRgba(e,t,n,r)}}}(o=t.rgba||(t.rgba={})),t.toPaddedHex=h,t.contrastRatio=f},8969:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;var i=n(844),r=n(2585),o=n(4348),a=n(7866),s=n(744),l=n(7302),c=n(6975),f=n(8460),v=n(1753),m=n(1480),y=n(7994),_=n(9282),b=n(5435),C=n(5981),S=n(2660),w=!1,k=function(e){p(n,e);var t=g(n);function n(e){var u;return d(this,n),(u=t.call(this))._onBinary=u.register(new f.EventEmitter),u.onBinary=u._onBinary.event,u._onData=u.register(new f.EventEmitter),u.onData=u._onData.event,u._onLineFeed=u.register(new f.EventEmitter),u.onLineFeed=u._onLineFeed.event,u._onResize=u.register(new f.EventEmitter),u.onResize=u._onResize.event,u._onWriteParsed=u.register(new f.EventEmitter),u.onWriteParsed=u._onWriteParsed.event,u._onScroll=u.register(new f.EventEmitter),u._instantiationService=new o.InstantiationService,u.optionsService=u.register(new l.OptionsService(e)),u._instantiationService.setService(r.IOptionsService,u.optionsService),u._bufferService=u.register(u._instantiationService.createInstance(s.BufferService)),u._instantiationService.setService(r.IBufferService,u._bufferService),u._logService=u.register(u._instantiationService.createInstance(a.LogService)),u._instantiationService.setService(r.ILogService,u._logService),u.coreService=u.register(u._instantiationService.createInstance(c.CoreService)),u._instantiationService.setService(r.ICoreService,u.coreService),u.coreMouseService=u.register(u._instantiationService.createInstance(v.CoreMouseService)),u._instantiationService.setService(r.ICoreMouseService,u.coreMouseService),u.unicodeService=u.register(u._instantiationService.createInstance(m.UnicodeService)),u._instantiationService.setService(r.IUnicodeService,u.unicodeService),u._charsetService=u._instantiationService.createInstance(y.CharsetService),u._instantiationService.setService(r.ICharsetService,u._charsetService),u._oscLinkService=u._instantiationService.createInstance(S.OscLinkService),u._instantiationService.setService(r.IOscLinkService,u._oscLinkService),u._inputHandler=u.register(new b.InputHandler(u._bufferService,u._charsetService,u.coreService,u._logService,u.optionsService,u._oscLinkService,u.coreMouseService,u.unicodeService)),u.register((0,f.forwardEvent)(u._inputHandler.onLineFeed,u._onLineFeed)),u.register(u._inputHandler),u.register((0,f.forwardEvent)(u._bufferService.onResize,u._onResize)),u.register((0,f.forwardEvent)(u.coreService.onData,u._onData)),u.register((0,f.forwardEvent)(u.coreService.onBinary,u._onBinary)),u.register(u.coreService.onRequestScrollToBottom((function(){return u.scrollToBottom()}))),u.register(u.coreService.onUserInput((function(){return u._writeBuffer.handleUserInput()}))),u.register(u.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],(function(){return u._handleWindowsPtyOptionChange()}))),u.register(u._bufferService.onScroll((function(e){u._onScroll.fire({position:u._bufferService.buffer.ydisp,source:0}),u._inputHandler.markRangeDirty(u._bufferService.buffer.scrollTop,u._bufferService.buffer.scrollBottom)}))),u.register(u._inputHandler.onScroll((function(e){u._onScroll.fire({position:u._bufferService.buffer.ydisp,source:0}),u._inputHandler.markRangeDirty(u._bufferService.buffer.scrollTop,u._bufferService.buffer.scrollBottom)}))),u._writeBuffer=u.register(new C.WriteBuffer((function(e,t){return u._inputHandler.parse(e,t)}))),u.register((0,f.forwardEvent)(u._writeBuffer.onWriteParsed,u._onWriteParsed)),u.register((0,i.toDisposable)((function(){var e;null===(e=u._windowsWrappingHeuristics)||void 0===e||e.dispose(),u._windowsWrappingHeuristics=void 0}))),u}return h(n,[{key:"onScroll",get:function(){var e=this;return this._onScrollApi||(this._onScrollApi=this.register(new f.EventEmitter),this._onScroll.event((function(t){var n;null===(n=e._onScrollApi)||void 0===n||n.fire(t.position)}))),this._onScrollApi.event}},{key:"cols",get:function(){return this._bufferService.cols}},{key:"rows",get:function(){return this._bufferService.rows}},{key:"buffers",get:function(){return this._bufferService.buffers}},{key:"options",get:function(){return this.optionsService.options},set:function(e){for(var t in e)this.optionsService.options[t]=e[t]}},{key:"write",value:function(e,t){this._writeBuffer.write(e,t)}},{key:"writeSync",value:function(e,t){this._logService.logLevel<=r.LogLevelEnum.WARN&&!w&&(this._logService.warn("writeSync is unreliable and will be removed soon."),w=!0),this._writeBuffer.writeSync(e,t)}},{key:"resize",value:function(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,s.MINIMUM_COLS),t=Math.max(t,s.MINIMUM_ROWS),this._bufferService.resize(e,t))}},{key:"scroll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._bufferService.scroll(e,t)}},{key:"scrollLines",value:function(e,t,n){this._bufferService.scrollLines(e,t,n)}},{key:"scrollPages",value:function(e){this._bufferService.scrollPages(e)}},{key:"scrollToTop",value:function(){this._bufferService.scrollToTop()}},{key:"scrollToBottom",value:function(){this._bufferService.scrollToBottom()}},{key:"scrollToLine",value:function(e){this._bufferService.scrollToLine(e)}},{key:"registerEscHandler",value:function(e,t){return this._inputHandler.registerEscHandler(e,t)}},{key:"registerDcsHandler",value:function(e,t){return this._inputHandler.registerDcsHandler(e,t)}},{key:"registerCsiHandler",value:function(e,t){return this._inputHandler.registerCsiHandler(e,t)}},{key:"registerOscHandler",value:function(e,t){return this._inputHandler.registerOscHandler(e,t)}},{key:"_setup",value:function(){this._handleWindowsPtyOptionChange()}},{key:"reset",value:function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}},{key:"_handleWindowsPtyOptionChange",value:function(){var e,t=!1,n=this.optionsService.rawOptions.windowsPty;n&&void 0!==n.buildNumber&&void 0!==n.buildNumber?t=!!("conpty"===n.backend&&n.buildNumber<21376):this.optionsService.rawOptions.windowsMode&&(t=!0),t?this._enableWindowsWrappingHeuristics():(null===(e=this._windowsWrappingHeuristics)||void 0===e||e.dispose(),this._windowsWrappingHeuristics=void 0)}},{key:"_enableWindowsWrappingHeuristics",value:function(){var e=this;if(!this._windowsWrappingHeuristics){var t=[];t.push(this.onLineFeed(_.updateWindowsModeWrappedState.bind(null,this._bufferService))),t.push(this.registerCsiHandler({final:"H"},(function(){return(0,_.updateWindowsModeWrappedState)(e._bufferService),!1}))),this._windowsWrappingHeuristics=(0,i.toDisposable)((function(){var e,n=u(t);try{for(n.s();!(e=n.n()).done;)e.value.dispose()}catch(i){n.e(i)}finally{n.f()}}))}}}]),n}(i.Disposable);t.CoreTerminal=k},8460:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=function(){function e(){d(this,e),this._listeners=[],this._disposed=!1}return h(e,[{key:"event",get:function(){var e=this;return this._event||(this._event=function(t){return e._listeners.push(t),{dispose:function(){if(!e._disposed)for(var n=0;n<e._listeners.length;n++)if(e._listeners[n]===t)return void e._listeners.splice(n,1)}}}),this._event}},{key:"fire",value:function(e,t){for(var n=[],i=0;i<this._listeners.length;i++)n.push(this._listeners[i]);for(var r=0;r<n.length;r++)n[r].call(void 0,e,t)}},{key:"dispose",value:function(){this._listeners&&(this._listeners.length=0),this._disposed=!0}}]),e}(),t.forwardEvent=function(e,t){return e((function(e){return t.fire(e)}))}},5435:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;var o,a=n(2584),s=n(7116),l=n(2015),c=n(844),u=n(482),f=n(8437),v=n(8460),m=n(643),y=n(511),_=n(3734),b=n(2585),C=n(6242),S=n(6351),w=n(5941),k={"(":0,")":1,"*":2,"+":3,"-":1,".":2},x=131072;function E(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(o=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}));var T=0,N=function(e){p(n,e);var t=g(n);function n(e,i,r,o,c,h,p,g){var m,_=arguments.length>8&&void 0!==arguments[8]?arguments[8]:new l.EscapeSequenceParser;d(this,n),(m=t.call(this))._bufferService=e,m._charsetService=i,m._coreService=r,m._logService=o,m._optionsService=c,m._oscLinkService=h,m._coreMouseService=p,m._unicodeService=g,m._parser=_,m._parseBuffer=new Uint32Array(4096),m._stringDecoder=new u.StringToUtf32,m._utf8Decoder=new u.Utf8ToUtf32,m._workCell=new y.CellData,m._windowTitle="",m._iconName="",m._windowTitleStack=[],m._iconNameStack=[],m._curAttrData=f.DEFAULT_ATTR_DATA.clone(),m._eraseAttrDataInternal=f.DEFAULT_ATTR_DATA.clone(),m._onRequestBell=m.register(new v.EventEmitter),m.onRequestBell=m._onRequestBell.event,m._onRequestRefreshRows=m.register(new v.EventEmitter),m.onRequestRefreshRows=m._onRequestRefreshRows.event,m._onRequestReset=m.register(new v.EventEmitter),m.onRequestReset=m._onRequestReset.event,m._onRequestSendFocus=m.register(new v.EventEmitter),m.onRequestSendFocus=m._onRequestSendFocus.event,m._onRequestSyncScrollBar=m.register(new v.EventEmitter),m.onRequestSyncScrollBar=m._onRequestSyncScrollBar.event,m._onRequestWindowsOptionsReport=m.register(new v.EventEmitter),m.onRequestWindowsOptionsReport=m._onRequestWindowsOptionsReport.event,m._onA11yChar=m.register(new v.EventEmitter),m.onA11yChar=m._onA11yChar.event,m._onA11yTab=m.register(new v.EventEmitter),m.onA11yTab=m._onA11yTab.event,m._onCursorMove=m.register(new v.EventEmitter),m.onCursorMove=m._onCursorMove.event,m._onLineFeed=m.register(new v.EventEmitter),m.onLineFeed=m._onLineFeed.event,m._onScroll=m.register(new v.EventEmitter),m.onScroll=m._onScroll.event,m._onTitleChange=m.register(new v.EventEmitter),m.onTitleChange=m._onTitleChange.event,m._onColor=m.register(new v.EventEmitter),m.onColor=m._onColor.event,m._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},m._specialColors=[256,257,258],m.register(m._parser),m._dirtyRowTracker=new I(m._bufferService),m._activeBuffer=m._bufferService.buffer,m.register(m._bufferService.buffers.onBufferActivate((function(e){return m._activeBuffer=e.activeBuffer}))),m._parser.setCsiHandlerFallback((function(e,t){m._logService.debug("Unknown CSI code: ",{identifier:m._parser.identToString(e),params:t.toArray()})})),m._parser.setEscHandlerFallback((function(e){m._logService.debug("Unknown ESC code: ",{identifier:m._parser.identToString(e)})})),m._parser.setExecuteHandlerFallback((function(e){m._logService.debug("Unknown EXECUTE code: ",{code:e})})),m._parser.setOscHandlerFallback((function(e,t,n){m._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:n})})),m._parser.setDcsHandlerFallback((function(e,t,n){"HOOK"===t&&(n=n.toArray()),m._logService.debug("Unknown DCS code: ",{identifier:m._parser.identToString(e),action:t,payload:n})})),m._parser.setPrintHandler((function(e,t,n){return m.print(e,t,n)})),m._parser.registerCsiHandler({final:"@"},(function(e){return m.insertChars(e)})),m._parser.registerCsiHandler({intermediates:" ",final:"@"},(function(e){return m.scrollLeft(e)})),m._parser.registerCsiHandler({final:"A"},(function(e){return m.cursorUp(e)})),m._parser.registerCsiHandler({intermediates:" ",final:"A"},(function(e){return m.scrollRight(e)})),m._parser.registerCsiHandler({final:"B"},(function(e){return m.cursorDown(e)})),m._parser.registerCsiHandler({final:"C"},(function(e){return m.cursorForward(e)})),m._parser.registerCsiHandler({final:"D"},(function(e){return m.cursorBackward(e)})),m._parser.registerCsiHandler({final:"E"},(function(e){return m.cursorNextLine(e)})),m._parser.registerCsiHandler({final:"F"},(function(e){return m.cursorPrecedingLine(e)})),m._parser.registerCsiHandler({final:"G"},(function(e){return m.cursorCharAbsolute(e)})),m._parser.registerCsiHandler({final:"H"},(function(e){return m.cursorPosition(e)})),m._parser.registerCsiHandler({final:"I"},(function(e){return m.cursorForwardTab(e)})),m._parser.registerCsiHandler({final:"J"},(function(e){return m.eraseInDisplay(e,!1)})),m._parser.registerCsiHandler({prefix:"?",final:"J"},(function(e){return m.eraseInDisplay(e,!0)})),m._parser.registerCsiHandler({final:"K"},(function(e){return m.eraseInLine(e,!1)})),m._parser.registerCsiHandler({prefix:"?",final:"K"},(function(e){return m.eraseInLine(e,!0)})),m._parser.registerCsiHandler({final:"L"},(function(e){return m.insertLines(e)})),m._parser.registerCsiHandler({final:"M"},(function(e){return m.deleteLines(e)})),m._parser.registerCsiHandler({final:"P"},(function(e){return m.deleteChars(e)})),m._parser.registerCsiHandler({final:"S"},(function(e){return m.scrollUp(e)})),m._parser.registerCsiHandler({final:"T"},(function(e){return m.scrollDown(e)})),m._parser.registerCsiHandler({final:"X"},(function(e){return m.eraseChars(e)})),m._parser.registerCsiHandler({final:"Z"},(function(e){return m.cursorBackwardTab(e)})),m._parser.registerCsiHandler({final:"`"},(function(e){return m.charPosAbsolute(e)})),m._parser.registerCsiHandler({final:"a"},(function(e){return m.hPositionRelative(e)})),m._parser.registerCsiHandler({final:"b"},(function(e){return m.repeatPrecedingCharacter(e)})),m._parser.registerCsiHandler({final:"c"},(function(e){return m.sendDeviceAttributesPrimary(e)})),m._parser.registerCsiHandler({prefix:">",final:"c"},(function(e){return m.sendDeviceAttributesSecondary(e)})),m._parser.registerCsiHandler({final:"d"},(function(e){return m.linePosAbsolute(e)})),m._parser.registerCsiHandler({final:"e"},(function(e){return m.vPositionRelative(e)})),m._parser.registerCsiHandler({final:"f"},(function(e){return m.hVPosition(e)})),m._parser.registerCsiHandler({final:"g"},(function(e){return m.tabClear(e)})),m._parser.registerCsiHandler({final:"h"},(function(e){return m.setMode(e)})),m._parser.registerCsiHandler({prefix:"?",final:"h"},(function(e){return m.setModePrivate(e)})),m._parser.registerCsiHandler({final:"l"},(function(e){return m.resetMode(e)})),m._parser.registerCsiHandler({prefix:"?",final:"l"},(function(e){return m.resetModePrivate(e)})),m._parser.registerCsiHandler({final:"m"},(function(e){return m.charAttributes(e)})),m._parser.registerCsiHandler({final:"n"},(function(e){return m.deviceStatus(e)})),m._parser.registerCsiHandler({prefix:"?",final:"n"},(function(e){return m.deviceStatusPrivate(e)})),m._parser.registerCsiHandler({intermediates:"!",final:"p"},(function(e){return m.softReset(e)})),m._parser.registerCsiHandler({intermediates:" ",final:"q"},(function(e){return m.setCursorStyle(e)})),m._parser.registerCsiHandler({final:"r"},(function(e){return m.setScrollRegion(e)})),m._parser.registerCsiHandler({final:"s"},(function(e){return m.saveCursor(e)})),m._parser.registerCsiHandler({final:"t"},(function(e){return m.windowOptions(e)})),m._parser.registerCsiHandler({final:"u"},(function(e){return m.restoreCursor(e)})),m._parser.registerCsiHandler({intermediates:"'",final:"}"},(function(e){return m.insertColumns(e)})),m._parser.registerCsiHandler({intermediates:"'",final:"~"},(function(e){return m.deleteColumns(e)})),m._parser.registerCsiHandler({intermediates:'"',final:"q"},(function(e){return m.selectProtected(e)})),m._parser.registerCsiHandler({intermediates:"$",final:"p"},(function(e){return m.requestMode(e,!0)})),m._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(function(e){return m.requestMode(e,!1)})),m._parser.setExecuteHandler(a.C0.BEL,(function(){return m.bell()})),m._parser.setExecuteHandler(a.C0.LF,(function(){return m.lineFeed()})),m._parser.setExecuteHandler(a.C0.VT,(function(){return m.lineFeed()})),m._parser.setExecuteHandler(a.C0.FF,(function(){return m.lineFeed()})),m._parser.setExecuteHandler(a.C0.CR,(function(){return m.carriageReturn()})),m._parser.setExecuteHandler(a.C0.BS,(function(){return m.backspace()})),m._parser.setExecuteHandler(a.C0.HT,(function(){return m.tab()})),m._parser.setExecuteHandler(a.C0.SO,(function(){return m.shiftOut()})),m._parser.setExecuteHandler(a.C0.SI,(function(){return m.shiftIn()})),m._parser.setExecuteHandler(a.C1.IND,(function(){return m.index()})),m._parser.setExecuteHandler(a.C1.NEL,(function(){return m.nextLine()})),m._parser.setExecuteHandler(a.C1.HTS,(function(){return m.tabSet()})),m._parser.registerOscHandler(0,new C.OscHandler((function(e){return m.setTitle(e),m.setIconName(e),!0}))),m._parser.registerOscHandler(1,new C.OscHandler((function(e){return m.setIconName(e)}))),m._parser.registerOscHandler(2,new C.OscHandler((function(e){return m.setTitle(e)}))),m._parser.registerOscHandler(4,new C.OscHandler((function(e){return m.setOrReportIndexedColor(e)}))),m._parser.registerOscHandler(8,new C.OscHandler((function(e){return m.setHyperlink(e)}))),m._parser.registerOscHandler(10,new C.OscHandler((function(e){return m.setOrReportFgColor(e)}))),m._parser.registerOscHandler(11,new C.OscHandler((function(e){return m.setOrReportBgColor(e)}))),m._parser.registerOscHandler(12,new C.OscHandler((function(e){return m.setOrReportCursorColor(e)}))),m._parser.registerOscHandler(104,new C.OscHandler((function(e){return m.restoreIndexedColor(e)}))),m._parser.registerOscHandler(110,new C.OscHandler((function(e){return m.restoreFgColor(e)}))),m._parser.registerOscHandler(111,new C.OscHandler((function(e){return m.restoreBgColor(e)}))),m._parser.registerOscHandler(112,new C.OscHandler((function(e){return m.restoreCursorColor(e)}))),m._parser.registerEscHandler({final:"7"},(function(){return m.saveCursor()})),m._parser.registerEscHandler({final:"8"},(function(){return m.restoreCursor()})),m._parser.registerEscHandler({final:"D"},(function(){return m.index()})),m._parser.registerEscHandler({final:"E"},(function(){return m.nextLine()})),m._parser.registerEscHandler({final:"H"},(function(){return m.tabSet()})),m._parser.registerEscHandler({final:"M"},(function(){return m.reverseIndex()})),m._parser.registerEscHandler({final:"="},(function(){return m.keypadApplicationMode()})),m._parser.registerEscHandler({final:">"},(function(){return m.keypadNumericMode()})),m._parser.registerEscHandler({final:"c"},(function(){return m.fullReset()})),m._parser.registerEscHandler({final:"n"},(function(){return m.setgLevel(2)})),m._parser.registerEscHandler({final:"o"},(function(){return m.setgLevel(3)})),m._parser.registerEscHandler({final:"|"},(function(){return m.setgLevel(3)})),m._parser.registerEscHandler({final:"}"},(function(){return m.setgLevel(2)})),m._parser.registerEscHandler({final:"~"},(function(){return m.setgLevel(1)})),m._parser.registerEscHandler({intermediates:"%",final:"@"},(function(){return m.selectDefaultCharset()})),m._parser.registerEscHandler({intermediates:"%",final:"G"},(function(){return m.selectDefaultCharset()}));var b=function(e){m._parser.registerEscHandler({intermediates:"(",final:e},(function(){return m.selectCharset("("+e)})),m._parser.registerEscHandler({intermediates:")",final:e},(function(){return m.selectCharset(")"+e)})),m._parser.registerEscHandler({intermediates:"*",final:e},(function(){return m.selectCharset("*"+e)})),m._parser.registerEscHandler({intermediates:"+",final:e},(function(){return m.selectCharset("+"+e)})),m._parser.registerEscHandler({intermediates:"-",final:e},(function(){return m.selectCharset("-"+e)})),m._parser.registerEscHandler({intermediates:".",final:e},(function(){return m.selectCharset("."+e)})),m._parser.registerEscHandler({intermediates:"/",final:e},(function(){return m.selectCharset("/"+e)}))};for(var w in s.CHARSETS)b(w);return m._parser.registerEscHandler({intermediates:"#",final:"8"},(function(){return m.screenAlignmentPattern()})),m._parser.setErrorHandler((function(e){return m._logService.error("Parsing error: ",e),e})),m._parser.registerDcsHandler({intermediates:"$",final:"q"},new S.DcsHandler((function(e,t){return m.requestStatusString(e,t)}))),m}return h(n,[{key:"getAttrData",value:function(){return this._curAttrData}},{key:"_preserveStack",value:function(e,t,n,i){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=n,this._parseStack.position=i}},{key:"_logSlowResolvingAsync",value:function(e){this._logService.logLevel<=b.LogLevelEnum.WARN&&Promise.race([e,new Promise((function(e,t){return setTimeout((function(){return t("#SLOW_TIMEOUT")}),5e3)}))]).catch((function(e){if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")}))}},{key:"_getCurrentLinkId",value:function(){return this._curAttrData.extended.urlId}},{key:"parse",value:function(e,t){var n,i=this._activeBuffer.x,r=this._activeBuffer.y,o=0,a=this._parseStack.paused;if(a){if(n=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(n),n;i=this._parseStack.cursorStartX,r=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>x&&(o=this._parseStack.position+x)}if(this._logService.logLevel<=b.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+' "'.concat("string"==typeof e?e:Array.prototype.map.call(e,(function(e){return String.fromCharCode(e)})).join(""),'"'),"string"==typeof e?e.split("").map((function(e){return e.charCodeAt(0)})):e),this._parseBuffer.length<e.length&&this._parseBuffer.length<x&&(this._parseBuffer=new Uint32Array(Math.min(e.length,x))),a||this._dirtyRowTracker.clearRange(),e.length>x)for(var s=o;s<e.length;s+=x){var l=s+x<e.length?s+x:e.length,c="string"==typeof e?this._stringDecoder.decode(e.substring(s,l),this._parseBuffer):this._utf8Decoder.decode(e.subarray(s,l),this._parseBuffer);if(n=this._parser.parse(this._parseBuffer,c))return this._preserveStack(i,r,c,s),this._logSlowResolvingAsync(n),n}else if(!a){var u="string"==typeof e?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer);if(n=this._parser.parse(this._parseBuffer,u))return this._preserveStack(i,r,u,0),this._logSlowResolvingAsync(n),n}this._activeBuffer.x===i&&this._activeBuffer.y===r||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowTracker.start,this._dirtyRowTracker.end)}},{key:"print",value:function(e,t,n){var i,r,o=this._charsetService.charset,a=this._optionsService.rawOptions.screenReaderMode,s=this._bufferService.cols,l=this._coreService.decPrivateModes.wraparound,c=this._coreService.modes.insertMode,d=this._curAttrData,h=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&n-t>0&&2===h.getWidth(this._activeBuffer.x-1)&&h.setCellFromCodePoint(this._activeBuffer.x-1,0,1,d.fg,d.bg,d.extended);for(var f=t;f<n;++f){if(i=e[f],r=this._unicodeService.wcwidth(i),i<127&&o){var p=o[String.fromCharCode(i)];p&&(i=p.charCodeAt(0))}if(a&&this._onA11yChar.fire((0,u.stringFromCodePoint)(i)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),r||!this._activeBuffer.x){if(this._activeBuffer.x+r-1>=s)if(l){for(;this._activeBuffer.x<s;)h.setCellFromCodePoint(this._activeBuffer.x++,0,1,d.fg,d.bg,d.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),h=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=s-1,2===r)continue;if(c&&(h.insertCells(this._activeBuffer.x,r,this._activeBuffer.getNullCell(d),d),2===h.getWidth(s-1)&&h.setCellFromCodePoint(s-1,m.NULL_CELL_CODE,m.NULL_CELL_WIDTH,d.fg,d.bg,d.extended)),h.setCellFromCodePoint(this._activeBuffer.x++,i,r,d.fg,d.bg,d.extended),r>0)for(;--r;)h.setCellFromCodePoint(this._activeBuffer.x++,0,0,d.fg,d.bg,d.extended)}else h.getWidth(this._activeBuffer.x-1)?h.addCodepointToCell(this._activeBuffer.x-1,i):h.addCodepointToCell(this._activeBuffer.x-2,i)}n-t>0&&(h.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<s&&n-t>0&&0===h.getWidth(this._activeBuffer.x)&&!h.hasContent(this._activeBuffer.x)&&h.setCellFromCodePoint(this._activeBuffer.x,0,1,d.fg,d.bg,d.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}},{key:"registerCsiHandler",value:function(e,t){var n=this;return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,(function(e){return!E(e.params[0],n._optionsService.rawOptions.windowOptions)||t(e)}))}},{key:"registerDcsHandler",value:function(e,t){return this._parser.registerDcsHandler(e,new S.DcsHandler(t))}},{key:"registerEscHandler",value:function(e,t){return this._parser.registerEscHandler(e,t)}},{key:"registerOscHandler",value:function(e,t){return this._parser.registerOscHandler(e,new C.OscHandler(t))}},{key:"bell",value:function(){return this._onRequestBell.fire(),!0}},{key:"lineFeed",value:function(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}},{key:"carriageReturn",value:function(){return this._activeBuffer.x=0,!0}},{key:"backspace",value:function(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===e?void 0:e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);t.hasWidth(this._activeBuffer.x)&&!t.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}},{key:"tab",value:function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}},{key:"shiftOut",value:function(){return this._charsetService.setgLevel(1),!0}},{key:"shiftIn",value:function(){return this._charsetService.setgLevel(0),!0}},{key:"_restrictCursor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._bufferService.cols-1;this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}},{key:"_setCursor",value:function(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}},{key:"_moveCursor",value:function(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}},{key:"cursorUp",value:function(e){var t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}},{key:"cursorDown",value:function(e){var t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}},{key:"cursorForward",value:function(e){return this._moveCursor(e.params[0]||1,0),!0}},{key:"cursorBackward",value:function(e){return this._moveCursor(-(e.params[0]||1),0),!0}},{key:"cursorNextLine",value:function(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}},{key:"cursorPrecedingLine",value:function(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}},{key:"cursorCharAbsolute",value:function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}},{key:"cursorPosition",value:function(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}},{key:"charPosAbsolute",value:function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}},{key:"hPositionRelative",value:function(e){return this._moveCursor(e.params[0]||1,0),!0}},{key:"linePosAbsolute",value:function(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}},{key:"vPositionRelative",value:function(e){return this._moveCursor(0,e.params[0]||1),!0}},{key:"hVPosition",value:function(e){return this.cursorPosition(e),!0}},{key:"tabClear",value:function(e){var t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0}},{key:"cursorForwardTab",value:function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}},{key:"cursorBackwardTab",value:function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}},{key:"selectProtected",value:function(e){var t=e.params[0];return 1===t&&(this._curAttrData.bg|=536870912),2!==t&&0!==t||(this._curAttrData.bg&=-536870913),!0}},{key:"_eraseInBufferLine",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);o.replaceCells(t,n,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),r),i&&(o.isWrapped=!1)}},{key:"_resetBufferLine",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n&&(n.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),n.isWrapped=!1)}},{key:"eraseInDisplay",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(t=this._activeBuffer.y,this._dirtyRowTracker.markDirty(t),this._eraseInBufferLine(t++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,n);t<this._bufferService.rows;t++)this._resetBufferLine(t,n);this._dirtyRowTracker.markDirty(t);break;case 1:for(t=this._activeBuffer.y,this._dirtyRowTracker.markDirty(t),this._eraseInBufferLine(t,0,this._activeBuffer.x+1,!0,n),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t,n);this._dirtyRowTracker.markDirty(0);break;case 2:for(t=this._bufferService.rows,this._dirtyRowTracker.markDirty(t-1);t--;)this._resetBufferLine(t,n);this._dirtyRowTracker.markDirty(0);break;case 3:var i=this._activeBuffer.lines.length-this._bufferService.rows;i>0&&(this._activeBuffer.lines.trimStart(i),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-i,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-i,0),this._onScroll.fire(0))}return!0}},{key:"eraseInLine",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}},{key:"insertLines",value:function(e){this._restrictCursor();var t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var n=this._activeBuffer.ybase+this._activeBuffer.y,i=this._bufferService.rows-1-this._activeBuffer.scrollBottom,r=this._bufferService.rows-1+this._activeBuffer.ybase-i+1;t--;)this._activeBuffer.lines.splice(r-1,1),this._activeBuffer.lines.splice(n,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}},{key:"deleteLines",value:function(e){this._restrictCursor();var t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var n,i=this._activeBuffer.ybase+this._activeBuffer.y;for(n=this._bufferService.rows-1-this._activeBuffer.scrollBottom,n=this._bufferService.rows-1+this._activeBuffer.ybase-n;t--;)this._activeBuffer.lines.splice(i,1),this._activeBuffer.lines.splice(n,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}},{key:"insertChars",value:function(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}},{key:"deleteChars",value:function(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}},{key:"scrollUp",value:function(e){for(var t=e.params[0]||1;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}},{key:"scrollDown",value:function(e){for(var t=e.params[0]||1;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(f.DEFAULT_ATTR_DATA));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}},{key:"scrollLeft",value:function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){var i=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);i.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}},{key:"scrollRight",value:function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){var i=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);i.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}},{key:"insertColumns",value:function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){var i=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);i.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}},{key:"deleteColumns",value:function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){var i=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);i.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}},{key:"eraseChars",value:function(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}},{key:"repeatPrecedingCharacter",value:function(e){if(!this._parser.precedingCodepoint)return!0;for(var t=e.params[0]||1,n=new Uint32Array(t),i=0;i<t;++i)n[i]=this._parser.precedingCodepoint;return this.print(n,0,n.length),!0}},{key:"sendDeviceAttributesPrimary",value:function(e){return e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(a.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(a.C0.ESC+"[?6c")),!0}},{key:"sendDeviceAttributesSecondary",value:function(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(a.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(a.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(a.C0.ESC+"[>83;40003;0c")),!0}},{key:"_is",value:function(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)}},{key:"setMode",value:function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}},{key:"setModePrivate",value:function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,s.DEFAULT_CHARSET),this._charsetService.setgCharset(1,s.DEFAULT_CHARSET),this._charsetService.setgCharset(2,s.DEFAULT_CHARSET),this._charsetService.setgCharset(3,s.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0}},{key:"resetMode",value:function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}},{key:"resetModePrivate",value:function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===e.params[t]&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0}},{key:"requestMode",value:function(e,t){var n,i,r=this._coreService.decPrivateModes,o=this._coreMouseService,s=o.activeProtocol,l=o.activeEncoding,c=this._coreService,u=this._bufferService,d=u.buffers,h=u.cols,f=d.active,p=d.alt,g=this._optionsService.rawOptions,v=function(e){return e?1:2},m=e.params[0];return n=m,i=t?2===m?4:4===m?v(c.modes.insertMode):12===m?3:20===m?v(g.convertEol):0:1===m?v(r.applicationCursorKeys):3===m?g.windowOptions.setWinLines?80===h?2:132===h?1:0:0:6===m?v(r.origin):7===m?v(r.wraparound):8===m?3:9===m?v("X10"===s):12===m?v(g.cursorBlink):25===m?v(!c.isCursorHidden):45===m?v(r.reverseWraparound):66===m?v(r.applicationKeypad):67===m?4:1e3===m?v("VT200"===s):1002===m?v("DRAG"===s):1003===m?v("ANY"===s):1004===m?v(r.sendFocus):1005===m?4:1006===m?v("SGR"===l):1015===m?4:1016===m?v("SGR_PIXELS"===l):1048===m?1:47===m||1047===m||1049===m?v(f===p):2004===m?v(r.bracketedPasteMode):0,c.triggerDataEvent("".concat(a.C0.ESC,"[").concat(t?"":"?").concat(n,";").concat(i,"$y")),!0}},{key:"_updateAttrColor",value:function(e,t,n,i,r){return 2===t?(e|=50331648,e&=-16777216,e|=_.AttributeData.fromColorRGB([n,i,r])):5===t&&(e&=-50331904,e|=33554432|255&n),e}},{key:"_extractColor",value:function(e,t,n){var i=[0,0,-1,0,0,0],r=0,o=0;do{if(i[o+r]=e.params[t+o],e.hasSubParams(t+o)){var a=e.getSubParams(t+o),s=0;do{5===i[1]&&(r=1),i[o+s+1+r]=a[s]}while(++s<a.length&&s+o+1+r<i.length);break}if(5===i[1]&&o+r>=2||2===i[1]&&o+r>=5)break;i[1]&&(r=1)}while(++o+t<e.length&&o+r<i.length);for(var l=2;l<i.length;++l)-1===i[l]&&(i[l]=0);switch(i[0]){case 38:n.fg=this._updateAttrColor(n.fg,i[1],i[3],i[4],i[5]);break;case 48:n.bg=this._updateAttrColor(n.bg,i[1],i[3],i[4],i[5]);break;case 58:n.extended=n.extended.clone(),n.extended.underlineColor=this._updateAttrColor(n.extended.underlineColor,i[1],i[3],i[4],i[5])}return o}},{key:"_processUnderline",value:function(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()}},{key:"_processSGR0",value:function(e){e.fg=f.DEFAULT_ATTR_DATA.fg,e.bg=f.DEFAULT_ATTR_DATA.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}},{key:"charAttributes",value:function(e){if(1===e.length&&0===e.params[0])return this._processSGR0(this._curAttrData),!0;for(var t,n=e.length,i=this._curAttrData,r=0;r<n;r++)(t=e.params[r])>=30&&t<=37?(i.fg&=-50331904,i.fg|=16777216|t-30):t>=40&&t<=47?(i.bg&=-50331904,i.bg|=16777216|t-40):t>=90&&t<=97?(i.fg&=-50331904,i.fg|=16777224|t-90):t>=100&&t<=107?(i.bg&=-50331904,i.bg|=16777224|t-100):0===t?this._processSGR0(i):1===t?i.fg|=134217728:3===t?i.bg|=67108864:4===t?(i.fg|=268435456,this._processUnderline(e.hasSubParams(r)?e.getSubParams(r)[0]:1,i)):5===t?i.fg|=536870912:7===t?i.fg|=67108864:8===t?i.fg|=1073741824:9===t?i.fg|=2147483648:2===t?i.bg|=134217728:21===t?this._processUnderline(2,i):22===t?(i.fg&=-134217729,i.bg&=-134217729):23===t?i.bg&=-67108865:24===t?(i.fg&=-268435457,this._processUnderline(0,i)):25===t?i.fg&=-536870913:27===t?i.fg&=-67108865:28===t?i.fg&=-1073741825:29===t?i.fg&=2147483647:39===t?(i.fg&=-67108864,i.fg|=16777215&f.DEFAULT_ATTR_DATA.fg):49===t?(i.bg&=-67108864,i.bg|=16777215&f.DEFAULT_ATTR_DATA.bg):38===t||48===t||58===t?r+=this._extractColor(e,r,i):53===t?i.bg|=1073741824:55===t?i.bg&=-1073741825:59===t?(i.extended=i.extended.clone(),i.extended.underlineColor=-1,i.updateExtended()):100===t?(i.fg&=-67108864,i.fg|=16777215&f.DEFAULT_ATTR_DATA.fg,i.bg&=-67108864,i.bg|=16777215&f.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t);return!0}},{key:"deviceStatus",value:function(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent("".concat(a.C0.ESC,"[0n"));break;case 6:var t=this._activeBuffer.y+1,n=this._activeBuffer.x+1;this._coreService.triggerDataEvent("".concat(a.C0.ESC,"[").concat(t,";").concat(n,"R"))}return!0}},{key:"deviceStatusPrivate",value:function(e){if(6===e.params[0]){var t=this._activeBuffer.y+1,n=this._activeBuffer.x+1;this._coreService.triggerDataEvent("".concat(a.C0.ESC,"[?").concat(t,";").concat(n,"R"))}return!0}},{key:"softReset",value:function(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=f.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}},{key:"setCursorStyle",value:function(e){var t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var n=t%2==1;return this._optionsService.options.cursorBlink=n,!0}},{key:"setScrollRegion",value:function(e){var t,n=e.params[0]||1;return(e.length<2||(t=e.params[1])>this._bufferService.rows||0===t)&&(t=this._bufferService.rows),t>n&&(this._activeBuffer.scrollTop=n-1,this._activeBuffer.scrollBottom=t-1,this._setCursor(0,0)),!0}},{key:"windowOptions",value:function(e){if(!E(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;var t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(o.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(o.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent("".concat(a.C0.ESC,"[8;").concat(this._bufferService.rows,";").concat(this._bufferService.cols,"t"));break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}},{key:"saveCursor",value:function(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}},{key:"restoreCursor",value:function(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}},{key:"setTitle",value:function(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}},{key:"setIconName",value:function(e){return this._iconName=e,!0}},{key:"setOrReportIndexedColor",value:function(e){for(var t=[],n=e.split(";");n.length>1;){var i=n.shift(),r=n.shift();if(/^\d+$/.exec(i)){var o=parseInt(i);if(0<=o&&o<256)if("?"===r)t.push({type:0,index:o});else{var a=(0,w.parseColor)(r);a&&t.push({type:1,index:o,color:a})}}}return t.length&&this._onColor.fire(t),!0}},{key:"setHyperlink",value:function(e){var t=e.split(";");return!(t.length<2)&&(t[1]?this._createHyperlink(t[0],t[1]):!t[0]&&this._finishHyperlink())}},{key:"_createHyperlink",value:function(e,t){this._getCurrentLinkId()&&this._finishHyperlink();var n,i=e.split(":"),r=i.findIndex((function(e){return e.startsWith("id=")}));return-1!==r&&(n=i[r].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:n,uri:t}),this._curAttrData.updateExtended(),!0}},{key:"_finishHyperlink",value:function(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}},{key:"_setOrReportSpecialColor",value:function(e,t){for(var n=e.split(";"),i=0;i<n.length&&!(t>=this._specialColors.length);++i,++t)if("?"===n[i])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{var r=(0,w.parseColor)(n[i]);r&&this._onColor.fire([{type:1,index:this._specialColors[t],color:r}])}return!0}},{key:"setOrReportFgColor",value:function(e){return this._setOrReportSpecialColor(e,0)}},{key:"setOrReportBgColor",value:function(e){return this._setOrReportSpecialColor(e,1)}},{key:"setOrReportCursorColor",value:function(e){return this._setOrReportSpecialColor(e,2)}},{key:"restoreIndexedColor",value:function(e){if(!e)return this._onColor.fire([{type:2}]),!0;for(var t=[],n=e.split(";"),i=0;i<n.length;++i)if(/^\d+$/.exec(n[i])){var r=parseInt(n[i]);0<=r&&r<256&&t.push({type:2,index:r})}return t.length&&this._onColor.fire(t),!0}},{key:"restoreFgColor",value:function(e){return this._onColor.fire([{type:2,index:256}]),!0}},{key:"restoreBgColor",value:function(e){return this._onColor.fire([{type:2,index:257}]),!0}},{key:"restoreCursorColor",value:function(e){return this._onColor.fire([{type:2,index:258}]),!0}},{key:"nextLine",value:function(){return this._activeBuffer.x=0,this.index(),!0}},{key:"keypadApplicationMode",value:function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}},{key:"keypadNumericMode",value:function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}},{key:"selectDefaultCharset",value:function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,s.DEFAULT_CHARSET),!0}},{key:"selectCharset",value:function(e){return 2!==e.length?(this.selectDefaultCharset(),!0):("/"===e[0]||this._charsetService.setgCharset(k[e[0]],s.CHARSETS[e[1]]||s.DEFAULT_CHARSET),!0)}},{key:"index",value:function(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}},{key:"tabSet",value:function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}},{key:"reverseIndex",value:function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}},{key:"fullReset",value:function(){return this._parser.reset(),this._onRequestReset.fire(),!0}},{key:"reset",value:function(){this._curAttrData=f.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=f.DEFAULT_ATTR_DATA.clone()}},{key:"_eraseAttrData",value:function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}},{key:"setgLevel",value:function(e){return this._charsetService.setgLevel(e),!0}},{key:"screenAlignmentPattern",value:function(){var e=new y.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(var t=0;t<this._bufferService.rows;++t){var n=this._activeBuffer.ybase+this._activeBuffer.y+t,i=this._activeBuffer.lines.get(n);i&&(i.fill(e),i.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}},{key:"requestStatusString",value:function(e,t){var n=this,i=this._bufferService.buffer,r=this._optionsService.rawOptions;return function(e){return n._coreService.triggerDataEvent("".concat(a.C0.ESC).concat(e).concat(a.C0.ESC,"\\")),!0}('"q'===e?"P1$r".concat(this._curAttrData.isProtected()?1:0,'"q'):'"p'===e?'P1$r61;1"p':"r"===e?"P1$r".concat(i.scrollTop+1,";").concat(i.scrollBottom+1,"r"):"m"===e?"P1$r0m":" q"===e?"P1$r".concat({block:2,underline:4,bar:6}[r.cursorStyle]-(r.cursorBlink?1:0)," q"):"P0$r")}},{key:"markRangeDirty",value:function(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}}]),n}(c.Disposable);t.InputHandler=N;var I=function(){function e(t){d(this,e),this._bufferService=t,this.clearRange()}return h(e,[{key:"clearRange",value:function(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}},{key:"markDirty",value:function(e){e<this.start?this.start=e:e>this.end&&(this.end=e)}},{key:"markRangeDirty",value:function(e,t){e>t&&(T=e,e=t,t=T),e<this.start&&(this.start=e),t>this.end&&(this.end=t)}},{key:"markAllDirty",value:function(){this.markRangeDirty(0,this._bufferService.rows-1)}}]),e}();I=i([r(0,b.IBufferService)],I)},844:function(e,t){function n(e){var t,n=u(e);try{for(n.s();!(t=n.n()).done;)t.value.dispose()}catch(i){n.e(i)}finally{n.f()}e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.Disposable=void 0,t.Disposable=function(){function e(){d(this,e),this._disposables=[],this._isDisposed=!1}return h(e,[{key:"dispose",value:function(){this._isDisposed=!0;var e,t=u(this._disposables);try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(n){t.e(n)}finally{t.f()}this._disposables.length=0}},{key:"register",value:function(e){return this._disposables.push(e),e}},{key:"unregister",value:function(e){var t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)}}]),e}(),t.toDisposable=function(e){return{dispose:e}},t.disposeArray=n,t.getDisposeArrayDisposable=function(e){return{dispose:function(){return n(e)}}}},1505:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;var n=function(){function e(){d(this,e),this._data={}}return h(e,[{key:"set",value:function(e,t,n){this._data[e]||(this._data[e]={}),this._data[e][t]=n}},{key:"get",value:function(e,t){return this._data[e]?this._data[e][t]:void 0}},{key:"clear",value:function(){this._data={}}}]),e}();t.TwoKeyMap=n,t.FourKeyMap=function(){function e(){d(this,e),this._data=new n}return h(e,[{key:"set",value:function(e,t,i,r,o){this._data.get(e,t)||this._data.set(e,t,new n),this._data.get(e,t).set(i,r,o)}},{key:"get",value:function(e,t,n,i){var r;return null===(r=this._data.get(e,t))||void 0===r?void 0:r.get(n,i)}},{key:"clear",value:function(){this._data.clear()}}]),e}()},6114:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode="undefined"==typeof navigator;var n=t.isNode?"node":navigator.userAgent,i=t.isNode?"node":navigator.platform;t.isFirefox=n.includes("Firefox"),t.isLegacyEdge=n.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(n),t.getSafariVersion=function(){if(!t.isSafari)return 0;var e=n.match(/Version\/(\d+)/);return null===e||e.length<2?0:parseInt(e[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(i),t.isIpad="iPad"===i,t.isIphone="iPhone"===i,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(i),t.isLinux=i.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(n)},6106:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SortedList=void 0;var n=0;t.SortedList=function(){function e(t){d(this,e),this._getKey=t,this._array=[]}return h(e,[{key:"clear",value:function(){this._array.length=0}},{key:"insert",value:function(e){0!==this._array.length?(n=this._search(this._getKey(e),0,this._array.length-1),this._array.splice(n,0,e)):this._array.push(e)}},{key:"delete",value:function(e){if(0===this._array.length)return!1;var t=this._getKey(e);if(void 0===t)return!1;if(-1===(n=this._search(t,0,this._array.length-1)))return!1;if(this._getKey(this._array[n])!==t)return!1;do{if(this._array[n]===e)return this._array.splice(n,1),!0}while(++n<this._array.length&&this._getKey(this._array[n])===t);return!1}},{key:"getKeyIterator",value:r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0===this._array.length||(n=this._search(t,0,this._array.length-1))<0||n>=this._array.length||this._getKey(this._array[n])!==t){e.next=4;break}case 1:return e.next=3,this._array[n];case 3:if(++n<this._array.length&&this._getKey(this._array[n])===t){e.next=1;break}case 4:case"end":return e.stop()}}),e,this)}))},{key:"forEachByKey",value:function(e,t){if(0!==this._array.length&&!((n=this._search(e,0,this._array.length-1))<0||n>=this._array.length)&&this._getKey(this._array[n])===e)do{t(this._array[n])}while(++n<this._array.length&&this._getKey(this._array[n])===e)}},{key:"values",value:function(){return this._array.values()}},{key:"_search",value:function(e,t,n){if(n<t)return t;var i=Math.floor((t+n)/2),r=this._getKey(this._array[i]);if(r>e)return this._search(e,t,i-1);if(r<e)return this._search(e,i+1,n);for(;i>0&&this._getKey(this._array[i-1])===e;)i--;return i}}]),e}()},7226:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;var i=n(6114),r=function(){function e(){d(this,e),this._tasks=[],this._i=0}return h(e,[{key:"enqueue",value:function(e){this._tasks.push(e),this._start()}},{key:"flush",value:function(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}},{key:"clear",value:function(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}},{key:"_start",value:function(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}},{key:"_process",value:function(e){this._idleCallback=void 0;for(var t=0,n=0,i=e.timeRemaining(),r=0;this._i<this._tasks.length;){if(t=Date.now(),this._tasks[this._i]()||this._i++,t=Math.max(1,Date.now()-t),1.5*(n=Math.max(t,n))>(r=e.timeRemaining()))return i-t<-20&&console.warn("task queue exceeded allotted deadline by ".concat(Math.abs(Math.round(i-t)),"ms")),void this._start();i=r}this.clear()}}]),e}(),o=function(e){p(n,e);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n,[{key:"_requestCallback",value:function(e){var t=this;return setTimeout((function(){return e(t._createDeadline(16))}))}},{key:"_cancelCallback",value:function(e){clearTimeout(e)}},{key:"_createDeadline",value:function(e){var t=Date.now()+e;return{timeRemaining:function(){return Math.max(0,t-Date.now())}}}}]),n}(r);t.PriorityTaskQueue=o,t.IdleTaskQueue=!i.isNode&&"requestIdleCallback"in window?function(e){p(n,e);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n,[{key:"_requestCallback",value:function(e){return requestIdleCallback(e)}},{key:"_cancelCallback",value:function(e){cancelIdleCallback(e)}}]),n}(r):o,t.DebouncedIdleTask=function(){function e(){d(this,e),this._queue=new t.IdleTaskQueue}return h(e,[{key:"set",value:function(e){this._queue.clear(),this._queue.enqueue(e)}},{key:"flush",value:function(){this._queue.flush()}}]),e}()},9282:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;var i=n(643);t.updateWindowsModeWrappedState=function(e){var t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),n=null==t?void 0:t.get(e.cols-1),r=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);r&&n&&(r.isWrapped=n[i.CHAR_DATA_CODE_INDEX]!==i.NULL_CELL_CODE&&n[i.CHAR_DATA_CODE_INDEX]!==i.WHITESPACE_CELL_CODE)}},3734:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;var n=function(){function e(){d(this,e),this.fg=0,this.bg=0,this.extended=new i}return h(e,[{key:"clone",value:function(){var t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}},{key:"isInverse",value:function(){return 67108864&this.fg}},{key:"isBold",value:function(){return 134217728&this.fg}},{key:"isUnderline",value:function(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}},{key:"isBlink",value:function(){return 536870912&this.fg}},{key:"isInvisible",value:function(){return 1073741824&this.fg}},{key:"isItalic",value:function(){return 67108864&this.bg}},{key:"isDim",value:function(){return 134217728&this.bg}},{key:"isStrikethrough",value:function(){return 2147483648&this.fg}},{key:"isProtected",value:function(){return 536870912&this.bg}},{key:"isOverline",value:function(){return 1073741824&this.bg}},{key:"getFgColorMode",value:function(){return 50331648&this.fg}},{key:"getBgColorMode",value:function(){return 50331648&this.bg}},{key:"isFgRGB",value:function(){return 50331648==(50331648&this.fg)}},{key:"isBgRGB",value:function(){return 50331648==(50331648&this.bg)}},{key:"isFgPalette",value:function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}},{key:"isBgPalette",value:function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}},{key:"isFgDefault",value:function(){return 0==(50331648&this.fg)}},{key:"isBgDefault",value:function(){return 0==(50331648&this.bg)}},{key:"isAttributeDefault",value:function(){return 0===this.fg&&0===this.bg}},{key:"getFgColor",value:function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}},{key:"getBgColor",value:function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}},{key:"hasExtendedAttrs",value:function(){return 268435456&this.bg}},{key:"updateExtended",value:function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}},{key:"getUnderlineColor",value:function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}},{key:"getUnderlineColorMode",value:function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}},{key:"isUnderlineColorRGB",value:function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()}},{key:"isUnderlineColorPalette",value:function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}},{key:"isUnderlineColorDefault",value:function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()}},{key:"getUnderlineStyle",value:function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}],[{key:"toColorRGB",value:function(e){return[e>>>16&255,e>>>8&255,255&e]}},{key:"fromColorRGB",value:function(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}}]),e}();t.AttributeData=n;var i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this._ext=0,this._urlId=0,this._ext=t,this._urlId=n}return h(e,[{key:"ext",get:function(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext},set:function(e){this._ext=e}},{key:"underlineStyle",get:function(){return this._urlId?5:(469762048&this._ext)>>26},set:function(e){this._ext&=-469762049,this._ext|=e<<26&469762048}},{key:"underlineColor",get:function(){return 67108863&this._ext},set:function(e){this._ext&=-67108864,this._ext|=67108863&e}},{key:"urlId",get:function(){return this._urlId},set:function(e){this._urlId=e}},{key:"clone",value:function(){return new e(this._ext,this._urlId)}},{key:"isEmpty",value:function(){return 0===this.underlineStyle&&0===this._urlId}}]),e}();t.ExtendedAttrs=i},9092:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Buffer=t.MAX_BUFFER_SIZE=void 0;var i=n(6349),r=n(8437),o=n(511),a=n(643),s=n(4634),l=n(4863),c=n(7116),u=n(3734),f=n(7226);t.MAX_BUFFER_SIZE=4294967295,t.Buffer=function(){function e(t,n,s){d(this,e),this._hasScrollback=t,this._optionsService=n,this._bufferService=s,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=r.DEFAULT_ATTR_DATA.clone(),this.savedCharset=c.DEFAULT_CHARSET,this.markers=[],this._nullCell=o.CellData.fromCharData([0,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),this._whitespaceCell=o.CellData.fromCharData([0,a.WHITESPACE_CELL_CHAR,a.WHITESPACE_CELL_WIDTH,a.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new f.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new i.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return h(e,[{key:"getNullCell",value:function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new u.ExtendedAttrs),this._nullCell}},{key:"getWhitespaceCell",value:function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new u.ExtendedAttrs),this._whitespaceCell}},{key:"getBlankLine",value:function(e,t){return new r.BufferLine(this._bufferService.cols,this.getNullCell(e),t)}},{key:"hasScrollback",get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows}},{key:"isCursorInViewport",get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows}},{key:"_getCorrectBufferLength",value:function(e){if(!this._hasScrollback)return e;var n=e+this._optionsService.rawOptions.scrollback;return n>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:n}},{key:"fillViewportRows",value:function(e){if(0===this.lines.length){void 0===e&&(e=r.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}}},{key:"clear",value:function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new i.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}},{key:"resize",value:function(e,t){var n=this,i=this.getNullCell(r.DEFAULT_ATTR_DATA),o=0,a=this._getCorrectBufferLength(t);if(a>this.lines.maxLength&&(this.lines.maxLength=a),this.lines.length>0){if(this._cols<e)for(var s=0;s<this.lines.length;s++)o+=+this.lines.get(s).resize(e,i);var l=0;if(this._rows<t)for(var c=this._rows;c<t;c++)this.lines.length<t+this.ybase&&(this._optionsService.rawOptions.windowsMode||void 0!==this._optionsService.rawOptions.windowsPty.backend||void 0!==this._optionsService.rawOptions.windowsPty.buildNumber?this.lines.push(new r.BufferLine(e,i)):this.ybase>0&&this.lines.length<=this.ybase+this.y+l+1?(this.ybase--,l++,this.ydisp>0&&this.ydisp--):this.lines.push(new r.BufferLine(e,i)));else for(var u=this._rows;u>t;u--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(a<this.lines.maxLength){var d=this.lines.length-a;d>0&&(this.lines.trimStart(d),this.ybase=Math.max(this.ybase-d,0),this.ydisp=Math.max(this.ydisp-d,0),this.savedY=Math.max(this.savedY-d,0)),this.lines.maxLength=a}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),l&&(this.y+=l),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(var h=0;h<this.lines.length;h++)o+=+this.lines.get(h).resize(e,i);this._cols=e,this._rows=t,this._memoryCleanupQueue.clear(),o>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((function(){return n._batchedMemoryCleanup()})))}},{key:"_batchedMemoryCleanup",value:function(){var e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);for(var t=0;this._memoryCleanupPosition<this.lines.length;)if((t+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory())>100)return!0;return e}},{key:"_isReflowEnabled",get:function(){var e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&"conpty"===e.backend&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}},{key:"_reflow",value:function(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}},{key:"_reflowLarger",value:function(e,t){var n=(0,s.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(r.DEFAULT_ATTR_DATA));if(n.length>0){var i=(0,s.reflowLargerCreateNewLayout)(this.lines,n);(0,s.reflowLargerApplyNewLayout)(this.lines,i.layout),this._reflowLargerAdjustViewport(e,t,i.countRemoved)}}},{key:"_reflowLargerAdjustViewport",value:function(e,t,n){for(var i=this.getNullCell(r.DEFAULT_ATTR_DATA),o=n;o-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new r.BufferLine(e,i))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-n,0)}},{key:"_reflowSmaller",value:function(e,t){for(var n=this.getNullCell(r.DEFAULT_ATTR_DATA),i=[],o=0,a=this.lines.length-1;a>=0;a--){var l=this.lines.get(a);if(!(!l||!l.isWrapped&&l.getTrimmedLength()<=e)){for(var c=[l];l.isWrapped&&a>0;)l=this.lines.get(--a),c.unshift(l);var u=this.ybase+this.y;if(!(u>=a&&u<a+c.length)){var d=c[c.length-1].getTrimmedLength(),h=(0,s.reflowSmallerGetNewLineLengths)(c,this._cols,e),f=h.length-c.length,p=void 0;p=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+f):Math.max(0,this.lines.length-this.lines.maxLength+f);for(var g=[],v=0;v<f;v++){var m=this.getBlankLine(r.DEFAULT_ATTR_DATA,!0);g.push(m)}g.length>0&&(i.push({start:a+c.length+o,newLines:g}),o+=g.length),c.push.apply(c,g);var y=h.length-1,_=h[y];0===_&&(_=h[--y]);for(var b=c.length-f-1,C=d;b>=0;){var S=Math.min(C,_);if(void 0===c[y])break;if(c[y].copyCellsFrom(c[b],C-S,_-S,S,!0),0===(_-=S)&&(_=h[--y]),0===(C-=S)){b--;var w=Math.max(b,0);C=(0,s.getWrappedLineTrimmedLength)(c,w,this._cols)}}for(var k=0;k<c.length;k++)h[k]<e&&c[k].setCell(h[k],n);for(var x=f-p;x-- >0;)0===this.ybase?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+o)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+f,this.ybase+t-1)}}}if(i.length>0){for(var E=[],T=[],N=0;N<this.lines.length;N++)T.push(this.lines.get(N));var I=this.lines.length,D=I-1,L=0,O=i[L];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+o);for(var R=0,A=Math.min(this.lines.maxLength-1,I+o-1);A>=0;A--)if(O&&O.start>D+R){for(var M=O.newLines.length-1;M>=0;M--)this.lines.set(A--,O.newLines[M]);A++,E.push({index:D+1,amount:O.newLines.length}),R+=O.newLines.length,O=i[++L]}else this.lines.set(A,T[D--]);for(var P=0,Z=E.length-1;Z>=0;Z--)E[Z].index+=P,this.lines.onInsertEmitter.fire(E[Z]),P+=E[Z].amount;var F=Math.max(0,I+o-this.lines.maxLength);F>0&&this.lines.onTrimEmitter.fire(F)}}},{key:"translateBufferLineToString",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3?arguments[3]:void 0,r=this.lines.get(e);return r?r.translateToString(t,n,i):""}},{key:"getWrappedRangeForLine",value:function(e){for(var t=e,n=e;t>0&&this.lines.get(t).isWrapped;)t--;for(;n+1<this.lines.length&&this.lines.get(n+1).isWrapped;)n++;return{first:t,last:n}}},{key:"setupTabStops",value:function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0}},{key:"prevStop",value:function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e}},{key:"nextStop",value:function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e}},{key:"clearMarkers",value:function(e){this._isClearing=!0;for(var t=0;t<this.markers.length;t++)this.markers[t].line===e&&(this.markers[t].dispose(),this.markers.splice(t--,1));this._isClearing=!1}},{key:"clearAllMarkers",value:function(){this._isClearing=!0;for(var e=0;e<this.markers.length;e++)this.markers[e].dispose(),this.markers.splice(e--,1);this._isClearing=!1}},{key:"addMarker",value:function(e){var t=this,n=new l.Marker(e);return this.markers.push(n),n.register(this.lines.onTrim((function(e){n.line-=e,n.line<0&&n.dispose()}))),n.register(this.lines.onInsert((function(e){n.line>=e.index&&(n.line+=e.amount)}))),n.register(this.lines.onDelete((function(e){n.line>=e.index&&n.line<e.index+e.amount&&n.dispose(),n.line>e.index&&(n.line-=e.amount)}))),n.register(n.onDispose((function(){return t._removeMarker(n)}))),n}},{key:"_removeMarker",value:function(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}}]),e}()},8437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;var i=n(482),r=n(643),o=n(511),a=n(3734);t.DEFAULT_ATTR_DATA=Object.freeze(new a.AttributeData);var s=0,l=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];d(this,e),this.isWrapped=i,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*t);for(var a=n||o.CellData.fromCharData([0,r.NULL_CELL_CHAR,r.NULL_CELL_WIDTH,r.NULL_CELL_CODE]),s=0;s<t;++s)this.setCell(s,a);this.length=t}return h(e,[{key:"get",value:function(e){var t=this._data[3*e+0],n=2097151&t;return[this._data[3*e+1],2097152&t?this._combined[e]:n?(0,i.stringFromCodePoint)(n):"",t>>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):n]}},{key:"set",value:function(e,t){this._data[3*e+1]=t[r.CHAR_DATA_ATTR_INDEX],t[r.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[r.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[r.CHAR_DATA_WIDTH_INDEX]<<22}},{key:"getWidth",value:function(e){return this._data[3*e+0]>>22}},{key:"hasWidth",value:function(e){return 12582912&this._data[3*e+0]}},{key:"getFg",value:function(e){return this._data[3*e+1]}},{key:"getBg",value:function(e){return this._data[3*e+2]}},{key:"hasContent",value:function(e){return 4194303&this._data[3*e+0]}},{key:"getCodePoint",value:function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t}},{key:"isCombined",value:function(e){return 2097152&this._data[3*e+0]}},{key:"getString",value:function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,i.stringFromCodePoint)(2097151&t):""}},{key:"isProtected",value:function(e){return 536870912&this._data[3*e+2]}},{key:"loadCell",value:function(e,t){return s=3*e,t.content=this._data[s+0],t.fg=this._data[s+1],t.bg=this._data[s+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t}},{key:"setCell",value:function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg}},{key:"setCellFromCodePoint",value:function(e,t,n,i,r,o){268435456&r&&(this._extendedAttrs[e]=o),this._data[3*e+0]=t|n<<22,this._data[3*e+1]=i,this._data[3*e+2]=r}},{key:"addCodepointToCell",value:function(e,t){var n=this._data[3*e+0];2097152&n?this._combined[e]+=(0,i.stringFromCodePoint)(t):(2097151&n?(this._combined[e]=(0,i.stringFromCodePoint)(2097151&n)+(0,i.stringFromCodePoint)(t),n&=-2097152,n|=2097152):n=t|1<<22,this._data[3*e+0]=n)}},{key:"insertCells",value:function(e,t,n,i){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs),t<this.length-e){for(var r=new o.CellData,s=this.length-e-t-1;s>=0;--s)this.setCell(e+t+s,this.loadCell(e+s,r));for(var l=0;l<t;++l)this.setCell(e+l,n)}else for(var c=e;c<this.length;++c)this.setCell(c,n);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs)}},{key:"deleteCells",value:function(e,t,n,i){if(e%=this.length,t<this.length-e){for(var r=new o.CellData,s=0;s<this.length-e-t;++s)this.setCell(e+s,this.loadCell(e+t+s,r));for(var l=this.length-t;l<this.length;++l)this.setCell(l,n)}else for(var c=e;c<this.length;++c)this.setCell(c,n);e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs),0!==this.getWidth(e)||this.hasContent(e)||this.setCellFromCodePoint(e,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs)}},{key:"replaceCells",value:function(e,t,n,i){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])for(e&&2===this.getWidth(e-1)&&!this.isProtected(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&!this.isProtected(t)&&this.setCellFromCodePoint(t,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs);e<t&&e<this.length;)this.isProtected(e)||this.setCell(e,n),e++;else for(e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs);e<t&&e<this.length;)this.setCell(e++,n)}},{key:"resize",value:function(e,t){if(e===this.length)return 4*this._data.length*2<this._data.buffer.byteLength;var n=3*e;if(e>this.length){if(this._data.buffer.byteLength>=4*n)this._data=new Uint32Array(this._data.buffer,0,n);else{var i=new Uint32Array(n);i.set(this._data),this._data=i}for(var r=this.length;r<e;++r)this.setCell(r,t)}else{this._data=this._data.subarray(0,n);for(var o=Object.keys(this._combined),a=0;a<o.length;a++){var s=parseInt(o[a],10);s>=e&&delete this._combined[s]}for(var l=Object.keys(this._extendedAttrs),c=0;c<l.length;c++){var u=parseInt(l[c],10);u>=e&&delete this._extendedAttrs[u]}}return this.length=e,4*n*2<this._data.buffer.byteLength}},{key:"cleanupMemory",value:function(){if(4*this._data.length*2<this._data.buffer.byteLength){var e=new Uint32Array(this._data.length);return e.set(this._data),this._data=e,1}return 0}},{key:"fill",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])for(var t=0;t<this.length;++t)this.isProtected(t)||this.setCell(t,e);else{this._combined={},this._extendedAttrs={};for(var n=0;n<this.length;++n)this.setCell(n,e)}}},{key:"copyFrom",value:function(e){for(var t in this.length!==e.length?this._data=new Uint32Array(e._data):this._data.set(e._data),this.length=e.length,this._combined={},e._combined)this._combined[t]=e._combined[t];for(var n in this._extendedAttrs={},e._extendedAttrs)this._extendedAttrs[n]=e._extendedAttrs[n];this.isWrapped=e.isWrapped}},{key:"clone",value:function(){var t=new e(0);for(var n in t._data=new Uint32Array(this._data),t.length=this.length,this._combined)t._combined[n]=this._combined[n];for(var i in this._extendedAttrs)t._extendedAttrs[i]=this._extendedAttrs[i];return t.isWrapped=this.isWrapped,t}},{key:"getTrimmedLength",value:function(){for(var e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}},{key:"copyCellsFrom",value:function(e,t,n,i,r){var o=e._data;if(r)for(var a=i-1;a>=0;a--){for(var s=0;s<3;s++)this._data[3*(n+a)+s]=o[3*(t+a)+s];268435456&o[3*(t+a)+2]&&(this._extendedAttrs[n+a]=e._extendedAttrs[t+a])}else for(var l=0;l<i;l++){for(var c=0;c<3;c++)this._data[3*(n+l)+c]=o[3*(t+l)+c];268435456&o[3*(t+l)+2]&&(this._extendedAttrs[n+l]=e._extendedAttrs[t+l])}for(var u=Object.keys(e._combined),d=0;d<u.length;d++){var h=parseInt(u[d],10);h>=t&&(this._combined[h-t+n]=e._combined[h])}}},{key:"translateToString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.length;e&&(n=Math.min(n,this.getTrimmedLength()));for(var o="";t<n;){var a=this._data[3*t+0],s=2097151&a;o+=2097152&a?this._combined[t]:s?(0,i.stringFromCodePoint)(s):r.WHITESPACE_CELL_CHAR,t+=a>>22||1}return o}}]),e}();t.BufferLine=l},4841:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error("Buffer range end (".concat(e.end.x,", ").concat(e.end.y,") cannot be before start (").concat(e.start.x,", ").concat(e.start.y,")"));return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:function(e,t){function n(e,t,n){if(t===e.length-1)return e[t].getTrimmedLength();var i=!e[t].hasContent(n-1)&&1===e[t].getWidth(n-1),r=2===e[t+1].getWidth(0);return i&&r?n-1:n}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,i,r,o){for(var a=[],s=0;s<e.length-1;s++){var l=s,c=e.get(++l);if(c.isWrapped){for(var u=[e.get(s)];l<e.length&&c.isWrapped;)u.push(c),c=e.get(++l);if(r>=s&&r<l)s+=u.length-1;else{for(var d=0,h=n(u,d,t),f=1,p=0;f<u.length;){var g=n(u,f,t),v=g-p,m=i-h,y=Math.min(v,m);u[d].copyCellsFrom(u[f],p,h,y,!1),(h+=y)===i&&(d++,h=0),(p+=y)===g&&(f++,p=0),0===h&&0!==d&&2===u[d-1].getWidth(i-1)&&(u[d].copyCellsFrom(u[d-1],i-1,h++,1,!1),u[d-1].setCell(i-1,o))}u[d].replaceCells(h,i,o);for(var _=0,b=u.length-1;b>0&&(b>d||0===u[b].getTrimmedLength());b--)_++;_>0&&(a.push(s+u.length-_),a.push(_)),s+=u.length-1}}}return a},t.reflowLargerCreateNewLayout=function(e,t){for(var n=[],i=0,r=t[i],o=0,a=0;a<e.length;a++)if(r===a){var s=t[++i];e.onDeleteEmitter.fire({index:a-o,amount:s}),a+=s-1,o+=s,r=t[++i]}else n.push(a);return{layout:n,countRemoved:o}},t.reflowLargerApplyNewLayout=function(e,t){for(var n=[],i=0;i<t.length;i++)n.push(e.get(t[i]));for(var r=0;r<n.length;r++)e.set(r,n[r]);e.length=t.length},t.reflowSmallerGetNewLineLengths=function(e,t,i){for(var r=[],o=e.map((function(i,r){return n(e,r,t)})).reduce((function(e,t){return e+t})),a=0,s=0,l=0;l<o;){if(o-l<i){r.push(o-l);break}a+=i;var c=n(e,s,t);a>c&&(a-=c,s++);var u=2===e[s].getWidth(a-1);u&&a--;var d=u?i-1:i;r.push(d),l+=d}return r},t.getWrappedLineTrimmedLength=n},5295:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;var i=n(9092),r=n(8460),o=function(e){p(n,e);var t=g(n);function n(e,i){var o;return d(this,n),(o=t.call(this))._optionsService=e,o._bufferService=i,o._onBufferActivate=o.register(new r.EventEmitter),o.onBufferActivate=o._onBufferActivate.event,o.reset(),o.register(o._optionsService.onSpecificOptionChange("scrollback",(function(){return o.resize(o._bufferService.cols,o._bufferService.rows)}))),o.register(o._optionsService.onSpecificOptionChange("tabStopWidth",(function(){return o.setupTabStops()}))),o}return h(n,[{key:"reset",value:function(){this._normal=new i.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new i.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}},{key:"alt",get:function(){return this._alt}},{key:"active",get:function(){return this._activeBuffer}},{key:"normal",get:function(){return this._normal}},{key:"activateNormalBuffer",value:function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}},{key:"activateAltBuffer",value:function(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}},{key:"resize",value:function(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}},{key:"setupTabStops",value:function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}}]),n}(n(844).Disposable);t.BufferSet=o},511:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;var i=n(482),r=n(643),o=n(3734),a=function(e){p(n,e);var t=g(n);function n(){var e;return d(this,n),(e=t.apply(this,arguments)).content=0,e.fg=0,e.bg=0,e.extended=new o.ExtendedAttrs,e.combinedData="",e}return h(n,[{key:"isCombined",value:function(){return 2097152&this.content}},{key:"getWidth",value:function(){return this.content>>22}},{key:"getChars",value:function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,i.stringFromCodePoint)(2097151&this.content):""}},{key:"getCode",value:function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}},{key:"setFromCharData",value:function(e){this.fg=e[r.CHAR_DATA_ATTR_INDEX],this.bg=0;var t=!1;if(e[r.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[r.CHAR_DATA_CHAR_INDEX].length){var n=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=n&&n<=56319){var i=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=i&&i<=57343?this.content=1024*(n-55296)+i-56320+65536|e[r.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[r.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[r.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[r.CHAR_DATA_WIDTH_INDEX]<<22)}},{key:"getAsCharData",value:function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}],[{key:"fromCharData",value:function(e){var t=new n;return t.setFromCharData(e),t}}]),n}(o.AttributeData);t.CellData=a},643:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;var i=n(8460),r=n(844),o=function(){function e(t){d(this,e),this.line=t,this.isDisposed=!1,this._disposables=[],this._id=e._nextId++,this._onDispose=this.register(new i.EventEmitter),this.onDispose=this._onDispose.event}return h(e,[{key:"id",get:function(){return this._id}},{key:"dispose",value:function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,r.disposeArray)(this._disposables),this._disposables.length=0)}},{key:"register",value:function(e){return this._disposables.push(e),e}}]),e}();t.Marker=o,o._nextId=1},7116:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"\u25c6",a:"\u2592",b:"\u2409",c:"\u240c",d:"\u240d",e:"\u240a",f:"\xb0",g:"\xb1",h:"\u2424",i:"\u240b",j:"\u2518",k:"\u2510",l:"\u250c",m:"\u2514",n:"\u253c",o:"\u23ba",p:"\u23bb",q:"\u2500",r:"\u23bc",s:"\u23bd",t:"\u251c",u:"\u2524",v:"\u2534",w:"\u252c",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03c0","|":"\u2260","}":"\xa3","~":"\xb7"},t.CHARSETS.A={"#":"\xa3"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},t.CHARSETS.C=t.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},t.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},t.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},t.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},t.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},t.CHARSETS.E=t.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},t.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},t.CHARSETS.H=t.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},t.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:function(e,t){var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,function(e){e.NUL="\0",e.SOH="\x01",e.STX="\x02",e.ETX="\x03",e.EOT="\x04",e.ENQ="\x05",e.ACK="\x06",e.BEL="\x07",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="\x0e",e.SI="\x0f",e.DLE="\x10",e.DC1="\x11",e.DC2="\x12",e.DC3="\x13",e.DC4="\x14",e.NAK="\x15",e.SYN="\x16",e.ETB="\x17",e.CAN="\x18",e.EM="\x19",e.SUB="\x1a",e.ESC="\x1b",e.FS="\x1c",e.GS="\x1d",e.RS="\x1e",e.US="\x1f",e.SP=" ",e.DEL="\x7f"}(n=t.C0||(t.C0={})),(i=t.C1||(t.C1={})).PAD="\x80",i.HOP="\x81",i.BPH="\x82",i.NBH="\x83",i.IND="\x84",i.NEL="\x85",i.SSA="\x86",i.ESA="\x87",i.HTS="\x88",i.HTJ="\x89",i.VTS="\x8a",i.PLD="\x8b",i.PLU="\x8c",i.RI="\x8d",i.SS2="\x8e",i.SS3="\x8f",i.DCS="\x90",i.PU1="\x91",i.PU2="\x92",i.STS="\x93",i.CCH="\x94",i.MW="\x95",i.SPA="\x96",i.EPA="\x97",i.SOS="\x98",i.SGCI="\x99",i.SCI="\x9a",i.CSI="\x9b",i.ST="\x9c",i.OSC="\x9d",i.PM="\x9e",i.APC="\x9f",(t.C1_ESCAPED||(t.C1_ESCAPED={})).ST="".concat(n.ESC,"\\")},7399:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;var i=n(2584),r={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,n,o){var a={type:0,cancel:!1,key:void 0},s=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?a.key=t?i.C0.ESC+"OA":i.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?a.key=t?i.C0.ESC+"OD":i.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?a.key=t?i.C0.ESC+"OC":i.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(a.key=t?i.C0.ESC+"OB":i.C0.ESC+"[B");break;case 8:if(e.altKey){a.key=i.C0.ESC+i.C0.DEL;break}a.key=i.C0.DEL;break;case 9:if(e.shiftKey){a.key=i.C0.ESC+"[Z";break}a.key=i.C0.HT,a.cancel=!0;break;case 13:a.key=e.altKey?i.C0.ESC+i.C0.CR:i.C0.CR,a.cancel=!0;break;case 27:a.key=i.C0.ESC,e.altKey&&(a.key=i.C0.ESC+i.C0.ESC),a.cancel=!0;break;case 37:if(e.metaKey)break;s?(a.key=i.C0.ESC+"[1;"+(s+1)+"D",a.key===i.C0.ESC+"[1;3D"&&(a.key=i.C0.ESC+(n?"b":"[1;5D"))):a.key=t?i.C0.ESC+"OD":i.C0.ESC+"[D";break;case 39:if(e.metaKey)break;s?(a.key=i.C0.ESC+"[1;"+(s+1)+"C",a.key===i.C0.ESC+"[1;3C"&&(a.key=i.C0.ESC+(n?"f":"[1;5C"))):a.key=t?i.C0.ESC+"OC":i.C0.ESC+"[C";break;case 38:if(e.metaKey)break;s?(a.key=i.C0.ESC+"[1;"+(s+1)+"A",n||a.key!==i.C0.ESC+"[1;3A"||(a.key=i.C0.ESC+"[1;5A")):a.key=t?i.C0.ESC+"OA":i.C0.ESC+"[A";break;case 40:if(e.metaKey)break;s?(a.key=i.C0.ESC+"[1;"+(s+1)+"B",n||a.key!==i.C0.ESC+"[1;3B"||(a.key=i.C0.ESC+"[1;5B")):a.key=t?i.C0.ESC+"OB":i.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(a.key=i.C0.ESC+"[2~");break;case 46:a.key=s?i.C0.ESC+"[3;"+(s+1)+"~":i.C0.ESC+"[3~";break;case 36:a.key=s?i.C0.ESC+"[1;"+(s+1)+"H":t?i.C0.ESC+"OH":i.C0.ESC+"[H";break;case 35:a.key=s?i.C0.ESC+"[1;"+(s+1)+"F":t?i.C0.ESC+"OF":i.C0.ESC+"[F";break;case 33:e.shiftKey?a.type=2:e.ctrlKey?a.key=i.C0.ESC+"[5;"+(s+1)+"~":a.key=i.C0.ESC+"[5~";break;case 34:e.shiftKey?a.type=3:e.ctrlKey?a.key=i.C0.ESC+"[6;"+(s+1)+"~":a.key=i.C0.ESC+"[6~";break;case 112:a.key=s?i.C0.ESC+"[1;"+(s+1)+"P":i.C0.ESC+"OP";break;case 113:a.key=s?i.C0.ESC+"[1;"+(s+1)+"Q":i.C0.ESC+"OQ";break;case 114:a.key=s?i.C0.ESC+"[1;"+(s+1)+"R":i.C0.ESC+"OR";break;case 115:a.key=s?i.C0.ESC+"[1;"+(s+1)+"S":i.C0.ESC+"OS";break;case 116:a.key=s?i.C0.ESC+"[15;"+(s+1)+"~":i.C0.ESC+"[15~";break;case 117:a.key=s?i.C0.ESC+"[17;"+(s+1)+"~":i.C0.ESC+"[17~";break;case 118:a.key=s?i.C0.ESC+"[18;"+(s+1)+"~":i.C0.ESC+"[18~";break;case 119:a.key=s?i.C0.ESC+"[19;"+(s+1)+"~":i.C0.ESC+"[19~";break;case 120:a.key=s?i.C0.ESC+"[20;"+(s+1)+"~":i.C0.ESC+"[20~";break;case 121:a.key=s?i.C0.ESC+"[21;"+(s+1)+"~":i.C0.ESC+"[21~";break;case 122:a.key=s?i.C0.ESC+"[23;"+(s+1)+"~":i.C0.ESC+"[23~";break;case 123:a.key=s?i.C0.ESC+"[24;"+(s+1)+"~":i.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(n&&!o||!e.altKey||e.metaKey)!n||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?a.key=e.key:e.key&&e.ctrlKey&&("_"===e.key&&(a.key=i.C0.US),"@"===e.key&&(a.key=i.C0.NUL)):65===e.keyCode&&(a.type=1);else{var l=r[e.keyCode],c=null==l?void 0:l[e.shiftKey?1:0];if(c)a.key=i.C0.ESC+c;else if(e.keyCode>=65&&e.keyCode<=90){var u=e.ctrlKey?e.keyCode-64:e.keyCode+32,d=String.fromCharCode(u);e.shiftKey&&(d=d.toUpperCase()),a.key=i.C0.ESC+d}else if(32===e.keyCode)a.key=i.C0.ESC+(e.ctrlKey?i.C0.NUL:" ");else if("Dead"===e.key&&e.code.startsWith("Key")){var h=e.code.slice(3,4);e.shiftKey||(h=h.toLowerCase()),a.key=i.C0.ESC+h,a.cancel=!0}}else e.keyCode>=65&&e.keyCode<=90?a.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?a.key=i.C0.NUL:e.keyCode>=51&&e.keyCode<=55?a.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?a.key=i.C0.DEL:219===e.keyCode?a.key=i.C0.ESC:220===e.keyCode?a.key=i.C0.FS:221===e.keyCode&&(a.key=i.C0.GS)}return a}},482:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i="",r=t;r<n;++r){var o=e[r];o>65535?(o-=65536,i+=String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):i+=String.fromCharCode(o)}return i},t.StringToUtf32=function(){function e(){d(this,e),this._interim=0}return h(e,[{key:"clear",value:function(){this._interim=0}},{key:"decode",value:function(e,t){var n=e.length;if(!n)return 0;var i=0,r=0;if(this._interim){var o=e.charCodeAt(r++);56320<=o&&o<=57343?t[i++]=1024*(this._interim-55296)+o-56320+65536:(t[i++]=this._interim,t[i++]=o),this._interim=0}for(var a=r;a<n;++a){var s=e.charCodeAt(a);if(55296<=s&&s<=56319){if(++a>=n)return this._interim=s,i;var l=e.charCodeAt(a);56320<=l&&l<=57343?t[i++]=1024*(s-55296)+l-56320+65536:(t[i++]=s,t[i++]=l)}else 65279!==s&&(t[i++]=s)}return i}}]),e}(),t.Utf8ToUtf32=function(){function e(){d(this,e),this.interim=new Uint8Array(3)}return h(e,[{key:"clear",value:function(){this.interim.fill(0)}},{key:"decode",value:function(e,t){var n=e.length;if(!n)return 0;var i,r,o,a,s=0,l=0,c=0;if(this.interim[0]){var u=!1,d=this.interim[0];d&=192==(224&d)?31:224==(240&d)?15:7;for(var h,f=0;(h=63&this.interim[++f])&&f<4;)d<<=6,d|=h;for(var p=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,g=p-f;c<g;){if(c>=n)return 0;if(128!=(192&(h=e[c++]))){c--,u=!0;break}this.interim[f++]=h,d<<=6,d|=63&h}u||(2===p?d<128?c--:t[s++]=d:3===p?d<2048||d>=55296&&d<=57343||65279===d||(t[s++]=d):d<65536||d>1114111||(t[s++]=d)),this.interim.fill(0)}for(var v=n-4,m=c;m<n;){for(;!(!(m<v)||128&(i=e[m])||128&(r=e[m+1])||128&(o=e[m+2])||128&(a=e[m+3]));)t[s++]=i,t[s++]=r,t[s++]=o,t[s++]=a,m+=4;if((i=e[m++])<128)t[s++]=i;else if(192==(224&i)){if(m>=n)return this.interim[0]=i,s;if(128!=(192&(r=e[m++]))){m--;continue}if((l=(31&i)<<6|63&r)<128){m--;continue}t[s++]=l}else if(224==(240&i)){if(m>=n)return this.interim[0]=i,s;if(128!=(192&(r=e[m++]))){m--;continue}if(m>=n)return this.interim[0]=i,this.interim[1]=r,s;if(128!=(192&(o=e[m++]))){m--;continue}if((l=(15&i)<<12|(63&r)<<6|63&o)<2048||l>=55296&&l<=57343||65279===l)continue;t[s++]=l}else if(240==(248&i)){if(m>=n)return this.interim[0]=i,s;if(128!=(192&(r=e[m++]))){m--;continue}if(m>=n)return this.interim[0]=i,this.interim[1]=r,s;if(128!=(192&(o=e[m++]))){m--;continue}if(m>=n)return this.interim[0]=i,this.interim[1]=r,this.interim[2]=o,s;if(128!=(192&(a=e[m++]))){m--;continue}if((l=(7&i)<<18|(63&r)<<12|(63&o)<<6|63&a)<65536||l>1114111)continue;t[s++]=l}}return s}}]),e}()},225:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;var n,i=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],r=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];t.UnicodeV6=function(){function e(){if(d(this,e),this.version="6",!n){(n=new Uint8Array(65536)).fill(1),n[0]=0,n.fill(0,1,32),n.fill(0,127,160),n.fill(2,4352,4448),n[9001]=2,n[9002]=2,n.fill(2,11904,42192),n[12351]=1,n.fill(2,44032,55204),n.fill(2,63744,64256),n.fill(2,65040,65050),n.fill(2,65072,65136),n.fill(2,65280,65377),n.fill(2,65504,65511);for(var t=0;t<i.length;++t)n.fill(0,i[t][0],i[t][1]+1)}}return h(e,[{key:"wcwidth",value:function(e){return e<32?0:e<127?1:e<65536?n[e]:function(e,t){var n,i=0,r=t.length-1;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=i;)if(e>t[n=i+r>>1][1])i=n+1;else{if(!(e<t[n][0]))return!0;r=n-1}return!1}(e,r)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}}]),e}()},5981:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;var i=n(8460),r=function(e){p(n,e);var t=g(n);function n(e){var r;return d(this,n),(r=t.call(this))._action=e,r._writeBuffer=[],r._callbacks=[],r._pendingData=0,r._bufferOffset=0,r._isSyncWriting=!1,r._syncCalls=0,r._didUserInput=!1,r._onWriteParsed=r.register(new i.EventEmitter),r.onWriteParsed=r._onWriteParsed.event,r}return h(n,[{key:"handleUserInput",value:function(){this._didUserInput=!0}},{key:"writeSync",value:function(e,t){if(void 0!==t&&this._syncCalls>t)this._syncCalls=0;else if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var n;for(this._isSyncWriting=!0;n=this._writeBuffer.shift();){this._action(n);var i=this._callbacks.shift();i&&i()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}}},{key:"write",value:function(e,t){var n=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),void this._innerWrite();setTimeout((function(){return n._innerWrite()}))}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}},{key:"_innerWrite",value:function(){for(var e=this,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)||Date.now();this._writeBuffer.length>this._bufferOffset;){var i=this._writeBuffer[this._bufferOffset],r=this._action(i,t);if(r){var o=function(t){return Date.now()-n>=12?setTimeout((function(){return e._innerWrite(0,t)})):e._innerWrite(n,t)};return void r.catch((function(e){return queueMicrotask((function(){throw e})),Promise.resolve(!1)})).then(o)}var a=this._callbacks[this._bufferOffset];if(a&&a(),this._bufferOffset++,this._pendingData-=i.length,Date.now()-n>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((function(){return e._innerWrite()}))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}]),n}(n(844).Disposable);t.WriteBuffer=r},5941:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;var n=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,i=/^[\da-f]+$/;function r(e,t){var n=e.toString(16),i=n.length<2?"0"+n:n;switch(t){case 4:return n[0];case 8:return i;case 12:return(i+i).slice(0,3);default:return i+i}}t.parseColor=function(e){if(e){var t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);var r=n.exec(t);if(r){var o=r[1]?15:r[4]?255:r[7]?4095:65535;return[Math.round(parseInt(r[1]||r[4]||r[7]||r[10],16)/o*255),Math.round(parseInt(r[2]||r[5]||r[8]||r[11],16)/o*255),Math.round(parseInt(r[3]||r[6]||r[9]||r[12],16)/o*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),i.exec(t)&&[3,6,9,12].includes(t.length))){for(var a=t.length/3,s=[0,0,0],l=0;l<3;++l){var c=parseInt(t.slice(a*l,a*l+a),16);s[l]=1===a?c<<4:2===a?c:3===a?c>>4:c>>8}return s}}},t.toRgbString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=c(e,3),i=n[0],o=n[1],a=n[2];return"rgb:".concat(r(i,t),"/").concat(r(o,t),"/").concat(r(a,t))}},5770:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;var i=n(482),r=n(8742),o=n(5770),a=[];t.DcsParser=function(){function e(){d(this,e),this._handlers=Object.create(null),this._active=a,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return h(e,[{key:"dispose",value:function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=a}},{key:"registerHandler",value:function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var n=this._handlers[e];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}},{key:"clearHandler",value:function(e){this._handlers[e]&&delete this._handlers[e]}},{key:"setHandlerFallback",value:function(e){this._handlerFb=e}},{key:"reset",value:function(){if(this._active.length)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=a,this._ident=0}},{key:"hook",value:function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||a,this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].hook(t);else this._handlerFb(this._ident,"HOOK",t)}},{key:"put",value:function(e,t,n){if(this._active.length)for(var r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n);else this._handlerFb(this._ident,"PUT",(0,i.utf32ToString)(e,t,n))}},{key:"unhook",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._active.length){var n=!1,i=this._active.length-1,r=!1;if(this._stack.paused&&(i=this._stack.loopPosition-1,n=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===n){for(;i>=0&&!0!==(n=this._active[i].unhook(e));i--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!1,n;i--}for(;i>=0;i--)if((n=this._active[i].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!0,n}else this._handlerFb(this._ident,"UNHOOK",e);this._active=a,this._ident=0}}]),e}();var s=new r.Params;s.addParam(0),t.DcsHandler=function(){function e(t){d(this,e),this._handler=t,this._data="",this._params=s,this._hitLimit=!1}return h(e,[{key:"hook",value:function(e){this._params=e.length>1||e.params[0]?e.clone():s,this._data="",this._hitLimit=!1}},{key:"put",value:function(e,t,n){this._hitLimit||(this._data+=(0,i.utf32ToString)(e,t,n),this._data.length>o.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}},{key:"unhook",value:function(e){var t=this,n=!1;if(this._hitLimit)n=!1;else if(e&&(n=this._handler(this._data,this._params))instanceof Promise)return n.then((function(e){return t._params=s,t._data="",t._hitLimit=!1,e}));return this._params=s,this._data="",this._hitLimit=!1,n}}]),e}()},2015:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;var i=n(844),r=n(8742),o=n(6242),a=n(6351),s=function(){function e(t){d(this,e),this.table=new Uint8Array(t)}return h(e,[{key:"setDefault",value:function(e,t){this.table.fill(e<<4|t)}},{key:"add",value:function(e,t,n,i){this.table[t<<8|e]=n<<4|i}},{key:"addMany",value:function(e,t,n,i){for(var r=0;r<e.length;r++)this.table[t<<8|e[r]]=n<<4|i}}]),e}();t.TransitionTable=s;var l=160;t.VT500_TRANSITION_TABLE=function(){var e=new s(4095),t=Array.apply(null,Array(256)).map((function(e,t){return t})),n=function(e,n){return t.slice(e,n)},i=n(32,127),r=n(0,24);r.push(25),r.push.apply(r,n(28,32));var o,a=n(0,14);for(o in e.setDefault(1,0),e.addMany(i,0,2,0),a)e.addMany([24,26,153,154],o,3,0),e.addMany(n(128,144),o,3,0),e.addMany(n(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(r,0,3,0),e.addMany(r,1,3,1),e.add(127,1,0,1),e.addMany(r,8,0,8),e.addMany(r,3,3,3),e.add(127,3,0,3),e.addMany(r,4,3,4),e.add(127,4,0,4),e.addMany(r,6,3,6),e.addMany(r,5,3,5),e.add(127,5,0,5),e.addMany(r,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(i,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(n(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(i,7,0,7),e.addMany(r,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(n(64,127),3,7,0),e.addMany(n(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(n(48,60),4,8,4),e.addMany(n(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(n(32,64),6,0,6),e.add(127,6,0,6),e.addMany(n(64,127),6,0,0),e.addMany(n(32,48),3,9,5),e.addMany(n(32,48),5,9,5),e.addMany(n(48,64),5,0,6),e.addMany(n(64,127),5,7,0),e.addMany(n(32,48),4,9,5),e.addMany(n(32,48),1,9,2),e.addMany(n(32,48),2,9,2),e.addMany(n(48,127),2,10,0),e.addMany(n(48,80),1,10,0),e.addMany(n(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(n(96,127),1,10,0),e.add(80,1,11,9),e.addMany(r,9,0,9),e.add(127,9,0,9),e.addMany(n(28,32),9,0,9),e.addMany(n(32,48),9,9,12),e.addMany(n(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(r,11,0,11),e.addMany(n(32,128),11,0,11),e.addMany(n(28,32),11,0,11),e.addMany(r,10,0,10),e.add(127,10,0,10),e.addMany(n(28,32),10,0,10),e.addMany(n(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(n(32,48),10,9,12),e.addMany(r,12,0,12),e.add(127,12,0,12),e.addMany(n(28,32),12,0,12),e.addMany(n(32,48),12,9,12),e.addMany(n(48,64),12,0,11),e.addMany(n(64,127),12,12,13),e.addMany(n(64,127),10,12,13),e.addMany(n(64,127),9,12,13),e.addMany(r,13,13,13),e.addMany(i,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(l,0,2,0),e.add(l,8,5,8),e.add(l,6,0,6),e.add(l,11,0,11),e.add(l,13,13,13),e}();var c=function(e){p(s,e);var n=g(s);function s(){var e,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.VT500_TRANSITION_TABLE;return d(this,s),(e=n.call(this))._transitions=l,e._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},e.initialState=0,e.currentState=e.initialState,e._params=new r.Params,e._params.addParam(0),e._collect=0,e.precedingCodepoint=0,e._printHandlerFb=function(e,t,n){},e._executeHandlerFb=function(e){},e._csiHandlerFb=function(e,t){},e._escHandlerFb=function(e){},e._errorHandlerFb=function(e){return e},e._printHandler=e._printHandlerFb,e._executeHandlers=Object.create(null),e._csiHandlers=Object.create(null),e._escHandlers=Object.create(null),e.register((0,i.toDisposable)((function(){e._csiHandlers=Object.create(null),e._executeHandlers=Object.create(null),e._escHandlers=Object.create(null)}))),e._oscParser=e.register(new o.OscParser),e._dcsParser=e.register(new a.DcsParser),e._errorHandler=e._errorHandlerFb,e.registerEscHandler({final:"\\"},(function(){return!0})),e}return h(s,[{key:"_identifier",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[64,126],n=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if((n=e.prefix.charCodeAt(0))&&60>n||n>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var i=0;i<e.intermediates.length;++i){var r=e.intermediates.charCodeAt(i);if(32>r||r>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");n<<=8,n|=r}}if(1!==e.final.length)throw new Error("final must be a single byte");var o=e.final.charCodeAt(0);if(t[0]>o||o>t[1])throw new Error("final must be in range ".concat(t[0]," .. ").concat(t[1]));return n<<=8,n|=o}},{key:"identToString",value:function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")}},{key:"setPrintHandler",value:function(e){this._printHandler=e}},{key:"clearPrintHandler",value:function(){this._printHandler=this._printHandlerFb}},{key:"registerEscHandler",value:function(e,t){var n=this._identifier(e,[48,126]);void 0===this._escHandlers[n]&&(this._escHandlers[n]=[]);var i=this._escHandlers[n];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}},{key:"clearEscHandler",value:function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}},{key:"setEscHandlerFallback",value:function(e){this._escHandlerFb=e}},{key:"setExecuteHandler",value:function(e,t){this._executeHandlers[e.charCodeAt(0)]=t}},{key:"clearExecuteHandler",value:function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}},{key:"setExecuteHandlerFallback",value:function(e){this._executeHandlerFb=e}},{key:"registerCsiHandler",value:function(e,t){var n=this._identifier(e);void 0===this._csiHandlers[n]&&(this._csiHandlers[n]=[]);var i=this._csiHandlers[n];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}},{key:"clearCsiHandler",value:function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}},{key:"setCsiHandlerFallback",value:function(e){this._csiHandlerFb=e}},{key:"registerDcsHandler",value:function(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}},{key:"clearDcsHandler",value:function(e){this._dcsParser.clearHandler(this._identifier(e))}},{key:"setDcsHandlerFallback",value:function(e){this._dcsParser.setHandlerFallback(e)}},{key:"registerOscHandler",value:function(e,t){return this._oscParser.registerHandler(e,t)}},{key:"clearOscHandler",value:function(e){this._oscParser.clearHandler(e)}},{key:"setOscHandlerFallback",value:function(e){this._oscParser.setHandlerFallback(e)}},{key:"setErrorHandler",value:function(e){this._errorHandler=e}},{key:"clearErrorHandler",value:function(){this._errorHandler=this._errorHandlerFb}},{key:"reset",value:function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])}},{key:"_preserveStack",value:function(e,t,n,i,r){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=n,this._parseStack.transition=i,this._parseStack.chunkPos=r}},{key:"parse",value:function(e,t,n){var i,r=0,o=0,a=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,a=this._parseStack.chunkPos+1;else{if(void 0===n||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var s=this._parseStack.handlers,c=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===n&&c>-1)for(;c>=0&&!0!==(i=s[c](this._params));c--)if(i instanceof Promise)return this._parseStack.handlerPos=c,i;this._parseStack.handlers=[];break;case 4:if(!1===n&&c>-1)for(;c>=0&&!0!==(i=s[c]());c--)if(i instanceof Promise)return this._parseStack.handlerPos=c,i;this._parseStack.handlers=[];break;case 6:if(r=e[this._parseStack.chunkPos],i=this._dcsParser.unhook(24!==r&&26!==r,n))return i;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(r=e[this._parseStack.chunkPos],i=this._oscParser.end(24!==r&&26!==r,n))return i;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,a=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var u=a;u<t;++u){switch(r=e[u],(o=this._transitions.table[this.currentState<<8|(r<160?r:l)])>>4){case 2:for(var d=u+1;;++d){if(d>=t||(r=e[d])<32||r>126&&r<l){this._printHandler(e,u,d),u=d-1;break}if(++d>=t||(r=e[d])<32||r>126&&r<l){this._printHandler(e,u,d),u=d-1;break}if(++d>=t||(r=e[d])<32||r>126&&r<l){this._printHandler(e,u,d),u=d-1;break}if(++d>=t||(r=e[d])<32||r>126&&r<l){this._printHandler(e,u,d),u=d-1;break}}break;case 3:this._executeHandlers[r]?this._executeHandlers[r]():this._executeHandlerFb(r),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:u,code:r,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var h=this._csiHandlers[this._collect<<8|r],f=h?h.length-1:-1;f>=0&&!0!==(i=h[f](this._params));f--)if(i instanceof Promise)return this._preserveStack(3,h,f,o,u),i;f<0&&this._csiHandlerFb(this._collect<<8|r,this._params),this.precedingCodepoint=0;break;case 8:do{switch(r){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(r-48)}}while(++u<t&&(r=e[u])>47&&r<60);u--;break;case 9:this._collect<<=8,this._collect|=r;break;case 10:for(var p=this._escHandlers[this._collect<<8|r],g=p?p.length-1:-1;g>=0&&!0!==(i=p[g]());g--)if(i instanceof Promise)return this._preserveStack(4,p,g,o,u),i;g<0&&this._escHandlerFb(this._collect<<8|r),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|r,this._params);break;case 13:for(var v=u+1;;++v)if(v>=t||24===(r=e[v])||26===r||27===r||r>127&&r<l){this._dcsParser.put(e,u,v),u=v-1;break}break;case 14:if(i=this._dcsParser.unhook(24!==r&&26!==r))return this._preserveStack(6,[],0,o,u),i;27===r&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(var m=u+1;;m++)if(m>=t||(r=e[m])<32||r>127&&r<l){this._oscParser.put(e,u,m),u=m-1;break}break;case 6:if(i=this._oscParser.end(24!==r&&26!==r))return this._preserveStack(5,[],0,o,u),i;27===r&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&o}}}]),s}(i.Disposable);t.EscapeSequenceParser=c},6242:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;var i=n(5770),r=n(482),o=[];t.OscParser=function(){function e(){d(this,e),this._state=0,this._active=o,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return h(e,[{key:"registerHandler",value:function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var n=this._handlers[e];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}},{key:"clearHandler",value:function(e){this._handlers[e]&&delete this._handlers[e]}},{key:"setHandlerFallback",value:function(e){this._handlerFb=e}},{key:"dispose",value:function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=o}},{key:"reset",value:function(){if(2===this._state)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=o,this._id=-1,this._state=0}},{key:"_start",value:function(){if(this._active=this._handlers[this._id]||o,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")}},{key:"_put",value:function(e,t,n){if(this._active.length)for(var i=this._active.length-1;i>=0;i--)this._active[i].put(e,t,n);else this._handlerFb(this._id,"PUT",(0,r.utf32ToString)(e,t,n))}},{key:"start",value:function(){this.reset(),this._state=1}},{key:"put",value:function(e,t,n){if(3!==this._state){if(1===this._state)for(;t<n;){var i=e[t++];if(59===i){this._state=2,this._start();break}if(i<48||57<i)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+i-48}2===this._state&&n-t>0&&this._put(e,t,n)}}},{key:"end",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var n=!1,i=this._active.length-1,r=!1;if(this._stack.paused&&(i=this._stack.loopPosition-1,n=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===n){for(;i>=0&&!0!==(n=this._active[i].end(e));i--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!1,n;i--}for(;i>=0;i--)if((n=this._active[i].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!0,n}else this._handlerFb(this._id,"END",e);this._active=o,this._id=-1,this._state=0}}}]),e}(),t.OscHandler=function(){function e(t){d(this,e),this._handler=t,this._data="",this._hitLimit=!1}return h(e,[{key:"start",value:function(){this._data="",this._hitLimit=!1}},{key:"put",value:function(e,t,n){this._hitLimit||(this._data+=(0,r.utf32ToString)(e,t,n),this._data.length>i.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}},{key:"end",value:function(e){var t=this,n=!1;if(this._hitLimit)n=!1;else if(e&&(n=this._handler(this._data))instanceof Promise)return n.then((function(e){return t._data="",t._hitLimit=!1,e}));return this._data="",this._hitLimit=!1,n}}]),e}()},8742:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;var n=2147483647,i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32;if(d(this,e),this.maxLength=t,this.maxSubParamsLength=n,n>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(t),this.length=0,this._subParams=new Int32Array(n),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(t),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return h(e,[{key:"clone",value:function(){var t=new e(this.maxLength,this.maxSubParamsLength);return t.params.set(this.params),t.length=this.length,t._subParams.set(this._subParams),t._subParamsLength=this._subParamsLength,t._subParamsIdx.set(this._subParamsIdx),t._rejectDigits=this._rejectDigits,t._rejectSubDigits=this._rejectSubDigits,t._digitIsSub=this._digitIsSub,t}},{key:"toArray",value:function(){for(var e=[],t=0;t<this.length;++t){e.push(this.params[t]);var n=this._subParamsIdx[t]>>8,i=255&this._subParamsIdx[t];i-n>0&&e.push(Array.prototype.slice.call(this._subParams,n,i))}return e}},{key:"reset",value:function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}},{key:"addParam",value:function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>n?n:e}}},{key:"addSubParam",value:function(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>n?n:e,this._subParamsIdx[this.length-1]++}}},{key:"hasSubParams",value:function(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0}},{key:"getSubParams",value:function(e){var t=this._subParamsIdx[e]>>8,n=255&this._subParamsIdx[e];return n-t>0?this._subParams.subarray(t,n):null}},{key:"getSubParamsAll",value:function(){for(var e={},t=0;t<this.length;++t){var n=this._subParamsIdx[t]>>8,i=255&this._subParamsIdx[t];i-n>0&&(e[t]=this._subParams.slice(n,i))}return e}},{key:"addDigit",value:function(e){var t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var i=this._digitIsSub?this._subParams:this.params,r=i[t-1];i[t-1]=~r?Math.min(10*r+e,n):e}}}],[{key:"fromArray",value:function(t){var n=new e;if(!t.length)return n;for(var i=Array.isArray(t[0])?1:0;i<t.length;++i){var r=t[i];if(Array.isArray(r))for(var o=0;o<r.length;++o)n.addSubParam(r[o]);else n.addParam(r)}return n}}]),e}();t.Params=i},5741:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0,t.AddonManager=function(){function e(){d(this,e),this._addons=[]}return h(e,[{key:"dispose",value:function(){for(var e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}},{key:"loadAddon",value:function(e,t){var n=this,i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=function(){return n._wrappedAddonDispose(i)},t.activate(e)}},{key:"_wrappedAddonDispose",value:function(e){if(!e.isDisposed){for(var t=-1,n=0;n<this._addons.length;n++)if(this._addons[n]===e){t=n;break}if(-1===t)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}}}]),e}()},8771:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;var i=n(3785),r=n(511);t.BufferApiView=function(){function e(t,n){d(this,e),this._buffer=t,this.type=n}return h(e,[{key:"init",value:function(e){return this._buffer=e,this}},{key:"cursorY",get:function(){return this._buffer.y}},{key:"cursorX",get:function(){return this._buffer.x}},{key:"viewportY",get:function(){return this._buffer.ydisp}},{key:"baseY",get:function(){return this._buffer.ybase}},{key:"length",get:function(){return this._buffer.lines.length}},{key:"getLine",value:function(e){var t=this._buffer.lines.get(e);if(t)return new i.BufferLineApiView(t)}},{key:"getNullCell",value:function(){return new r.CellData}}]),e}()},3785:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;var i=n(511);t.BufferLineApiView=function(){function e(t){d(this,e),this._line=t}return h(e,[{key:"isWrapped",get:function(){return this._line.isWrapped}},{key:"length",get:function(){return this._line.length}},{key:"getCell",value:function(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new i.CellData)}},{key:"translateToString",value:function(e,t,n){return this._line.translateToString(e,t,n)}}]),e}()},8285:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;var i=n(8771),r=n(8460);t.BufferNamespaceApi=function(){function e(t){var n=this;d(this,e),this._core=t,this._onBufferChange=new r.EventEmitter,this.onBufferChange=this._onBufferChange.event,this._normal=new i.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new i.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((function(){return n._onBufferChange.fire(n.active)}))}return h(e,[{key:"active",get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}},{key:"normal",get:function(){return this._normal.init(this._core.buffers.normal)}},{key:"alternate",get:function(){return this._alternate.init(this._core.buffers.alt)}}]),e}()},7975:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0,t.ParserApi=function(){function e(t){d(this,e),this._core=t}return h(e,[{key:"registerCsiHandler",value:function(e,t){return this._core.registerCsiHandler(e,(function(e){return t(e.toArray())}))}},{key:"addCsiHandler",value:function(e,t){return this.registerCsiHandler(e,t)}},{key:"registerDcsHandler",value:function(e,t){return this._core.registerDcsHandler(e,(function(e,n){return t(e,n.toArray())}))}},{key:"addDcsHandler",value:function(e,t){return this.registerDcsHandler(e,t)}},{key:"registerEscHandler",value:function(e,t){return this._core.registerEscHandler(e,t)}},{key:"addEscHandler",value:function(e,t){return this.registerEscHandler(e,t)}},{key:"registerOscHandler",value:function(e,t){return this._core.registerOscHandler(e,t)}},{key:"addOscHandler",value:function(e,t){return this.registerOscHandler(e,t)}}]),e}()},7090:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0,t.UnicodeApi=function(){function e(t){d(this,e),this._core=t}return h(e,[{key:"register",value:function(e){this._core.unicodeService.register(e)}},{key:"versions",get:function(){return this._core.unicodeService.versions}},{key:"activeVersion",get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e}}]),e}()},744:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;var o=n(2585),a=n(5295),s=n(8460),l=n(844);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var c=function(e){p(i,e);var n=g(i);function i(e){var r;return d(this,i),(r=n.call(this)).isUserScrolling=!1,r._onResize=r.register(new s.EventEmitter),r.onResize=r._onResize.event,r._onScroll=r.register(new s.EventEmitter),r.onScroll=r._onScroll.event,r.cols=Math.max(e.rawOptions.cols||0,t.MINIMUM_COLS),r.rows=Math.max(e.rawOptions.rows||0,t.MINIMUM_ROWS),r.buffers=r.register(new a.BufferSet(e,f(r))),r}return h(i,[{key:"buffer",get:function(){return this.buffers.active}},{key:"resize",value:function(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t})}},{key:"reset",value:function(){this.buffers.reset(),this.isUserScrolling=!1}},{key:"scroll",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.buffer;(t=this._cachedBlankLine)&&t.length===this.cols&&t.getFg(0)===e.fg&&t.getBg(0)===e.bg||(t=i.getBlankLine(e,n),this._cachedBlankLine=t),t.isWrapped=n;var r=i.ybase+i.scrollTop,o=i.ybase+i.scrollBottom;if(0===i.scrollTop){var a=i.lines.isFull;o===i.lines.length-1?a?i.lines.recycle().copyFrom(t):i.lines.push(t.clone()):i.lines.splice(o+1,0,t.clone()),a?this.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this.isUserScrolling||i.ydisp++)}else{var s=o-r+1;i.lines.shiftElements(r+1,s-1,-1),i.lines.set(o,t.clone())}this.isUserScrolling||(i.ydisp=i.ybase),this._onScroll.fire(i.ydisp)}},{key:"scrollLines",value:function(e,t,n){var i=this.buffer;if(e<0){if(0===i.ydisp)return;this.isUserScrolling=!0}else e+i.ydisp>=i.ybase&&(this.isUserScrolling=!1);var r=i.ydisp;i.ydisp=Math.max(Math.min(i.ydisp+e,i.ybase),0),r!==i.ydisp&&(t||this._onScroll.fire(i.ydisp))}},{key:"scrollPages",value:function(e){this.scrollLines(e*(this.rows-1))}},{key:"scrollToTop",value:function(){this.scrollLines(-this.buffer.ydisp)}},{key:"scrollToBottom",value:function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)}},{key:"scrollToLine",value:function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)}}]),i}(l.Disposable);c=i([r(0,o.IOptionsService)],c),t.BufferService=c},7994:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0,t.CharsetService=function(){function e(){d(this,e),this.glevel=0,this._charsets=[]}return h(e,[{key:"reset",value:function(){this.charset=void 0,this._charsets=[],this.glevel=0}},{key:"setgLevel",value:function(e){this.glevel=e,this.charset=this._charsets[e]}},{key:"setgCharset",value:function(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}}]),e}()},1753:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;var o=n(2585),a=n(8460),s=n(844),l={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(e){return 4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)}},VT200:{events:19,restrict:function(e){return 32!==e.action}},DRAG:{events:23,restrict:function(e){return 32!==e.action||3!==e.button}},ANY:{events:31,restrict:function(e){return!0}}};function c(e,t){var n=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(n|=64,n|=e.action):(n|=3&e.button,4&e.button&&(n|=64),8&e.button&&(n|=128),32===e.action?n|=32:0!==e.action||t||(n|=3)),n}var u=String.fromCharCode,f={DEFAULT:function(e){var t=[c(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":"\x1b[M".concat(u(t[0])).concat(u(t[1])).concat(u(t[2]))},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"\x1b[<".concat(c(e,!0),";").concat(e.col,";").concat(e.row).concat(t)},SGR_PIXELS:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"\x1b[<".concat(c(e,!0),";").concat(e.x,";").concat(e.y).concat(t)}},v=function(e){p(n,e);var t=g(n);function n(e,i){var r;d(this,n),(r=t.call(this))._bufferService=e,r._coreService=i,r._protocols={},r._encodings={},r._activeProtocol="",r._activeEncoding="",r._lastEvent=null,r._onProtocolChange=r.register(new a.EventEmitter),r.onProtocolChange=r._onProtocolChange.event;for(var o=0,s=Object.keys(l);o<s.length;o++){var c=s[o];r.addProtocol(c,l[c])}for(var u=0,h=Object.keys(f);u<h.length;u++){var p=h[u];r.addEncoding(p,f[p])}return r.reset(),r}return h(n,[{key:"addProtocol",value:function(e,t){this._protocols[e]=t}},{key:"addEncoding",value:function(e,t){this._encodings[e]=t}},{key:"activeProtocol",get:function(){return this._activeProtocol},set:function(e){if(!this._protocols[e])throw new Error('unknown protocol "'.concat(e,'"'));this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}},{key:"areMouseEventsActive",get:function(){return 0!==this._protocols[this._activeProtocol].events}},{key:"activeEncoding",get:function(){return this._activeEncoding},set:function(e){if(!this._encodings[e])throw new Error('unknown encoding "'.concat(e,'"'));this._activeEncoding=e}},{key:"reset",value:function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}},{key:"triggerMouseEvent",value:function(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._equalEvents(this._lastEvent,e,"SGR_PIXELS"===this._activeEncoding))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}},{key:"explainEvents",value:function(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}}},{key:"_equalEvents",value:function(e,t,n){if(n){if(e.x!==t.x)return!1;if(e.y!==t.y)return!1}else{if(e.col!==t.col)return!1;if(e.row!==t.row)return!1}return e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift}}]),n}(s.Disposable);v=i([r(0,o.IBufferService),r(1,o.ICoreService)],v),t.CoreMouseService=v},6975:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;var o=n(2585),a=n(8460),s=n(1439),l=n(844),c=Object.freeze({insertMode:!1}),u=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),f=function(e){p(n,e);var t=g(n);function n(e,i,r){var o;return d(this,n),(o=t.call(this))._bufferService=e,o._logService=i,o._optionsService=r,o.isCursorInitialized=!1,o.isCursorHidden=!1,o._onData=o.register(new a.EventEmitter),o.onData=o._onData.event,o._onUserInput=o.register(new a.EventEmitter),o.onUserInput=o._onUserInput.event,o._onBinary=o.register(new a.EventEmitter),o.onBinary=o._onBinary.event,o._onRequestScrollToBottom=o.register(new a.EventEmitter),o.onRequestScrollToBottom=o._onRequestScrollToBottom.event,o.modes=(0,s.clone)(c),o.decPrivateModes=(0,s.clone)(u),o}return h(n,[{key:"reset",value:function(){this.modes=(0,s.clone)(c),this.decPrivateModes=(0,s.clone)(u)}},{key:"triggerDataEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._optionsService.rawOptions.disableStdin){var n=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&n.ybase!==n.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug('sending data "'.concat(e,'"'),(function(){return e.split("").map((function(e){return e.charCodeAt(0)}))})),this._onData.fire(e)}}},{key:"triggerBinaryEvent",value:function(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'.concat(e,'"'),(function(){return e.split("").map((function(e){return e.charCodeAt(0)}))})),this._onBinary.fire(e))}}]),n}(l.Disposable);f=i([r(0,o.IBufferService),r(1,o.ILogService),r(2,o.IOptionsService)],f),t.CoreService=f},9074:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;var i=n(8055),o=n(8460),a=n(844),c=n(6106),f=0,v=0,m=function(e){p(n,e);var t=g(n);function n(){var e;return d(this,n),(e=t.call(this))._decorations=new c.SortedList((function(e){return null==e?void 0:e.marker.line})),e._onDecorationRegistered=e.register(new o.EventEmitter),e.onDecorationRegistered=e._onDecorationRegistered.event,e._onDecorationRemoved=e.register(new o.EventEmitter),e.onDecorationRemoved=e._onDecorationRemoved.event,e.register((0,a.toDisposable)((function(){var t,n=u(e._decorations.values());try{for(n.s();!(t=n.n()).done;){var i=t.value;e._onDecorationRemoved.fire(i)}}catch(r){n.e(r)}finally{n.f()}e.reset()}))),e}return h(n,[{key:"decorations",get:function(){return this._decorations.values()}},{key:"registerDecoration",value:function(e){var t=this;if(!e.marker.isDisposed){var n=new y(e);if(n){var i=n.marker.onDispose((function(){return n.dispose()}));n.onDispose((function(){n&&(t._decorations.delete(n)&&t._onDecorationRemoved.fire(n),i.dispose())})),this._decorations.insert(n),this._onDecorationRegistered.fire(n)}return n}}},{key:"reset",value:function(){var e,t=u(this._decorations.values());try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(n){t.e(n)}finally{t.f()}this._decorations.clear()}},{key:"getDecorationsAtCell",value:r().mark((function e(t,n,i){var o,a,s,l,c,d,h,f;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l=0,c=0,d=u(this._decorations.getKeyIterator(n)),e.prev=2,d.s();case 4:if((h=d.n()).done){e.next=14;break}if(f=h.value,l=null!==(o=f.options.x)&&void 0!==o?o:0,c=l+(null!==(a=f.options.width)&&void 0!==a?a:1),e.t0=t>=l&&t<c&&(!i||(null!==(s=f.options.layer)&&void 0!==s?s:"bottom")===i),!e.t0){e.next=12;break}return e.next=12,f;case 12:e.next=4;break;case 14:e.next=19;break;case 16:e.prev=16,e.t1=e.catch(2),d.e(e.t1);case 19:return e.prev=19,d.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[2,16,19,22]])}))},{key:"forEachDecorationAtCell",value:function(e,t,n,i){this._decorations.forEachByKey(t,(function(t){var r,o,a;f=null!==(r=t.options.x)&&void 0!==r?r:0,v=f+(null!==(o=t.options.width)&&void 0!==o?o:1),e>=f&&e<v&&(!n||(null!==(a=t.options.layer)&&void 0!==a?a:"bottom")===n)&&i(t)}))}},{key:"dispose",value:function(){var e,t=u(this._decorations.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._onDecorationRemoved.fire(n)}}catch(i){t.e(i)}finally{t.f()}this.reset()}}]),n}(a.Disposable);t.DecorationService=m;var y=function(e){p(n,e);var t=g(n);function n(e){var i;return d(this,n),(i=t.call(this)).options=e,i.onRenderEmitter=i.register(new o.EventEmitter),i.onRender=i.onRenderEmitter.event,i._onDispose=i.register(new o.EventEmitter),i.onDispose=i._onDispose.event,i._cachedBg=null,i._cachedFg=null,i.marker=e.marker,i.options.overviewRulerOptions&&!i.options.overviewRulerOptions.position&&(i.options.overviewRulerOptions.position="full"),i}return h(n,[{key:"isDisposed",get:function(){return this._isDisposed}},{key:"backgroundColorRGB",get:function(){return null===this._cachedBg&&(this.options.backgroundColor?this._cachedBg=i.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}},{key:"foregroundColorRGB",get:function(){return null===this._cachedFg&&(this.options.foregroundColor?this._cachedFg=i.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}},{key:"dispose",value:function(){this._onDispose.fire(),s(l(n.prototype),"dispose",this).call(this)}}]),n}(a.Disposable)},4348:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;var r=n(2585),o=n(8343),a=function(){function e(){d(this,e),this._entries=new Map;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=c(o[r],2),s=a[0],l=a[1];this.set(s,l)}}return h(e,[{key:"set",value:function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n}},{key:"forEach",value:function(e){var t,n=u(this._entries.entries());try{for(n.s();!(t=n.n()).done;){var i=c(t.value,2);e(i[0],i[1])}}catch(r){n.e(r)}finally{n.f()}}},{key:"has",value:function(e){return this._entries.has(e)}},{key:"get",value:function(e){return this._entries.get(e)}}]),e}();t.ServiceCollection=a,t.InstantiationService=function(){function e(){d(this,e),this._services=new a,this._services.set(r.IInstantiationService,this)}return h(e,[{key:"setService",value:function(e,t){this._services.set(e,t)}},{key:"getService",value:function(e){return this._services.get(e)}},{key:"createInstance",value:function(e){var t,n=(0,o.getServiceDependencies)(e).sort((function(e,t){return e.index-t.index})),r=[],a=u(n);try{for(a.s();!(t=a.n()).done;){var s=t.value,l=this._services.get(s.id);if(!l)throw new Error("[createInstance] ".concat(e.name," depends on UNKNOWN service ").concat(s.id,"."));r.push(l)}}catch(p){a.e(p)}finally{a.f()}for(var c=arguments.length,d=new Array(c>1?c-1:0),h=1;h<c;h++)d[h-1]=arguments[h];var f=n.length>0?n[0].index:d.length;if(d.length!==f)throw new Error("[createInstance] First service dependency of ".concat(e.name," at position ").concat(f+1," conflicts with ").concat(d.length," static arguments"));return i(e,[].concat(d,r))}}]),e}()},7866:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=void 0;var o=n(844),s=n(2585),l={debug:s.LogLevelEnum.DEBUG,info:s.LogLevelEnum.INFO,warn:s.LogLevelEnum.WARN,error:s.LogLevelEnum.ERROR,off:s.LogLevelEnum.OFF},c=function(e){p(n,e);var t=g(n);function n(e){var i;return d(this,n),(i=t.call(this))._optionsService=e,i.logLevel=s.LogLevelEnum.OFF,i._updateLogLevel(),i.register(i._optionsService.onSpecificOptionChange("logLevel",(function(){return i._updateLogLevel()}))),i}return h(n,[{key:"_updateLogLevel",value:function(){this.logLevel=l[this._optionsService.rawOptions.logLevel]}},{key:"_evalLazyOptionalParams",value:function(e){for(var t=0;t<e.length;t++)"function"==typeof e[t]&&(e[t]=e[t]())}},{key:"_log",value:function(e,t,n){this._evalLazyOptionalParams(n),e.call.apply(e,[console,"xterm.js: "+t].concat(a(n)))}},{key:"debug",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.logLevel<=s.LogLevelEnum.DEBUG&&this._log(console.log,e,n)}},{key:"info",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.logLevel<=s.LogLevelEnum.INFO&&this._log(console.info,e,n)}},{key:"warn",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.logLevel<=s.LogLevelEnum.WARN&&this._log(console.warn,e,n)}},{key:"error",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.logLevel<=s.LogLevelEnum.ERROR&&this._log(console.error,e,n)}}]),n}(o.Disposable);c=i([r(0,s.IOptionsService)],c),t.LogService=c},7302:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=void 0;var i=n(8460),r=n(6114),o=n(844);t.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:r.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};var a=["normal","bold","100","200","300","400","500","600","700","800","900"],s=function(e){p(r,e);var n=g(r);function r(e){var o;d(this,r),(o=n.call(this))._onOptionChange=o.register(new i.EventEmitter),o.onOptionChange=o._onOptionChange.event;var a=Object.assign({},t.DEFAULT_OPTIONS);for(var s in e)if(s in a)try{var l=e[s];a[s]=o._sanitizeAndValidateOption(s,l)}catch(e){console.error(e)}return o.rawOptions=a,o.options=Object.assign({},a),o._setupOptions(),o}return h(r,[{key:"onSpecificOptionChange",value:function(e,t){var n=this;return this.onOptionChange((function(i){i===e&&t(n.rawOptions[e])}))}},{key:"onMultipleOptionChange",value:function(e,t){return this.onOptionChange((function(n){-1!==e.indexOf(n)&&t()}))}},{key:"_setupOptions",value:function(){var e=this,n=function(n){if(!(n in t.DEFAULT_OPTIONS))throw new Error('No option with key "'.concat(n,'"'));return e.rawOptions[n]},i=function(n,i){if(!(n in t.DEFAULT_OPTIONS))throw new Error('No option with key "'.concat(n,'"'));i=e._sanitizeAndValidateOption(n,i),e.rawOptions[n]!==i&&(e.rawOptions[n]=i,e._onOptionChange.fire(n))};for(var r in this.rawOptions){var o={get:n.bind(this,r),set:i.bind(this,r)};Object.defineProperty(this.options,r,o)}}},{key:"_sanitizeAndValidateOption",value:function(e,n){switch(e){case"cursorStyle":if(n||(n=t.DEFAULT_OPTIONS[e]),!function(e){return"block"===e||"underline"===e||"bar"===e}(n))throw new Error('"'.concat(n,'" is not a valid value for ').concat(e));break;case"wordSeparator":n||(n=t.DEFAULT_OPTIONS[e]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof n&&1<=n&&n<=1e3)break;n=a.includes(n)?n:t.DEFAULT_OPTIONS[e];break;case"cursorWidth":n=Math.floor(n);case"lineHeight":case"tabStopWidth":if(n<1)throw new Error("".concat(e," cannot be less than 1, value: ").concat(n));break;case"minimumContrastRatio":n=Math.max(1,Math.min(21,Math.round(10*n)/10));break;case"scrollback":if((n=Math.min(n,4294967295))<0)throw new Error("".concat(e," cannot be less than 0, value: ").concat(n));break;case"fastScrollSensitivity":case"scrollSensitivity":if(n<=0)throw new Error("".concat(e," cannot be less than or equal to 0, value: ").concat(n));break;case"rows":case"cols":if(!n&&0!==n)throw new Error("".concat(e," must be numeric, value: ").concat(n));break;case"windowsPty":n=null!=n?n:{}}return n}}]),r}(o.Disposable);t.OptionsService=s},2660:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkService=void 0;var o=n(2585),a=function(){function e(t){d(this,e),this._bufferService=t,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}return h(e,[{key:"registerLink",value:function(e){var t=this,n=this._bufferService.buffer;if(void 0===e.id){var i=n.addMarker(n.ybase+n.y),r={data:e,id:this._nextId++,lines:[i]};return i.onDispose((function(){return t._removeMarkerFromLink(r,i)})),this._dataByLinkId.set(r.id,r),r.id}var o=e,a=this._getEntryIdKey(o),s=this._entriesWithId.get(a);if(s)return this.addLineToLink(s.id,n.ybase+n.y),s.id;var l=n.addMarker(n.ybase+n.y),c={id:this._nextId++,key:this._getEntryIdKey(o),data:o,lines:[l]};return l.onDispose((function(){return t._removeMarkerFromLink(c,l)})),this._entriesWithId.set(c.key,c),this._dataByLinkId.set(c.id,c),c.id}},{key:"addLineToLink",value:function(e,t){var n=this,i=this._dataByLinkId.get(e);if(i&&i.lines.every((function(e){return e.line!==t}))){var r=this._bufferService.buffer.addMarker(t);i.lines.push(r),r.onDispose((function(){return n._removeMarkerFromLink(i,r)}))}}},{key:"getLinkData",value:function(e){var t;return null===(t=this._dataByLinkId.get(e))||void 0===t?void 0:t.data}},{key:"_getEntryIdKey",value:function(e){return"".concat(e.id,";;").concat(e.uri)}},{key:"_removeMarkerFromLink",value:function(e,t){var n=e.lines.indexOf(t);-1!==n&&(e.lines.splice(n,1),0===e.lines.length&&(void 0!==e.data.id&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}}]),e}();a=i([r(0,o.IBufferService)],a),t.OscLinkService=a},8343:function(e,t){function n(e,t,n){t.di$target===t?t.di$dependencies.push({id:e,index:n}):(t.di$dependencies=[{id:e,index:n}],t.di$target=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);var i=function e(t,i,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(e,t,r)};return i.toString=function(){return e},t.serviceRegistry.set(e,i),i}},2585:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;var i,r=n(8343);t.IBufferService=(0,r.createDecorator)("BufferService"),t.ICoreMouseService=(0,r.createDecorator)("CoreMouseService"),t.ICoreService=(0,r.createDecorator)("CoreService"),t.ICharsetService=(0,r.createDecorator)("CharsetService"),t.IInstantiationService=(0,r.createDecorator)("InstantiationService"),(i=t.LogLevelEnum||(t.LogLevelEnum={}))[i.DEBUG=0]="DEBUG",i[i.INFO=1]="INFO",i[i.WARN=2]="WARN",i[i.ERROR=3]="ERROR",i[i.OFF=4]="OFF",t.ILogService=(0,r.createDecorator)("LogService"),t.IOptionsService=(0,r.createDecorator)("OptionsService"),t.IOscLinkService=(0,r.createDecorator)("OscLinkService"),t.IUnicodeService=(0,r.createDecorator)("UnicodeService"),t.IDecorationService=(0,r.createDecorator)("DecorationService")},1480:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;var i=n(8460),r=n(225);t.UnicodeService=function(){function e(){d(this,e),this._providers=Object.create(null),this._active="",this._onChange=new i.EventEmitter,this.onChange=this._onChange.event;var t=new r.UnicodeV6;this.register(t),this._active=t.version,this._activeProvider=t}return h(e,[{key:"dispose",value:function(){this._onChange.dispose()}},{key:"versions",get:function(){return Object.keys(this._providers)}},{key:"activeVersion",get:function(){return this._active},set:function(e){if(!this._providers[e])throw new Error('unknown Unicode version "'.concat(e,'"'));this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}},{key:"register",value:function(e){this._providers[e.version]=e}},{key:"wcwidth",value:function(e){return this._activeProvider.wcwidth(e)}},{key:"getStringCellWidth",value:function(e){for(var t=0,n=e.length,i=0;i<n;++i){var r=e.charCodeAt(i);if(55296<=r&&r<=56319){if(++i>=n)return t+this.wcwidth(r);var o=e.charCodeAt(i);56320<=o&&o<=57343?r=1024*(r-55296)+o-56320+65536:t+=this.wcwidth(o)}t+=this.wcwidth(r)}return t}}]),e}()}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}var v={};return function(){var e=v;Object.defineProperty(e,"__esModule",{value:!0}),e.Terminal=void 0;var t=n(3236),i=n(9042),r=n(7975),o=n(7090),a=n(5741),s=n(8285),l=["cols","rows"];e.Terminal=function(){function e(n){var i=this;d(this,e),this._core=new t.Terminal(n),this._addonManager=new a.AddonManager,this._publicOptions=Object.assign({},this._core.options);var r=function(e){return i._core.options[e]},o=function(e,t){i._checkReadonlyOptions(e),i._core.options[e]=t};for(var s in this._core.options){var l={get:r.bind(this,s),set:o.bind(this,s)};Object.defineProperty(this._publicOptions,s,l)}}return h(e,[{key:"_checkReadonlyOptions",value:function(e){if(l.includes(e))throw new Error('Option "'.concat(e,'" can only be set in the constructor'))}},{key:"_checkProposedApi",value:function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}},{key:"onBell",get:function(){return this._core.onBell}},{key:"onBinary",get:function(){return this._core.onBinary}},{key:"onCursorMove",get:function(){return this._core.onCursorMove}},{key:"onData",get:function(){return this._core.onData}},{key:"onKey",get:function(){return this._core.onKey}},{key:"onLineFeed",get:function(){return this._core.onLineFeed}},{key:"onRender",get:function(){return this._core.onRender}},{key:"onResize",get:function(){return this._core.onResize}},{key:"onScroll",get:function(){return this._core.onScroll}},{key:"onSelectionChange",get:function(){return this._core.onSelectionChange}},{key:"onTitleChange",get:function(){return this._core.onTitleChange}},{key:"onWriteParsed",get:function(){return this._core.onWriteParsed}},{key:"element",get:function(){return this._core.element}},{key:"parser",get:function(){return this._parser||(this._parser=new r.ParserApi(this._core)),this._parser}},{key:"unicode",get:function(){return this._checkProposedApi(),new o.UnicodeApi(this._core)}},{key:"textarea",get:function(){return this._core.textarea}},{key:"rows",get:function(){return this._core.rows}},{key:"cols",get:function(){return this._core.cols}},{key:"buffer",get:function(){return this._buffer||(this._buffer=new s.BufferNamespaceApi(this._core)),this._buffer}},{key:"markers",get:function(){return this._checkProposedApi(),this._core.markers}},{key:"modes",get:function(){var e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}}},{key:"options",get:function(){return this._publicOptions},set:function(e){for(var t in e)this._publicOptions[t]=e[t]}},{key:"blur",value:function(){this._core.blur()}},{key:"focus",value:function(){this._core.focus()}},{key:"resize",value:function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}},{key:"open",value:function(e){this._core.open(e)}},{key:"attachCustomKeyEventHandler",value:function(e){this._core.attachCustomKeyEventHandler(e)}},{key:"registerLinkProvider",value:function(e){return this._core.registerLinkProvider(e)}},{key:"registerCharacterJoiner",value:function(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}},{key:"deregisterCharacterJoiner",value:function(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}},{key:"registerMarker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this._verifyIntegers(e),this._core.addMarker(e)}},{key:"registerDecoration",value:function(e){var t,n,i;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(t=e.x)&&void 0!==t?t:0,null!==(n=e.width)&&void 0!==n?n:0,null!==(i=e.height)&&void 0!==i?i:0),this._core.registerDecoration(e)}},{key:"hasSelection",value:function(){return this._core.hasSelection()}},{key:"select",value:function(e,t,n){this._verifyIntegers(e,t,n),this._core.select(e,t,n)}},{key:"getSelection",value:function(){return this._core.getSelection()}},{key:"getSelectionPosition",value:function(){return this._core.getSelectionPosition()}},{key:"clearSelection",value:function(){this._core.clearSelection()}},{key:"selectAll",value:function(){this._core.selectAll()}},{key:"selectLines",value:function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}},{key:"dispose",value:function(){this._addonManager.dispose(),this._core.dispose()}},{key:"scrollLines",value:function(e){this._verifyIntegers(e),this._core.scrollLines(e)}},{key:"scrollPages",value:function(e){this._verifyIntegers(e),this._core.scrollPages(e)}},{key:"scrollToTop",value:function(){this._core.scrollToTop()}},{key:"scrollToBottom",value:function(){this._core.scrollToBottom()}},{key:"scrollToLine",value:function(e){this._verifyIntegers(e),this._core.scrollToLine(e)}},{key:"clear",value:function(){this._core.clear()}},{key:"write",value:function(e,t){this._core.write(e,t)}},{key:"writeln",value:function(e,t){this._core.write(e),this._core.write("\r\n",t)}},{key:"paste",value:function(e){this._core.paste(e)}},{key:"refresh",value:function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}},{key:"reset",value:function(){this._core.reset()}},{key:"clearTextureAtlas",value:function(){this._core.clearTextureAtlas()}},{key:"loadAddon",value:function(e){return this._addonManager.loadAddon(this,e)}},{key:"_verifyIntegers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,r=t;i<r.length;i++){var o=r[i];if(o===1/0||isNaN(o)||o%1!=0)throw new Error("This API only accepts integers")}}},{key:"_verifyPositiveIntegers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,r=t;i<r.length;i++){var o=r[i];if(o&&(o===1/0||isNaN(o)||o%1!=0||o<0))throw new Error("This API only accepts positive integers")}}}],[{key:"strings",get:function(){return i}}]),e}()}(),v}()},53657:function(){},55189:function(){},26053:function(){},6014:function(e,t,n){"use strict";n.r(t),n.d(t,{CancellationTokenSource:function(){return qc},Emitter:function(){return $c},KeyCode:function(){return Xc},KeyMod:function(){return Qc},MarkerSeverity:function(){return iu},MarkerTag:function(){return ru},Position:function(){return Jc},Range:function(){return eu},Selection:function(){return tu},SelectionDirection:function(){return nu},Token:function(){return au},Uri:function(){return ou},editor:function(){return su},languages:function(){return lu}});var i=n(64472),r=n(15671),o=n(43144),a=n(82784),s=n(73097),l=n(16321),c=n(72112),u=n(38622),d=n(80133),h=n(23145),f=n(12905),p=n(18615),g=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,null,[{key:"chord",value:function(e,t){return(0,l.gx)(e,t)}}]),e}();function v(){return{editor:void 0,languages:void 0,CancellationTokenSource:a.A,Emitter:s.Q5,KeyCode:p.VD,KeyMod:g,Position:u.L,Range:d.e,Selection:h.Y,SelectionDirection:p.a$,MarkerSeverity:p.ZL,MarkerTag:p.eB,Uri:c.o,Token:f.WU}}g.CtrlCmd=2048,g.Shift=1024,g.Alt=512,g.WinCtrl=256;var m=n(93433),y=n(11860),_=n(32377),b=n(44471),C=n(98596),S=n(11752),w=n(61120),k=n(60136),x=n(27277),E=n(51492),T=n(63656),N={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},I=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.Z)(this,n),(i=t.call(this))._onDidUpdate=i._register(new s.Q5),i._editor=e,i._options=T.jB(o,N,!1),i.disposed=!1,i.nextIdx=-1,i.ranges=[],i.ignoreSelectionChange=!1,i.revealFirst=Boolean(i._options.alwaysRevealFirst),i._register(i._editor.onDidDispose((function(){return i.dispose()}))),i._register(i._editor.onDidUpdateDiff((function(){return i._onDiffUpdated()}))),i._options.followsCaret&&i._register(i._editor.getModifiedEditor().onDidChangeCursorPosition((function(e){i.ignoreSelectionChange||(i.nextIdx=-1)}))),i._options.alwaysRevealFirst&&i._register(i._editor.getModifiedEditor().onDidChangeModel((function(e){i.revealFirst=!0}))),i._init(),i}return(0,o.Z)(n,[{key:"_init",value:function(){this._editor.getLineChanges()}},{key:"_onDiffUpdated",value:function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}},{key:"_compute",value:function(e){var t=this;this.ranges=[],e&&e.forEach((function(e){!t._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach((function(e){t.ranges.push({rhs:!0,range:new d.e(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})})):0===e.modifiedEndLineNumber?t.ranges.push({rhs:!0,range:new d.e(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber+1,1)}):t.ranges.push({rhs:!0,range:new d.e(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber+1,1)})})),this.ranges.sort((function(e,t){return d.e.compareRangesUsingStarts(e.range,t.range)})),this._onDidUpdate.fire(this)}},{key:"_initIdx",value:function(e){var t=!1,n=this._editor.getPosition();if(n){for(var i=0,r=this.ranges.length;i<r&&!t;i++){var o=this.ranges[i].range;n.isBeforeOrEqual(o.getStartPosition())&&(this.nextIdx=i+(e?0:-1),t=!0)}t||(this.nextIdx=e?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}else this.nextIdx=0}},{key:"_move",value:function(e,t){if(E.ok(!this.disposed,"Illegal State - diff navigator has been disposed"),this.canNavigate()){-1===this.nextIdx?this._initIdx(e):e?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var i=n.range.getStartPosition();this._editor.setPosition(i),this._editor.revealRangeInCenter(n.range,t)}finally{this.ignoreSelectionChange=!1}}}},{key:"canNavigate",value:function(){return this.ranges&&this.ranges.length>0}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._move(!0,e)}},{key:"previous",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._move(!1,e)}},{key:"dispose",value:function(){(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this),this.ranges=[],this.disposed=!0}}]),n}(y.JT),D=n(4539),L=n(70956),O=n(36550),R=n(29662),A=n(38584),M=n(72762),P=n(29257),Z=n(37762),F=n(74165),B=n(60022),H=n(14173),z=n(73616),j=n(85294),V="$initialize",W=!1;function U(e){z.$L&&(W||(W=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}var G=(0,o.Z)((function e(t,n,i,o){(0,r.Z)(this,e),this.vsWorker=t,this.req=n,this.method=i,this.args=o,this.type=0})),K=(0,o.Z)((function e(t,n,i,o){(0,r.Z)(this,e),this.vsWorker=t,this.seq=n,this.res=i,this.err=o,this.type=1})),Y=(0,o.Z)((function e(t,n,i,o){(0,r.Z)(this,e),this.vsWorker=t,this.req=n,this.eventName=i,this.arg=o,this.type=2})),q=(0,o.Z)((function e(t,n,i){(0,r.Z)(this,e),this.vsWorker=t,this.req=n,this.event=i,this.type=3})),$=(0,o.Z)((function e(t,n){(0,r.Z)(this,e),this.vsWorker=t,this.req=n,this.type=4})),X=function(){function e(t){(0,r.Z)(this,e),this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}return(0,o.Z)(e,[{key:"setWorkerId",value:function(e){this._workerId=e}},{key:"sendMessage",value:function(e,t){var n=this,i=String(++this._lastSentReq);return new Promise((function(r,o){n._pendingReplies[i]={resolve:r,reject:o},n._send(new G(n._workerId,i,e,t))}))}},{key:"listen",value:function(e,t){var n=this,i=null,r=new s.Q5({onFirstListenerAdd:function(){i=String(++n._lastSentReq),n._pendingEmitters.set(i,r),n._send(new Y(n._workerId,i,e,t))},onLastListenerRemove:function(){n._pendingEmitters.delete(i),n._send(new $(n._workerId,i)),i=null}});return r.event}},{key:"handleMessage",value:function(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}},{key:"_handleMessage",value:function(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}},{key:"_handleReplyMessage",value:function(e){if(this._pendingReplies[e.seq]){var t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){var n=e.err;return e.err.$isError&&((n=new Error).name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}else console.warn("Got reply to unknown seq")}},{key:"_handleRequestMessage",value:function(e){var t=this,n=e.req;this._handler.handleMessage(e.method,e.args).then((function(e){t._send(new K(t._workerId,n,e,void 0))}),(function(e){e.detail instanceof Error&&(e.detail=(0,H.ri)(e.detail)),t._send(new K(t._workerId,n,void 0,(0,H.ri)(e)))}))}},{key:"_handleSubscribeEventMessage",value:function(e){var t=this,n=e.req,i=this._handler.handleEvent(e.eventName,e.arg)((function(e){t._send(new q(t._workerId,n,e))}));this._pendingEvents.set(n,i)}},{key:"_handleEventMessage",value:function(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}},{key:"_handleUnsubscribeEventMessage",value:function(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}},{key:"_send",value:function(e){var t=[];if(0===e.type)for(var n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}]),e}(),Q=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o){var a;(0,r.Z)(this,n),a=t.call(this);var s=null;a._worker=a._register(e.create("vs/base/common/worker/simpleWorker",(function(e){a._protocol.handleMessage(e)}),(function(e){null===s||void 0===s||s(e)}))),a._protocol=new X({sendMessage:function(e,t){a._worker.postMessage(e,t)},handleMessage:function(e,t){if("function"!==typeof o[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(o[e].apply(o,t))}catch(n){return Promise.reject(n)}},handleEvent:function(e,t){if(ee(e)){var n=o[e].call(o,t);if("function"!==typeof n)throw new Error("Missing dynamic event ".concat(e," on main thread host."));return n}if(J(e)){var i=o[e];if("function"!==typeof i)throw new Error("Missing event ".concat(e," on main thread host."));return i}throw new Error("Malformed event name ".concat(e))}}),a._protocol.setWorkerId(a._worker.getId());var l=null;"undefined"!==typeof z.li.require&&"function"===typeof z.li.require.getConfig?l=z.li.require.getConfig():"undefined"!==typeof z.li.requirejs&&(l=z.li.requirejs.s.contexts._.config);var c=j.$E(o);a._onModuleLoaded=a._protocol.sendMessage(V,[a._worker.getId(),JSON.parse(JSON.stringify(l)),i,c]);var u=function(e,t){return a._request(e,t)},d=function(e,t){return a._protocol.listen(e,t)};return a._lazyProxy=new Promise((function(e,t){s=t,a._onModuleLoaded.then((function(t){e(te(t,u,d))}),(function(e){t(e),a._onError("Worker failed to load "+i,e)}))})),a}return(0,o.Z)(n,[{key:"getProxyObject",value:function(){return this._lazyProxy}},{key:"_request",value:function(e,t){var n=this;return new Promise((function(i,r){n._onModuleLoaded.then((function(){n._protocol.sendMessage(e,t).then(i,r)}),r)}))}},{key:"_onError",value:function(e,t){console.error(e),console.info(t)}}]),n}(y.JT);function J(e){return"o"===e[0]&&"n"===e[1]&&_.df(e.charCodeAt(2))}function ee(e){return/^onDynamic/.test(e)&&_.df(e.charCodeAt(9))}function te(e,t,n){var i,r=function(e){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},o=function(e){return function(t){return n(e,t)}},a={},s=(0,Z.Z)(e);try{for(s.s();!(i=s.n()).done;){var l=i.value;ee(l)?a[l]=o(l):J(l)?a[l]=n(l,void 0):a[l]=r(l)}}catch(c){s.e(c)}finally{s.f()}return a}var ne;var ie=null===(ne=window.trustedTypes)||void 0===ne?void 0:ne.createPolicy("defaultWorkerFactory",{createScriptURL:function(e){return e}});var re=function(){function e(t,n,i,o,a){(0,r.Z)(this,e),this.id=n;var s=function(e){if(z.li.MonacoEnvironment){if("function"===typeof z.li.MonacoEnvironment.getWorker)return z.li.MonacoEnvironment.getWorker("workerMain.js",e);if("function"===typeof z.li.MonacoEnvironment.getWorkerUrl){var t=z.li.MonacoEnvironment.getWorkerUrl("workerMain.js",e);return new Worker(ie?ie.createScriptURL(t):t,{name:e})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}(i);"function"===typeof s.then?this.worker=s:this.worker=Promise.resolve(s),this.postMessage(t,[]),this.worker.then((function(e){e.onmessage=function(e){o(e.data)},e.onmessageerror=a,"function"===typeof e.addEventListener&&e.addEventListener("error",a)}))}return(0,o.Z)(e,[{key:"getId",value:function(){return this.id}},{key:"postMessage",value:function(e,t){var n;null===(n=this.worker)||void 0===n||n.then((function(n){return n.postMessage(e,t)}))}},{key:"dispose",value:function(){var e;null===(e=this.worker)||void 0===e||e.then((function(e){return e.terminate()})),this.worker=null}}]),e}(),oe=function(){function e(t){(0,r.Z)(this,e),this._label=t,this._webWorkerFailedBeforeError=!1}return(0,o.Z)(e,[{key:"create",value:function(t,n,i){var r=this,o=++e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new re(t,o,this._label||"anonymous"+o,n,(function(e){U(e),r._webWorkerFailedBeforeError=e,i(e)}))}}]),e}();oe.LAST_WORKER_ID=0;var ae=n(4942),se=n(7208);function le(e,t,n,i){return new se.Hs(e,t,n).ComputeDiff(i)}var ce=function(){function e(t){(0,r.Z)(this,e);for(var n=[],i=[],o=0,a=t.length;o<a;o++)n[o]=pe(t[o],1),i[o]=ge(t[o],1);this.lines=t,this._startColumns=n,this._endColumns=i}return(0,o.Z)(e,[{key:"getElements",value:function(){for(var e=[],t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}},{key:"getStrictElement",value:function(e){return this.lines[e]}},{key:"getStartLineNumber",value:function(e){return e+1}},{key:"getEndLineNumber",value:function(e){return e+1}},{key:"createCharSequence",value:function(e,t,n){for(var i=[],r=[],o=[],a=0,s=t;s<=n;s++){for(var l=this.lines[s],c=e?this._startColumns[s]:1,u=e?this._endColumns[s]:l.length+1,d=c;d<u;d++)i[a]=l.charCodeAt(d-1),r[a]=s+1,o[a]=d,a++;!e&&s<n&&(i[a]=10,r[a]=s+1,o[a]=l.length+1,a++)}return new ue(i,r,o)}}]),e}(),ue=function(){function e(t,n,i){(0,r.Z)(this,e),this._charCodes=t,this._lineNumbers=n,this._columns=i}return(0,o.Z)(e,[{key:"toString",value:function(){var e=this;return"["+this._charCodes.map((function(t,n){return(10===t?"\\n":String.fromCharCode(t))+"-(".concat(e._lineNumbers[n],",").concat(e._columns[n],")")})).join(", ")+"]"}},{key:"_assertIndex",value:function(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}},{key:"getElements",value:function(){return this._charCodes}},{key:"getStartLineNumber",value:function(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}},{key:"getEndLineNumber",value:function(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}},{key:"getStartColumn",value:function(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}},{key:"getEndColumn",value:function(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}]),e}(),de=function(){function e(t,n,i,o,a,s,l,c){(0,r.Z)(this,e),this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=i,this.originalEndColumn=o,this.modifiedStartLineNumber=a,this.modifiedStartColumn=s,this.modifiedEndLineNumber=l,this.modifiedEndColumn=c}return(0,o.Z)(e,null,[{key:"createFromDiffChange",value:function(t,n,i){return new e(n.getStartLineNumber(t.originalStart),n.getStartColumn(t.originalStart),n.getEndLineNumber(t.originalStart+t.originalLength-1),n.getEndColumn(t.originalStart+t.originalLength-1),i.getStartLineNumber(t.modifiedStart),i.getStartColumn(t.modifiedStart),i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),i.getEndColumn(t.modifiedStart+t.modifiedLength-1))}}]),e}();var he=function(){function e(t,n,i,o,a){(0,r.Z)(this,e),this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=o,this.charChanges=a}return(0,o.Z)(e,null,[{key:"createFromDiffResult",value:function(t,n,i,r,o,a,s){var l,c,u,d,h=void 0;if(0===n.originalLength?(l=i.getStartLineNumber(n.originalStart)-1,c=0):(l=i.getStartLineNumber(n.originalStart),c=i.getEndLineNumber(n.originalStart+n.originalLength-1)),0===n.modifiedLength?(u=r.getStartLineNumber(n.modifiedStart)-1,d=0):(u=r.getStartLineNumber(n.modifiedStart),d=r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&o()){var f=i.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),p=r.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(f.getElements().length>0&&p.getElements().length>0){var g=le(f,p,o,!0).changes;s&&(g=function(e){if(e.length<=1)return e;for(var t=[e[0]],n=t[0],i=1,r=e.length;i<r;i++){var o=e[i],a=o.originalStart-(n.originalStart+n.originalLength),s=o.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,s)<3?(n.originalLength=o.originalStart+o.originalLength-n.originalStart,n.modifiedLength=o.modifiedStart+o.modifiedLength-n.modifiedStart):(t.push(o),n=o)}return t}(g)),h=[];for(var v=0,m=g.length;v<m;v++)h.push(de.createFromDiffChange(g[v],f,p))}}return new e(l,c,u,d,h)}}]),e}(),fe=function(){function e(t,n,i){(0,r.Z)(this,e),this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new ce(t),this.modified=new ce(n),this.continueLineDiff=ve(i.maxComputationTime),this.continueCharDiff=ve(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}return(0,o.Z)(e,[{key:"computeDiff",value:function(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};var e=le(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var i=[],r=0,o=t.length;r<o;r++)i.push(he.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[r],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:i}}for(var a=[],s=0,l=0,c=-1,u=t.length;c<u;c++){for(var d=c+1<u?t[c+1]:null,h=d?d.originalStart:this.originalLines.length,f=d?d.modifiedStart:this.modifiedLines.length;s<h&&l<f;){var p=this.originalLines[s],g=this.modifiedLines[l];if(p!==g){for(var v=pe(p,1),m=pe(g,1);v>1&&m>1;){if(p.charCodeAt(v-2)!==g.charCodeAt(m-2))break;v--,m--}(v>1||m>1)&&this._pushTrimWhitespaceCharChange(a,s+1,1,v,l+1,1,m);for(var y=ge(p,1),_=ge(g,1),b=p.length+1,C=g.length+1;y<b&&_<C;){if(p.charCodeAt(y-1)!==p.charCodeAt(_-1))break;y++,_++}(y<b||_<C)&&this._pushTrimWhitespaceCharChange(a,s+1,y,b,l+1,_,C)}s++,l++}d&&(a.push(he.createFromDiffResult(this.shouldIgnoreTrimWhitespace,d,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=d.originalLength,l+=d.modifiedLength)}return{quitEarly:n,changes:a}}},{key:"_pushTrimWhitespaceCharChange",value:function(e,t,n,i,r,o,a){if(!this._mergeTrimWhitespaceCharChange(e,t,n,i,r,o,a)){var s=void 0;this.shouldComputeCharChanges&&(s=[new de(t,n,t,i,r,o,r,a)]),e.push(new he(t,t,r,r,s))}}},{key:"_mergeTrimWhitespaceCharChange",value:function(e,t,n,i,r,o,a){var s=e.length;if(0===s)return!1;var l=e[s-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new de(t,n,t,i,r,o,r,a)),!0))}}]),e}();function pe(e,t){var n=_.LC(e);return-1===n?t:n+1}function ge(e,t){var n=_.ow(e);return-1===n?t:n+2}function ve(e){if(0===e)return function(){return!0};var t=Date.now();return function(){return Date.now()-t<e}}var me=n(33679),ye=function(){function e(t,n,i,o){(0,r.Z)(this,e),this._uri=t,this._lines=n,this._eol=i,this._versionId=o,this._lineStarts=null,this._cachedTextValue=null}return(0,o.Z)(e,[{key:"dispose",value:function(){this._lines.length=0}},{key:"version",get:function(){return this._versionId}},{key:"getText",value:function(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}},{key:"onEvents",value:function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);var t,n=e.changes,i=(0,Z.Z)(n);try{for(i.s();!(t=i.n()).done;){var r=t.value;this._acceptDeleteRange(r.range),this._acceptInsertText(new u.L(r.range.startLineNumber,r.range.startColumn),r.text)}}catch(o){i.e(o)}finally{i.f()}this._versionId=e.versionId,this._cachedTextValue=null}},{key:"_ensureLineStarts",value:function(){if(!this._lineStarts){for(var e=this._eol.length,t=this._lines.length,n=new Uint32Array(t),i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new me.oQ(n)}}},{key:"_setLineText",value:function(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}},{key:"_acceptDeleteRange",value:function(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}},{key:"_acceptInsertText",value:function(e,t){if(0!==t.length){var n=(0,_.uq)(t);if(1!==n.length){n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);for(var i=new Uint32Array(n.length-1),r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}else this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1))}}}]),e}(),_e=n(37591),be=n(29439),Ce=n(54410),Se=function(){function e(t,n,i){(0,r.Z)(this,e);for(var o=new Uint8Array(t*n),a=0,s=t*n;a<s;a++)o[a]=i;this._data=o,this.rows=t,this.cols=n}return(0,o.Z)(e,[{key:"get",value:function(e,t){return this._data[e*this.cols+t]}},{key:"set",value:function(e,t,n){this._data[e*this.cols+t]=n}}]),e}(),we=function(){function e(t){(0,r.Z)(this,e);for(var n=0,i=0,o=0,a=t.length;o<a;o++){var s=(0,be.Z)(t[o],3),l=s[0],c=s[1],u=s[2];c>n&&(n=c),l>i&&(i=l),u>i&&(i=u)}n++,i++;for(var d=new Se(i,n,0),h=0,f=t.length;h<f;h++){var p=(0,be.Z)(t[h],3),g=p[0],v=p[1],m=p[2];d.set(g,v,m)}this._states=d,this._maxCharCode=n}return(0,o.Z)(e,[{key:"nextState",value:function(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}]),e}(),ke=null;function xe(){return null===ke&&(ke=new we([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),ke}var Ee=null;function Te(){if(null===Ee){Ee=new Ce.N(0);for(var e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026",t=0;t<e.length;t++)Ee.set(e.charCodeAt(t),1);for(var n=".,;:",i=0;i<n.length;i++)Ee.set(n.charCodeAt(i),2)}return Ee}var Ne=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,null,[{key:"_createLink",value:function(e,t,n,i,r){var o=r-1;do{var a=t.charCodeAt(o);if(2!==e.get(a))break;o--}while(o>i);if(i>0){var s=t.charCodeAt(i-1),l=t.charCodeAt(o);(40===s&&41===l||91===s&&93===l||123===s&&125===l)&&o--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:o+2},url:t.substring(i,o+1)}}},{key:"computeLinks",value:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xe(),i=Te(),r=[],o=1,a=t.getLineCount();o<=a;o++){for(var s=t.getLineContent(o),l=s.length,c=0,u=0,d=0,h=1,f=!1,p=!1,g=!1,v=!1;c<l;){var m=!1,y=s.charCodeAt(c);if(13===h){var _=void 0;switch(y){case 40:f=!0,_=0;break;case 41:_=f?0:1;break;case 91:g=!0,p=!0,_=0;break;case 93:g=!1,_=p?0:1;break;case 123:v=!0,_=0;break;case 125:_=v?0:1;break;case 39:_=39===d?1:0;break;case 34:_=34===d?1:0;break;case 96:_=96===d?1:0;break;case 42:_=42===d?1:0;break;case 124:_=124===d?1:0;break;case 32:_=g?0:1;break;default:_=i.get(y)}1===_&&(r.push(e._createLink(i,s,o,u,c)),m=!0)}else if(12===h){var b=void 0;91===y?(p=!0,b=0):b=i.get(y),1===b?m=!0:h=13}else 0===(h=n.nextState(h,y))&&(m=!0);m&&(h=1,f=!1,p=!1,v=!1,u=c+1,d=y),c++}13===h&&r.push(e._createLink(i,s,o,u,l))}return r}}]),e}();function Ie(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?Ne.computeLinks(e):[]}var De=function(){function e(){(0,r.Z)(this,e),this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return(0,o.Z)(e,[{key:"navigateValueSet",value:function(e,t,n,i,r){if(e&&t){var o=this.doNavigateValueSet(t,r);if(o)return{range:e,value:o}}if(n&&i){var a=this.doNavigateValueSet(i,r);if(a)return{range:n,value:a}}return null}},{key:"doNavigateValueSet",value:function(e,t){var n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}},{key:"numberReplace",value:function(e,t){var n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),i=Number(e),r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}},{key:"textReplace",value:function(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}},{key:"valueSetsReplace",value:function(e,t,n){for(var i=null,r=0,o=e.length;null===i&&r<o;r++)i=this.valueSetReplace(e[r],t,n);return i}},{key:"valueSetReplace",value:function(e,t,n){var i=e.indexOf(t);return i>=0?((i+=n?1:-1)<0?i=e.length-1:i%=e.length,e[i]):null}}]),e}();De.INSTANCE=new De;var Le=n(25),Oe=n(42454),Re=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},Ae=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"uri",get:function(){return this._uri}},{key:"eol",get:function(){return this._eol}},{key:"getValue",value:function(){return this.getText()}},{key:"getLinesContent",value:function(){return this._lines.slice(0)}},{key:"getLineCount",value:function(){return this._lines.length}},{key:"getLineContent",value:function(e){return this._lines[e-1]}},{key:"getWordAtPosition",value:function(e,t){var n=(0,_e.t2)(e.column,(0,_e.eq)(t),this._lines[e.lineNumber-1],0);return n?new d.e(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}},{key:"words",value:function(e){var t=this._lines,n=this._wordenize.bind(this),i=0,r="",o=0,a=[];return(0,ae.Z)({},Symbol.iterator,(0,F.Z)().mark((function s(){var l;return(0,F.Z)().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!(o<a.length)){s.next=8;break}return l=r.substring(a[o].start,a[o].end),o+=1,s.next=6,l;case 6:s.next=16;break;case 8:if(!(i<t.length)){s.next=15;break}r=t[i],a=n(r,e),o=0,i+=1,s.next=16;break;case 15:return s.abrupt("break",18);case 16:s.next=0;break;case 18:case"end":return s.stop()}}),s)})))}},{key:"getLineWords",value:function(e,t){var n,i=this._lines[e-1],r=this._wordenize(i,t),o=[],a=(0,Z.Z)(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;o.push({word:i.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1})}}catch(l){a.e(l)}finally{a.f()}return o}},{key:"_wordenize",value:function(e,t){var n,i=[];for(t.lastIndex=0;(n=t.exec(e))&&0!==n[0].length;)i.push({start:n.index,end:n.index+n[0].length});return i}},{key:"getValueInRange",value:function(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(var o=n+1;o<i;o++)r.push(this._lines[o]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)}},{key:"offsetAt",value:function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}},{key:"positionAt",value:function(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();var t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}},{key:"_validateRange",value:function(e){var t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}},{key:"_validatePosition",value:function(e){if(!u.L.isIPosition(e))throw new Error("bad position");var t=e.lineNumber,n=e.column,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{var r=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>r&&(n=r,i=!0)}return i?{lineNumber:t,column:n}:e}}]),n}(ye),Me=function(){function e(t,n){(0,r.Z)(this,e),this._host=t,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}return(0,o.Z)(e,[{key:"dispose",value:function(){this._models=Object.create(null)}},{key:"_getModel",value:function(e){return this._models[e]}},{key:"_getModels",value:function(){var e=this,t=[];return Object.keys(this._models).forEach((function(n){return t.push(e._models[n])})),t}},{key:"acceptNewModel",value:function(e){this._models[e.url]=new Ae(c.o.parse(e.url),e.lines,e.EOL,e.versionId)}},{key:"acceptModelChanged",value:function(e,t){this._models[e]&&this._models[e].onEvents(t)}},{key:"acceptRemovedModel",value:function(e){this._models[e]&&delete this._models[e]}},{key:"computeUnicodeHighlights",value:function(e,t,n){return Re(this,void 0,void 0,(0,F.Z)().mark((function i(){var r;return(0,F.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(r=this._getModel(e)){i.next=3;break}return i.abrupt("return",{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0});case 3:return i.abrupt("return",Oe.a.computeUnicodeHighlights(r,t,n));case 4:case"end":return i.stop()}}),i,this)})))}},{key:"computeDiff",value:function(t,n,i,r){return Re(this,void 0,void 0,(0,F.Z)().mark((function o(){var a,s;return(0,F.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=this._getModel(t),s=this._getModel(n),a&&s){o.next=4;break}return o.abrupt("return",null);case 4:return o.abrupt("return",e.computeDiff(a,s,i,r));case 5:case"end":return o.stop()}}),o,this)})))}},{key:"computeMoreMinimalEdits",value:function(t,n){return Re(this,void 0,void 0,(0,F.Z)().mark((function i(){var r,o,a,s,l,c,u,h,f,p,g,v,m,y,_,b,C,S;return(0,F.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(r=this._getModel(t)){i.next=3;break}return i.abrupt("return",n);case 3:o=[],a=void 0,n=n.slice(0).sort((function(e,t){return e.range&&t.range?d.e.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)})),s=(0,Z.Z)(n),i.prev=7,s.s();case 9:if((l=s.n()).done){i.next=27;break}if(c=l.value,u=c.range,h=c.text,"number"===typeof(f=c.eol)&&(a=f),!d.e.isEmpty(u)||h){i.next=14;break}return i.abrupt("continue",25);case 14:if(p=r.getValueInRange(u),h=h.replace(/\r\n|\n|\r/g,r.eol),p!==h){i.next=18;break}return i.abrupt("continue",25);case 18:if(!(Math.max(h.length,p.length)>e._diffLimit)){i.next=21;break}return o.push({range:u,text:h}),i.abrupt("continue",25);case 21:g=(0,se.a$)(p,h,!1),v=r.offsetAt(d.e.lift(u).getStartPosition()),m=(0,Z.Z)(g);try{for(m.s();!(y=m.n()).done;)_=y.value,b=r.positionAt(v+_.originalStart),C=r.positionAt(v+_.originalStart+_.originalLength),S={text:h.substr(_.modifiedStart,_.modifiedLength),range:{startLineNumber:b.lineNumber,startColumn:b.column,endLineNumber:C.lineNumber,endColumn:C.column}},r.getValueInRange(S.range)!==S.text&&o.push(S)}catch(w){m.e(w)}finally{m.f()}case 25:i.next=9;break;case 27:i.next=32;break;case 29:i.prev=29,i.t0=i.catch(7),s.e(i.t0);case 32:return i.prev=32,s.f(),i.finish(32);case 35:return"number"===typeof a&&o.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i.abrupt("return",o);case 37:case"end":return i.stop()}}),i,this,[[7,29,32,35]])})))}},{key:"computeLinks",value:function(e){return Re(this,void 0,void 0,(0,F.Z)().mark((function t(){var n;return(0,F.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this._getModel(e)){t.next=3;break}return t.abrupt("return",null);case 3:return t.abrupt("return",Ie(n));case 4:case"end":return t.stop()}}),t,this)})))}},{key:"textualSuggest",value:function(t,n,i,r){return Re(this,void 0,void 0,(0,F.Z)().mark((function o(){var a,s,l,c,u,d,h,f,p,g;return(0,F.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:a=new Le.G(!0),s=new RegExp(i,r),l=new Set,c=(0,Z.Z)(t),o.prev=4,c.s();case 6:if((u=c.n()).done){o.next=33;break}if(d=u.value,h=this._getModel(d)){o.next=11;break}return o.abrupt("continue",31);case 11:f=(0,Z.Z)(h.words(s)),o.prev=12,f.s();case 14:if((p=f.n()).done){o.next=23;break}if((g=p.value)!==n&&isNaN(Number(g))){o.next=18;break}return o.abrupt("continue",21);case 18:if(l.add(g),!(l.size>e._suggestionsLimit)){o.next=21;break}return o.abrupt("break",33);case 21:o.next=14;break;case 23:o.next=28;break;case 25:o.prev=25,o.t0=o.catch(12),f.e(o.t0);case 28:return o.prev=28,f.f(),o.finish(28);case 31:o.next=6;break;case 33:o.next=38;break;case 35:o.prev=35,o.t1=o.catch(4),c.e(o.t1);case 38:return o.prev=38,c.f(),o.finish(38);case 41:return o.abrupt("return",{words:Array.from(l),duration:a.elapsed()});case 42:case"end":return o.stop()}}),o,this,[[4,35,38,41],[12,25,28,31]])})))}},{key:"computeWordRanges",value:function(e,t,n,i){return Re(this,void 0,void 0,(0,F.Z)().mark((function r(){var o,a,s,l,c,u,d,h,f;return(0,F.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=this._getModel(e)){r.next=3;break}return r.abrupt("return",Object.create(null));case 3:a=new RegExp(n,i),s=Object.create(null),l=t.startLineNumber;case 6:if(!(l<t.endLineNumber)){r.next=31;break}c=o.getLineWords(l,a),u=(0,Z.Z)(c),r.prev=9,u.s();case 11:if((d=u.n()).done){r.next=20;break}if(h=d.value,isNaN(Number(h.word))){r.next=15;break}return r.abrupt("continue",18);case 15:(f=s[h.word])||(f=[],s[h.word]=f),f.push({startLineNumber:l,startColumn:h.startColumn,endLineNumber:l,endColumn:h.endColumn});case 18:r.next=11;break;case 20:r.next=25;break;case 22:r.prev=22,r.t0=r.catch(9),u.e(r.t0);case 25:return r.prev=25,u.f(),r.finish(25);case 28:l++,r.next=6;break;case 31:return r.abrupt("return",s);case 32:case"end":return r.stop()}}),r,this,[[9,22,25,28]])})))}},{key:"navigateValueSet",value:function(e,t,n,i,r){return Re(this,void 0,void 0,(0,F.Z)().mark((function o(){var a,s,l,c,u,d;return(0,F.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=this._getModel(e)){o.next=3;break}return o.abrupt("return",null);case 3:if(s=new RegExp(i,r),t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1}),l=a.getValueInRange(t),c=a.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s)){o.next=9;break}return o.abrupt("return",null);case 9:return u=a.getValueInRange(c),d=De.INSTANCE.navigateValueSet(t,l,c,u,n),o.abrupt("return",d);case 12:case"end":return o.stop()}}),o,this)})))}},{key:"loadForeignModule",value:function(e,t,n){var i=this,r={host:j.IU(n,(function(e,t){return i._host.fhr(e,t)})),getMirrorModels:function(){return i._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve(j.$E(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}},{key:"fmr",value:function(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}],[{key:"computeDiff",value:function(e,t,n,i){var r=e.getLinesContent(),o=t.getLinesContent(),a=new fe(r,o,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}).computeDiff(),s=!(a.changes.length>0)&&this._modelsAreIdentical(e,t);return{quitEarly:a.quitEarly,identical:s,changes:a.changes}}},{key:"_modelsAreIdentical",value:function(e,t){var n=e.getLineCount();if(n!==t.getLineCount())return!1;for(var i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}}]),e}();Me._diffLimit=1e5,Me._suggestionsLimit=1e4,"function"===typeof importScripts&&(z.li.monaco=v());var Pe=n(56903),Ze=n(29671),Fe=n(11561),Be=n(53584),He=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ze=function(e,t){return function(n,i){t(n,i,e)}},je=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},Ve=3e5;function We(e,t){var n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}var Ue=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,s){var l;return(0,r.Z)(this,n),(l=t.call(this))._modelService=e,l._workerManager=l._register(new Ke(l._modelService,a)),l._logService=o,l._register(s.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:function(e,t){return We(l._modelService,e.uri)?l._workerManager.withWorker().then((function(t){return t.computeLinks(e.uri)})).then((function(e){return e&&{links:e}})):Promise.resolve({links:[]})}})),l._register(s.completionProvider.register("*",new Ge(l._workerManager,i,l._modelService,a))),l}return(0,o.Z)(n,[{key:"dispose",value:function(){(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this)}},{key:"canComputeUnicodeHighlights",value:function(e){return We(this._modelService,e)}},{key:"computedUnicodeHighlights",value:function(e,t,n){return this._workerManager.withWorker().then((function(i){return i.computedUnicodeHighlights(e,t,n)}))}},{key:"computeDiff",value:function(e,t,n,i){return this._workerManager.withWorker().then((function(r){return r.computeDiff(e,t,n,i)}))}},{key:"computeMoreMinimalEdits",value:function(e,t){var n=this;if((0,Ze.Of)(t)){if(!We(this._modelService,e))return Promise.resolve(t);var i=Le.G.create(!0),r=this._workerManager.withWorker().then((function(n){return n.computeMoreMinimalEdits(e,t)}));return r.finally((function(){return n._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())})),Promise.race([r,(0,B.Vs)(1e3).then((function(){return t}))])}return Promise.resolve(void 0)}},{key:"canNavigateValueSet",value:function(e){return We(this._modelService,e)}},{key:"navigateValueSet",value:function(e,t,n){return this._workerManager.withWorker().then((function(i){return i.navigateValueSet(e,t,n)}))}},{key:"canComputeWordRanges",value:function(e){return We(this._modelService,e)}},{key:"computeWordRanges",value:function(e,t){return this._workerManager.withWorker().then((function(n){return n.computeWordRanges(e,t)}))}}]),n}(y.JT);Ue=He([ze(0,P.q),ze(1,Pe.V),ze(2,Fe.VZ),ze(3,R.c_),ze(4,Be.p)],Ue);var Ge=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.languageConfigurationService=o,this._debugDisplayName="wordbasedCompletions",this._workerManager=t,this._configurationService=n,this._modelService=i}return(0,o.Z)(e,[{key:"provideCompletionItems",value:function(e,t){return je(this,void 0,void 0,(0,F.Z)().mark((function n(){var i,r,o,a,s,l,c,u,h,f,p;return(0,F.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((i=this._configurationService.getValue(e.uri,t,"editor")).wordBasedSuggestions){n.next=3;break}return n.abrupt("return",void 0);case 3:if(r=[],"currentDocument"!==i.wordBasedSuggestionsMode){n.next=8;break}We(this._modelService,e.uri)&&r.push(e.uri),n.next=26;break;case 8:o=(0,Z.Z)(this._modelService.getModels()),n.prev=9,o.s();case 11:if((a=o.n()).done){n.next=18;break}if(s=a.value,We(this._modelService,s.uri)){n.next=15;break}return n.abrupt("continue",16);case 15:s===e?r.unshift(s.uri):"allDocuments"!==i.wordBasedSuggestionsMode&&s.getLanguageId()!==e.getLanguageId()||r.push(s.uri);case 16:n.next=11;break;case 18:n.next=23;break;case 20:n.prev=20,n.t0=n.catch(9),o.e(n.t0);case 23:return n.prev=23,o.f(),n.finish(23);case 26:if(0!==r.length){n.next=28;break}return n.abrupt("return",void 0);case 28:return l=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),c=e.getWordAtPosition(t),u=c?new d.e(t.lineNumber,c.startColumn,t.lineNumber,c.endColumn):d.e.fromPositions(t),h=u.setEndPosition(t.lineNumber,t.column),n.next=34,this._workerManager.withWorker();case 34:return f=n.sent,n.next=37,f.textualSuggest(r,null===c||void 0===c?void 0:c.word,l);case 37:if(p=n.sent){n.next=40;break}return n.abrupt("return",void 0);case 40:return n.abrupt("return",{duration:p.duration,suggestions:p.words.map((function(e){return{kind:18,label:e,insertText:e,range:{insert:h,replace:u}}}))});case 41:case"end":return n.stop()}}),n,this,[[9,20,23,26]])})))}}]),e}(),Ke=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).languageConfigurationService=i,o._modelService=e,o._editorWorkerClient=null,o._lastWorkerUsedTime=(new Date).getTime(),o._register(new B.zh).cancelAndSet((function(){return o._checkStopIdleWorker()}),Math.round(15e4)),o._register(o._modelService.onModelRemoved((function(e){return o._checkStopEmptyWorker()}))),o}return(0,o.Z)(n,[{key:"dispose",value:function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this)}},{key:"_checkStopEmptyWorker",value:function(){this._editorWorkerClient&&(0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null))}},{key:"_checkStopIdleWorker",value:function(){this._editorWorkerClient&&((new Date).getTime()-this._lastWorkerUsedTime>Ve&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null))}},{key:"withWorker",value:function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Xe(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}]),n}(y.JT),Ye=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o){var a;if((0,r.Z)(this,n),(a=t.call(this))._syncedModels=Object.create(null),a._syncedModelsLastUsedTime=Object.create(null),a._proxy=e,a._modelService=i,!o){var s=new B.zh;s.cancelAndSet((function(){return a._checkStopModelSync()}),Math.round(3e4)),a._register(s)}return a}return(0,o.Z)(n,[{key:"dispose",value:function(){for(var e in this._syncedModels)(0,y.B9)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this)}},{key:"ensureSyncedResources",value:function(e,t){var n,i=(0,Z.Z)(e);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.toString();this._syncedModels[o]||this._beginModelSync(r,t),this._syncedModels[o]&&(this._syncedModelsLastUsedTime[o]=(new Date).getTime())}}catch(a){i.e(a)}finally{i.f()}}},{key:"_checkStopModelSync",value:function(){var e=(new Date).getTime(),t=[];for(var n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>6e4&&t.push(n)}for(var i=0,r=t;i<r.length;i++){var o=r[i];this._stopModelSync(o)}}},{key:"_beginModelSync",value:function(e,t){var n=this,i=this._modelService.getModel(e);if(i&&(t||!i.isTooLargeForSyncing())){var r=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});var o=new y.SL;o.add(i.onDidChangeContent((function(e){n._proxy.acceptModelChanged(r.toString(),e)}))),o.add(i.onWillDispose((function(){n._stopModelSync(r)}))),o.add((0,y.OF)((function(){n._proxy.acceptRemovedModel(r)}))),this._syncedModels[r]=o}}},{key:"_stopModelSync",value:function(e){var t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,y.B9)(t)}}]),n}(y.JT),qe=function(){function e(t){(0,r.Z)(this,e),this._instance=t,this._proxyObj=Promise.resolve(this._instance)}return(0,o.Z)(e,[{key:"dispose",value:function(){this._instance.dispose()}},{key:"getProxyObject",value:function(){return this._proxyObj}}]),e}(),$e=function(){function e(t){(0,r.Z)(this,e),this._workerClient=t}return(0,o.Z)(e,[{key:"fhr",value:function(e,t){return this._workerClient.fhr(e,t)}}]),e}(),Xe=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a){var s;return(0,r.Z)(this,n),(s=t.call(this)).languageConfigurationService=a,s._disposed=!1,s._modelService=e,s._keepIdleModels=i,s._workerFactory=new oe(o),s._worker=null,s._modelManager=null,s}return(0,o.Z)(n,[{key:"fhr",value:function(e,t){throw new Error("Not implemented!")}},{key:"_getOrCreateWorker",value:function(){if(!this._worker)try{this._worker=this._register(new Q(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new $e(this)))}catch(e){U(e),this._worker=new qe(new Me(new $e(this),null))}return this._worker}},{key:"_getProxy",value:function(){var e=this;return this._getOrCreateWorker().getProxyObject().then(void 0,(function(t){return U(t),e._worker=new qe(new Me(new $e(e),null)),e._getOrCreateWorker().getProxyObject()}))}},{key:"_getOrCreateModelManager",value:function(e){return this._modelManager||(this._modelManager=this._register(new Ye(e,this._modelService,this._keepIdleModels))),this._modelManager}},{key:"_withSyncedResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return je(this,void 0,void 0,(0,F.Z)().mark((function n(){var i=this;return(0,F.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this._disposed){n.next=2;break}return n.abrupt("return",Promise.reject((0,H.F0)()));case 2:return n.abrupt("return",this._getProxy().then((function(n){return i._getOrCreateModelManager(n).ensureSyncedResources(e,t),n})));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"computedUnicodeHighlights",value:function(e,t,n){return this._withSyncedResources([e]).then((function(i){return i.computeUnicodeHighlights(e.toString(),t,n)}))}},{key:"computeDiff",value:function(e,t,n,i){return this._withSyncedResources([e,t],!0).then((function(r){return r.computeDiff(e.toString(),t.toString(),n,i)}))}},{key:"computeMoreMinimalEdits",value:function(e,t){return this._withSyncedResources([e]).then((function(n){return n.computeMoreMinimalEdits(e.toString(),t)}))}},{key:"computeLinks",value:function(e){return this._withSyncedResources([e]).then((function(t){return t.computeLinks(e.toString())}))}},{key:"textualSuggest",value:function(e,t,n){return je(this,void 0,void 0,(0,F.Z)().mark((function i(){var r,o,a;return(0,F.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this._withSyncedResources(e);case 2:return r=i.sent,o=n.source,a=(0,_.mr)(n),i.abrupt("return",r.textualSuggest(e.map((function(e){return e.toString()})),t,o,a));case 6:case"end":return i.stop()}}),i,this)})))}},{key:"computeWordRanges",value:function(e,t){var n=this;return this._withSyncedResources([e]).then((function(i){var r=n._modelService.getModel(e);if(!r)return Promise.resolve(null);var o=n.languageConfigurationService.getLanguageConfiguration(r.getLanguageId()).getWordDefinition(),a=o.source,s=(0,_.mr)(o);return i.computeWordRanges(e.toString(),t,a,s)}))}},{key:"navigateValueSet",value:function(e,t,n){var i=this;return this._withSyncedResources([e]).then((function(r){var o=i._modelService.getModel(e);if(!o)return null;var a=i.languageConfigurationService.getLanguageConfiguration(o.getLanguageId()).getWordDefinition(),s=a.source,l=(0,_.mr)(a);return r.navigateValueSet(e.toString(),t,n,s,l)}))}},{key:"dispose",value:function(){(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this),this._disposed=!0}}]),n}(y.JT);var Qe=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o){var a;return(0,r.Z)(this,n),(a=t.call(this,e,o.keepIdleModels||!1,o.label,i))._foreignModuleId=o.moduleId,a._foreignModuleCreateData=o.createData||null,a._foreignModuleHost=o.host||null,a._foreignProxy=null,a}return(0,o.Z)(n,[{key:"fhr",value:function(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(n){return Promise.reject(n)}}},{key:"_getForeignProxy",value:function(){var e=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then((function(t){var n=e._foreignModuleHost?j.$E(e._foreignModuleHost):[];return t.loadForeignModule(e._foreignModuleId,e._foreignModuleCreateData,n).then((function(n){e._foreignModuleCreateData=null;var i,r=function(e,n){return t.fmr(e,n)},o=function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},a={},s=(0,Z.Z)(n);try{for(s.s();!(i=s.n()).done;){var l=i.value;a[l]=o(l,r)}}catch(c){s.e(c)}finally{s.f()}return a}))}))),this._foreignProxy}},{key:"getProxy",value:function(){return this._getForeignProxy()}},{key:"withSyncedResources",value:function(e){var t=this;return this._withSyncedResources(e).then((function(e){return t.getProxy()}))}}]),n}(Xe),Je=n(90532),et=n(15475),tt=n(53599);function nt(e){return!function(e){return Array.isArray(e)}(e)}function it(e){return"string"===typeof e}function rt(e){return!it(e)}function ot(e){return!e}function at(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function st(e){return e.replace(/[&<>'"_]/g,"-")}function lt(e,t){return new Error("".concat(e.languageId,": ").concat(t))}function ct(e,t,n,i,r){var o=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,a,s,l,c,u,d,h,f){return ot(s)?ot(l)?!ot(c)&&c<i.length?at(e,i[c]):!ot(d)&&e&&"string"===typeof e[d]?e[d]:(null===o&&(o=r.split(".")).unshift(r),!ot(u)&&u<o.length?at(e,o[u]):""):at(e,n):"$"}))}function ut(e,t){for(var n=t;n&&n.length>0;){var i=e.tokenizer[n];if(i)return i;var r=n.lastIndexOf(".");n=r<0?null:n.substr(0,r)}return null}var dt=n(87984),ht=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ft=function(e,t){return function(n,i){t(n,i,e)}},pt=function(){function e(t){(0,r.Z)(this,e),this._maxCacheDepth=t,this._entries=Object.create(null)}return(0,o.Z)(e,[{key:"create",value:function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new gt(e,t);var n=gt.getStackElementId(e);n.length>0&&(n+="|"),n+=t;var i=this._entries[n];return i||(i=new gt(e,t),this._entries[n]=i,i)}}],[{key:"create",value:function(e,t){return this._INSTANCE.create(e,t)}}]),e}();pt._INSTANCE=new pt(5);var gt=function(){function e(t,n){(0,r.Z)(this,e),this.parent=t,this.state=n,this.depth=(this.parent?this.parent.depth:0)+1}return(0,o.Z)(e,[{key:"equals",value:function(t){return e._equals(this,t)}},{key:"push",value:function(e){return pt.create(this,e)}},{key:"pop",value:function(){return this.parent}},{key:"popall",value:function(){for(var e=this;e.parent;)e=e.parent;return e}},{key:"switchTo",value:function(e){return pt.create(this.parent,e)}}],[{key:"getStackElementId",value:function(e){for(var t="";null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}},{key:"_equals",value:function(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}}]),e}(),vt=function(){function e(t,n){(0,r.Z)(this,e),this.languageId=t,this.state=n}return(0,o.Z)(e,[{key:"equals",value:function(e){return this.languageId===e.languageId&&this.state.equals(e.state)}},{key:"clone",value:function(){return this.state.clone()===this.state?this:new e(this.languageId,this.state)}}]),e}(),mt=function(){function e(t){(0,r.Z)(this,e),this._maxCacheDepth=t,this._entries=Object.create(null)}return(0,o.Z)(e,[{key:"create",value:function(e,t){if(null!==t)return new yt(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new yt(e,t);var n=gt.getStackElementId(e),i=this._entries[n];return i||(i=new yt(e,null),this._entries[n]=i,i)}}],[{key:"create",value:function(e,t){return this._INSTANCE.create(e,t)}}]),e}();mt._INSTANCE=new mt(5);var yt=function(){function e(t,n){(0,r.Z)(this,e),this.stack=t,this.embeddedLanguageData=n}return(0,o.Z)(e,[{key:"clone",value:function(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:mt.create(this.stack,this.embeddedLanguageData)}},{key:"equals",value:function(t){return t instanceof e&&(!!this.stack.equals(t.stack)&&(null===this.embeddedLanguageData&&null===t.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==t.embeddedLanguageData&&this.embeddedLanguageData.equals(t.embeddedLanguageData)))}}]),e}(),_t=function(){function e(){(0,r.Z)(this,e),this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}return(0,o.Z)(e,[{key:"enterLanguage",value:function(e){this._languageId=e}},{key:"emit",value:function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new f.WU(e,t,this._languageId)))}},{key:"nestedLanguageTokenize",value:function(e,t,n,i){var r=n.languageId,o=n.state,a=f.RW.get(r);if(!a)return this.enterLanguage(r),this.emit(i,""),o;var s=a.tokenize(e,t,o);if(0!==i){var l,c=(0,Z.Z)(s.tokens);try{for(c.s();!(l=c.n()).done;){var u=l.value;this._tokens.push(new f.WU(u.offset+i,u.type,u.language))}}catch(d){c.e(d)}finally{c.f()}}else this._tokens=this._tokens.concat(s.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,s.endState}},{key:"finalize",value:function(e){return new f.hG(this._tokens,e)}}]),e}(),bt=function(){function e(t,n){(0,r.Z)(this,e),this._languageService=t,this._theme=n,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return(0,o.Z)(e,[{key:"enterLanguage",value:function(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}},{key:"emit",value:function(e,t){var n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))}},{key:"nestedLanguageTokenize",value:function(t,n,i,r){var o=i.languageId,a=i.state,s=f.RW.get(o);if(!s)return this.enterLanguage(o),this.emit(r,""),a;var l=s.tokenizeEncoded(t,n,a);if(0!==r)for(var c=0,u=l.tokens.length;c<u;c+=2)l.tokens[c]+=r;return this._prependTokens=e._merge(this._prependTokens,this._tokens,l.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,l.endState}},{key:"finalize",value:function(t){return new f.DI(e._merge(this._prependTokens,this._tokens,null),t)}}],[{key:"_merge",value:function(e,t,n){var i=null!==e?e.length:0,r=t.length,o=null!==n?n.length:0;if(0===i&&0===r&&0===o)return new Uint32Array(0);if(0===i&&0===r)return n;if(0===r&&0===o)return e;var a=new Uint32Array(i+r+o);null!==e&&a.set(e);for(var s=0;s<r;s++)a[i+s]=t[s];return null!==n&&a.set(n,i+r),a}}]),e}(),Ct=function(){function e(t,n,i,o,a){var s=this;(0,r.Z)(this,e),this._configurationService=a,this._languageService=t,this._standaloneThemeService=n,this._languageId=i,this._lexer=o,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var l=!1;this._tokenizationRegistryListener=f.RW.onDidChange((function(e){if(!l){for(var t=!1,n=0,i=e.changedLanguages.length;n<i;n++){var r=e.changedLanguages[n];if(s._embeddedLanguages[r]){t=!0;break}}t&&(l=!0,f.RW.fire([s._languageId]),l=!1)}})),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._configurationService.onDidChangeConfiguration((function(e){e.affectsConfiguration("editor.maxTokenizationLineLength")&&(s._maxTokenizationLineLength=s._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:s._languageId}))}))}return(0,o.Z)(e,[{key:"dispose",value:function(){this._tokenizationRegistryListener.dispose()}},{key:"getLoadStatus",value:function(){var t=[];for(var n in this._embeddedLanguages){var i=f.RW.get(n);if(i){if(i instanceof e){var r=i.getLoadStatus();!1===r.loaded&&t.push(r.promise)}}else f.RW.isResolved(n)||t.push(f.RW.getOrCreate(n))}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then((function(e){}))}}},{key:"getInitialState",value:function(){var e=pt.create(null,this._lexer.start);return mt.create(e,null)}},{key:"tokenize",value:function(e,t,n){if(e.length>=this._maxTokenizationLineLength)return(0,A.Ri)(this._languageId,n);var i=new _t,r=this._tokenize(e,t,n,i);return i.finalize(r)}},{key:"tokenizeEncoded",value:function(e,t,n){if(e.length>=this._maxTokenizationLineLength)return(0,A.Dy)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),n);var i=new bt(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),r=this._tokenize(e,t,n,i);return i.finalize(r)}},{key:"_tokenize",value:function(e,t,n,i){return n.embeddedLanguageData?this._nestedTokenize(e,t,n,0,i):this._myTokenize(e,t,n,0,i)}},{key:"_findLeavingNestedLanguageOffset",value:function(e,t){var n=this._lexer.tokenizer[t.stack.state];if(!n&&!(n=ut(this._lexer,t.stack.state)))throw lt(this._lexer,"tokenizer state is not defined: "+t.stack.state);var i,r=-1,o=!1,a=(0,Z.Z)(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(rt(s.action)&&"@pop"===s.action.nextEmbedded){o=!0;var l=s.regex,c=s.regex.source;if("^(?:"===c.substr(0,4)&&")"===c.substr(c.length-1,1)){var u=(l.ignoreCase?"i":"")+(l.unicode?"u":"");l=new RegExp(c.substr(4,c.length-5),u)}var d=e.search(l);-1===d||0!==d&&s.matchOnlyAtLineStart||(-1===r||d<r)&&(r=d)}}}catch(h){a.e(h)}finally{a.f()}if(!o)throw lt(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return r}},{key:"_nestedTokenize",value:function(e,t,n,i,r){var o=this._findLeavingNestedLanguageOffset(e,n);if(-1===o){var a=r.nestedLanguageTokenize(e,t,n.embeddedLanguageData,i);return mt.create(n.stack,new vt(n.embeddedLanguageData.languageId,a))}var s=e.substring(0,o);s.length>0&&r.nestedLanguageTokenize(s,!1,n.embeddedLanguageData,i);var l=e.substring(o);return this._myTokenize(l,t,n,i+o,r)}},{key:"_safeRuleName",value:function(e){return e?e.name:"(unknown)"}},{key:"_myTokenize",value:function(e,t,n,i,r){var o=this;r.enterLanguage(this._languageId);for(var a,s,l=e.length,c=t&&this._lexer.includeLF?e+"\n":e,u=c.length,d=n.embeddedLanguageData,h=n.stack,f=0,p=null,g=!0;g||f<u;){var v=f,m=h.depth,y=p?p.groups.length:0,_=h.state,b=null,C=null,S=null,w=null,k=null;if(p){b=p.matches;var x=p.groups.shift();C=x.matched,S=x.action,w=p.rule,0===p.groups.length&&(p=null)}else{if(!g&&f>=u)break;g=!1;var E=this._lexer.tokenizer[_];if(!E&&!(E=ut(this._lexer,_)))throw lt(this._lexer,"tokenizer state is not defined: "+_);var T,N=c.substr(f),I=(0,Z.Z)(E);try{for(I.s();!(T=I.n()).done;){var D=T.value;if((0===f||!D.matchOnlyAtLineStart)&&(b=N.match(D.regex))){C=b[0],S=D.action;break}}}catch(j){I.e(j)}finally{I.f()}}if(b||(b=[""],C=""),S||(f<u&&(C=(b=[c.charAt(f)])[0]),S=this._lexer.defaultToken),null===C)break;for(f+=C.length;nt(S)&&rt(S)&&S.test;)S=S.test(C,b,_,f===u);var L=null;if("string"===typeof S||Array.isArray(S))L=S;else if(S.group)L=S.group;else if(null!==S.token&&void 0!==S.token){if(L=S.tokenSubst?ct(this._lexer,S.token,C,b,_):S.token,S.nextEmbedded)if("@pop"===S.nextEmbedded){if(!d)throw lt(this._lexer,"cannot pop embedded language if not inside one");d=null}else{if(d)throw lt(this._lexer,"cannot enter embedded language from within an embedded language");k=ct(this._lexer,S.nextEmbedded,C,b,_)}if(S.goBack&&(f=Math.max(0,f-S.goBack)),S.switchTo&&"string"===typeof S.switchTo){var O=ct(this._lexer,S.switchTo,C,b,_);if("@"===O[0]&&(O=O.substr(1)),!ut(this._lexer,O))throw lt(this._lexer,"trying to switch to a state '"+O+"' that is undefined in rule: "+this._safeRuleName(w));h=h.switchTo(O)}else{if(S.transform&&"function"===typeof S.transform)throw lt(this._lexer,"action.transform not supported");if(S.next)if("@push"===S.next){if(h.depth>=this._lexer.maxStack)throw lt(this._lexer,"maximum tokenizer stack size reached: ["+h.state+","+h.parent.state+",...]");h=h.push(_)}else if("@pop"===S.next){if(h.depth<=1)throw lt(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(w));h=h.pop()}else if("@popall"===S.next)h=h.popall();else{var R=ct(this._lexer,S.next,C,b,_);if("@"===R[0]&&(R=R.substr(1)),!ut(this._lexer,R))throw lt(this._lexer,"trying to set a next state '"+R+"' that is undefined in rule: "+this._safeRuleName(w));h=h.push(R)}}S.log&&"string"===typeof S.log&&(a=this._lexer,s=this._lexer.languageId+": "+ct(this._lexer,S.log,C,b,_),console.log("".concat(a.languageId,": ").concat(s)))}if(null===L)throw lt(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(w));var A=function(n){var a=o._languageService.getLanguageIdByLanguageName(n)||o._languageService.getLanguageIdByMimeType(n)||n,s=o._getNestedEmbeddedLanguageData(a);if(f<u){var l=e.substr(f);return o._nestedTokenize(l,t,mt.create(h,s),i+f,r)}return mt.create(h,s)};if(Array.isArray(L)){if(p&&p.groups.length>0)throw lt(this._lexer,"groups cannot be nested: "+this._safeRuleName(w));if(b.length!==L.length+1)throw lt(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(w));for(var M=0,P=1;P<b.length;P++)M+=b[P].length;if(M!==C.length)throw lt(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(w));p={rule:w,matches:b,groups:[]};for(var F=0;F<L.length;F++)p.groups[F]={action:L[F],matched:b[F+1]};f-=C.length}else{if("@rematch"===L&&(f-=C.length,C="",b=null,L="",null!==k))return A(k);if(0===C.length){if(0===u||m!==h.depth||_!==h.state||(p?p.groups.length:0)!==y)continue;throw lt(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(w))}var B=null;if(it(L)&&0===L.indexOf("@brackets")){var H=L.substr("@brackets".length),z=St(this._lexer,C);if(!z)throw lt(this._lexer,"@brackets token returned but no bracket defined as: "+C);B=st(z.token+H)}else{B=st(""===L?"":L+this._lexer.tokenPostfix)}if(v<l&&r.emit(v+i,B),null!==k)return A(k)}}return mt.create(h,d)}},{key:"_getNestedEmbeddedLanguageData",value:function(e){if(!this._languageService.isRegisteredLanguageId(e))return new vt(e,A.TJ);e!==this._languageId&&(f.RW.getOrCreate(e),this._embeddedLanguages[e]=!0);var t=f.RW.get(e);return new vt(e,t?t.getInitialState():A.TJ)}}]),e}();function St(e,t){if(!t)return null;t=at(e,t);var n,i=e.brackets,r=(0,Z.Z)(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.open===t)return{token:o.token,bracketType:1};if(o.close===t)return{token:o.token,bracketType:-1}}}catch(a){r.e(a)}finally{r.f()}return null}Ct=ht([ft(4,dt.Ui)],Ct);var wt,kt=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},xt=null===(wt=window.trustedTypes)||void 0===wt?void 0:wt.createPolicy("standaloneColorizer",{createHTML:function(e){return e}}),Et=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,null,[{key:"colorizeElement",value:function(e,t,n,i){var r=(i=i||{}).theme||"vs",o=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();var a=t.getLanguageIdByMimeType(o)||o;e.setTheme(r);var s=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+r;return this.colorize(t,s||"",a,i).then((function(e){var t,i=null!==(t=null===xt||void 0===xt?void 0:xt.createHTML(e))&&void 0!==t?t:e;n.innerHTML=i}),(function(e){return console.error(e)}))}},{key:"colorize",value:function(e,t,n,i){return kt(this,void 0,void 0,(0,F.Z)().mark((function r(){var o,a,s,l;return(0,F.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.languageIdCodec,a=4,i&&"number"===typeof i.tabSize&&(a=i.tabSize),_.uS(t)&&(t=t.substr(1)),s=_.uq(t),e.isRegisteredLanguageId(n)){r.next=7;break}return r.abrupt("return",Nt(s,a,o));case 7:return r.next=9,f.RW.getOrCreate(n);case 9:if(!(l=r.sent)){r.next=12;break}return r.abrupt("return",Tt(s,a,l,o));case 12:return r.abrupt("return",Nt(s,a,o));case 13:case"end":return r.stop()}}),r)})))}},{key:"colorizeLine",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:4,o=tt.wA.isBasicASCII(e,t),a=tt.wA.containsRTL(e,o,n),s=(0,et.tF)(new et.IJ(!1,!0,e,!1,o,a,0,i,[],r,0,0,0,0,-1,"none",!1,!1,null));return s.html}},{key:"colorizeModelLine",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,i=e.getLineContent(t);e.tokenization.forceTokenization(t);var r=e.tokenization.getLineTokens(t),o=r.inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,n)}}]),e}();function Tt(e,t,n,i){return new Promise((function(r,o){!function a(){var s=function(e,t,n,i){for(var r=[],o=n.getInitialState(),a=0,s=e.length;a<s;a++){var l=e[a],c=n.tokenizeEncoded(l,!0,o);Je.A.convertToEndOffset(c.tokens,l.length);var u=new Je.A(c.tokens,l,i),d=tt.wA.isBasicASCII(l,!0),h=tt.wA.containsRTL(l,d,!0),f=(0,et.tF)(new et.IJ(!1,!0,l,!1,d,h,0,u.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));(r=r.concat(f.html)).push("<br/>"),o=c.endState}return r.join("")}(e,t,n,i);if(n instanceof Ct){var l=n.getLoadStatus();if(!1===l.loaded)return void l.promise.then(a,o)}r(s)}()}))}function Nt(e,t,n){var i=[],r=new Uint32Array(2);r[0]=0,r[1]=33587200;for(var o=0,a=e.length;o<a;o++){var s=e[o];r[0]=s.length;var l=new Je.A(r,s,n),c=tt.wA.isBasicASCII(s,!0),u=tt.wA.containsRTL(s,c,!0),d=(0,et.tF)(new et.IJ(!1,!0,s,!1,c,u,0,l,[],t,0,0,0,0,-1,"none",!1,!1,null));(i=i.concat(d.html)).push("<br/>")}return i.join("")}var It,Dt=n(4801),Lt=n(36492),Ot=n(97326),Rt=n(27722),At=n(81531),Mt=n(25652),Pt=n(24674),Zt=n(34070),Ft=n(31782),Bt=n(78644),Ht=n(27338),zt=n(18247),jt=n(62381),Vt=n(29700),Wt=n(34509),Ut=n(32379),Gt=n(64014),Kt=n(2801),Yt=n(96752),qt=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},$t=function(e,t){return function(n,i){t(n,i,e)}},Xt=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},Qt=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.originalLineStart=t,this.originalLineEnd=n,this.modifiedLineStart=i,this.modifiedLineEnd=o}return(0,o.Z)(e,[{key:"getType",value:function(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0}}]),e}(),Jt=(0,o.Z)((function e(t){(0,r.Z)(this,e),this.entries=t})),en=(0,Yt.q5)("diff-review-insert",Kt.lA.add,Rt.NC("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),tn=(0,Yt.q5)("diff-review-remove",Kt.lA.remove,Rt.NC("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),nn=(0,Yt.q5)("diff-review-close",Kt.lA.close,Rt.NC("diffReviewCloseIcon","Icon for 'Close' in diff review.")),rn=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this))._languageService=i,o._width=0,o._diffEditor=e,o._isVisible=!1,o.shadow=(0,Mt.X)(document.createElement("div")),o.shadow.setClassName("diff-review-shadow"),o.actionBarContainer=(0,Mt.X)(document.createElement("div")),o.actionBarContainer.setClassName("diff-review-actions"),o._actionBar=o._register(new Bt.o(o.actionBarContainer.domNode)),o._actionBar.push(new zt.aU("diffreview.close",Rt.NC("label.close","Close"),"close-diff-review "+Gt.kS.asClassName(nn),!0,(function(){return Xt((0,Ot.Z)(o),void 0,void 0,(0,F.Z)().mark((function e(){return(0,F.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.hide());case 1:case"end":return e.stop()}}),e,this)})))})),{label:!1,icon:!0}),o.domNode=(0,Mt.X)(document.createElement("div")),o.domNode.setClassName("diff-review monaco-editor-background"),o._content=(0,Mt.X)(document.createElement("div")),o._content.setClassName("diff-review-content"),o._content.setAttribute("role","code"),o.scrollbar=o._register(new Ht.s$(o._content.domNode,{})),o.domNode.domNode.appendChild(o.scrollbar.getDomNode()),o._register(e.onDidUpdateDiff((function(){o._isVisible&&(o._diffs=o._compute(),o._render())}))),o._register(e.getModifiedEditor().onDidChangeCursorPosition((function(){o._isVisible&&o._render()}))),o._register(At.addStandardDisposableListener(o.domNode.domNode,"click",(function(e){e.preventDefault();var t=At.findParentWithClass(e.target,"diff-review-row");t&&o._goToRow(t)}))),o._register(At.addStandardDisposableListener(o.domNode.domNode,"keydown",(function(e){(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),o._goToRow(o._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),o._goToRow(o._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),o.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),o.accept())}))),o._diffs=[],o._currentDiff=null,o}return(0,o.Z)(n,[{key:"prev",value:function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,i=this._diffs.length;n<i;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=this._diffs.length+t-1}else e=this._findDiffIndex(this._diffEditor.getPosition());if(0!==this._diffs.length){e%=this._diffs.length;var r=this._diffs[e].entries;this._diffEditor.setPosition(new u.L(r[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:r[0].modifiedLineStart,endColumn:1073741824,endLineNumber:r[r.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}}},{key:"next",value:function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,i=this._diffs.length;n<i;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=t+1}else e=this._findDiffIndex(this._diffEditor.getPosition());if(0!==this._diffs.length){e%=this._diffs.length;var r=this._diffs[e].entries;this._diffEditor.setPosition(new u.L(r[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:r[0].modifiedLineStart,endColumn:1073741824,endLineNumber:r[r.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}}},{key:"accept",value:function(){var e=-1,t=this._getCurrentFocusedRow();if(t){var n=parseInt(t.getAttribute("data-line"),10);isNaN(n)||(e=n)}this.hide(),-1!==e&&(this._diffEditor.setPosition(new u.L(e,1)),this._diffEditor.revealPosition(new u.L(e,1),1))}},{key:"hide",value:function(){this._isVisible=!1,this._diffEditor.updateOptions({readOnly:!1}),this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()}},{key:"_getPrevRow",value:function(){var e=this._getCurrentFocusedRow();return e?e.previousElementSibling?e.previousElementSibling:e:this._getFirstRow()}},{key:"_getNextRow",value:function(){var e=this._getCurrentFocusedRow();return e?e.nextElementSibling?e.nextElementSibling:e:this._getFirstRow()}},{key:"_getFirstRow",value:function(){return this.domNode.domNode.querySelector(".diff-review-row")}},{key:"_getCurrentFocusedRow",value:function(){var e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null}},{key:"_goToRow",value:function(e){var t=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),t&&t!==e&&(t.tabIndex=-1),this.scrollbar.scanDomNode()}},{key:"isVisible",value:function(){return this._isVisible}},{key:"layout",value:function(e,t,n){this._width=t,this.shadow.setTop(e-6),this.shadow.setWidth(t),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(e),this.domNode.setWidth(t),this.domNode.setHeight(n),this._content.setHeight(n),this._content.setWidth(t),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))}},{key:"_compute",value:function(){var e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];var t=this._diffEditor.getOriginalEditor().getModel(),i=this._diffEditor.getModifiedEditor().getModel();return t&&i?n._mergeAdjacent(e,t.getLineCount(),i.getLineCount()):[]}},{key:"_findDiffIndex",value:function(e){for(var t=e.lineNumber,n=0,i=this._diffs.length;n<i;n++){var r=this._diffs[n].entries;if(t<=r[r.length-1].modifiedLineEnd)return n}return 0}},{key:"_render",value:function(){var e=this._diffEditor.getOriginalEditor().getOptions(),t=this._diffEditor.getModifiedEditor().getOptions(),i=this._diffEditor.getOriginalEditor().getModel(),r=this._diffEditor.getModifiedEditor().getModel(),o=i.getOptions(),a=r.getOptions();if(!this._isVisible||!i||!r)return At.clearNode(this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();this._diffEditor.updateOptions({readOnly:!0});var s=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[s]!==this._currentDiff){this._currentDiff=this._diffs[s];var l=this._diffs[s].entries,c=document.createElement("div");c.className="diff-review-table",c.setAttribute("role","list"),c.setAttribute("aria-label",'Difference review. Use "Stage | Unstage | Revert Selected Ranges" commands'),(0,Zt.N)(c,t.get(46));for(var u=0,d=0,h=0,f=0,p=0,g=l.length;p<g;p++){var v=l[p],m=v.originalLineStart,y=v.originalLineEnd,_=v.modifiedLineStart,b=v.modifiedLineEnd;0!==m&&(0===u||m<u)&&(u=m),0!==y&&(0===d||y>d)&&(d=y),0!==_&&(0===h||_<h)&&(h=_),0!==b&&(0===f||b>f)&&(f=b)}var C=document.createElement("div");C.className="diff-review-row";var S=document.createElement("div");S.className="diff-review-cell diff-review-summary";var w=d-u+1,k=f-h+1;S.appendChild(document.createTextNode("".concat(s+1,"/").concat(this._diffs.length,": @@ -").concat(u,",").concat(w," +").concat(h,",").concat(k," @@"))),C.setAttribute("data-line",String(h));var x=function(e){return 0===e?Rt.NC("no_lines_changed","no lines changed"):1===e?Rt.NC("one_line_changed","1 line changed"):Rt.NC("more_lines_changed","{0} lines changed",e)},E=x(w),T=x(k);C.setAttribute("aria-label",Rt.NC({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",s+1,this._diffs.length,u,E,h,T)),C.appendChild(S),C.setAttribute("role","listitem"),c.appendChild(C);for(var N=t.get(61),I=h,D=0,L=l.length;D<L;D++){var O=l[D];n._renderSection(c,O,I,N,this._width,e,i,o,t,r,a,this._languageService.languageIdCodec),0!==O.modifiedLineStart&&(I=O.modifiedLineEnd)}At.clearNode(this._content.domNode),this._content.domNode.appendChild(c),this.scrollbar.scanDomNode()}}}],[{key:"_mergeAdjacent",value:function(e,t,n){if(!e||0===e.length)return[];for(var i=[],r=0,o=0,a=e.length;o<a;o++){var s=e[o],l=s.originalStartLineNumber,c=s.originalEndLineNumber,u=s.modifiedStartLineNumber,d=s.modifiedEndLineNumber,h=[],f=0,p=0===c?l:l-1,g=0===d?u:u-1,v=1,m=1;if(o>0){var y=e[o-1];v=0===y.originalEndLineNumber?y.originalStartLineNumber+1:y.originalEndLineNumber+1,m=0===y.modifiedEndLineNumber?y.modifiedStartLineNumber+1:y.modifiedEndLineNumber+1}var _=p-3+1,b=g-3+1;if(_<v){var C=v-_;_+=C,b+=C}if(b<m){var S=m-b;_+=S,b+=S}h[f++]=new Qt(_,p,b,g),0!==c&&(h[f++]=new Qt(l,c,0,0)),0!==d&&(h[f++]=new Qt(0,0,u,d));var w=0===c?l+1:c+1,k=0===d?u+1:d+1,x=t,E=n;if(o+1<a){var T=e[o+1];x=0===T.originalEndLineNumber?T.originalStartLineNumber:T.originalStartLineNumber-1,E=0===T.modifiedEndLineNumber?T.modifiedStartLineNumber:T.modifiedStartLineNumber-1}var N=w+3-1,I=k+3-1;if(N>x){var D=x-N;N+=D,I+=D}if(I>E){var L=E-I;N+=L,I+=L}h[f++]=new Qt(w,N,k,I),i[r++]=new Jt(h)}for(var O=i[0].entries,R=[],A=0,M=1,P=i.length;M<P;M++){var Z=i[M].entries,F=O[O.length-1],B=Z[0];0===F.getType()&&0===B.getType()&&B.originalLineStart<=F.originalLineEnd?(O[O.length-1]=new Qt(F.originalLineStart,B.originalLineEnd,F.modifiedLineStart,B.modifiedLineEnd),O=O.concat(Z.slice(1))):(R[A++]=new Jt(O),O=Z)}return R[A++]=new Jt(O),R}},{key:"_renderSection",value:function(e,t,i,r,o,a,s,l,c,u,d,h){var f=t.getType(),p="diff-review-row",g="",v=null;switch(f){case 1:p="diff-review-row line-insert",g=" char-insert",v=en;break;case 2:p="diff-review-row line-delete",g=" char-delete",v=tn}for(var m=t.originalLineStart,y=t.originalLineEnd,_=t.modifiedLineStart,b=t.modifiedLineEnd,C=Math.max(b-_,y-m),S=a.get(133),w=S.glyphMarginWidth+S.lineNumbersWidth,k=c.get(133),x=10+k.glyphMarginWidth+k.lineNumbersWidth,E=0;E<=C;E++){var T=0===m?0:m+E,N=0===_?0:_+E,I=document.createElement("div");I.style.minWidth=o+"px",I.className=p,I.setAttribute("role","listitem"),0!==N&&(i=N),I.setAttribute("data-line",String(i));var D=document.createElement("div");D.className="diff-review-cell",D.style.height="".concat(r,"px"),I.appendChild(D);var L=document.createElement("span");L.style.width=w+"px",L.style.minWidth=w+"px",L.className="diff-review-line-number"+g,0!==T?L.appendChild(document.createTextNode(String(T))):L.innerText="\xa0",D.appendChild(L);var O=document.createElement("span");O.style.width=x+"px",O.style.minWidth=x+"px",O.style.paddingRight="10px",O.className="diff-review-line-number"+g,0!==N?O.appendChild(document.createTextNode(String(N))):O.innerText="\xa0",D.appendChild(O);var R=document.createElement("span");if(R.className="diff-review-spacer",v){var A=document.createElement("span");A.className=Gt.kS.asClassName(v),A.innerText="\xa0\xa0",R.appendChild(A)}else R.innerText="\xa0\xa0";D.appendChild(R);var M=void 0;if(0!==N){var P=this._renderLine(u,c,d.tabSize,N,h);n._ttPolicy&&(P=n._ttPolicy.createHTML(P)),D.insertAdjacentHTML("beforeend",P),M=u.getLineContent(N)}else{var Z=this._renderLine(s,a,l.tabSize,T,h);n._ttPolicy&&(Z=n._ttPolicy.createHTML(Z)),D.insertAdjacentHTML("beforeend",Z),M=s.getLineContent(T)}0===M.length&&(M=Rt.NC("blankLine","blank"));var F="";switch(f){case 0:F=T===N?Rt.NC({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",M,T):Rt.NC("equalLine","{0} original line {1} modified line {2}",M,T,N);break;case 1:F=Rt.NC("insertLine","+ {0} modified line {1}",M,N);break;case 2:F=Rt.NC("deleteLine","- {0} original line {1}",M,T)}I.setAttribute("aria-label",F),e.appendChild(I)}}},{key:"_renderLine",value:function(e,t,n,r,o){var a=e.getLineContent(r),s=t.get(46),l=Je.A.createEmpty(a,o),c=tt.wA.isBasicASCII(a,e.mightContainNonBasicASCII()),u=tt.wA.containsRTL(a,c,e.mightContainRTL());return(0,et.tF)(new et.IJ(s.isMonospace&&!t.get(29),s.canUseHalfwidthRightwardsArrow,a,!1,c,u,0,l,[],n,0,s.spaceWidth,s.middotWidth,s.wsmiddotWidth,t.get(107),t.get(90),t.get(85),t.get(47)!==i.n0.OFF,null)).html}}]),n}(y.JT);rn._ttPolicy=null===(It=window.trustedTypes)||void 0===It?void 0:It.createPolicy("diffReview",{createHTML:function(e){return e}}),rn=qt([$t(1,M.O)],rn),(0,Gt.Ic)((function(e,t){var n=e.getColor(Vt.hw);n&&t.addRule(".monaco-diff-editor .diff-review-line-number { color: ".concat(n,"; }"));var i=e.getColor(Ut._wn);i&&t.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: ".concat(i," 0 -6px 6px -6px inset; }"))}));var on=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.diffReview.next",label:Rt.NC("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:Wt.Ao.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}return(0,o.Z)(n,[{key:"run",value:function(e,t){var n=sn(e);n&&n.diffReviewNext()}}]),n}(jt.R6),an=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,{id:"editor.action.diffReview.prev",label:Rt.NC("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:Wt.Ao.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}return(0,o.Z)(n,[{key:"run",value:function(e,t){var n=sn(e);n&&n.diffReviewPrev()}}]),n}(jt.R6);function sn(e){var t=e.get(C.$),n=t.listDiffEditors(),i=t.getActiveCodeEditor();if(!i)return null;for(var r=0,o=n.length;r<o;r++){var a=n[r];if(a.getModifiedEditor().getId()===i.getId()||a.getOriginalEditor().getId()===i.getId())return a}return null}(0,jt.Qr)(on),(0,jt.Qr)(an);var ln,cn=n(1293),un=n(70845),dn=n(5323),hn=n(47799),fn=n(2029),pn=n(36888),gn=n(64919),vn=n(15493),mn=n(22468),yn=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},_n=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,s,l){var c;(0,r.Z)(this,n),(c=t.call(this))._viewZoneId=e,c._marginDomNode=i,c.editor=o,c.diff=a,c._contextMenuService=s,c._clipboardService=l,c._visibility=!1,c._marginDomNode.style.zIndex="10",c._diffActions=document.createElement("div"),c._diffActions.className=Kt.lA.lightBulb.classNames+" lightbulb-glyph",c._diffActions.style.position="absolute";var u=o.getOption(61),h=o.getModel().getEOL();c._diffActions.style.right="0px",c._diffActions.style.visibility="hidden",c._diffActions.style.height="".concat(u,"px"),c._diffActions.style.lineHeight="".concat(u,"px"),c._marginDomNode.appendChild(c._diffActions);var f=[],p=0===a.modifiedEndLineNumber;f.push(new zt.aU("diff.clipboard.copyDeletedContent",p?a.originalEndLineNumber>a.modifiedStartLineNumber?Rt.NC("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):Rt.NC("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):a.originalEndLineNumber>a.modifiedStartLineNumber?Rt.NC("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):Rt.NC("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(function(){return yn((0,Ot.Z)(c),void 0,void 0,(0,F.Z)().mark((function e(){var t,n;return(0,F.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new d.e(a.originalStartLineNumber,1,a.originalEndLineNumber+1,1),n=a.originalModel.getValueInRange(t),e.next=4,this._clipboardService.writeText(n);case 4:case"end":return e.stop()}}),e,this)})))})));var g=0,v=void 0;a.originalEndLineNumber>a.modifiedStartLineNumber&&(v=new zt.aU("diff.clipboard.copyDeletedLineContent",p?Rt.NC("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",a.originalStartLineNumber):Rt.NC("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",a.originalStartLineNumber),void 0,!0,(function(){return yn((0,Ot.Z)(c),void 0,void 0,(0,F.Z)().mark((function e(){var t,n;return(0,F.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==(t=a.originalModel.getLineContent(a.originalStartLineNumber+g))){e.next=7;break}return n=a.originalModel.getEndOfLineSequence(),e.next=5,this._clipboardService.writeText(0===n?"\n":"\r\n");case 5:e.next=9;break;case 7:return e.next=9,this._clipboardService.writeText(t);case 9:case"end":return e.stop()}}),e,this)})))})),f.push(v)),o.getOption(83)||f.push(new zt.aU("diff.inline.revertChange",Rt.NC("diff.inline.revertChange.label","Revert this change"),void 0,!0,(function(){return yn((0,Ot.Z)(c),void 0,void 0,(0,F.Z)().mark((function e(){var t,n,i,r;return(0,F.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new d.e(a.originalStartLineNumber,1,a.originalEndLineNumber,a.originalModel.getLineMaxColumn(a.originalEndLineNumber)),n=a.originalModel.getValueInRange(t),0===a.modifiedEndLineNumber?(i=o.getModel().getLineMaxColumn(a.modifiedStartLineNumber),o.executeEdits("diffEditor",[{range:new d.e(a.modifiedStartLineNumber,i,a.modifiedStartLineNumber,i),text:h+n}])):(r=o.getModel().getLineMaxColumn(a.modifiedEndLineNumber),o.executeEdits("diffEditor",[{range:new d.e(a.modifiedStartLineNumber,1,a.modifiedEndLineNumber,r),text:n}]));case 3:case"end":return e.stop()}}),e)})))})));var m=function(e,t){c._contextMenuService.showContextMenu({getAnchor:function(){return{x:e,y:t}},getActions:function(){return v&&(v.label=p?Rt.NC("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",a.originalStartLineNumber+g):Rt.NC("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",a.originalStartLineNumber+g)),f},autoSelectFirstItem:!0})};return c._register(At.addStandardDisposableListener(c._diffActions,"mousedown",(function(e){var t=At.getDomNodePagePosition(c._diffActions),n=t.top,i=t.height,r=Math.floor(u/3);e.preventDefault(),m(e.posx,n+i+r)}))),c._register(o.onMouseMove((function(e){8===e.target.type||5===e.target.type?e.target.detail.viewZoneId===c._viewZoneId?(c.visibility=!0,g=c._updateLightBulbPosition(c._marginDomNode,e.event.browserEvent.y,u)):c.visibility=!1:c.visibility=!1}))),c._register(o.onMouseDown((function(e){e.event.rightButton&&(8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId===c._viewZoneId&&(e.event.preventDefault(),g=c._updateLightBulbPosition(c._marginDomNode,e.event.browserEvent.y,u),m(e.event.posx,e.event.posy+u)))}))),c}return(0,o.Z)(n,[{key:"visibility",get:function(){return this._visibility},set:function(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}},{key:"_updateLightBulbPosition",value:function(e,t,n){var i=t-At.getDomNodePagePosition(e).top,r=Math.floor(i/n),o=r*n;if(this._diffActions.style.top="".concat(o,"px"),this.diff.viewLineCounts)for(var a=0,s=0;s<this.diff.viewLineCounts.length;s++)if(r<(a+=this.diff.viewLineCounts[s]))return s;return r}}]),n}(y.JT),bn=n(1255),Cn=n(47901),Sn=n(70423),wn=n(25022),kn=n(59632),xn=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},En=function(e,t){return function(n,i){t(n,i,e)}},Tn=function(){function e(t,n){(0,r.Z)(this,e),this._contextMenuService=t,this._clipboardService=n,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return(0,o.Z)(e,[{key:"getForeignViewZones",value:function(e){var t=this;return e.filter((function(e){return!t._zonesMap[String(e.id)]}))}},{key:"clean",value:function(e){var t=this;this._zones.length>0&&e.changeViewZones((function(e){var n,i=(0,Z.Z)(t._zones);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.removeZone(r)}}catch(o){i.e(o)}finally{i.f()}})),this._zones=[],this._zonesMap={},e.changeDecorations((function(e){t._decorations=e.deltaDecorations(t._decorations,[])}))}},{key:"apply",value:function(e,t,n,i){var r=this,o=i?Ft.Z.capture(e):null;e.changeViewZones((function(t){var i,o,a=(0,Z.Z)(r._zones);try{for(a.s();!(o=a.n()).done;){var s=o.value;t.removeZone(s)}}catch(p){a.e(p)}finally{a.f()}var l,c=(0,Z.Z)(r._inlineDiffMargins);try{for(c.s();!(l=c.n()).done;){l.value.dispose()}}catch(p){c.e(p)}finally{c.f()}r._zones=[],r._zonesMap={},r._inlineDiffMargins=[];for(var u=0,d=n.zones.length;u<d;u++){var h=n.zones[u];h.suppressMouseDown=!0;var f=t.addZone(h);r._zones.push(f),r._zonesMap[String(f)]=!0,n.zones[u].diff&&h.marginDomNode&&(h.suppressMouseDown=!1,0!==(null===(i=n.zones[u].diff)||void 0===i?void 0:i.originalModel.getValueLength())&&r._inlineDiffMargins.push(new _n(f,h.marginDomNode,e,n.zones[u].diff,r._contextMenuService,r._clipboardService)))}})),null===o||void 0===o||o.restore(e),e.changeDecorations((function(e){r._decorations=e.deltaDecorations(r._decorations,n.decorations)})),null===t||void 0===t||t.setZones(n.overviewZones)}}]),e}(),Nn=0,In=(0,Yt.q5)("diff-insert",Kt.lA.add,Rt.NC("diffInsertIcon","Line decoration for inserts in the diff editor.")),Dn=(0,Yt.q5)("diff-remove",Kt.lA.remove,Rt.NC("diffRemoveIcon","Line decoration for removals in the diff editor.")),Ln=null===(ln=window.trustedTypes)||void 0===ln?void 0:ln.createPolicy("diffEditorWidget",{createHTML:function(e){return e}}),On=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,l,c,u,d,h,f,p,g){var v;(0,r.Z)(this,n),(v=t.call(this))._editorProgressService=g,v._onDidDispose=v._register(new s.Q5),v.onDidDispose=v._onDidDispose.event,v._onDidUpdateDiff=v._register(new s.Q5),v.onDidUpdateDiff=v._onDidUpdateDiff.event,v._onDidContentSizeChange=v._register(new s.Q5),v._lastOriginalWarning=null,v._lastModifiedWarning=null,v._editorWorkerService=l,v._codeEditorService=d,v._contextKeyService=v._register(c.createScoped(e)),v._instantiationService=u.createChild(new gn.y([Wt.i6,v._contextKeyService])),v._contextKeyService.createKey("isInDiffEditor",!0),v._themeService=h,v._notificationService=f,v._id=++Nn,v._state=0,v._updatingDiffProgress=null,v._domElement=e,i=i||{},v._options=Yn(i,{enableSplitViewResizing:!0,renderSideBySide:!0,renderMarginRevertIcon:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit"}),"undefined"!==typeof i.isInEmbeddedEditor?v._contextKeyService.createKey("isInEmbeddedDiffEditor",i.isInEmbeddedEditor):v._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),v._updateDecorationsRunner=v._register(new B.pY((function(){return v._updateDecorations()}),0)),v._containerDomElement=document.createElement("div"),v._containerDomElement.className=n._getClassName(v._themeService.getColorTheme(),v._options.renderSideBySide),v._containerDomElement.style.position="relative",v._containerDomElement.style.height="100%",v._domElement.appendChild(v._containerDomElement),v._overviewViewportDomElement=(0,Mt.X)(document.createElement("div")),v._overviewViewportDomElement.setClassName("diffViewport"),v._overviewViewportDomElement.setPosition("absolute"),v._overviewDomElement=document.createElement("div"),v._overviewDomElement.className="diffOverview",v._overviewDomElement.style.position="absolute",v._overviewDomElement.appendChild(v._overviewViewportDomElement.domNode),v._register(At.addStandardDisposableListener(v._overviewDomElement,At.EventType.POINTER_DOWN,(function(e){v._modifiedEditor.delegateVerticalScrollbarPointerDown(e)}))),v._options.renderOverviewRuler&&v._containerDomElement.appendChild(v._overviewDomElement),v._originalDomNode=document.createElement("div"),v._originalDomNode.className="editor original",v._originalDomNode.style.position="absolute",v._originalDomNode.style.height="100%",v._containerDomElement.appendChild(v._originalDomNode),v._modifiedDomNode=document.createElement("div"),v._modifiedDomNode.className="editor modified",v._modifiedDomNode.style.position="absolute",v._modifiedDomNode.style.height="100%",v._containerDomElement.appendChild(v._modifiedDomNode),v._beginUpdateDecorationsTimeout=-1,v._currentlyChangingViewZones=!1,v._diffComputationToken=0,v._originalEditorState=new Tn(p,a),v._modifiedEditorState=new Tn(p,a),v._isVisible=!0,v._isHandlingScrollEvent=!1,v._elementSizeObserver=v._register(new Sn.I(v._containerDomElement,i.dimension)),v._register(v._elementSizeObserver.onDidChange((function(){return v._onDidContainerSizeChanged()}))),i.automaticLayout&&v._elementSizeObserver.startObserving(),v._diffComputationResult=null,v._originalEditor=v._createLeftHandSideEditor(i,o.originalEditor||{}),v._modifiedEditor=v._createRightHandSideEditor(i,o.modifiedEditor||{}),v._originalOverviewRuler=null,v._modifiedOverviewRuler=null,v._reviewPane=u.createInstance(rn,(0,Ot.Z)(v)),v._containerDomElement.appendChild(v._reviewPane.domNode.domNode),v._containerDomElement.appendChild(v._reviewPane.shadow.domNode),v._containerDomElement.appendChild(v._reviewPane.actionBarContainer.domNode),v._options.renderSideBySide?v._setStrategy(new Fn(v._createDataSource(),v._options.enableSplitViewResizing)):v._setStrategy(new Hn(v._createDataSource(),v._options.enableSplitViewResizing)),v._register(h.onDidColorThemeChange((function(e){v._strategy&&v._strategy.applyColors(e)&&v._updateDecorationsRunner.schedule(),v._containerDomElement.className=n._getClassName(v._themeService.getColorTheme(),v._options.renderSideBySide)})));var m,y=jt.Uc.getDiffEditorContributions(),_=(0,Z.Z)(y);try{for(_.s();!(m=_.n()).done;){var b=m.value;try{v._register(u.createInstance(b.ctor,(0,Ot.Z)(v)))}catch(C){(0,H.dL)(C)}}}catch(C){_.e(C)}finally{_.f()}return v._codeEditorService.addDiffEditor((0,Ot.Z)(v)),v}return(0,o.Z)(n,[{key:"_setState",value:function(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),1===this._state&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}},{key:"diffReviewNext",value:function(){this._reviewPane.next()}},{key:"diffReviewPrev",value:function(){this._reviewPane.prev()}},{key:"_disposeOverviewRulers",value:function(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose(),this._originalOverviewRuler=null),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose(),this._modifiedOverviewRuler=null)}},{key:"_createOverviewRulers",value:function(){this._options.renderOverviewRuler&&(E.ok(!this._originalOverviewRuler&&!this._modifiedOverviewRuler),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}},{key:"_createLeftHandSideEditor",value:function(e,t){var i=this,r=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(e),t);this._register(r.onDidScrollChange((function(e){i._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(i._isHandlingScrollEvent=!0,i._modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),i._isHandlingScrollEvent=!1,i._layoutOverviewViewport())}))),this._register(r.onDidChangeViewZones((function(){i._onViewZonesChanged()}))),this._register(r.onDidChangeConfiguration((function(e){r.getModel()&&(e.hasChanged(46)&&i._updateDecorationsRunner.schedule(),e.hasChanged(134)&&(i._updateDecorationsRunner.cancel(),i._updateDecorations()))}))),this._register(r.onDidChangeHiddenAreas((function(){i._updateDecorationsRunner.cancel(),i._updateDecorations()}))),this._register(r.onDidChangeModelContent((function(){i._isVisible&&i._beginUpdateDecorationsSoon()})));var o=this._contextKeyService.createKey("isInDiffLeftEditor",r.hasWidgetFocus());return this._register(r.onDidFocusEditorWidget((function(){return o.set(!0)}))),this._register(r.onDidBlurEditorWidget((function(){return o.set(!1)}))),this._register(r.onDidContentSizeChange((function(e){var t=i._originalEditor.getContentWidth()+i._modifiedEditor.getContentWidth()+n.ONE_OVERVIEW_WIDTH,r=Math.max(i._modifiedEditor.getContentHeight(),i._originalEditor.getContentHeight());i._onDidContentSizeChange.fire({contentHeight:r,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})}))),r}},{key:"_createRightHandSideEditor",value:function(e,t){var i=this,r=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e),t);this._register(r.onDidScrollChange((function(e){i._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(i._isHandlingScrollEvent=!0,i._originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),i._isHandlingScrollEvent=!1,i._layoutOverviewViewport())}))),this._register(r.onDidChangeViewZones((function(){i._onViewZonesChanged()}))),this._register(r.onDidChangeConfiguration((function(e){r.getModel()&&(e.hasChanged(46)&&i._updateDecorationsRunner.schedule(),e.hasChanged(134)&&(i._updateDecorationsRunner.cancel(),i._updateDecorations()))}))),this._register(r.onDidChangeHiddenAreas((function(){i._updateDecorationsRunner.cancel(),i._updateDecorations()}))),this._register(r.onDidChangeModelContent((function(){i._isVisible&&i._beginUpdateDecorationsSoon()}))),this._register(r.onDidChangeModelOptions((function(e){e.tabSize&&i._updateDecorationsRunner.schedule()})));var o=this._contextKeyService.createKey("isInDiffRightEditor",r.hasWidgetFocus());return this._register(r.onDidFocusEditorWidget((function(){return o.set(!0)}))),this._register(r.onDidBlurEditorWidget((function(){return o.set(!1)}))),this._register(r.onDidContentSizeChange((function(e){var t=i._originalEditor.getContentWidth()+i._modifiedEditor.getContentWidth()+n.ONE_OVERVIEW_WIDTH,r=Math.max(i._modifiedEditor.getContentHeight(),i._originalEditor.getContentHeight());i._onDidContentSizeChange.fire({contentHeight:r,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})}))),this._register(r.onMouseDown((function(e){var t,n;if(!e.event.rightButton&&e.target.position&&(null===(t=e.target.element)||void 0===t?void 0:t.className.includes("arrow-revert-change"))){var r=e.target.position.lineNumber,o=null===(n=i._diffComputationResult)||void 0===n?void 0:n.changes.find((function(e){return e.modifiedStartLineNumber===r-1||e.modifiedStartLineNumber===r}));return o&&i.revertChange(o),e.event.stopPropagation(),void i._updateDecorations()}}))),r}},{key:"revertChange",value:function(e){var t=this._modifiedEditor,n=this._originalEditor.getModel(),i=this._modifiedEditor.getModel();if(n&&i&&t){var r=e.originalEndLineNumber>0?new d.e(e.originalStartLineNumber,1,e.originalEndLineNumber,n.getLineMaxColumn(e.originalEndLineNumber)):null,o=r?n.getValueInRange(r):null,a=e.modifiedEndLineNumber>0?new d.e(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber,i.getLineMaxColumn(e.modifiedEndLineNumber)):null,s=i.getEOL();if(0===e.originalEndLineNumber&&a){var l=a;e.modifiedStartLineNumber>1?l=a.setStartPosition(e.modifiedStartLineNumber-1,i.getLineMaxColumn(e.modifiedStartLineNumber-1)):e.modifiedEndLineNumber<i.getLineCount()&&(l=a.setEndPosition(e.modifiedEndLineNumber+1,1)),t.executeEdits("diffEditor",[{range:l,text:""}])}else if(0===e.modifiedEndLineNumber&&null!==o){var c=e.modifiedStartLineNumber<i.getLineCount()?new u.L(e.modifiedStartLineNumber+1,1):new u.L(e.modifiedStartLineNumber,i.getLineMaxColumn(e.modifiedStartLineNumber));t.executeEdits("diffEditor",[{range:d.e.fromPositions(c,c),text:e.modifiedStartLineNumber<i.getLineCount()?o+s:s+o}])}else a&&null!==o&&t.executeEdits("diffEditor",[{range:a,text:o}])}}},{key:"_createInnerEditor",value:function(e,t,n,i){return e.createInstance(Lt.Gm,t,n,i)}},{key:"dispose",value:function(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._options.renderOverviewRuler&&this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this._originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this._modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this)}},{key:"getId",value:function(){return this.getEditorType()+":"+this._id}},{key:"getEditorType",value:function(){return L.g.IDiffEditor}},{key:"getLineChanges",value:function(){return this._diffComputationResult?this._diffComputationResult.changes:null}},{key:"getOriginalEditor",value:function(){return this._originalEditor}},{key:"getModifiedEditor",value:function(){return this._modifiedEditor}},{key:"updateOptions",value:function(e){var t,i,r=Yn(e,this._options),o=(t=this._options,i=r,{enableSplitViewResizing:t.enableSplitViewResizing!==i.enableSplitViewResizing,renderSideBySide:t.renderSideBySide!==i.renderSideBySide,renderMarginRevertIcon:t.renderMarginRevertIcon!==i.renderMarginRevertIcon,maxComputationTime:t.maxComputationTime!==i.maxComputationTime,maxFileSize:t.maxFileSize!==i.maxFileSize,ignoreTrimWhitespace:t.ignoreTrimWhitespace!==i.ignoreTrimWhitespace,renderIndicators:t.renderIndicators!==i.renderIndicators,originalEditable:t.originalEditable!==i.originalEditable,diffCodeLens:t.diffCodeLens!==i.diffCodeLens,renderOverviewRuler:t.renderOverviewRuler!==i.renderOverviewRuler,diffWordWrap:t.diffWordWrap!==i.diffWordWrap});this._options=r;var a=o.ignoreTrimWhitespace||o.renderIndicators||o.renderMarginRevertIcon,s=this._isVisible&&(o.maxComputationTime||o.maxFileSize);a?this._beginUpdateDecorations():s&&this._beginUpdateDecorationsSoon(),this._modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(e)),this._originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(e)),this._strategy.setEnableSplitViewResizing(this._options.enableSplitViewResizing),o.renderSideBySide&&(this._options.renderSideBySide?this._setStrategy(new Fn(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new Hn(this._createDataSource(),this._options.enableSplitViewResizing)),this._containerDomElement.className=n._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)),o.renderOverviewRuler&&(this._options.renderOverviewRuler?this._containerDomElement.appendChild(this._overviewDomElement):this._containerDomElement.removeChild(this._overviewDomElement))}},{key:"getModel",value:function(){return{original:this._originalEditor.getModel(),modified:this._modifiedEditor.getModel()}}},{key:"setModel",value:function(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this._disposeOverviewRulers(),this._originalEditor.setModel(e?e.original:null),this._modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this._originalEditor.setScrollTop(0),this._modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),e&&(this._createOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()}},{key:"getContainerDomNode",value:function(){return this._domElement}},{key:"getVisibleColumnFromPosition",value:function(e){return this._modifiedEditor.getVisibleColumnFromPosition(e)}},{key:"getPosition",value:function(){return this._modifiedEditor.getPosition()}},{key:"setPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";this._modifiedEditor.setPosition(e,t)}},{key:"revealLine",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._modifiedEditor.revealLine(e,t)}},{key:"revealLineInCenter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._modifiedEditor.revealLineInCenter(e,t)}},{key:"revealLineInCenterIfOutsideViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)}},{key:"revealLineNearTop",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._modifiedEditor.revealLineNearTop(e,t)}},{key:"revealPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._modifiedEditor.revealPosition(e,t)}},{key:"revealPositionInCenter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._modifiedEditor.revealPositionInCenter(e,t)}},{key:"revealPositionInCenterIfOutsideViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)}},{key:"revealPositionNearTop",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._modifiedEditor.revealPositionNearTop(e,t)}},{key:"getSelection",value:function(){return this._modifiedEditor.getSelection()}},{key:"getSelections",value:function(){return this._modifiedEditor.getSelections()}},{key:"setSelection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";this._modifiedEditor.setSelection(e,t)}},{key:"setSelections",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";this._modifiedEditor.setSelections(e,t)}},{key:"revealLines",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._modifiedEditor.revealLines(e,t,n)}},{key:"revealLinesInCenter",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._modifiedEditor.revealLinesInCenter(e,t,n)}},{key:"revealLinesInCenterIfOutsideViewport",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,n)}},{key:"revealLinesNearTop",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._modifiedEditor.revealLinesNearTop(e,t,n)}},{key:"revealRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._modifiedEditor.revealRange(e,t,n,i)}},{key:"revealRangeInCenter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._modifiedEditor.revealRangeInCenter(e,t)}},{key:"revealRangeInCenterIfOutsideViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)}},{key:"revealRangeNearTop",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._modifiedEditor.revealRangeNearTop(e,t)}},{key:"revealRangeNearTopIfOutsideViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._modifiedEditor.revealRangeNearTopIfOutsideViewport(e,t)}},{key:"revealRangeAtTop",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._modifiedEditor.revealRangeAtTop(e,t)}},{key:"getSupportedActions",value:function(){return this._modifiedEditor.getSupportedActions()}},{key:"saveViewState",value:function(){return{original:this._originalEditor.saveViewState(),modified:this._modifiedEditor.saveViewState()}}},{key:"restoreViewState",value:function(e){if(e&&e.original&&e.modified){var t=e;this._originalEditor.restoreViewState(t.original),this._modifiedEditor.restoreViewState(t.modified)}}},{key:"layout",value:function(e){this._elementSizeObserver.observe(e)}},{key:"focus",value:function(){this._modifiedEditor.focus()}},{key:"hasTextFocus",value:function(){return this._originalEditor.hasTextFocus()||this._modifiedEditor.hasTextFocus()}},{key:"trigger",value:function(e,t,n){this._modifiedEditor.trigger(e,t,n)}},{key:"createDecorationsCollection",value:function(e){return this._modifiedEditor.createDecorationsCollection(e)}},{key:"changeDecorations",value:function(e){return this._modifiedEditor.changeDecorations(e)}},{key:"_onDidContainerSizeChanged",value:function(){this._doLayout()}},{key:"_getReviewHeight",value:function(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}},{key:"_layoutOverviewRulers",value:function(){if(this._options.renderOverviewRuler&&this._originalOverviewRuler&&this._modifiedOverviewRuler){var e=this._elementSizeObserver.getHeight(),t=this._getReviewHeight(),i=n.ENTIRE_DIFF_OVERVIEW_WIDTH-2*n.ONE_OVERVIEW_WIDTH;this._modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:n.ONE_OVERVIEW_WIDTH,right:i+n.ONE_OVERVIEW_WIDTH,height:e-t}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:n.ONE_OVERVIEW_WIDTH,height:e-t}))}}},{key:"_onViewZonesChanged",value:function(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}},{key:"_beginUpdateDecorationsSoon",value:function(){var e=this;-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout((function(){return e._beginUpdateDecorations()}),n.UPDATE_DIFF_DECORATIONS_DELAY)}},{key:"_beginUpdateDecorations",value:function(){var e=this;this._beginUpdateDecorationsTimeout=-1;var t=this._originalEditor.getModel(),i=this._modifiedEditor.getModel();if(t&&i){this._diffComputationToken++;var r=this._diffComputationToken,o=1024*this._options.maxFileSize*1024,a=function(e){var t=e.getValueLength();return 0===o||t<=o};a(t)&&a(i)?(this._setState(1),this._editorWorkerService.computeDiff(t.uri,i.uri,this._options.ignoreTrimWhitespace,this._options.maxComputationTime).then((function(n){r===e._diffComputationToken&&t===e._originalEditor.getModel()&&i===e._modifiedEditor.getModel()&&(e._setState(2),e._diffComputationResult=n,e._updateDecorationsRunner.schedule(),e._onDidUpdateDiff.fire())}),(function(n){r===e._diffComputationToken&&t===e._originalEditor.getModel()&&i===e._modifiedEditor.getModel()&&(e._setState(2),e._diffComputationResult=null,e._updateDecorationsRunner.schedule())}))):n._equals(t.uri,this._lastOriginalWarning)&&n._equals(i.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=t.uri,this._lastModifiedWarning=i.uri,this._notificationService.warn(Rt.NC("diff.tooLarge","Cannot compare files because one file is too large.")))}}},{key:"_cleanViewZonesAndDecorations",value:function(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}},{key:"_updateDecorations",value:function(){if(this._originalEditor.getModel()&&this._modifiedEditor.getModel()){var e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),n=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),i=this._strategy.getEditorsDiffDecorations(e,this._options.ignoreTrimWhitespace,this._options.renderIndicators,this._options.renderMarginRevertIcon,t,n);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,i.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,i.modified,!0)}finally{this._currentlyChangingViewZones=!1}}}},{key:"_adjustOptionsForSubEditor",value:function(e){var t=Object.assign({},e);return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar=Object.assign({},t.scrollbar||{}),t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=this._options.diffCodeLens,t.fixedOverflowWidgets=!0,t.minimap=Object.assign({},t.minimap||{}),t.minimap.enabled=!1,t}},{key:"_adjustOptionsForLeftHandSide",value:function(e){var t=this._adjustOptionsForSubEditor(e);return this._options.renderSideBySide?t.wordWrapOverride1=this._options.diffWordWrap:(t.wordWrapOverride1="off",t.wordWrapOverride2="off"),e.originalAriaLabel&&(t.ariaLabel=e.originalAriaLabel),t.readOnly=!this._options.originalEditable,t.dropIntoEditor={enabled:!t.readOnly},t.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}},{key:"_adjustOptionsForRightHandSide",value:function(e){var t=this._adjustOptionsForSubEditor(e);return e.modifiedAriaLabel&&(t.ariaLabel=e.modifiedAriaLabel),t.wordWrapOverride1=this._options.diffWordWrap,t.revealHorizontalRightPadding=i.BH.revealHorizontalRightPadding.defaultValue+n.ENTIRE_DIFF_OVERVIEW_WIDTH,t.scrollbar.verticalHasArrows=!1,t.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}},{key:"doLayout",value:function(){this._elementSizeObserver.observe(),this._doLayout()}},{key:"_doLayout",value:function(){var e=this._elementSizeObserver.getWidth(),t=this._elementSizeObserver.getHeight(),i=this._getReviewHeight(),r=this._strategy.layout();this._originalDomNode.style.width=r+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=e-r+"px",this._modifiedDomNode.style.left=r+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=t-i+"px",this._overviewDomElement.style.width=n.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=e-n.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(n.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:r,height:t-i}),this._modifiedEditor.layout({width:e-r-(this._options.renderOverviewRuler?n.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:t-i}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(t-i,e,i),this._layoutOverviewViewport()}},{key:"_layoutOverviewViewport",value:function(){var e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}},{key:"_computeOverviewViewport",value:function(){var e=this._modifiedEditor.getLayoutInfo();if(!e)return null;var t=this._modifiedEditor.getScrollTop(),n=this._modifiedEditor.getScrollHeight(),i=Math.max(0,e.height),r=Math.max(0,i-0),o=n>0?r/n:0;return{height:Math.max(0,Math.floor(e.height*o)),top:Math.floor(t*o)}}},{key:"_createDataSource",value:function(){var e=this;return{getWidth:function(){return e._elementSizeObserver.getWidth()},getHeight:function(){return e._elementSizeObserver.getHeight()-e._getReviewHeight()},getOptions:function(){return{renderOverviewRuler:e._options.renderOverviewRuler}},getContainerDomNode:function(){return e._containerDomElement},relayoutEditors:function(){e._doLayout()},getOriginalEditor:function(){return e._originalEditor},getModifiedEditor:function(){return e._modifiedEditor}}}},{key:"_setStrategy",value:function(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}},{key:"_getLineChangeAtOrBeforeLineNumber",value:function(e,t){var n=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===n.length||e<t(n[0]))return null;for(var i=0,r=n.length-1;i<r;){var o=Math.floor((i+r)/2),a=t(n[o]),s=o+1<=r?t(n[o+1]):1073741824;e<a?r=o-1:e>=s?i=o+1:(i=o,r=o)}return n[i]}},{key:"_getEquivalentLineForOriginalLineNumber",value:function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.originalStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),r=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-n;return a<=r?i+Math.min(a,o):i+o-r+a}},{key:"_getEquivalentLineForModifiedLineNumber",value:function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.modifiedStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),r=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-i;return a<=o?n+Math.min(a,r):n+r-o+a}},{key:"getDiffLineInformationForOriginal",value:function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}},{key:"getDiffLineInformationForModified",value:function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}}],[{key:"_getClassName",value:function(e,t){var n="monaco-diff-editor monaco-editor-background ";return t&&(n+="side-by-side "),n+=(0,Gt.m6)(e.type)}},{key:"_equals",value:function(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()}}]),n}(y.JT);On.ONE_OVERVIEW_WIDTH=15,On.ENTIRE_DIFF_OVERVIEW_WIDTH=30,On.UPDATE_DIFF_DECORATIONS_DELAY=200,On=xn([En(3,bn.p),En(4,dn.p),En(5,Wt.i6),En(6,pn.TG),En(7,C.$),En(8,Gt.XE),En(9,vn.lT),En(10,mn.i),En(11,Cn.ek)],On);var Rn=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this))._dataSource=e,i._insertColor=null,i._removeColor=null,i}return(0,o.Z)(n,[{key:"applyColors",value:function(e){var t=e.getColor(Ut.P6Y)||(e.getColor(Ut.ypS)||Ut.CzK).transparent(2),n=e.getColor(Ut.F9q)||(e.getColor(Ut.P4M)||Ut.keg).transparent(2),i=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,i}},{key:"getEditorsDiffDecorations",value:function(e,t,n,i,r,o){o=o.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber})),r=r.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber}));var a=this._getViewZones(e,r,o,n),s=this._getOriginalEditorDecorations(a,e,t,n),l=this._getModifiedEditorDecorations(a,e,t,n,i);return{original:{decorations:s.decorations,overviewZones:s.overviewZones,zones:a.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.modified}}}}]),n}(y.JT),An=function(){function e(t){(0,r.Z)(this,e),this._source=t,this._index=-1,this.current=null,this.advance()}return(0,o.Z)(e,[{key:"advance",value:function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null}}]),e}(),Mn=function(){function e(t,n,i,o,a){(0,r.Z)(this,e),this._lineChanges=t,this._originalForeignVZ=n,this._modifiedForeignVZ=i,this._originalEditor=o,this._modifiedEditor=a}return(0,o.Z)(e,[{key:"getViewZones",value:function(){for(var t=this._originalEditor.getOption(61),n=this._modifiedEditor.getOption(61),i=-1!==this._originalEditor.getOption(134).wrappingColumn,r=-1!==this._modifiedEditor.getOption(134).wrappingColumn,o=i||r,a=this._originalEditor.getModel(),s=this._originalEditor._getViewModel().coordinatesConverter,l=this._modifiedEditor._getViewModel().coordinatesConverter,c=[],u=[],d=0,h=0,f=0,p=0,g=0,v=0,m=function(e,t){return e.afterLineNumber-t.afterLineNumber},y=function(e,t){if(null===t.domNode&&e.length>0){var n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines)}e.push(t)},_=new An(this._modifiedForeignVZ),b=new An(this._originalForeignVZ),C=1,S=1,w=0,k=this._lineChanges.length;w<=k;w++){var x=w<k?this._lineChanges[w]:null;null!==x?(f=x.originalStartLineNumber+(x.originalEndLineNumber>0?-1:0),p=x.modifiedStartLineNumber+(x.modifiedEndLineNumber>0?-1:0),h=x.originalEndLineNumber>0?e._getViewLineCount(this._originalEditor,x.originalStartLineNumber,x.originalEndLineNumber):0,d=x.modifiedEndLineNumber>0?e._getViewLineCount(this._modifiedEditor,x.modifiedStartLineNumber,x.modifiedEndLineNumber):0,g=Math.max(x.originalStartLineNumber,x.originalEndLineNumber),v=Math.max(x.modifiedStartLineNumber,x.modifiedEndLineNumber)):(g=f+=1e7+h,v=p+=1e7+d);var E=[],T=[];if(o){var N=void 0;N=x?x.originalEndLineNumber>0?x.originalStartLineNumber-C:x.modifiedStartLineNumber-S:a.getLineCount()-C+1;for(var I=0;I<N;I++){var D=C+I,L=S+I,O=s.getModelLineViewLineCount(D),R=l.getModelLineViewLineCount(L);O<R?E.push({afterLineNumber:D,heightInLines:R-O,domNode:null,marginDomNode:null}):O>R&&T.push({afterLineNumber:L,heightInLines:O-R,domNode:null,marginDomNode:null})}x&&(C=(x.originalEndLineNumber>0?x.originalEndLineNumber:x.originalStartLineNumber)+1,S=(x.modifiedEndLineNumber>0?x.modifiedEndLineNumber:x.modifiedStartLineNumber)+1)}for(;_.current&&_.current.afterLineNumber<=v;){var A=void 0;A=_.current.afterLineNumber<=p?f-p+_.current.afterLineNumber:g;var M=null;x&&x.modifiedStartLineNumber<=_.current.afterLineNumber&&_.current.afterLineNumber<=x.modifiedEndLineNumber&&(M=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),E.push({afterLineNumber:A,heightInLines:_.current.height/n,domNode:null,marginDomNode:M}),_.advance()}for(;b.current&&b.current.afterLineNumber<=g;){var P=void 0;P=b.current.afterLineNumber<=f?p-f+b.current.afterLineNumber:v,T.push({afterLineNumber:P,heightInLines:b.current.height/t,domNode:null}),b.advance()}if(null!==x&&jn(x)){var Z=this._produceOriginalFromDiff(x,h,d);Z&&E.push(Z)}if(null!==x&&Vn(x)){var F=this._produceModifiedFromDiff(x,h,d);F&&T.push(F)}var B=0,H=0;for(E=E.sort(m),T=T.sort(m);B<E.length&&H<T.length;){var z=E[B],j=T[H],V=z.afterLineNumber-f,W=j.afterLineNumber-p;V<W?(y(c,z),B++):W<V?(y(u,j),H++):z.shouldNotShrink?(y(c,z),B++):j.shouldNotShrink?(y(u,j),H++):z.heightInLines>=j.heightInLines?(z.heightInLines-=j.heightInLines,H++):(j.heightInLines-=z.heightInLines,B++)}for(;B<E.length;)y(c,E[B]),B++;for(;H<T.length;)y(u,T[H]),H++}return{original:e._ensureDomNodes(c),modified:e._ensureDomNodes(u)}}}],[{key:"_getViewLineCount",value:function(e,t,n){var i=e.getModel(),r=e._getViewModel();if(i&&r){var o=Kn(i,r,t,n);return o.endLineNumber-o.startLineNumber+1}return n-t+1}},{key:"_ensureDomNodes",value:function(e){return e.map((function(e){return e.domNode||(e.domNode=Gn()),e}))}}]),e}();function Pn(e,t,n,i,r){return{range:new d.e(e,t,n,i),options:r}}var Zn={arrowRevertChange:un.qx.register({description:"diff-editor-arrow-revert-change",glyphMarginClassName:"arrow-revert-change "+Gt.kS.asClassName(Kt.lA.arrowRight)}),charDelete:un.qx.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:un.qx.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:un.qx.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:un.qx.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:un.qx.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"gutter-insert",isWholeLine:!0}),lineInsertWithSign:un.qx.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+Gt.kS.asClassName(In),marginClassName:"gutter-insert",isWholeLine:!0}),lineDelete:un.qx.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteWithSign:un.qx.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+Gt.kS.asClassName(Dn),marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteMargin:un.qx.register({description:"diff-editor-line-delete-margin",marginClassName:"gutter-delete"})},Fn=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,e))._disableSash=!1===i,o._sashRatio=null,o._sashPosition=null,o._startSashPosition=null,o._sash=o._register(new Pt.g(o._dataSource.getContainerDomNode(),(0,Ot.Z)(o),{orientation:0})),o._disableSash&&(o._sash.state=0),o._sash.onDidStart((function(){return o._onSashDragStart()})),o._sash.onDidChange((function(e){return o._onSashDrag(e)})),o._sash.onDidEnd((function(){return o._onSashDragEnd()})),o._sash.onDidReset((function(){return o._onSashReset()})),o}return(0,o.Z)(n,[{key:"setEnableSplitViewResizing",value:function(e){var t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)}},{key:"layout",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._sashRatio,t=this._dataSource.getWidth(),i=t-(this._dataSource.getOptions().renderOverviewRuler?On.ENTIRE_DIFF_OVERVIEW_WIDTH:0),r=Math.floor((e||.5)*i),o=Math.floor(.5*i);return r=this._disableSash?o:r||o,i>2*n.MINIMUM_EDITOR_WIDTH?(r<n.MINIMUM_EDITOR_WIDTH&&(r=n.MINIMUM_EDITOR_WIDTH),r>i-n.MINIMUM_EDITOR_WIDTH&&(r=i-n.MINIMUM_EDITOR_WIDTH)):r=o,this._sashPosition!==r&&(this._sashPosition=r),this._sash.layout(),this._sashPosition}},{key:"_onSashDragStart",value:function(){this._startSashPosition=this._sashPosition}},{key:"_onSashDrag",value:function(e){var t=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?On.ENTIRE_DIFF_OVERVIEW_WIDTH:0),n=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=n/t,this._dataSource.relayoutEditors()}},{key:"_onSashDragEnd",value:function(){this._sash.layout()}},{key:"_onSashReset",value:function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}},{key:"getVerticalSashTop",value:function(e){return 0}},{key:"getVerticalSashLeft",value:function(e){return this._sashPosition}},{key:"getVerticalSashHeight",value:function(e){return this._dataSource.getHeight()}},{key:"_getViewZones",value:function(e,t,n){var i=this._dataSource.getOriginalEditor(),r=this._dataSource.getModifiedEditor();return new Bn(e,t,n,i,r).getViewZones()}},{key:"_getOriginalEditorDecorations",value:function(e,t,n,i){var r,o=this._dataSource.getOriginalEditor(),a=String(this._removeColor),s={decorations:[],overviewZones:[]},l=o.getModel(),c=o._getViewModel(),u=(0,Z.Z)(t);try{for(u.s();!(r=u.n()).done;){var h=r.value;if(Vn(h)){s.decorations.push({range:new d.e(h.originalStartLineNumber,1,h.originalEndLineNumber,1073741824),options:i?Zn.lineDeleteWithSign:Zn.lineDelete}),jn(h)&&h.charChanges||s.decorations.push(Pn(h.originalStartLineNumber,1,h.originalEndLineNumber,1073741824,Zn.charDeleteWholeLine));var f=Kn(l,c,h.originalStartLineNumber,h.originalEndLineNumber);if(s.overviewZones.push(new hn.EY(f.startLineNumber,f.endLineNumber,0,a)),h.charChanges){var p,g=(0,Z.Z)(h.charChanges);try{for(g.s();!(p=g.n()).done;){var v=p.value;if(Un(v))if(n)for(var m=v.originalStartLineNumber;m<=v.originalEndLineNumber;m++){var y=void 0,_=void 0;y=m===v.originalStartLineNumber?v.originalStartColumn:l.getLineFirstNonWhitespaceColumn(m),_=m===v.originalEndLineNumber?v.originalEndColumn:l.getLineLastNonWhitespaceColumn(m),s.decorations.push(Pn(m,y,m,_,Zn.charDelete))}else s.decorations.push(Pn(v.originalStartLineNumber,v.originalStartColumn,v.originalEndLineNumber,v.originalEndColumn,Zn.charDelete))}}catch(b){g.e(b)}finally{g.f()}}}}}catch(b){u.e(b)}finally{u.f()}return s}},{key:"_getModifiedEditorDecorations",value:function(e,t,n,i,r){var o,a=this._dataSource.getModifiedEditor(),s=String(this._insertColor),l={decorations:[],overviewZones:[]},c=a.getModel(),u=a._getViewModel(),h=(0,Z.Z)(t);try{var f=function(){var t=o.value;if(r)if(t.modifiedEndLineNumber>0)l.decorations.push({range:new d.e(t.modifiedStartLineNumber,1,t.modifiedStartLineNumber,1),options:Zn.arrowRevertChange});else{var a=e.modified.find((function(e){return e.afterLineNumber===t.modifiedStartLineNumber}));a&&(a.marginDomNode=function(){var e=document.createElement("div");return e.className="arrow-revert-change "+Gt.kS.asClassName(Kt.lA.arrowRight),At.$("div",{},e)}())}if(jn(t)){l.decorations.push({range:new d.e(t.modifiedStartLineNumber,1,t.modifiedEndLineNumber,1073741824),options:i?Zn.lineInsertWithSign:Zn.lineInsert}),Vn(t)&&t.charChanges||l.decorations.push(Pn(t.modifiedStartLineNumber,1,t.modifiedEndLineNumber,1073741824,Zn.charInsertWholeLine));var h=Kn(c,u,t.modifiedStartLineNumber,t.modifiedEndLineNumber);if(l.overviewZones.push(new hn.EY(h.startLineNumber,h.endLineNumber,0,s)),t.charChanges){var f,p=(0,Z.Z)(t.charChanges);try{for(p.s();!(f=p.n()).done;){var g=f.value;if(Wn(g))if(n)for(var v=g.modifiedStartLineNumber;v<=g.modifiedEndLineNumber;v++){var m=void 0,y=void 0;m=v===g.modifiedStartLineNumber?g.modifiedStartColumn:c.getLineFirstNonWhitespaceColumn(v),y=v===g.modifiedEndLineNumber?g.modifiedEndColumn:c.getLineLastNonWhitespaceColumn(v),l.decorations.push(Pn(v,m,v,y,Zn.charInsert))}else l.decorations.push(Pn(g.modifiedStartLineNumber,g.modifiedStartColumn,g.modifiedEndLineNumber,g.modifiedEndColumn,Zn.charInsert))}}catch(_){p.e(_)}finally{p.f()}}}};for(h.s();!(o=h.n()).done;)f()}catch(p){h.e(p)}finally{h.f()}return l}}]),n}(Rn);Fn.MINIMUM_EDITOR_WIDTH=100;var Bn=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,s){return(0,r.Z)(this,n),t.call(this,e,i,o,a,s)}return(0,o.Z)(n,[{key:"_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion",value:function(){return null}},{key:"_produceOriginalFromDiff",value:function(e,t,n){return n>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null}},{key:"_produceModifiedFromDiff",value:function(e,t,n){return t>n?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null}}]),n}(Mn),Hn=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,e))._decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,o._register(e.getOriginalEditor().onDidLayoutChange((function(t){o._decorationsLeft!==t.decorationsLeft&&(o._decorationsLeft=t.decorationsLeft,e.relayoutEditors())}))),o}return(0,o.Z)(n,[{key:"setEnableSplitViewResizing",value:function(e){}},{key:"_getViewZones",value:function(e,t,n,i){var r=this._dataSource.getOriginalEditor(),o=this._dataSource.getModifiedEditor();return new zn(e,t,n,r,o,i).getViewZones()}},{key:"_getOriginalEditorDecorations",value:function(e,t,n,i){var r,o=String(this._removeColor),a={decorations:[],overviewZones:[]},s=this._dataSource.getOriginalEditor(),l=s.getModel(),c=s._getViewModel(),u=0,h=(0,Z.Z)(t);try{for(h.s();!(r=h.n()).done;){var f=r.value;if(Vn(f)){for(a.decorations.push({range:new d.e(f.originalStartLineNumber,1,f.originalEndLineNumber,1073741824),options:Zn.lineDeleteMargin});u<e.modified.length;){var p=e.modified[u];if(p.diff&&p.diff.originalStartLineNumber>=f.originalStartLineNumber)break;u++}var g=0;if(u<e.modified.length){var v=e.modified[u];v.diff&&v.diff.originalStartLineNumber===f.originalStartLineNumber&&v.diff.originalEndLineNumber===f.originalEndLineNumber&&v.diff.modifiedStartLineNumber===f.modifiedStartLineNumber&&v.diff.modifiedEndLineNumber===f.modifiedEndLineNumber&&(g=v.heightInLines)}var m=Kn(l,c,f.originalStartLineNumber,f.originalEndLineNumber);a.overviewZones.push(new hn.EY(m.startLineNumber,m.endLineNumber,g,o))}}}catch(y){h.e(y)}finally{h.f()}return a}},{key:"_getModifiedEditorDecorations",value:function(e,t,n,i,r){var o,a=this._dataSource.getModifiedEditor(),s=String(this._insertColor),l={decorations:[],overviewZones:[]},c=a.getModel(),u=a._getViewModel(),h=(0,Z.Z)(t);try{for(h.s();!(o=h.n()).done;){var f=o.value;if(jn(f)){l.decorations.push({range:new d.e(f.modifiedStartLineNumber,1,f.modifiedEndLineNumber,1073741824),options:i?Zn.lineInsertWithSign:Zn.lineInsert});var p=Kn(c,u,f.modifiedStartLineNumber,f.modifiedEndLineNumber);if(l.overviewZones.push(new hn.EY(p.startLineNumber,p.endLineNumber,0,s)),f.charChanges){var g,v=(0,Z.Z)(f.charChanges);try{for(v.s();!(g=v.n()).done;){var m=g.value;if(Wn(m))if(n)for(var y=m.modifiedStartLineNumber;y<=m.modifiedEndLineNumber;y++){var _=void 0,b=void 0;_=y===m.modifiedStartLineNumber?m.modifiedStartColumn:c.getLineFirstNonWhitespaceColumn(y),b=y===m.modifiedEndLineNumber?m.modifiedEndColumn:c.getLineLastNonWhitespaceColumn(y),l.decorations.push(Pn(y,_,y,b,Zn.charInsert))}else l.decorations.push(Pn(m.modifiedStartLineNumber,m.modifiedStartColumn,m.modifiedEndLineNumber,m.modifiedEndColumn,Zn.charInsert))}}catch(C){v.e(C)}finally{v.f()}}else l.decorations.push(Pn(f.modifiedStartLineNumber,1,f.modifiedEndLineNumber,1073741824,Zn.charInsertWholeLine))}}}catch(C){h.e(C)}finally{h.f()}return l}},{key:"layout",value:function(){return Math.max(5,this._decorationsLeft)}}]),n}(Rn),zn=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,s,l){var c;return(0,r.Z)(this,n),(c=t.call(this,e,i,o,a,s))._originalModel=a.getModel(),c._renderIndicators=l,c._pendingLineChange=[],c._pendingViewZones=[],c._lineBreaksComputer=c._modifiedEditor._getViewModel().createLineBreaksComputer(),c}return(0,o.Z)(n,[{key:"getViewZones",value:function(){var e=(0,S.Z)((0,w.Z)(n.prototype),"getViewZones",this).call(this);return this._finalize(e),e}},{key:"_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion",value:function(){var e=document.createElement("div");return e.className="inline-added-margin-view-zone",e}},{key:"_produceOriginalFromDiff",value:function(e,t,n){var i=document.createElement("div");return i.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n,domNode:document.createElement("div"),marginDomNode:i}}},{key:"_produceModifiedFromDiff",value:function(e,t,n){var i=document.createElement("div");i.className="view-lines line-delete ".concat(wn.S);var r=document.createElement("div");r.className="inline-deleted-margin-view-zone";for(var o={shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:0,domNode:i,marginDomNode:r,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalModel:this._originalModel,viewLineCounts:null}},a=e.originalStartLineNumber;a<=e.originalEndLineNumber;a++)this._lineBreaksComputer.addRequest(this._originalModel.getLineContent(a),null,null);return this._pendingLineChange.push(e),this._pendingViewZones.push(o),o}},{key:"_finalize",value:function(e){for(var t=this._modifiedEditor.getOptions(),n=this._modifiedEditor.getModel().getOptions().tabSize,i=t.get(46),r=t.get(29),o=i.typicalHalfwidthCharacterWidth,a=t.get(95),s=this._originalModel.mightContainNonBasicASCII(),l=this._originalModel.mightContainRTL(),c=t.get(61),u=t.get(133).decorationsWidth,h=t.get(107),f=t.get(90),p=t.get(85),g=t.get(47),v=this._lineBreaksComputer.finalize(),m=0,y=0;y<this._pendingLineChange.length;y++){var _=this._pendingLineChange[y],b=this._pendingViewZones[y],C=b.domNode;(0,Zt.N)(C,i);var S=b.marginDomNode;(0,Zt.N)(S,i);var w=[];if(_.charChanges){var k,x=(0,Z.Z)(_.charChanges);try{for(x.s();!(k=x.n()).done;){var E=k.value;Un(E)&&w.push(new tt.$t(new d.e(E.originalStartLineNumber,E.originalStartColumn,E.originalEndLineNumber,E.originalEndColumn),"char-delete",0))}}catch(q){x.e(q)}finally{x.f()}}for(var T=w.length>0,N=(0,cn.l$)(1e4),I=0,D=0,L=null,O=_.originalStartLineNumber;O<=_.originalEndLineNumber;O++){var R=O-_.originalStartLineNumber,A=this._originalModel.tokenization.getLineTokens(O),M=A.getLineContent(),P=v[m++],F=fn.Kp.filter(w,O,1,M.length+1);if(P){var B,H=0,z=(0,Z.Z)(P.breakOffsets);try{for(z.s();!(B=z.n()).done;){var j=B.value,V=A.sliceAndInflate(H,j,0),W=M.substring(H,j);I=Math.max(I,this._renderOriginalLine(D++,W,V,fn.Kp.extractWrapped(F,H,j),T,s,l,i,r,c,u,h,f,p,g,n,N,S)),H=j}}catch(q){z.e(q)}finally{z.f()}for(L||(L=[]);L.length<R;)L[L.length]=1;L[R]=P.breakOffsets.length,b.heightInLines+=P.breakOffsets.length-1;var U=document.createElement("div");U.className="gutter-delete",e.original.push({afterLineNumber:O,afterColumn:0,heightInLines:P.breakOffsets.length-1,domNode:Gn(),marginDomNode:U})}else I=Math.max(I,this._renderOriginalLine(D++,M,A,F,T,s,l,i,r,c,u,h,f,p,g,n,N,S))}I+=a;var G=N.build(),K=Ln?Ln.createHTML(G):G;if(C.innerHTML=K,b.minWidthInPx=I*o,L)for(var Y=_.originalEndLineNumber-_.originalStartLineNumber;L.length<=Y;)L[L.length]=1;b.diff.viewLineCounts=L}e.original.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber}))}},{key:"_renderOriginalLine",value:function(e,t,n,r,o,a,s,l,c,u,d,h,f,p,g,v,m,y){m.appendASCIIString('<div class="view-line'),o||m.appendASCIIString(" char-delete"),m.appendASCIIString('" style="top:'),m.appendASCIIString(String(e*u)),m.appendASCIIString('px;width:1000000px;">');var _=tt.wA.isBasicASCII(t,a),b=tt.wA.containsRTL(t,_,s),C=(0,et.d1)(new et.IJ(l.isMonospace&&!c,l.canUseHalfwidthRightwardsArrow,t,!1,_,b,0,n,r,v,0,l.spaceWidth,l.middotWidth,l.wsmiddotWidth,h,f,p,g!==i.n0.OFF,null),m);if(m.appendASCIIString("</div>"),this._renderIndicators){var S=document.createElement("div");S.className="delete-sign ".concat(Gt.kS.asClassName(Dn)),S.setAttribute("style","position:absolute;top:".concat(e*u,"px;width:").concat(d,"px;height:").concat(u,"px;right:0;")),y.appendChild(S)}return C.characterMapping.getHorizontalOffset(C.characterMapping.length)}}]),n}(Mn);function jn(e){return e.modifiedEndLineNumber>0}function Vn(e){return e.originalEndLineNumber>0}function Wn(e){return e.modifiedStartLineNumber===e.modifiedEndLineNumber?e.modifiedEndColumn-e.modifiedStartColumn>0:e.modifiedEndLineNumber-e.modifiedStartLineNumber>0}function Un(e){return e.originalStartLineNumber===e.originalEndLineNumber?e.originalEndColumn-e.originalStartColumn>0:e.originalEndLineNumber-e.originalStartLineNumber>0}function Gn(){var e=document.createElement("div");return e.className="diagonal-fill",e}function Kn(e,t,n,i){var r=e.getLineCount();return n=Math.min(r,Math.max(1,n)),i=Math.min(r,Math.max(1,i)),t.coordinatesConverter.convertModelRangeToViewRange(new d.e(n,e.getLineMinColumn(n),i,e.getLineMaxColumn(i)))}function Yn(e,t){return{enableSplitViewResizing:(0,i.O7)(e.enableSplitViewResizing,t.enableSplitViewResizing),renderSideBySide:(0,i.O7)(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:(0,i.O7)(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:(0,i.Zc)(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:(0,i.Zc)(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,i.O7)(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:(0,i.O7)(e.renderIndicators,t.renderIndicators),originalEditable:(0,i.O7)(e.originalEditable,t.originalEditable),diffCodeLens:(0,i.O7)(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:(0,i.O7)(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:(n=e.diffWordWrap,r=t.diffWordWrap,(0,i.NY)(n,r,["off","on","inherit"]))};var n,r}(0,Gt.Ic)((function(e,t){var n=e.getColor(Ut.ypS);n&&t.addRule(".monaco-editor .char-insert, .monaco-diff-editor .char-insert { background-color: ".concat(n,"; }"));var i=e.getColor(Ut.hzo)||n;i&&t.addRule(".monaco-editor .line-insert, .monaco-diff-editor .line-insert { background-color: ".concat(i,"; }"));var r=e.getColor(Ut.j51)||i;r&&(t.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: ".concat(r,"; }")),t.addRule(".monaco-editor .gutter-insert, .monaco-diff-editor .gutter-insert { background-color: ".concat(r,"; }")));var o=e.getColor(Ut.P4M);o&&t.addRule(".monaco-editor .char-delete, .monaco-diff-editor .char-delete { background-color: ".concat(o,"; }"));var a=e.getColor(Ut.xi6)||o;a&&t.addRule(".monaco-editor .line-delete, .monaco-diff-editor .line-delete { background-color: ".concat(a,"; }"));var s=e.getColor(Ut.zOm)||a;s&&(t.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: ".concat(s,"; }")),t.addRule(".monaco-editor .gutter-delete, .monaco-diff-editor .gutter-delete { background-color: ".concat(s,"; }")));var l=e.getColor(Ut.XL$);l&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ".concat((0,kn.c3)(e.type)?"dashed":"solid"," ").concat(l,"; }"));var c=e.getColor(Ut.mHy);c&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ".concat((0,kn.c3)(e.type)?"dashed":"solid"," ").concat(c,"; }"));var u=e.getColor(Ut._wn);u&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ".concat(u,"; }"));var d=e.getColor(Ut.LLc);d&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ".concat(d,"; }"));var h=e.getColor(Ut.etL);h&&t.addRule("\n\t\t\t.monaco-diff-editor .diffViewport {\n\t\t\t\tbackground: ".concat(h,";\n\t\t\t}\n\t\t"));var f=e.getColor(Ut.ABB);f&&t.addRule("\n\t\t\t.monaco-diff-editor .diffViewport:hover {\n\t\t\t\tbackground: ".concat(f,";\n\t\t\t}\n\t\t"));var p=e.getColor(Ut.ynu);p&&t.addRule("\n\t\t\t.monaco-diff-editor .diffViewport:active {\n\t\t\t\tbackground: ".concat(p,";\n\t\t\t}\n\t\t"));var g=e.getColor(Ut.L_t);t.addRule("\n\t.monaco-editor .diagonal-fill {\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t".concat(g," 12.5%,\n\t\t\t#0000 12.5%, #0000 50%,\n\t\t\t").concat(g," 50%, ").concat(g," 62.5%,\n\t\t\t#0000 62.5%, #0000 100%\n\t\t);\n\t\tbackground-size: 8px 8px;\n\t}\n\t"))}));var qn=n(52070),$n=n(84855),Xn=n(17832),Qn=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Jn=function(e,t){return function(n,i){t(n,i,e)}},ei=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},ti=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this))._themeService=e,i._onCodeEditorAdd=i._register(new s.Q5),i.onCodeEditorAdd=i._onCodeEditorAdd.event,i._onCodeEditorRemove=i._register(new s.Q5),i.onCodeEditorRemove=i._onCodeEditorRemove.event,i._onDiffEditorAdd=i._register(new s.Q5),i.onDiffEditorAdd=i._onDiffEditorAdd.event,i._onDiffEditorRemove=i._register(new s.Q5),i.onDiffEditorRemove=i._onDiffEditorRemove.event,i._decorationOptionProviders=new Map,i._codeEditorOpenHandlers=new Xn.S,i._modelProperties=new Map,i._codeEditors=Object.create(null),i._diffEditors=Object.create(null),i._globalStyleSheet=null,i}return(0,o.Z)(n,[{key:"addCodeEditor",value:function(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}},{key:"removeCodeEditor",value:function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}},{key:"listCodeEditors",value:function(){var e=this;return Object.keys(this._codeEditors).map((function(t){return e._codeEditors[t]}))}},{key:"addDiffEditor",value:function(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}},{key:"removeDiffEditor",value:function(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}},{key:"listDiffEditors",value:function(){var e=this;return Object.keys(this._diffEditors).map((function(t){return e._diffEditors[t]}))}},{key:"getFocusedCodeEditor",value:function(){var e,t=null,n=this.listCodeEditors(),i=(0,Z.Z)(n);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.hasTextFocus())return r;r.hasWidgetFocus()&&(t=r)}}catch(o){i.e(o)}finally{i.f()}return t}},{key:"removeDecorationType",value:function(e){var t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((function(t){return t.removeDecorationsByType(e)}))))}},{key:"setModelProperty",value:function(e,t,n){var i,r=e.toString();this._modelProperties.has(r)?i=this._modelProperties.get(r):(i=new Map,this._modelProperties.set(r,i)),i.set(t,n)}},{key:"getModelProperty",value:function(e,t){var n=e.toString();if(this._modelProperties.has(n))return this._modelProperties.get(n).get(t)}},{key:"openCodeEditor",value:function(e,t,n){return ei(this,void 0,void 0,(0,F.Z)().mark((function i(){var r,o,a,s;return(0,F.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:r=(0,Z.Z)(this._codeEditorOpenHandlers),i.prev=1,r.s();case 3:if((o=r.n()).done){i.next=12;break}return a=o.value,i.next=7,a(e,t,n);case 7:if(null===(s=i.sent)){i.next=10;break}return i.abrupt("return",s);case 10:i.next=3;break;case 12:i.next=17;break;case 14:i.prev=14,i.t0=i.catch(1),r.e(i.t0);case 17:return i.prev=17,r.f(),i.finish(17);case 20:return i.abrupt("return",null);case 21:case"end":return i.stop()}}),i,this,[[1,14,17,20]])})))}},{key:"registerCodeEditorOpenHandler",value:function(e){var t=this._codeEditorOpenHandlers.unshift(e);return(0,y.OF)(t)}}]),n}(y.JT);ti=Qn([Jn(0,Gt.XE)],ti);var ni=n(77896),ii=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ri=function(e,t){return function(n,i){t(n,i,e)}},oi=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},ai=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,i)).onCodeEditorAdd((function(){return o._checkContextKey()})),o.onCodeEditorRemove((function(){return o._checkContextKey()})),o._editorIsOpen=e.createKey("editorIsOpen",!1),o._activeCodeEditor=null,o.registerCodeEditorOpenHandler((function(e,t,n){return oi((0,Ot.Z)(o),void 0,void 0,(0,F.Z)().mark((function n(){return(0,F.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t){n.next=2;break}return n.abrupt("return",null);case 2:return n.abrupt("return",this.doOpenEditor(t,e));case 3:case"end":return n.stop()}}),n,this)})))})),o}return(0,o.Z)(n,[{key:"_checkContextKey",value:function(){var e,t=!1,n=(0,Z.Z)(this.listCodeEditors());try{for(n.s();!(e=n.n()).done;){if(!e.value.isSimpleWidget){t=!0;break}}}catch(i){n.e(i)}finally{n.f()}this._editorIsOpen.set(t)}},{key:"setActiveCodeEditor",value:function(e){this._activeCodeEditor=e}},{key:"getActiveCodeEditor",value:function(){return this._activeCodeEditor}},{key:"doOpenEditor",value:function(e,t){if(!this.findModel(e,t.resource)){if(t.resource){var n=t.resource.scheme;if(n===$n.lg.http||n===$n.lg.https)return(0,At.windowOpenNoOpener)(t.resource.toString()),e}return null}var i=t.options?t.options.selection:null;if(i)if("number"===typeof i.endLineNumber&&"number"===typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{var r={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(r),e.revealPositionInCenter(r,1)}return e}},{key:"findModel",value:function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n}}]),n}(ti);ai=ii([ri(0,Wt.i6),ri(1,Gt.XE)],ai),(0,ni.z)(C.$,ai);var si=(0,pn.yh)("layoutService"),li=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ci=function(e,t){return function(n,i){t(n,i,e)}},ui=function(){function e(t){(0,r.Z)(this,e),this._codeEditorService=t,this.onDidLayout=s.ju.None,this.offset={top:0,quickPickTop:0}}return(0,o.Z)(e,[{key:"dimension",get:function(){return this._dimension||(this._dimension=At.getClientArea(window.document.body)),this._dimension}},{key:"hasContainer",get:function(){return!1}},{key:"container",get:function(){throw new Error("ILayoutService.container is not available in the standalone editor!")}},{key:"focus",value:function(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}}]),e}(),di=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,i))._container=e,o}return(0,o.Z)(n,[{key:"hasContainer",get:function(){return!1}},{key:"container",get:function(){return this._container}}]),n}(ui=li([ci(0,C.$)],ui));di=li([ci(1,C.$)],di),(0,ni.z)(si,ui);var hi=n(49750),fi=n(21330),pi=n(25530),gi=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},vi=function(e,t){return function(n,i){t(n,i,e)}},mi=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},yi=!1;function _i(e){return e.scheme===$n.lg.file?e.fsPath:e.path}var bi=0,Ci=function(){function e(t,n,i,o,a,s,l){(0,r.Z)(this,e),this.id=++bi,this.type=0,this.actual=t,this.label=t.label,this.confirmBeforeUndo=t.confirmBeforeUndo||!1,this.resourceLabel=n,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=o,this.groupOrder=a,this.sourceId=s,this.sourceOrder=l,this.isValid=!0}return(0,o.Z)(e,[{key:"setValid",value:function(e){this.isValid=e}},{key:"toString",value:function(){return"[id:".concat(this.id,"] [group:").concat(this.groupId,"] [").concat(this.isValid?" VALID":"INVALID","] ").concat(this.actual.constructor.name," - ").concat(this.actual)}}]),e}(),Si=(0,o.Z)((function e(t,n){(0,r.Z)(this,e),this.resourceLabel=t,this.reason=n})),wi=function(){function e(){(0,r.Z)(this,e),this.elements=new Map}return(0,o.Z)(e,[{key:"createMessage",value:function(){var e,t=[],n=[],i=(0,Z.Z)(this.elements);try{for(i.s();!(e=i.n()).done;){var r=(0,be.Z)(e.value,2)[1];(0===r.reason?t:n).push(r.resourceLabel)}}catch(a){i.e(a)}finally{i.f()}var o=[];return t.length>0&&o.push(Rt.NC({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",t.join(", "))),n.length>0&&o.push(Rt.NC({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",n.join(", "))),o.join("\n")}},{key:"size",get:function(){return this.elements.size}},{key:"has",value:function(e){return this.elements.has(e)}},{key:"set",value:function(e,t){this.elements.set(e,t)}},{key:"delete",value:function(e){return this.elements.delete(e)}}]),e}(),ki=function(){function e(t,n,i,o,a,s,l){(0,r.Z)(this,e),this.id=++bi,this.type=1,this.actual=t,this.label=t.label,this.confirmBeforeUndo=t.confirmBeforeUndo||!1,this.resourceLabels=n,this.strResources=i,this.groupId=o,this.groupOrder=a,this.sourceId=s,this.sourceOrder=l,this.removedResources=null,this.invalidatedResources=null}return(0,o.Z)(e,[{key:"canSplit",value:function(){return"function"===typeof this.actual.split}},{key:"removeResource",value:function(e,t,n){this.removedResources||(this.removedResources=new wi),this.removedResources.has(t)||this.removedResources.set(t,new Si(e,n))}},{key:"setValid",value:function(e,t,n){n?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new wi),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new Si(e,0)))}},{key:"toString",value:function(){return"[id:".concat(this.id,"] [group:").concat(this.groupId,"] [").concat(this.invalidatedResources?"INVALID":" VALID","] ").concat(this.actual.constructor.name," - ").concat(this.actual)}}]),e}(),xi=function(){function e(t,n){(0,r.Z)(this,e),this.resourceLabel=t,this.strResource=n,this._past=[],this._future=[],this.locked=!1,this.versionId=1}return(0,o.Z)(e,[{key:"dispose",value:function(){var e,t=(0,Z.Z)(this._past);try{for(t.s();!(e=t.n()).done;){var n=e.value;1===n.type&&n.removeResource(this.resourceLabel,this.strResource,0)}}catch(a){t.e(a)}finally{t.f()}var i,r=(0,Z.Z)(this._future);try{for(r.s();!(i=r.n()).done;){var o=i.value;1===o.type&&o.removeResource(this.resourceLabel,this.strResource,0)}}catch(a){r.e(a)}finally{r.f()}this.versionId++}},{key:"toString",value:function(){var e=[];e.push("* ".concat(this.strResource,":"));for(var t=0;t<this._past.length;t++)e.push(" * [UNDO] ".concat(this._past[t]));for(var n=this._future.length-1;n>=0;n--)e.push(" * [REDO] ".concat(this._future[n]));return e.join("\n")}},{key:"flushAllElements",value:function(){this._past=[],this._future=[],this.versionId++}},{key:"_setElementValidFlag",value:function(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}},{key:"setElementsValidFlag",value:function(e,t){var n,i=(0,Z.Z)(this._past);try{for(i.s();!(n=i.n()).done;){var r=n.value;t(r.actual)&&this._setElementValidFlag(r,e)}}catch(l){i.e(l)}finally{i.f()}var o,a=(0,Z.Z)(this._future);try{for(a.s();!(o=a.n()).done;){var s=o.value;t(s.actual)&&this._setElementValidFlag(s,e)}}catch(l){a.e(l)}finally{a.f()}}},{key:"pushElement",value:function(e){var t,n=(0,Z.Z)(this._future);try{for(n.s();!(t=n.n()).done;){var i=t.value;1===i.type&&i.removeResource(this.resourceLabel,this.strResource,1)}}catch(r){n.e(r)}finally{n.f()}this._future=[],this._past.push(e),this.versionId++}},{key:"createSnapshot",value:function(e){for(var t=[],n=0,i=this._past.length;n<i;n++)t.push(this._past[n].id);for(var r=this._future.length-1;r>=0;r--)t.push(this._future[r].id);return new pi.YO(e,t)}},{key:"restoreSnapshot",value:function(e){for(var t=e.elements.length,n=!0,i=0,r=-1,o=0,a=this._past.length;o<a;o++,i++){var s=this._past[o];n&&(i>=t||s.id!==e.elements[i])&&(n=!1,r=0),n||1!==s.type||s.removeResource(this.resourceLabel,this.strResource,0)}for(var l=-1,c=this._future.length-1;c>=0;c--,i++){var u=this._future[c];n&&(i>=t||u.id!==e.elements[i])&&(n=!1,l=c),n||1!==u.type||u.removeResource(this.resourceLabel,this.strResource,0)}-1!==r&&(this._past=this._past.slice(0,r)),-1!==l&&(this._future=this._future.slice(l+1)),this.versionId++}},{key:"getElements",value:function(){var e,t=[],n=[],i=(0,Z.Z)(this._past);try{for(i.s();!(e=i.n()).done;){var r=e.value;t.push(r.actual)}}catch(l){i.e(l)}finally{i.f()}var o,a=(0,Z.Z)(this._future);try{for(a.s();!(o=a.n()).done;){var s=o.value;n.push(s.actual)}}catch(l){a.e(l)}finally{a.f()}return{past:t,future:n}}},{key:"getClosestPastElement",value:function(){return 0===this._past.length?null:this._past[this._past.length-1]}},{key:"getSecondClosestPastElement",value:function(){return this._past.length<2?null:this._past[this._past.length-2]}},{key:"getClosestFutureElement",value:function(){return 0===this._future.length?null:this._future[this._future.length-1]}},{key:"hasPastElements",value:function(){return this._past.length>0}},{key:"hasFutureElements",value:function(){return this._future.length>0}},{key:"splitPastWorkspaceElement",value:function(e,t){for(var n=this._past.length-1;n>=0;n--)if(this._past[n]===e){t.has(this.strResource)?this._past[n]=t.get(this.strResource):this._past.splice(n,1);break}this.versionId++}},{key:"splitFutureWorkspaceElement",value:function(e,t){for(var n=this._future.length-1;n>=0;n--)if(this._future[n]===e){t.has(this.strResource)?this._future[n]=t.get(this.strResource):this._future.splice(n,1);break}this.versionId++}},{key:"moveBackward",value:function(e){this._past.pop(),this._future.push(e),this.versionId++}},{key:"moveForward",value:function(e){this._future.pop(),this._past.push(e),this.versionId++}}]),e}(),Ei=function(){function e(t){(0,r.Z)(this,e),this.editStacks=t,this._versionIds=[];for(var n=0,i=this.editStacks.length;n<i;n++)this._versionIds[n]=this.editStacks[n].versionId}return(0,o.Z)(e,[{key:"isValid",value:function(){for(var e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}]),e}(),Ti=new xi("","");Ti.locked=!0;var Ni=function(){function e(t,n){(0,r.Z)(this,e),this._dialogService=t,this._notificationService=n,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}return(0,o.Z)(e,[{key:"getUriComparisonKey",value:function(e){var t,n=(0,Z.Z)(this._uriComparisonKeyComputers);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i[0]===e.scheme)return i[1].getComparisonKey(e)}}catch(r){n.e(r)}finally{n.f()}return e.toString()}},{key:"_print",value:function(e){console.log("------------------------------------"),console.log("AFTER ".concat(e,": "));var t,n=[],i=(0,Z.Z)(this._editStacks);try{for(i.s();!(t=i.n()).done;){var r=t.value;n.push(r[1].toString())}}catch(o){i.e(o)}finally{i.f()}console.log(n.join("\n"))}},{key:"pushElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pi.Xt.None,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pi.gJ.None;if(0===e.type){var i=_i(e.resource),r=this.getUriComparisonKey(e.resource);this._pushElement(new Ci(e,i,r,t.id,t.nextOrder(),n.id,n.nextOrder()))}else{var o,a=new Set,s=[],l=[],c=(0,Z.Z)(e.resources);try{for(c.s();!(o=c.n()).done;){var u=o.value,d=_i(u),h=this.getUriComparisonKey(u);a.has(h)||(a.add(h),s.push(d),l.push(h))}}catch(f){c.e(f)}finally{c.f()}1===s.length?this._pushElement(new Ci(e,s[0],l[0],t.id,t.nextOrder(),n.id,n.nextOrder())):this._pushElement(new ki(e,s,l,t.id,t.nextOrder(),n.id,n.nextOrder()))}}},{key:"_pushElement",value:function(e){for(var t=0,n=e.strResources.length;t<n;t++){var i=e.resourceLabels[t],r=e.strResources[t],o=void 0;this._editStacks.has(r)?o=this._editStacks.get(r):(o=new xi(i,r),this._editStacks.set(r,o)),o.pushElement(e)}}},{key:"getLastElement",value:function(e){var t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){var n=this._editStacks.get(t);if(n.hasFutureElements())return null;var i=n.getClosestPastElement();return i?i.actual:null}return null}},{key:"_splitPastWorkspaceElement",value:function(e,t){var n,i=e.actual.split(),r=new Map,o=(0,Z.Z)(i);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=_i(a.resource),l=this.getUriComparisonKey(a.resource),c=new Ci(a,s,l,0,0,0,0);r.set(c.strResource,c)}}catch(f){o.e(f)}finally{o.f()}var u,d=(0,Z.Z)(e.strResources);try{for(d.s();!(u=d.n()).done;){var h=u.value;if(!t||!t.has(h))this._editStacks.get(h).splitPastWorkspaceElement(e,r)}}catch(f){d.e(f)}finally{d.f()}}},{key:"_splitFutureWorkspaceElement",value:function(e,t){var n,i=e.actual.split(),r=new Map,o=(0,Z.Z)(i);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=_i(a.resource),l=this.getUriComparisonKey(a.resource),c=new Ci(a,s,l,0,0,0,0);r.set(c.strResource,c)}}catch(f){o.e(f)}finally{o.f()}var u,d=(0,Z.Z)(e.strResources);try{for(d.s();!(u=d.n()).done;){var h=u.value;if(!t||!t.has(h))this._editStacks.get(h).splitFutureWorkspaceElement(e,r)}}catch(f){d.e(f)}finally{d.f()}}},{key:"removeElements",value:function(e){var t="string"===typeof e?e:this.getUriComparisonKey(e);this._editStacks.has(t)&&(this._editStacks.get(t).dispose(),this._editStacks.delete(t))}},{key:"setElementsValidFlag",value:function(e,t,n){var i=this.getUriComparisonKey(e);this._editStacks.has(i)&&this._editStacks.get(i).setElementsValidFlag(t,n)}},{key:"createSnapshot",value:function(e){var t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).createSnapshot(e):new pi.YO(e,[])}},{key:"restoreSnapshot",value:function(e){var t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){var n=this._editStacks.get(t);n.restoreSnapshot(e),n.hasPastElements()||n.hasFutureElements()||(n.dispose(),this._editStacks.delete(t))}}},{key:"getElements",value:function(e){var t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).getElements():{past:[],future:[]}}},{key:"_findClosestUndoElementWithSource",value:function(e){if(!e)return[null,null];var t,n=null,i=null,r=(0,Z.Z)(this._editStacks);try{for(r.s();!(t=r.n()).done;){var o=(0,be.Z)(t.value,2),a=o[0],s=o[1].getClosestPastElement();s&&(s.sourceId===e&&(!n||s.sourceOrder>n.sourceOrder)&&(n=s,i=a))}}catch(l){r.e(l)}finally{r.f()}return[n,i]}},{key:"canUndo",value:function(e){if(e instanceof pi.gJ){var t=this._findClosestUndoElementWithSource(e.id);return!!(0,be.Z)(t,2)[1]}var n=this.getUriComparisonKey(e);return!!this._editStacks.has(n)&&this._editStacks.get(n).hasPastElements()}},{key:"_onError",value:function(e,t){(0,H.dL)(e);var n,i=(0,Z.Z)(t.strResources);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.removeElements(r)}}catch(e){i.e(e)}finally{i.f()}this._notificationService.error(e)}},{key:"_acquireLocks",value:function(e){var t,n=(0,Z.Z)(e.editStacks);try{for(n.s();!(t=n.n()).done;){if(t.value.locked)throw new Error("Cannot acquire edit stack lock")}}catch(o){n.e(o)}finally{n.f()}var i,r=(0,Z.Z)(e.editStacks);try{for(r.s();!(i=r.n()).done;){i.value.locked=!0}}catch(o){r.e(o)}finally{r.f()}return function(){var t,n=(0,Z.Z)(e.editStacks);try{for(n.s();!(t=n.n()).done;){t.value.locked=!1}}catch(o){n.e(o)}finally{n.f()}}}},{key:"_safeInvokeWithLocks",value:function(e,t,n,i,r){var o,a=this,s=this._acquireLocks(n);try{o=t()}catch(l){return s(),i.dispose(),this._onError(l,e)}return o?o.then((function(){return s(),i.dispose(),r()}),(function(t){return s(),i.dispose(),a._onError(t,e)})):(s(),i.dispose(),r())}},{key:"_invokeWorkspacePrepare",value:function(e){return mi(this,void 0,void 0,(0,F.Z)().mark((function t(){var n;return(0,F.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!==typeof e.actual.prepareUndoRedo){t.next=2;break}return t.abrupt("return",y.JT.None);case 2:if("undefined"!==typeof(n=e.actual.prepareUndoRedo())){t.next=5;break}return t.abrupt("return",y.JT.None);case 5:return t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)})))}},{key:"_invokeResourcePrepare",value:function(e,t){if(1!==e.actual.type||"undefined"===typeof e.actual.prepareUndoRedo)return t(y.JT.None);var n=e.actual.prepareUndoRedo();return n?(0,y.Wf)(n)?t(n):n.then((function(e){return t(e)})):t(y.JT.None)}},{key:"_getAffectedEditStacks",value:function(e){var t,n=[],i=(0,Z.Z)(e.strResources);try{for(i.s();!(t=i.n()).done;){var r=t.value;n.push(this._editStacks.get(r)||Ti)}}catch(o){i.e(o)}finally{i.f()}return new Ei(n)}},{key:"_tryToSplitAndUndo",value:function(e,t,n,i){if(t.canSplit())return this._splitPastWorkspaceElement(t,n),this._notificationService.warn(i),new Ii(this._undo(e,0,!0));var r,o=(0,Z.Z)(t.strResources);try{for(o.s();!(r=o.n()).done;){var a=r.value;this.removeElements(a)}}catch(s){o.e(s)}finally{o.f()}return this._notificationService.warn(i),new Ii}},{key:"_checkWorkspaceUndo",value:function(e,t,n,i){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,Rt.NC({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(i&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,Rt.NC({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));var r,o=[],a=(0,Z.Z)(n.editStacks);try{for(a.s();!(r=a.n()).done;){var s=r.value;s.getClosestPastElement()!==t&&o.push(s.resourceLabel)}}catch(h){a.e(h)}finally{a.f()}if(o.length>0)return this._tryToSplitAndUndo(e,t,null,Rt.NC({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));var l,c=[],u=(0,Z.Z)(n.editStacks);try{for(u.s();!(l=u.n()).done;){var d=l.value;d.locked&&c.push(d.resourceLabel)}}catch(h){u.e(h)}finally{u.f()}return c.length>0?this._tryToSplitAndUndo(e,t,null,Rt.NC({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,c.join(", "))):n.isValid()?null:this._tryToSplitAndUndo(e,t,null,Rt.NC({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}},{key:"_workspaceUndo",value:function(e,t,n){var i=this._getAffectedEditStacks(t),r=this._checkWorkspaceUndo(e,t,i,!1);return r?r.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,i,n)}},{key:"_isPartOfUndoGroup",value:function(e){if(!e.groupId)return!1;var t,n=(0,Z.Z)(this._editStacks);try{for(n.s();!(t=n.n()).done;){var i=(0,be.Z)(t.value,2)[1],r=i.getClosestPastElement();if(r){if(r===e){var o=i.getSecondClosestPastElement();if(o&&o.groupId===e.groupId)return!0}if(r.groupId===e.groupId)return!0}}}catch(a){n.e(a)}finally{n.f()}return!1}},{key:"_confirmAndExecuteWorkspaceUndo",value:function(e,t,n,i){return mi(this,void 0,void 0,(0,F.Z)().mark((function r(){var o,a,s,l,c,u,d=this;return(0,F.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.canSplit()||this._isPartOfUndoGroup(t)){r.next=13;break}return r.next=3,this._dialogService.show(hi.Z.Info,Rt.NC("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[Rt.NC({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",n.editStacks.length),Rt.NC("nok","Undo this File"),Rt.NC("cancel","Cancel")],{cancelId:2});case 3:if(2!==(o=r.sent).choice){r.next=6;break}return r.abrupt("return");case 6:if(1!==o.choice){r.next=9;break}return this._splitPastWorkspaceElement(t,null),r.abrupt("return",this._undo(e,0,!0));case 9:if(!(a=this._checkWorkspaceUndo(e,t,n,!1))){r.next=12;break}return r.abrupt("return",a.returnValue);case 12:i=!0;case 13:return r.prev=13,r.next=16,this._invokeWorkspacePrepare(t);case 16:s=r.sent,r.next=22;break;case 19:return r.prev=19,r.t0=r.catch(13),r.abrupt("return",this._onError(r.t0,t));case 22:if(!(l=this._checkWorkspaceUndo(e,t,n,!0))){r.next=26;break}return s.dispose(),r.abrupt("return",l.returnValue);case 26:c=(0,Z.Z)(n.editStacks);try{for(c.s();!(u=c.n()).done;)u.value.moveBackward(t)}catch(h){c.e(h)}finally{c.f()}return r.abrupt("return",this._safeInvokeWithLocks(t,(function(){return t.actual.undo()}),n,s,(function(){return d._continueUndoInGroup(t.groupId,i)})));case 29:case"end":return r.stop()}}),r,this,[[13,19]])})))}},{key:"_resourceUndo",value:function(e,t,n){var i=this;if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(function(r){return e.moveBackward(t),i._safeInvokeWithLocks(t,(function(){return t.actual.undo()}),new Ei([e]),r,(function(){return i._continueUndoInGroup(t.groupId,n)}))}));var r=Rt.NC({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(r)}else e.flushAllElements()}},{key:"_findClosestUndoElementInGroup",value:function(e){if(!e)return[null,null];var t,n=null,i=null,r=(0,Z.Z)(this._editStacks);try{for(r.s();!(t=r.n()).done;){var o=(0,be.Z)(t.value,2),a=o[0],s=o[1].getClosestPastElement();s&&(s.groupId===e&&(!n||s.groupOrder>n.groupOrder)&&(n=s,i=a))}}catch(l){r.e(l)}finally{r.f()}return[n,i]}},{key:"_continueUndoInGroup",value:function(e,t){if(e){var n=this._findClosestUndoElementInGroup(e),i=(0,be.Z)(n,2)[1];return i?this._undo(i,0,t):void 0}}},{key:"undo",value:function(e){if(e instanceof pi.gJ){var t=this._findClosestUndoElementWithSource(e.id),n=(0,be.Z)(t,2)[1];return n?this._undo(n,e.id,!1):void 0}return"string"===typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}},{key:"_undo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;if(this._editStacks.has(e)){var i=this._editStacks.get(e),r=i.getClosestPastElement();if(r){if(r.groupId){var o=this._findClosestUndoElementInGroup(r.groupId),a=(0,be.Z)(o,2),s=a[0],l=a[1];if(r!==s&&l)return this._undo(l,t,n)}var c=r.sourceId!==t||r.confirmBeforeUndo;if(c&&!n)return this._confirmAndContinueUndo(e,t,r);try{return 1===r.type?this._workspaceUndo(e,r,n):this._resourceUndo(i,r,n)}finally{yi}}}}},{key:"_confirmAndContinueUndo",value:function(e,t,n){return mi(this,void 0,void 0,(0,F.Z)().mark((function i(){return(0,F.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this._dialogService.show(hi.Z.Info,Rt.NC("confirmDifferentSource","Would you like to undo '{0}'?",n.label),[Rt.NC("confirmDifferentSource.yes","Yes"),Rt.NC("confirmDifferentSource.no","No")],{cancelId:1});case 2:if(1!==i.sent.choice){i.next=5;break}return i.abrupt("return");case 5:return i.abrupt("return",this._undo(e,t,!0));case 6:case"end":return i.stop()}}),i,this)})))}},{key:"_findClosestRedoElementWithSource",value:function(e){if(!e)return[null,null];var t,n=null,i=null,r=(0,Z.Z)(this._editStacks);try{for(r.s();!(t=r.n()).done;){var o=(0,be.Z)(t.value,2),a=o[0],s=o[1].getClosestFutureElement();s&&(s.sourceId===e&&(!n||s.sourceOrder<n.sourceOrder)&&(n=s,i=a))}}catch(l){r.e(l)}finally{r.f()}return[n,i]}},{key:"canRedo",value:function(e){if(e instanceof pi.gJ){var t=this._findClosestRedoElementWithSource(e.id);return!!(0,be.Z)(t,2)[1]}var n=this.getUriComparisonKey(e);return!!this._editStacks.has(n)&&this._editStacks.get(n).hasFutureElements()}},{key:"_tryToSplitAndRedo",value:function(e,t,n,i){if(t.canSplit())return this._splitFutureWorkspaceElement(t,n),this._notificationService.warn(i),new Ii(this._redo(e));var r,o=(0,Z.Z)(t.strResources);try{for(o.s();!(r=o.n()).done;){var a=r.value;this.removeElements(a)}}catch(s){o.e(s)}finally{o.f()}return this._notificationService.warn(i),new Ii}},{key:"_checkWorkspaceRedo",value:function(e,t,n,i){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,Rt.NC({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(i&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,Rt.NC({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));var r,o=[],a=(0,Z.Z)(n.editStacks);try{for(a.s();!(r=a.n()).done;){var s=r.value;s.getClosestFutureElement()!==t&&o.push(s.resourceLabel)}}catch(h){a.e(h)}finally{a.f()}if(o.length>0)return this._tryToSplitAndRedo(e,t,null,Rt.NC({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));var l,c=[],u=(0,Z.Z)(n.editStacks);try{for(u.s();!(l=u.n()).done;){var d=l.value;d.locked&&c.push(d.resourceLabel)}}catch(h){u.e(h)}finally{u.f()}return c.length>0?this._tryToSplitAndRedo(e,t,null,Rt.NC({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,c.join(", "))):n.isValid()?null:this._tryToSplitAndRedo(e,t,null,Rt.NC({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}},{key:"_workspaceRedo",value:function(e,t){var n=this._getAffectedEditStacks(t),i=this._checkWorkspaceRedo(e,t,n,!1);return i?i.returnValue:this._executeWorkspaceRedo(e,t,n)}},{key:"_executeWorkspaceRedo",value:function(e,t,n){return mi(this,void 0,void 0,(0,F.Z)().mark((function i(){var r,o,a,s,l=this;return(0,F.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,this._invokeWorkspacePrepare(t);case 3:r=i.sent,i.next=9;break;case 6:return i.prev=6,i.t0=i.catch(0),i.abrupt("return",this._onError(i.t0,t));case 9:if(!(o=this._checkWorkspaceRedo(e,t,n,!0))){i.next=13;break}return r.dispose(),i.abrupt("return",o.returnValue);case 13:a=(0,Z.Z)(n.editStacks);try{for(a.s();!(s=a.n()).done;)s.value.moveForward(t)}catch(c){a.e(c)}finally{a.f()}return i.abrupt("return",this._safeInvokeWithLocks(t,(function(){return t.actual.redo()}),n,r,(function(){return l._continueRedoInGroup(t.groupId)})));case 16:case"end":return i.stop()}}),i,this,[[0,6]])})))}},{key:"_resourceRedo",value:function(e,t){var n=this;if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(function(i){return e.moveForward(t),n._safeInvokeWithLocks(t,(function(){return t.actual.redo()}),new Ei([e]),i,(function(){return n._continueRedoInGroup(t.groupId)}))}));var i=Rt.NC({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(i)}else e.flushAllElements()}},{key:"_findClosestRedoElementInGroup",value:function(e){if(!e)return[null,null];var t,n=null,i=null,r=(0,Z.Z)(this._editStacks);try{for(r.s();!(t=r.n()).done;){var o=(0,be.Z)(t.value,2),a=o[0],s=o[1].getClosestFutureElement();s&&(s.groupId===e&&(!n||s.groupOrder<n.groupOrder)&&(n=s,i=a))}}catch(l){r.e(l)}finally{r.f()}return[n,i]}},{key:"_continueRedoInGroup",value:function(e){if(e){var t=this._findClosestRedoElementInGroup(e),n=(0,be.Z)(t,2)[1];return n?this._redo(n):void 0}}},{key:"redo",value:function(e){if(e instanceof pi.gJ){var t=this._findClosestRedoElementWithSource(e.id),n=(0,be.Z)(t,2)[1];return n?this._redo(n):void 0}return"string"===typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}},{key:"_redo",value:function(e){if(this._editStacks.has(e)){var t=this._editStacks.get(e),n=t.getClosestFutureElement();if(n){if(n.groupId){var i=this._findClosestRedoElementInGroup(n.groupId),r=(0,be.Z)(i,2),o=r[0],a=r[1];if(n!==o&&a)return this._redo(a)}try{return 1===n.type?this._workspaceRedo(e,n):this._resourceRedo(t,n)}finally{yi}}}}}]),e}();Ni=gi([vi(0,fi.S),vi(1,vn.lT)],Ni);var Ii=(0,o.Z)((function e(t){(0,r.Z)(this,e),this.returnValue=t}));(0,ni.z)(pi.tJ,Ni);n(98971);var Di=n(33813),Li=n(94486),Oi=n(23),Ri=n(35243),Ai=n(3055),Mi=n(95011),Pi=n(11133),Zi=n(54376),Fi=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];(0,r.Z)(this,e),this._contents=t,this._keys=n,this._overrides=i,this.frozen=!1,this.overrideConfigurations=new Map}return(0,o.Z)(e,[{key:"contents",get:function(){return this.checkAndFreeze(this._contents)}},{key:"overrides",get:function(){return this.checkAndFreeze(this._overrides)}},{key:"keys",get:function(){return this.checkAndFreeze(this._keys)}},{key:"isEmpty",value:function(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}},{key:"getValue",value:function(e){return e?(0,dt.Mt)(this.contents,e):this.contents}},{key:"getOverrideValue",value:function(e,t){var n=this.getContentsForOverrideIdentifer(t);return n?e?(0,dt.Mt)(n,e):n:void 0}},{key:"override",value:function(e){var t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}},{key:"merge",value:function(){for(var t=this,n=T.I8(this.contents),i=T.I8(this.overrides),r=(0,m.Z)(this.keys),o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];for(var l=0,c=a;l<c.length;l++){var u=c[l];if(!u.isEmpty()){this.mergeContents(n,u.contents);var d,h=(0,Z.Z)(u.overrides);try{var f=function(){var e,n=d.value,r=i.filter((function(e){return Ze.fS(e.identifiers,n.identifiers)})),o=(0,be.Z)(r,1)[0];o?(t.mergeContents(o.contents,n.contents),(e=o.keys).push.apply(e,(0,m.Z)(n.keys)),o.keys=Ze.EB(o.keys)):i.push(T.I8(n))};for(h.s();!(d=h.n()).done;)f()}catch(y){h.e(y)}finally{h.f()}var p,g=(0,Z.Z)(u.keys);try{for(g.s();!(p=g.n()).done;){var v=p.value;-1===r.indexOf(v)&&r.push(v)}}catch(y){g.e(y)}finally{g.f()}}}return new e(n,r,i)}},{key:"freeze",value:function(){return this.frozen=!0,this}},{key:"createOverrideConfigurationModel",value:function(t){var n=this.getContentsForOverrideIdentifer(t);if(!n||"object"!==typeof n||!Object.keys(n).length)return this;var i,r={},o=(0,Z.Z)(Ze.EB([].concat((0,m.Z)(Object.keys(this.contents)),(0,m.Z)(Object.keys(n)))));try{for(o.s();!(i=o.n()).done;){var a=i.value,s=this.contents[a],l=n[a];l&&("object"===typeof s&&"object"===typeof l?(s=T.I8(s),this.mergeContents(s,l)):s=l),r[a]=s}}catch(c){o.e(c)}finally{o.f()}return new e(r,this.keys,this.overrides)}},{key:"mergeContents",value:function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];r in e&&j.Kn(e[r])&&j.Kn(t[r])?this.mergeContents(e[r],t[r]):e[r]=T.I8(t[r])}}},{key:"checkAndFreeze",value:function(e){return this.frozen&&!Object.isFrozen(e)?T._A(e):e}},{key:"getContentsForOverrideIdentifer",value:function(e){var t,n=this,i=null,r=null,o=function(e){e&&(r?n.mergeContents(r,e):r=T.I8(e))},a=(0,Z.Z)(this.overrides);try{for(a.s();!(t=a.n()).done;){var s=t.value;Ze.fS(s.identifiers,[e])?i=s.contents:s.identifiers.includes(e)&&o(s.contents)}}catch(l){a.e(l)}finally{a.f()}return o(i),r}},{key:"toJSON",value:function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}},{key:"setValue",value:function(e,t){this.addKey(e),(0,dt.KV)(this.contents,e,t,(function(e){throw new Error(e)}))}},{key:"removeValue",value:function(e){this.removeKey(e)&&(0,dt.xL)(this.contents,e)}},{key:"addKey",value:function(e){for(var t=this.keys.length,n=0;n<t;n++)0===e.indexOf(this.keys[n])&&(t=n);this.keys.splice(t,1,e)}},{key:"removeKey",value:function(e){var t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0)}}]),e}(),Bi=function(){function e(t,n,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Fi,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Fi,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new Zi.Y9,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:new Fi,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:new Zi.Y9,d=!(arguments.length>9&&void 0!==arguments[9])||arguments[9];(0,r.Z)(this,e),this._defaultConfiguration=t,this._policyConfiguration=n,this._applicationConfiguration=i,this._localUserConfiguration=o,this._remoteUserConfiguration=a,this._workspaceConfiguration=s,this._folderConfigurations=l,this._memoryConfiguration=c,this._memoryConfigurationByResource=u,this._freeze=d,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Zi.Y9,this._userConfiguration=null}return(0,o.Z)(e,[{key:"getValue",value:function(e,t,n){return this.getConsolidatedConfigurationModel(e,t,n).getValue(e)}},{key:"updateValue",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i.resource?(n=this._memoryConfigurationByResource.get(i.resource))||(n=new Fi,this._memoryConfigurationByResource.set(i.resource,n)):n=this._memoryConfiguration,void 0===t?n.removeValue(e):n.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}},{key:"inspect",value:function(e,t,n){var i=this.getConsolidatedConfigurationModel(e,t,n),r=this.getFolderConfigurationModelForResource(t.resource,n),o=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,a=t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),s=this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration.freeze().getValue(e),l=this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration.freeze().getValue(e),c=t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.userConfiguration.freeze().getValue(e),u=t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.localUserConfiguration.freeze().getValue(e),d=t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.remoteUserConfiguration.freeze().getValue(e),h=n?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,f=r?t.overrideIdentifier?r.freeze().override(t.overrideIdentifier).getValue(e):r.freeze().getValue(e):void 0,p=t.overrideIdentifier?o.override(t.overrideIdentifier).getValue(e):o.getValue(e),g=i.getValue(e),v=Ze.EB(i.overrides.map((function(e){return e.identifiers})).flat()).filter((function(t){return void 0!==i.getOverrideValue(e,t)}));return{defaultValue:a,policyValue:s,applicationValue:l,userValue:c,userLocalValue:u,userRemoteValue:d,workspaceValue:h,workspaceFolderValue:f,memoryValue:p,value:g,default:void 0!==a?{value:this._defaultConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,policy:void 0!==s?{value:s}:void 0,application:void 0!==l?{value:l,override:t.overrideIdentifier?this.applicationConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,user:void 0!==c?{value:this.userConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userLocal:void 0!==u?{value:this.localUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userRemote:void 0!==d?{value:this.remoteUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspace:void 0!==h?{value:this._workspaceConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspaceFolder:void 0!==f?{value:null===r||void 0===r?void 0:r.freeze().getValue(e),override:t.overrideIdentifier?null===r||void 0===r?void 0:r.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,memory:void 0!==p?{value:o.getValue(e),override:t.overrideIdentifier?o.getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:v.length?v:void 0}}},{key:"applicationConfiguration",get:function(){return this._applicationConfiguration}},{key:"userConfiguration",get:function(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}},{key:"localUserConfiguration",get:function(){return this._localUserConfiguration}},{key:"remoteUserConfiguration",get:function(){return this._remoteUserConfiguration}},{key:"getConsolidatedConfigurationModel",value:function(e,t,n){var i=this.getConsolidatedConfigurationModelForResource(t,n);return t.overrideIdentifier&&(i=i.override(t.overrideIdentifier)),this._policyConfiguration.isEmpty()||void 0===this._policyConfiguration.getValue(e)||(i=i.merge(this._policyConfiguration)),i}},{key:"getConsolidatedConfigurationModelForResource",value:function(e,t){var n=e.resource,i=this.getWorkspaceConsolidatedConfiguration();if(t&&n){var r=t.getFolder(n);r&&(i=this.getFolderConsolidatedConfiguration(r.uri)||i);var o=this._memoryConfigurationByResource.get(n);o&&(i=i.merge(o))}return i}},{key:"getWorkspaceConsolidatedConfiguration",value:function(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}},{key:"getFolderConsolidatedConfiguration",value:function(e){var t=this._foldersConsolidatedConfigurations.get(e);if(!t){var n=this.getWorkspaceConsolidatedConfiguration(),i=this._folderConfigurations.get(e);i?(t=n.merge(i),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n}return t}},{key:"getFolderConfigurationModelForResource",value:function(e,t){if(t&&e){var n=t.getFolder(e);if(n)return this._folderConfigurations.get(n.uri)}}},{key:"toData",value:function(){var e=this;return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:(0,m.Z)(this._folderConfigurations.keys()).reduce((function(t,n){var i=e._folderConfigurations.get(n),r=i.contents,o=i.overrides,a=i.keys;return t.push([n,{contents:r,overrides:o,keys:a}]),t}),[])}}}],[{key:"parse",value:function(t){var n=this,i=this.parseConfigurationModel(t.defaults),r=this.parseConfigurationModel(t.policy),o=this.parseConfigurationModel(t.application),a=this.parseConfigurationModel(t.user),s=this.parseConfigurationModel(t.workspace),l=t.folders.reduce((function(e,t){return e.set(c.o.revive(t[0]),n.parseConfigurationModel(t[1])),e}),new Zi.Y9);return new e(i,r,o,a,new Fi,s,l,new Fi,new Zi.Y9,!1)}},{key:"parseConfigurationModel",value:function(e){return new Fi(e.contents,e.keys,e.overrides).freeze()}}]),e}(),Hi=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.change=t,this.previous=n,this.currentConfiguraiton=i,this.currentWorkspace=o,this._previousConfiguration=void 0;var a=new Set;t.keys.forEach((function(e){return a.add(e)})),t.overrides.forEach((function(e){return(0,be.Z)(e,2)[1].forEach((function(e){return a.add(e)}))})),this.affectedKeys=(0,m.Z)(a.values());var s=new Fi;this.affectedKeys.forEach((function(e){return s.setValue(e,{})})),this.affectedKeysTree=s.contents}return(0,o.Z)(e,[{key:"previousConfiguration",get:function(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Bi.parse(this.previous.data)),this._previousConfiguration}},{key:"affectsConfiguration",value:function(e,t){var n;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)){if(t){var i=this.previousConfiguration?this.previousConfiguration.getValue(e,t,null===(n=this.previous)||void 0===n?void 0:n.workspace):void 0,r=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!T.fS(i,r)}return!0}return!1}},{key:"doesAffectedKeysTreeContains",value:function(e,t){for(var n,i=(0,dt.Od)((0,ae.Z)({},t,!0),(function(){}));"object"===typeof i&&(n=Object.keys(i)[0]);){if(!(e=e[n]))return!1;i=i[n]}return!0}}]),e}(),zi=/^(cursor|delete)/,ji=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,l){var c;return(0,r.Z)(this,n),(c=t.call(this))._contextKeyService=e,c._commandService=i,c._telemetryService=o,c._notificationService=a,c._logService=l,c._onDidUpdateKeybindings=c._register(new s.Q5),c._currentChord=null,c._currentChordChecker=new B.zh,c._currentChordStatusMessage=null,c._ignoreSingleModifiers=Vi.EMPTY,c._currentSingleModifier=null,c._currentSingleModifierClearTimeout=new B._F,c._logging=!1,c}return(0,o.Z)(n,[{key:"onDidUpdateKeybindings",get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:s.ju.None}},{key:"dispose",value:function(){(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this)}},{key:"_log",value:function(e){this._logging&&this._logService.info("[KeybindingService]: ".concat(e))}},{key:"getKeybindings",value:function(){return this._getResolver().getKeybindings()}},{key:"lookupKeybinding",value:function(e,t){var n=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(n)return n.resolvedKeybinding}},{key:"dispatchEvent",value:function(e,t){return this._dispatch(e,t)}},{key:"softDispatch",value:function(e,t){this._log("/ Soft dispatching keyboard event");var n=this.resolveKeyboardEvent(e);if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;var i=n.getDispatchParts(),r=(0,be.Z)(i,1)[0];if(null===r)return this._log("\\ Keyboard event cannot be dispatched"),null;var o=this._contextKeyService.getContext(t),a=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(o,a,r)}},{key:"_enterChordMode",value:function(e,t){var n=this;this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(Rt.NC("first.chord","({0}) was pressed. Waiting for second key of chord...",t));var i=Date.now();this._currentChordChecker.cancelAndSet((function(){n._documentHasFocus()?Date.now()-i>5e3&&n._leaveChordMode():n._leaveChordMode()}),500)}},{key:"_leaveChordMode",value:function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}},{key:"_dispatch",value:function(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}},{key:"_singleModifierDispatch",value:function(e,t){var n=this,i=this.resolveKeyboardEvent(e),r=i.getSingleModifierDispatchParts(),o=(0,be.Z)(r,1)[0];if(o)return this._ignoreSingleModifiers.has(o)?(this._log("+ Ignoring single modifier ".concat(o," due to it being pressed together with other keys.")),this._ignoreSingleModifiers=Vi.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=Vi.EMPTY,null===this._currentSingleModifier?(this._log("+ Storing single modifier for possible chord ".concat(o,".")),this._currentSingleModifier=o,this._currentSingleModifierClearTimeout.cancelAndSet((function(){n._log("+ Clearing single modifier due to 300ms elapsed."),n._currentSingleModifier=null}),300),!1):o===this._currentSingleModifier?(this._log("/ Dispatching single modifier chord ".concat(o," ").concat(o)),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log("+ Clearing single modifier due to modifier mismatch: ".concat(this._currentSingleModifier," ").concat(o)),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));var a=i.getParts(),s=(0,be.Z)(a,1)[0];return this._ignoreSingleModifiers=new Vi(s),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}},{key:"_doDispatch",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var o=null,a=null;if(i){var s=e.getSingleModifierDispatchParts(),l=(0,be.Z)(s,1),c=l[0];o=c,a=c}else{var u=e.getDispatchParts(),d=(0,be.Z)(u,1);o=d[0],a=this._currentChord?this._currentChord.keypress:null}if(null===o)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),r;var h=this._contextKeyService.getContext(t),f=e.getLabel(),p=this._getResolver().resolve(h,a,o);return this._logService.trace("KeybindingService#dispatch",f,null===p||void 0===p?void 0:p.commandId),p&&p.enterChord?(r=!0,this._enterChordMode(o,f),this._log("+ Entering chord mode..."),r):(this._currentChord&&(p&&p.commandId||(this._log('+ Leaving chord mode: Nothing bound to "'.concat(this._currentChord.label," ").concat(f,'".')),this._notificationService.status(Rt.NC("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,f),{hideAfter:1e4}),r=!0)),this._leaveChordMode(),p&&p.commandId&&(p.bubble||(r=!0),this._log("+ Invoking command ".concat(p.commandId,".")),"undefined"===typeof p.commandArgs?this._commandService.executeCommand(p.commandId).then(void 0,(function(e){return n._notificationService.warn(e)})):this._commandService.executeCommand(p.commandId,p.commandArgs).then(void 0,(function(e){return n._notificationService.warn(e)})),zi.test(p.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:p.commandId,from:"keybinding"})),r)}},{key:"mightProducePrintableCharacter",value:function(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}]),n}(y.JT),Vi=function(){function e(t){(0,r.Z)(this,e),this._ctrlKey=!!t&&t.ctrlKey,this._shiftKey=!!t&&t.shiftKey,this._altKey=!!t&&t.altKey,this._metaKey=!!t&&t.metaKey}return(0,o.Z)(e,[{key:"has",value:function(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}]),e}();Vi.EMPTY=new Vi(null);var Wi=n(47569),Ui=function(){function e(t,n,i){(0,r.Z)(this,e),this._log=i,this._defaultKeybindings=t,this._defaultBoundCommands=new Map;var o,a=(0,Z.Z)(t);try{for(a.s();!(o=a.n()).done;){var s=o.value.command;s&&"-"!==s.charAt(0)&&this._defaultBoundCommands.set(s,!0)}}catch(d){a.e(d)}finally{a.f()}this._map=new Map,this._lookupMap=new Map,this._keybindings=e.handleRemovals([].concat(t).concat(n));for(var l=0,c=this._keybindings.length;l<c;l++){var u=this._keybindings[l];0!==u.keypressParts.length&&(u.when&&0===u.when.type||this._addKeyPress(u.keypressParts[0],u))}}return(0,o.Z)(e,[{key:"_addKeyPress",value:function(t,n){var i=this._map.get(t);if("undefined"===typeof i)return this._map.set(t,[n]),void this._addToLookupMap(n);for(var r=i.length-1;r>=0;r--){var o=i[r];if(o.command!==n.command){var a=o.keypressParts.length>1,s=n.keypressParts.length>1;a&&s&&o.keypressParts[1]!==n.keypressParts[1]||e.whenIsEntirelyIncluded(o.when,n.when)&&this._removeFromLookupMap(o)}}i.push(n),this._addToLookupMap(n)}},{key:"_addToLookupMap",value:function(e){if(e.command){var t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}}},{key:"_removeFromLookupMap",value:function(e){if(e.command){var t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return void t.splice(n,1)}}},{key:"getKeybindings",value:function(){return this._keybindings}},{key:"lookupPrimaryKeybinding",value:function(e,t){var n=this._lookupMap.get(e);if("undefined"===typeof n||0===n.length)return null;if(1===n.length)return n[0];for(var i=n.length-1;i>=0;i--){var r=n[i];if(t.contextMatchesRules(r.when))return r}return n[n.length-1]}},{key:"resolve",value:function(e,t,n){this._log("| Resolving ".concat(n).concat(t?" chorded from ".concat(t):""));var i=null;if(null!==t){var r=this._map.get(t);if("undefined"===typeof r)return this._log("\\ No keybinding entries."),null;i=[];for(var o=0,a=r.length;o<a;o++){var s=r[o];s.keypressParts[1]===n&&i.push(s)}}else{var l=this._map.get(n);if("undefined"===typeof l)return this._log("\\ No keybinding entries."),null;i=l}var c=this._findCommand(e,i);return c?null===t&&c.keypressParts.length>1&&null!==c.keypressParts[1]?(this._log("\\ From ".concat(i.length," keybinding entries, matched chord, when: ").concat(Gi(c.when),", source: ").concat(Ki(c),".")),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log("\\ From ".concat(i.length," keybinding entries, matched ").concat(c.command,", when: ").concat(Gi(c.when),", source: ").concat(Ki(c),".")),{enterChord:!1,leaveChord:c.keypressParts.length>1,commandId:c.command,commandArgs:c.commandArgs,bubble:c.bubble}):(this._log("\\ From ".concat(i.length," keybinding entries, no when clauses matched the context.")),null)}},{key:"_findCommand",value:function(t,n){for(var i=n.length-1;i>=0;i--){var r=n[i];if(e._contextMatchesRules(t,r.when))return r}return null}}],[{key:"_isTargetedForRemoval",value:function(e,t,n,i){if(t&&e.keypressParts[0]!==t)return!1;if(n&&e.keypressParts[1]!==n)return!1;if(i){if(!e.when)return!1;if(!(0,Wt.Fb)(i,e.when))return!1}return!0}},{key:"handleRemovals",value:function(e){for(var t=new Map,n=0,i=e.length;n<i;n++){var r=e[n];if(r.command&&"-"===r.command.charAt(0)){var o=r.command.substring(1);t.has(o)?t.get(o).push(r):t.set(o,[r])}}if(0===t.size)return e;for(var a=[],s=0,l=e.length;s<l;s++){var c=e[s];if(c.command&&0!==c.command.length){if("-"!==c.command.charAt(0)){var u=t.get(c.command);if(u&&c.isDefault){var d,h=!1,f=(0,Z.Z)(u);try{for(f.s();!(d=f.n()).done;){var p=d.value,g=p.keypressParts[0],v=p.keypressParts[1],m=p.when;if(this._isTargetedForRemoval(c,g,v,m)){h=!0;break}}}catch(y){f.e(y)}finally{f.f()}h||a.push(c)}else a.push(c)}}else a.push(c)}return a}},{key:"whenIsEntirelyIncluded",value:function(e,t){return!t||1===t.type||!(!e||1===e.type)&&(0,Wt.K8)(e,t)}},{key:"_contextMatchesRules",value:function(e,t){return!t||t.evaluate(e)}}]),e}();function Gi(e){return e?"".concat(e.serialize()):"no when condition"}function Ki(e){return e.extensionId?e.isBuiltinExtension?"built-in extension ".concat(e.extensionId):"user extension ".concat(e.extensionId):e.isDefault?"built-in":"user"}var Yi=n(5850),qi=(0,o.Z)((function e(t,n,i,o,a,s,l){(0,r.Z)(this,e),this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=t,this.keypressParts=t?$i(t.getDispatchParts()):[],t&&0===this.keypressParts.length&&(this.keypressParts=$i(t.getSingleModifierDispatchParts())),this.bubble=!!n&&94===n.charCodeAt(0),this.command=this.bubble?n.substr(1):n,this.commandArgs=i,this.when=o,this.isDefault=a,this.extensionId=s,this.isBuiltinExtension=l}));function $i(e){for(var t=[],n=0,i=e.length;n<i;n++){var r=e[n];if(!r)return t;t.push(r)}return t}var Xi,Qi=n(51828),Ji=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;if((0,r.Z)(this,n),o=t.call(this),0===i.length)throw(0,H.b1)("parts");return o._os=e,o._parts=i,o}return(0,o.Z)(n,[{key:"getLabel",value:function(){var e=this;return Qi.xo.toLabel(this._os,this._parts,(function(t){return e._getLabel(t)}))}},{key:"getAriaLabel",value:function(){var e=this;return Qi.X4.toLabel(this._os,this._parts,(function(t){return e._getAriaLabel(t)}))}},{key:"getElectronAccelerator",value:function(){var e=this;return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:Qi.jC.toLabel(this._os,this._parts,(function(t){return e._getElectronAccelerator(t)}))}},{key:"isChord",value:function(){return this._parts.length>1}},{key:"getParts",value:function(){var e=this;return this._parts.map((function(t){return e._getPart(t)}))}},{key:"_getPart",value:function(e){return new Li.BQ(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}},{key:"getDispatchParts",value:function(){var e=this;return this._parts.map((function(t){return e._getDispatchPart(t)}))}},{key:"getSingleModifierDispatchParts",value:function(){var e=this;return this._parts.map((function(t){return e._getSingleModifierDispatchPart(t)}))}}]),n}(Li.f1),er=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){return(0,r.Z)(this,n),t.call(this,i,e.parts)}return(0,o.Z)(n,[{key:"_keyCodeToUILabel",value:function(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return l.kL.toString(e)}},{key:"_getLabel",value:function(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}},{key:"_getAriaLabel",value:function(e){return e.isDuplicateModifierCase()?"":l.kL.toString(e.keyCode)}},{key:"_getElectronAccelerator",value:function(e){return l.kL.toElectronAccelerator(e.keyCode)}},{key:"_getDispatchPart",value:function(e){return n.getDispatchStr(e)}},{key:"_getSingleModifierDispatchPart",value:function(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}}],[{key:"getDispatchStr",value:function(e){if(e.isModifierKey())return null;var t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=l.kL.toString(e.keyCode)}},{key:"_scanCodeToKeyCode",value:function(e){var t=l.Vd[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 83;case 52:return 81;case 53:return 87;case 54:return 89;case 55:return 88;case 56:return 0;case 57:return 80;case 58:return 90;case 59:return 86;case 60:return 82;case 61:return 84;case 62:return 85;case 106:return 92}return 0}},{key:"_resolveSimpleUserBinding",value:function(e){if(!e)return null;if(e instanceof Li.QC)return e;var t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new Li.QC(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}},{key:"resolveUserBinding",value:function(e,t){var i=this,r=$i(e.map((function(e){return i._resolveSimpleUserBinding(e)})));return r.length>0?[new n(new Li.X_(r),t)]:[]}}]),n}(Ji),tr=n(38670),nr=n(15323),ir=n(17844),rr=n(22742),or=n(41175),ar=n(57215),sr=n(57572),lr=n(163);function cr(e,t,n){var i=n.mode===Xi.ALIGN?n.offset:n.offset+n.size,r=n.mode===Xi.ALIGN?n.offset+n.size:n.offset;return 0===n.position?t<=e-i?i:t<=r?r-t:Math.max(e-t,0):t<=r?r-t:t<=e-i?i:0}!function(e){e[e.AVOID=0]="AVOID",e[e.ALIGN=1]="ALIGN"}(Xi||(Xi={}));var ur=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).container=null,o.delegate=null,o.toDisposeOnClean=y.JT.None,o.toDisposeOnSetContainer=y.JT.None,o.shadowRoot=null,o.shadowRootHostElement=null,o.view=At.$(".context-view"),o.useFixedPosition=!1,o.useShadowDOM=!1,At.hide(o.view),o.setContainer(e,i),o._register((0,y.OF)((function(){return o.setContainer(null,1)}))),o}return(0,o.Z)(n,[{key:"setContainer",value:function(e,t){var i,r=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,null===(i=this.shadowRootHostElement)||void 0===i||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){if(this.container=e,this.useFixedPosition=1!==t,this.useShadowDOM=3===t,this.useShadowDOM){this.shadowRootHostElement=At.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});var o=document.createElement("style");o.textContent=dr,this.shadowRoot.appendChild(o),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(At.$("slot"))}else this.container.appendChild(this.view);var a=new y.SL;n.BUBBLE_UP_EVENTS.forEach((function(e){a.add(At.addStandardDisposableListener(r.container,e,(function(e){r.onDOMEvent(e,!1)})))})),n.BUBBLE_DOWN_EVENTS.forEach((function(e){a.add(At.addStandardDisposableListener(r.container,e,(function(e){r.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=a}}},{key:"show",value:function(e){var t,n;this.isVisible()&&this.hide(),At.clearNode(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2575",this.view.style.position=this.useFixedPosition?"fixed":"absolute",At.show(this.view),this.toDisposeOnClean=e.render(this.view)||y.JT.None,this.delegate=e,this.doLayout(),null===(n=(t=this.delegate).focus)||void 0===n||n.call(t)}},{key:"getViewElement",value:function(){return this.view}},{key:"layout",value:function(){this.isVisible()&&(!1!==this.delegate.canRelayout||z.gn&&sr.D.pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())}},{key:"doLayout",value:function(){if(this.isVisible()){var e,t=this.delegate.getAnchor();if(At.isHTMLElement(t)){var n=At.getDomNodePagePosition(t),i=At.getDomNodeZoomLevel(t);e={top:n.top*i,left:n.left*i,width:n.width*i,height:n.height*i}}else e={top:t.y,left:t.x,width:t.width||1,height:t.height||2};var r,o,a=At.getTotalWidth(this.view),s=At.getTotalHeight(this.view),l=this.delegate.anchorPosition||0,c=this.delegate.anchorAlignment||0;if(0===(this.delegate.anchorAxisAlignment||0)){var u={offset:e.top-window.pageYOffset,size:e.height,position:0===l?0:1},d={offset:e.left,size:e.width,position:0===c?0:1,mode:Xi.ALIGN};r=cr(window.innerHeight,s,u)+window.pageYOffset,lr.e.intersects({start:r,end:r+s},{start:u.offset,end:u.offset+u.size})&&(d.mode=Xi.AVOID),o=cr(window.innerWidth,a,d)}else{var h={offset:e.left,size:e.width,position:0===c?0:1},f={offset:e.top,size:e.height,position:0===l?0:1,mode:Xi.ALIGN};o=cr(window.innerWidth,a,h),lr.e.intersects({start:o,end:o+a},{start:h.offset,end:h.offset+h.size})&&(f.mode=Xi.AVOID),r=cr(window.innerHeight,s,f)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===l?"bottom":"top"),this.view.classList.add(0===c?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);var p=At.getDomNodePagePosition(this.container);this.view.style.top="".concat(r-(this.useFixedPosition?At.getDomNodePagePosition(this.view).top:p.top),"px"),this.view.style.left="".concat(o-(this.useFixedPosition?At.getDomNodePagePosition(this.view).left:p.left),"px"),this.view.style.width="initial"}}},{key:"hide",value:function(e){var t=this.delegate;this.delegate=null,(null===t||void 0===t?void 0:t.onHide)&&t.onHide(e),this.toDisposeOnClean.dispose(),At.hide(this.view)}},{key:"isVisible",value:function(){return!!this.delegate}},{key:"onDOMEvent",value:function(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!At.isAncestor(e.target,this.container)&&this.hide())}},{key:"dispose",value:function(){this.hide(),(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this)}}]),n}(y.JT);ur.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],ur.BUBBLE_DOWN_EVENTS=["click"];var dr='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t@font-face {\n\t\tfont-family: "codicon";\n\t\tfont-display: block;\n\t\tsrc: url("./codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6") format("truetype");\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n',hr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},fr=function(e,t){return function(n,i){t(n,i,e)}},pr=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).layoutService=e,i.currentViewDisposable=y.JT.None,i.container=e.hasContainer?e.container:null,i.contextView=i._register(new ur(i.container,1)),i.layout(),i._register(e.onDidLayout((function(){return i.layout()}))),i}return(0,o.Z)(n,[{key:"setContainer",value:function(e,t){this.contextView.setContainer(e,t||1)}},{key:"showContextView",value:function(e,t,n){var i=this;t?t===this.container&&this.shadowRoot===n||(this.container=t,this.setContainer(t,n?3:2)):this.layoutService.hasContainer&&this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.shadowRoot=n,this.contextView.show(e);var r=(0,y.OF)((function(){i.currentViewDisposable===r&&i.hideContextView()}));return this.currentViewDisposable=r,r}},{key:"getContextViewElement",value:function(){return this.contextView.getViewElement()}},{key:"layout",value:function(){this.contextView.layout()}},{key:"hideContextView",value:function(e){this.contextView.hide(e)}}]),n}(y.JT);pr=hr([fr(0,si)],pr);var gr=n(54649),vr=n(52090),mr=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},yr="**",_r="[/\\\\]",br="[^/\\\\]",Cr=/\//g;function Sr(e,t){switch(e){case 0:return"";case 1:return"".concat(br,"*?");default:return"(?:".concat(_r,"|").concat(br,"+").concat(_r).concat(t?"|".concat(_r).concat(br,"+"):"",")*?")}}function wr(e,t){if(!e)return[];var n,i=[],r=!1,o=!1,a="",s=(0,Z.Z)(e);try{for(s.s();!(n=s.n()).done;){var l=n.value;switch(l){case t:if(!r&&!o){i.push(a),a="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":o=!0;break;case"]":o=!1}a+=l}}catch(c){s.e(c)}finally{s.f()}return a&&i.push(a),i}function kr(e){if(!e)return"";var t="",n=wr(e,"/");if(n.every((function(e){return e===yr})))t=".*";else{var i=!1;n.forEach((function(e,r){if(e===yr){if(i)return;t+=Sr(2,r===n.length-1)}else{var o,a=!1,s="",l=!1,c="",u=(0,Z.Z)(e);try{for(u.s();!(o=u.n()).done;){var d=o.value;if("}"!==d&&a)s+=d;else if(!l||"]"===d&&c)switch(d){case"{":a=!0;continue;case"[":l=!0;continue;case"}":var h=wr(s,","),f="(?:".concat(h.map((function(e){return kr(e)})).join("|"),")");t+=f,a=!1,s="";break;case"]":t+="["+c+"]",l=!1,c="";break;case"?":t+=br;continue;case"*":t+=Sr(1);continue;default:t+=(0,_.ec)(d)}else{c+="-"===d?d:"^"!==d&&"!"!==d||c?"/"===d?"":(0,_.ec)(d):"^"}}}catch(p){u.e(p)}finally{u.f()}r<n.length-1&&(n[r+1]!==yr||r+2<n.length)&&(t+=_r)}i=e===yr}))}return t}var xr=/^\*\*\/\*\.[\w\.-]+$/,Er=/^\*\*\/([\w\.-]+)\/?$/,Tr=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,Nr=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,Ir=/^\*\*((\/[\w\.-]+)+)\/?$/,Dr=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,Lr=new Zi.z6(1e4),Or=function(){return!1},Rr=function(){return null};function Ar(e,t){if(!e)return Rr;var n;n=(n="string"!==typeof e?e.pattern:e).trim();var i,r="".concat(n,"_").concat(!!t.trimForExclusions),o=Lr.get(r);return o||(o=xr.test(n)?function(e,t){return function(n,i){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(i=Er.exec(Pr(n,t)))?function(e,t){var n="/".concat(e),i="\\".concat(e),r=function(r,o){return"string"!==typeof r?null:o?o===e?t:null:r===e||r.endsWith(n)||r.endsWith(i)?t:null},o=[e];return r.basenames=o,r.patterns=[t],r.allBasenames=o,r}(i[1],n):(t.trimForExclusions?Nr:Tr).test(n)?function(e,t){var n=zr(e.slice(1,-1).split(",").map((function(e){return Ar(e,t)})).filter((function(e){return e!==Rr})),e),i=n.length;if(!i)return Rr;if(1===i)return n[0];var r=function(t,i){for(var r=0,o=n.length;r<o;r++)if(n[r](t,i))return e;return null},o=n.find((function(e){return!!e.allBasenames}));o&&(r.allBasenames=o.allBasenames);var a=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);a.length&&(r.allPaths=a);return r}(n,t):(i=Ir.exec(Pr(n,t)))?Zr(i[1].substr(1),n,!0):(i=Dr.exec(Pr(n,t)))?Zr(i[1],n,!1):function(e){try{var t=new RegExp("^".concat(kr(e),"$"));return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(n){return Rr}}(n),Lr.set(r,o)),Mr(o,e)}function Mr(e,t){if("string"===typeof t)return e;var n=function(n,i){return(0,gr.KM)(n,t.base,!z.IJ)?e(n.substr(t.base.length+1),i):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function Pr(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function Zr(e,t,n){var i,r=vr.ir===vr.KR.sep,o=r?e:e.replace(Cr,vr.ir),a=vr.ir+o,s=vr.KR.sep+e;return(i=n?function(n,i){return"string"!==typeof n||n!==o&&!n.endsWith(a)&&(r||n!==e&&!n.endsWith(s))?null:t}:function(n,i){return"string"!==typeof n||n!==o&&(r||n!==e)?null:t}).allPaths=[(n?"*/":"./")+e],i}function Fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return Or;if("string"===typeof e||Br(e)){var n=Ar(e,t);if(n===Rr)return Or;var i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return Hr(e,t)}function Br(e){var t=e;return!!t&&("string"===typeof t.base&&"string"===typeof t.pattern)}function Hr(e,t){var n=zr(Object.getOwnPropertyNames(e).map((function(n){return function(e,t,n){if(!1===t)return Rr;var i=Ar(e,n);if(i===Rr)return Rr;if("boolean"===typeof t)return i;if(t){var r=t.when;if("string"===typeof r){var o=function(t,n,o,a){if(!a||!i(t,n))return null;var s=a(r.replace("$(basename)",o));return(0,B.J8)(s)?s.then((function(t){return t?e:null})):s?e:null};return o.requiresSiblings=!0,o}}return i}(n,e[n],t)})).filter((function(e){return e!==Rr}))),i=n.length;if(!i)return Rr;if(!n.some((function(e){return!!e.requiresSiblings}))){if(1===i)return n[0];var r=function(e,t){for(var i=this,r=void 0,o=0,a=n.length;o<a;o++){var s=n[o](e,t);if("string"===typeof s)return s;(0,B.J8)(s)&&(r||(r=[]),r.push(s))}return r?mr(i,void 0,void 0,(0,F.Z)().mark((function e(){var t,n,i,o;return(0,F.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,Z.Z)(r),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=12;break}return i=n.value,e.next=7,i;case 7:if("string"!==typeof(o=e.sent)){e.next=10;break}return e.abrupt("return",o);case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(1),t.e(e.t0);case 17:return e.prev=17,t.f(),e.finish(17);case 20:return e.abrupt("return",null);case 21:case"end":return e.stop()}}),e,null,[[1,14,17,20]])}))):null},o=n.find((function(e){return!!e.allBasenames}));o&&(r.allBasenames=o.allBasenames);var a=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return a.length&&(r.allPaths=a),r}var s=function(e,t,i){for(var r=this,o=void 0,a=void 0,s=0,l=n.length;s<l;s++){var c=n[s];c.requiresSiblings&&i&&(t||(t=(0,vr.EZ)(e)),o||(o=t.substr(0,t.length-(0,vr.DZ)(e).length)));var u=c(e,t,o,i);if("string"===typeof u)return u;(0,B.J8)(u)&&(a||(a=[]),a.push(u))}return a?mr(r,void 0,void 0,(0,F.Z)().mark((function e(){var t,n,i,r;return(0,F.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,Z.Z)(a),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=12;break}return i=n.value,e.next=7,i;case 7:if("string"!==typeof(r=e.sent)){e.next=10;break}return e.abrupt("return",r);case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(1),t.e(e.t0);case 17:return e.prev=17,t.f(),e.finish(17);case 20:return e.abrupt("return",null);case 21:case"end":return e.stop()}}),e,null,[[1,14,17,20]])}))):null},l=n.find((function(e){return!!e.allBasenames}));l&&(s.allBasenames=l.allBasenames);var c=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return c.length&&(s.allPaths=c),s}function zr(e,t){var n=e.filter((function(e){return!!e.basenames}));if(n.length<2)return e;var i,r=n.reduce((function(e,t){var n=t.basenames;return n?e.concat(n):e}),[]);if(t){i=[];for(var o=0,a=r.length;o<a;o++)i.push(t)}else i=n.reduce((function(e,t){var n=t.patterns;return n?e.concat(n):e}),[]);var s=function(e,t){if("string"!==typeof e)return null;if(!t){var n;for(n=e.length;n>0;n--){var o=e.charCodeAt(n-1);if(47===o||92===o)break}t=e.substr(n)}var a=r.indexOf(t);return-1!==a?i[a]:null};s.basenames=r,s.patterns=i,s.allBasenames=r;var l=e.filter((function(e){return!e.basenames}));return l.push(s),l}var jr=n(62684),Vr=n(24092),Wr=[],Ur=[],Gr=[];function Kr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Yr(e,!1,t)}function Yr(e,t,n){var i=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?Fr(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(vr.KR.sep)>=0}}(e,t);Wr.push(i),i.userConfigured?Gr.push(i):Ur.push(i),n&&!i.userConfigured&&Wr.forEach((function(e){e.mime===i.mime||e.userConfigured||(i.extension&&e.extension===i.extension&&console.warn("Overwriting extension <<".concat(i.extension,">> to now point to mime <<").concat(i.mime,">>")),i.filename&&e.filename===i.filename&&console.warn("Overwriting filename <<".concat(i.filename,">> to now point to mime <<").concat(i.mime,">>")),i.filepattern&&e.filepattern===i.filepattern&&console.warn("Overwriting filepattern <<".concat(i.filepattern,">> to now point to mime <<").concat(i.mime,">>")),i.firstline&&e.firstline===i.firstline&&console.warn("Overwriting firstline <<".concat(i.firstline,">> to now point to mime <<").concat(i.mime,">>")))}))}function qr(e,t){return function(e,t){var n;if(e)switch(e.scheme){case $n.lg.file:n=e.fsPath;break;case $n.lg.data:n=or.Vb.parseMetaData(e).get(or.Vb.META_DATA_LABEL);break;case $n.lg.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:jr.v.unknown}];n=n.toLowerCase();var i=(0,vr.EZ)(n),r=$r(n,i,Gr);if(r)return[r,{id:Vr.bd,mime:jr.v.text}];var o=$r(n,i,Ur);if(o)return[o,{id:Vr.bd,mime:jr.v.text}];if(t){var a=function(e){(0,_.uS)(e)&&(e=e.substr(1));if(e.length>0)for(var t=Wr.length-1;t>=0;t--){var n=Wr[t];if(n.firstline){var i=e.match(n.firstline);if(i&&i.length>0)return n}}return}(t);if(a)return[a,{id:Vr.bd,mime:jr.v.text}]}return[{id:"unknown",mime:jr.v.unknown}]}(e,t).map((function(e){return e.id}))}function $r(e,t,n){for(var i,r=void 0,o=void 0,a=void 0,s=n.length-1;s>=0;s--){var l=n[s];if(t===l.filenameLowercase){r=l;break}if(l.filepattern&&(!o||l.filepattern.length>o.filepattern.length)){var c=l.filepatternOnPath?e:t;(null===(i=l.filepatternLowercase)||void 0===i?void 0:i.call(l,c))&&(o=l)}l.extension&&(!a||l.extension.length>a.extension.length)&&t.endsWith(l.extensionLowercase)&&(a=l)}return r||(o||(a||void 0))}var Xr=n(50818),Qr=n(69077),Jr=Object.prototype.hasOwnProperty,eo="vs.editor.nullLanguage",to=function(){function e(){(0,r.Z)(this,e),this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(eo,0),this._register(Vr.bd,1),this._nextLanguageId=2}return(0,o.Z)(e,[{key:"_register",value:function(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}},{key:"register",value:function(e){if(!this._languageToLanguageId.has(e)){var t=this._nextLanguageId++;this._register(e,t)}}},{key:"encodeLanguageId",value:function(e){return this._languageToLanguageId.get(e)||0}},{key:"decodeLanguageId",value:function(e){return this._languageIdToLanguage[e]||eo}}]),e}(),no=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(){var e,i=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.Z)(this,n),(e=t.call(this))._onDidChange=e._register(new s.Q5),e.onDidChange=e._onDidChange.event,n.instanceCount++,e._warnOnOverwrite=o,e.languageIdCodec=new to,e._dynamicLanguages=[],e._languages={},e._mimeTypesMap={},e._nameMap={},e._lowercaseNameMap={},i&&(e._initializeFromRegistry(),e._register(Vr.dQ.onDidChangeLanguages((function(t){e._initializeFromRegistry()})))),e}return(0,o.Z)(n,[{key:"dispose",value:function(){n.instanceCount--,(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this)}},{key:"_initializeFromRegistry",value:function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Wr=Wr.filter((function(e){return e.userConfigured})),Ur=[];var e=[].concat(Vr.dQ.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}},{key:"_registerLanguages",value:function(e){var t,n=this,i=(0,Z.Z)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;this._registerLanguage(r)}}catch(o){i.e(o)}finally{i.f()}this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((function(e){var t=n._languages[e];t.name&&(n._nameMap[t.name]=t.identifier),t.aliases.forEach((function(e){n._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((function(e){n._mimeTypesMap[e]=t.identifier}))})),Qr.B.as(Xr.IP.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}},{key:"_registerLanguage",value:function(e){var t,n=e.id;Jr.call(this._languages,n)?t=this._languages[n]:(this.languageIdCodec.register(n),t={identifier:n,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[n]=t),this._mergeLanguage(t,e)}},{key:"_mergeLanguage",value:function(e,t){var n,i=t.id,r=null;Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&((n=e.mimetypes).push.apply(n,(0,m.Z)(t.mimetypes)),r=t.mimetypes[0]);if(r||(r="text/x-".concat(i),e.mimetypes.push(r)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);var o,a=(0,Z.Z)(t.extensions);try{for(a.s();!(o=a.n()).done;){Kr({id:i,mime:r,extension:o.value},this._warnOnOverwrite)}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(t.filenames)){var s,l=(0,Z.Z)(t.filenames);try{for(l.s();!(s=l.n()).done;){var c=s.value;Kr({id:i,mime:r,filename:c},this._warnOnOverwrite),e.filenames.push(c)}}catch(S){l.e(S)}finally{l.f()}}if(Array.isArray(t.filenamePatterns)){var u,d=(0,Z.Z)(t.filenamePatterns);try{for(d.s();!(u=d.n()).done;){Kr({id:i,mime:r,filepattern:u.value},this._warnOnOverwrite)}}catch(S){d.e(S)}finally{d.f()}}if("string"===typeof t.firstLine&&t.firstLine.length>0){var h=t.firstLine;"^"!==h.charAt(0)&&(h="^"+h);try{var f=new RegExp(h);(0,_.IO)(f)||Kr({id:i,mime:r,firstline:f},this._warnOnOverwrite)}catch(S){(0,H.dL)(S)}}e.aliases.push(i);var p=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(p=0===t.aliases.length?[null]:t.aliases),null!==p){var g,v=(0,Z.Z)(p);try{for(v.s();!(g=v.n()).done;){var y=g.value;y&&0!==y.length&&e.aliases.push(y)}}catch(S){v.e(S)}finally{v.f()}}var b=null!==p&&p.length>0;if(b&&null===p[0]);else{var C=(b?p[0]:null)||i;!b&&e.name||(e.name=C)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}},{key:"isRegisteredLanguageId",value:function(e){return!!e&&Jr.call(this._languages,e)}},{key:"getRegisteredLanguageIds",value:function(){return Object.keys(this._languages)}},{key:"getLanguageIdByLanguageName",value:function(e){var t=e.toLowerCase();return Jr.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}},{key:"getLanguageIdByMimeType",value:function(e){return e&&Jr.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}},{key:"guessLanguageIdByFilepathOrFirstLine",value:function(e,t){return e||t?qr(e,t):[]}}]),n}(y.JT);no.instanceCount=0;var io=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,r.Z)(this,n),(e=t.call(this))._onDidEncounterLanguage=e._register(new s.Q5),e.onDidEncounterLanguage=e._onDidEncounterLanguage.event,e._onDidChange=e._register(new s.Q5({leakWarningThreshold:200})),e.onDidChange=e._onDidChange.event,n.instanceCount++,e._encounteredLanguages=new Set,e._registry=e._register(new no(!0,i)),e.languageIdCodec=e._registry.languageIdCodec,e._register(e._registry.onDidChange((function(){return e._onDidChange.fire()}))),e}return(0,o.Z)(n,[{key:"dispose",value:function(){n.instanceCount--,(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this)}},{key:"isRegisteredLanguageId",value:function(e){return this._registry.isRegisteredLanguageId(e)}},{key:"getLanguageIdByLanguageName",value:function(e){return this._registry.getLanguageIdByLanguageName(e)}},{key:"getLanguageIdByMimeType",value:function(e){return this._registry.getLanguageIdByMimeType(e)}},{key:"guessLanguageIdByFilepathOrFirstLine",value:function(e,t){var n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,Ze.Xh)(n,null)}},{key:"createById",value:function(e){var t=this;return new oo(this.onDidChange,(function(){return t._createAndGetLanguageIdentifier(e)}))}},{key:"createByFilepathOrFirstLine",value:function(e,t){var n=this;return new oo(this.onDidChange,(function(){var i=n.guessLanguageIdByFilepathOrFirstLine(e,t);return n._createAndGetLanguageIdentifier(i)}))}},{key:"_createAndGetLanguageIdentifier",value:function(e){return e&&this.isRegisteredLanguageId(e)||(e=Vr.bd),this._encounteredLanguages.has(e)||(this._encounteredLanguages.add(e),f.RW.getOrCreate(e),this._onDidEncounterLanguage.fire(e)),e}}]),n}(y.JT);io.instanceCount=0;var ro,oo=function(){function e(t,n){(0,r.Z)(this,e),this._onDidChangeLanguages=t,this._selector=n,this._listener=null,this._emitter=null,this.languageId=this._selector()}return(0,o.Z)(e,[{key:"_dispose",value:function(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}},{key:"onDidChange",get:function(){var e=this;return this._listener||(this._listener=this._onDidChangeLanguages((function(){return e._evaluate()}))),this._emitter||(this._emitter=new s.Q5({onLastListenerRemove:function(){e._dispose()}})),this._emitter.event}},{key:"_evaluate",value:function(){var e,t=this._selector();t!==this.languageId&&(this.languageId=t,null===(e=this._emitter)||void 0===e||e.fire(this.languageId))}}]),e}(),ao=n(2524),so=n(62865),lo=n(81238),co=n(82290),uo=n(28423),ho=n(56148),fo=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,po=/(&)?(&)([^\s&])/g;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(ro||(ro={}));var go=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,r.Z)(this,n),e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");var s=document.createElement("div");s.classList.add("monaco-menu"),s.setAttribute("role","presentation"),(o=t.call(this,s,{orientation:1,actionViewItemProvider:function(e){return o.doGetActionViewItem(e,a,l)},context:a.context,actionRunner:a.actionRunner,ariaLabel:a.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3].concat((0,m.Z)(z.dz||z.IJ?[10]:[])),keyDown:!0}})).menuElement=s,o.actionsList.tabIndex=0,o.menuDisposables=o._register(new y.SL),o.initializeOrUpdateStyleSheet(e,{}),o._register(lo.o.addTarget(s)),(0,At.addDisposableListener)(s,At.EventType.KEY_DOWN,(function(e){new Di.y(e).equals(2)&&e.preventDefault()})),a.enableMnemonics&&o.menuDisposables.add((0,At.addDisposableListener)(s,At.EventType.KEY_DOWN,(function(e){var t=e.key.toLocaleLowerCase();if(o.mnemonics.has(t)){At.EventHelper.stop(e,!0);var n=o.mnemonics.get(t);if(1===n.length&&(n[0]instanceof mo&&n[0].container&&o.focusItemByElement(n[0].container),n[0].onClick(e)),n.length>1){var i=n.shift();i&&i.container&&(o.focusItemByElement(i.container),n.push(i)),o.mnemonics.set(t,n)}}}))),z.IJ&&o._register((0,At.addDisposableListener)(s,At.EventType.KEY_DOWN,(function(e){var t=new Di.y(e);t.equals(14)||t.equals(11)?(o.focusedItem=o.viewItems.length-1,o.focusNext(),At.EventHelper.stop(e,!0)):(t.equals(13)||t.equals(12))&&(o.focusedItem=0,o.focusPrevious(),At.EventHelper.stop(e,!0))}))),o._register((0,At.addDisposableListener)(o.domNode,At.EventType.MOUSE_OUT,(function(e){var t=e.relatedTarget;(0,At.isAncestor)(t,o.domNode)||(o.focusedItem=void 0,o.updateFocus(),e.stopPropagation())}))),o._register((0,At.addDisposableListener)(o.actionsList,At.EventType.MOUSE_OVER,(function(e){var t=e.target;if(t&&(0,At.isAncestor)(t,o.actionsList)&&t!==o.actionsList){for(;t.parentElement!==o.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){var n=o.focusedItem;o.setFocusedItem(t),n!==o.focusedItem&&o.updateFocus()}}}))),o._register(lo.o.addTarget(o.actionsList)),o._register((0,At.addDisposableListener)(o.actionsList,lo.t.Tap,(function(e){var t=e.initialTarget;if(t&&(0,At.isAncestor)(t,o.actionsList)&&t!==o.actionsList){for(;t.parentElement!==o.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){var n=o.focusedItem;o.setFocusedItem(t),n!==o.focusedItem&&o.updateFocus()}}})));var l={parent:(0,Ot.Z)(o)};o.mnemonics=new Map,o.scrollableElement=o._register(new Ht.s$(s,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var c=o.scrollableElement.getDomNode();return c.style.position="",o._register((0,At.addDisposableListener)(s,lo.t.Change,(function(e){At.EventHelper.stop(e,!0);var t=o.scrollableElement.getScrollPosition().scrollTop;o.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),o._register((0,At.addDisposableListener)(c,At.EventType.MOUSE_UP,(function(e){e.preventDefault()}))),s.style.maxHeight="".concat(Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35),"px"),i=i.filter((function(e){var t;return!(null===(t=a.submenuIds)||void 0===t?void 0:t.has(e.id))||(console.warn("Found submenu cycle: ".concat(e.id)),!1)})),o.push(i,{icon:!0,label:!0,isMenu:!0}),e.appendChild(o.scrollableElement.getDomNode()),o.scrollableElement.scanDomNode(),o.viewItems.filter((function(e){return!(e instanceof yo)})).forEach((function(e,t,n){e.updatePositionInSet(t+1,n.length)})),o}return(0,o.Z)(n,[{key:"initializeOrUpdateStyleSheet",value:function(e,t){this.styleSheet||((0,At.isInShadowDOM)(e)?this.styleSheet=(0,At.createStyleSheet)(e):(n.globalStyleSheet||(n.globalStyleSheet=(0,At.createStyleSheet)()),this.styleSheet=n.globalStyleSheet)),this.styleSheet.textContent=function(e,t){var n="\n.monaco-menu {\n\tfont-size: 13px;\n\tborder-radius: 5px;\n\tmin-width: 160px;\n}\n\n".concat((0,uo.a)(Kt.lA.menuSelection),"\n").concat((0,uo.a)(Kt.lA.menuSubmenu),"\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar.animated .action-item.active {\n\ttransform: scale(1.272019649, 1.272019649); /* 1.272019649 = \u221a\u03c6 */\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid var(--vscode-menu-separatorBackground);\n\tpadding-top: 1px;\n\tpadding: 30px;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {\n\topacity: unset;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\twidth: 100%;\n\theight: 0px !important;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.hc-black .context-view.monaco-menu-container,\n.hc-light .context-view.monaco-menu-container,\n:host-context(.hc-black) .context-view.monaco-menu-container,\n:host-context(.hc-light) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: .6em 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tmargin: 5px 0 !important;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}");if(t){n+="\n\t\t\t/* Arrows */\n\t\t\t.monaco-scrollable-element > .scrollbar > .scra {\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-size: 11px !important;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .visible {\n\t\t\t\topacity: 1;\n\n\t\t\t\t/* Background rule added for IE9 - to allow clicks on dom node */\n\t\t\t\tbackground:rgba(0,0,0,0);\n\n\t\t\t\ttransition: opacity 100ms linear;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible {\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible.fade {\n\t\t\t\ttransition: opacity 800ms linear;\n\t\t\t}\n\n\t\t\t/* Scrollable Content Inset Shadow */\n\t\t\t.monaco-scrollable-element > .shadow {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top-left-corner {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t";var i=e.scrollbarShadow;i&&(n+="\n\t\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\t\tbox-shadow: ".concat(i," 0 6px 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\t\tbox-shadow: ").concat(i," 6px 0 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\t\tbox-shadow: ").concat(i," 6px 6px 6px -6px inset;\n\t\t\t\t}\n\t\t\t"));var r=e.scrollbarSliderBackground;r&&(n+="\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\t\tbackground: ".concat(r,";\n\t\t\t\t}\n\t\t\t"));var o=e.scrollbarSliderHoverBackground;o&&(n+="\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\t\tbackground: ".concat(o,";\n\t\t\t\t}\n\t\t\t"));var a=e.scrollbarSliderActiveBackground;a&&(n+="\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ".concat(a,";\n\t\t\t\t}\n\t\t\t"))}return n}(t,(0,At.isInShadowDOM)(e))}},{key:"style",value:function(e){var t=this.getContainer();this.initializeOrUpdateStyleSheet(t,e);var n=e.foregroundColor?"".concat(e.foregroundColor):"",i=e.backgroundColor?"".concat(e.backgroundColor):"",r=e.borderColor?"1px solid ".concat(e.borderColor):"",o=e.shadowColor?"0 2px 8px ".concat(e.shadowColor):"";t.style.outline=r,t.style.borderRadius="5px",t.style.color=n,t.style.backgroundColor=i,t.style.boxShadow=o,this.viewItems&&this.viewItems.forEach((function(t){(t instanceof vo||t instanceof yo)&&t.style(e)}))}},{key:"getContainer",value:function(){return this.scrollableElement.getDomNode()}},{key:"onScroll",get:function(){return this.scrollableElement.onScroll}},{key:"focusItemByElement",value:function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}},{key:"setFocusedItem",value:function(e){for(var t=0;t<this.actionsList.children.length;t++){if(e===this.actionsList.children[t]){this.focusedItem=t;break}}}},{key:"updateFocus",value:function(e){(0,S.Z)((0,w.Z)(n.prototype),"updateFocus",this).call(this,e,!0,!0),"undefined"!==typeof this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}},{key:"doGetActionViewItem",value:function(e,t,n){if(e instanceof zt.Z0)return new yo(t.context,e,{icon:!0});if(e instanceof zt.wY){var i=new mo(e,e.actions,n,Object.assign(Object.assign({},t),{submenuIds:new Set([].concat((0,m.Z)(t.submenuIds||[]),[e.id]))}));if(t.enableMnemonics){var r=i.getMnemonic();if(r&&i.isEnabled()){var o=[];this.mnemonics.has(r)&&(o=this.mnemonics.get(r)),o.push(i),this.mnemonics.set(r,o)}}return i}var a={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){var s=t.getKeyBinding(e);if(s){var l=s.getLabel();l&&(a.keybinding=l)}}var c=new vo(t.context,e,a);if(t.enableMnemonics){var u=c.getMnemonic();if(u&&c.isEnabled()){var d=[];this.mnemonics.has(u)&&(d=this.mnemonics.get(u)),d.push(c),this.mnemonics.set(u,d)}}return c}}]),n}(Bt.o),vo=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((0,r.Z)(this,n),a.isMenu=!0,(o=t.call(this,i,i,a)).options=a,o.options.icon=void 0!==a.icon&&a.icon,o.options.label=void 0===a.label||a.label,o.cssClass="",o.options.label&&a.enableMnemonics){var s=o.getAction().label;if(s){var l=fo.exec(s);l&&(o.mnemonic=(l[1]?l[1]:l[3]).toLocaleLowerCase())}}return o.runOnceToEnableMouseUp=new B.pY((function(){o.element&&(o._register((0,At.addDisposableListener)(o.element,At.EventType.MOUSE_UP,(function(e){if(At.EventHelper.stop(e,!0),so.isFirefox){if(new ao.n(e).rightButton)return;o.onClick(e)}else setTimeout((function(){o.onClick(e)}),0)}))),o._register((0,At.addDisposableListener)(o.element,At.EventType.CONTEXT_MENU,(function(e){At.EventHelper.stop(e,!0)}))))}),100),o._register(o.runOnceToEnableMouseUp),o}return(0,o.Z)(n,[{key:"render",value:function(e){(0,S.Z)((0,w.Z)(n.prototype),"render",this).call(this,e),this.element&&(this.container=e,this.item=(0,At.append)(this.element,(0,At.$)("a.action-menu-item")),this._action.id===zt.Z0.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts","".concat(this.mnemonic))),this.check=(0,At.append)(this.item,(0,At.$)("span.menu-item-check"+Kt.lA.menuSelection.cssSelector)),this.check.setAttribute("role","none"),this.label=(0,At.append)(this.item,(0,At.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,At.append)(this.item,(0,At.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}},{key:"blur",value:function(){(0,S.Z)((0,w.Z)(n.prototype),"blur",this).call(this),this.applyStyle()}},{key:"focus",value:function(){(0,S.Z)((0,w.Z)(n.prototype),"focus",this).call(this),this.item&&this.item.focus(),this.applyStyle()}},{key:"updatePositionInSet",value:function(e,t){this.item&&(this.item.setAttribute("aria-posinset","".concat(e)),this.item.setAttribute("aria-setsize","".concat(t)))}},{key:"updateLabel",value:function(){var e;if(this.label&&this.options.label){(0,At.clearNode)(this.label);var t=(0,ho.x$)(this.getAction().label);if(t){var n=function(e){var t=fo,n=t.exec(e);if(!n)return e;var i=!n[1];return e.replace(t,i?"$2$3":"").trim()}(t);this.options.enableMnemonics||(t=n),this.label.setAttribute("aria-label",n.replace(/&&/g,"&"));var i=fo.exec(t);if(i){t=_.YU(t),po.lastIndex=0;for(var r=po.exec(t);r&&r[1];)r=po.exec(t);var o=function(e){return e.replace(/&&/g,"&")};r?this.label.append(_.j3(o(t.substr(0,r.index))," "),(0,At.$)("u",{"aria-hidden":"true"},r[3]),_.oL(o(t.substr(r.index+r[0].length))," ")):this.label.innerText=o(t).trim(),null===(e=this.item)||void 0===e||e.setAttribute("aria-keyshortcuts",(i[1]?i[1]:i[3]).toLocaleLowerCase())}else this.label.innerText=t.replace(/&&/g,"&").trim()}}}},{key:"updateTooltip",value:function(){}},{key:"updateClass",value:function(){var e;this.cssClass&&this.item&&(e=this.item.classList).remove.apply(e,(0,m.Z)(this.cssClass.split(" ")));if(this.options.icon&&this.label){var t;if(this.cssClass=this.getAction().class||"",this.label.classList.add("icon"),this.cssClass)(t=this.label.classList).add.apply(t,(0,m.Z)(this.cssClass.split(" ")));this.updateEnabled()}else this.label&&this.label.classList.remove("icon")}},{key:"updateEnabled",value:function(){this.getAction().enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}},{key:"updateChecked",value:function(){if(this.item){var e=this.getAction().checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}}},{key:"getMnemonic",value:function(){return this.mnemonic}},{key:"applyStyle",value:function(){if(this.menuStyle){var e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,i=e&&this.menuStyle.selectionBorderColor?"1px solid ".concat(this.menuStyle.selectionBorderColor):"",r=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=n?n.toString():"",this.item.style.outline=i,this.item.style.outlineOffset=r),this.check&&(this.check.style.color=t?t.toString():"")}}},{key:"style",value:function(e){this.menuStyle=e,this.applyStyle()}}]),n}(co.Y),mo=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a){var s;return(0,r.Z)(this,n),(s=t.call(this,e,e,a)).submenuActions=i,s.parentData=o,s.submenuOptions=a,s.mysubmenu=null,s.submenuDisposables=s._register(new y.SL),s.mouseOver=!1,s.expandDirection=a&&void 0!==a.expandDirection?a.expandDirection:ro.Right,s.showScheduler=new B.pY((function(){s.mouseOver&&(s.cleanupExistingSubmenu(!1),s.createSubmenu(!1))}),250),s.hideScheduler=new B.pY((function(){s.element&&!(0,At.isAncestor)((0,At.getActiveElement)(),s.element)&&s.parentData.submenu===s.mysubmenu&&(s.parentData.parent.focus(!1),s.cleanupExistingSubmenu(!0))}),750),s}return(0,o.Z)(n,[{key:"render",value:function(e){var t=this;(0,S.Z)((0,w.Z)(n.prototype),"render",this).call(this,e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,At.append)(this.item,(0,At.$)("span.submenu-indicator"+Kt.lA.menuSubmenu.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,At.addDisposableListener)(this.element,At.EventType.KEY_UP,(function(e){var n=new Di.y(e);(n.equals(17)||n.equals(3))&&(At.EventHelper.stop(e,!0),t.createSubmenu(!0))}))),this._register((0,At.addDisposableListener)(this.element,At.EventType.KEY_DOWN,(function(e){var n=new Di.y(e);(0,At.getActiveElement)()===t.item&&(n.equals(17)||n.equals(3))&&At.EventHelper.stop(e,!0)}))),this._register((0,At.addDisposableListener)(this.element,At.EventType.MOUSE_OVER,(function(e){t.mouseOver||(t.mouseOver=!0,t.showScheduler.schedule())}))),this._register((0,At.addDisposableListener)(this.element,At.EventType.MOUSE_LEAVE,(function(e){t.mouseOver=!1}))),this._register((0,At.addDisposableListener)(this.element,At.EventType.FOCUS_OUT,(function(e){t.element&&!(0,At.isAncestor)((0,At.getActiveElement)(),t.element)&&t.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((function(){t.parentData.submenu===t.mysubmenu&&(t.parentData.parent.focus(!1),t.cleanupExistingSubmenu(!0))}))))}},{key:"updateEnabled",value:function(){}},{key:"onClick",value:function(e){At.EventHelper.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}},{key:"cleanupExistingSubmenu",value:function(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(ne){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}},{key:"calculateSubmenuMenuLayout",value:function(e,t,n,i){var r={top:0,left:0};return r.left=cr(e.width,t.width,{position:i===ro.Right?0:1,offset:n.left,size:n.width}),r.left>=n.left&&r.left<n.left+n.width&&(n.left+10+t.width<=e.width&&(r.left=n.left+10),n.top+=10,n.height=0),r.top=cr(e.height,t.height,{position:0,offset:n.top,size:0}),r.top+t.height===n.top&&r.top+n.height+t.height<=e.height&&(r.top+=n.height),r}},{key:"createSubmenu",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=(0,At.append)(this.element,(0,At.$)("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");var n=getComputedStyle(this.parentData.parent.domNode),i=parseFloat(n.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new go(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new zt.eZ],this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var r=this.element.getBoundingClientRect(),o={top:r.top-i,left:r.left,height:r.height+2*i,width:r.width},a=this.submenuContainer.getBoundingClientRect(),s=this.calculateSubmenuMenuLayout(new At.Dimension(window.innerWidth,window.innerHeight),At.Dimension.lift(a),o,this.expandDirection),l=s.top,c=s.left;this.submenuContainer.style.left="".concat(c-a.left,"px"),this.submenuContainer.style.top="".concat(l-a.top,"px"),this.submenuDisposables.add((0,At.addDisposableListener)(this.submenuContainer,At.EventType.KEY_UP,(function(t){new Di.y(t).equals(15)&&(At.EventHelper.stop(t,!0),e.parentData.parent.focus(),e.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add((0,At.addDisposableListener)(this.submenuContainer,At.EventType.KEY_DOWN,(function(e){new Di.y(e).equals(15)&&At.EventHelper.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((function(){e.parentData.parent.focus(),e.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(t),this.mysubmenu=this.parentData.submenu}}},{key:"updateAriaExpanded",value:function(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}},{key:"applyStyle",value:function(){var e;if((0,S.Z)((0,w.Z)(n.prototype),"applyStyle",this).call(this),this.menuStyle){var t=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=t?"".concat(t):""),null===(e=this.parentData.submenu)||void 0===e||e.style(this.menuStyle)}}},{key:"dispose",value:function(){(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}]),n}(vo),yo=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"style",value:function(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?"".concat(e.separatorColor):"")}}]),n}(co.g);var _o=n(77406),bo=function(){function e(t,n,i,o,a){(0,r.Z)(this,e),this.contextViewService=t,this.telemetryService=n,this.notificationService=i,this.keybindingService=o,this.themeService=a,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}return(0,o.Z)(e,[{key:"configure",value:function(e){this.options=e}},{key:"showContextMenu",value:function(e){var t=this,n=e.getActions();if(n.length){var i;this.focusToReturn=document.activeElement;var r=(0,At.isHTMLElement)(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:function(){return e.getAnchor()},canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:function(r){var o=e.getMenuClassName?e.getMenuClassName():"";o&&(r.className+=" "+o),t.options.blockMouse&&(t.block=r.appendChild((0,At.$)(".context-view-block")),t.block.style.position="fixed",t.block.style.cursor="initial",t.block.style.left="0",t.block.style.top="0",t.block.style.width="100%",t.block.style.height="100%",t.block.style.zIndex="-1",(0,At.addDisposableListener)(t.block,At.EventType.MOUSE_DOWN,(function(e){return e.stopPropagation()})));var a=new y.SL,s=e.actionRunner||new zt.Wi;return s.onBeforeRun(t.onActionRun,t,a),s.onDidRun(t.onDidActionRun,t,a),i=new go(r,n,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:s,getKeyBinding:e.getKeyBinding?e.getKeyBinding:function(e){return t.keybindingService.lookupKeybinding(e.id)}}),a.add((0,_o.tj)(i,t.themeService)),i.onDidCancel((function(){return t.contextViewService.hideContextView(!0)}),null,a),i.onDidBlur((function(){return t.contextViewService.hideContextView(!0)}),null,a),a.add((0,At.addDisposableListener)(window,At.EventType.BLUR,(function(){return t.contextViewService.hideContextView(!0)}))),a.add((0,At.addDisposableListener)(window,At.EventType.MOUSE_DOWN,(function(e){if(!e.defaultPrevented){var n=new ao.n(e),i=n.target;if(!n.rightButton){for(;i;){if(i===r)return;i=i.parentElement}t.contextViewService.hideContextView(!0)}}}))),(0,y.F8)(a,i)},focus:function(){null===i||void 0===i||i.focus(!!e.autoSelectFirstItem)},onHide:function(n){var i;null===(i=e.onHide)||void 0===i||i.call(e,!!n),t.block&&(t.block.remove(),t.block=null),t.focusToReturn&&t.focusToReturn.focus()}},r,!!r)}}},{key:"onActionRun",value:function(e){this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}},{key:"onDidActionRun",value:function(e){e.error&&!(0,H.n2)(e.error)&&this.notificationService.error(e.error)}}]),e}(),Co=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},So=function(e,t){return function(n,i){t(n,i,e)}},wo=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,l){var c;return(0,r.Z)(this,n),(c=t.call(this))._onDidShowContextMenu=new s.Q5,c._onDidHideContextMenu=new s.Q5,c.contextMenuHandler=new bo(o,e,i,a,l),c}return(0,o.Z)(n,[{key:"configure",value:function(e){this.contextMenuHandler.configure(e)}},{key:"showContextMenu",value:function(e){var t=this;this.contextMenuHandler.showContextMenu(Object.assign(Object.assign({},e),{onHide:function(n){var i;null===(i=e.onHide)||void 0===i||i.call(e,n),t._onDidHideContextMenu.fire()}})),At.ModifierKeyEmitter.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}}]),n}(y.JT);wo=Co([So(0,nr.b),So(1,vn.lT),So(2,mn.u),So(3,Wi.d),So(4,Gt.XE)],wo);var ko,xo=n(18042);!function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(ko||(ko={}));var Eo=n(83078),To=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},No=function(e,t){return function(n,i){t(n,i,e)}},Io=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},Do=function(){function e(t){(0,r.Z)(this,e),this._commandService=t}return(0,o.Z)(e,[{key:"open",value:function(e,t){return Io(this,void 0,void 0,(0,F.Z)().mark((function n(){var i,r;return(0,F.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((0,Eo.xn)(e,$n.lg.command)){n.next=2;break}return n.abrupt("return",!1);case 2:if(null===t||void 0===t?void 0:t.allowCommands){n.next=4;break}return n.abrupt("return",!0);case 4:"string"===typeof e&&(e=c.o.parse(e)),r=[];try{r=(0,xo.Q)(decodeURIComponent(e.query))}catch(ne){try{r=(0,xo.Q)(e.query)}catch(o){}}return Array.isArray(r)||(r=[r]),n.next=10,(i=this._commandService).executeCommand.apply(i,[e.path].concat((0,m.Z)(r)));case 10:return n.abrupt("return",!0);case 11:case"end":return n.stop()}}),n,this)})))}}]),e}();Do=To([No(0,Pi.Hy)],Do);var Lo=function(){function e(t){(0,r.Z)(this,e),this._editorService=t}return(0,o.Z)(e,[{key:"open",value:function(e,t){return Io(this,void 0,void 0,(0,F.Z)().mark((function n(){var i,r,o;return(0,F.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return"string"===typeof e&&(e=c.o.parse(e)),i=(0,Eo.xI)(e),r=i.selection,o=i.uri,(e=o).scheme===$n.lg.file&&(e=(0,or.AH)(e)),n.next=6,this._editorService.openCodeEditor({resource:e,options:Object.assign({selection:r,source:(null===t||void 0===t?void 0:t.fromUserGesture)?ko.USER:ko.API},null===t||void 0===t?void 0:t.editorOptions)},this._editorService.getFocusedCodeEditor(),null===t||void 0===t?void 0:t.openToSide);case 6:return n.abrupt("return",!0);case 7:case"end":return n.stop()}}),n,this)})))}}]),e}();Lo=To([No(0,C.$)],Lo);var Oo=function(){function e(t,n){var i=this;(0,r.Z)(this,e),this._openers=new Xn.S,this._validators=new Xn.S,this._resolvers=new Xn.S,this._resolvedUriTargets=new Zi.Y9((function(e){return e.with({path:null,fragment:null,query:null}).toString()})),this._externalOpeners=new Xn.S,this._defaultExternalOpener={openExternal:function(e){return Io(i,void 0,void 0,(0,F.Z)().mark((function t(){return(0,F.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,Eo.Gs)(e,$n.lg.http,$n.lg.https)?At.windowOpenNoOpener(e):window.location.href=e,t.abrupt("return",!0);case 2:case"end":return t.stop()}}),t)})))}},this._openers.push({open:function(e,t){return Io(i,void 0,void 0,(0,F.Z)().mark((function n(){return(0,F.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null===t||void 0===t?void 0:t.openExternal)&&!(0,Eo.Gs)(e,$n.lg.mailto,$n.lg.http,$n.lg.https,$n.lg.vsls)){n.next=4;break}return n.next=3,this._doOpenExternal(e,t);case 3:return n.abrupt("return",!0);case 4:return n.abrupt("return",!1);case 5:case"end":return n.stop()}}),n,this)})))}}),this._openers.push(new Do(n)),this._openers.push(new Lo(t))}return(0,o.Z)(e,[{key:"registerOpener",value:function(e){return{dispose:this._openers.unshift(e)}}},{key:"registerValidator",value:function(e){return{dispose:this._validators.push(e)}}},{key:"registerExternalUriResolver",value:function(e){return{dispose:this._resolvers.push(e)}}},{key:"setDefaultExternalOpener",value:function(e){this._defaultExternalOpener=e}},{key:"registerExternalOpener",value:function(e){return{dispose:this._externalOpeners.push(e)}}},{key:"open",value:function(e,t){var n;return Io(this,void 0,void 0,(0,F.Z)().mark((function i(){var r,o,a,s,l,u,d,h;return(0,F.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:r="string"===typeof e?c.o.parse(e):e,o=null!==(n=this._resolvedUriTargets.get(r))&&void 0!==n?n:e,a=(0,Z.Z)(this._validators),i.prev=3,a.s();case 5:if((s=a.n()).done){i.next=13;break}return l=s.value,i.next=9,l.shouldOpen(o,t);case 9:if(i.sent){i.next=11;break}return i.abrupt("return",!1);case 11:i.next=5;break;case 13:i.next=18;break;case 15:i.prev=15,i.t0=i.catch(3),a.e(i.t0);case 18:return i.prev=18,a.f(),i.finish(18);case 21:u=(0,Z.Z)(this._openers),i.prev=22,u.s();case 24:if((d=u.n()).done){i.next=33;break}return h=d.value,i.next=28,h.open(e,t);case 28:if(!i.sent){i.next=31;break}return i.abrupt("return",!0);case 31:i.next=24;break;case 33:i.next=38;break;case 35:i.prev=35,i.t1=i.catch(22),u.e(i.t1);case 38:return i.prev=38,u.f(),i.finish(38);case 41:return i.abrupt("return",!1);case 42:case"end":return i.stop()}}),i,this,[[3,15,18,21],[22,35,38,41]])})))}},{key:"resolveExternalUri",value:function(e,t){return Io(this,void 0,void 0,(0,F.Z)().mark((function n(){var i,r,o,a;return(0,F.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=(0,Z.Z)(this._resolvers),n.prev=1,i.s();case 3:if((r=i.n()).done){n.next=18;break}return o=r.value,n.prev=5,n.next=8,o.resolveExternalUri(e,t);case 8:if(!(a=n.sent)){n.next=12;break}return this._resolvedUriTargets.has(a.resolved)||this._resolvedUriTargets.set(a.resolved,e),n.abrupt("return",a);case 12:n.next=16;break;case 14:n.prev=14,n.t0=n.catch(5);case 16:n.next=3;break;case 18:n.next=23;break;case 20:n.prev=20,n.t1=n.catch(1),i.e(n.t1);case 23:return n.prev=23,i.f(),n.finish(23);case 26:throw new Error("Could not resolve external URI: "+e.toString());case 27:case"end":return n.stop()}}),n,this,[[1,20,23,26],[5,14]])})))}},{key:"_doOpenExternal",value:function(e,t){return Io(this,void 0,void 0,(0,F.Z)().mark((function n(){var i,r,o,s,l,u,d;return(0,F.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i="string"===typeof e?c.o.parse(e):e,n.prev=1,n.next=4,this.resolveExternalUri(i,t);case 4:r=n.sent.resolved,n.next=10;break;case 7:n.prev=7,n.t0=n.catch(1),r=i;case 10:if(o="string"===typeof e&&i.toString()===r.toString()?e:encodeURI(r.toString(!0)),!(null===t||void 0===t?void 0:t.allowContributedOpeners)){n.next=33;break}s="string"===typeof(null===t||void 0===t?void 0:t.allowContributedOpeners)?null===t||void 0===t?void 0:t.allowContributedOpeners:void 0,l=(0,Z.Z)(this._externalOpeners),n.prev=14,l.s();case 16:if((u=l.n()).done){n.next=25;break}return d=u.value,n.next=20,d.openExternal(o,{sourceUri:i,preferredOpenerId:s},a.T.None);case 20:if(!n.sent){n.next=23;break}return n.abrupt("return",!0);case 23:n.next=16;break;case 25:n.next=30;break;case 27:n.prev=27,n.t1=n.catch(14),l.e(n.t1);case 30:return n.prev=30,l.f(),n.finish(30);case 33:return n.abrupt("return",this._defaultExternalOpener.openExternal(o,{sourceUri:i},a.T.None));case 34:case"end":return n.stop()}}),n,this,[[1,7],[14,27,30,33]])})))}},{key:"dispose",value:function(){this._validators.clear()}}]),e}();Oo=To([No(0,C.$),No(1,Pi.Hy)],Oo);var Ro=n(46813),Ao=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Mo=function(e,t){return function(n,i){t(n,i,e)}},Po=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).model=e,i._markersData=new Map,i._register((0,y.OF)((function(){i.model.deltaDecorations((0,m.Z)(i._markersData.keys()),[]),i._markersData.clear()}))),i}return(0,o.Z)(n,[{key:"update",value:function(e,t){var n=(0,m.Z)(this._markersData.keys());this._markersData.clear();for(var i=this.model.deltaDecorations(n,t),r=0;r<i.length;r++)this._markersData.set(i[r],e[r]);return 0!==n.length||0!==i.length}},{key:"getMarker",value:function(e){return this._markersData.get(e.id)}}]),n}(y.JT),Zo=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this))._markerService=i,o._onDidChangeMarker=o._register(new s.Q5),o._markerDecorations=new Zi.Y9,e.getModels().forEach((function(e){return o._onModelAdded(e)})),o._register(e.onModelAdded(o._onModelAdded,(0,Ot.Z)(o))),o._register(e.onModelRemoved(o._onModelRemoved,(0,Ot.Z)(o))),o._register(o._markerService.onMarkerChanged(o._handleMarkerChange,(0,Ot.Z)(o))),o}return(0,o.Z)(n,[{key:"dispose",value:function(){(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this),this._markerDecorations.forEach((function(e){return e.dispose()})),this._markerDecorations.clear()}},{key:"getMarker",value:function(e,t){var n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}},{key:"_handleMarkerChange",value:function(e){var t=this;e.forEach((function(e){var n=t._markerDecorations.get(e);n&&t._updateDecorations(n)}))}},{key:"_onModelAdded",value:function(e){var t=new Po(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}},{key:"_onModelRemoved",value:function(e){var t,n=this,i=this._markerDecorations.get(e.uri);i&&(i.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==$n.lg.inMemory&&e.uri.scheme!==$n.lg.internal&&e.uri.scheme!==$n.lg.vscode||null===(t=this._markerService)||void 0===t||t.read({resource:e.uri}).map((function(e){return e.owner})).forEach((function(t){return n._markerService.remove(t,[e.uri])}))}},{key:"_updateDecorations",value:function(e){var t=this,n=this._markerService.read({resource:e.model.uri,take:500}),i=n.map((function(n){return{range:t._createDecorationRange(e.model,n),options:t._createDecorationOption(n)}}));e.update(n,i)&&this._onDidChangeMarker.fire(e.model)}},{key:"_createDecorationRange",value:function(e,t){var n=d.e.lift(t);if(t.severity!==Ro.ZL.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),(n=e.validateRange(n)).isEmpty()){var i=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===i||n.endColumn>=i)return n;var r=e.getWordAtPosition(n.getStartPosition());r&&(n=new d.e(n.startLineNumber,r.startColumn,n.endLineNumber,r.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){var o=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);o<n.endColumn&&(n=new d.e(n.startLineNumber,o,n.endLineNumber,n.endColumn),t.startColumn=o)}return n}},{key:"_createDecorationOption",value:function(e){var t,n,i,r=void 0,o=void 0;switch(e.severity){case Ro.ZL.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case Ro.ZL.Warning:t="squiggly-warning",r=(0,Gt.EN)(Vt.Re),n=20,i={color:(0,Gt.EN)(Ut.Ivo),position:O.F5.Inline};break;case Ro.ZL.Info:t="squiggly-info",r=(0,Gt.EN)(Vt.eS),n=10;break;case Ro.ZL.Error:default:t="squiggly-error",r=(0,Gt.EN)(Vt.lK),n=30,i={color:(0,Gt.EN)(Ut.Gj_),position:O.F5.Inline}}return e.tags&&(-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(o="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:r,position:O.sh.Right},minimap:i,zIndex:n,inlineClassName:o}}},{key:"_hasMarkerTag",value:function(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}]),n}(y.JT);Zo=Ao([Mo(0,P.q),Mo(1,Ro.lT)],Zo);var Fo=n(40729),Bo=n(45310),Ho=n(41330),zo=n(95343),jo=n(62458),Vo={buttonBackground:jo.Il.fromHex("#0E639C"),buttonHoverBackground:jo.Il.fromHex("#006BB3"),buttonSeparator:jo.Il.white,buttonForeground:jo.Il.white},Wo=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this))._onDidClick=o._register(new s.Q5),o.options=i||Object.create(null),(0,T.jB)(o.options,Vo,!1),o.buttonForeground=o.options.buttonForeground,o.buttonBackground=o.options.buttonBackground,o.buttonHoverBackground=o.options.buttonHoverBackground,o.buttonSecondaryForeground=o.options.buttonSecondaryForeground,o.buttonSecondaryBackground=o.options.buttonSecondaryBackground,o.buttonSecondaryHoverBackground=o.options.buttonSecondaryHoverBackground,o.buttonBorder=o.options.buttonBorder,o._element=document.createElement("a"),o._element.classList.add("monaco-button"),o._element.tabIndex=0,o._element.setAttribute("role","button"),e.appendChild(o._element),o._register(lo.o.addTarget(o._element)),[At.EventType.CLICK,lo.t.Tap].forEach((function(e){o._register((0,At.addDisposableListener)(o._element,e,(function(e){o.enabled?o._onDidClick.fire(e):At.EventHelper.stop(e)})))})),o._register((0,At.addDisposableListener)(o._element,At.EventType.KEY_DOWN,(function(e){var t=new Di.y(e),n=!1;o.enabled&&(t.equals(3)||t.equals(10))?(o._onDidClick.fire(e),n=!0):t.equals(9)&&(o._element.blur(),n=!0),n&&At.EventHelper.stop(t,!0)}))),o._register((0,At.addDisposableListener)(o._element,At.EventType.MOUSE_OVER,(function(e){o._element.classList.contains("disabled")||o.setHoverBackground()}))),o._register((0,At.addDisposableListener)(o._element,At.EventType.MOUSE_OUT,(function(e){o.applyStyles()}))),o.focusTracker=o._register((0,At.trackFocus)(o._element)),o._register(o.focusTracker.onDidFocus((function(){o.enabled&&o.setHoverBackground()}))),o._register(o.focusTracker.onDidBlur((function(){o.enabled&&o.applyStyles()}))),o.applyStyles(),o}return(0,o.Z)(n,[{key:"onDidClick",get:function(){return this._onDidClick.event}},{key:"setHoverBackground",value:function(){var e;(e=this.options.secondary?this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:this.buttonHoverBackground?this.buttonHoverBackground.toString():null)&&(this._element.style.backgroundColor=e)}},{key:"style",value:function(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}},{key:"applyStyles",value:function(){if(this._element){var e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");var n=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=n?"1px":"",this._element.style.borderStyle=n?"solid":"",this._element.style.borderColor=n}}},{key:"element",get:function(){return this._element}},{key:"label",set:function(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?At.reset.apply(void 0,[this._element].concat((0,m.Z)((0,zo.T)(e)))):this._element.textContent=e,"string"===typeof this.options.title?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}},{key:"enabled",get:function(){return!this._element.classList.contains("disabled")},set:function(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}}]),n}(y.JT),Uo=n(34355),Go="done",Ko="active",Yo="infinite",qo="infinite-long-running",$o="discrete",Xo={progressBarBackground:jo.Il.fromHex("#0E70C0")},Qo=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).options=i||Object.create(null),(0,T.jB)(o.options,Xo,!1),o.workedVal=0,o.progressBarBackground=o.options.progressBarBackground,o.showDelayedScheduler=o._register(new B.pY((function(){return(0,At.show)(o.element)}),0)),o.longRunningScheduler=o._register(new B.pY((function(){return o.infiniteLongRunning()}),n.LONG_RUNNING_INFINITE_THRESHOLD)),o.create(e),o}return(0,o.Z)(n,[{key:"create",value:function(e){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}},{key:"off",value:function(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(Ko,Yo,qo,$o),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}},{key:"stop",value:function(){return this.doDone(!1)}},{key:"doDone",value:function(e){var t=this;return this.element.classList.add(Go),this.element.classList.contains(Yo)?(this.bit.style.opacity="0",e?setTimeout((function(){return t.off()}),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((function(){return t.off()}),200):this.off()),this}},{key:"infinite",value:function(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove($o,Go,qo),this.element.classList.add(Ko,Yo),this.longRunningScheduler.schedule(),this}},{key:"infiniteLongRunning",value:function(){this.element.classList.add(qo)}},{key:"getContainer",value:function(){return this.element}},{key:"style",value:function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}},{key:"applyStyles",value:function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}]),n}(y.JT);Qo.LONG_RUNNING_INFINITE_THRESHOLD=1e4;var Jo=n(59767),ea={},ta=new Jo.R("quick-input-button-icon-");function na(e){if(e){var t,n=e.dark.toString();return ea[n]?t=ea[n]:(t=ta.nextId(),At.createCSSRule(".".concat(t,", .hc-light .").concat(t),"background-image: ".concat(At.asCSSUrl(e.light||e.dark))),At.createCSSRule(".vs-dark .".concat(t,", .hc-black .").concat(t),"background-image: ".concat(At.asCSSUrl(e.dark))),ea[n]=t),t}}var ia=n(57090),ra=n(33957),oa=At.$,aa=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).parent=e,i.onKeyDown=function(e){return At.addDisposableListener(i.inputBox.inputElement,At.EventType.KEY_DOWN,(function(t){e(new Di.y(t))}))},i.onMouseDown=function(e){return At.addDisposableListener(i.inputBox.inputElement,At.EventType.MOUSE_DOWN,(function(t){e(new ao.n(t))}))},i.onDidChange=function(e){return i.inputBox.onDidChange(e)},i.container=At.append(i.parent,oa(".quick-input-box")),i.inputBox=i._register(new ra.W(i.container,void 0)),i}return(0,o.Z)(n,[{key:"value",get:function(){return this.inputBox.value},set:function(e){this.inputBox.value=e}},{key:"select",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.inputBox.select(e)}},{key:"isSelectionAtEnd",value:function(){return this.inputBox.isSelectionAtEnd()}},{key:"placeholder",get:function(){return this.inputBox.inputElement.getAttribute("placeholder")||""},set:function(e){this.inputBox.setPlaceHolder(e)}},{key:"ariaLabel",get:function(){return this.inputBox.getAriaLabel()},set:function(e){this.inputBox.setAriaLabel(e)}},{key:"password",get:function(){return"password"===this.inputBox.inputElement.type},set:function(e){this.inputBox.inputElement.type=e?"password":"text"}},{key:"setAttribute",value:function(e,t){this.inputBox.inputElement.setAttribute(e,t)}},{key:"removeAttribute",value:function(e){this.inputBox.inputElement.removeAttribute(e)}},{key:"showDecoration",value:function(e){e===hi.Z.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===hi.Z.Info?1:e===hi.Z.Warning?2:3,content:""})}},{key:"stylesForType",value:function(e){return this.inputBox.stylesForType(e===hi.Z.Info?1:e===hi.Z.Warning?2:3)}},{key:"setFocus",value:function(){this.inputBox.focus()}},{key:"layout",value:function(){this.inputBox.layout()}},{key:"style",value:function(e){this.inputBox.style(e)}}]),n}(y.JT),sa=n(89182),la=At.$,ca=function(){function e(t,n,i){(0,r.Z)(this,e),this.os=n,this.keyElements=new Set,this.options=i||Object.create(null),this.labelBackground=this.options.keybindingLabelBackground,this.labelForeground=this.options.keybindingLabelForeground,this.labelBorder=this.options.keybindingLabelBorder,this.labelBottomBorder=this.options.keybindingLabelBottomBorder,this.labelShadow=this.options.keybindingLabelShadow,this.domNode=At.append(t,la(".monaco-keybinding")),this.didEverRender=!1,t.appendChild(this.domNode)}return(0,o.Z)(e,[{key:"element",get:function(){return this.domNode}},{key:"set",value:function(t,n){this.didEverRender&&this.keybinding===t&&e.areSame(this.matches,n)||(this.keybinding=t,this.matches=n,this.render())}},{key:"render",value:function(){if(this.clear(),this.keybinding){var e=this.keybinding.getParts(),t=(0,be.Z)(e,2),n=t[0],i=t[1];n&&this.renderPart(this.domNode,n,this.matches?this.matches.firstPart:null),i&&(At.append(this.domNode,la("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,i,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.applyStyles(),this.didEverRender=!0}},{key:"clear",value:function(){At.clearNode(this.domNode),this.keyElements.clear()}},{key:"renderPart",value:function(e,t,n){var i=Qi.xo.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,i.ctrlKey,Boolean(null===n||void 0===n?void 0:n.ctrlKey),i.separator),t.shiftKey&&this.renderKey(e,i.shiftKey,Boolean(null===n||void 0===n?void 0:n.shiftKey),i.separator),t.altKey&&this.renderKey(e,i.altKey,Boolean(null===n||void 0===n?void 0:n.altKey),i.separator),t.metaKey&&this.renderKey(e,i.metaKey,Boolean(null===n||void 0===n?void 0:n.metaKey),i.separator);var r=t.keyLabel;r&&this.renderKey(e,r,Boolean(null===n||void 0===n?void 0:n.keyCode),"")}},{key:"renderKey",value:function(e,t,n,i){At.append(e,this.createKeyElement(t,n?".highlight":"")),i&&At.append(e,la("span.monaco-keybinding-key-separator",void 0,i))}},{key:"renderUnbound",value:function(e){At.append(e,this.createKeyElement((0,Rt.NC)("unbound","Unbound")))}},{key:"createKeyElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=la("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(n),n}},{key:"style",value:function(e){this.labelBackground=e.keybindingLabelBackground,this.labelForeground=e.keybindingLabelForeground,this.labelBorder=e.keybindingLabelBorder,this.labelBottomBorder=e.keybindingLabelBottomBorder,this.labelShadow=e.keybindingLabelShadow,this.applyStyles()}},{key:"applyStyles",value:function(){var e;if(this.element){var t,n=(0,Z.Z)(this.keyElements);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.labelBackground&&(i.style.backgroundColor=null===(e=this.labelBackground)||void 0===e?void 0:e.toString()),this.labelBorder&&(i.style.borderColor=this.labelBorder.toString()),this.labelBottomBorder&&(i.style.borderBottomColor=this.labelBottomBorder.toString()),this.labelShadow&&(i.style.boxShadow="inset 0 -1px 0 ".concat(this.labelShadow))}}catch(r){n.e(r)}finally{n.f()}this.labelForeground&&(this.element.style.color=this.labelForeground.toString())}}}],[{key:"areSame",value:function(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,T.fS)(e.firstPart,t.firstPart)&&(0,T.fS)(e.chordPart,t.chordPart)}}]),e}(),ua=new B.Ue((function(){var e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));new B.Ue((function(){return{collator:new Intl.Collator(void 0,{numeric:!0})}})),new B.Ue((function(){return{collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}}));function da(e,t,n){var i=e.toLowerCase(),r=t.toLowerCase(),o=function(e,t,n){var i=e.toLowerCase(),r=t.toLowerCase(),o=i.startsWith(n),a=r.startsWith(n);if(o!==a)return o?-1:1;if(o&&a){if(i.length<r.length)return-1;if(i.length>r.length)return 1}return 0}(e,t,n);if(o)return o;var a=i.endsWith(n);if(a!==r.endsWith(n))return a?-1:1;var s=function(e,t){var n=e||"",i=t||"",r=ua.value.collator.compare(n,i);return ua.value.collatorIsNumeric&&0===r&&n!==i?n<i?-1:1:r}(i,r);return 0!==s?s:i.localeCompare(r)}var ha=n(24030),fa=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},pa=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},ga=At.$,va=function(){function e(t){(0,r.Z)(this,e),this.hidden=!1,this._onChecked=new s.Q5,this.onChecked=this._onChecked.event,Object.assign(this,t)}return(0,o.Z)(e,[{key:"checked",get:function(){return!!this._checked},set:function(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}},{key:"dispose",value:function(){this._onChecked.dispose()}}]),e}(),ma=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"templateId",get:function(){return e.ID}},{key:"renderTemplate",value:function(e){var t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=At.append(e,ga(".quick-input-list-entry"));var n=At.append(t.entry,ga("label.quick-input-list-label"));t.toDisposeTemplate.push(At.addStandardDisposableListener(n,At.EventType.CLICK,(function(e){t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=At.append(n,ga("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(At.addStandardDisposableListener(t.checkbox,At.EventType.CHANGE,(function(e){t.element.checked=t.checkbox.checked})));var i=At.append(n,ga(".quick-input-list-rows")),r=At.append(i,ga(".quick-input-list-row")),o=At.append(i,ga(".quick-input-list-row"));t.label=new sa.g(r,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});var a=At.append(r,ga(".quick-input-list-entry-keybinding"));t.keybinding=new ca(a,z.OS);var s=At.append(o,ga(".quick-input-list-label-meta"));return t.detail=new sa.g(s,{supportHighlights:!0,supportIcons:!0}),t.separator=At.append(t.entry,ga(".quick-input-list-separator")),t.actionBar=new Bt.o(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}},{key:"renderElement",value:function(e,t,n){var i=this;n.toDisposeElement=(0,y.B9)(n.toDisposeElement),n.element=e,n.checkbox.checked=e.checked,n.toDisposeElement.push(e.onChecked((function(e){return n.checkbox.checked=e})));var r=e.labelHighlights,o=e.descriptionHighlights,a=e.detailHighlights,s=Object.create(null);s.matches=r||[],s.descriptionTitle=e.saneDescription,s.descriptionMatches=o||[],s.extraClasses=e.item.iconClasses,s.italic=e.item.italic,s.strikethrough=e.item.strikethrough,n.label.setLabel(e.saneLabel,e.saneDescription,s),n.keybinding.set(e.item.keybinding),e.saneDetail&&n.detail.setLabel(e.saneDetail,void 0,{matches:a,title:e.saneDetail}),e.separator&&e.separator.label?(n.separator.textContent=e.separator.label,n.separator.style.display=""):n.separator.style.display="none",n.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),n.actionBar.clear();var l=e.item.buttons;l&&l.length?(n.actionBar.push(l.map((function(t,n){var r=t.iconClass||(t.iconPath?na(t.iconPath):void 0);t.alwaysVisible&&(r=r?"".concat(r," always-visible"):"always-visible");var o=new zt.aU("id-".concat(n),"",r,!0,(function(){return pa(i,void 0,void 0,(0,F.Z)().mark((function n(){return(0,F.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.fireButtonTriggered({button:t,item:e.item});case 1:case"end":return n.stop()}}),n)})))}));return o.tooltip=t.tooltip||"",o})),{icon:!0,label:!1}),n.entry.classList.add("has-actions")):n.entry.classList.remove("has-actions")}},{key:"disposeElement",value:function(e,t,n){n.toDisposeElement=(0,y.B9)(n.toDisposeElement)}},{key:"disposeTemplate",value:function(e){e.toDisposeElement=(0,y.B9)(e.toDisposeElement),e.toDisposeTemplate=(0,y.B9)(e.toDisposeTemplate)}}]),e}();ma.ID="listelement";var ya,_a=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"getHeight",value:function(e){return e.saneDetail?44:22}},{key:"getTemplateId",value:function(e){return ma.ID}}]),e}();!function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage"}(ya||(ya={}));var ba=function(){function e(t,n,i){var o=this;(0,r.Z)(this,e),this.parent=t,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnLabelMode="fuzzy",this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new s.Q5,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new s.Q5,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new s.Q5,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new s.Q5,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new s.Q5,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new s.Q5,this.onKeyDown=this._onKeyDown.event,this._onLeave=new s.Q5,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=n,this.container=At.append(this.parent,ga(".quick-input-list"));var a=new _a,l=new Sa;this.list=i.createList("QuickInput",this.container,a,[new ma],{identityProvider:{getId:function(e){return e.saneLabel}},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:l}),this.list.getHTMLElement().id=n,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown((function(e){var t=new Di.y(e);switch(t.keyCode){case 10:o.toggleCheckbox();break;case 31:(z.dz?e.metaKey:e.ctrlKey)&&o.list.setFocus((0,Ze.w6)(o.list.length));break;case 16:var n=o.list.getFocus();1===n.length&&0===n[0]&&o._onLeave.fire();break;case 18:var i=o.list.getFocus();1===i.length&&i[0]===o.list.length-1&&o._onLeave.fire()}o._onKeyDown.fire(t)}))),this.disposables.push(this.list.onMouseDown((function(e){2!==e.browserEvent.button&&e.browserEvent.preventDefault()}))),this.disposables.push(At.addDisposableListener(this.container,At.EventType.CLICK,(function(e){(e.x||e.y)&&o._onLeave.fire()}))),this.disposables.push(this.list.onMouseMiddleClick((function(e){o._onLeave.fire()}))),this.disposables.push(this.list.onContextMenu((function(e){"number"===typeof e.index&&(e.browserEvent.preventDefault(),o.list.setSelection([e.index]))}))),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}return(0,o.Z)(e,[{key:"onDidChangeFocus",get:function(){return s.ju.map(this.list.onDidChangeFocus,(function(e){return e.elements.map((function(e){return e.item}))}))}},{key:"onDidChangeSelection",get:function(){return s.ju.map(this.list.onDidChangeSelection,(function(e){return{items:e.elements.map((function(e){return e.item})),event:e.browserEvent}}))}},{key:"scrollTop",get:function(){return this.list.scrollTop},set:function(e){this.list.scrollTop=e}},{key:"getAllVisibleChecked",value:function(){return this.allVisibleChecked(this.elements,!1)}},{key:"allVisibleChecked",value:function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=0,i=e.length;n<i;n++){var r=e[n];if(!r.hidden){if(!r.checked)return!1;t=!0}}return t}},{key:"getCheckedCount",value:function(){for(var e=0,t=this.elements,n=0,i=t.length;n<i;n++)t[n].checked&&e++;return e}},{key:"getVisibleCount",value:function(){for(var e=0,t=this.elements,n=0,i=t.length;n<i;n++)t[n].hidden||e++;return e}},{key:"setAllVisibleChecked",value:function(e){try{this._fireCheckedEvents=!1,this.elements.forEach((function(t){t.hidden||(t.checked=e)}))}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}},{key:"setElements",value:function(e){var t,n,i=this;this.elementDisposables=(0,y.B9)(this.elementDisposables);var r=function(e){return i.fireButtonTriggered(e)};this.inputElements=e,this.elements=e.reduce((function(t,n,o){var a,s,l;if("separator"!==n.type){var c=o&&e[o-1],u=n.label&&n.label.replace(/\r?\n/g," "),d=(0,ho.Ho)(u).text.trim(),h=n.meta&&n.meta.replace(/\r?\n/g," "),f=n.description&&n.description.replace(/\r?\n/g," "),p=n.detail&&n.detail.replace(/\r?\n/g," "),g=n.ariaLabel||[u,f,p].map((function(e){return(0,Kt.JL)(e)})).filter((function(e){return!!e})).join(", "),v=i.parent.classList.contains("show-checkboxes");t.push(new va({hasCheckbox:v,index:o,item:n,saneLabel:u,saneSortLabel:d,saneMeta:h,saneAriaLabel:g,saneDescription:f,saneDetail:p,labelHighlights:null===(a=n.highlights)||void 0===a?void 0:a.label,descriptionHighlights:null===(s=n.highlights)||void 0===s?void 0:s.description,detailHighlights:null===(l=n.highlights)||void 0===l?void 0:l.detail,checked:!1,separator:c&&"separator"===c.type?c:void 0,fireButtonTriggered:r}))}return t}),[]),(t=this.elementDisposables).push.apply(t,(0,m.Z)(this.elements)),(n=this.elementDisposables).push.apply(n,(0,m.Z)(this.elements.map((function(e){return e.onChecked((function(){return i.fireCheckedEvents()}))})))),this.elementsToIndexes=this.elements.reduce((function(e,t,n){return e.set(t.item,n),e}),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}},{key:"getFocusedElements",value:function(){return this.list.getFocusedElements().map((function(e){return e.item}))}},{key:"setFocusedElements",value:function(e){var t=this;if(this.list.setFocus(e.filter((function(e){return t.elementsToIndexes.has(e)})).map((function(e){return t.elementsToIndexes.get(e)}))),e.length>0){var n=this.list.getFocus()[0];"number"===typeof n&&this.list.reveal(n)}}},{key:"getActiveDescendant",value:function(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}},{key:"setSelectedElements",value:function(e){var t=this;this.list.setSelection(e.filter((function(e){return t.elementsToIndexes.has(e)})).map((function(e){return t.elementsToIndexes.get(e)})))}},{key:"getCheckedElements",value:function(){return this.elements.filter((function(e){return e.checked})).map((function(e){return e.item}))}},{key:"setCheckedElements",value:function(e){try{this._fireCheckedEvents=!1;var t,n=new Set,i=(0,Z.Z)(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n.add(r)}}catch(l){i.e(l)}finally{i.f()}var o,a=(0,Z.Z)(this.elements);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.checked=n.has(s.item)}}catch(l){a.e(l)}finally{a.f()}}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}},{key:"enabled",set:function(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}},{key:"focus",value:function(e){if(this.list.length){switch(e===ya.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=ya.First),e===ya.Previous&&0===this.list.getFocus()[0]&&(e=ya.Last),e===ya.Second&&this.list.length<2&&(e=ya.First),e){case ya.First:this.list.focusFirst();break;case ya.Second:this.list.focusNth(1);break;case ya.Last:this.list.focusLast();break;case ya.Next:this.list.focusNext();break;case ya.Previous:this.list.focusPrevious();break;case ya.NextPage:this.list.focusNextPage();break;case ya.PreviousPage:this.list.focusPreviousPage()}var t=this.list.getFocus()[0];"number"===typeof t&&this.list.reveal(t)}}},{key:"clearFocus",value:function(){this.list.setFocus([])}},{key:"domFocus",value:function(){this.list.domFocus()}},{key:"layout",value:function(e){this.list.getHTMLElement().style.maxHeight=e?"calc(".concat(44*Math.floor(e/44),"px)"):"",this.list.layout()}},{key:"filter",value:function(e){var t=this;if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;var n,i=e;(e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)?this.elements.forEach((function(r){var o;o="fuzzy"===t.matchOnLabelMode?t.matchOnLabel?(0,j.f6)((0,ho.Gt)(e,(0,ho.Ho)(r.saneLabel))):void 0:t.matchOnLabel?(0,j.f6)(function(e,t){var n=t.text,i=t.iconOffsets;if(!i||0===i.length)return Ca(e,n);var r=(0,_.j3)(n," "),o=n.length-r.length,a=Ca(e,r);if(a){var s,l=(0,Z.Z)(a);try{for(l.s();!(s=l.n()).done;){var c=s.value,u=i[c.start+o]+o;c.start+=u,c.end+=u}}catch(d){l.e(d)}finally{l.f()}}return a}(i,(0,ho.Ho)(r.saneLabel))):void 0;var a=t.matchOnDescription?(0,j.f6)((0,ho.Gt)(e,(0,ho.Ho)(r.saneDescription||""))):void 0,s=t.matchOnDetail?(0,j.f6)((0,ho.Gt)(e,(0,ho.Ho)(r.saneDetail||""))):void 0,l=t.matchOnMeta?(0,j.f6)((0,ho.Gt)(e,(0,ho.Ho)(r.saneMeta||""))):void 0;if(o||a||s||l?(r.labelHighlights=o,r.descriptionHighlights=a,r.detailHighlights=s,r.hidden=!1):(r.labelHighlights=void 0,r.descriptionHighlights=void 0,r.detailHighlights=void 0,r.hidden=!r.item.alwaysShow),r.separator=void 0,!t.sortByLabel){var c=r.index&&t.inputElements[r.index-1];(n=c&&"separator"===c.type?c:n)&&!r.hidden&&(r.separator=n,n=void 0)}})):this.elements.forEach((function(e){e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;var n=e.index&&t.inputElements[e.index-1];e.separator=n&&"separator"===n.type?n:void 0}));var r=this.elements.filter((function(e){return!e.hidden}));if(this.sortByLabel&&e){var o=e.toLowerCase();r.sort((function(e,t){return function(e,t,n){var i=e.labelHighlights||[],r=t.labelHighlights||[];if(i.length&&!r.length)return-1;if(!i.length&&r.length)return 1;if(0===i.length&&0===r.length)return 0;return da(e.saneSortLabel,t.saneSortLabel,n)}(e,t,o)}))}return this.elementsToIndexes=r.reduce((function(e,t,n){return e.set(t.item,n),e}),new Map),this.list.splice(0,this.list.length,r),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(r.length),!0}},{key:"toggleCheckbox",value:function(){try{this._fireCheckedEvents=!1;var e,t=this.list.getFocusedElements(),n=this.allVisibleChecked(t),i=(0,Z.Z)(t);try{for(i.s();!(e=i.n()).done;){e.value.checked=!n}}catch(r){i.e(r)}finally{i.f()}}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}},{key:"display",value:function(e){this.container.style.display=e?"":"none"}},{key:"isDisplayed",value:function(){return"none"!==this.container.style.display}},{key:"dispose",value:function(){this.elementDisposables=(0,y.B9)(this.elementDisposables),this.disposables=(0,y.B9)(this.disposables)}},{key:"fireCheckedEvents",value:function(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}},{key:"fireButtonTriggered",value:function(e){this._onButtonTriggered.fire(e)}},{key:"style",value:function(e){this.list.style(e)}}]),e}();function Ca(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1!==n?[{start:n,end:n+e.length}]:null}fa([ha.H],ba.prototype,"onDidChangeFocus",null),fa([ha.H],ba.prototype,"onDidChangeSelection",null);var Sa=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"getWidgetAriaLabel",value:function(){return(0,Rt.NC)("quickInput","Quick Input")}},{key:"getAriaLabel",value:function(e){var t;return(null===(t=e.separator)||void 0===t?void 0:t.label)?"".concat(e.saneAriaLabel,", ").concat(e.separator.label):e.saneAriaLabel}},{key:"getWidgetRole",value:function(){return"listbox"}},{key:"getRole",value:function(e){return e.hasCheckbox?"checkbox":"option"}},{key:"isChecked",value:function(e){if(e.hasCheckbox)return{value:e.checked,onDidChange:e.onChecked}}}]),e}(),wa=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},ka=At.$,xa={iconClass:Kt.lA.quickInputBack.classNames,tooltip:(0,Rt.NC)("quickInput.back","Back"),handle:-1},Ea=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).ui=e,i.visible=!1,i._enabled=!0,i._busy=!1,i._ignoreFocusOut=!1,i._buttons=[],i.noValidationMessage=n.noPromptMessage,i._severity=hi.Z.Ignore,i.buttonsUpdated=!1,i.onDidTriggerButtonEmitter=i._register(new s.Q5),i.onDidHideEmitter=i._register(new s.Q5),i.onDisposeEmitter=i._register(new s.Q5),i.visibleDisposables=i._register(new y.SL),i.onDidHide=i.onDidHideEmitter.event,i}return(0,o.Z)(n,[{key:"title",get:function(){return this._title},set:function(e){this._title=e,this.update()}},{key:"description",get:function(){return this._description},set:function(e){this._description=e,this.update()}},{key:"step",get:function(){return this._steps},set:function(e){this._steps=e,this.update()}},{key:"totalSteps",get:function(){return this._totalSteps},set:function(e){this._totalSteps=e,this.update()}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this.update()}},{key:"contextKey",get:function(){return this._contextKey},set:function(e){this._contextKey=e,this.update()}},{key:"busy",get:function(){return this._busy},set:function(e){this._busy=e,this.update()}},{key:"ignoreFocusOut",get:function(){return this._ignoreFocusOut},set:function(e){var t=this._ignoreFocusOut!==e&&!z.gn;this._ignoreFocusOut=e&&!z.gn,t&&this.update()}},{key:"buttons",get:function(){return this._buttons},set:function(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}},{key:"validationMessage",get:function(){return this._validationMessage},set:function(e){this._validationMessage=e,this.update()}},{key:"severity",get:function(){return this._severity},set:function(e){this._severity=e,this.update()}},{key:"show",value:function(){var e=this;this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton((function(t){-1!==e.buttons.indexOf(t)&&e.onDidTriggerButtonEmitter.fire(t)}))),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}},{key:"hide",value:function(){this.visible&&this.ui.hide()}},{key:"didHide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ia.Jq.Other;this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}},{key:"update",value:function(){var e=this;if(this.visible){var t=this.getTitle();t&&this.ui.title.textContent!==t?this.ui.title.textContent=t:t||" "===this.ui.title.innerHTML||(this.ui.title.innerText="\xa0");var n=this.getDescription();if(this.ui.description1.textContent!==n&&(this.ui.description1.textContent=n),this.ui.description2.textContent!==n&&(this.ui.description2.textContent=n),this.busy&&!this.busyDelay&&(this.busyDelay=new B._F,this.busyDelay.setIfNotSet((function(){e.visible&&e.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();var i=this.buttons.filter((function(e){return e===xa}));this.ui.leftActionBar.push(i.map((function(t,n){var i=new zt.aU("id-".concat(n),"",t.iconClass||na(t.iconPath),!0,(function(){return wa(e,void 0,void 0,(0,F.Z)().mark((function e(){return(0,F.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.onDidTriggerButtonEmitter.fire(t);case 1:case"end":return e.stop()}}),e,this)})))}));return i.tooltip=t.tooltip||"",i})),{icon:!0,label:!1}),this.ui.rightActionBar.clear();var r=this.buttons.filter((function(e){return e!==xa}));this.ui.rightActionBar.push(r.map((function(t,n){var i=new zt.aU("id-".concat(n),"",t.iconClass||na(t.iconPath),!0,(function(){return wa(e,void 0,void 0,(0,F.Z)().mark((function e(){return(0,F.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.onDidTriggerButtonEmitter.fire(t);case 1:case"end":return e.stop()}}),e,this)})))}));return i.tooltip=t.tooltip||"",i})),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);var o=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==o&&(this._lastValidationMessage=o,At.reset.apply(At,[this.ui.message].concat((0,m.Z)((0,zo.T)(o))))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}}},{key:"getTitle",value:function(){return this.title&&this.step?"".concat(this.title," (").concat(this.getSteps(),")"):this.title?this.title:this.step?this.getSteps():""}},{key:"getDescription",value:function(){return this.description||""}},{key:"getSteps",value:function(){return this.step&&this.totalSteps?(0,Rt.NC)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}},{key:"showMessageDecoration",value:function(e){if(this.ui.inputBox.showDecoration(e),e!==hi.Z.Ignore){var t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?"".concat(t.foreground):"",this.ui.message.style.backgroundColor=t.background?"".concat(t.background):"",this.ui.message.style.border=t.border?"1px solid ".concat(t.border):"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}},{key:"dispose",value:function(){this.hide(),this.onDisposeEmitter.fire(),(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this)}}]),n}(y.JT);Ea.noPromptMessage=(0,Rt.NC)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");var Ta=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments))._value="",e.onDidChangeValueEmitter=e._register(new s.Q5),e.onWillAcceptEmitter=e._register(new s.Q5),e.onDidAcceptEmitter=e._register(new s.Q5),e.onDidCustomEmitter=e._register(new s.Q5),e._items=[],e.itemsUpdated=!1,e._canSelectMany=!1,e._canAcceptInBackground=!1,e._matchOnDescription=!1,e._matchOnDetail=!1,e._matchOnLabel=!0,e._matchOnLabelMode="fuzzy",e._sortByLabel=!0,e._autoFocusOnList=!0,e._keepScrollPosition=!1,e._itemActivation=e.ui.isScreenReaderOptimized()?ia.jG.NONE:ia.jG.FIRST,e._activeItems=[],e.activeItemsUpdated=!1,e.activeItemsToConfirm=[],e.onDidChangeActiveEmitter=e._register(new s.Q5),e._selectedItems=[],e.selectedItemsUpdated=!1,e.selectedItemsToConfirm=[],e.onDidChangeSelectionEmitter=e._register(new s.Q5),e.onDidTriggerItemButtonEmitter=e._register(new s.Q5),e.valueSelectionUpdated=!0,e._ok="default",e._customButton=!1,e.filterValue=function(e){return e},e.onDidChangeValue=e.onDidChangeValueEmitter.event,e.onWillAccept=e.onWillAcceptEmitter.event,e.onDidAccept=e.onDidAcceptEmitter.event,e.onDidChangeActive=e.onDidChangeActiveEmitter.event,e.onDidChangeSelection=e.onDidChangeSelectionEmitter.event,e.onDidTriggerItemButton=e.onDidTriggerItemButtonEmitter.event,e}return(0,o.Z)(n,[{key:"quickNavigate",get:function(){return this._quickNavigate},set:function(e){this._quickNavigate=e,this.update()}},{key:"value",get:function(){return this._value},set:function(e){this.doSetValue(e)}},{key:"doSetValue",value:function(e,t){if(this._value!==e){if(this._value=e,t||this.update(),this.visible)this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst();this.onDidChangeValueEmitter.fire(this._value)}}},{key:"ariaLabel",get:function(){return this._ariaLabel},set:function(e){this._ariaLabel=e,this.update()}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.update()}},{key:"items",get:function(){return this._items},set:function(e){this._items=e,this.itemsUpdated=!0,this.update()}},{key:"scrollTop",get:function(){return this.ui.list.scrollTop},set:function(e){this.ui.list.scrollTop=e}},{key:"canSelectMany",get:function(){return this._canSelectMany},set:function(e){this._canSelectMany=e,this.update()}},{key:"canAcceptInBackground",get:function(){return this._canAcceptInBackground},set:function(e){this._canAcceptInBackground=e}},{key:"matchOnDescription",get:function(){return this._matchOnDescription},set:function(e){this._matchOnDescription=e,this.update()}},{key:"matchOnDetail",get:function(){return this._matchOnDetail},set:function(e){this._matchOnDetail=e,this.update()}},{key:"matchOnLabel",get:function(){return this._matchOnLabel},set:function(e){this._matchOnLabel=e,this.update()}},{key:"matchOnLabelMode",get:function(){return this._matchOnLabelMode},set:function(e){this._matchOnLabelMode=e,this.update()}},{key:"sortByLabel",get:function(){return this._sortByLabel},set:function(e){this._sortByLabel=e,this.update()}},{key:"autoFocusOnList",get:function(){return this._autoFocusOnList},set:function(e){this._autoFocusOnList=e,this.update()}},{key:"keepScrollPosition",get:function(){return this._keepScrollPosition},set:function(e){this._keepScrollPosition=e}},{key:"itemActivation",get:function(){return this._itemActivation},set:function(e){this._itemActivation=e}},{key:"activeItems",get:function(){return this._activeItems},set:function(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}},{key:"selectedItems",get:function(){return this._selectedItems},set:function(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}},{key:"keyMods",get:function(){return this._quickNavigate?ia.X5:this.ui.keyMods}},{key:"valueSelection",set:function(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}},{key:"customButton",get:function(){return this._customButton},set:function(e){this._customButton=e,this.update()}},{key:"customLabel",get:function(){return this._customButtonLabel},set:function(e){this._customButtonLabel=e,this.update()}},{key:"customHover",get:function(){return this._customButtonHover},set:function(e){this._customButtonHover=e,this.update()}},{key:"ok",get:function(){return this._ok},set:function(e){this._ok=e,this.update()}},{key:"hideInput",get:function(){return!!this._hideInput},set:function(e){this._hideInput=e,this.update()}},{key:"trySelectFirst",value:function(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(ya.First))}},{key:"show",value:function(){var e=this;this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((function(t){e.doSetValue(t,!0)}))),this.visibleDisposables.add(this.ui.inputBox.onMouseDown((function(t){e.autoFocusOnList||e.ui.list.clearFocus()}))),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown((function(t){switch(t.keyCode){case 18:e.ui.list.focus(ya.Next),e.canSelectMany&&e.ui.list.domFocus(),At.EventHelper.stop(t,!0);break;case 16:e.ui.list.getFocusedElements().length?e.ui.list.focus(ya.Previous):e.ui.list.focus(ya.Last),e.canSelectMany&&e.ui.list.domFocus(),At.EventHelper.stop(t,!0);break;case 12:e.ui.list.focus(ya.NextPage),e.canSelectMany&&e.ui.list.domFocus(),At.EventHelper.stop(t,!0);break;case 11:e.ui.list.focus(ya.PreviousPage),e.canSelectMany&&e.ui.list.domFocus(),At.EventHelper.stop(t,!0);break;case 17:if(!e._canAcceptInBackground)return;if(!e.ui.inputBox.isSelectionAtEnd())return;e.activeItems[0]&&(e._selectedItems=[e.activeItems[0]],e.onDidChangeSelectionEmitter.fire(e.selectedItems),e.handleAccept(!0));break;case 14:!t.ctrlKey&&!t.metaKey||t.shiftKey||t.altKey||(e.ui.list.focus(ya.First),At.EventHelper.stop(t,!0));break;case 13:!t.ctrlKey&&!t.metaKey||t.shiftKey||t.altKey||(e.ui.list.focus(ya.Last),At.EventHelper.stop(t,!0))}}))),this.visibleDisposables.add(this.ui.onDidAccept((function(){e.canSelectMany?e.ui.list.getCheckedElements().length||(e._selectedItems=[],e.onDidChangeSelectionEmitter.fire(e.selectedItems)):e.activeItems[0]&&(e._selectedItems=[e.activeItems[0]],e.onDidChangeSelectionEmitter.fire(e.selectedItems)),e.handleAccept(!1)}))),this.visibleDisposables.add(this.ui.onDidCustom((function(){e.onDidCustomEmitter.fire()}))),this.visibleDisposables.add(this.ui.list.onDidChangeFocus((function(t){e.activeItemsUpdated||e.activeItemsToConfirm!==e._activeItems&&(0,Ze.fS)(t,e._activeItems,(function(e,t){return e===t}))||(e._activeItems=t,e.onDidChangeActiveEmitter.fire(t))}))),this.visibleDisposables.add(this.ui.list.onDidChangeSelection((function(t){var n=t.items,i=t.event;e.canSelectMany?n.length&&e.ui.list.setSelectedElements([]):e.selectedItemsToConfirm!==e._selectedItems&&(0,Ze.fS)(n,e._selectedItems,(function(e,t){return e===t}))||(e._selectedItems=n,e.onDidChangeSelectionEmitter.fire(n),n.length&&e.handleAccept(i instanceof MouseEvent&&1===i.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((function(t){e.canSelectMany&&(e.selectedItemsToConfirm!==e._selectedItems&&(0,Ze.fS)(t,e._selectedItems,(function(e,t){return e===t}))||(e._selectedItems=t,e.onDidChangeSelectionEmitter.fire(t)))}))),this.visibleDisposables.add(this.ui.list.onButtonTriggered((function(t){return e.onDidTriggerItemButtonEmitter.fire(t)}))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),(0,S.Z)((0,w.Z)(n.prototype),"show",this).call(this)}},{key:"handleAccept",value:function(e){var t=!1;this.onWillAcceptEmitter.fire({veto:function(){return t=!0}}),t||this.onDidAcceptEmitter.fire({inBackground:e})}},{key:"registerQuickNavigation",value:function(){var e=this;return At.addDisposableListener(this.ui.container,At.EventType.KEY_UP,(function(t){if(!e.canSelectMany&&e._quickNavigate){var n=new Di.y(t),i=n.keyCode;e._quickNavigate.keybindings.some((function(e){var t=e.getParts(),r=(0,be.Z)(t,2),o=r[0];return!r[1]&&(o.shiftKey&&4===i?!(n.ctrlKey||n.altKey||n.metaKey):!(!o.altKey||6!==i)||(!(!o.ctrlKey||5!==i)||!(!o.metaKey||57!==i)))}))&&(e.activeItems[0]&&(e._selectedItems=[e.activeItems[0]],e.onDidChangeSelectionEmitter.fire(e.selectedItems),e.handleAccept(!1)),e._quickNavigate=void 0)}}))}},{key:"update",value:function(){if(this.visible){var e=this.keepScrollPosition?this.scrollTop:0,t=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);var i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),(0,S.Z)((0,w.Z)(n.prototype),"update",this).call(this),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");var r=this.ariaLabel;if(r||(r=this.placeholder||n.DEFAULT_ARIA_LABEL,this.title&&(r+=" - ".concat(this.title))),this.ui.inputBox.ariaLabel!==r&&(this.ui.inputBox.ariaLabel=r),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case ia.jG.NONE:this._itemActivation=ia.jG.FIRST;break;case ia.jG.SECOND:this.ui.list.focus(ya.Second),this._itemActivation=ia.jG.FIRST;break;case ia.jG.LAST:this.ui.list.focus(ya.Last),this._itemActivation=ia.jG.FIRST;break;default:this.trySelectFirst()}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(ya.First)),this.keepScrollPosition&&(this.scrollTop=e)}}}]),n}(Ea);Ta.DEFAULT_ARIA_LABEL=(0,Rt.NC)("quickInputBox.ariaLabel","Type to narrow down results.");var Na=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).options=e,i.comboboxAccessibility=!1,i.enabled=!0,i.onDidAcceptEmitter=i._register(new s.Q5),i.onDidCustomEmitter=i._register(new s.Q5),i.onDidTriggerButtonEmitter=i._register(new s.Q5),i.keyMods={ctrlCmd:!1,alt:!1},i.controller=null,i.onShowEmitter=i._register(new s.Q5),i.onShow=i.onShowEmitter.event,i.onHideEmitter=i._register(new s.Q5),i.onHide=i.onHideEmitter.event,i.idPrefix=e.idPrefix,i.parentElement=e.container,i.styles=e.styles,i.registerKeyModsListeners(),i}return(0,o.Z)(n,[{key:"registerKeyModsListeners",value:function(){var e=this,t=function(t){e.keyMods.ctrlCmd=t.ctrlKey||t.metaKey,e.keyMods.alt=t.altKey};this._register(At.addDisposableListener(window,At.EventType.KEY_DOWN,t,!0)),this._register(At.addDisposableListener(window,At.EventType.KEY_UP,t,!0)),this._register(At.addDisposableListener(window,At.EventType.MOUSE_DOWN,t,!0))}},{key:"getUI",value:function(){var e=this;if(this.ui)return this.ui;var t=At.append(this.parentElement,ka(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";var n=At.createStyleSheet(t),i=At.append(t,ka(".quick-input-titlebar")),r=this._register(new Bt.o(i));r.domNode.classList.add("quick-input-left-action-bar");var o=At.append(i,ka(".quick-input-title")),a=this._register(new Bt.o(i));a.domNode.classList.add("quick-input-right-action-bar");var s=At.append(t,ka(".quick-input-description")),l=At.append(t,ka(".quick-input-header")),c=At.append(l,ka("input.quick-input-check-all"));c.type="checkbox",c.setAttribute("aria-label",(0,Rt.NC)("quickInput.checkAll","Toggle all checkboxes")),this._register(At.addStandardDisposableListener(c,At.EventType.CHANGE,(function(e){var t=c.checked;w.setAllVisibleChecked(t)}))),this._register(At.addDisposableListener(c,At.EventType.CLICK,(function(e){(e.x||e.y)&&f.setFocus()})));var u=At.append(l,ka(".quick-input-description")),d=At.append(l,ka(".quick-input-and-message")),h=At.append(d,ka(".quick-input-filter")),f=this._register(new aa(h));f.setAttribute("aria-describedby","".concat(this.idPrefix,"message"));var p=At.append(h,ka(".quick-input-visible-count"));p.setAttribute("aria-live","polite"),p.setAttribute("aria-atomic","true");var g=new Uo.Z(p,{countFormat:(0,Rt.NC)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),v=At.append(h,ka(".quick-input-count"));v.setAttribute("aria-live","polite");var m=new Uo.Z(v,{countFormat:(0,Rt.NC)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),y=At.append(l,ka(".quick-input-action")),_=new Wo(y);_.label=(0,Rt.NC)("ok","OK"),this._register(_.onDidClick((function(t){e.onDidAcceptEmitter.fire()})));var b=At.append(l,ka(".quick-input-action")),C=new Wo(b);C.label=(0,Rt.NC)("custom","Custom"),this._register(C.onDidClick((function(t){e.onDidCustomEmitter.fire()})));var S=At.append(d,ka("#".concat(this.idPrefix,"message.quick-input-message"))),w=this._register(new ba(t,this.idPrefix+"list",this.options));this._register(w.onChangedAllVisibleChecked((function(e){c.checked=e}))),this._register(w.onChangedVisibleCount((function(e){g.setCount(e)}))),this._register(w.onChangedCheckedCount((function(e){m.setCount(e)}))),this._register(w.onLeave((function(){setTimeout((function(){f.setFocus(),e.controller instanceof Ta&&e.controller.canSelectMany&&w.clearFocus()}),0)}))),this._register(w.onDidChangeFocus((function(){e.comboboxAccessibility&&e.getUI().inputBox.setAttribute("aria-activedescendant",e.getUI().list.getActiveDescendant()||"")})));var k=new Qo(t);k.getContainer().classList.add("quick-input-progress");var x=At.trackFocus(t);return this._register(x),this._register(At.addDisposableListener(t,At.EventType.FOCUS,(function(t){e.previousFocusElement=t.relatedTarget instanceof HTMLElement?t.relatedTarget:void 0}),!0)),this._register(x.onDidBlur((function(){e.getUI().ignoreFocusOut||e.options.ignoreFocusOut()||e.hide(ia.Jq.Blur),e.previousFocusElement=void 0}))),this._register(At.addDisposableListener(t,At.EventType.FOCUS,(function(e){f.setFocus()}))),this._register(At.addDisposableListener(t,At.EventType.KEY_DOWN,(function(n){var i=new Di.y(n);switch(i.keyCode){case 3:At.EventHelper.stop(n,!0),e.onDidAcceptEmitter.fire();break;case 9:At.EventHelper.stop(n,!0),e.hide(ia.Jq.Gesture);break;case 2:if(!i.altKey&&!i.ctrlKey&&!i.metaKey){var r=[".action-label.codicon"];t.classList.contains("show-checkboxes")?r.push("input"):r.push("input[type=text]"),e.getUI().list.isDisplayed()&&r.push(".monaco-list");var o=t.querySelectorAll(r.join(", "));i.shiftKey&&i.target===o[0]?(At.EventHelper.stop(n,!0),o[o.length-1].focus()):i.shiftKey||i.target!==o[o.length-1]||(At.EventHelper.stop(n,!0),o[0].focus())}}}))),this.ui={container:t,styleSheet:n,leftActionBar:r,titleBar:i,title:o,description1:s,description2:u,rightActionBar:a,checkAll:c,filterContainer:h,inputBox:f,visibleCountContainer:p,visibleCount:g,countContainer:v,count:m,okContainer:y,ok:_,message:S,customButtonContainer:b,customButton:C,list:w,progressBar:k,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:function(){return e.options.isScreenReaderOptimized()},show:function(t){return e.show(t)},hide:function(){return e.hide()},setVisibilities:function(t){return e.setVisibilities(t)},setComboboxAccessibility:function(t){return e.setComboboxAccessibility(t)},setEnabled:function(t){return e.setEnabled(t)},setContextKey:function(t){return e.options.setContextKey(t)}},this.updateStyles(),this.ui}},{key:"pick",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.T.None;return new Promise((function(r,o){var a=function(e){var t;a=r,null===(t=n.onKeyMods)||void 0===t||t.call(n,l.keyMods),r(e)};if(i.isCancellationRequested)a(void 0);else{var s,l=t.createQuickPick(),c=[l,l.onDidAccept((function(){if(l.canSelectMany)a(l.selectedItems.slice()),l.hide();else{var e=l.activeItems[0];e&&(a(e),l.hide())}})),l.onDidChangeActive((function(e){var t=e[0];t&&n.onDidFocus&&n.onDidFocus(t)})),l.onDidChangeSelection((function(e){if(!l.canSelectMany){var t=e[0];t&&(a(t),l.hide())}})),l.onDidTriggerItemButton((function(e){return n.onDidTriggerItemButton&&n.onDidTriggerItemButton(Object.assign(Object.assign({},e),{removeItem:function(){var t=l.items.indexOf(e.item);if(-1!==t){var n=l.items.slice(),i=n.splice(t,1),r=l.activeItems.filter((function(e){return e!==i[0]})),o=l.keepScrollPosition;l.keepScrollPosition=!0,l.items=n,r&&(l.activeItems=r),l.keepScrollPosition=o}}}))})),l.onDidChangeValue((function(e){!s||e||1===l.activeItems.length&&l.activeItems[0]===s||(l.activeItems=[s])})),i.onCancellationRequested((function(){l.hide()})),l.onDidHide((function(){(0,y.B9)(c),a(void 0)}))];l.title=n.title,l.canSelectMany=!!n.canPickMany,l.placeholder=n.placeHolder,l.ignoreFocusOut=!!n.ignoreFocusLost,l.matchOnDescription=!!n.matchOnDescription,l.matchOnDetail=!!n.matchOnDetail,l.matchOnLabel=void 0===n.matchOnLabel||n.matchOnLabel,l.autoFocusOnList=void 0===n.autoFocusOnList||n.autoFocusOnList,l.quickNavigate=n.quickNavigate,l.hideInput=!!n.hideInput,l.contextKey=n.contextKey,l.busy=!0,Promise.all([e,n.activeItem]).then((function(e){var t=(0,be.Z)(e,2),n=t[0],i=t[1];s=i,l.busy=!1,l.items=n,l.canSelectMany&&(l.selectedItems=n.filter((function(e){return"separator"!==e.type&&e.picked}))),s&&(l.activeItems=[s])})),l.show(),Promise.resolve(e).then(void 0,(function(e){o(e),l.hide()}))}}))}},{key:"createQuickPick",value:function(){var e=this.getUI();return new Ta(e)}},{key:"show",value:function(e){var t=this.getUI();this.onShowEmitter.fire();var n=this.controller;this.controller=e,n&&n.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(hi.Z.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),At.reset(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";var i=this.options.backKeybindingLabel();xa.tooltip=i?(0,Rt.NC)("quickInput.backWithKeybinding","Back ({0})",i):(0,Rt.NC)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}},{key:"setVisibilities",value:function(e){var t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}},{key:"setComboboxAccessibility",value:function(e){if(e!==this.comboboxAccessibility){var t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}},{key:"setEnabled",value:function(e){if(e!==this.enabled){this.enabled=e;var t,n=(0,Z.Z)(this.getUI().leftActionBar.viewItems);try{for(n.s();!(t=n.n()).done;){t.value.getAction().enabled=e}}catch(o){n.e(o)}finally{n.f()}var i,r=(0,Z.Z)(this.getUI().rightActionBar.viewItems);try{for(r.s();!(i=r.n()).done;){i.value.getAction().enabled=e}}catch(o){r.e(o)}finally{r.f()}this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}},{key:"hide",value:function(e){var t,n=this.controller;if(n){var i=!(null===(t=this.ui)||void 0===t?void 0:t.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!i){for(var r=this.previousFocusElement;r&&!r.offsetParent;)r=(0,j.f6)(r.parentElement);(null===r||void 0===r?void 0:r.offsetParent)?(r.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}n.didHide(e)}}},{key:"layout",value:function(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}},{key:"updateLayout",value:function(){if(this.ui){this.ui.container.style.top="".concat(this.titleBarOffset,"px");var e=this.ui.container.style,t=Math.min(.62*this.dimension.width,n.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}},{key:"applyStyles",value:function(e){this.styles=e,this.updateStyles()}},{key:"updateStyles",value:function(){if(this.ui){var e=this.styles.widget,t=e.quickInputTitleBackground,n=e.quickInputBackground,i=e.quickInputForeground,r=e.contrastBorder,o=e.widgetShadow;this.ui.titleBar.style.backgroundColor=t?t.toString():"",this.ui.container.style.backgroundColor=n?n.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=r?"1px solid ".concat(r):"",this.ui.container.style.boxShadow=o?"0 0 8px 2px ".concat(o):"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);var a=[];this.styles.list.pickerGroupBorder&&a.push(".quick-input-list .quick-input-list-entry { border-top-color: ".concat(this.styles.list.pickerGroupBorder,"; }")),this.styles.list.pickerGroupForeground&&a.push(".quick-input-list .quick-input-list-separator { color: ".concat(this.styles.list.pickerGroupForeground,"; }")),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(a.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&a.push("background-color: ".concat(this.styles.keybindingLabel.keybindingLabelBackground,";")),this.styles.keybindingLabel.keybindingLabelBorder&&a.push("border-color: ".concat(this.styles.keybindingLabel.keybindingLabelBorder,";")),this.styles.keybindingLabel.keybindingLabelBottomBorder&&a.push("border-bottom-color: ".concat(this.styles.keybindingLabel.keybindingLabelBottomBorder,";")),this.styles.keybindingLabel.keybindingLabelShadow&&a.push("box-shadow: inset 0 -1px 0 ".concat(this.styles.keybindingLabel.keybindingLabelShadow,";")),this.styles.keybindingLabel.keybindingLabelForeground&&a.push("color: ".concat(this.styles.keybindingLabel.keybindingLabelForeground,";")),a.push("}"));var s=a.join("\n");s!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=s)}}}]),n}(y.JT);Na.MAX_WIDTH=600;var Ia=n(39125),Da=n(11541),La=n(83672),Oa=n(23664),Ra=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Aa=function(e,t){return function(n,i){t(n,i,e)}},Ma=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).quickInputService=e,o.instantiationService=i,o.registry=Qr.B.as(La.IP.Quickaccess),o.mapProviderToDescriptor=new Map,o.lastAcceptedPickerValues=new Map,o.visibleQuickAccess=void 0,o}return(0,o.Z)(n,[{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this.doShowOrPick(e,!1,t)}},{key:"doShowOrPick",value:function(e,t,n){var i,r=this.getOrInstantiateProvider(e),o=(0,be.Z)(r,2),s=o[0],l=o[1],c=this.visibleQuickAccess,u=null===c||void 0===c?void 0:c.descriptor;if(c&&l&&u===l)return e===l.prefix||(null===n||void 0===n?void 0:n.preserveValue)||(c.picker.value=e),void this.adjustValueSelection(c.picker,l,n);if(l&&!(null===n||void 0===n?void 0:n.preserveValue)){var d=void 0;if(c&&u&&u!==l){var h=c.value.substr(u.prefix.length);h&&(d="".concat(l.prefix).concat(h))}if(!d){var f=null===s||void 0===s?void 0:s.defaultFilterValue;f===La.Ry.LAST?d=this.lastAcceptedPickerValues.get(l):"string"===typeof f&&(d="".concat(l.prefix).concat(f))}"string"===typeof d&&(e=d)}var p=new y.SL,g=p.add(this.quickInputService.createQuickPick());g.value=e,this.adjustValueSelection(g,l,n),g.placeholder=null===l||void 0===l?void 0:l.placeholder,g.quickNavigate=null===n||void 0===n?void 0:n.quickNavigateConfiguration,g.hideInput=!!g.quickNavigate&&!c,("number"===typeof(null===n||void 0===n?void 0:n.itemActivation)||(null===n||void 0===n?void 0:n.quickNavigateConfiguration))&&(g.itemActivation=null!==(i=null===n||void 0===n?void 0:n.itemActivation)&&void 0!==i?i:Oa.jG.SECOND),g.contextKey=null===l||void 0===l?void 0:l.contextKey,g.filterValue=function(e){return e.substring(l?l.prefix.length:0)},(null===l||void 0===l?void 0:l.placeholder)&&(g.ariaLabel=null===l||void 0===l?void 0:l.placeholder);var v=void 0;t&&(v=new B.CR,p.add((0,Da.I)(g.onWillAccept)((function(e){e.veto(),g.hide()})))),p.add(this.registerPickerListeners(g,s,l,e));var m=p.add(new a.A);return s&&p.add(s.provide(g,m.token)),(0,Da.I)(g.onDidHide)((function(){0===g.selectedItems.length&&m.cancel(),p.dispose(),null===v||void 0===v||v.complete(g.selectedItems.slice(0))})),g.show(),t?null===v||void 0===v?void 0:v.p:void 0}},{key:"adjustValueSelection",value:function(e,t,n){var i,r;r=(null===n||void 0===n?void 0:n.preserveValue)?[e.value.length,e.value.length]:[null!==(i=null===t||void 0===t?void 0:t.prefix.length)&&void 0!==i?i:0,e.value.length],e.valueSelection=r}},{key:"registerPickerListeners",value:function(e,t,n,i){var r=this,o=new y.SL,a=this.visibleQuickAccess={picker:e,descriptor:n,value:i};return o.add((0,y.OF)((function(){a===r.visibleQuickAccess&&(r.visibleQuickAccess=void 0)}))),o.add(e.onDidChangeValue((function(e){var n=r.getOrInstantiateProvider(e);(0,be.Z)(n,1)[0]!==t?r.show(e,{preserveValue:!0}):a.value=e}))),n&&o.add(e.onDidAccept((function(){r.lastAcceptedPickerValues.set(n,e.value)}))),o}},{key:"getOrInstantiateProvider",value:function(e){var t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];var n=this.mapProviderToDescriptor.get(t);return n||(n=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,n)),[n,t]}}]),n}(y.JT);Ma=Ra([Aa(0,Oa.eJ),Aa(1,pn.TG)],Ma);var Pa=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Za=function(e,t){return function(n,i){t(n,i,e)}},Fa=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,s){var l;return(0,r.Z)(this,n),(l=t.call(this,o)).instantiationService=e,l.contextKeyService=i,l.accessibilityService=a,l.layoutService=s,l.contexts=new Map,l}return(0,o.Z)(n,[{key:"controller",get:function(){return this._controller||(this._controller=this._register(this.createController())),this._controller}},{key:"quickAccess",get:function(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Ma))),this._quickAccess}},{key:"createController",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.layoutService,n=arguments.length>1?arguments[1]:void 0,i={idPrefix:"quickInput_",container:t.container,ignoreFocusOut:function(){return!1},isScreenReaderOptimized:function(){return e.accessibilityService.isScreenReaderOptimized()},backKeybindingLabel:function(){},setContextKey:function(t){return e.setContextKey(t)},returnFocus:function(){return t.focus()},createList:function(t,n,i,r,o){return e.instantiationService.createInstance(Ia.ev,t,n,i,r,o)},styles:this.computeStyles()},r=this._register(new Na(Object.assign(Object.assign({},i),n)));return r.layout(t.dimension,t.offset.quickPickTop),this._register(t.onDidLayout((function(e){return r.layout(e,t.offset.quickPickTop)}))),this._register(r.onShow((function(){return e.resetContextKeys()}))),this._register(r.onHide((function(){return e.resetContextKeys()}))),r}},{key:"setContextKey",value:function(e){var t;e&&((t=this.contexts.get(e))||(t=new Wt.uy(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),null===t||void 0===t||t.set(!0))}},{key:"resetContextKeys",value:function(){this.contexts.forEach((function(e){e.get()&&e.reset()}))}},{key:"pick",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.T.None;return this.controller.pick(e,t,n)}},{key:"createQuickPick",value:function(){return this.controller.createQuickPick()}},{key:"updateStyles",value:function(){this.controller.applyStyles(this.computeStyles())}},{key:"computeStyles",value:function(){return{widget:Object.assign({},(0,_o.o)(this.theme,{quickInputBackground:Ut.zKr,quickInputForeground:Ut.tZ6,quickInputTitleBackground:Ut.loF,contrastBorder:Ut.lRK,widgetShadow:Ut.rh})),inputBox:(0,_o.o)(this.theme,{inputForeground:Ut.zJb,inputBackground:Ut.sEe,inputBorder:Ut.dt_,inputValidationInfoBackground:Ut._lC,inputValidationInfoForeground:Ut.YI3,inputValidationInfoBorder:Ut.EPQ,inputValidationWarningBackground:Ut.RV_,inputValidationWarningForeground:Ut.SUG,inputValidationWarningBorder:Ut.C3g,inputValidationErrorBackground:Ut.paE,inputValidationErrorForeground:Ut._t9,inputValidationErrorBorder:Ut.OZR}),countBadge:(0,_o.o)(this.theme,{badgeBackground:Ut.g8u,badgeForeground:Ut.qeD,badgeBorder:Ut.lRK}),button:(0,_o.o)(this.theme,{buttonForeground:Ut.j5u,buttonBackground:Ut.b7$,buttonHoverBackground:Ut.GO4,buttonBorder:Ut.lRK}),progressBar:(0,_o.o)(this.theme,{progressBarBackground:Ut.zRJ}),keybindingLabel:(0,_o.o)(this.theme,{keybindingLabelBackground:Ut.oQ$,keybindingLabelForeground:Ut.lWp,keybindingLabelBorder:Ut.AWI,keybindingLabelBottomBorder:Ut.K19,keybindingLabelShadow:Ut.rh}),list:(0,_o.o)(this.theme,{listBackground:Ut.zKr,listInactiveFocusForeground:Ut.NPS,listInactiveSelectionIconForeground:Ut.cbQ,listInactiveFocusBackground:Ut.Vqd,listFocusOutline:Ut.xL1,listInactiveFocusOutline:Ut.xL1,pickerGroupBorder:Ut.opG,pickerGroupForeground:Ut.kJk})}}}]),n}(Gt.bB),Ba=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ha=function(e,t){return function(n,i){t(n,i,e)}},za=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,s,l){var c;(0,r.Z)(this,n),(c=t.call(this,i,o,a,s,new di(e.getContainerDomNode(),l))).host=void 0;var u=Va.get(e);if(u){var d=u.widget;c.host={_serviceBrand:void 0,get hasContainer(){return!0},get container(){return d.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:function(){return e.focus()},offset:{top:0,quickPickTop:0}}}else c.host=void 0;return c}return(0,o.Z)(n,[{key:"createController",value:function(){return(0,S.Z)((0,w.Z)(n.prototype),"createController",this).call(this,this.host)}}]),n}(Fa=Pa([Za(0,pn.TG),Za(1,Wt.i6),Za(2,Gt.XE),Za(3,Ho.F),Za(4,si)],Fa));za=Ba([Ha(1,pn.TG),Ha(2,Wt.i6),Ha(3,Gt.XE),Ha(4,Ho.F),Ha(5,C.$)],za);var ja=function(){function e(t,n){(0,r.Z)(this,e),this.instantiationService=t,this.codeEditorService=n,this.mapEditorToService=new Map}return(0,o.Z)(e,[{key:"activeService",get:function(){var e=this,t=this.codeEditorService.getFocusedCodeEditor();if(!t)throw new Error("Quick input service needs a focused editor to work.");var n=this.mapEditorToService.get(t);if(!n){var i=n=this.instantiationService.createInstance(za,t);this.mapEditorToService.set(t,n),(0,Da.I)(t.onDidDispose)((function(){i.dispose(),e.mapEditorToService.delete(t)}))}return n}},{key:"quickAccess",get:function(){return this.activeService.quickAccess}},{key:"pick",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.T.None;return this.activeService.pick(e,t,n)}},{key:"createQuickPick",value:function(){return this.activeService.createQuickPick()}}]),e}();ja=Ba([Ha(0,pn.TG),Ha(1,C.$)],ja);var Va=function(){function e(t){(0,r.Z)(this,e),this.editor=t,this.widget=new Wa(this.editor)}return(0,o.Z)(e,[{key:"dispose",value:function(){this.widget.dispose()}}],[{key:"get",value:function(t){return t.getContribution(e.ID)}}]),e}();Va.ID="editor.controller.quickInput";var Wa=function(){function e(t){(0,r.Z)(this,e),this.codeEditor=t,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}return(0,o.Z)(e,[{key:"getId",value:function(){return e.ID}},{key:"getDomNode",value:function(){return this.domNode}},{key:"getPosition",value:function(){return{preference:2}}},{key:"dispose",value:function(){this.codeEditor.removeOverlayWidget(this)}}]),e}();Wa.ID="editor.contrib.quickInputWidget",(0,jt._K)(Va.ID,Va);var Ua=n(61513),Ga=n(12293),Ka=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ya=function(e,t){return function(n,i){t(n,i,e)}},qa=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o){var a;(0,r.Z)(this,n),(a=t.call(this))._contextKeyService=e,a._layoutService=i,a._configurationService=o,a._accessibilitySupport=0,a._onDidChangeScreenReaderOptimized=new s.Q5,a._onDidChangeReducedMotion=new s.Q5,a._accessibilityModeEnabledContext=Ho.U.bindTo(a._contextKeyService);var l=function(){return a._accessibilityModeEnabledContext.set(a.isScreenReaderOptimized())};a._register(a._configurationService.onDidChangeConfiguration((function(e){e.affectsConfiguration("editor.accessibilitySupport")&&(l(),a._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(a._configMotionReduced=a._configurationService.getValue("workbench.reduceMotion"),a._onDidChangeReducedMotion.fire())}))),l(),a._register(a.onDidChangeScreenReaderOptimized((function(){return l()})));var c=window.matchMedia("(prefers-reduced-motion: reduce)");return a._systemMotionReduced=c.matches,a._configMotionReduced=a._configurationService.getValue("workbench.reduceMotion"),a.initReducedMotionListeners(c),a}return(0,o.Z)(n,[{key:"initReducedMotionListeners",value:function(e){var t=this;if(this._layoutService.hasContainer){this._register((0,At.addDisposableListener)(e,"change",(function(){t._systemMotionReduced=e.matches,"auto"===t._configMotionReduced&&t._onDidChangeReducedMotion.fire()})));var n=function(){var e=t.isMotionReduced();t._layoutService.container.classList.toggle("reduce-motion",e),t._layoutService.container.classList.toggle("enable-motion",!e)};n(),this._register(this.onDidChangeReducedMotion((function(){return n()})))}}},{key:"onDidChangeScreenReaderOptimized",get:function(){return this._onDidChangeScreenReaderOptimized.event}},{key:"isScreenReaderOptimized",value:function(){var e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}},{key:"onDidChangeReducedMotion",get:function(){return this._onDidChangeReducedMotion.event}},{key:"isMotionReduced",value:function(){var e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}},{key:"getAccessibilitySupport",value:function(){return this._accessibilitySupport}}]),n}(y.JT);qa=Ka([Ya(0,Wt.i6),Ya(1,si),Ya(2,dt.Ui)],qa);var $a=n(48996),Xa=n(69681),Qa=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ja=function(e,t){return function(n,i){t(n,i,e)}},es=function(){function e(t,n){(0,r.Z)(this,e),this._commandService=t,this._hiddenStates=new ts(n)}return(0,o.Z)(e,[{key:"createMenu",value:function(e,t,n){return new ns(e,this._hiddenStates,Object.assign({emitEventsForSubmenuChanges:!1,eventDebounceDelay:50},n),this._commandService,t,this)}}]),e}();es=Qa([Ja(0,Pi.Hy),Ja(1,Xa.Uy)],es);var ts=function(){function e(t){var n=this;(0,r.Z)(this,e),this._storageService=t,this._disposables=new y.SL,this._onDidChange=new s.Q5,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1;try{var i=t.get(e._key,0,"{}");this._data=JSON.parse(i)}catch(o){this._data=Object.create(null)}this._disposables.add(t.onDidChangeValue((function(i){if(i.key===e._key){if(!n._ignoreChangeEvent)try{var r=t.get(e._key,0,"{}");n._data=JSON.parse(r)}catch(o){console.log("FAILED to read storage after UPDATE",o)}n._onDidChange.fire()}})))}return(0,o.Z)(e,[{key:"dispose",value:function(){this._onDidChange.dispose(),this._disposables.dispose()}},{key:"isHidden",value:function(e,t){var n,i;return null!==(i=null===(n=this._data[e.id])||void 0===n?void 0:n.includes(t))&&void 0!==i&&i}},{key:"updateHidden",value:function(e,t,n){var i=this._data[e.id];if(n)i?i.indexOf(t)<0&&i.push(t):this._data[e.id]=[t];else if(i){var r=i.indexOf(t);r>=0&&(0,Ze.LS)(i,r),0===i.length&&delete this._data[e.id]}this._persist()}},{key:"_persist",value:function(){try{this._ignoreChangeEvent=!0;var t=JSON.stringify(this._data);this._storageService.store(e._key,t,0,0)}finally{this._ignoreChangeEvent=!1}}}]),e}();ts._key="menu.hiddenCommands",ts=Qa([Ja(0,Xa.Uy)],ts);var ns=function(){function e(t,n,i,o,a,l){var c=this;(0,r.Z)(this,e),this._id=t,this._hiddenStates=n,this._options=i,this._commandService=o,this._contextKeyService=a,this._menuService=l,this._disposables=new y.SL,this._menuGroups=[],this._contextKeys=new Set,this._build();var u=new B.pY((function(){c._build(),c._onDidChange.fire(c)}),i.eventDebounceDelay);this._disposables.add(u),this._disposables.add($a.BH.onDidChangeMenu((function(e){e.has(t)&&u.schedule()})));var d=this._disposables.add(new y.SL);this._onDidChange=new s.Q5({onFirstListenerAdd:function(){var e=new B.pY((function(){return c._onDidChange.fire(c)}),i.eventDebounceDelay);d.add(e),d.add(a.onDidChangeContext((function(t){t.affectsSome(c._contextKeys)&&e.schedule()}))),d.add(n.onDidChange((function(){e.schedule()})))},onLastListenerRemove:d.clear.bind(d)}),this.onDidChange=this._onDidChange.event}return(0,o.Z)(e,[{key:"dispose",value:function(){this._disposables.dispose(),this._onDidChange.dispose()}},{key:"_build",value:function(){this._menuGroups.length=0,this._contextKeys.clear();var t,n=$a.BH.getMenuItems(this._id);n.sort(e._compareMenuItems);var i,r=(0,Z.Z)(n);try{for(r.s();!(i=r.n()).done;){var o=i.value,a=o.group||"";t&&t[0]===a||(t=[a,[]],this._menuGroups.push(t)),t[1].push(o),this._collectContextKeys(o)}}catch(s){r.e(s)}finally{r.f()}}},{key:"_collectContextKeys",value:function(t){if(e._fillInKbExprKeys(t.when,this._contextKeys),(0,$a.vr)(t)){if(t.command.precondition&&e._fillInKbExprKeys(t.command.precondition,this._contextKeys),t.command.toggled){var n=t.command.toggled.condition||t.command.toggled;e._fillInKbExprKeys(n,this._contextKeys)}}else this._options.emitEventsForSubmenuChanges&&$a.BH.getMenuItems(t.submenu).forEach(this._collectContextKeys,this)}},{key:"getActions",value:function(e){var t,n=[],i=[],r=(0,Z.Z)(this._menuGroups);try{for(r.s();!(t=r.n()).done;){var o,a=t.value,s=(0,be.Z)(a,2),l=s[0],c=s[1],u=[],d=[],h=(0,Z.Z)(c);try{for(h.s();!(o=h.n()).done;){var f=o.value;if(this._contextKeyService.contextMatchesRules(f.when)){var p=void 0;if((0,$a.vr)(f)){var g=is(this._id,f.command,this._hiddenStates);p=new $a.U8(f.command,f.alt,e,g,this._contextKeyService,this._commandService)}else 0===(p=new $a.NZ(f,this._menuService,this._contextKeyService,e)).actions.length&&(p.dispose(),p=void 0);p&&d.push(p)}}}catch(v){h.e(v)}finally{h.f()}d.length>0&&n.push([l,d]),u.length>0&&i.push(u)}}catch(v){r.e(v)}finally{r.f()}return n}}],[{key:"_fillInKbExprKeys",value:function(e,t){if(e){var n,i=(0,Z.Z)(e.keys());try{for(i.s();!(n=i.n()).done;){var r=n.value;t.add(r)}}catch(o){i.e(o)}finally{i.f()}}}},{key:"_compareMenuItems",value:function(t,n){var i=t.group,r=n.group;if(i!==r){if(!i)return 1;if(!r)return-1;if("navigation"===i)return-1;if("navigation"===r)return 1;var o=i.localeCompare(r);if(0!==o)return o}var a=t.order||0,s=n.order||0;return a<s?-1:a>s?1:e._compareTitles((0,$a.vr)(t)?t.command.title:t.title,(0,$a.vr)(n)?n.command.title:n.title)}},{key:"_compareTitles",value:function(e,t){var n="string"===typeof e?e:e.original,i="string"===typeof t?t:t.original;return n.localeCompare(i)}}]),e}();function is(e,t,n){var i="".concat(e.id,"/").concat(t.id),r="string"===typeof t.title?t.title:t.title.value,o=(0,zt.xw)({id:i,label:(0,Rt.NC)("hide.label","Hide '{0}'",r),run:function(){n.updateHidden(e,t.id,!0)}}),a=(0,zt.xw)({id:i,label:r,get checked(){return!n.isHidden(e,t.id)},run:function(){var i=!n.isHidden(e,t.id);n.updateHidden(e,t.id,i)}});return{hide:o,toggle:a,get isHidden(){return!a.checked}}}ns=Qa([Ja(3,Pi.Hy),Ja(4,Wt.i6),Ja(5,$a.co)],ns);var rs=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},os=function(e,t){return function(n,i){t(n,i,e)}},as=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},ss=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).layoutService=e,o.logService=i,o.mapTextToType=new Map,o.findText="",o.resources=[],(so.isSafari||so.isWebkitWebView)&&o.installWebKitWriteTextWorkaround(),o}return(0,o.Z)(n,[{key:"installWebKitWriteTextWorkaround",value:function(){var e=this,t=function(){var t=new B.CR;e.webKitPendingClipboardWritePromise&&!e.webKitPendingClipboardWritePromise.isSettled&&e.webKitPendingClipboardWritePromise.cancel(),e.webKitPendingClipboardWritePromise=t,navigator.clipboard.write([new ClipboardItem({"text/plain":t.p})]).catch((function(n){return as(e,void 0,void 0,(0,F.Z)().mark((function e(){return(0,F.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n instanceof Error&&"NotAllowedError"===n.name&&t.isRejected||this.logService.error(n);case 1:case"end":return e.stop()}}),e,this)})))}))};this.layoutService.hasContainer&&(this._register((0,At.addDisposableListener)(this.layoutService.container,"click",t)),this._register((0,At.addDisposableListener)(this.layoutService.container,"keydown",t)))}},{key:"writeText",value:function(e,t){return as(this,void 0,void 0,(0,F.Z)().mark((function n(){var i,r;return(0,F.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t){n.next=3;break}return this.mapTextToType.set(t,e),n.abrupt("return");case 3:if(!this.webKitPendingClipboardWritePromise){n.next=5;break}return n.abrupt("return",this.webKitPendingClipboardWritePromise.complete(e));case 5:return n.prev=5,n.next=8,navigator.clipboard.writeText(e);case 8:return n.abrupt("return",n.sent);case 11:n.prev=11,n.t0=n.catch(5),console.error(n.t0);case 14:return i=document.activeElement,(r=document.body.appendChild((0,At.$)("textarea",{"aria-hidden":!0}))).style.height="1px",r.style.width="1px",r.style.position="absolute",r.value=e,r.focus(),r.select(),document.execCommand("copy"),i instanceof HTMLElement&&i.focus(),document.body.removeChild(r),n.abrupt("return");case 26:case"end":return n.stop()}}),n,this,[[5,11]])})))}},{key:"readText",value:function(e){return as(this,void 0,void 0,(0,F.Z)().mark((function t(){return(0,F.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=2;break}return t.abrupt("return",this.mapTextToType.get(e)||"");case 2:return t.prev=2,t.next=5,navigator.clipboard.readText();case 5:return t.abrupt("return",t.sent);case 8:return t.prev=8,t.t0=t.catch(2),console.error(t.t0),t.abrupt("return","");case 12:case"end":return t.stop()}}),t,this,[[2,8]])})))}},{key:"readFindText",value:function(){return as(this,void 0,void 0,(0,F.Z)().mark((function e(){return(0,F.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.findText);case 1:case"end":return e.stop()}}),e,this)})))}},{key:"writeFindText",value:function(e){return as(this,void 0,void 0,(0,F.Z)().mark((function t(){return(0,F.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.findText=e;case 1:case"end":return t.stop()}}),t,this)})))}},{key:"readResources",value:function(){return as(this,void 0,void 0,(0,F.Z)().mark((function e(){return(0,F.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.resources);case 1:case"end":return e.stop()}}),e,this)})))}}]),n}(y.JT);ss=rs([os(0,si),os(1,Fe.VZ)],ss);var ls=n(94016),cs=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},us=function(e,t){return function(n,i){t(n,i,e)}},ds="data-keybinding-context",hs=function(){function e(t,n){(0,r.Z)(this,e),this._id=t,this._parent=n,this._value=Object.create(null),this._value._contextId=t}return(0,o.Z)(e,[{key:"value",get:function(){return Object.assign({},this._value)}},{key:"setValue",value:function(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}},{key:"removeValue",value:function(e){return e in this._value&&(delete this._value[e],!0)}},{key:"getValue",value:function(e){var t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t}}]),e}(),fs=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,-1,null)}return(0,o.Z)(n,[{key:"setValue",value:function(e,t){return!1}},{key:"removeValue",value:function(e){return!1}},{key:"getValue",value:function(e){}}]),n}(hs);fs.INSTANCE=new fs;var ps=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o){var a;return(0,r.Z)(this,n),(a=t.call(this,e,null))._configurationService=i,a._values=Zi.Id.forConfigKeys(),a._listener=a._configurationService.onDidChangeConfiguration((function(e){if(7===e.source){var t=Array.from(ls.$.map(a._values,(function(e){return(0,be.Z)(e,1)[0]})));a._values.clear(),o.fire(new ms(t))}else{var n,i=[],r=(0,Z.Z)(e.affectedKeys);try{for(r.s();!(n=r.n()).done;){var s=n.value,l="config.".concat(s),c=a._values.findSuperstr(l);void 0!==c&&(i.push.apply(i,(0,m.Z)(ls.$.map(c,(function(e){return(0,be.Z)(e,1)[0]})))),a._values.deleteSuperstr(l)),a._values.has(l)&&(i.push(l),a._values.delete(l))}}catch(u){r.e(u)}finally{r.f()}o.fire(new ms(i))}})),a}return(0,o.Z)(n,[{key:"dispose",value:function(){this._listener.dispose()}},{key:"getValue",value:function(e){if(0!==e.indexOf(n._keyPrefix))return(0,S.Z)((0,w.Z)(n.prototype),"getValue",this).call(this,e);if(this._values.has(e))return this._values.get(e);var t=e.substr(n._keyPrefix.length),i=this._configurationService.getValue(t),r=void 0;switch(typeof i){case"number":case"boolean":case"string":r=i;break;default:r=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,r),r}},{key:"setValue",value:function(e,t){return(0,S.Z)((0,w.Z)(n.prototype),"setValue",this).call(this,e,t)}},{key:"removeValue",value:function(e){return(0,S.Z)((0,w.Z)(n.prototype),"removeValue",this).call(this,e)}}]),n}(hs);ps._keyPrefix="config.";var gs=function(){function e(t,n,i){(0,r.Z)(this,e),this._service=t,this._key=n,this._defaultValue=i,this.reset()}return(0,o.Z)(e,[{key:"set",value:function(e){this._service.setContext(this._key,e)}},{key:"reset",value:function(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}},{key:"get",value:function(){return this._service.getContextKeyValue(this._key)}}]),e}(),vs=function(){function e(t){(0,r.Z)(this,e),this.key=t}return(0,o.Z)(e,[{key:"affectsSome",value:function(e){return e.has(this.key)}},{key:"allKeysContainedIn",value:function(e){return this.affectsSome(e)}}]),e}(),ms=function(){function e(t){(0,r.Z)(this,e),this.keys=t}return(0,o.Z)(e,[{key:"affectsSome",value:function(e){var t,n=(0,Z.Z)(this.keys);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(e.has(i))return!0}}catch(r){n.e(r)}finally{n.f()}return!1}},{key:"allKeysContainedIn",value:function(e){return this.keys.every((function(t){return e.has(t)}))}}]),e}(),ys=function(){function e(t){(0,r.Z)(this,e),this.events=t}return(0,o.Z)(e,[{key:"affectsSome",value:function(e){var t,n=(0,Z.Z)(this.events);try{for(n.s();!(t=n.n()).done;){if(t.value.affectsSome(e))return!0}}catch(i){n.e(i)}finally{n.f()}return!1}},{key:"allKeysContainedIn",value:function(e){return this.events.every((function(t){return t.allKeysContainedIn(e)}))}}]),e}();var _s=function(){function e(t){(0,r.Z)(this,e),this._onDidChangeContext=new s.K3({merge:function(e){return new ys(e)}}),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=t}return(0,o.Z)(e,[{key:"createKey",value:function(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new gs(this,e,t)}},{key:"bufferChangeEvents",value:function(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}},{key:"createScoped",value:function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Cs(this,e)}},{key:"contextMatchesRules",value:function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}},{key:"getContextKeyValue",value:function(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}},{key:"setContext",value:function(e,t){if(!this._isDisposed){var n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new vs(e))}}},{key:"removeContext",value:function(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new vs(e))}},{key:"getContext",value:function(e){return this._isDisposed?fs.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(ds)){var t=e.getAttribute(ds);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}}]),e}(),bs=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e){var i;(0,r.Z)(this,n),(i=t.call(this,0))._contexts=new Map,i._toDispose=new y.SL,i._lastContextId=0;var o=new ps(i._myContextId,e,i._onDidChangeContext);return i._contexts.set(i._myContextId,o),i._toDispose.add(o),i}return(0,o.Z)(n,[{key:"dispose",value:function(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}},{key:"getContextValuesContainer",value:function(e){return this._isDisposed?fs.INSTANCE:this._contexts.get(e)||fs.INSTANCE}},{key:"createChildContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._myContextId;if(this._isDisposed)throw new Error("ContextKeyService has been disposed");var t=++this._lastContextId;return this._contexts.set(t,new hs(t,this.getContextValuesContainer(e))),t}},{key:"disposeContext",value:function(e){this._isDisposed||this._contexts.delete(e)}}]),n}(_s);bs=cs([us(0,dt.Ui)],bs);var Cs=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;if((0,r.Z)(this,n),(o=t.call(this,e.createChildContext()))._parentChangeListener=new y.XK,o._parent=e,o._updateParentChangeListener(),o._domNode=i,o._domNode.hasAttribute(ds)){var a="";o._domNode.classList&&(a=Array.from(o._domNode.classList.values()).join(", ")),console.error("Element already has context attribute".concat(a?": "+a:""))}return o._domNode.setAttribute(ds,String(o._myContextId)),o}return(0,o.Z)(n,[{key:"_updateParentChangeListener",value:function(){var e=this;this._parentChangeListener.value=this._parent.onDidChangeContext((function(t){var n,i=e._parent.getContextValuesContainer(e._myContextId).value;n=i,t.allKeysContainedIn(new Set(Object.keys(n)))||e._onDidChangeContext.fire(t)}))}},{key:"dispose",value:function(){this._isDisposed||(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(ds),this._isDisposed=!0)}},{key:"getContextValuesContainer",value:function(e){return this._isDisposed?fs.INSTANCE:this._parent.getContextValuesContainer(e)}},{key:"createChildContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._myContextId;if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}},{key:"disposeContext",value:function(e){this._isDisposed||this._parent.disposeContext(e)}}]),n}(_s);Pi.P0.registerCommand(Wt.Eq,(function(e,t,n){e.get(Wt.i6).createKey(String(t),function(e){return(0,T.rs)(e,(function(e){return"object"===typeof e&&1===e.$mid?c.o.revive(e).toString():e instanceof c.o?e.toString():void 0}))}(n))})),Pi.P0.registerCommand({id:"getContextKeyInfo",handler:function(){return(0,m.Z)(Wt.uy.all()).sort((function(e,t){return e.key.localeCompare(t.key)}))},description:{description:(0,Rt.NC)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),Pi.P0.registerCommand("_generateContextKeyInfo",(function(){var e,t=[],n=new Set,i=(0,Z.Z)(Wt.uy.all());try{for(i.s();!(e=i.n()).done;){var r=e.value;n.has(r.key)||(n.add(r.key),t.push(r))}}catch(o){i.e(o)}finally{i.f()}t.sort((function(e,t){return e.key.localeCompare(t.key)})),console.log(JSON.stringify(t,void 0,2))}));var Ss=n(36730),ws=n(5647),ks=n(28664),xs=(0,o.Z)((function e(t){(0,r.Z)(this,e),this.incoming=new Map,this.outgoing=new Map,this.data=t})),Es=function(){function e(t){(0,r.Z)(this,e),this._hashFn=t,this._nodes=new Map}return(0,o.Z)(e,[{key:"roots",value:function(){var e,t=[],n=(0,Z.Z)(this._nodes.values());try{for(n.s();!(e=n.n()).done;){var i=e.value;0===i.outgoing.size&&t.push(i)}}catch(r){n.e(r)}finally{n.f()}return t}},{key:"insertEdge",value:function(e,t){var n=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);n.outgoing.set(this._hashFn(t),i),i.incoming.set(this._hashFn(e),n)}},{key:"removeNode",value:function(e){var t=this._hashFn(e);this._nodes.delete(t);var n,i=(0,Z.Z)(this._nodes.values());try{for(i.s();!(n=i.n()).done;){var r=n.value;r.outgoing.delete(t),r.incoming.delete(t)}}catch(o){i.e(o)}finally{i.f()}}},{key:"lookupOrInsertNode",value:function(e){var t=this._hashFn(e),n=this._nodes.get(t);return n||(n=new xs(e),this._nodes.set(t,n)),n}},{key:"isEmpty",value:function(){return 0===this._nodes.size}},{key:"toString",value:function(){var e,t=[],n=(0,Z.Z)(this._nodes);try{for(n.s();!(e=n.n()).done;){var i=(0,be.Z)(e.value,2),r=i[0],o=i[1];t.push("".concat(r,", (incoming)[").concat((0,m.Z)(o.incoming.keys()).join(", "),"], (outgoing)[").concat((0,m.Z)(o.outgoing.keys()).join(","),"]"))}}catch(a){n.e(a)}finally{n.f()}return t.join("\n")}},{key:"findCycleSlow",value:function(){var e,t=(0,Z.Z)(this._nodes);try{for(t.s();!(e=t.n()).done;){var n=(0,be.Z)(e.value,2),i=n[0],r=n[1],o=new Set([i]),a=this._findCycle(r,o);if(a)return a}}catch(s){t.e(s)}finally{t.f()}}},{key:"_findCycle",value:function(e,t){var n,i=(0,Z.Z)(e.outgoing);try{for(i.s();!(n=i.n()).done;){var r=(0,be.Z)(n.value,2),o=r[0],a=r[1];if(t.has(o))return[].concat((0,m.Z)(t),[o]).join(" -> ");t.add(o);var s=this._findCycle(a,t);if(s)return s;t.delete(o)}}catch(l){i.e(l)}finally{i.f()}}}]),e}(),Ts=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e){var i,o;return(0,r.Z)(this,n),(i=t.call(this,"cyclic dependency between services")).message=null!==(o=e.findCycleSlow())&&void 0!==o?o:"UNABLE to detect cycle, dumping graph: \n".concat(e.toString()),i}return(0,o.Z)(n)}((0,ks.Z)(Error)),Ns=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new gn.y,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0;(0,r.Z)(this,e),this._activeInstantiations=new Set,this._services=t,this._strict=n,this._parent=i,this._services.set(pn.TG,this)}return(0,o.Z)(e,[{key:"createChild",value:function(t){return new e(t,this._strict,this)}},{key:"invokeFunction",value:function(e){var t=this,n=Is.traceInvocation(e),i=!1;try{for(var r={get:function(e){if(i)throw(0,H.L6)("service accessor is only valid during the invocation of its target method");var r=t._getOrCreateServiceInstance(e,n);if(!r)throw new Error("[invokeFunction] unknown service '".concat(e,"'"));return r}},o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return e.apply(void 0,[r].concat(a))}finally{i=!0,n.stop()}}},{key:"createInstance",value:function(e){for(var t,n,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return e instanceof Ss.M?(t=Is.traceCreation(e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(r),t)):(t=Is.traceCreation(e),n=this._createInstance(e,r,t)),t.stop(),n}},{key:"_createInstance",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,r=pn.I8.getServiceDependencies(e).sort((function(e,t){return e.index-t.index})),o=[],a=(0,Z.Z)(r);try{for(a.s();!(t=a.n()).done;){var s=t.value,l=this._getOrCreateServiceInstance(s.id,i);l||this._throwIfStrict("[createInstance] ".concat(e.name," depends on UNKNOWN service ").concat(s.id,"."),!1),o.push(l)}}catch(d){a.e(d)}finally{a.f()}var c=r.length>0?r[0].index:n.length;if(n.length!==c){console.trace("[createInstance] First service dependency of ".concat(e.name," at position ").concat(c+1," conflicts with ").concat(n.length," static arguments"));var u=c-n.length;n=u>0?n.concat(new Array(u)):n.slice(0,c)}return(0,ws.Z)(e,[].concat((0,m.Z)(n),o))}},{key:"_setServiceInstance",value:function(e,t){if(this._services.get(e)instanceof Ss.M)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}}},{key:"_getServiceInstanceOrDescriptor",value:function(e){var t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}},{key:"_getOrCreateServiceInstance",value:function(e,t){var n=this._getServiceInstanceOrDescriptor(e);return n instanceof Ss.M?this._safeCreateAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)}},{key:"_safeCreateAndCacheServiceInstance",value:function(e,t,n){if(this._activeInstantiations.has(e))throw new Error("illegal state - RECURSIVELY instantiating service '".concat(e,"'"));this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,n)}finally{this._activeInstantiations.delete(e)}}},{key:"_createAndCacheServiceInstance",value:function(e,t,n){for(var i=new Es((function(e){return e.id.toString()})),r=0,o=[{id:e,desc:t,_trace:n}];o.length;){var a=o.pop();if(i.lookupOrInsertNode(a),r++>1e3)throw new Ts(i);var s,l=(0,Z.Z)(pn.I8.getServiceDependencies(a.desc.ctor));try{for(l.s();!(s=l.n()).done;){var c=s.value,u=this._getServiceInstanceOrDescriptor(c.id);if(u||this._throwIfStrict("[createInstance] ".concat(e," depends on ").concat(c.id," which is NOT registered."),!0),u instanceof Ss.M){var d={id:c.id,desc:u,_trace:a._trace.branch(c.id,!0)};i.insertEdge(a,d),o.push(d)}}}catch(m){l.e(m)}finally{l.f()}}for(;;){var h=i.roots();if(0===h.length){if(!i.isEmpty())throw new Ts(i);break}var f,p=(0,Z.Z)(h);try{for(p.s();!(f=p.n()).done;){var g=f.value.data;if(this._getServiceInstanceOrDescriptor(g.id)instanceof Ss.M){var v=this._createServiceInstanceWithOwner(g.id,g.desc.ctor,g.desc.staticArguments,g.desc.supportsDelayedInstantiation,g._trace);this._setServiceInstance(g.id,v)}i.removeNode(g)}}catch(m){p.e(m)}finally{p.f()}}return this._getServiceInstanceOrDescriptor(e)}},{key:"_createServiceInstanceWithOwner",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;if(this._services.get(e)instanceof Ss.M)return this._createServiceInstance(t,n,i,r);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,i,r);throw new Error("illegalState - creating UNKNOWN service instance ".concat(t.name))}},{key:"_createServiceInstance",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(i){var o=new B.Ue((function(){return t._createInstance(e,n,r)}));return new Proxy(Object.create(null),{get:function(e,t){if(t in e)return e[t];var n=o.value,i=n[t];return"function"!==typeof i||(i=i.bind(n),e[t]=i),i},set:function(e,t,n){return o.value[t]=n,!0}})}return this._createInstance(e,n,r)}},{key:"_throwIfStrict",value:function(e,t){if(t&&console.warn(e),this._strict)throw new Error(e)}}]),e}(),Is=function(){function e(t,n){(0,r.Z)(this,e),this.type=t,this.name=n,this._start=Date.now(),this._dep=[]}return(0,o.Z)(e,[{key:"branch",value:function(t,n){var i=new e(2,t.toString());return this._dep.push([t,n,i]),i}},{key:"stop",value:function(){var t=Date.now()-this._start;e._totals+=t;var n=!1;var i=["".concat(0===this.type?"CREATE":"CALL"," ").concat(this.name),"".concat(function e(t,i){var r,o=[],a=new Array(t+1).join("\t"),s=(0,Z.Z)(i._dep);try{for(s.s();!(r=s.n()).done;){var l=(0,be.Z)(r.value,3),c=l[0],u=l[1],d=l[2];if(u&&d){n=!0,o.push("".concat(a,"CREATES -> ").concat(c));var h=e(t+1,d);h&&o.push(h)}else o.push("".concat(a,"uses -> ").concat(c))}}catch(f){s.e(f)}finally{s.f()}return o.join("\n")}(1,this)),"DONE, took ".concat(t.toFixed(2),"ms (grand total ").concat(e._totals.toFixed(2),"ms)")];(t>2||n)&&console.log(i.join("\n"))}}],[{key:"traceInvocation",value:function(t){return e._None}},{key:"traceCreation",value:function(t){return e._None}}]),e}();Is._None=new(function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,-1,null)}return(0,o.Z)(n,[{key:"stop",value:function(){}},{key:"branch",value:function(){return this}}]),n}(Is)),Is._totals=0;var Ds=function(){function e(){(0,r.Z)(this,e),this._byResource=new Zi.Y9,this._byOwner=new Map}return(0,o.Z)(e,[{key:"set",value:function(e,t,n){var i=this._byResource.get(e);i||(i=new Map,this._byResource.set(e,i)),i.set(t,n);var r=this._byOwner.get(t);r||(r=new Zi.Y9,this._byOwner.set(t,r)),r.set(e,n)}},{key:"get",value:function(e,t){var n=this._byResource.get(e);return null===n||void 0===n?void 0:n.get(t)}},{key:"delete",value:function(e,t){var n=!1,i=!1,r=this._byResource.get(e);r&&(n=r.delete(t));var o=this._byOwner.get(t);if(o&&(i=o.delete(e)),n!==i)throw new Error("illegal state");return n&&i}},{key:"values",value:function(e){var t,n,i,r;return"string"===typeof e?null!==(n=null===(t=this._byOwner.get(e))||void 0===t?void 0:t.values())&&void 0!==n?n:ls.$.empty():c.o.isUri(e)?null!==(r=null===(i=this._byResource.get(e))||void 0===i?void 0:i.values())&&void 0!==r?r:ls.$.empty():ls.$.map(ls.$.concat.apply(ls.$,(0,m.Z)(this._byOwner.values())),(function(e){return e[1]}))}}]),e}(),Ls=function(){function e(t){(0,r.Z)(this,e),this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new Zi.Y9,this._service=t,this._subscription=t.onMarkerChanged(this._update,this)}return(0,o.Z)(e,[{key:"dispose",value:function(){this._subscription.dispose()}},{key:"_update",value:function(e){var t,n=(0,Z.Z)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,r=this._data.get(i);r&&this._substract(r);var o=this._resourceStats(i);this._add(o),this._data.set(i,o)}}catch(a){n.e(a)}finally{n.f()}}},{key:"_resourceStats",value:function(e){var t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===$n.lg.inMemory||e.scheme===$n.lg.walkThrough||e.scheme===$n.lg.walkThroughSnippet||e.scheme===$n.lg.vscodeSourceControl)return t;var n,i=(0,Z.Z)(this._service.read({resource:e}));try{for(i.s();!(n=i.n()).done;){var r=n.value.severity;r===Ro.ZL.Error?t.errors+=1:r===Ro.ZL.Warning?t.warnings+=1:r===Ro.ZL.Info?t.infos+=1:t.unknowns+=1}}catch(o){i.e(o)}finally{i.f()}return t}},{key:"_substract",value:function(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}},{key:"_add",value:function(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}]),e}(),Os=function(){function e(){(0,r.Z)(this,e),this._onMarkerChanged=new s.D0({delay:0,merge:e._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new Ds,this._stats=new Ls(this)}return(0,o.Z)(e,[{key:"dispose",value:function(){this._stats.dispose(),this._onMarkerChanged.dispose()}},{key:"remove",value:function(e,t){var n,i=(0,Z.Z)(t||[]);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.changeOne(e,r,[])}}catch(o){i.e(o)}finally{i.f()}}},{key:"changeOne",value:function(t,n,i){if((0,Ze.XY)(i)){this._data.delete(n,t)&&this._onMarkerChanged.fire([n])}else{var r,o=[],a=(0,Z.Z)(i);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=e._toMarker(t,n,s);l&&o.push(l)}}catch(c){a.e(c)}finally{a.f()}this._data.set(n,t,o),this._onMarkerChanged.fire([n])}}},{key:"changeAll",value:function(t,n){var i=[],r=this._data.values(t);if(r){var o,a=(0,Z.Z)(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=ls.$.first(s);l&&(i.push(l.resource),this._data.delete(l.resource,t))}}catch(S){a.e(S)}finally{a.f()}}if((0,Ze.Of)(n)){var c,u=new Zi.Y9,d=(0,Z.Z)(n);try{for(d.s();!(c=d.n()).done;){var h=c.value,f=h.resource,p=h.marker,g=e._toMarker(t,f,p);if(g){var v=u.get(f);v?v.push(g):(u.set(f,[g]),i.push(f))}}}catch(S){d.e(S)}finally{d.f()}var m,y=(0,Z.Z)(u);try{for(y.s();!(m=y.n()).done;){var _=(0,be.Z)(m.value,2),b=_[0],C=_[1];this._data.set(b,t,C)}}catch(S){y.e(S)}finally{y.f()}}i.length>0&&this._onMarkerChanged.fire(i)}},{key:"read",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.create(null),n=t.owner,i=t.resource,r=t.severities,o=t.take;if((!o||o<0)&&(o=-1),n&&i){var a=this._data.get(i,n);if(a){var s,l=[],c=(0,Z.Z)(a);try{for(c.s();!(s=c.n()).done;){var u=s.value;if(e._accept(u,r)){var d=l.push(u);if(o>0&&d===o)break}}}catch(I){c.e(I)}finally{c.f()}return l}return[]}if(n||i){var h,f=this._data.values(null!==i&&void 0!==i?i:n),p=[],g=(0,Z.Z)(f);try{for(g.s();!(h=g.n()).done;){var v,m=h.value,y=(0,Z.Z)(m);try{for(y.s();!(v=y.n()).done;){var _=v.value;if(e._accept(_,r)){var b=p.push(_);if(o>0&&b===o)return p}}}catch(I){y.e(I)}finally{y.f()}}}catch(I){g.e(I)}finally{g.f()}return p}var C,S=[],w=(0,Z.Z)(this._data.values());try{for(w.s();!(C=w.n()).done;){var k,x=C.value,E=(0,Z.Z)(x);try{for(E.s();!(k=E.n()).done;){var T=k.value;if(e._accept(T,r)){var N=S.push(T);if(o>0&&N===o)return S}}}catch(I){E.e(I)}finally{E.f()}}}catch(I){w.e(I)}finally{w.f()}return S}}],[{key:"_toMarker",value:function(e,t,n){var i=n.code,r=n.severity,o=n.message,a=n.source,s=n.startLineNumber,l=n.startColumn,c=n.endLineNumber,u=n.endColumn,d=n.relatedInformation,h=n.tags;if(o)return{resource:t,owner:e,code:i,severity:r,message:o,source:a,startLineNumber:s=s>0?s:1,startColumn:l=l>0?l:1,endLineNumber:c=c>=s?c:s,endColumn:u=u>0?u:l,relatedInformation:d,tags:h}}},{key:"_accept",value:function(e,t){return void 0===t||(t&e.severity)===e.severity}},{key:"_merge",value:function(e){var t,n=new Zi.Y9,i=(0,Z.Z)(e);try{for(i.s();!(t=i.n()).done;){var r,o=t.value,a=(0,Z.Z)(o);try{for(a.s();!(r=a.n()).done;){var s=r.value;n.set(s,!0)}}catch(l){a.e(l)}finally{a.f()}}}catch(l){i.e(l)}finally{i.f()}return Array.from(n.keys())}}]),e}();function Rs(e,t,n,i,r,o){if(Array.isArray(e)){var a,s=0,l=(0,Z.Z)(e);try{for(l.s();!(a=l.n()).done;){var c=Rs(a.value,t,n,i,r,o);if(10===c)return c;c>s&&(s=c)}}catch(b){l.e(b)}finally{l.f()}return s}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){var u=e.language,d=e.pattern,h=e.scheme,f=e.hasAccessToAllModels,p=e.notebookType;if(!i&&!f)return 0;p&&r&&(t=r);var g=0;if(h)if(h===t.scheme)g=10;else{if("*"!==h)return 0;g=5}if(u)if(u===n)g=10;else{if("*"!==u)return 0;g=Math.max(g,5)}if(p)if(p===o)g=10;else{if("*"!==p||void 0===o)return 0;g=Math.max(g,5)}if(d){var v;if((v="string"===typeof d?d:Object.assign(Object.assign({},d),{base:(0,vr.Fv)(d.base)}))!==t.fsPath&&(m=v,y=t.fsPath,!m||"string"!==typeof y||!Fr(m)(y,void 0,_)))return 0;g=10}return g}return 0;var m,y,_}function As(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(As):!!e.exclusive)}var Ms=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.uri=t,this.languageId=n,this.notebookUri=i,this.notebookType=o}return(0,o.Z)(e,[{key:"equals",value:function(e){var t,n;return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&(null===(t=this.notebookUri)||void 0===t?void 0:t.toString())===(null===(n=e.notebookUri)||void 0===n?void 0:n.toString())}}]),e}(),Ps=function(){function e(t){(0,r.Z)(this,e),this._notebookInfoResolver=t,this._clock=0,this._entries=[],this._onDidChange=new s.Q5,this.onDidChange=this._onDidChange.event}return(0,o.Z)(e,[{key:"register",value:function(e,t){var n=this,i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,y.OF)((function(){if(i){var e=n._entries.indexOf(i);e>=0&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),i=void 0)}}))}},{key:"has",value:function(e){return this.all(e).length>0}},{key:"all",value:function(e){if(!e)return[];this._updateScores(e);var t,n=[],i=(0,Z.Z)(this._entries);try{for(i.s();!(t=i.n()).done;){var r=t.value;r._score>0&&n.push(r.provider)}}catch(o){i.e(o)}finally{i.f()}return n}},{key:"ordered",value:function(e){var t=[];return this._orderedForEach(e,(function(e){return t.push(e.provider)})),t}},{key:"orderedGroups",value:function(e){var t,n,i=[];return this._orderedForEach(e,(function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],i.push(t))})),i}},{key:"_orderedForEach",value:function(e,t){this._updateScores(e);var n,i=(0,Z.Z)(this._entries);try{for(i.s();!(n=i.n()).done;){var r=n.value;r._score>0&&t(r)}}catch(o){i.e(o)}finally{i.f()}}},{key:"_updateScores",value:function(t){var n,i,r=null===(n=this._notebookInfoResolver)||void 0===n?void 0:n.call(this,t.uri),o=r?new Ms(t.uri,t.getLanguageId(),r.uri,r.type):new Ms(t.uri,t.getLanguageId(),void 0,void 0);if(!(null===(i=this._lastCandidate)||void 0===i?void 0:i.equals(o))){this._lastCandidate=o;var a,s=(0,Z.Z)(this._entries);try{for(s.s();!(a=s.n()).done;){var l=a.value;if(l._score=Rs(l.selector,o.uri,o.languageId,(0,O.pt)(t),o.notebookUri,o.notebookType),As(l.selector)&&l._score>0){var c,u=(0,Z.Z)(this._entries);try{for(u.s();!(c=u.n()).done;){c.value._score=0}}catch(d){u.e(d)}finally{u.f()}l._score=1e3;break}}}catch(d){s.e(d)}finally{s.f()}this._entries.sort(e._compareByScoreAndTime)}}}],[{key:"_compareByScoreAndTime",value:function(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0}}]),e}(),Zs=function(){function e(){(0,r.Z)(this,e),this.referenceProvider=new Ps(this._score.bind(this)),this.renameProvider=new Ps(this._score.bind(this)),this.codeActionProvider=new Ps(this._score.bind(this)),this.definitionProvider=new Ps(this._score.bind(this)),this.typeDefinitionProvider=new Ps(this._score.bind(this)),this.declarationProvider=new Ps(this._score.bind(this)),this.implementationProvider=new Ps(this._score.bind(this)),this.documentSymbolProvider=new Ps(this._score.bind(this)),this.inlayHintsProvider=new Ps(this._score.bind(this)),this.colorProvider=new Ps(this._score.bind(this)),this.codeLensProvider=new Ps(this._score.bind(this)),this.documentFormattingEditProvider=new Ps(this._score.bind(this)),this.documentRangeFormattingEditProvider=new Ps(this._score.bind(this)),this.onTypeFormattingEditProvider=new Ps(this._score.bind(this)),this.signatureHelpProvider=new Ps(this._score.bind(this)),this.hoverProvider=new Ps(this._score.bind(this)),this.documentHighlightProvider=new Ps(this._score.bind(this)),this.selectionRangeProvider=new Ps(this._score.bind(this)),this.foldingRangeProvider=new Ps(this._score.bind(this)),this.linkProvider=new Ps(this._score.bind(this)),this.inlineCompletionsProvider=new Ps(this._score.bind(this)),this.completionProvider=new Ps(this._score.bind(this)),this.linkedEditingRangeProvider=new Ps(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new Ps(this._score.bind(this)),this.documentSemanticTokensProvider=new Ps(this._score.bind(this)),this.documentOnDropEditProvider=new Ps(this._score.bind(this)),this.documentPasteEditProvider=new Ps(this._score.bind(this))}return(0,o.Z)(e,[{key:"_score",value:function(e){var t;return null===(t=this._notebookTypeResolver)||void 0===t?void 0:t.call(this,e)}}]),e}();(0,ni.z)(Be.p,Zs,!0);var Fs=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,r.Z)(this,n);var i=Qr.B.as(Xr.IP.Configuration).getConfigurationProperties(),o=Object.keys(i),a=Object.create(null),s=[];for(var l in i){var c=e[l],u=void 0!==c?c:i[l].default;(0,dt.KV)(a,l,u,(function(e){return console.error("Conflict in default settings: ".concat(e))}))}for(var d=0,h=Object.keys(a);d<h.length;d++){var f=h[d];Xr.eU.test(f)&&s.push({identifiers:(0,Xr.ny)(f),keys:Object.keys(a[f]),contents:(0,dt.Od)(a[f],(function(e){return console.error("Conflict in default settings file: ".concat(e))}))})}return t.call(this,a,o,s)}return(0,o.Z)(n)}(Fi),Bs=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Hs=function(e,t){return function(n,i){t(n,i,e)}},zs=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},js=function(){function e(t){(0,r.Z)(this,e),this.disposed=!1,this.model=t,this._onWillDispose=new s.Q5}return(0,o.Z)(e,[{key:"textEditorModel",get:function(){return this.model}},{key:"dispose",value:function(){this.disposed=!0,this._onWillDispose.fire()}}]),e}(),Vs=function(){function e(t){(0,r.Z)(this,e),this.modelService=t}return(0,o.Z)(e,[{key:"createModelReference",value:function(e){var t=this.modelService.getModel(e);return t?Promise.resolve(new y.Jz(new js(t))):Promise.reject(new Error("Model not found"))}}]),e}();Vs=Bs([Hs(0,P.q)],Vs);var Ws=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"show",value:function(){return e.NULL_PROGRESS_RUNNER}},{key:"showWhile",value:function(e,t){return zs(this,void 0,void 0,(0,F.Z)().mark((function t(){return(0,F.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:case"end":return t.stop()}}),t)})))}}]),e}();Ws.NULL_PROGRESS_RUNNER={done:function(){},total:function(){},worked:function(){}};var Us=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"withProgress",value:function(e,t,n){return t({report:function(){}})}}]),e}(),Gs=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"confirm",value:function(e){return this.doConfirm(e).then((function(e){return{confirmed:e,checkboxChecked:!1}}))}},{key:"doConfirm",value:function(e){var t=e.message;return e.detail&&(t=t+"\n\n"+e.detail),Promise.resolve(window.confirm(t))}},{key:"show",value:function(e,t,n,i){return Promise.resolve({choice:0})}}]),e}(),Ks=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"info",value:function(e){return this.notify({severity:hi.Z.Info,message:e})}},{key:"warn",value:function(e){return this.notify({severity:hi.Z.Warning,message:e})}},{key:"error",value:function(e){return this.notify({severity:hi.Z.Error,message:e})}},{key:"notify",value:function(t){switch(t.severity){case hi.Z.Error:console.error(t.message);break;case hi.Z.Warning:console.warn(t.message);break;default:console.log(t.message)}return e.NO_OP}},{key:"status",value:function(e,t){return y.JT.None}}]),e}();Ks.NO_OP=new vn.EO;var Ys=function(){function e(t){(0,r.Z)(this,e),this._onWillExecuteCommand=new s.Q5,this._onDidExecuteCommand=new s.Q5,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=t}return(0,o.Z)(e,[{key:"executeCommand",value:function(e){var t=Pi.P0.getCommand(e);if(!t)return Promise.reject(new Error("command '".concat(e,"' not found")));try{for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this._onWillExecuteCommand.fire({commandId:e,args:i});var o=this._instantiationService.invokeFunction.apply(this._instantiationService,[t.handler].concat(i));return this._onDidExecuteCommand.fire({commandId:e,args:i}),Promise.resolve(o)}catch(a){return Promise.reject(a)}}}]),e}();Ys=Bs([Hs(0,pn.TG)],Ys);var qs=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,s,l){var c;(0,r.Z)(this,n),(c=t.call(this,e,i,o,a,s))._cachedResolver=null,c._dynamicKeybindings=[],c._domNodeListeners=[];var u=function(e){var t=new y.SL;t.add(At.addDisposableListener(e,At.EventType.KEY_DOWN,(function(e){var t=new Di.y(e);c._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(At.addDisposableListener(e,At.EventType.KEY_UP,(function(e){var t=new Di.y(e);c._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),c._domNodeListeners.push(new $s(e,t))},d=function(e){for(var t=0;t<c._domNodeListeners.length;t++){var n=c._domNodeListeners[t];n.domNode===e&&(c._domNodeListeners.splice(t,1),n.dispose())}},h=function(e){e.getOption(56)||u(e.getContainerDomNode())};c._register(l.onCodeEditorAdd(h)),c._register(l.onCodeEditorRemove((function(e){e.getOption(56)||d(e.getContainerDomNode())}))),l.listCodeEditors().forEach(h);var f=function(e){u(e.getContainerDomNode())};return c._register(l.onDiffEditorAdd(f)),c._register(l.onDiffEditorRemove((function(e){d(e.getContainerDomNode())}))),l.listDiffEditors().forEach(f),c}return(0,o.Z)(n,[{key:"addDynamicKeybinding",value:function(e,t,n,i){return(0,y.F8)(Pi.P0.registerCommand(e,n),this.addDynamicKeybindings([{keybinding:t,command:e,when:i}]))}},{key:"addDynamicKeybindings",value:function(e){var t=this,n=e.map((function(e){var t,n,i=(0,Li.gm)(e.keybinding,z.OS);return{keybinding:null!==(t=null===i||void 0===i?void 0:i.parts)&&void 0!==t?t:null,command:null!==(n=e.command)&&void 0!==n?n:null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}}));return this._dynamicKeybindings=this._dynamicKeybindings.concat(n),this.updateResolver(),(0,y.OF)((function(){for(var e=0;e<t._dynamicKeybindings.length;e++)if(t._dynamicKeybindings[e]===n[0])return t._dynamicKeybindings.splice(e,n.length),void t.updateResolver()}))}},{key:"updateResolver",value:function(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}},{key:"_getResolver",value:function(){var e=this;if(!this._cachedResolver){var t=this._toNormalizedKeybindingItems(Yi.W.getDefaultKeybindings(),!0),n=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Ui(t,n,(function(t){return e._log(t)}))}return this._cachedResolver}},{key:"_documentHasFocus",value:function(){return document.hasFocus()}},{key:"_toNormalizedKeybindingItems",value:function(e,t){var n,i=[],r=0,o=(0,Z.Z)(e);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=a.when||void 0,l=a.keybinding;if(l){var c,u=er.resolveUserBinding(l,z.OS),d=(0,Z.Z)(u);try{for(d.s();!(c=d.n()).done;){var h=c.value;i[r++]=new qi(h,a.command,a.commandArgs,s,t,null,!1)}}catch(f){d.e(f)}finally{d.f()}}else i[r++]=new qi(void 0,a.command,a.commandArgs,s,t,null,!1)}}catch(f){o.e(f)}finally{o.f()}return i}},{key:"resolveKeyboardEvent",value:function(e){var t=new Li.QC(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new er(t,z.OS)}}]),n}(ji);qs=Bs([Hs(0,Wt.i6),Hs(1,Pi.Hy),Hs(2,nr.b),Hs(3,vn.lT),Hs(4,Fe.VZ),Hs(5,C.$)],qs);var $s=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).domNode=e,o._register(i),o}return(0,o.Z)(n)}(y.JT);function Xs(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof c.o)}var Qs=function(){function e(){(0,r.Z)(this,e),this._onDidChangeConfiguration=new s.Q5,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Bi(new Fs,new Fi,new Fi,new Fi)}return(0,o.Z)(e,[{key:"getValue",value:function(e,t){var n="string"===typeof e?e:void 0,i=Xs(e)?e:Xs(t)?t:{};return this._configuration.getValue(n,i,void 0)}},{key:"updateValues",value:function(e){var t,n={data:this._configuration.toData()},i=[],r=(0,Z.Z)(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,a=(0,be.Z)(o,2),s=a[0],l=a[1];this.getValue(s)!==l&&(this._configuration.updateValue(s,l),i.push(s))}}catch(u){r.e(u)}finally{r.f()}if(i.length>0){var c=new Hi({keys:i,overrides:[]},n,this._configuration);c.source=8,c.sourceConfig=null,this._onDidChangeConfiguration.fire(c)}return Promise.resolve()}},{key:"updateValue",value:function(e,t,n,i){return this.updateValues([[e,t]])}},{key:"inspect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._configuration.inspect(e,t,void 0)}}]),e}(),Js=function(){function e(t){var n=this;(0,r.Z)(this,e),this.configurationService=t,this._onDidChangeConfiguration=new s.Q5,this.configurationService.onDidChangeConfiguration((function(e){n._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:function(t,n){return e.affectsConfiguration(n)}})}))}return(0,o.Z)(e,[{key:"getValue",value:function(e,t,n){var i=(u.L.isIPosition(t)?t:null)?"string"===typeof n?n:void 0:"string"===typeof t?t:void 0;return"undefined"===typeof i?this.configurationService.getValue():this.configurationService.getValue(i)}}]),e}();Js=Bs([Hs(0,dt.Ui)],Js);var el=function(){function e(t){(0,r.Z)(this,e),this.configurationService=t}return(0,o.Z)(e,[{key:"getEOL",value:function(e,t){var n=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return n&&"string"===typeof n&&"auto"!==n?n:z.IJ||z.dz?"\n":"\r\n"}}]),e}();el=Bs([Hs(0,dt.Ui)],el);var tl=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"publicLog",value:function(e,t){return Promise.resolve(void 0)}},{key:"publicLog2",value:function(e,t){return this.publicLog(e,t)}}]),e}(),nl=function(){function e(){(0,r.Z)(this,e);var t=c.o.from({scheme:e.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new ir.md({uri:t,name:"",index:0})]}}return(0,o.Z)(e,[{key:"getWorkspace",value:function(){return this.workspace}},{key:"getWorkspaceFolder",value:function(t){return t&&t.scheme===e.SCHEME?this.workspace.folders[0]:null}}]),e}();function il(e,t,n){if(t&&e instanceof Qs){var i=[];Object.keys(t).forEach((function(e){(0,Ri.ei)(e)&&i.push(["editor.".concat(e),t[e]]),n&&(0,Ri.Pe)(e)&&i.push(["diffEditor.".concat(e),t[e]])})),i.length>0&&e.updateValues(i)}}nl.SCHEME="inmemory";var rl=function(){function e(t){(0,r.Z)(this,e),this._modelService=t}return(0,o.Z)(e,[{key:"hasPreviewHandler",value:function(){return!1}},{key:"apply",value:function(e,t){return zs(this,void 0,void 0,(0,F.Z)().mark((function t(){var n,i,r,o,a,s,l,c,u,h,f,p,g;return(0,F.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=new Map,i=(0,Z.Z)(e),t.prev=2,i.s();case 4:if((r=i.n()).done){t.next=18;break}if((o=r.value)instanceof Oi.Gl){t.next=8;break}throw new Error("bad edit - only text edits are supported");case 8:if(a=this._modelService.getModel(o.resource)){t.next=11;break}throw new Error("bad edit - model not found");case 11:if("number"!==typeof o.versionId||a.getVersionId()===o.versionId){t.next=13;break}throw new Error("bad state - model changed in the meantime");case 13:(s=n.get(a))||(s=[],n.set(a,s)),s.push(Ai.h.replaceMove(d.e.lift(o.textEdit.range),o.textEdit.text));case 16:t.next=4;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(2),i.e(t.t0);case 23:return t.prev=23,i.f(),t.finish(23);case 26:l=0,c=0,u=(0,Z.Z)(n);try{for(u.s();!(h=u.n()).done;)f=(0,be.Z)(h.value,2),p=f[0],g=f[1],p.pushStackElement(),p.pushEditOperations([],g,(function(){return[]})),p.pushStackElement(),c+=1,l+=g.length}catch(v){u.e(v)}finally{u.f()}return t.abrupt("return",{ariaSummary:_.WU(rr.iN.bulkEditServiceSummary,l,c)});case 31:case"end":return t.stop()}}),t,this,[[2,20,23,26]])})))}}]),e}();rl=Bs([Hs(0,P.q)],rl);var ol=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"getUriLabel",value:function(e,t){return"file"===e.scheme?e.fsPath:e.path}},{key:"getUriBasenameLabel",value:function(e){return(0,or.EZ)(e)}}]),e}(),al=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,e))._codeEditorService=i,o}return(0,o.Z)(n,[{key:"showContextView",value:function(e,t,i){if(!t){var r=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();r&&(t=r.getContainerDomNode())}return(0,S.Z)((0,w.Z)(n.prototype),"showContextView",this).call(this,e,t,i)}}]),n}(pr);al=Bs([Hs(0,si),Hs(1,C.$)],al);var sl,ll=function(){function e(){(0,r.Z)(this,e),this._neverEmitter=new s.Q5,this.onDidChangeTrust=this._neverEmitter.event}return(0,o.Z)(e,[{key:"isWorkspaceTrusted",value:function(){return!0}}]),e}(),cl=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this)}return(0,o.Z)(n)}(io),ul=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,new Fe.kw)}return(0,o.Z)(n)}(Fe.$V),dl=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,s){var l;return(0,r.Z)(this,n),(l=t.call(this,e,i,o,a,s)).configure({blockMouse:!1}),l}return(0,o.Z)(n)}(wo);dl=Bs([Hs(0,nr.b),Hs(1,vn.lT),Hs(2,mn.u),Hs(3,Wi.d),Hs(4,Gt.XE)],dl),(0,ni.z)(dt.Ui,Qs),(0,ni.z)(Pe.V,Js),(0,ni.z)(Pe.y,el),(0,ni.z)(ir.ec,nl),(0,ni.z)(tr.e,ol),(0,ni.z)(nr.b,tl),(0,ni.z)(fi.S,Gs),(0,ni.z)(vn.lT,Ks),(0,ni.z)(Ro.lT,Os),(0,ni.z)(M.O,cl),(0,ni.z)(Ga.Z,Ua.nI),(0,ni.z)(Fe.VZ,ul),(0,ni.z)(P.q,Bo.b$),(0,ni.z)(Fo.i,Zo),(0,ni.z)(Wt.i6,bs),(0,ni.z)(Cn.R9,Us),(0,ni.z)(Cn.ek,Ws),(0,ni.z)(Xa.Uy,Xa.vm),(0,ni.z)(dn.p,Ue),(0,ni.z)(Oi.vu,rl),(0,ni.z)(ar.Y,ll),(0,ni.z)(Mi.S,Vs),(0,ni.z)(Ho.F,qa),(0,ni.z)(Ia.Lw,Ia.XN),(0,ni.z)(Pi.Hy,Ys),(0,ni.z)(Wi.d,qs),(0,ni.z)(Oa.eJ,ja),(0,ni.z)(mn.u,al),(0,ni.z)(Eo.v4,Oo),(0,ni.z)(bn.p,ss),(0,ni.z)(mn.i,dl),(0,ni.z)($a.co,es),function(e){var t,n=new gn.y,i=(0,Z.Z)((0,ni.d)());try{for(i.s();!(t=i.n()).done;){var r=(0,be.Z)(t.value,2),o=r[0],a=r[1];n.set(o,a)}}catch(c){i.e(c)}finally{i.f()}var s=new Ns(n,!0);n.set(pn.TG,s),e.get=function(e){var t=n.get(e);if(!t)throw new Error("Missing service "+e);return t instanceof Ss.M?s.invokeFunction((function(t){return t.get(e)})):t};var l=!1;e.initialize=function(e){if(l)return s;l=!0;var t,i=(0,Z.Z)((0,ni.d)());try{for(i.s();!(t=i.n()).done;){var r=(0,be.Z)(t.value,2),o=r[0],a=r[1];n.get(o)||n.set(o,a)}}catch(c){i.e(c)}finally{i.f()}for(var u in e)if(e.hasOwnProperty(u)){var d=(0,pn.yh)(u);n.get(d)instanceof Ss.M&&n.set(d,e[u])}return s}}(sl||(sl={}));var hl=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},fl=function(e,t){return function(n,i){t(n,i,e)}},pl=0,gl=!1;var vl=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,s,l,c,u,d,h,f,p){var g;(0,r.Z)(this,n);var v=Object.assign({},i);return v.ariaLabel=v.ariaLabel||rr.B8.editorViewAccessibleLabel,v.ariaLabel=v.ariaLabel+";"+rr.B8.accessibilityHelpMessage,(g=t.call(this,e,v,{},o,a,s,l,u,d,h,f,p))._standaloneKeybindingService=c instanceof qs?c:null,function(e){if(!e){if(gl)return;gl=!0}Dt.wW(e||document.body)}(v.ariaContainerElement),g}return(0,o.Z)(n,[{key:"addCommand",value:function(e,t,n){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var i="DYNAMIC_"+ ++pl,r=Wt.Ao.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(i,e,t,r),i}},{key:"createContextKey",value:function(e,t){return this._contextKeyService.createKey(e,t)}},{key:"addAction",value:function(e){var t=this;if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),y.JT.None;var n=e.id,i=e.label,r=Wt.Ao.and(Wt.Ao.equals("editorId",this.getId()),Wt.Ao.deserialize(e.precondition)),o=e.keybindings,a=Wt.Ao.and(r,Wt.Ao.deserialize(e.keybindingContext)),s=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,c=function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return Promise.resolve(e.run.apply(e,[t].concat(r)))},u=new y.SL,d=this.getId()+":"+n;if(u.add(Pi.P0.registerCommand(d,c)),s){var h={command:{id:d,title:i},when:r,group:s,order:l};u.add($a.BH.appendMenuItem($a.eH.EditorContext,h))}if(Array.isArray(o)){var f,p=(0,Z.Z)(o);try{for(p.s();!(f=p.n()).done;){var g=f.value;u.add(this._standaloneKeybindingService.addDynamicKeybinding(d,g,c,a))}}catch(m){p.e(m)}finally{p.f()}}var v=new qn.p(d,i,i,r,c,this._contextKeyService);return this._actions[n]=v,u.add((0,y.OF)((function(){delete t._actions[n]}))),u}},{key:"_triggerCommand",value:function(e,t){if(this._codeEditorService instanceof ai)try{this._codeEditorService.setActiveCodeEditor(this),(0,S.Z)((0,w.Z)(n.prototype),"_triggerCommand",this).call(this,e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else(0,S.Z)((0,w.Z)(n.prototype),"_triggerCommand",this).call(this,e,t)}}]),n}(Lt.Gm),ml=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,s,l,c,u,d,h,f,p,g,v,m){var y;(0,r.Z)(this,n);var _=Object.assign({},i);il(h,_,!1);var b=u.registerEditorContainer(e);"string"===typeof _.theme&&u.setTheme(_.theme),"undefined"!==typeof _.autoDetectHighContrast&&u.setAutoDetectHighContrast(Boolean(_.autoDetectHighContrast));var C,S=_.model;if(delete _.model,(y=t.call(this,e,_,o,a,s,l,c,u,d,f,v,m))._configurationService=h,y._standaloneThemeService=u,y._register(b),"undefined"===typeof S){var w=g.getLanguageIdByMimeType(_.language)||_.language||Vr.bd;C=_l(p,g,_.value||"",w,void 0),y._ownsModel=!0}else C=S,y._ownsModel=!1;if(y._attachModel(C),C){var k={oldModelUrl:null,newModelUrl:C.uri};y._onDidChangeModel.fire(k)}return y}return(0,o.Z)(n,[{key:"dispose",value:function(){(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this)}},{key:"updateOptions",value:function(e){il(this._configurationService,e,!1),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),(0,S.Z)((0,w.Z)(n.prototype),"updateOptions",this).call(this,e)}},{key:"_postDetachModelCleanup",value:function(e){(0,S.Z)((0,w.Z)(n.prototype),"_postDetachModelCleanup",this).call(this,e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}}]),n}(vl=hl([fl(2,pn.TG),fl(3,C.$),fl(4,Pi.Hy),fl(5,Wt.i6),fl(6,Wi.d),fl(7,Gt.XE),fl(8,vn.lT),fl(9,Ho.F),fl(10,R.c_),fl(11,Be.p)],vl));ml=hl([fl(2,pn.TG),fl(3,C.$),fl(4,Pi.Hy),fl(5,Wt.i6),fl(6,Wi.d),fl(7,Ga.Z),fl(8,vn.lT),fl(9,dt.Ui),fl(10,Ho.F),fl(11,P.q),fl(12,M.O),fl(13,R.c_),fl(14,Be.p)],ml);var yl=function(e){(0,k.Z)(n,e);var t=(0,x.Z)(n);function n(e,i,o,a,s,l,c,u,d,h,f,p){var g;(0,r.Z)(this,n);var v=Object.assign({},i);il(d,v,!0);var m=c.registerEditorContainer(e);return"string"===typeof v.theme&&c.setTheme(v.theme),"undefined"!==typeof v.autoDetectHighContrast&&c.setAutoDetectHighContrast(Boolean(v.autoDetectHighContrast)),(g=t.call(this,e,v,{},p,s,a,o,l,c,u,h,f))._configurationService=d,g._standaloneThemeService=c,g._register(m),g}return(0,o.Z)(n,[{key:"dispose",value:function(){(0,S.Z)((0,w.Z)(n.prototype),"dispose",this).call(this)}},{key:"updateOptions",value:function(e){il(this._configurationService,e,!0),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),(0,S.Z)((0,w.Z)(n.prototype),"updateOptions",this).call(this,e)}},{key:"_createInnerEditor",value:function(e,t,n){return e.createInstance(vl,t,n)}},{key:"getOriginalEditor",value:function(){return(0,S.Z)((0,w.Z)(n.prototype),"getOriginalEditor",this).call(this)}},{key:"getModifiedEditor",value:function(){return(0,S.Z)((0,w.Z)(n.prototype),"getModifiedEditor",this).call(this)}},{key:"addCommand",value:function(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)}},{key:"createContextKey",value:function(e,t){return this.getModifiedEditor().createContextKey(e,t)}},{key:"addAction",value:function(e){return this.getModifiedEditor().addAction(e)}}]),n}(On);function _l(e,t,n,i,r){if(n=n||"",!i){var o=n.indexOf("\n"),a=n;return-1!==o&&(a=n.substring(0,o)),bl(e,n,t.createByFilepathOrFirstLine(r||null,a),r)}return bl(e,n,t.createById(i),r)}function bl(e,t,n,i){return e.createModel(t,n,i)}function Cl(e,t,n){return sl.initialize(n||{}).createInstance(ml,e,t)}function Sl(e){return sl.get(C.$).onCodeEditorAdd((function(t){e(t)}))}function wl(e){return sl.get(C.$).onDiffEditorAdd((function(t){e(t)}))}function kl(){return sl.get(C.$).listCodeEditors()}function xl(){return sl.get(C.$).listDiffEditors()}function El(e,t,n){return sl.initialize(n||{}).createInstance(yl,e,t)}function Tl(e,t){return new I(e,t)}function Nl(e){if("string"!==typeof e.id||"function"!==typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return Pi.P0.registerCommand(e.id,e.run)}function Il(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");var t=Wt.Ao.deserialize(e.precondition),n=new y.SL;if(n.add(Pi.P0.registerCommand(e.id,(function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return jt._l.runEditorCommand(n,r,t,(function(t,n,i){return Promise.resolve(e.run.apply(e,[n].concat((0,m.Z)(i))))}))}))),e.contextMenuGroupId){var i={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};n.add($a.BH.appendMenuItem($a.eH.EditorContext,i))}if(Array.isArray(e.keybindings)){var r=sl.get(Wi.d);if(r instanceof qs){var o=Wt.Ao.and(t,Wt.Ao.deserialize(e.keybindingContext));n.add(r.addDynamicKeybindings(e.keybindings.map((function(t){return{keybinding:t,command:e.id,when:o}}))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return n}function Dl(e){return Ll([e])}function Ll(e){var t=sl.get(Wi.d);return t instanceof qs?t.addDynamicKeybindings(e.map((function(e){return{keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:Wt.Ao.deserialize(e.when)}}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),y.JT.None)}function Ol(e,t,n){var i=sl.get(M.O),r=i.getLanguageIdByMimeType(t)||t;return _l(sl.get(P.q),i,e,r,n)}function Rl(e,t){var n=sl.get(M.O);sl.get(P.q).setMode(e,n.createById(t))}function Al(e,t,n){e&&sl.get(Ro.lT).changeOne(t,e.uri,n)}function Ml(e){sl.get(Ro.lT).changeAll(e,[])}function Pl(e){return sl.get(Ro.lT).read(e)}function Zl(e){return sl.get(Ro.lT).onMarkerChanged(e)}function Fl(e){return sl.get(P.q).getModel(e)}function Bl(){return sl.get(P.q).getModels()}function Hl(e){return sl.get(P.q).onModelAdded(e)}function zl(e){return sl.get(P.q).onModelRemoved(e)}function jl(e){return sl.get(P.q).onModelLanguageChanged((function(t){e({model:t.model,oldLanguage:t.oldLanguageId})}))}function Vl(e){return function(e,t,n){return new Qe(e,t,n)}(sl.get(P.q),sl.get(R.c_),e)}function Wl(e,t){var n=sl.get(M.O),i=sl.get(Ga.Z);return i.registerEditorContainer(e),Et.colorizeElement(i,n,e,t)}function Ul(e,t,n){var i=sl.get(M.O);return sl.get(Ga.Z).registerEditorContainer(document.body),Et.colorize(i,e,t,n)}function Gl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,i=sl.get(Ga.Z);return i.registerEditorContainer(document.body),Et.colorizeModelLine(e,t,n)}function Kl(e,t){f.RW.getOrCreate(t);for(var n,i=(n=t,f.RW.get(n)||{getInitialState:function(){return A.TJ},tokenize:function(e,t,i){return(0,A.Ri)(n,i)}}),r=(0,_.uq)(e),o=[],a=i.getInitialState(),s=0,l=r.length;s<l;s++){var c=r[s],u=i.tokenize(c,!0,a);o[s]=u.tokens,a=u.endState}return o}function Yl(e,t){sl.get(Ga.Z).defineTheme(e,t)}function ql(e){sl.get(Ga.Z).setTheme(e)}function $l(){b.g.clearAllFontInfos()}function Xl(e,t){return Pi.P0.registerCommand({id:e,handler:t})}function Ql(e,t){return"boolean"===typeof e?e:t}function Jl(e,t){return"string"===typeof e?e:t}function ec(e){var t,n={},i=(0,Z.Z)(e);try{for(i.s();!(t=i.n()).done;){n[t.value]=!0}}catch(r){i.e(r)}finally{i.f()}return n}function tc(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t&&(e=e.map((function(e){return e.toLowerCase()})));var n=ec(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}}function nc(e,t){t=t.replace(/@@/g,"\x01");var n,i=0;do{n=!1,t=t.replace(/@(\w+)/g,(function(i,r){n=!0;var o="";if("string"===typeof e[r])o=e[r];else{if(!(e[r]&&e[r]instanceof RegExp))throw void 0===e[r]?lt(e,"language definition does not contain attribute '"+r+"', used at: "+t):lt(e,"attribute reference '"+r+"' must be a string, used at: "+t);o=e[r].source}return ot(o)?"":"(?:"+o+")"})),i++}while(n&&i<5);t=t.replace(/\x01/g,"@");var r=(e.ignoreCase?"i":"")+(e.unicode?"u":"");return new RegExp(t,r)}function ic(e,t,n,i){var r=-1,o=n,a=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);a&&(a[3]&&(r=parseInt(a[3]),a[2]&&(r+=100)),o=a[4]);var s,l="~",c=o;if(o&&0!==o.length?/^\w*$/.test(c)?l="==":(a=o.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(l=a[1],c=a[2]):(l="!=",c=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(c))if("@"===l||"!@"===l){var u=e[c];if(!u)throw lt(e,"the @ match target '"+c+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;var n,i=(0,Z.Z)(t);try{for(i.s();!(n=i.n()).done;)if(!e(n.value))return!1}catch(r){i.e(r)}finally{i.f()}return!0}((function(e){return"string"===typeof e}),u))throw lt(e,"the @ match target '"+c+"' must be an array of strings, in rule: "+t);var d=tc(u,e.ignoreCase);s=function(e){return"@"===l?d(e):!d(e)}}else if("~"===l||"!~"===l)if(c.indexOf("$")<0){var h=nc(e,"^"+c+"$");s=function(e){return"~"===l?h.test(e):!h.test(e)}}else s=function(t,n,i,r){return nc(e,"^"+ct(e,c,n,i,r)+"$").test(t)};else if(c.indexOf("$")<0){var f=at(e,c);s=function(e){return"=="===l?e===f:e!==f}}else{var p=at(e,c);s=function(t,n,i,r,o){var a=ct(e,p,n,i,r);return"=="===l?t===a:t!==a}}else{var g=tc(c.split("|"),e.ignoreCase);s=function(e){return"~"===l?g(e):!g(e)}}return-1===r?{name:n,value:i,test:function(e,t,n,i){return s(e,e,t,n,i)}}:{name:n,value:i,test:function(e,t,n,i){var o=function(e,t,n,i){if(i<0)return e;if(i<t.length)return t[i];if(i>=100){i-=100;var r=n.split(".");if(r.unshift(n),i<r.length)return r[i]}return null}(e,t,n,r);return s(o||"",e,t,n,i)}}}function rc(e,t,n){if(n){if("string"===typeof n)return n;if(n.token||""===n.token){if("string"!==typeof n.token)throw lt(e,"a 'token' attribute must be of type string, in rule: "+t);var i={token:n.token};if(n.token.indexOf("$")>=0&&(i.tokenSubst=!0),"string"===typeof n.bracket)if("@open"===n.bracket)i.bracket=1;else{if("@close"!==n.bracket)throw lt(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);i.bracket=-1}if(n.next){if("string"!==typeof n.next)throw lt(e,"the next state must be a string value in rule: "+t);var r=n.next;if(!/^(@pop|@push|@popall)$/.test(r)&&("@"===r[0]&&(r=r.substr(1)),r.indexOf("$")<0&&!function(e,t){for(var n=t;n&&n.length>0;){if(e.stateNames[n])return!0;var i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i)}return!1}(e,ct(e,r,"",[],""))))throw lt(e,"the next state '"+n.next+"' is not defined in rule: "+t);i.next=r}return"number"===typeof n.goBack&&(i.goBack=n.goBack),"string"===typeof n.switchTo&&(i.switchTo=n.switchTo),"string"===typeof n.log&&(i.log=n.log),"string"===typeof n.nextEmbedded&&(i.nextEmbedded=n.nextEmbedded,e.usesEmbedded=!0),i}if(Array.isArray(n)){for(var o=[],a=0,s=n.length;a<s;a++)o[a]=rc(e,t,n[a]);return{group:o}}if(n.cases){var l=[];for(var c in n.cases)if(n.cases.hasOwnProperty(c)){var u=rc(e,t,n.cases[c]);"@default"===c||"@"===c||""===c?l.push({test:void 0,value:u,name:c}):"@eos"===c?l.push({test:function(e,t,n,i){return i},value:u,name:c}):l.push(ic(e,t,c,u))}var d=e.defaultToken;return{test:function(e,t,n,i){var r,o=(0,Z.Z)(l);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(!a.test||a.test(e,t,n,i))return a.value}}catch(s){o.e(s)}finally{o.f()}return d}}}throw lt(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}yl=hl([fl(2,pn.TG),fl(3,Wt.i6),fl(4,dn.p),fl(5,C.$),fl(6,Ga.Z),fl(7,vn.lT),fl(8,dt.Ui),fl(9,mn.i),fl(10,Cn.ek),fl(11,bn.p)],yl);var oc=function(){function e(t){(0,r.Z)(this,e),this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=t}return(0,o.Z)(e,[{key:"setRegex",value:function(e,t){var n;if("string"===typeof t)n=t;else{if(!(t instanceof RegExp))throw lt(e,"rules must start with a match string or regular expression: "+this.name);n=t.source}this.matchOnlyAtLineStart=n.length>0&&"^"===n[0],this.name=this.name+": "+n,this.regex=nc(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")}},{key:"setAction",value:function(e,t){this.action=rc(e,this.name,t)}}]),e}();function ac(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=e,n.includeLF=Ql(t.includeLF,!1),n.noThrow=!1,n.maxStack=100,n.start="string"===typeof t.start?t.start:null,n.ignoreCase=Ql(t.ignoreCase,!1),n.unicode=Ql(t.unicode,!1),n.tokenPostfix=Jl(t.tokenPostfix,"."+n.languageId),n.defaultToken=Jl(t.defaultToken,"source"),n.usesEmbedded=!1;var i=t;function r(e,o,a){var s,l=(0,Z.Z)(a);try{for(l.s();!(s=l.n()).done;){var c=s.value,u=c.include;if(u){if("string"!==typeof u)throw lt(n,"an 'include' attribute must be a string at: "+e);if("@"===u[0]&&(u=u.substr(1)),!t.tokenizer[u])throw lt(n,"include target '"+u+"' is not defined at: "+e);r(e+"."+u,o,t.tokenizer[u])}else{var d=new oc(e);if(Array.isArray(c)&&c.length>=1&&c.length<=3)if(d.setRegex(i,c[0]),c.length>=3)if("string"===typeof c[1])d.setAction(i,{token:c[1],next:c[2]});else{if("object"!==typeof c[1])throw lt(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);var h=c[1];h.next=c[2],d.setAction(i,h)}else d.setAction(i,c[1]);else{if(!c.regex)throw lt(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);c.name&&"string"===typeof c.name&&(d.name=c.name),c.matchOnlyAtStart&&(d.matchOnlyAtLineStart=Ql(c.matchOnlyAtLineStart,!1)),d.setRegex(i,c.regex),d.setAction(i,c.action)}o.push(d)}}}catch(f){l.e(f)}finally{l.f()}}if(i.languageId=e,i.includeLF=n.includeLF,i.ignoreCase=n.ignoreCase,i.unicode=n.unicode,i.noThrow=n.noThrow,i.usesEmbedded=n.usesEmbedded,i.stateNames=t.tokenizer,i.defaultToken=n.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw lt(n,"a language definition must define the 'tokenizer' attribute as an object");for(var o in n.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(o)){n.start||(n.start=o);var a=t.tokenizer[o];n.tokenizer[o]=new Array,r("tokenizer."+o,n.tokenizer[o],a)}if(n.usesEmbedded=i.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw lt(n,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];var s,l=[],c=(0,Z.Z)(t.brackets);try{for(c.s();!(s=c.n()).done;){var u=s.value;if(u&&Array.isArray(u)&&3===u.length&&(u={token:u[2],open:u[0],close:u[1]}),u.open===u.close)throw lt(n,"open and close brackets in a 'brackets' attribute must be different: "+u.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof u.open||"string"!==typeof u.token||"string"!==typeof u.close)throw lt(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");l.push({token:u.token+n.tokenPostfix,open:at(n,u.open),close:at(n,u.close)})}}catch(d){c.e(d)}finally{c.f()}return n.brackets=l,n.noThrow=!0,n}var sc=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};function lc(e){Vr.dQ.registerLanguage(e)}function cc(){var e=[];return e=e.concat(Vr.dQ.getLanguages())}function uc(e){return sl.get(M.O).languageIdCodec.encodeLanguageId(e)}function dc(e,t){var n=sl.get(M.O).onDidEncounterLanguage((function(i){i===e&&(n.dispose(),t())}));return n}function hc(e,t){if(!sl.get(M.O).isRegisteredLanguageId(e))throw new Error("Cannot set configuration for unknown language ".concat(e));return sl.get(R.c_).register(e,t,100)}var fc=function(){function e(t,n){(0,r.Z)(this,e),this._languageId=t,this._actual=n}return(0,o.Z)(e,[{key:"getInitialState",value:function(){return this._actual.getInitialState()}},{key:"tokenize",value:function(e,t,n){if("function"===typeof this._actual.tokenize)return pc.adaptTokenize(this._languageId,this._actual,e,n);throw new Error("Not supported!")}},{key:"tokenizeEncoded",value:function(e,t,n){var i=this._actual.tokenizeEncoded(e,n);return new f.DI(i.tokens,i.endState)}}]),e}(),pc=function(){function e(t,n,i,o){(0,r.Z)(this,e),this._languageId=t,this._actual=n,this._languageService=i,this._standaloneThemeService=o}return(0,o.Z)(e,[{key:"getInitialState",value:function(){return this._actual.getInitialState()}},{key:"tokenize",value:function(t,n,i){return e.adaptTokenize(this._languageId,this._actual,t,i)}},{key:"_toBinaryTokens",value:function(e,t){for(var n=e.encodeLanguageId(this._languageId),i=this._standaloneThemeService.getColorTheme().tokenTheme,r=[],o=0,a=0,s=0,l=t.length;s<l;s++){var c=t[s],u=i.match(n,c.scopes);if(!(o>0&&r[o-1]===u)){var d=c.startIndex;0===s?d=0:d<a&&(d=a),r[o++]=d,r[o++]=u,a=d}}for(var h=new Uint32Array(o),f=0;f<o;f++)h[f]=r[f];return h}},{key:"tokenizeEncoded",value:function(e,t,n){var i,r=this._actual.tokenize(e,n),o=this._toBinaryTokens(this._languageService.languageIdCodec,r.tokens);return i=r.endState.equals(n)?n:r.endState,new f.DI(o,i)}}],[{key:"_toClassicTokens",value:function(e,t){for(var n=[],i=0,r=0,o=e.length;r<o;r++){var a=e[r],s=a.startIndex;0===r?s=0:s<i&&(s=i),n[r]=new f.WU(s,a.scopes,t),i=s}return n}},{key:"adaptTokenize",value:function(t,n,i,r){var o,a=n.tokenize(i,r),s=e._toClassicTokens(a.tokens,t);return o=a.endState.equals(r)?r:a.endState,new f.hG(s,o)}}]),e}();function gc(e){return e&&"function"===typeof e.then}function vc(e){var t=sl.get(Ga.Z);if(e){for(var n=[null],i=1,r=e.length;i<r;i++)n[i]=jo.Il.fromHex(e[i]);t.setColorMapOverride(n)}else t.setColorMapOverride(null)}function mc(e,t){return function(e){return"tokenizeEncoded"in e}(t)?new fc(e,t):new pc(e,t,sl.get(M.O),sl.get(Ga.Z))}function yc(e,t){var n=this,i={createTokenizationSupport:function(){return sc(n,void 0,void 0,(0,F.Z)().mark((function n(){var i;return(0,F.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.resolve(t.create());case 2:if(i=n.sent){n.next=5;break}return n.abrupt("return",null);case 5:if("function"!==typeof i.getInitialState){n.next=7;break}return n.abrupt("return",mc(e,i));case 7:return n.abrupt("return",new Ct(sl.get(M.O),sl.get(Ga.Z),e,ac(e,i),sl.get(dt.Ui)));case 8:case"end":return n.stop()}}),n)})))}};return f.RW.registerFactory(e,i)}function _c(e,t){if(!sl.get(M.O).isRegisteredLanguageId(e))throw new Error("Cannot set tokens provider for unknown language ".concat(e));return gc(t)?yc(e,{create:function(){return t}}):f.RW.register(e,mc(e,t))}function bc(e,t){return gc(t)?yc(e,{create:function(){return t}}):f.RW.register(e,function(t){return new Ct(sl.get(M.O),sl.get(Ga.Z),e,ac(e,t),sl.get(dt.Ui))}(t))}function Cc(e,t){return sl.get(Be.p).referenceProvider.register(e,t)}function Sc(e,t){return sl.get(Be.p).renameProvider.register(e,t)}function wc(e,t){return sl.get(Be.p).signatureHelpProvider.register(e,t)}function kc(e,t){return sl.get(Be.p).hoverProvider.register(e,{provideHover:function(e,n,i){var r=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,i)).then((function(e){if(e)return!e.range&&r&&(e.range=new d.e(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),e.range||(e.range=new d.e(n.lineNumber,n.column,n.lineNumber,n.column)),e}))}})}function xc(e,t){return sl.get(Be.p).documentSymbolProvider.register(e,t)}function Ec(e,t){return sl.get(Be.p).documentHighlightProvider.register(e,t)}function Tc(e,t){return sl.get(Be.p).linkedEditingRangeProvider.register(e,t)}function Nc(e,t){return sl.get(Be.p).definitionProvider.register(e,t)}function Ic(e,t){return sl.get(Be.p).implementationProvider.register(e,t)}function Dc(e,t){return sl.get(Be.p).typeDefinitionProvider.register(e,t)}function Lc(e,t){return sl.get(Be.p).codeLensProvider.register(e,t)}function Oc(e,t,n){return sl.get(Be.p).codeActionProvider.register(e,{providedCodeActionKinds:null===n||void 0===n?void 0:n.providedCodeActionKinds,documentation:null===n||void 0===n?void 0:n.documentation,provideCodeActions:function(e,n,i,r){var o=sl.get(Ro.lT).read({resource:e.uri}).filter((function(e){return d.e.areIntersectingOrTouching(e,n)}));return t.provideCodeActions(e,n,{markers:o,only:i.only,trigger:i.trigger},r)},resolveCodeAction:t.resolveCodeAction})}function Rc(e,t){return sl.get(Be.p).documentFormattingEditProvider.register(e,t)}function Ac(e,t){return sl.get(Be.p).documentRangeFormattingEditProvider.register(e,t)}function Mc(e,t){return sl.get(Be.p).onTypeFormattingEditProvider.register(e,t)}function Pc(e,t){return sl.get(Be.p).linkProvider.register(e,t)}function Zc(e,t){return sl.get(Be.p).completionProvider.register(e,t)}function Fc(e,t){return sl.get(Be.p).colorProvider.register(e,t)}function Bc(e,t){return sl.get(Be.p).foldingRangeProvider.register(e,t)}function Hc(e,t){return sl.get(Be.p).declarationProvider.register(e,t)}function zc(e,t){return sl.get(Be.p).selectionRangeProvider.register(e,t)}function jc(e,t){return sl.get(Be.p).documentSemanticTokensProvider.register(e,t)}function Vc(e,t){return sl.get(Be.p).documentRangeSemanticTokensProvider.register(e,t)}function Wc(e,t){return sl.get(Be.p).inlineCompletionsProvider.register(e,t)}function Uc(e,t){return sl.get(Be.p).inlayHintsProvider.register(e,t)}var Gc,Kc=n(93680);i.BH.wrappingIndent.defaultValue=0,i.BH.glyphMargin.defaultValue=!1,i.BH.autoIndent.defaultValue=3,i.BH.overviewRulerLanes.defaultValue=2,Kc.xC.setFormatterSelector(((e,t,n)=>Promise.resolve(e[0])));const Yc=v();Yc.editor={create:Cl,getEditors:kl,getDiffEditors:xl,onDidCreateEditor:Sl,onDidCreateDiffEditor:wl,createDiffEditor:El,createDiffNavigator:Tl,addCommand:Nl,addEditorAction:Il,addKeybindingRule:Dl,addKeybindingRules:Ll,createModel:Ol,setModelLanguage:Rl,setModelMarkers:Al,getModelMarkers:Pl,removeAllMarkers:Ml,onDidChangeMarkers:Zl,getModels:Bl,getModel:Fl,onDidCreateModel:Hl,onWillDisposeModel:zl,onDidChangeModelLanguage:jl,createWebWorker:Vl,colorizeElement:Wl,colorize:Ul,colorizeModelLine:Gl,tokenize:Kl,defineTheme:Yl,setTheme:ql,remeasureFonts:$l,registerCommand:Xl,AccessibilitySupport:p.ao,ContentWidgetPositionPreference:p.r3,CursorChangeReason:p.Vi,DefaultEndOfLine:p._x,EditorAutoIndentStrategy:p.rf,EditorOption:p.wT,EndOfLinePreference:p.gm,EndOfLineSequence:p.jl,MinimapPosition:p.F5,MouseTargetType:p.MG,OverlayWidgetPositionPreference:p.E$,OverviewRulerLane:p.sh,RenderLineNumbersType:p.Lu,RenderMinimap:p.vQ,ScrollbarVisibility:p.g_,ScrollType:p.g4,TextEditorCursorBlinkingStyle:p.In,TextEditorCursorStyle:p.d2,TrackedRangeStickiness:p.OI,WrappingIndent:p.up,InjectedTextCursorStops:p.RM,PositionAffinity:p.py,ConfigurationChangedEvent:i.Bb,BareFontInfo:D.E4,FontInfo:D.pR,TextModelResolvedOptions:O.dJ,FindMatch:O.tk,ApplyUpdateResult:i.rk,EditorType:L.g,EditorOptions:i.BH},Yc.languages={register:lc,getLanguages:cc,onLanguage:dc,getEncodedLanguageId:uc,setLanguageConfiguration:hc,setColorMap:vc,registerTokensProviderFactory:yc,setTokensProvider:_c,setMonarchTokensProvider:bc,registerReferenceProvider:Cc,registerRenameProvider:Sc,registerCompletionItemProvider:Zc,registerSignatureHelpProvider:wc,registerHoverProvider:kc,registerDocumentSymbolProvider:xc,registerDocumentHighlightProvider:Ec,registerLinkedEditingRangeProvider:Tc,registerDefinitionProvider:Nc,registerImplementationProvider:Ic,registerTypeDefinitionProvider:Dc,registerCodeLensProvider:Lc,registerCodeActionProvider:Oc,registerDocumentFormattingEditProvider:Rc,registerDocumentRangeFormattingEditProvider:Ac,registerOnTypeFormattingEditProvider:Mc,registerLinkProvider:Pc,registerColorProvider:Fc,registerFoldingRangeProvider:Bc,registerDeclarationProvider:Hc,registerSelectionRangeProvider:zc,registerDocumentSemanticTokensProvider:jc,registerDocumentRangeSemanticTokensProvider:Vc,registerInlineCompletionsProvider:Wc,registerInlayHintsProvider:Uc,DocumentHighlightKind:p.MY,CompletionItemKind:p.cm,CompletionItemTag:p.we,CompletionItemInsertTextRule:p.a7,SymbolKind:p.cR,SymbolTag:p.r4,IndentAction:p.wU,CompletionTriggerKind:p.Ij,SignatureHelpTriggerKind:p.WW,InlayHintKind:p.gl,InlineCompletionTriggerKind:p.bw,CodeActionTriggerType:p.np,FoldingRangeKind:f.AD};const qc=Yc.CancellationTokenSource,$c=Yc.Emitter,Xc=Yc.KeyCode,Qc=Yc.KeyMod,Jc=Yc.Position,eu=Yc.Range,tu=Yc.Selection,nu=Yc.SelectionDirection,iu=Yc.MarkerSeverity,ru=Yc.MarkerTag,ou=Yc.Uri,au=Yc.Token,su=Yc.editor,lu=Yc.languages;((null===(Gc=z.li.MonacoEnvironment)||void 0===Gc?void 0:Gc.globalAPI)||"function"===typeof define&&n.amdO)&&(self.monaco=Yc),"undefined"!==typeof self.require&&"function"===typeof self.require.config&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},35378:function(e,t,n){"use strict";e.exports=n.p+"static/media/bg.ad187fed.a47d112f49f56eb1cfa5.png"},50228:function(e,t,n){"use strict";e.exports=n.p+"static/media/default.32752796.9e3b4c5313ccb5060485.png"},64669:function(e,t,n){"use strict";e.exports=n.p+"static/media/head-bg.8b029587.60f3a93d8a581efd4c49.png"},74427:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAH4AAAAtCAMAAABf5y/jAAACjlBMVEVHcEwjLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz4jLz7///8jLz7LztJgaXTQ0tUqNkROWGRaY24mMUDg4uT3+Pj6+vokMD/29vclMUArNkVbZG9rdH5GUFzJzM+Ijpfk5ug4Q1AmMkEsOEYsN0YuOkgoNUPT1dg6RVJMVWL8/Pz09PWOlJyXnKM2QU+mq7HN0NNweIEzPkzW2dvEyMxyeYTDxsqPlZ0vOklXYGt6gYr8/f1ETluFjJR4gIkwO0n19fZ+hY34+PnFyMxJU1/+/v77+/tYYm3Z297x8vPDx8ursLahpq1lbnhVXmri4+UnM0J1fIbQ09ZlbXicoaiLkZm/w8c5Q1FpcXujqK6aoKbn6Orj5OZrc32BiJCKkJi4vMGSmKDj5eewtLm2ur+5vcLu7/CTmaCMk5pAS1iEipPr7O79/f1vd4Hh4uVTXWnv8PGusri9wcXMz9L5+fro6euAh5CRl57Iy8/CxclhanRtdX+8v8TAw8iQlp1MVmLt7u/U1tnGyc08R1R/ho9ia3Xd3+EtOUeVm6JudoA0P02tsressbbw8fJIUl97g4zY2t1FT1zf4ePR1NdKVGCUmqGboKezt7xRWmZmb3lfZ3JWX2ve4OLb3d8/Slc/SVbO0dTHys6xtrs+SFVocHvl5+i3u8BSW2efpKtPWWVdZnG6vsKnrLJcZXBkbHcxPEqEi5Ta3N6gpaywtbrq6+3V19p3foeqrrRYYWzy8/SYnqWlqrC1ub729/d4f4js0xmsAAAAJnRSTlMA7vrz5uz87f79Qcnn8NVr0QXDlffNqjhSFLyhcUgCHHy/DCWI2+2nq4IAAATgSURBVFjDxZj3X5NHGMDjglarta3du7Z3loACAhmQQEiQKBAoskUUZAqIA0UUkLJUBGe0jrZaFa1b6yju1WmHHSlt/5u+99z75r1cXkNe0k/y/ADPc+v75t5n3HuaD8I9JewpFcJOxJyw454eP2MqO/aZd9+ZqQGZikMjE95/j+An4VDJlLfHhLfetd83ZFRV99bFB8af/qp6/JVBF5Jk66WzAfFfUouPLEMeMvdiQDvwpjp88VyALh8ceTgwaxvoN68HgH9NFb6U8CprHmjBmr/lFrHP3Rg7fpwm3P/Bs9sF2t89TIvuntCyIUh4/BChLvL/UX/mv7X62YJ2JxXNezB2fLgqfNzVa8Lfutt9ZNPTznRnYZxSq8fBwsMj/LVZDryKADOPenwbgA/d+4f8cy0JNt6AUPlIXVbyncybAl8XbPy11PNRYiB0fVFtDjbeIxIxDg3+QkWJZ4N+n/FYbn5eisLY1WvaBu6fPHBlvh/4fc6qYibJZpedlq38so8yQbEMbEYtCXJHyq7GchoLic28M17u+FKMk0PVttHwOWTcAckqIpZRsrqJVexuT1wodRwZZopQ9KVkZr3kpjSmb3FXvW+8A8qYVfxRj4nVJ2KSFhHrZ5Og7oHFRA/EKz2LIMpIko8GGVxf1ZBPfCIMKqLGejqFbjhuBWMd+W3bQd1L242Il1TJL7IcXn0Gn/hOGOMwgbGKzsimXv4pGKuIPgvUD6H926VeCHSbLhbbKTUsXew+IPjEr6CDwK0Kd1Aj7RSx8qih4/CWZeK6HzsXnGgsEI1aWKxBtPY02HoO5tP3sM0n3nIOBnUQ/Zj0xGuJdZJ6tpnDZ9IhO3LhhUd+Qs0IkhHMy+nvbRD3ojSGeJ/vwMuFKa7VGMe3SPh1R4WzRSWodszhs6m775XmN9MplwV1C2jlP8pb24JcF33je6JhUi/Ga+R3eVw86KCYsxxefKqV7vmmVGhIF9RN8taJstBmHS3r0e1zuB2PSBnGdNX9mMP3g9b3iMscaJOwe+2wj1Z1SbeWEtNLmXxR0NpNlfU8PoG+amb+QSm+roO3V6nM+ZY56InSnszjo7zwkdAybME2iMgFakvO7ifj7dhf/FYttsGp6Hu1+MIYBpj/O5NVYvR+4+do8Q1w4s9UF9z9MvA3jCNky4nV4LUQ9os+V4tnIq4V49OypVOFx1+BVsNu7PEfYkfFmxMlXqWQyoakco12HlWHpxWrQD4O5gifaBs5/DjvLbFLwBPEqpasJqwOH/819ZjDcdBRbyQVIZrDT/TG6yXnq2BqDUq7oBIvZl2EGg/3n8r7yaFYcl5U8AgnneaAo2QcrbSsD/uJF9++5xc5h39BAa+jQ8Vj1i5q5ajHp0R44Z0cfrIC3rwTypgYM0nz2DMXEVq6j7iT7nlm7jf0BoB+gw9lc/TvSjj8W88r8OH4NiJZvxBrN9NNaxk50+pBY93ZCtlmuxhg9W3RDNy1IZaPe83L4xW+H7rPDK91X5to7cPL0k1Mdx3xzV/JUrEdpKT/yc5tIqC7bnPJyGPp2FBT6J12NJpnFT9kTR6PE+fZG7XRkEufTptu6EzwnNl7a3AF25B11dj8R01RQolS1hPkjbBQXe0BXjN5SqiuNunN6nOvvD5tEnvpOmFG2P96pytKmHSnO5HKtP8AqpTJw/nTKXIAAAAASUVORK5CYII="},951:function(e,t,n){"use strict";e.exports=n.p+"static/media/newlogo.e2ad3c36f34a1c2c10d1.png"},24654:function(){},73897:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i},e.exports.__esModule=!0,e.exports.default=e.exports},85372:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},63405:function(e,t,n){var i=n(73897);e.exports=function(e){if(Array.isArray(e))return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},66115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},56690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3515:function(e,t,n){var i=n(6015),r=n(69617);function o(t,n,a){return r()?(e.exports=o=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},89728:function(e){function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},74704:function(e,t,n){var i=n(86116);e.exports=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},26389:function(e,t,n){var i=n(73808),r=n(69617),o=n(94993);e.exports=function(e){var t=r();return function(){var n,r=i(e);if(t){var a=i(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return o(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},41588:function(e,t,n){var i=n(1753);function r(){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=r=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=r=function(e,t,n){var r=i(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},e.exports.__esModule=!0,e.exports.default=e.exports),r.apply(this,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},73808:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},61655:function(e,t,n){var i=n(6015);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},69617:function(e){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},79498:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},68872:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},12218:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},42281:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},94993:function(e,t,n){var i=n(18698).default,r=n(66115);e.exports=function(e,t){if(t&&("object"===i(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},17061:function(e,t,n){var i=n(18698).default;function r(){"use strict";e.exports=r=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(L){d=function(e,t,n){return e[t]=n}}function h(e,t,n,i){var r=t&&t.prototype instanceof g?t:g,o=Object.create(r.prototype),s=new N(i||[]);return a(o,"_invoke",{value:k(e,n,s)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(L){return{type:"throw",arg:L}}}t.wrap=h;var p={};function g(){}function v(){}function m(){}var y={};d(y,l,(function(){return this}));var _=Object.getPrototypeOf,b=_&&_(_(I([])));b&&b!==n&&o.call(b,l)&&(y=b);var C=m.prototype=g.prototype=Object.create(y);function S(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(r,a,s,l){var c=f(e[r],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==i(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var r;a(this,"_invoke",{value:function(e,i){function o(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(o,o):o()}})}function k(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return D()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=f(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=f(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function I(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:D}}function D(){return{value:void 0,done:!0}}return v.prototype=m,a(C,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:v,configurable:!0}),v.displayName=d(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,d(e,u,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(w.prototype),d(w.prototype,c,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(h(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),d(C,u,"Generator"),d(C,l,(function(){return this})),d(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],a=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var s=o.call(r,"catchLoc"),l=o.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,i){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},27424:function(e,t,n){var i=n(85372),r=n(68872),o=n(86116),a=n(12218);e.exports=function(e,t){return i(e)||r(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},1753:function(e,t,n){var i=n(73808);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},861:function(e,t,n){var i=n(63405),r=n(79498),o=n(86116),a=n(42281);e.exports=function(e){return i(e)||r(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},86116:function(e,t,n){var i=n(73897);e.exports=function(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},30907:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,{Z:function(){return i}})},83878:function(e,t,n){"use strict";function i(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return i}})},97326:function(e,t,n){"use strict";function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return i}})},15861:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,l,"next",e)}function l(e){i(a,r,o,s,l,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return r}})},15671:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return i}})},5647:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(89611),r=n(78814);function o(e,t,n){return o=(0,r.Z)()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&(0,i.Z)(o,n.prototype),o},o.apply(null,arguments)}},43144:function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return r}})},37762:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(40181);function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,i.Z)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}},27277:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(61120),r=n(78814),o=n(71002),a=n(97326);function s(e,t){if(t&&("object"===(0,o.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}function l(e){var t=(0,r.Z)();return function(){var n,r=(0,i.Z)(e);if(t){var o=(0,i.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}},4942:function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return i}})},11752:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(61120);function r(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,i.Z)(e)););return e}function o(){return o="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},o.apply(this,arguments)}},61120:function(e,t,n){"use strict";function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}n.d(t,{Z:function(){return i}})},60136:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(89611);function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,i.Z)(e,t)}},78814:function(e,t,n){"use strict";function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return i}})},59199:function(e,t,n){"use strict";function i(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return i}})},25267:function(e,t,n){"use strict";function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return i}})},1413:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(4942);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},74165:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(71002);function r(){r=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(D){u=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var r=t&&t.prototype instanceof p?t:p,a=Object.create(r.prototype),s=new T(i||[]);return o(a,"_invoke",{value:w(e,n,s)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(D){return{type:"throw",arg:D}}}e.wrap=d;var f={};function p(){}function g(){}function v(){}var m={};u(m,s,(function(){return this}));var y=Object.getPrototypeOf,_=y&&y(y(N([])));_&&_!==t&&n.call(_,s)&&(m=_);var b=v.prototype=p.prototype=Object.create(m);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,a,s,l){var c=h(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==(0,i.Z)(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,l)}),(function(e){r("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function w(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return I()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=h(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var i=h(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function N(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return g.prototype=v,o(b,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},C(S.prototype),u(S.prototype,l,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new S(d(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(b),u(b,c,"Generator"),u(b,s,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=N,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}},89611:function(e,t,n){"use strict";function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}n.d(t,{Z:function(){return i}})},29439:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(83878);var r=n(40181),o=n(25267);function a(e,t){return(0,i.Z)(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||(0,r.Z)(e,t)||(0,o.Z)()}},84506:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(83878),r=n(59199),o=n(40181),a=n(25267);function s(e){return(0,i.Z)(e)||(0,r.Z)(e)||(0,o.Z)(e)||(0,a.Z)()}},93433:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(30907);var r=n(59199),o=n(40181);function a(e){return function(e){if(Array.isArray(e))return(0,i.Z)(e)}(e)||(0,r.Z)(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},71002:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(t,{Z:function(){return i}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(30907);function r(e,t){if(e){if("string"===typeof e)return(0,i.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.Z)(e,t):void 0}}},28664:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(61120),r=n(89611);var o=n(5647);function a(e){var t="function"===typeof Map?new Map:void 0;return a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return(0,o.Z)(e,arguments,(0,i.Z)(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),(0,r.Z)(a,e)},a(e)}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(i,r){if(1&r&&(i=this(i)),8&r)return i;if("object"===typeof i&&i){if(4&r&&i.__esModule)return i;if(16&r&&"function"===typeof i.then)return i}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&i;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return i[e]}}));return a.default=function(){return i},n.d(o,a),o}}(),n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,i){return n.f[i](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+"."+{258:"efff4014",324:"bf4cc54f",342:"e07172ae",558:"d067177e",787:"d3befce1"}[e]+".chunk.js"},n.miniCssF=function(e){},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="myapp:";n.l=function(i,r,o,a){if(e[i])e[i].push(r);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==i||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=i),e[i]=[r];var h=function(t,n){s.onerror=s.onload=null,clearTimeout(f);var r=e[i];if(delete e[i],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((function(e){return e(n)})),t)return t(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.p="/",function(){var e={179:0};n.f.j=function(t,i){var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)i.push(r[2]);else{var o=new Promise((function(n,i){r=e[t]=[n,i]}));i.push(r[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(function(i){if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=function(t,i){var r,o,a=i[0],s=i[1],l=i[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(r in s)n.o(s,r)&&(n.m[r]=s[r]);if(l)l(n)}for(t&&t(i);c<a.length;c++)o=a[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},i=self.webpackChunkmyapp=self.webpackChunkmyapp||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))}(),function(){"use strict";var e={};n.r(e),n.d(e,{assign:function(){return KU},default:function(){return fG},defaultI18n:function(){return XU},format:function(){return dG},parse:function(){return hG},setGlobalDateI18n:function(){return JU},setGlobalDateMasks:function(){return uG}});var t={};n.r(t),n.d(t,{Arc:function(){return yY},DataMarker:function(){return kY},DataRegion:function(){return EY},Html:function(){return ZY},Image:function(){return SY},Line:function(){return pY},Region:function(){return bY},RegionFilter:function(){return NY},Shape:function(){return DY},Text:function(){return vY}});var i={};n.r(i),n.d(i,{ellipsisHead:function(){return VY},ellipsisMiddle:function(){return UY},ellipsisTail:function(){return WY},getDefault:function(){return jY}});var r={};n.r(r),n.d(r,{equidistance:function(){return eq},equidistanceWithReverseBoth:function(){return tq},getDefault:function(){return $Y},reserveBoth:function(){return JY},reserveFirst:function(){return XY},reserveLast:function(){return QY}});var o={};n.r(o),n.d(o,{fixedAngle:function(){return rq},getDefault:function(){return iq},unfixedAngle:function(){return oq}});var a={};n.r(a),n.d(a,{autoEllipsis:function(){return i},autoHide:function(){return r},autoRotate:function(){return o}});var s={};n.r(s),n.d(s,{Base:function(){return hq},Circle:function(){return vq},Html:function(){return Sq},Line:function(){return pq}});var l={};n.r(l),n.d(l,{CONTAINER_CLASS:function(){return zq},CROSSHAIR_X:function(){return Yq},CROSSHAIR_Y:function(){return qq},LIST_CLASS:function(){return Vq},LIST_ITEM_CLASS:function(){return Wq},MARKER_CLASS:function(){return Uq},NAME_CLASS:function(){return Kq},TITLE_CLASS:function(){return jq},VALUE_CLASS:function(){return Gq}});var c={};n.r(c),n.d(c,{Base:function(){return s1},Circle:function(){return c1},Ellipse:function(){return h1},Image:function(){return g1},Line:function(){return _1},Marker:function(){return P1},Path:function(){return G1},Polygon:function(){return q1},Polyline:function(){return X1},Rect:function(){return J1},Text:function(){return t2}});var u={};n.r(u),n.d(u,{Canvas:function(){return a2},Group:function(){return o1},Shape:function(){return c},getArcParams:function(){return Z0},version:function(){return s2}});var d={};n.r(d),n.d(d,{Base:function(){return b2},Circle:function(){return S2},Dom:function(){return k2},Ellipse:function(){return E2},Image:function(){return N2},Line:function(){return D2},Marker:function(){return A2},Path:function(){return P2},Polygon:function(){return F2},Polyline:function(){return H2},Rect:function(){return j2},Text:function(){return Y2}});var h={};n.r(h),n.d(h,{Canvas:function(){return p3},Group:function(){return y2},Shape:function(){return d},version:function(){return g3}});var f={};n.r(f),n.d(f,{cluster:function(){return Sse},hierarchy:function(){return Bre},pack:function(){return Ore},packEnclose:function(){return fre},packSiblings:function(){return Ere},partition:function(){return vse},stratify:function(){return Tse},tree:function(){return Ase},treemap:function(){return Bse},treemapBinary:function(){return Hse},treemapDice:function(){return gse},treemapResquarify:function(){return jse},treemapSlice:function(){return Mse},treemapSliceDice:function(){return zse},treemapSquarify:function(){return Fse}});var p={};n.r(p),n.d(p,{defaultToken:function(){return kve},emptyTheme:function(){return Eve},hashCode:function(){return xve},token:function(){return Tve},useToken:function(){return Nve}});var g,v=n(72791),m=n.t(v,2),y=n(1250),_=n(93433),b=n(15671),C=n(43144),S=n(60136),w=n(27277),k=n(29439),x=n(37762),E=n(74165),T=n(15861),N=n(4942),I=n(28664);function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},D.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(g||(g={}));var L,O="popstate";function R(e){return void 0===e&&(e={}),B((function(e,t){var n=e.location;return M("",{pathname:n.pathname,search:n.search,hash:n.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:P(t)}),null,e)}function A(e){return{usr:e.state,key:e.key}}function M(e,t,n,i){return void 0===n&&(n=null),D({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?Z(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function P(e){var t=e.pathname,n=void 0===t?"/":t,i=e.search,r=void 0===i?"":i,o=e.hash,a=void 0===o?"":o;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function Z(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function F(e){var t="undefined"!==typeof window&&"undefined"!==typeof window.location&&"null"!==window.location.origin?window.location.origin:"unknown://unknown",n="string"===typeof e?e:P(e);return new URL(n,t)}function B(e,t,n,i){void 0===i&&(i={});var r=i,o=r.window,a=void 0===o?document.defaultView:o,s=r.v5Compat,l=void 0!==s&&s,c=a.history,u=g.Pop,d=null;function h(){u=g.Pop,d&&d({action:u,location:f.location})}var f={get action(){return u},get location(){return e(a,c)},listen:function(e){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(O,h),d=e,function(){a.removeEventListener(O,h),d=null}},createHref:function(e){return t(a,e)},encodeLocation:function(e){var t=F(P(e));return D({},e,{pathname:t.pathname,search:t.search,hash:t.hash})},push:function(e,t){u=g.Push;var i=M(f.location,e,t);n&&n(i,e);var r=A(i),o=f.createHref(i);try{c.pushState(r,"",o)}catch(s){a.location.assign(o)}l&&d&&d({action:u,location:f.location})},replace:function(e,t){u=g.Replace;var i=M(f.location,e,t);n&&n(i,e);var r=A(i),o=f.createHref(i);c.replaceState(r,"",o),l&&d&&d({action:u,location:f.location})},go:function(e){return c.go(e)}};return f}function H(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n=new Set),e.map((function(e,i){var r=[].concat((0,_.Z)(t),[i]),o="string"===typeof e.id?e.id:r.join("-");return $(!0!==e.index||!e.children,"Cannot specify children on an index route"),$(!n.has(o),'Found a route id collision on id "'+o+"\". Route id's must be globally unique within Data Router usages"),n.add(o),function(e){return!0===e.index}(e)?D({},e,{id:o}):D({},e,{id:o,children:e.children?H(e.children,r,n):void 0})}))}function z(e,t,n){void 0===n&&(n="/");var i=q(("string"===typeof t?Z(t):t).pathname||"/",n);if(null==i)return null;var r=j(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(r);for(var o=null,a=0;null==o&&a<r.length;++a)o=G(r[a],Y(i));return o}function j(e,t,n,i){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i=""),e.forEach((function(e,r){var o={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};o.relativePath.startsWith("/")&&($(o.relativePath.startsWith(i),'Absolute route path "'+o.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(i.length));var a=te([i,o.relativePath]),s=n.concat(o);e.children&&e.children.length>0&&($(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),j(e.children,t,s,a)),(null!=e.path||e.index)&&t.push({path:a,score:U(a,e.index),routesMeta:s})})),t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(L||(L={}));var V=/^:\w+$/,W=function(e){return"*"===e};function U(e,t){var n=e.split("/"),i=n.length;return n.some(W)&&(i+=-2),t&&(i+=2),n.filter((function(e){return!W(e)})).reduce((function(e,t){return e+(V.test(t)?3:""===t?1:10)}),i)}function G(e,t){for(var n=e.routesMeta,i={},r="/",o=[],a=0;a<n.length;++a){var s=n[a],l=a===n.length-1,c="/"===r?t:t.slice(r.length)||"/",u=K({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c);if(!u)return null;Object.assign(i,u.params);var d=s.route;o.push({params:i,pathname:te([r,u.pathname]),pathnameBase:ne(te([r,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(r=te([r,u.pathnameBase]))}return o}function K(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);X("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');var i=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(function(e,t){return i.push(t),"([^\\/]+)"}));e.endsWith("*")?(i.push("*"),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))");return[new RegExp(r,t?void 0:"i"),i]}(e.path,e.caseSensitive,e.end),i=(0,k.Z)(n,2),r=i[0],o=i[1],a=t.match(r);if(!a)return null;var s=a[0],l=s.replace(/(.)\/+$/,"$1"),c=a.slice(1),u=o.reduce((function(e,t,n){if("*"===t){var i=c[n]||"";l=s.slice(0,s.length-i.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return X(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(c[n]||"",t),e}),{});return{params:u,pathname:s,pathnameBase:l,pattern:e}}function Y(e){try{return decodeURI(e)}catch(t){return X(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function q(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&"/"!==i?null:e.slice(n)||"/"}function $(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function X(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(Fc){}}}function Q(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function J(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function ee(e,t,n,i){var r;void 0===i&&(i=!1),"string"===typeof e?r=Z(e):($(!(r=D({},e)).pathname||!r.pathname.includes("?"),Q("?","pathname","search",r)),$(!r.pathname||!r.pathname.includes("#"),Q("#","pathname","hash",r)),$(!r.search||!r.search.includes("#"),Q("#","search","hash",r)));var o,a=""===e||""===r.pathname,s=a?"/":r.pathname;if(i||null==s)o=n;else{var l=t.length-1;if(s.startsWith("..")){for(var c=s.split("/");".."===c[0];)c.shift(),l-=1;r.pathname=c.join("/")}o=l>=0?t[l]:"/"}var u=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?Z(e):e,i=n.pathname,r=n.search,o=void 0===r?"":r,a=n.hash,s=void 0===a?"":a,l=i?i.startsWith("/")?i:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(i,t):t;return{pathname:l,search:ie(o),hash:re(s)}}(r,o),d=s&&"/"!==s&&s.endsWith("/"),h=(a||"."===s)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!h||(u.pathname+="/"),u}var te=function(e){return e.join("/").replace(/\/\/+/g,"/")},ne=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},ie=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},re=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},oe=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){return(0,b.Z)(this,n),t.apply(this,arguments)}return(0,C.Z)(n)}((0,I.Z)(Error)),ae=function(){function e(t){var n,i=this;(0,b.Z)(this,e),this.pendingKeys=new Set,this.subscriber=void 0,$(t&&"object"===typeof t&&!Array.isArray(t),"defer() only accepts plain objects"),this.abortPromise=new Promise((function(e,t){return n=t})),this.controller=new AbortController;var r=function(){return n(new oe("Deferred data aborted"))};this.unlistenAbortSignal=function(){return i.controller.signal.removeEventListener("abort",r)},this.controller.signal.addEventListener("abort",r),this.data=Object.entries(t).reduce((function(e,t){var n=(0,k.Z)(t,2),r=n[0],o=n[1];return Object.assign(e,(0,N.Z)({},r,i.trackPromise(r,o)))}),{})}return(0,C.Z)(e,[{key:"trackPromise",value:function(e,t){var n=this;if(!(t instanceof Promise))return t;this.pendingKeys.add(e);var i=Promise.race([t,this.abortPromise]).then((function(t){return n.onSettle(i,e,null,t)}),(function(t){return n.onSettle(i,e,t)}));return i.catch((function(){})),Object.defineProperty(i,"_tracked",{get:function(){return!0}}),i}},{key:"onSettle",value:function(e,t,n,i){if(this.controller.signal.aborted&&n instanceof oe)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:function(){return n}}),Promise.reject(n);this.pendingKeys.delete(t),this.done&&this.unlistenAbortSignal();var r=this.subscriber;return n?(Object.defineProperty(e,"_error",{get:function(){return n}}),r&&r(!1),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:function(){return i}}),r&&r(!1),i)}},{key:"subscribe",value:function(e){this.subscriber=e}},{key:"cancel",value:function(){var e=this;this.controller.abort(),this.pendingKeys.forEach((function(t,n){return e.pendingKeys.delete(n)}));var t=this.subscriber;t&&t(!0)}},{key:"resolveData",value:function(){var e=(0,T.Z)((0,E.Z)().mark((function e(t){var n,i,r=this;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!1,this.done){e.next=7;break}return i=function(){return r.cancel()},t.addEventListener("abort",i),e.next=6,new Promise((function(e){r.subscribe((function(n){t.removeEventListener("abort",i),(n||r.done)&&e(n)}))}));case 6:n=e.sent;case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"done",get:function(){return 0===this.pendingKeys.size}},{key:"unwrappedData",get:function(){return $(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((function(e,t){var n=(0,k.Z)(t,2),i=n[0],r=n[1];return Object.assign(e,(0,N.Z)({},i,function(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}(r)))}),{})}}]),e}();var se=(0,C.Z)((function e(t,n,i){(0,b.Z)(this,e),this.status=t,this.statusText=n||"",this.data=i}));function le(e){return e instanceof se}var ce={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},ue={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},de=!("undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement);function he(e){$(e.routes.length>0,"You must provide a non-empty routes array to createRouter");var t=H(e.routes),n=null,i=new Set,r=null,o=null,a=null,s=!1,l=z(t,e.history.location,e.basename),c=null;if(null==l){var u=Ie(t),d=u.matches,h=u.route,f=u.error;l=d,c=(0,N.Z)({},h.id,f)}var p,v,m=!l.some((function(e){return e.route.loader}))||null!=e.hydrationData,y={historyAction:e.history.action,location:e.history.location,matches:l,initialized:m,navigation:ce,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||c,fetchers:new Map},b=g.Pop,C=!1,S=!1,w=!1,I=[],L=[],O=new Map,R=0,A=-1,P=new Map,Z=new Set,F=new Map,B=new Map;function j(e){y=D({},y,e),i.forEach((function(e){return e(y)}))}function V(t,n){var i;j(D({},null!=y.actionData&&null!=y.navigation.formMethod&&"loading"===y.navigation.state&&(null==(i=y.navigation.formAction)?void 0:i.split("?")[0])===t.pathname?{}:{actionData:null},n,n.loaderData?{loaderData:Ee(y.loaderData,n.loaderData,n.matches||[])}:{},{historyAction:b,location:t,initialized:!0,navigation:ce,revalidation:"idle",restoreScrollPosition:!y.navigation.formData&&we(t,n.matches||y.matches),preventScrollReset:C})),S||b===g.Pop||(b===g.Push?e.history.push(t,t.state):b===g.Replace&&e.history.replace(t,t.state)),b=g.Pop,C=!1,S=!1,w=!1,I=[],L=[]}function W(){return W=(0,T.Z)((0,E.Z)().mark((function t(n,i){var r,o,a,s,l,c,u;return(0,E.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("number"!==typeof n){t.next=3;break}return e.history.go(n),t.abrupt("return");case 3:return r=pe(n,i),o=r.path,a=r.submission,s=r.error,l=M(y.location,o,i&&i.state),l=e.history.encodeLocation(l),c=!0===(i&&i.replace)||null!=a?g.Replace:g.Push,u=i&&"preventScrollReset"in i?!0===i.preventScrollReset:void 0,t.next=10,U(c,l,{submission:a,pendingError:s,preventScrollReset:u,replace:i&&i.replace});case 10:return t.abrupt("return",t.sent);case 11:case"end":return t.stop()}}),t)}))),W.apply(this,arguments)}function U(e,t,n){return G.apply(this,arguments)}function G(){return G=(0,T.Z)((0,E.Z)().mark((function n(i,r,o){var a,s,l,c,u,d,h,f,p,g,m,_,w,k,x;return(0,E.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(v&&v.abort(),v=null,b=i,S=!0===(o&&o.startUninterruptedRevalidation),Ce(y.location,y.matches),C=!0===(o&&o.preventScrollReset),a=o&&o.overrideNavigation,s=z(t,r,e.basename)){n.next=13;break}return l=Ie(t),c=l.matches,u=l.route,d=l.error,_e(),V(r,{matches:c,loaderData:{},errors:(0,N.Z)({},u.id,d)}),n.abrupt("return");case 13:if(!Re(y.location,r)){n.next=16;break}return V(r,{matches:s}),n.abrupt("return");case 16:if(v=new AbortController,h=Se(r,v.signal,o&&o.submission),!o||!o.pendingError){n.next=22;break}p=(0,N.Z)({},Te(s).route.id,o.pendingError),n.next=32;break;case 22:if(!o||!o.submission){n.next=32;break}return n.next=25,K(h,r,o.submission,s,{replace:o.replace});case 25:if(!(g=n.sent).shortCircuited){n.next=28;break}return n.abrupt("return");case 28:f=g.pendingActionData,p=g.pendingActionError,m=D({state:"loading",location:r},o.submission),a=m;case 32:return n.next=34,q(h,r,s,a,o&&o.submission,o&&o.replace,f,p);case 34:if(_=n.sent,w=_.shortCircuited,k=_.loaderData,x=_.errors,!w){n.next=40;break}return n.abrupt("return");case 40:v=null,V(r,{matches:s,loaderData:k,errors:x});case 42:case"end":return n.stop()}}),n)}))),G.apply(this,arguments)}function K(e,t,n,i,r){return Y.apply(this,arguments)}function Y(){return Y=(0,T.Z)((0,E.Z)().mark((function e(t,n,i,r,o){var a,s,l,c;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(oe(),j({navigation:D({state:"submitting",location:n},i)}),(s=Ve(r,n)).route.action){e.next=8;break}a=De(n),e.next=13;break;case 8:return e.next=10,be("action",t,s,r,p.basename);case 10:if(a=e.sent,!t.signal.aborted){e.next=13;break}return e.abrupt("return",{shortCircuited:!0});case 13:if(!Pe(a)){e.next=18;break}return l=D({state:"loading",location:M(y.location,a.location)},i),e.next=17,te(a,l,o&&o.replace);case 17:return e.abrupt("return",{shortCircuited:!0});case 18:if(!Me(a)){e.next=22;break}return c=Te(r,s.route.id),!0!==(o&&o.replace)&&(b=g.Push),e.abrupt("return",{pendingActionError:(0,N.Z)({},c.route.id,a.error)});case 22:if(!Ae(a)){e.next=24;break}throw new Error("defer() is not supported in actions");case 24:return e.abrupt("return",{pendingActionData:(0,N.Z)({},s.route.id,a.data)});case 25:case"end":return e.stop()}}),e)}))),Y.apply(this,arguments)}function q(e,t,n,i,r,o,a,s){return X.apply(this,arguments)}function X(){return X=(0,T.Z)((0,E.Z)().mark((function e(t,n,i,r,o,a,s,l){var c,u,d,h,f,p,g,m,_,b,C,x,T,N,M;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((c=r)||(c={state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0}),u=me(y,i,o,n,w,I,L,s,l,F),d=(0,k.Z)(u,2),h=d[0],f=d[1],_e((function(e){return!(i&&i.some((function(t){return t.route.id===e})))||h&&h.some((function(t){return t.route.id===e}))})),0!==h.length||0!==f.length){e.next=7;break}return V(n,{matches:i,loaderData:Ee(y.loaderData,{},i),errors:l||null,actionData:s||null}),e.abrupt("return",{shortCircuited:!0});case 7:return S||(f.forEach((function(e){var t=(0,k.Z)(e,1)[0],n=y.fetchers.get(t),i={state:"loading",data:n&&n.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};y.fetchers.set(t,i)})),j(D({navigation:c,actionData:s||y.actionData||null},f.length>0?{fetchers:new Map(y.fetchers)}:{}))),A=++R,f.forEach((function(e){var t=(0,k.Z)(e,1)[0];return O.set(t,v)})),e.next=12,ie(y.matches,i,h,f,t);case 12:if(p=e.sent,g=p.results,m=p.loaderResults,_=p.fetcherResults,!t.signal.aborted){e.next=18;break}return e.abrupt("return",{shortCircuited:!0});case 18:if(f.forEach((function(e){var t=(0,k.Z)(e,1)[0];return O.delete(t)})),!(b=Le(g))){e.next=25;break}return C=ge(y,b),e.next=24,te(b,C,a);case 24:return e.abrupt("return",{shortCircuited:!0});case 25:return x=xe(y,i,h,m,l,f,_,B),T=x.loaderData,N=x.errors,B.forEach((function(e,t){e.subscribe((function(n){(n||e.done)&&B.delete(t)}))})),ve(),M=ye(A),e.abrupt("return",D({loaderData:T,errors:N},M||f.length>0?{fetchers:new Map(y.fetchers)}:{}));case 30:case"end":return e.stop()}}),e)}))),X.apply(this,arguments)}function Q(e){return y.fetchers.get(e)||ue}function J(){return J=(0,T.Z)((0,E.Z)().mark((function n(i,r,o,a,s,l){var c,u,d,h,f,g,m,_,C,S,x,T,H,W,U,G,K,Y,q,X,Q,J,ee,ne,re,se,le,ce;return(0,E.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(oe(),F.delete(i),a.route.action){n.next=6;break}return c=De(o),u=c.error,ae(i,r,u),n.abrupt("return");case 6:return d=y.fetchers.get(i),h=D({state:"submitting"},l,{data:d&&d.data}),y.fetchers.set(i,h),j({fetchers:new Map(y.fetchers)}),f=new AbortController,g=Se(o,f.signal,l),O.set(i,f),n.next=15,be("action",g,a,s,p.basename);case 15:if(m=n.sent,!g.signal.aborted){n.next=19;break}return O.get(i)===f&&O.delete(i),n.abrupt("return");case 19:if(!Pe(m)){n.next=29;break}return O.delete(i),Z.add(i),_=D({state:"loading"},l,{data:void 0}),y.fetchers.set(i,_),j({fetchers:new Map(y.fetchers)}),C=D({state:"loading",location:M(y.location,m.location)},l),n.next=28,te(m,C);case 28:return n.abrupt("return");case 29:if(!Me(m)){n.next=32;break}return ae(i,r,m.error),n.abrupt("return");case 32:return Ae(m)&&$(!1,"defer() is not supported in actions"),S=y.navigation.location||y.location,x=Se(S,f.signal),$(T="idle"!==y.navigation.state?z(t,y.navigation.location,e.basename):y.matches,"Didn't find any matches after fetcher action"),H=++R,P.set(i,H),W=D({state:"loading",data:m.data},l),y.fetchers.set(i,W),U=me(y,T,l,S,w,I,L,(0,N.Z)({},a.route.id,m.data),void 0,F),G=(0,k.Z)(U,2),K=G[0],(Y=G[1]).filter((function(e){return(0,k.Z)(e,1)[0]!==i})).forEach((function(e){var t=(0,k.Z)(e,1)[0],n=y.fetchers.get(t),i={state:"loading",data:n&&n.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};y.fetchers.set(t,i),O.set(t,f)})),j({fetchers:new Map(y.fetchers)}),n.next=46,ie(y.matches,T,K,Y,x);case 46:if(q=n.sent,X=q.results,Q=q.loaderResults,J=q.fetcherResults,!f.signal.aborted){n.next=52;break}return n.abrupt("return");case 52:if(P.delete(i),O.delete(i),Y.forEach((function(e){var t=(0,k.Z)(e,1)[0];return O.delete(t)})),!(ee=Le(X))){n.next=61;break}return C=ge(y,ee),n.next=60,te(ee,C);case 60:return n.abrupt("return");case 61:ne=xe(y,y.matches,K,Q,void 0,Y,J,B),re=ne.loaderData,se=ne.errors,le={state:"idle",data:m.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},y.fetchers.set(i,le),ce=ye(H),"loading"===y.navigation.state&&H>A?($(b,"Expected pending action"),v&&v.abort(),V(y.navigation.location,{matches:T,loaderData:re,errors:se,fetchers:new Map(y.fetchers)})):(j(D({errors:se,loaderData:Ee(y.loaderData,re,T)},ce?{fetchers:new Map(y.fetchers)}:{})),w=!1);case 66:case"end":return n.stop()}}),n)}))),J.apply(this,arguments)}function ee(){return ee=(0,T.Z)((0,E.Z)().mark((function e(t,n,i,r,o){var a,s,l,c,u,d,h,f;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=y.fetchers.get(t),s={state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,data:a&&a.data},y.fetchers.set(t,s),j({fetchers:new Map(y.fetchers)}),l=new AbortController,c=Se(i,l.signal),O.set(t,l),e.next=9,be("loader",c,r,o,p.basename);case 9:if(!Ae(u=e.sent)){e.next=17;break}return e.next=13,Be(u,c.signal,!0);case 13:if(e.t0=e.sent,e.t0){e.next=16;break}e.t0=u;case 16:u=e.t0;case 17:if(O.get(t)===l&&O.delete(t),!c.signal.aborted){e.next=20;break}return e.abrupt("return");case 20:if(!Pe(u)){e.next=25;break}return d=ge(y,u),e.next=24,te(u,d);case 24:return e.abrupt("return");case 25:if(!Me(u)){e.next=30;break}return h=Te(y.matches,n),y.fetchers.delete(t),j({fetchers:new Map(y.fetchers),errors:(0,N.Z)({},h.route.id,u.error)}),e.abrupt("return");case 30:$(!Ae(u),"Unhandled fetcher deferred data"),f={state:"idle",data:u.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},y.fetchers.set(t,f),j({fetchers:new Map(y.fetchers)});case 34:case"end":return e.stop()}}),e)}))),ee.apply(this,arguments)}function te(e,t,n){return ne.apply(this,arguments)}function ne(){return ne=(0,T.Z)((0,E.Z)().mark((function e(t,n,i){var r;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.revalidate&&(w=!0),$(n.location,"Expected a location on the redirect navigation"),v=null,r=!0===i?g.Replace:g.Push,e.next=6,U(r,n.location,{overrideNavigation:n});case 6:case"end":return e.stop()}}),e)}))),ne.apply(this,arguments)}function ie(e,t,n,i,r){return re.apply(this,arguments)}function re(){return re=(0,T.Z)((0,E.Z)().mark((function e(t,n,i,r,o){var a,s,l;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([].concat((0,_.Z)(i.map((function(e){return be("loader",o,e,n,p.basename)}))),(0,_.Z)(r.map((function(e){var t=(0,k.Z)(e,4),n=t[1],i=t[2],r=t[3];return be("loader",Se(n,o.signal),i,r,p.basename)})))));case 2:return a=e.sent,s=a.slice(0,i.length),l=a.slice(i.length),e.next=7,Promise.all([Ze(t,i,s,o.signal,!1,y.loaderData),Ze(t,r.map((function(e){return(0,k.Z)(e,3)[2]})),l,o.signal,!0)]);case 7:return e.abrupt("return",{results:a,loaderResults:s,fetcherResults:l});case 8:case"end":return e.stop()}}),e)}))),re.apply(this,arguments)}function oe(){var e;w=!0,(e=I).push.apply(e,(0,_.Z)(_e())),F.forEach((function(e,t){O.has(t)&&(L.push(t),he(t))}))}function ae(e,t,n){var i=Te(y.matches,t);le(e),j({errors:(0,N.Z)({},i.route.id,n),fetchers:new Map(y.fetchers)})}function le(e){O.has(e)&&he(e),F.delete(e),P.delete(e),Z.delete(e),y.fetchers.delete(e)}function he(e){var t=O.get(e);$(t,"Expected fetch controller: "+e),t.abort(),O.delete(e)}function fe(e){var t,n=(0,x.Z)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,r={state:"idle",data:Q(i).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};y.fetchers.set(i,r)}}catch(o){n.e(o)}finally{n.f()}}function ve(){var e,t=[],n=(0,x.Z)(Z);try{for(n.s();!(e=n.n()).done;){var i=e.value,r=y.fetchers.get(i);$(r,"Expected fetcher: "+i),"loading"===r.state&&(Z.delete(i),t.push(i))}}catch(o){n.e(o)}finally{n.f()}fe(t)}function ye(e){var t,n=[],i=(0,x.Z)(P);try{for(i.s();!(t=i.n()).done;){var r=(0,k.Z)(t.value,2),o=r[0];if(r[1]<e){var a=y.fetchers.get(o);$(a,"Expected fetcher: "+o),"loading"===a.state&&(he(o),P.delete(o),n.push(o))}}}catch(s){i.e(s)}finally{i.f()}return fe(n),n.length>0}function _e(e){var t=[];return B.forEach((function(n,i){e&&!e(i)||(n.cancel(),t.push(i),B.delete(i))})),t}function Ce(e,t){if(r&&o&&a){var n=t.map((function(e){return je(e,y.loaderData)})),i=o(e,n)||e.key;r[i]=a()}}function we(e,t){if(r&&o&&a){var n=t.map((function(e){return je(e,y.loaderData)})),i=o(e,n)||e.key,s=r[i];if("number"===typeof s)return s}return null}return p={get basename(){return e.basename},get state(){return y},get routes(){return t},initialize:function(){return n=e.history.listen((function(e){return U(e.action,e.location)})),y.initialized||U(g.Pop,y.location),p},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},enableScrollRestoration:function(e,t,n){if(r=e,a=t,o=n||function(e){return e.key},!s&&y.navigation===ce){s=!0;var i=we(y.location,y.matches);null!=i&&j({restoreScrollPosition:i})}return function(){r=null,a=null,o=null}},navigate:function(e,t){return W.apply(this,arguments)},fetch:function(n,i,r,o){if(de)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");O.has(n)&&he(n);var a=z(t,r,e.basename);if(a){var s=pe(r,o,!0),l=s.path,c=s.submission,u=Ve(a,l);c?function(e,t,n,i,r,o){J.apply(this,arguments)}(n,i,l,u,a,c):(F.set(n,[l,u,a]),function(e,t,n,i,r){ee.apply(this,arguments)}(n,i,l,u,a))}else ae(n,i,new se(404,"Not Found",null))},revalidate:function(){oe(),j({revalidation:"loading"}),"submitting"!==y.navigation.state&&("idle"!==y.navigation.state?U(b||y.historyAction,y.navigation.location,{overrideNavigation:y.navigation}):U(y.historyAction,y.location,{startUninterruptedRevalidation:!0}))},createHref:function(t){return e.history.createHref(t)},getFetcher:Q,deleteFetcher:le,dispose:function(){n&&n(),i.clear(),v&&v.abort(),y.fetchers.forEach((function(e,t){return le(t)}))},_internalFetchControllers:O,_internalActiveDeferreds:B},p}var fe=new Set(["POST","PUT","PATCH","DELETE"]);new Set(["GET","HEAD"].concat((0,_.Z)(fe)));function pe(e,t,n){void 0===n&&(n=!1);var i="string"===typeof e?e:P(e);if(!t||!("formMethod"in t)&&!("formData"in t))return{path:i};if(null!=t.formMethod&&"get"!==t.formMethod)return{path:i,submission:{formMethod:t.formMethod,formAction:Oe(i),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData}};if(!t.formData)return{path:i};var r=Z(i);try{var o=we(t.formData);n&&r.search&&ze(r.search)&&o.append("index",""),r.search="?"+o}catch(Fc){return{path:i,error:new se(400,"Bad Request","Cannot submit binary form data using GET")}}return{path:P(r)}}function ge(e,t){var n=e.navigation,i=n.formMethod,r=n.formAction,o=n.formEncType,a=n.formData;return{state:"loading",location:M(e.location,t.location),formMethod:i||void 0,formAction:r||void 0,formEncType:o||void 0,formData:a||void 0}}function ve(e,t){var n=e;if(t){var i=e.findIndex((function(e){return e.route.id===t}));i>=0&&(n=e.slice(0,i))}return n}function me(e,t,n,i,r,o,a,s,l,c){var u=l?Object.values(l)[0]:s?Object.values(s)[0]:null,d=ve(t,l?Object.keys(l)[0]:void 0).filter((function(t,a){return null!=t.route.loader&&(function(e,t,n){var i=!t||n.route.id!==t.route.id,r=void 0===e[n.route.id];return i||r}(e.loaderData,e.matches[a],t)||o.some((function(e){return e===t.route.id}))||_e(e.location,e.matches[a],n,i,t,r,u))})),h=[];return c&&c.forEach((function(e,t){var i=(0,k.Z)(e,3),o=i[0],s=i[1],l=i[2];if(a.includes(t))h.push([t,o,s,l]);else if(r){_e(o,s,n,o,s,r,u)&&h.push([t,o,s,l])}})),[d,h]}function ye(e,t){var n=e.route.path;return e.pathname!==t.pathname||n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function _e(e,t,n,i,r,o,a){var s=F(e),l=t.params,c=F(i),u=r.params,d=ye(t,r)||s.toString()===c.toString()||s.search!==c.search||o;if(r.route.shouldRevalidate){var h=r.route.shouldRevalidate(D({currentUrl:s,currentParams:l,nextUrl:c,nextParams:u},n,{actionResult:a,defaultShouldRevalidate:d}));if("boolean"===typeof h)return h}return d}function be(e,t,n,i,r,o,a){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,T.Z)((0,E.Z)().mark((function e(t,n,i,r,o,a,s){var l,c,u,d,h,f,p,g,v,m,y,_,b,C,S;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===a&&(a=!1),void 0===s&&(s=!1),d=new Promise((function(e,t){return u=t})),h=function(){return u()},n.signal.addEventListener("abort",h),e.prev=5,$(f=i.route[t],"Could not find the "+t+' to run on the "'+i.route.id+'" route'),e.next=10,Promise.race([f({request:n,params:i.params}),d]);case 10:c=e.sent,e.next=17;break;case 13:e.prev=13,e.t0=e.catch(5),l=L.error,c=e.t0;case 17:return e.prev=17,n.signal.removeEventListener("abort",h),e.finish(17);case 20:if(!(c instanceof Response)){e.next=51;break}if(!((p=c.status)>=300&&p<=399)){e.next=36;break}if($(g=c.headers.get("Location"),"Redirects returned/thrown from loaders/actions must have a Location header"),v=r.slice(0,r.indexOf(i)+1),m=J(v).map((function(e){return e.pathnameBase})),y=F(n.url).pathname,$(P(_=ee(g,m,y)),"Unable to resolve redirect location: "+c.headers.get("Location")),o&&(b=_.pathname,_.pathname="/"===b?o:te([o,b])),g=P(_),!a){e.next=35;break}throw c.headers.set("Location",g),c;case 35:return e.abrupt("return",{type:L.redirect,status:p,location:g,revalidate:null!==c.headers.get("X-Remix-Revalidate")});case 36:if(!s){e.next=38;break}throw{type:l||L.data,response:c};case 38:if(!(S=c.headers.get("Content-Type"))||!S.startsWith("application/json")){e.next=45;break}return e.next=42,c.json();case 42:C=e.sent,e.next=48;break;case 45:return e.next=47,c.text();case 47:C=e.sent;case 48:if(l!==L.error){e.next=50;break}return e.abrupt("return",{type:l,error:new se(p,c.statusText,C),headers:c.headers});case 50:return e.abrupt("return",{type:L.data,data:C,statusCode:c.status,headers:c.headers});case 51:if(l!==L.error){e.next=53;break}return e.abrupt("return",{type:l,error:c});case 53:if(!(c instanceof ae)){e.next=55;break}return e.abrupt("return",{type:L.deferred,deferredData:c});case 55:return e.abrupt("return",{type:L.data,data:c});case 56:case"end":return e.stop()}}),e,null,[[5,13,17,20]])}))),Ce.apply(this,arguments)}function Se(e,t,n){var i=F(Oe(e)).toString(),r={signal:t};if(n){var o=n.formMethod,a=n.formEncType,s=n.formData;r.method=o.toUpperCase(),r.body="application/x-www-form-urlencoded"===a?we(s):s}return new Request(i,r)}function we(e){var t,n=new URLSearchParams,i=(0,x.Z)(e.entries());try{for(i.s();!(t=i.n()).done;){var r=(0,k.Z)(t.value,2),o=r[0],a=r[1];$("string"===typeof a,'File inputs are not supported with encType "application/x-www-form-urlencoded", please use "multipart/form-data" instead.'),n.append(o,a)}}catch(s){i.e(s)}finally{i.f()}return n}function ke(e,t,n,i,r){var o,a={},s=null,l=!1,c={};return n.forEach((function(n,u){var d=t[u].route.id;if($(!Pe(n),"Cannot handle redirect results in processLoaderData"),Me(n)){var h=Te(e,d),f=n.error;i&&(f=Object.values(i)[0],i=void 0),s=Object.assign(s||{},(0,N.Z)({},h.route.id,f)),l||(l=!0,o=le(n.error)?n.error.status:500),n.headers&&(c[d]=n.headers)}else Ae(n)?(r&&r.set(d,n.deferredData),a[d]=n.deferredData.data):(a[d]=n.data,null==n.statusCode||200===n.statusCode||l||(o=n.statusCode),n.headers&&(c[d]=n.headers))})),i&&(s=i),{loaderData:a,errors:s,statusCode:o||200,loaderHeaders:c}}function xe(e,t,n,i,r,o,a,s){for(var l=ke(t,n,i,r,s),c=l.loaderData,u=l.errors,d=0;d<o.length;d++){var h=(0,k.Z)(o[d],3),f=h[0],p=h[2];$(void 0!==a&&void 0!==a[d],"Did not find corresponding fetcher result");var g=a[d];if(Me(g)){var v=Te(e.matches,p.route.id);u&&u[v.route.id]||(u=D({},u,(0,N.Z)({},v.route.id,g.error))),e.fetchers.delete(f)}else{if(Pe(g))throw new Error("Unhandled fetcher revalidation redirect");if(Ae(g))throw new Error("Unhandled fetcher deferred data");var m={state:"idle",data:g.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};e.fetchers.set(f,m)}}return{loaderData:c,errors:u}}function Ee(e,t,n){var i=D({},t);return n.forEach((function(n){var r=n.route.id;void 0===t[r]&&void 0!==e[r]&&(i[r]=e[r])})),i}function Te(e,t){return(t?e.slice(0,e.findIndex((function(e){return e.route.id===t}))+1):(0,_.Z)(e)).reverse().find((function(e){return!0===e.route.hasErrorBoundary}))||e[0]}function Ne(e,t,n){var i=e.find((function(e){return e.index||!e.path||"/"===e.path}))||{id:"__shim-"+t+"-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i,error:new se(t,n,null)}}function Ie(e){return Ne(e,404,"Not Found")}function De(e){var t="string"===typeof e?e:P(e);return console.warn("You're trying to submit to a route that does not have an action. To fix this, please add an `action` function to the route for ["+t+"]"),{type:L.error,error:new se(405,"Method Not Allowed","")}}function Le(e){for(var t=e.length-1;t>=0;t--){var n=e[t];if(Pe(n))return n}}function Oe(e){return P(D({},"string"===typeof e?Z(e):e,{hash:""}))}function Re(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function Ae(e){return e.type===L.deferred}function Me(e){return e.type===L.error}function Pe(e){return(e&&e.type)===L.redirect}function Ze(e,t,n,i,r,o){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,T.Z)((0,E.Z)().mark((function e(t,n,i,r,o,a){var s,l;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=(0,E.Z)().mark((function e(s){var l,c,u,d;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=i[s],c=n[s],u=t.find((function(e){return e.route.id===c.route.id})),d=null!=u&&!ye(u,c)&&void 0!==(a&&a[c.route.id]),!Ae(l)||!o&&!d){e.next=7;break}return e.next=7,Be(l,r,o).then((function(e){e&&(i[s]=e||i[s])}));case 7:case"end":return e.stop()}}),e)})),l=0;case 2:if(!(l<i.length)){e.next=7;break}return e.delegateYield(s(l),"t0",4);case 4:l++,e.next=2;break;case 7:case"end":return e.stop()}}),e)}))),Fe.apply(this,arguments)}function Be(e,t,n){return He.apply(this,arguments)}function He(){return(He=(0,T.Z)((0,E.Z)().mark((function e(t,n,i){return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===i&&(i=!1),e.next=3,t.deferredData.resolveData(n);case 3:if(!e.sent){e.next=6;break}return e.abrupt("return");case 6:if(!i){e.next=14;break}return e.prev=7,e.abrupt("return",{type:L.data,data:t.deferredData.unwrappedData});case 11:return e.prev=11,e.t0=e.catch(7),e.abrupt("return",{type:L.error,error:e.t0});case 14:return e.abrupt("return",{type:L.data,data:t.deferredData.data});case 15:case"end":return e.stop()}}),e,null,[[7,11]])})))).apply(this,arguments)}function ze(e){return new URLSearchParams(e).getAll("index").some((function(e){return""===e}))}function je(e,t){var n=e.route,i=e.pathname,r=e.params;return{id:n.id,pathname:i,params:r,data:t[n.id],handle:n.handle}}function Ve(e,t){var n="string"===typeof t?Z(t).search:t.search;if(e[e.length-1].route.index&&ze(n||""))return e[e.length-1];var i=J(e);return i[i.length-1]}function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},We.apply(this,arguments)}var Ue="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Ge=v.useState,Ke=v.useEffect,Ye=v.useLayoutEffect,qe=v.useDebugValue;function $e(e){var t=e.getSnapshot,n=e.value;try{var i=t();return!Ue(n,i)}catch(r){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement;var Xe=m.useSyncExternalStore,Qe=v.createContext(null);var Je=v.createContext(null);var et=v.createContext(null);var tt=v.createContext(null);var nt=v.createContext(null);var it=v.createContext(null);var rt=v.createContext({outlet:null,matches:[]});var ot=v.createContext(null);function at(){return null!=v.useContext(it)}function st(){return at()||$(!1),v.useContext(it).location}function lt(){at()||$(!1);var e=v.useContext(nt),t=e.basename,n=e.navigator,i=v.useContext(rt).matches,r=st().pathname,o=JSON.stringify(J(i).map((function(e){return e.pathnameBase}))),a=v.useRef(!1);v.useEffect((function(){a.current=!0}));var s=v.useCallback((function(e,i){if(void 0===i&&(i={}),a.current)if("number"!==typeof e){var s=ee(e,JSON.parse(o),r,"path"===i.relative);"/"!==t&&(s.pathname="/"===s.pathname?t:te([t,s.pathname])),(i.replace?n.replace:n.push)(s,i.state,i)}else n.go(e)}),[t,n,o,r]);return s}var ct=v.createContext(null);function ut(){var e=v.useContext(rt).matches,t=e[e.length-1];return t?t.params:{}}function dt(e,t){var n=(void 0===t?{}:t).relative,i=v.useContext(rt).matches,r=st().pathname,o=JSON.stringify(J(i).map((function(e){return e.pathnameBase})));return v.useMemo((function(){return ee(e,JSON.parse(o),r,"path"===n)}),[e,o,r,n])}function ht(){var e=function(){var e,t=v.useContext(ot),n=yt(pt.UseRouteError),i=v.useContext(rt),r=i.matches[i.matches.length-1];if(t)return t;return i||$(!1),!r.route.id&&$(!1),null==(e=n.errors)?void 0:e[r.route.id]}(),t=le(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unhandled Thrown Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:r},n):null,v.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own\xa0",v.createElement("code",{style:o},"errorElement")," props on\xa0",v.createElement("code",{style:o},"<Route>")))}var ft,pt,gt=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(e){var i;return(0,b.Z)(this,n),(i=t.call(this,e)).state={location:e.location,error:e.error},i}return(0,C.Z)(n,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return this.state.error?v.createElement(ot.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}}]),n}(v.Component);function vt(e){var t=e.routeContext,n=e.match,i=e.children,r=v.useContext(Qe);return r&&n.route.errorElement&&(r._deepestRenderedBoundaryId=n.route.id),v.createElement(rt.Provider,{value:t},i)}function mt(e,t,n){if(void 0===t&&(t=[]),null==e){if(null==n||!n.errors)return null;e=n.matches}var i=e,r=null==n?void 0:n.errors;if(null!=r){var o=i.findIndex((function(e){return e.route.id&&(null==r?void 0:r[e.route.id])}));o>=0||$(!1),i=i.slice(0,Math.min(i.length,o+1))}return i.reduceRight((function(e,o,a){var s=o.route.id?null==r?void 0:r[o.route.id]:null,l=n?o.route.errorElement||v.createElement(ht,null):null,c=function(){return v.createElement(vt,{match:o,routeContext:{outlet:e,matches:t.concat(i.slice(0,a+1))}},s?l:void 0!==o.route.element?o.route.element:e)};return n&&(o.route.errorElement||0===a)?v.createElement(gt,{location:n.location,component:l,error:s,children:c()}):c()}),null)}function yt(e){var t=v.useContext(et);return t||$(!1),t}!function(e){e.UseRevalidator="useRevalidator"}(ft||(ft={})),function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(pt||(pt={}));var _t;function bt(e){var t=e.fallbackElement,n=e.router,i=Xe(n.subscribe,(function(){return n.state}),(function(){return n.state})),r=v.useMemo((function(){return{createHref:n.createHref,go:function(e){return n.navigate(e)},push:function(e,t,i){return n.navigate(e,{state:t,preventScrollReset:null==i?void 0:i.preventScrollReset})},replace:function(e,t,i){return n.navigate(e,{replace:!0,state:t,preventScrollReset:null==i?void 0:i.preventScrollReset})}}}),[n]),o=n.basename||"/";return v.createElement(Je.Provider,{value:{router:n,navigator:r,static:!1,basename:o}},v.createElement(et.Provider,{value:i},v.createElement(wt,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:r},n.state.initialized?v.createElement(kt,null):t)))}function Ct(e){return function(e){var t=v.useContext(rt).outlet;return t?v.createElement(ct.Provider,{value:e},t):t}(e.context)}function St(e){$(!1)}function wt(e){var t=e.basename,n=void 0===t?"/":t,i=e.children,r=void 0===i?null:i,o=e.location,a=e.navigationType,s=void 0===a?g.Pop:a,l=e.navigator,c=e.static,u=void 0!==c&&c;at()&&$(!1);var d=n.replace(/^\/*/,"/"),h=v.useMemo((function(){return{basename:d,navigator:l,static:u}}),[d,l,u]);"string"===typeof o&&(o=Z(o));var f=o,p=f.pathname,m=void 0===p?"/":p,y=f.search,_=void 0===y?"":y,b=f.hash,C=void 0===b?"":b,S=f.state,w=void 0===S?null:S,k=f.key,x=void 0===k?"default":k,E=v.useMemo((function(){var e=q(m,d);return null==e?null:{pathname:e,search:_,hash:C,state:w,key:x}}),[d,m,_,C,w,x]);return null==E?null:v.createElement(nt.Provider,{value:h},v.createElement(it.Provider,{children:r,value:{location:E,navigationType:s}}))}function kt(e){var t=e.children,n=e.location,i=v.useContext(Je);return function(e,t){at()||$(!1);var n,i=v.useContext(et),r=v.useContext(rt).matches,o=r[r.length-1],a=o?o.params:{},s=(o&&o.pathname,o?o.pathnameBase:"/"),l=(o&&o.route,st());if(t){var c,u="string"===typeof t?Z(t):t;"/"===s||(null==(c=u.pathname)?void 0:c.startsWith(s))||$(!1),n=u}else n=l;var d=n.pathname||"/",h=z(e,{pathname:"/"===s?d:d.slice(s.length)||"/"}),f=mt(h&&h.map((function(e){return Object.assign({},e,{params:Object.assign({},a,e.params),pathname:te([s,e.pathname]),pathnameBase:"/"===e.pathnameBase?s:te([s,e.pathnameBase])})})),r,i||void 0);return t&&f?v.createElement(it.Provider,{value:{location:We({pathname:"/",search:"",hash:"",state:null,key:"default"},n),navigationType:g.Pop}},f):f}(i&&!t?i.router.routes:Et(t),n)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(_t||(_t={}));var xt=new Promise((function(){}));v.Component;function Et(e,t){void 0===t&&(t=[]);var n=[];return v.Children.forEach(e,(function(e,i){if(v.isValidElement(e))if(e.type!==v.Fragment){e.type!==St&&$(!1),e.props.index&&e.props.children&&$(!1);var r=[].concat((0,_.Z)(t),[i]),o={id:e.props.id||r.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,hasErrorBoundary:null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle};e.props.children&&(o.children=Et(e.props.children,r)),n.push(o)}else n.push.apply(n,Et(e.props.children,t))})),n}function Tt(e){return e.map((function(e){var t=We({},e);return null==t.hasErrorBoundary&&(t.hasErrorBoundary=null!=t.errorElement),t.children&&(t.children=Tt(t.children)),t}))}var Nt=function(e){e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((function(t){var n=t.getCLS,i=t.getFID,r=t.getFCP,o=t.getLCP,a=t.getTTFB;n(e),i(e),r(e),o(e),a(e)}))};function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},It.apply(this,arguments)}function Dt(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}function Lt(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((function(t,n){var i=e[n];return t.concat(Array.isArray(i)?i.map((function(e){return[n,e]})):[[n,i]])}),[]))}var Ot=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];var Rt=v.forwardRef((function(e,t){var n=e.onClick,i=e.relative,r=e.reloadDocument,o=e.replace,a=e.state,s=e.target,l=e.to,c=e.preventScrollReset,u=Dt(e,Ot),d=function(e,t){var n=(void 0===t?{}:t).relative;at()||$(!1);var i=v.useContext(nt),r=i.basename,o=i.navigator,a=dt(e,{relative:n}),s=a.hash,l=a.pathname,c=a.search,u=l;return"/"!==r&&(u="/"===l?r:te([r,l])),o.createHref({pathname:u,search:c,hash:s})}(l,{relative:i}),h=function(e,t){var n=void 0===t?{}:t,i=n.target,r=n.replace,o=n.state,a=n.preventScrollReset,s=n.relative,l=lt(),c=st(),u=dt(e,{relative:s});return v.useCallback((function(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,i)){t.preventDefault();var n=void 0!==r?r:P(c)===P(u);l(e,{replace:n,state:o,preventScrollReset:a,relative:s})}}),[c,l,u,r,o,i,e,a,s])}(l,{replace:o,state:a,target:s,preventScrollReset:c,relative:i});return v.createElement("a",It({},u,{href:d,onClick:r?n:function(e){n&&n(e),e.defaultPrevented||h(e)},ref:t,target:s}))}));var At,Mt;function Pt(e){var t=v.useRef(Lt(e)),n=st(),i=v.useMemo((function(){return function(e,t){var n,i=Lt(e),r=(0,x.Z)(t.keys());try{var o=function(){var e=n.value;i.has(e)||t.getAll(e).forEach((function(t){i.append(e,t)}))};for(r.s();!(n=r.n()).done;)o()}catch(a){r.e(a)}finally{r.f()}return i}(n.search,t.current)}),[n.search]),r=lt(),o=v.useCallback((function(e,t){var n=Lt("function"===typeof e?e(i):e);r("?"+n,t)}),[r,i]);return[i,o]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(At||(At={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Mt||(Mt={}));function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Zt.apply(this,arguments)}var Ft=n(1413),Bt=n(71002);function Ht(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function zt(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var jt="data-rc-order",Vt="rc-util-key",Wt=new Map;function Ut(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Vt}function Gt(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Kt(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function Yt(e){return Array.from((Wt.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function qt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ht())return null;var n=t.csp,i=t.prepend,r=document.createElement("style");r.setAttribute(jt,Kt(i)),null!==n&&void 0!==n&&n.nonce&&(r.nonce=null===n||void 0===n?void 0:n.nonce),r.innerHTML=e;var o=Gt(t),a=o.firstChild;if(i){if("queue"===i){var s=Yt(o).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(jt))}));if(s.length)return o.insertBefore(r,s[s.length-1].nextSibling),r}o.insertBefore(r,a)}else o.appendChild(r);return r}function $t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Gt(t);return Yt(n).find((function(n){return n.getAttribute(Ut(t))===e}))}function Xt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=$t(e,t);if(n){var i=Gt(t);i.removeChild(n)}}function Qt(e,t){var n=Wt.get(e);if(!n||!zt(document,n)){var i=qt("",t),r=i.parentNode;Wt.set(e,r),e.removeChild(i)}}function Jt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Gt(n);Qt(i,n);var r=$t(t,n);if(r){var o,a,s;if(null!==(o=n.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(a=n.csp)||void 0===a?void 0:a.nonce))r.nonce=null===(s=n.csp)||void 0===s?void 0:s.nonce;return r.innerHTML!==e&&(r.innerHTML=e),r}var l=qt(e,n);return l.setAttribute(Ut(n),t),l}var en=function(e){for(var t,n=0,i=0,r=e.length;r>=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},tn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nn="comm",rn="rule",on="decl",an=Math.abs,sn=String.fromCharCode;Object.assign;function ln(e){return e.trim()}function cn(e,t,n){return e.replace(t,n)}function un(e,t){return e.indexOf(t)}function dn(e,t){return 0|e.charCodeAt(t)}function hn(e,t,n){return e.slice(t,n)}function fn(e){return e.length}function pn(e){return e.length}function gn(e,t){return t.push(e),e}function vn(e,t){for(var n="",i=pn(e),r=0;r<i;r++)n+=t(e[r],r,e,t)||"";return n}function mn(e,t,n,i){switch(e.type){case"@import":case on:return e.return=e.return||e.value;case nn:return"";case"@keyframes":return e.return=e.value+"{"+vn(e.children,i)+"}";case rn:e.value=e.props.join(",")}return fn(n=vn(e.children,i))?e.return=e.value+"{"+n+"}":""}var yn=1,_n=1,bn=0,Cn=0,Sn=0,wn="";function kn(e,t,n,i,r,o,a){return{value:e,root:t,parent:n,type:i,props:r,children:o,line:yn,column:_n,length:a,return:""}}function xn(){return Sn=Cn>0?dn(wn,--Cn):0,_n--,10===Sn&&(_n=1,yn--),Sn}function En(){return Sn=Cn<bn?dn(wn,Cn++):0,_n++,10===Sn&&(_n=1,yn++),Sn}function Tn(){return dn(wn,Cn)}function Nn(){return Cn}function In(e,t){return hn(wn,e,t)}function Dn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ln(e){return yn=_n=1,bn=fn(wn=e),Cn=0,[]}function On(e){return wn="",e}function Rn(e){return ln(In(Cn-1,Pn(91===e?e+2:40===e?e+1:e)))}function An(e){for(;(Sn=Tn())&&Sn<33;)En();return Dn(e)>2||Dn(Sn)>3?"":" "}function Mn(e,t){for(;--t&&En()&&!(Sn<48||Sn>102||Sn>57&&Sn<65||Sn>70&&Sn<97););return In(e,Nn()+(t<6&&32==Tn()&&32==En()))}function Pn(e){for(;En();)switch(Sn){case e:return Cn;case 34:case 39:34!==e&&39!==e&&Pn(Sn);break;case 40:41===e&&Pn(e);break;case 92:En()}return Cn}function Zn(e,t){for(;En()&&e+Sn!==57&&(e+Sn!==84||47!==Tn()););return"/*"+In(t,Cn-1)+"*"+sn(47===e?e:En())}function Fn(e){for(;!Dn(Tn());)En();return In(e,Cn)}function Bn(e){return On(Hn("",null,null,null,[""],e=Ln(e),0,[0],e))}function Hn(e,t,n,i,r,o,a,s,l){for(var c=0,u=0,d=a,h=0,f=0,p=0,g=1,v=1,m=1,y=0,_="",b=r,C=o,S=i,w=_;v;)switch(p=y,y=En()){case 40:if(108!=p&&58==dn(w,d-1)){-1!=un(w+=cn(Rn(y),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:w+=Rn(y);break;case 9:case 10:case 13:case 32:w+=An(p);break;case 92:w+=Mn(Nn()-1,7);continue;case 47:switch(Tn()){case 42:case 47:gn(jn(Zn(En(),Nn()),t,n),l);break;default:w+="/"}break;case 123*g:s[c++]=fn(w)*m;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:f>0&&fn(w)-d&&gn(f>32?Vn(w+";",i,n,d-1):Vn(cn(w," ","")+";",i,n,d-2),l);break;case 59:w+=";";default:if(gn(S=zn(w,t,n,c,u,r,s,_,b=[],C=[],d),o),123===y)if(0===u)Hn(w,t,S,S,b,o,d,s,C);else switch(99===h&&110===dn(w,3)?100:h){case 100:case 109:case 115:Hn(e,S,S,i&&gn(zn(e,S,S,0,0,r,s,_,r,b=[],d),C),r,C,d,s,i?b:C);break;default:Hn(w,S,S,S,[""],C,0,s,C)}}c=u=f=0,g=m=1,_=w="",d=a;break;case 58:d=1+fn(w),f=p;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==xn())continue;switch(w+=sn(y),y*g){case 38:m=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(fn(w)-1)*m,m=1;break;case 64:45===Tn()&&(w+=Rn(En())),h=Tn(),u=d=fn(_=w+=Fn(Nn())),y++;break;case 45:45===p&&2==fn(w)&&(g=0)}}return o}function zn(e,t,n,i,r,o,a,s,l,c,u){for(var d=r-1,h=0===r?o:[""],f=pn(h),p=0,g=0,v=0;p<i;++p)for(var m=0,y=hn(e,d+1,d=an(g=a[p])),_=e;m<f;++m)(_=ln(g>0?h[m]+" "+y:cn(y,/&\f/g,h[m])))&&(l[v++]=_);return kn(e,t,n,0===r?rn:s,l,c,u)}function jn(e,t,n){return kn(e,t,n,nn,sn(Sn),hn(e,2,-2),0)}function Vn(e,t,n,i){return kn(e,t,n,on,hn(e,0,i),hn(e,i+1,-1),i)}var Wn=function(){function e(){(0,b.Z)(this,e),this.cache=new Map}return(0,C.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var n=e.join("%"),i=t(this.cache.get(n));null===i?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),Un=Wn,Gn="data-token-hash",Kn="data-css-hash",Yn="__cssinjs_instance__",qn=Math.random().toString(12).slice(2);function $n(){if("undefined"!==typeof document){var e=document.body.querySelectorAll("style[".concat(Kn,"]")),t=document.head.firstChild;Array.from(e).forEach((function(e){e[Yn]=e[Yn]||qn,document.head.insertBefore(e,t)}));var n={};Array.from(document.querySelectorAll("style[".concat(Kn,"]"))).forEach((function(e){var t,i=e.getAttribute(Kn);n[i]?e[Yn]===qn&&(null===(t=e.parentNode)||void 0===t||t.removeChild(e)):n[i]=!0}))}return new Un}var Xn=v.createContext({hashPriority:"low",cache:$n(),defaultCache:!0}),Qn=Xn;var Jn=function(){return!1};function ei(e,t,n,i){var r=v.useContext(Qn).cache,o=[e].concat((0,_.Z)(t));Jn();return v.useMemo((function(){r.update(o,(function(e){var t=e||[],i=(0,k.Z)(t,2),r=i[0];return[(void 0===r?0:r)+1,i[1]||n()]}))}),[o.join("_")]),v.useEffect((function(){return function(){r.update(o,(function(e){var t=e||[],n=(0,k.Z)(t,2),r=n[0],o=void 0===r?0:r,a=n[1];return 0===o-1?(null===i||void 0===i||i(a,!1),null):[o-1,a]}))}}),o),r.get(o)[1]}var ti={},ni=[];function ii(e,t){}function ri(e,t){}function oi(e,t,n){t||ti[n]||(e(!1,n),ti[n]=!0)}function ai(e,t){oi(ii,e,t)}function si(e,t){oi(ri,e,t)}ai.preMessage=function(e){ni.push(e)},ai.resetWarned=function(){ti={}},ai.noteOnce=si;var li=ai;function ci(e){var t="";return Object.keys(e).forEach((function(n){var i=e[n];t+=n,i&&"object"===(0,Bt.Z)(i)?t+=ci(i):t+=i})),t}function ui(e,t){return en("".concat(t,"_").concat(ci(e)))}var di="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),hi="903px";var fi=void 0;function pi(){return void 0===fi&&(fi=function(e,t){if(Ht()){var n;Jt(e,di);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null===t||void 0===t||t(i),document.body.appendChild(i);var r=getComputedStyle(i).width===hi;return null===(n=i.parentNode)||void 0===n||n.removeChild(i),Xt(di),r}return!1}("@layer ".concat(di," { .").concat(di," { width: ").concat(hi,"!important; } }"),(function(e){e.className=di}))),fi}var gi=Ht();function vi(e){return"object"===(0,Bt.Z)(e)&&e&&"_skip_check_"in e}var mi={};function yi(e,t,n){if(!t)return e;var i=".".concat(t),r="low"===n?":where(".concat(i,")"):i;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),i=n[0]||"",o=(null===(t=i.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[i="".concat(o).concat(r).concat(i.slice(o.length))].concat((0,_.Z)(n.slice(1))).join(" ")})).join(",")}var _i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0},r=i.root,o=i.injectHash,a=n.hashId,s=n.layer,l=n.path,c=n.hashPriority,u="";function d(t){return mi[t.getName(a)]?"":(mi[t.getName(a)]=!0,"@keyframes ".concat(t.getName(a)).concat(e(t.style,n,{root:!1})))}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){Array.isArray(e)?h(e,t):e&&t.push(e)})),t}var f=h(Array.isArray(t)?t:[t]);if(f.forEach((function(t){var i="string"!==typeof t||r?t:{};"string"===typeof i?u+="".concat(i,"\n"):i._keyframe?u+=d(i):Object.keys(i).forEach((function(t){var s=i[t];if("object"!==(0,Bt.Z)(s)||!s||"animationName"===t&&s._keyframe||vi(s)){var h,f=null!==(h=null===s||void 0===s?void 0:s.value)&&void 0!==h?h:s;0;var p=t.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),g=f;tn[t]||"number"!==typeof g||0===g||(g="".concat(g,"px")),"animationName"===t&&(null===s||void 0===s?void 0:s._keyframe)&&(u+=d(s),g=s.getName(a)),u+="".concat(p,":").concat(g,";")}else{var v=!1,m=t.trim(),y=!1;(r||o)&&a?m.startsWith("@")?v=!0:m=yi(t,a,c):!r||a||"&"!==m&&""!==m||(m="",y=!0),u+="".concat(m).concat(e(s,(0,Ft.Z)((0,Ft.Z)({},n),{},{path:"".concat(l," -> ").concat(m)}),{root:y,injectHash:v}))}}))})),r){if(s&&pi()){var p=s.split(","),g=p[p.length-1].trim();u="@layer ".concat(g," {").concat(u,"}"),p.length>1&&(u="@layer ".concat(s,"{%%%:%}").concat(u))}}else u="{".concat(u,"}");return u};function bi(){return null}function Ci(e,t){var n=e.token,i=e.path,r=e.hashId,o=e.layer,a=v.useContext(Qn),s=a.autoClear,l=(a.mock,a.defaultCache),c=a.hashPriority,u=n._tokenKey,d=[u].concat((0,_.Z)(i)),h=gi;var f=ei("style",d,(function(){var e=t(),n=function(e){return vn(Bn(e),mn).replace(/\{%%%\:[^;];}/g,";")}(_i(e,{hashId:r,hashPriority:c,layer:o,path:i.join("-")})),a=function(e,t){return en("".concat(e.join("%")).concat(t))}(d,n);if(mi={},h){var s=Jt(n,a,{mark:Kn,prepend:"queue"});s[Yn]=qn,s.setAttribute(Gn,u)}return[n,u,a]}),(function(e,t){var n=(0,k.Z)(e,3)[2];(t||s)&&gi&&Xt(n,{mark:Kn})})),p=(0,k.Z)(f,3),g=p[0],m=p[1],y=p[2];return function(e){var t,n;h||!l?t=v.createElement(bi,null):t=v.createElement("style",(0,Ft.Z)((0,Ft.Z)({},(n={},(0,N.Z)(n,Gn,m),(0,N.Z)(n,Kn,y),n)),{},{dangerouslySetInnerHTML:{__html:g}}));return v.createElement(v.Fragment,null,t,e)}}var Si={},wi=new Map;function ki(e){wi.set(e,(wi.get(e)||0)+1)}function xi(e){wi.set(e,(wi.get(e)||0)-1);var t=Array.from(wi.keys()),n=t.filter((function(e){return(wi.get(e)||0)<=0}));n.length<t.length&&n.forEach((function(e){!function(e){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(Gn,'="').concat(e,'"]')).forEach((function(e){var t;e[Yn]===qn&&(null===(t=e.parentNode)||void 0===t||t.removeChild(e))}))}(e),wi.delete(e)}))}var Ei=function(){function e(t,n){(0,b.Z)(this,e),this.name=void 0,this.style=void 0,this._keyframe=!0,this.name=t,this.style=n}return(0,C.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),Ti=Ei;var Ni=function(){function e(){(0,b.Z)(this,e),this.cache=void 0,this.keys=void 0,this.cacheCallTimes=void 0,this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,C.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={map:this.cache};return e.forEach((function(e){var t,n;r?r=null===(t=r)||void 0===t||null===(n=t.map)||void 0===n?void 0:n.get(e):r=void 0})),(null===(t=r)||void 0===t?void 0:t.value)&&i&&(r.value[1]=this.cacheCallTimes++),null===(n=r)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var i=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var r=this.keys.reduce((function(e,t){var n=(0,k.Z)(e,2)[1];return i.internalGet(t)[1]<n?[t,i.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),o=(0,k.Z)(r,1)[0];this.delete(o)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,r){if(r===t.length-1)a.set(e,{value:[n,i.cacheCallTimes++]});else{var o=a.get(e);o?o.map||(o.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,i=e.get(t[0]);if(1===t.length)return i.map?e.set(t[0],{map:i.map}):e.delete(t[0]),null===(n=i.value)||void 0===n?void 0:n[0];var r=this.deleteByPath(i.map,t.slice(1));return i.map&&0!==i.map.size||i.value||e.delete(t[0]),r}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();Ni.MAX_CACHE_SIZE=20,Ni.MAX_CACHE_OFFSET=5;var Ii=0,Di=function(){function e(t){(0,b.Z)(this,e),this.derivatives=void 0,this.id=void 0,this.derivatives=Array.isArray(t)?t:[t],this.id=Ii,0===t.length&&t.length,Ii+=1}return(0,C.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Li=new Ni;function Oi(e){var t=Array.isArray(e)?e:[e];return Li.has(t)||Li.set(t,new Di(t)),Li.get(t)}var Ri=(0,v.createContext)({});function Ai(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Mi=n(97326),Pi=n(73873);function Zi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return v.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Zi(e)):(0,Pi.isFragment)(e)&&e.props?n=n.concat(Zi(e.props.children,t)):n.push(e))})),n}var Fi="RC_FORM_INTERNAL_HOOKS",Bi=function(){li(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Hi=v.createContext({getFieldValue:Bi,getFieldsValue:Bi,getFieldError:Bi,getFieldWarning:Bi,getFieldsError:Bi,isFieldsTouched:Bi,isFieldTouched:Bi,isFieldValidating:Bi,isFieldsValidating:Bi,resetFields:Bi,setFields:Bi,setFieldValue:Bi,setFieldsValue:Bi,validateFields:Bi,submit:Bi,getInternalHooks:function(){return Bi(),{dispatch:Bi,initEntityValue:Bi,registerField:Bi,useSubscribe:Bi,setInitialValues:Bi,destroyForm:Bi,setCallbacks:Bi,registerWatch:Bi,getFields:Bi,setValidateMessages:Bi,setPreserve:Bi,getInitialValue:Bi}}});function zi(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ji.apply(this,arguments)}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vi(e)}function Wi(e,t){return Wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wi(e,t)}function Ui(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Fc){return!1}}function Gi(e,t,n){return Gi=Ui()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&Wi(r,n.prototype),r},Gi.apply(null,arguments)}function Ki(e){var t="function"===typeof Map?new Map:void 0;return Ki=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return Gi(e,arguments,Vi(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Wi(i,e)},Ki(e)}var Yi=/%[sdj%]/g;function qi(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function $i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=0,o=n.length;if("function"===typeof e)return e.apply(null,n);if("string"===typeof e){var a=e.replace(Yi,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}break;default:return e}}));return a}return e}function Xi(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function Qi(e,t,n){var i=0,r=e.length;!function o(a){if(a&&a.length)n(a);else{var s=i;i+=1,s<r?t(e[s],o):n([])}}([])}var Ji=function(e){var t,n;function i(t,n){var i;return(i=e.call(this,"Async Validation Error")||this).errors=t,i.fields=n,i}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,Wi(t,n),i}(Ki(Error));function er(e,t,n,i,r){if(t.first){var o=new Promise((function(t,o){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);Qi(a,n,(function(e){return i(e),e.length?o(new Ji(e,qi(e))):t(r)}))}));return o.catch((function(e){return e})),o}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,o){var d=function(e){if(u.push.apply(u,e),++c===l)return i(u),u.length?o(new Ji(u,qi(u))):t(r)};s.length||(i(u),t(r)),s.forEach((function(t){var i=e[t];-1!==a.indexOf(t)?Qi(i,n,d):function(e,t,n){var i=[],r=0,o=e.length;function a(e){i.push.apply(i,e||[]),++r===o&&n(i)}e.forEach((function(e){t(e,a)}))}(i,n,d)}))}));return d.catch((function(e){return e})),d}function tr(e,t){return function(n){var i,r;return i=e.fullFields?function(e,t){for(var n=e,i=0;i<t.length;i++){if(void 0==n)return n;n=n[t[i]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=i,n):{message:"function"===typeof n?n():n,fieldValue:i,field:n.field||e.fullField}}}function nr(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];"object"===typeof i&&"object"===typeof e[n]?e[n]=ji({},e[n],i):e[n]=i}return e}var ir,rr=function(e,t,n,i,r,o){!e.required||n.hasOwnProperty(e.field)&&!Xi(t,o||e.type)||i.push($i(r.messages.required,e.fullField))},or=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,ar=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,sr={integer:function(e){return sr.number(e)&&parseInt(e,10)===e},float:function(e){return sr.number(e)&&!sr.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(Fc){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!sr.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(or)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(function(){if(ir)return ir;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",r=("\n(?:\n(?:"+i+":){7}(?:"+i+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+i+":){6}(?:"+n+"|:"+i+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+i+":){5}(?::"+n+"|(?::"+i+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+i+":){4}(?:(?::"+i+"){0,1}:"+n+"|(?::"+i+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+i+":){3}(?:(?::"+i+"){0,2}:"+n+"|(?::"+i+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+i+":){2}(?:(?::"+i+"){0,3}:"+n+"|(?::"+i+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+i+":){1}(?:(?::"+i+"){0,4}:"+n+"|(?::"+i+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+i+"){0,5}:"+n+"|(?::"+i+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+r+"$"),l=function(e){return e&&e.exact?o:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+r+t(e)+")","g")};l.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+r+t(e),"g")};var c=l.v4().source,u=l.v6().source;return ir=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"===typeof e&&!!e.match(ar)}},lr={required:rr,whitespace:function(e,t,n,i,r){(/^\s+$/.test(t)||""===t)&&i.push($i(r.messages.whitespace,e.fullField))},type:function(e,t,n,i,r){if(e.required&&void 0===t)rr(e,t,n,i,r);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?sr[o](t)||i.push($i(r.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&i.push($i(r.messages.types[o],e.fullField,e.type))}},range:function(e,t,n,i,r){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=t,c=null,u="number"===typeof t,d="string"===typeof t,h=Array.isArray(t);if(u?c="number":d?c="string":h&&(c="array"),!c)return!1;h&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==e.len&&i.push($i(r.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?i.push($i(r.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?i.push($i(r.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&i.push($i(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,i,r){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&i.push($i(r.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,i,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push($i(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||i.push($i(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},cr=function(e,t,n,i,r){var o=e.type,a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Xi(t,o)&&!e.required)return n();lr.required(e,t,i,a,r,o),Xi(t,o)||lr.type(e,t,i,a,r)}n(a)},ur={string:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Xi(t,"string")&&!e.required)return n();lr.required(e,t,i,o,r,"string"),Xi(t,"string")||(lr.type(e,t,i,o,r),lr.range(e,t,i,o,r),lr.pattern(e,t,i,o,r),!0===e.whitespace&&lr.whitespace(e,t,i,o,r))}n(o)},method:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Xi(t)&&!e.required)return n();lr.required(e,t,i,o,r),void 0!==t&&lr.type(e,t,i,o,r)}n(o)},number:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Xi(t)&&!e.required)return n();lr.required(e,t,i,o,r),void 0!==t&&(lr.type(e,t,i,o,r),lr.range(e,t,i,o,r))}n(o)},boolean:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Xi(t)&&!e.required)return n();lr.required(e,t,i,o,r),void 0!==t&&lr.type(e,t,i,o,r)}n(o)},regexp:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Xi(t)&&!e.required)return n();lr.required(e,t,i,o,r),Xi(t)||lr.type(e,t,i,o,r)}n(o)},integer:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Xi(t)&&!e.required)return n();lr.required(e,t,i,o,r),void 0!==t&&(lr.type(e,t,i,o,r),lr.range(e,t,i,o,r))}n(o)},float:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Xi(t)&&!e.required)return n();lr.required(e,t,i,o,r),void 0!==t&&(lr.type(e,t,i,o,r),lr.range(e,t,i,o,r))}n(o)},array:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();lr.required(e,t,i,o,r,"array"),void 0!==t&&null!==t&&(lr.type(e,t,i,o,r),lr.range(e,t,i,o,r))}n(o)},object:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Xi(t)&&!e.required)return n();lr.required(e,t,i,o,r),void 0!==t&&lr.type(e,t,i,o,r)}n(o)},enum:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Xi(t)&&!e.required)return n();lr.required(e,t,i,o,r),void 0!==t&&lr.enum(e,t,i,o,r)}n(o)},pattern:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Xi(t,"string")&&!e.required)return n();lr.required(e,t,i,o,r),Xi(t,"string")||lr.pattern(e,t,i,o,r)}n(o)},date:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Xi(t,"date")&&!e.required)return n();var a;if(lr.required(e,t,i,o,r),!Xi(t,"date"))a=t instanceof Date?t:new Date(t),lr.type(e,a,i,o,r),a&&lr.range(e,a.getTime(),i,o,r)}n(o)},url:cr,hex:cr,email:cr,required:function(e,t,n,i,r){var o=[],a=Array.isArray(t)?"array":typeof t;lr.required(e,t,i,o,r,a),n(o)},any:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Xi(t)&&!e.required)return n();lr.required(e,t,i,o,r)}n(o)}};function dr(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var hr=dr(),fr=function(){function e(e){this.rules=null,this._messages=hr,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var i=e[n];t.rules[n]=Array.isArray(i)?i:[i]}))},t.messages=function(e){return e&&(this._messages=nr(dr(),e)),this._messages},t.validate=function(t,n,i){var r=this;void 0===n&&(n={}),void 0===i&&(i=function(){});var o=t,a=n,s=i;if("function"===typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,o),Promise.resolve(o);if(a.messages){var l=this.messages();l===hr&&(l=dr()),nr(l,a.messages),a.messages=l}else a.messages=this.messages();var c={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=r.rules[e],i=o[e];n.forEach((function(n){var a=n;"function"===typeof a.transform&&(o===t&&(o=ji({},o)),i=o[e]=a.transform(i)),(a="function"===typeof a?{validator:a}:ji({},a)).validator=r.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=r.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:i,source:o,field:e}))}))}));var u={};return er(c,a,(function(t,n){var i,r=t.rule,s=("object"===r.type||"array"===r.type)&&("object"===typeof r.fields||"object"===typeof r.defaultField);function l(e,t){return ji({},t,{fullField:r.fullField+"."+e,fullFields:r.fullFields?[].concat(r.fullFields,[e]):[e]})}function c(i){void 0===i&&(i=[]);var c=Array.isArray(i)?i:[i];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==r.message&&(c=[].concat(r.message));var d=c.map(tr(r,o));if(a.first&&d.length)return u[r.field]=1,n(d);if(s){if(r.required&&!t.value)return void 0!==r.message?d=[].concat(r.message).map(tr(r,o)):a.error&&(d=[a.error(r,$i(a.messages.required,r.field))]),n(d);var h={};r.defaultField&&Object.keys(t.value).map((function(e){h[e]=r.defaultField})),h=ji({},h,t.rule.fields);var f={};Object.keys(h).forEach((function(e){var t=h[e],n=Array.isArray(t)?t:[t];f[e]=n.map(l.bind(null,e))}));var p=new e(f);p.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),p.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(s=s&&(r.required||!r.required&&t.value),r.field=t.field,r.asyncValidator)i=r.asyncValidator(r,t.value,c,t.source,a);else if(r.validator){try{i=r.validator(r,t.value,c,t.source,a)}catch(d){null==console.error||console.error(d),a.suppressValidatorError||setTimeout((function(){throw d}),0),c(d.message)}!0===i?c():!1===i?c("function"===typeof r.message?r.message(r.fullField||r.field):r.message||(r.fullField||r.field)+" fails"):i instanceof Array?c(i):i instanceof Error&&c(i.message)}i&&i.then&&i.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){var t=[],n={};function i(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var r=0;r<e.length;r++)i(e[r]);t.length?(n=qi(t),s(t,n)):s(null,o)}(e)}),o)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ur.hasOwnProperty(e.type))throw new Error($i("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ur.required:ur[this.getType(e)]||void 0},e}();fr.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ur[e]=t},fr.warning=function(){},fr.messages=hr,fr.validators=ur;var pr="'${name}' is not a valid ${type}",gr={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:pr,method:pr,array:pr,object:pr,number:pr,date:pr,boolean:pr,integer:pr,float:pr,regexp:pr,email:pr,url:pr,hex:pr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function vr(e,t){for(var n=e,i=0;i<t.length;i+=1){if(null===n||void 0===n)return;n=n[t[i]]}return n}var mr=n(84506);function yr(e,t,n,i){if(!t.length)return n;var r,o=(0,mr.Z)(t),a=o[0],s=o.slice(1);return r=e||"number"!==typeof a?Array.isArray(e)?(0,_.Z)(e):(0,Ft.Z)({},e):[],i&&void 0===n&&1===s.length?delete r[a][s[0]]:r[a]=yr(r[a],s,n,i),r}function _r(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&i&&void 0===n&&!vr(e,t.slice(0,-1))?e:yr(e,t,n,i)}function br(e){return Array.isArray(e)?function(e){return e.map((function(e){return br(e)}))}(e):"object"===(0,Bt.Z)(e)&&null!==e?function(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var n in e)t[n]=br(e[n]);return t}return e}(e):e}var Cr=br;function Sr(e){return zi(e)}function wr(e,t){return vr(e,t)}function kr(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=_r(e,t,n,i);return r}function xr(e,t){var n={};return t.forEach((function(t){var i=wr(e,t);n=kr(n,t,i)})),n}function Er(e,t){return e&&e.some((function(e){return Dr(e,t)}))}function Tr(e){return"object"===(0,Bt.Z)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function Nr(e,t){var n=Array.isArray(e)?(0,_.Z)(e):(0,Ft.Z)({},e);return t?(Object.keys(t).forEach((function(e){var i=n[e],r=t[e],o=Tr(i)&&Tr(r);n[e]=o?Nr(i,r||{}):Cr(r)})),n):n}function Ir(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce((function(e,t){return Nr(e,t)}),e)}function Dr(e,t){return!(!e||!t||e.length!==t.length)&&e.every((function(e,n){return t[n]===e}))}function Lr(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,Bt.Z)(t.target)&&e in t.target?t.target[e]:t}function Or(e,t,n){var i=e.length;if(t<0||t>=i||n<0||n>=i)return e;var r=e[t],o=t-n;return o>0?[].concat((0,_.Z)(e.slice(0,n)),[r],(0,_.Z)(e.slice(n,t)),(0,_.Z)(e.slice(t+1,i))):o<0?[].concat((0,_.Z)(e.slice(0,t)),(0,_.Z)(e.slice(t+1,n+1)),[r],(0,_.Z)(e.slice(n+1,i))):e}var Rr=fr;function Ar(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var Mr="CODE_LOGIC_ERROR";function Pr(e,t,n,i,r){return Zr.apply(this,arguments)}function Zr(){return Zr=(0,T.Z)((0,E.Z)().mark((function e(t,n,i,r,o){var a,s,l,c,u,d,h,f,p;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=(0,Ft.Z)({},i)).ruleIndex,a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Mr)}}),l=null,a&&"array"===a.type&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Rr((0,N.Z)({},t,[a])),u=Ir({},gr,r.validateMessages),c.messages(u),d=[],e.prev=9,e.next=12,Promise.resolve(c.validate((0,N.Z)({},t,n),(0,Ft.Z)({},r)));case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(9),e.t0.errors&&(d=e.t0.errors.map((function(e,t){var n=e.message,i=n===Mr?u.default:n;return v.isValidElement(i)?v.cloneElement(i,{key:"error_".concat(t)}):i})));case 17:if(d.length||!l){e.next=22;break}return e.next=20,Promise.all(n.map((function(e,n){return Pr("".concat(t,".").concat(n),e,l,r,o)})));case 20:return h=e.sent,e.abrupt("return",h.reduce((function(e,t){return[].concat((0,_.Z)(e),(0,_.Z)(t))}),[]));case 22:return f=(0,Ft.Z)((0,Ft.Z)({},i),{},{name:t,enum:(i.enum||[]).join(", ")},o),p=d.map((function(e){return"string"===typeof e?Ar(e,f):e})),e.abrupt("return",p);case 25:case"end":return e.stop()}}),e,null,[[9,14]])}))),Zr.apply(this,arguments)}function Fr(e,t,n,i,r,o){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,i=(0,Ft.Z)((0,Ft.Z)({},e),{},{ruleIndex:t});return n&&(i.validator=function(e,t,i){var r=!1,o=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){li(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||i.apply(void 0,t)}))}));r=o&&"function"===typeof o.then&&"function"===typeof o.catch,li(r,"`callback` is deprecated. Please return a promise instead."),r&&o.then((function(){i()})).catch((function(e){i(e||" ")}))}),i})).sort((function(e,t){var n=e.warningOnly,i=e.ruleIndex,r=t.warningOnly,o=t.ruleIndex;return!!n===!!r?i-o:n?1:-1}));if(!0===r)a=new Promise(function(){var e=(0,T.Z)((0,E.Z)().mark((function e(n,r){var a,c,u;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return c=l[a],e.next=5,Pr(s,t,c,i,o);case 5:if(!(u=e.sent).length){e.next=9;break}return r([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return Pr(s,t,e,i,o).then((function(t){return{errors:t,rule:e}}))}));a=(r?function(e){return Hr.apply(this,arguments)}(c):function(e){return Br.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Br(){return(Br=(0,T.Z)((0,E.Z)().mark((function e(t){return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,(0,_.Z)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Hr(){return Hr=(0,T.Z)((0,E.Z)().mark((function e(t){var n;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(i){i.then((function(i){i.errors.length&&e([i]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)}))),Hr.apply(this,arguments)}var zr=["name"],jr=[];function Vr(e,t,n,i,r,o){return"function"===typeof e?e(t,n,"source"in o?{source:o.source}:{}):i!==r}var Wr=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(e){var i;((0,b.Z)(this,n),(i=t.call(this,e)).state={resetCount:0},i.cancelRegisterFunc=null,i.mounted=!1,i.touched=!1,i.dirty=!1,i.validatePromise=null,i.prevValidating=void 0,i.errors=jr,i.warnings=jr,i.cancelRegister=function(){var e=i.props,t=e.preserve,n=e.isListField,r=e.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(n,t,Sr(r)),i.cancelRegisterFunc=null},i.getNamePath=function(){var e=i.props,t=e.name,n=e.fieldContext.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat((0,_.Z)(r),(0,_.Z)(t)):[]},i.getRules=function(){var e=i.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"===typeof e?e(r):e}))},i.refresh=function(){i.mounted&&i.setState((function(e){return{resetCount:e.resetCount+1}}))},i.triggerMetaEvent=function(e){var t=i.props.onMetaChange;null===t||void 0===t||t((0,Ft.Z)((0,Ft.Z)({},i.getMeta()),{},{destroy:e}))},i.onStoreChange=function(e,t,n){var r=i.props,o=r.shouldUpdate,a=r.dependencies,s=void 0===a?[]:a,l=r.onReset,c=n.store,u=i.getNamePath(),d=i.getValue(e),h=i.getValue(c),f=t&&Er(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==h&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=jr,i.warnings=jr,i.triggerMetaEvent()),n.type){case"reset":if(!t||f)return i.touched=!1,i.dirty=!1,i.validatePromise=null,i.errors=jr,i.warnings=jr,i.triggerMetaEvent(),null===l||void 0===l||l(),void i.refresh();break;case"remove":if(o)return void i.reRender();break;case"setField":if(f){var p=n.data;return"touched"in p&&(i.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(i.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(i.errors=p.errors||jr),"warnings"in p&&(i.warnings=p.warnings||jr),i.dirty=!0,i.triggerMetaEvent(),void i.reRender()}if(o&&!u.length&&Vr(o,e,c,d,h,n))return void i.reRender();break;case"dependenciesUpdate":if(s.map(Sr).some((function(e){return Er(n.relatedFields,e)})))return void i.reRender();break;default:if(f||(!s.length||u.length||o)&&Vr(o,e,c,d,h,n))return void i.reRender()}!0===o&&i.reRender()},i.validateRules=function(e){var t=i.getNamePath(),n=i.getValue(),r=Promise.resolve().then((function(){if(!i.mounted)return[];var o=i.props,a=o.validateFirst,s=void 0!==a&&a,l=o.messageVariables,c=(e||{}).triggerName,u=i.getRules();c&&(u=u.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||zi(t).includes(c)})));var d=Fr(t,n,u,e,s,l);return d.catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jr;if(i.validatePromise===r){var t;i.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,i=e.errors,r=void 0===i?jr:i;t?o.push.apply(o,(0,_.Z)(r)):n.push.apply(n,(0,_.Z)(r))})),i.errors=n,i.warnings=o,i.triggerMetaEvent(),i.reRender()}})),d}));return i.validatePromise=r,i.dirty=!0,i.errors=jr,i.warnings=jr,i.triggerMetaEvent(),i.reRender(),r},i.isFieldValidating=function(){return!!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){return!(!i.dirty&&void 0===i.props.initialValue)||void 0!==(0,i.props.fieldContext.getInternalHooks(Fi).getInitialValue)(i.getNamePath())},i.getErrors=function(){return i.errors},i.getWarnings=function(){return i.warnings},i.isListField=function(){return i.props.isListField},i.isList=function(){return i.props.isList},i.isPreserve=function(){return i.props.preserve},i.getMeta=function(){return i.prevValidating=i.isFieldValidating(),{touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath()}},i.getOnlyChild=function(e){if("function"===typeof e){var t=i.getMeta();return(0,Ft.Z)((0,Ft.Z)({},i.getOnlyChild(e(i.getControlled(),t,i.props.fieldContext))),{},{isFunction:!0})}var n=Zi(e);return 1===n.length&&v.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},i.getValue=function(e){var t=i.props.fieldContext.getFieldsValue,n=i.getNamePath();return wr(e||t(!0),n)},i.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.props,n=t.trigger,r=t.validateTrigger,o=t.getValueFromEvent,a=t.normalize,s=t.valuePropName,l=t.getValueProps,c=t.fieldContext,u=void 0!==r?r:c.validateTrigger,d=i.getNamePath(),h=c.getInternalHooks,f=c.getFieldsValue,p=h(Fi),g=p.dispatch,v=i.getValue(),m=l||function(e){return(0,N.Z)({},s,e)},y=e[n],_=(0,Ft.Z)((0,Ft.Z)({},e),m(v));_[n]=function(){var e;i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=o?o.apply(void 0,n):Lr.apply(void 0,[s].concat(n)),a&&(e=a(e,v,f(!0))),g({type:"updateValue",namePath:d,value:e}),y&&y.apply(void 0,n)};var b=zi(u||[]);return b.forEach((function(e){var t=_[e];_[e]=function(){t&&t.apply(void 0,arguments);var n=i.props.rules;n&&n.length&&g({type:"validateField",namePath:d,triggerName:e})}})),_},e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(Fi).initEntityValue)((0,Mi.Z)(i));return i}return(0,C.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var i=(0,n.getInternalHooks)(Fi).registerField;this.cancelRegisterFunc=i(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,i=this.getOnlyChild(n),r=i.child;return i.isFunction?e=r:v.isValidElement(r)?e=v.cloneElement(r,this.getControlled(r.props)):(li(!r,"`children` of Field is not validate ReactElement."),e=r),v.createElement(v.Fragment,{key:t},e)}}]),n}(v.Component);Wr.contextType=Hi,Wr.defaultProps={trigger:"onChange",valuePropName:"value"};var Ur=function(e){var t=e.name,n=Ai(e,zr),i=v.useContext(Hi),r=void 0!==t?Sr(t):void 0,o="keep";return n.isListField||(o="_".concat((r||[]).join("_"))),v.createElement(Wr,Zt({key:o,name:r},n,{fieldContext:i}))},Gr=v.createContext(null),Kr=function(e){var t=e.name,n=e.initialValue,i=e.children,r=e.rules,o=e.validateTrigger,a=v.useContext(Hi),s=v.useRef({keys:[],id:0}).current,l=v.useMemo((function(){var e=Sr(a.prefixName)||[];return[].concat((0,_.Z)(e),(0,_.Z)(Sr(t)))}),[a.prefixName,t]),c=v.useMemo((function(){return(0,Ft.Z)((0,Ft.Z)({},a),{},{prefixName:l})}),[a,l]),u=v.useMemo((function(){return{getKey:function(e){var t=l.length,n=e[t];return[s.keys[n],e.slice(t+1)]}}}),[l]);if("function"!==typeof i)return li(!1,"Form.List only accepts function as children."),null;return v.createElement(Gr.Provider,{value:u},v.createElement(Hi.Provider,{value:c},v.createElement(Ur,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:r,validateTrigger:o,initialValue:n,isList:!0},(function(e,t){var n=e.value,r=void 0===n?[]:n,o=e.onChange,c=a.getFieldValue,u=function(){return c(l||[])||[]},d={add:function(e,t){var n=u();t>=0&&t<=n.length?(s.keys=[].concat((0,_.Z)(s.keys.slice(0,t)),[s.id],(0,_.Z)(s.keys.slice(t))),o([].concat((0,_.Z)(n.slice(0,t)),[e],(0,_.Z)(n.slice(t))))):(s.keys=[].concat((0,_.Z)(s.keys),[s.id]),o([].concat((0,_.Z)(n),[e]))),s.id+=1},remove:function(e){var t=u(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(s.keys=s.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=u();e<0||e>=n.length||t<0||t>=n.length||(s.keys=Or(s.keys,e,t),o(Or(n,e,t)))}}},h=r||[];return Array.isArray(h)||(h=[]),i(h.map((function(e,t){var n=s.keys[t];return void 0===n&&(s.keys[t]=s.id,n=s.keys[t],s.id+=1),{name:t,key:n,isListField:!0}})),d,t)}))))};var Yr="__@field_split__";function qr(e){return e.map((function(e){return"".concat((0,Bt.Z)(e),":").concat(e)})).join(Yr)}var $r=function(){function e(){(0,b.Z)(this,e),this.kvs=new Map}return(0,C.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(qr(e),t)}},{key:"get",value:function(e){return this.kvs.get(qr(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(qr(e))}},{key:"map",value:function(e){return(0,_.Z)(this.kvs.entries()).map((function(t){var n=(0,k.Z)(t,2),i=n[0],r=n[1],o=i.split(Yr);return e({key:o.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,k.Z)(t,3),i=n[1],r=n[2];return"number"===i?Number(r):r})),value:r})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,i=t.value;return e[n.join(".")]=i,null})),e}}]),e}(),Xr=$r,Qr=["name","errors"],Jr=(0,C.Z)((function e(t){var n=this;(0,b.Z)(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===Fi?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(li(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,t){if(n.initialValues=e||{},t){var i,r=Ir({},e,n.store);null===(i=n.prevWithoutPreserves)||void 0===i||i.map((function(t){var n=t.key;r=kr(r,n,wr(e,n))})),n.prevWithoutPreserves=null,n.updateStore(r)}},this.destroyForm=function(){var e=new Xr;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e},this.getInitialValue=function(e){var t=wr(n.initialValues,e);return e.length?Cr(t):t},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.watchList=[],this.registerWatch=function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}},this.notifyWatch=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue();n.watchList.forEach((function(n){n(t,e)}))}},this.timeoutId=null,this.warningUnhooked=function(){0},this.updateStore=function(e){n.store=e},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Xr;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Sr(e);return t.get(n)||{INVALIDATE_NAME_PATH:Sr(e)}}))},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),r=[];return i.forEach((function(n){var i,o="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();if(e||!(null===(i=n.isListField)||void 0===i?void 0:i.call(n)))if(t){var a="getMeta"in n?n.getMeta():null;t(a)&&r.push(o)}else r.push(o)})),xr(n.store,r.map(Sr))},this.getFieldValue=function(e){n.warningUnhooked();var t=Sr(e);return wr(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Sr(e[n]),errors:[],warnings:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=Sr(e);return n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){n.warningUnhooked();var t=Sr(e);return n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var r,o=t[0],a=t[1],s=!1;0===t.length?r=null:1===t.length?Array.isArray(o)?(r=o.map(Sr),s=!1):(r=null,s=o):(r=o.map(Sr),s=a);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!r)return s?l.every(c):l.some(c);var u=new Xr;r.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();r.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat((0,_.Z)(t),[e])}))}))}));var d=function(e){return e.some(c)},h=u.map((function(e){return e.value}));return s?h.every(d):h.some(d)},this.isFieldTouched=function(e){return n.warningUnhooked(),n.isFieldsTouched([e])},this.isFieldsValidating=function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var i=e.map(Sr);return t.some((function(e){var t=e.getNamePath();return Er(i,t)&&e.isFieldValidating()}))},this.isFieldValidating=function(e){return n.warningUnhooked(),n.isFieldsValidating([e])},this.resetWithFieldInitialValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Xr,i=n.getFieldEntities(!0);i.forEach((function(e){var n=e.props.initialValue,i=e.getNamePath();if(void 0!==n){var r=t.get(i)||new Set;r.add({entity:e,value:n}),t.set(i,r)}}));var r,o=function(i){i.forEach((function(i){if(void 0!==i.props.initialValue){var r=i.getNamePath();if(void 0!==n.getInitialValue(r))li(!1,"Form already set 'initialValues' with path '".concat(r.join("."),"'. Field can not overwrite it."));else{var o=t.get(r);if(o&&o.size>1)li(!1,"Multiple Field with path '".concat(r.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(r);e.skipExist&&void 0!==a||n.updateStore(kr(n.store,r,(0,_.Z)(o)[0].value))}}}}))};e.entities?r=e.entities:e.namePathList?(r=[],e.namePathList.forEach((function(e){var n,i=t.get(e);i&&(n=r).push.apply(n,(0,_.Z)((0,_.Z)(i).map((function(e){return e.entity}))))}))):r=i,o(r)},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Ir({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var i=e.map(Sr);i.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(kr(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(t,i,{type:"reset"}),n.notifyWatch(i)},this.setFields=function(e){n.warningUnhooked();var t=n.store,i=[];e.forEach((function(e){var r=e.name,o=(e.errors,Ai(e,Qr)),a=Sr(r);i.push(a),"value"in o&&n.updateStore(kr(n.store,a,o.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(i)},this.getFields=function(){var e=n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),i=e.getMeta(),r=(0,Ft.Z)((0,Ft.Z)({},i),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}));return e},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var i=e.getNamePath();void 0===wr(n.store,i)&&n.updateStore(kr(n.store,i,t))}},this.isMergedPreserve=function(e){var t=void 0!==e?e:n.preserve;return null===t||void 0===t||t},this.registerField=function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var i=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(i,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(r)&&(!i||o.length>1)){var a=i?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Dr(e.getNamePath(),t)}))){var s=n.store;n.updateStore(kr(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,i=e.value;n.updateValue(t,i);break;case"validateField":var r=e.namePath,o=e.triggerName;n.validateFields([r],{triggerName:o})}},this.notifyObservers=function(e,t,i){if(n.subscribable){var r=(0,Ft.Z)((0,Ft.Z)({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,r)}))}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var i=n.getDependencyChildrenFields(t);return i.length&&n.validateFields(i),n.notifyObservers(e,i,{type:"dependenciesUpdate",relatedFields:[t].concat((0,_.Z)(i))}),i},this.updateValue=function(e,t){var i=Sr(e),r=n.store;n.updateStore(kr(n.store,i,t)),n.notifyObservers(r,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var o=n.triggerDependenciesUpdate(r,i),a=n.callbacks.onValuesChange;a&&a(xr(n.store,[i]),n.getFieldsValue());n.triggerOnFieldsChange([i].concat((0,_.Z)(o)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;if(e){var i=Ir(n.store,e);n.updateStore(i)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(e,t){n.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,i=[],r=new Xr;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Sr(t);r.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(r.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var r=n.getNamePath();n.isFieldDirty()&&r.length&&(i.push(r),e(r))}}))}(e),i},this.triggerOnFieldsChange=function(e,t){var i=n.callbacks.onFieldsChange;if(i){var r=n.getFields();if(t){var o=new Xr;t.forEach((function(e){var t=e.name,n=e.errors;o.set(t,n)})),r.forEach((function(e){e.errors=o.get(e.name)||e.errors}))}i(r.filter((function(t){var n=t.name;return Er(e,n)})),r)}},this.validateFields=function(e,t){n.warningUnhooked();var i=!!e,r=i?e.map(Sr):[],o=[];n.getFieldEntities(!0).forEach((function(a){if(i||r.push(a.getNamePath()),(null===t||void 0===t?void 0:t.recursive)&&i){var s=a.getNamePath();s.every((function(t,n){return e[n]===t||void 0===e[n]}))&&r.push(s)}if(a.props.rules&&a.props.rules.length){var l=a.getNamePath();if(!i||Er(r,l)){var c=a.validateRules((0,Ft.Z)({validateMessages:(0,Ft.Z)((0,Ft.Z)({},gr),n.validateMessages)},t));o.push(c.then((function(){return{name:l,errors:[],warnings:[]}})).catch((function(e){var t,n=[],i=[];return null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors;t?i.push.apply(i,(0,_.Z)(r)):n.push.apply(n,(0,_.Z)(r))})),n.length?Promise.reject({name:l,errors:n,warnings:i}):{name:l,errors:n,warnings:i}})))}}}));var a=function(e){var t=!1,n=e.length,i=[];return e.length?new Promise((function(r,o){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,i[a]=e,n>0||(t&&o(i),r(i))}))}))})):Promise.resolve([])}(o);n.lastValidatePromise=a,a.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var s=a.then((function(){return n.lastValidatePromise===a?Promise.resolve(n.getFieldsValue(r)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(r),errorFields:t,outOfDate:n.lastValidatePromise!==a})}));return s.catch((function(e){return e})),s},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(i){console.error(i)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t}));var eo=function(e){var t=v.useRef(),n=v.useState({}),i=(0,k.Z)(n,2)[1];if(!t.current)if(e)t.current=e;else{var r=new Jr((function(){i({})}));t.current=r.getForm()}return[t.current]},to=v.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),no=function(e){var t=e.validateMessages,n=e.onFormChange,i=e.onFormFinish,r=e.children,o=v.useContext(to),a=v.useRef({});return v.createElement(to.Provider,{value:(0,Ft.Z)((0,Ft.Z)({},o),{},{validateMessages:(0,Ft.Z)((0,Ft.Z)({},o.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),o.triggerFormChange(e,t)},triggerFormFinish:function(e,t){i&&i(e,{values:t,forms:a.current}),o.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=(0,Ft.Z)((0,Ft.Z)({},a.current),{},(0,N.Z)({},e,t))),o.registerForm(e,t)},unregisterForm:function(e){var t=(0,Ft.Z)({},a.current);delete t[e],a.current=t,o.unregisterForm(e)}})},r)},io=to,ro=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],oo=function(e,t){var n=e.name,i=e.initialValues,r=e.fields,o=e.form,a=e.preserve,s=e.children,l=e.component,c=void 0===l?"form":l,u=e.validateMessages,d=e.validateTrigger,h=void 0===d?"onChange":d,f=e.onValuesChange,p=e.onFieldsChange,g=e.onFinish,m=e.onFinishFailed,y=Ai(e,ro),b=v.useContext(io),C=eo(o),S=(0,k.Z)(C,1)[0],w=S.getInternalHooks(Fi),x=w.useSubscribe,E=w.setInitialValues,T=w.setCallbacks,N=w.setValidateMessages,I=w.setPreserve,D=w.destroyForm;v.useImperativeHandle(t,(function(){return S})),v.useEffect((function(){return b.registerForm(n,S),function(){b.unregisterForm(n)}}),[b,S,n]),N((0,Ft.Z)((0,Ft.Z)({},b.validateMessages),u)),T({onValuesChange:f,onFieldsChange:function(e){if(b.triggerFormChange(n,e),p){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];p.apply(void 0,[e].concat(i))}},onFinish:function(e){b.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:m}),I(a);var L,O=v.useRef(null);E(i,!O.current),O.current||(O.current=!0),v.useEffect((function(){return D}),[]);var R="function"===typeof s;R?L=s(S.getFieldsValue(!0),S):L=s;x(!R);var A=v.useRef();v.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==(0,Bt.Z)(e)||"object"!==(0,Bt.Z)(t))return!1;var n=Object.keys(e),i=Object.keys(t),r=new Set([].concat(n,i));return(0,_.Z)(r).every((function(n){var i=e[n],r=t[n];return"function"===typeof i&&"function"===typeof r||i===r}))})(A.current||[],r||[])||S.setFields(r||[]),A.current=r}),[r,S]);var M=v.useMemo((function(){return(0,Ft.Z)((0,Ft.Z)({},S),{},{validateTrigger:h})}),[S,h]),P=v.createElement(Hi.Provider,{value:M},L);return!1===c?P:v.createElement(c,Zt({},y,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),S.submit()},onReset:function(e){var t;e.preventDefault(),S.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),P)};function ao(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var so=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0],r=void 0===i?[]:i,o=t[1],a=(0,v.useState)(),s=(0,k.Z)(a,2),l=s[0],c=s[1],u=(0,v.useMemo)((function(){return ao(l)}),[l]),d=(0,v.useRef)(u);d.current=u;var h=(0,v.useContext)(Hi),f=o||h,p=f&&f._init,g=Sr(r),m=(0,v.useRef)(g);return m.current=g,(0,v.useEffect)((function(){if(p){var e=f.getFieldsValue,t=(0,(0,f.getInternalHooks)(Fi).registerWatch)((function(e){var t=wr(e,m.current),n=ao(t);d.current!==n&&(d.current=n,c(t))})),n=wr(e(),m.current);return c(n),t}}),[p]),l},lo=v.forwardRef(oo);lo.FormProvider=no,lo.Field=Ur,lo.List=Kr,lo.useForm=eo,lo.useWatch=so;var co=lo;function uo(e,t,n){var i=v.useRef({});return"value"in i.current&&!n(i.current.condition,t)||(i.current.value=e(),i.current.condition=t),i.current.value}var ho={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},fo={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},po={lang:Zt({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Zt({},fo)},go="${label} is not a valid ${type}",vo={locale:"en",Pagination:ho,DatePicker:po,TimePicker:fo,Calendar:po,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:go,method:go,array:go,object:go,number:go,date:go,boolean:go,integer:go,float:go,regexp:go,email:go,url:go,hex:go},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}},mo=Zt({},vo.Modal);function yo(e){mo=e?Zt(Zt({},mo),e):Zt({},vo.Modal)}function _o(){return mo}var bo=(0,v.createContext)(void 0),Co=function(e){var t=e.locale,n=void 0===t?{}:t,i=e.children;e._ANT_MARK__;v.useEffect((function(){return yo(n&&n.Modal),function(){yo()}}),[n]);var r=v.useMemo((function(){return Zt(Zt({},n),{exist:!0})}),[n]);return v.createElement(bo.Provider,{value:r},i)},So=function(e){var t=e.componentName,n=void 0===t?"global":t,i=e.defaultLocale,r=e.children,o=v.useContext(bo),a=v.useMemo((function(){var e,t=i||vo[n],r=null!==(e=null===o||void 0===o?void 0:o[n])&&void 0!==e?e:{};return Zt(Zt({},t instanceof Function?t():t),r||{})}),[n,i,o]);return r(a,v.useMemo((function(){var e=o&&o.locale;return o&&o.exist&&!e?vo.locale:e}),[o]),o)},wo=function(e,t){var n=v.useContext(bo),i=v.useMemo((function(){var i,r=t||vo[e],o=null!==(i=null===n||void 0===n?void 0:n[e])&&void 0!==i?i:{};return Zt(Zt({},"function"===typeof r?r():r),o||{})}),[e,t,n]);return[i]},ko="5.0.0";function xo(e,t){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Eo(e){return Math.min(1,Math.max(0,e))}function To(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function No(e){return e<=1?"".concat(100*Number(e),"%"):e}function Io(e){return 1===e.length?"0"+e:String(e)}function Do(e,t,n){e=xo(e,255),t=xo(t,255),n=xo(n,255);var i=Math.max(e,t,n),r=Math.min(e,t,n),o=0,a=0,s=(i+r)/2;if(i===r)a=0,o=0;else{var l=i-r;switch(a=s>.5?l/(2-i-r):l/(i+r),i){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:a,l:s}}function Lo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Oo(e,t,n){e=xo(e,255),t=xo(t,255),n=xo(n,255);var i=Math.max(e,t,n),r=Math.min(e,t,n),o=0,a=i,s=i-r,l=0===i?0:s/i;if(i===r)o=0;else{switch(i){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,v:a}}function Ro(e,t,n,i){var r=[Io(Math.round(e).toString(16)),Io(Math.round(t).toString(16)),Io(Math.round(n).toString(16))];return i&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Ao(e){return Math.round(255*parseFloat(e)).toString(16)}function Mo(e){return Po(e)/255}function Po(e){return parseInt(e,16)}var Zo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Fo(e){var t={r:0,g:0,b:0},n=1,i=null,r=null,o=null,a=!1,s=!1;return"string"===typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(Zo[e])e=Zo[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=jo.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=jo.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=jo.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=jo.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=jo.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=jo.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=jo.hex8.exec(e))return{r:Po(n[1]),g:Po(n[2]),b:Po(n[3]),a:Mo(n[4]),format:t?"name":"hex8"};if(n=jo.hex6.exec(e))return{r:Po(n[1]),g:Po(n[2]),b:Po(n[3]),format:t?"name":"hex"};if(n=jo.hex4.exec(e))return{r:Po(n[1]+n[1]),g:Po(n[2]+n[2]),b:Po(n[3]+n[3]),a:Mo(n[4]+n[4]),format:t?"name":"hex8"};if(n=jo.hex3.exec(e))return{r:Po(n[1]+n[1]),g:Po(n[2]+n[2]),b:Po(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(Vo(e.r)&&Vo(e.g)&&Vo(e.b)?(t=function(e,t,n){return{r:255*xo(e,255),g:255*xo(t,255),b:255*xo(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):Vo(e.h)&&Vo(e.s)&&Vo(e.v)?(i=No(e.s),r=No(e.v),t=function(e,t,n){e=6*xo(e,360),t=xo(t,100),n=xo(n,100);var i=Math.floor(e),r=e-i,o=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),l=i%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,i,r),a=!0,s="hsv"):Vo(e.h)&&Vo(e.s)&&Vo(e.l)&&(i=No(e.s),o=No(e.l),t=function(e,t,n){var i,r,o;if(e=xo(e,360),t=xo(t,100),n=xo(n,100),0===t)r=n,o=n,i=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;i=Lo(s,a,e+1/3),r=Lo(s,a,e),o=Lo(s,a,e-1/3)}return{r:255*i,g:255*r,b:255*o}}(e.h,i,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=To(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Bo="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Ho="[\\s|\\(]+(".concat(Bo,")[,|\\s]+(").concat(Bo,")[,|\\s]+(").concat(Bo,")\\s*\\)?"),zo="[\\s|\\(]+(".concat(Bo,")[,|\\s]+(").concat(Bo,")[,|\\s]+(").concat(Bo,")[,|\\s]+(").concat(Bo,")\\s*\\)?"),jo={CSS_UNIT:new RegExp(Bo),rgb:new RegExp("rgb"+Ho),rgba:new RegExp("rgba"+zo),hsl:new RegExp("hsl"+Ho),hsla:new RegExp("hsla"+zo),hsv:new RegExp("hsv"+Ho),hsva:new RegExp("hsva"+zo),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Vo(e){return Boolean(jo.CSS_UNIT.exec(String(e)))}var Wo=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Uo(e){var t=Oo(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Go(e){var t=e.r,n=e.g,i=e.b;return"#".concat(Ro(t,n,i,!1))}function Ko(e,t,n){var i=n/100;return{r:(t.r-e.r)*i+e.r,g:(t.g-e.g)*i+e.g,b:(t.b-e.b)*i+e.b}}function Yo(e,t,n){var i;return(i=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?i+=360:i>=360&&(i-=360),i}function qo(e,t,n){return 0===e.h&&0===e.s?e.s:((i=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(i=1),n&&5===t&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2)));var i}function $o(e,t,n){var i;return(i=n?e.v+.05*t:e.v-.15*t)>1&&(i=1),Number(i.toFixed(2))}function Xo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=Fo(e),r=5;r>0;r-=1){var o=Uo(i),a=Go(Fo({h:Yo(o,r,!0),s:qo(o,r,!0),v:$o(o,r,!0)}));n.push(a)}n.push(Go(i));for(var s=1;s<=4;s+=1){var l=Uo(i),c=Go(Fo({h:Yo(l,s),s:qo(l,s),v:$o(l,s)}));n.push(c)}return"dark"===t.theme?Wo.map((function(e){var i=e.index,r=e.opacity;return Go(Ko(Fo(t.backgroundColor||"#141414"),Fo(n[i]),100*r))})):n}var Qo={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Jo={},ea={};Object.keys(Qo).forEach((function(e){Jo[e]=Xo(Qo[e]),Jo[e].primary=Jo[e][5],ea[e]=Xo(Qo[e],{theme:"dark",backgroundColor:"#141414"}),ea[e].primary=ea[e][5]}));Jo.red,Jo.volcano;var ta=Jo.gold,na=(Jo.orange,Jo.yellow,Jo.lime,Jo.green,Jo.cyan,Jo.blue,Jo.geekblue,Jo.purple,Jo.magenta,Jo.grey,function(e){var t=e.controlHeight;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}});var ia={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},ra=Zt(Zt({},ia),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#f5222d",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1}),oa=function(){function e(t,n){var i;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=Fo(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=n.format)&&void 0!==i?i:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,i=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=To(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=Oo(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Oo(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Do(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Do(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Ro(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,i,r){var o=[Io(Math.round(e).toString(16)),Io(Math.round(t).toString(16)),Io(Math.round(n).toString(16)),Io(Ao(i))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*xo(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*xo(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Ro(this.r,this.g,this.b,!1),t=0,n=Object.entries(Zo);t<n.length;t++){var i=n[t],r=i[0];if(e===i[1])return r}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,i=this.a<1&&this.a>=0;return t||!i||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Eo(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Eo(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Eo(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Eo(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var i=this.toRgb(),r=new e(t).toRgb(),o=n/100;return new e({r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var i=this.toHsl(),r=360/n,o=[this];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,o.push(new e(i));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),i=n.h,r=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:i,s:r,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),i=new e(t).toRgb();return new e({r:i.r+(n.r-i.r)*n.a,g:i.g+(n.g-i.g)*n.a,b:i.b+(n.b-i.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),i=n.h,r=[this],o=360/t,a=1;a<t;a++)r.push(new e({h:(i+a*o)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function aa(e,t){var n=t.generateColorPalettes,i=t.generateNeutralColorPalettes,r=e.colorSuccess,o=e.colorWarning,a=e.colorError,s=e.colorInfo,l=e.colorPrimary,c=e.colorBgBase,u=e.colorTextBase,d=n(l),h=n(r),f=n(o),p=n(a),g=n(s);return Zt(Zt({},i(c,u)),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[4],colorError:p[5],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorBgMask:new oa("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}function sa(e){var t=new Array(10).fill(null).map((function(t,n){var i=n-1,r=e*Math.pow(2.71828,i/5),o=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(o/2)}));return t[1]=e,t.map((function(e){return{size:e,lineHeight:(e+8)/e}}))}var la=function(e){var t=e,n=e,i=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?i=1:e>=6&&(i=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e>16?16:e,borderRadiusXS:i,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};var ca=function(e,t){return new oa(e).setAlpha(t).toRgbString()},ua=function(e,t){return new oa(e).darken(t).toHexString()},da=function(e){var t=Xo(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},ha=function(e,t){var n=e||"#fff",i=t||"#000";return{colorBgBase:n,colorTextBase:i,colorText:ca(i,.88),colorTextSecondary:ca(i,.65),colorTextTertiary:ca(i,.45),colorTextQuaternary:ca(i,.25),colorFill:ca(i,.15),colorFillSecondary:ca(i,.06),colorFillTertiary:ca(i,.04),colorFillQuaternary:ca(i,.02),colorBgLayout:ua(n,4),colorBgContainer:ua(n,0),colorBgElevated:ua(n,0),colorBgSpotlight:ca(i,.85),colorBorder:ua(n,15),colorBorderSecondary:ua(n,6)}};function fa(e){var t=Object.keys(ia).map((function(t){var n=Xo(e[t]);return new Array(10).fill(1).reduce((function(e,i,r){return e[t+"-"+(r+1)]=n[r],e}),{})})).reduce((function(e,t){return e=Zt(Zt({},e),t)}),{});return Zt(Zt(Zt(Zt(Zt(Zt({},e),t),aa(e,{generateColorPalettes:da,generateNeutralColorPalettes:ha})),function(e){var t=e.sizeUnit,n=e.sizeStep;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),na(e)),function(e){var t=e.motionUnit,n=e.motionBase,i=e.fontSize,r=e.borderRadius,o=e.lineWidth,a=sa(i);return Zt({motionDurationFast:(n+t).toFixed(1)+"s",motionDurationMid:(n+2*t).toFixed(1)+"s",motionDurationSlow:(n+3*t).toFixed(1)+"s",fontSizes:a.map((function(e){return e.size})),lineHeights:a.map((function(e){return e.lineHeight})),lineWidthBold:o+1},la(r))}(e))}function pa(e){return e>=0&&e<=255}var ga=function(e,t){var n=new oa(e).toRgb(),i=n.r,r=n.g,o=n.b;if(n.a<1)return e;for(var a=new oa(t).toRgb(),s=a.r,l=a.g,c=a.b,u=.01;u<=1;u+=.01){var d=Math.round((i-s*(1-u))/u),h=Math.round((r-l*(1-u))/u),f=Math.round((o-c*(1-u))/u);if(pa(d)&&pa(h)&&pa(f))return new oa({r:d,g:h,b:f,a:Math.round(100*u)/100}).toRgbString()}return new oa({r:i,g:r,b:o,a:1}).toRgbString()},va=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function ma(e){var t=e.override,n=va(e,["override"]),i=Zt({},t);Object.keys(ra).forEach((function(e){delete i[e]}));var r=Zt(Zt({},n),i),o=r.fontSizes,a=r.lineHeights,s=1200,l=1600,c=o[0];return Zt(Zt(Zt({},r),{colorLink:r.colorInfoText,colorLinkHover:r.colorInfoHover,colorLinkActive:r.colorInfoActive,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:ga(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:ga(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:ga(r.colorWarningBg,r.colorBgContainer),fontSizeSM:c,fontSize:o[1],fontSizeLG:o[2],fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],fontSizeIcon:c,lineHeight:a[1],lineHeightLG:a[2],lineHeightSM:a[0],lineHeightHeading1:a[6],lineHeightHeading2:a[5],lineHeightHeading3:a[4],lineHeightHeading4:a[3],lineHeightHeading5:a[2],lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:ga(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",screenXS:480,screenXSMin:480,screenXSMax:479,screenSM:576,screenSMMin:576,screenSMMax:575,screenMD:768,screenMDMin:768,screenMDMax:767,screenLG:992,screenLGMin:992,screenLGMax:991,screenXL:s,screenXLMin:s,screenXLMax:1199,screenXXL:l,screenXXLMin:l,screenXXLMax:1599,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:"\n 0 1px 2px -2px "+new oa("rgba(0, 0, 0, 0.16)").toRgbString()+",\n 0 3px 6px 0 "+new oa("rgba(0, 0, 0, 0.12)").toRgbString()+",\n 0 5px 12px 4px "+new oa("rgba(0, 0, 0, 0.09)").toRgbString()+"\n ",boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),i)}var ya=Oi(fa),_a={token:ra,hashed:!0},ba=v.createContext(_a);function Ca(){var e=v.useContext(ba),t=e.token,n=e.hashed,i=e.theme,r=e.components,o=i||ya,a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.salt,r=void 0===i?"":i,o=n.override,a=void 0===o?Si:o,s=n.formatToken,l=v.useMemo((function(){return Object.assign.apply(Object,[{}].concat((0,_.Z)(t)))}),[t]),c=v.useMemo((function(){return ci(l)}),[l]),u=v.useMemo((function(){return ci(a)}),[a]),d=ei("token",[r,e.id,c,u],(function(){var t=e.getDerivativeToken(l),n=(0,Ft.Z)((0,Ft.Z)({},t),a);s&&(n=s(n));var i=ui(n,r);n._tokenKey=i,ki(i);var o="".concat("css","-").concat(en(i));return n._hashId=o,[n,o]}),(function(e){xi(e[0]._tokenKey)}));return d}(o,[ra,t],{salt:"5.0.0-"+(n||""),override:Zt({override:t},r),formatToken:ma}),s=(0,k.Z)(a,2),l=s[0],c=s[1];return[o,l,n?c:""]}var Sa="anticon",wa=v.createContext({getPrefixCls:function(e,t){return t||(e?"ant-"+e:"ant")},iconPrefixCls:Sa}),ka=wa.Consumer;var xa="-ant-"+Date.now()+"-"+Math.random();function Ea(e,t){var n=function(e,t){var n={},i=function(e,t){var n=e.clone();return(n=(null===t||void 0===t?void 0:t(n))||n).toRgbString()},r=function(e,t){var r=new oa(e),o=Xo(r.toRgbString());n[t+"-color"]=i(r),n[t+"-color-disabled"]=o[1],n[t+"-color-hover"]=o[4],n[t+"-color-active"]=o[6],n[t+"-color-outline"]=r.clone().setAlpha(.2).toRgbString(),n[t+"-color-deprecated-bg"]=o[0],n[t+"-color-deprecated-border"]=o[2]};if(t.primaryColor){r(t.primaryColor,"primary");var o=new oa(t.primaryColor),a=Xo(o.toRgbString());a.forEach((function(e,t){n["primary-"+(t+1)]=e})),n["primary-color-deprecated-l-35"]=i(o,(function(e){return e.lighten(35)})),n["primary-color-deprecated-l-20"]=i(o,(function(e){return e.lighten(20)})),n["primary-color-deprecated-t-20"]=i(o,(function(e){return e.tint(20)})),n["primary-color-deprecated-t-50"]=i(o,(function(e){return e.tint(50)})),n["primary-color-deprecated-f-12"]=i(o,(function(e){return e.setAlpha(.12*e.getAlpha())}));var s=new oa(a[0]);n["primary-color-active-deprecated-f-30"]=i(s,(function(e){return e.setAlpha(.3*e.getAlpha())})),n["primary-color-active-deprecated-d-02"]=i(s,(function(e){return e.darken(2)}))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),("\n :root {\n "+Object.keys(n).map((function(t){return"--"+e+"-"+t+": "+n[t]+";"})).join("\n")+"\n }\n ").trim()}(e,t);Ht()&&Jt(n,xa+"-dynamic-theme")}var Ta=v.createContext(!1),Na=function(e){var t=e.children,n=e.disabled,i=v.useContext(Ta);return v.createElement(Ta.Provider,{value:n||i},t)},Ia=Ta,Da=n(79613),La=n.n(Da);var Oa,Ra,Aa=v.createContext(void 0),Ma=function(e){var t=e.children,n=e.size;return v.createElement(Aa.Consumer,null,(function(e){return v.createElement(Aa.Provider,{value:n||e},t)}))},Pa=Aa,Za={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Fa=function(e){return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}},Ba=function(e){var t;return{a:(t={color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color "+e.motionDurationSlow,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}},(0,N.Z)(t,"&:active,\n &:hover",{textDecoration:e.linkHoverDecoration,outline:0}),(0,N.Z)(t,"&:focus",{textDecoration:e.linkFocusDecoration,outline:0}),(0,N.Z)(t,"&[disabled]",{color:e.colorTextDisabled,cursor:"not-allowed"}),t)}},Ha=function(e,t){var n=e.fontFamily,i=e.fontSize,r='[class^="'+t+'"], [class*=" '+t+'"]';return(0,N.Z)({},r,(0,N.Z)({fontFamily:n,fontSize:i,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},r,{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}))},za=function(e){return{outline:4*e.lineWidth+"px solid "+e.colorPrimaryBorder,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}},ja=function(e){return{"&:focus-visible":Zt({},za(e))}},Va=function(e){var t=Ca(),n=(0,k.Z)(t,2);return Ci({theme:n[0],token:n[1],hashId:"",path:["ant-design-icons",e]},(function(){return[(0,N.Z)({},"."+e,{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"},"& &-icon":{display:"block"}})]}))},Wa=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},Ua=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form"];function Ga(){return Oa||"ant"}function Ka(){return Ra||Sa}var Ya=function(){return{getPrefixCls:function(e,t){return t||(e?Ga()+"-"+e:Ga())},getIconPrefixCls:Ka,getRootPrefixCls:function(){return Oa||Ga()}}},qa=function(e){var t,n,i=e.children,r=e.csp,o=e.autoInsertSpaceInButton,a=e.form,s=e.locale,l=e.componentSize,c=e.direction,u=e.space,d=e.virtual,h=e.dropdownMatchSelectWidth,f=e.legacyLocale,p=e.parentContext,g=e.iconPrefixCls,m=e.theme,y=e.componentDisabled,_=v.useCallback((function(t,n){var i=e.prefixCls;if(n)return n;var r=i||p.getPrefixCls("");return t?r+"-"+t:r}),[p.getPrefixCls,e.prefixCls]),b=g||p.iconPrefixCls||Sa,C=b!==p.iconPrefixCls,S=r||p.csp,w=Va(b),k=function(e,t){var n=e||{},i=!1!==n.inherit&&t?t:_a,r=uo((function(){if(!e)return t;var r=Zt({},i.components);return Object.keys(e.components||{}).forEach((function(t){r[t]=Zt(Zt({},r[t]),e.components[t])})),Zt(Zt(Zt({},i),n),{token:Zt(Zt({},i.token),n.token),components:r})}),[n,i],(function(e,t){return e.some((function(e,n){var i=t[n];return!La()(e,i)}))}));return r}(m,p.theme),x=Zt(Zt({},p),{csp:S,autoInsertSpaceInButton:o,locale:s||f,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:h,getPrefixCls:_,iconPrefixCls:b,theme:k});Ua.forEach((function(t){var n=e[t];n&&(x[t]=n)}));var E=uo((function(){return x}),x,(function(e,t){var n=Object.keys(e),i=Object.keys(t);return n.length!==i.length||n.some((function(n){return e[n]!==t[n]}))})),T=v.useMemo((function(){return{prefixCls:b,csp:S}}),[b,S]),N=C?w(i):i,I={};s&&(I=(null===(t=s.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=vo.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),a&&a.validateMessages&&(I=Zt(Zt({},I),a.validateMessages)),Object.keys(I).length>0&&(N=v.createElement(no,{validateMessages:I},i)),s&&(N=v.createElement(Co,{locale:s,_ANT_MARK__:"internalMark"},N)),(b||S)&&(N=v.createElement(Ri.Provider,{value:T},N)),l&&(N=v.createElement(Ma,{size:l},N));var D=v.useMemo((function(){var e=k||{},t=e.algorithm,n=e.token,i=Wa(e,["algorithm","token"]),r=t&&(!Array.isArray(t)||t.length>0)?Oi(t):void 0;return Zt(Zt({},i),{theme:r,token:Zt(Zt({},ra),n)})}),[k]);return m&&(N=v.createElement(ba.Provider,{value:D},N)),void 0!==y&&(N=v.createElement(Na,{disabled:y},N)),v.createElement(wa.Provider,{value:E},N)},$a=function(e){return v.createElement(So,null,(function(t,n,i){return v.createElement(ka,null,(function(t){return v.createElement(qa,Zt({parentContext:t,legacyLocale:i},e))}))}))};$a.ConfigContext=wa,$a.SizeContext=Pa,$a.config=function(e){var t=e.prefixCls,n=e.iconPrefixCls,i=e.theme;void 0!==t&&(Oa=t),void 0!==n&&(Ra=n),i&&Ea(Ga(),i)};var Xa=$a,Qa=n(81694),Ja=n.n(Qa),es=n(48573),ts=n.n(es);function ns(e,t){var n=(0,Ft.Z)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var is=v.isValidElement;function rs(e){return e&&is(e)&&e.type===v.Fragment}function os(e,t){return function(e,t,n){return is(e)?v.cloneElement(e,"function"===typeof n?n(e.props||{}):n):t}(e,e,t)}var as=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},ss="undefined"!==typeof CSSINJS_STATISTIC,ls=!0;function cs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ss)return Zt.apply(void 0,[{}].concat(t));ls=!1;var i={};return t.forEach((function(e){Object.keys(e).forEach((function(t){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),ls=!0,i}var us={};function ds(){}function hs(e,t,n){return function(i){var r=Ca(),o=(0,k.Z)(r,3),a=o[0],s=o[1],l=o[2],c=(0,v.useContext)(wa),u=c.getPrefixCls,d=c.iconPrefixCls,h=u();return Ci({theme:a,token:s,hashId:l,path:["Shared",h]},(function(){return[{"&":Ba(s)}]})),[Ci({theme:a,token:s,hashId:l,path:[e,i,d]},(function(){var r=function(e){var t,n=e,i=ds;return ss&&(t=new Set,n=new Proxy(e,{get:function(e,n){return ls&&t.add(n),e[n]}}),i=function(e,n){us[e]={global:Array.from(t),component:n}}),{token:n,keys:t,flush:i}}(s),o=r.token,a=r.flush,c=Zt(Zt({},"function"===typeof n?n(o):n),s[e]),u=cs(o,{componentCls:"."+i,prefixCls:i,iconCls:"."+d,antCls:"."+h},c),f=t(u,{hashId:l,prefixCls:i,rootPrefixCls:h,iconPrefixCls:d,overrideComponentToken:s[e]});return a(e,c),[Ha(s,i),f]})),l]}}var fs=new Ti("antSpinMove",{to:{opacity:1}}),ps=new Ti("antRotate",{to:{transform:"rotate(405deg)"}}),gs=function(e){var t,n,i,r,o;return(0,N.Z)({},""+e.componentCls,Zt(Zt({},Fa(e)),(o={position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:"transform "+e.motionDurationSlow+" "+e.motionEaseInOutCirc,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":(r={position:"relative"},(0,N.Z)(r,"> div > "+e.componentCls,(i={position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight},(0,N.Z)(i,e.componentCls+"-dot",{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2}),(0,N.Z)(i,e.componentCls+"-text",{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:"0 1px 2px "+e.colorBgContainer}),(0,N.Z)(i,"&"+e.componentCls+"-show-text "+e.componentCls+"-dot",{marginTop:-e.spinDotSize/2-10}),(0,N.Z)(i,"> div > "+e.componentCls+"-sm",(t={},(0,N.Z)(t,e.componentCls+"-dot",{margin:-e.spinDotSizeSM/2}),(0,N.Z)(t,e.componentCls+"-text",{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2}),(0,N.Z)(t,"&"+e.componentCls+"-show-text "+e.componentCls+"-dot",{marginTop:-e.spinDotSizeSM/2-10}),t)),(0,N.Z)(i,"> div > "+e.componentCls+"-lg",(n={},(0,N.Z)(n,e.componentCls+"-dot",{margin:-e.spinDotSizeLG/2}),(0,N.Z)(n,e.componentCls+"-text",{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2}),(0,N.Z)(n,"&"+e.componentCls+"-show-text "+e.componentCls+"-dot",{marginTop:-e.spinDotSizeLG/2-10}),n)),i)),(0,N.Z)(r,e.componentCls+"-container",{position:"relative",transition:"opacity "+e.motionDurationSlow,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:"all "+e.motionDurationSlow,content:'""',pointerEvents:"none"}}),(0,N.Z)(r,e.componentCls+"-blur",(0,N.Z)({clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none"},"&::after",{opacity:.4,pointerEvents:"auto"})),r)},(0,N.Z)(o,"&-tip",{color:e.spinDotDefault}),(0,N.Z)(o,e.componentCls+"-dot",{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:fs,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:ps,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),(0,N.Z)(o,"&-sm "+e.componentCls+"-dot",{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}}),(0,N.Z)(o,"&-lg "+e.componentCls+"-dot",{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}}),(0,N.Z)(o,"&"+e.componentCls+"-show-text "+e.componentCls+"-text",{display:"block"}),o)))},vs=hs("Spin",(function(e){var t=cs(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[gs(t)]}),{contentHeight:400}),ms=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},ys=(as("small","default","large"),null);var _s=function(e){var t=e.spinPrefixCls,n=e.spinning,i=void 0===n||n,r=e.delay,o=e.className,a=e.size,s=void 0===a?"default":a,l=e.tip,c=e.wrapperClassName,u=e.style,d=e.children,h=e.hashId,f=ms(e,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children","hashId"]),p=v.useState((function(){return i&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(i,r)})),g=(0,k.Z)(p,2),m=g[0],y=g[1];v.useEffect((function(){var e=ts()((function(){y(i)}),r);return e(),function(){var t;null===(t=null===e||void 0===e?void 0:e.cancel)||void 0===t||t.call(e)}}),[r,i]);var _=function(n){var i,r=n.direction,a=Ja()(t,(i={},(0,N.Z)(i,t+"-sm","small"===s),(0,N.Z)(i,t+"-lg","large"===s),(0,N.Z)(i,t+"-spinning",m),(0,N.Z)(i,t+"-show-text",!!l),(0,N.Z)(i,t+"-rtl","rtl"===r),i),o,h),p=ns(f,["indicator","prefixCls"]),g=v.createElement("div",Zt({},p,{style:u,className:a,"aria-live":"polite","aria-busy":m}),function(e,t){var n=t.indicator,i=e+"-dot";return null===n?null:is(n)?os(n,{className:Ja()(n.props.className,i)}):is(ys)?os(ys,{className:Ja()(ys.props.className,i)}):v.createElement("span",{className:Ja()(i,e+"-dot-spin")},v.createElement("i",{className:e+"-dot-item"}),v.createElement("i",{className:e+"-dot-item"}),v.createElement("i",{className:e+"-dot-item"}),v.createElement("i",{className:e+"-dot-item"}))}(t,e),l?v.createElement("div",{className:t+"-text"},l):null);if("undefined"!==typeof d){var y=Ja()(t+"-container",(0,N.Z)({},t+"-blur",m));return v.createElement("div",Zt({},p,{className:Ja()(t+"-nested-loading",c,h)}),m&&v.createElement("div",{key:"loading"},g),v.createElement("div",{className:y,key:"container"},d))}return g};return v.createElement(ka,null,_)},bs=function(e){var t=e.prefixCls,n=(0,v.useContext(wa).getPrefixCls)("spin",t),i=vs(n),r=(0,k.Z)(i,2),o=r[0],a=r[1],s=Zt(Zt({},e),{spinPrefixCls:n,hashId:a});return o(v.createElement(_s,Zt({},s)))};bs.setDefaultIndicator=function(e){ys=e};var Cs=bs,Ss={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"};function ws(e){return"object"===(0,Bt.Z)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===(0,Bt.Z)(e.icon)||"function"===typeof e.icon)}function ks(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var i=e[n];if("class"===n)t.className=i,delete t.class;else t[n]=i;return t}),{})}function xs(e,t,n){return n?v.createElement(e.tag,(0,Ft.Z)((0,Ft.Z)({key:t},ks(e.attrs)),n),(e.children||[]).map((function(n,i){return xs(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))):v.createElement(e.tag,(0,Ft.Z)({key:t},ks(e.attrs)),(e.children||[]).map((function(n,i){return xs(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})))}function Es(e){return Xo(e)[0]}function Ts(e){return e?Array.isArray(e)?e:[e]:[]}var Ns="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",Is=["icon","className","onClick","style","primaryColor","secondaryColor"],Ds={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Ls=function(e){var t=e.icon,n=e.className,i=e.onClick,r=e.style,o=e.primaryColor,a=e.secondaryColor,s=Ai(e,Is),l=Ds;if(o&&(l={primaryColor:o,secondaryColor:a||Es(o)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ns,t=(0,v.useContext)(Ri).csp;(0,v.useEffect)((function(){Jt(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),function(e,t){li(e,"[@ant-design/icons] ".concat(t))}(ws(t),"icon should be icon definiton, but got ".concat(t)),!ws(t))return null;var c=t;return c&&"function"===typeof c.icon&&(c=(0,Ft.Z)((0,Ft.Z)({},c),{},{icon:c.icon(l.primaryColor,l.secondaryColor)})),xs(c.icon,"svg-".concat(c.name),(0,Ft.Z)({className:n,onClick:i,style:r,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s))};Ls.displayName="IconReact",Ls.getTwoToneColors=function(){return(0,Ft.Z)({},Ds)},Ls.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Ds.primaryColor=t,Ds.secondaryColor=n||Es(t),Ds.calculated=!!n};var Os=Ls;function Rs(e){var t=Ts(e),n=(0,k.Z)(t,2),i=n[0],r=n[1];return Os.setTwoToneColors({primaryColor:i,secondaryColor:r})}var As=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Rs("#1890ff");var Ms=v.forwardRef((function(e,t){var n,i=e.className,r=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Ai(e,As),d=v.useContext(Ri).prefixCls,h=void 0===d?"anticon":d,f=Ja()(h,(n={},(0,N.Z)(n,"".concat(h,"-").concat(r.name),!!r.name),(0,N.Z)(n,"".concat(h,"-spin"),!!o||"loading"===r.name),n),i),p=s;void 0===p&&l&&(p=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,m=Ts(c),y=(0,k.Z)(m,2),_=y[0],b=y[1];return v.createElement("span",(0,Ft.Z)((0,Ft.Z)({role:"img","aria-label":r.name},u),{},{ref:t,tabIndex:p,onClick:l,className:f}),v.createElement(Os,{icon:r,primaryColor:_,secondaryColor:b,style:g}))}));Ms.displayName="AntdIcon",Ms.getTwoToneColor=function(){var e=Os.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ms.setTwoToneColor=Rs;var Ps=Ms,Zs=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Ss}))};Zs.displayName="BookOutlined";var Fs=v.forwardRef(Zs),Bs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},Hs=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Bs}))};Hs.displayName="UserOutlined";var zs=v.forwardRef(Hs),js=function(e){var t,n=e.componentCls,i=e.colorBgContainer,r=e.colorBgBody,o=e.colorText;return(0,N.Z)({},n+"-sider-light",(t={background:i},(0,N.Z)(t,n+"-sider-trigger",{color:o,background:i}),(0,N.Z)(t,n+"-sider-zero-width-trigger",{color:o,background:i,border:"1px solid "+r,borderInlineStart:0}),t))},Vs=function(e){var t,n=e.antCls,i=e.componentCls,r=e.colorText,o=e.colorTextLightSolid,a=e.colorBgHeader,s=e.colorBgBody,l=e.colorBgTrigger,c=e.layoutHeaderHeight,u=e.layoutHeaderPaddingInline,d=e.layoutHeaderColor,h=e.layoutFooterPadding,f=e.layoutTriggerHeight,p=e.layoutZeroTriggerSize,g=e.motionDurationMid,v=e.motionDurationSlow,m=e.fontSize,y=e.borderRadius;return(0,N.Z)({},i,Zt(Zt((t={display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:s,"&, *":{boxSizing:"border-box"}},(0,N.Z)(t,"&"+i+"-has-sider",(0,N.Z)({flexDirection:"row"},"> "+i+", > "+i+"-content",{width:0})),(0,N.Z)(t,i+"-header, &"+i+"-footer",{flex:"0 0 auto"}),(0,N.Z)(t,i+"-header",(0,N.Z)({height:c,paddingInline:u,color:d,lineHeight:c+"px",background:a},n+"-menu",{lineHeight:"inherit"})),(0,N.Z)(t,i+"-footer",{padding:h,color:r,fontSize:m,background:s}),(0,N.Z)(t,i+"-content",{flex:"auto",minHeight:0}),(0,N.Z)(t,i+"-sider",{position:"relative",minWidth:0,background:a,transition:"all "+g,"&-children":(0,N.Z)({height:"100%",marginTop:-.1,paddingTop:.1},n+"-menu"+n+"menu-inline-collapsed",{width:"auto"}),"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:o,lineHeight:f+"px",textAlign:"center",background:l,cursor:"pointer",transition:"all "+g},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:-p,zIndex:1,width:p,height:p,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:a,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:"background "+v+" ease","&::after":{position:"absolute",inset:0,background:"transparent",transition:"all "+v,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-p,borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}),t),js(e)),{"&-rtl":{direction:"rtl"}}))},Ws=hs("Layout",(function(e){var t=e.colorText,n=e.controlHeightSM,i=e.controlHeight,r=e.controlHeightLG,o=1.25*r,a=cs(e,{layoutHeaderHeight:2*i,layoutHeaderPaddingInline:o,layoutHeaderColor:t,layoutFooterPadding:n+"px "+o+"px",layoutTriggerHeight:r+2*e.marginXXS,layoutZeroTriggerSize:r});return[Vs(a)]}),(function(e){return{colorBgHeader:"#001529",colorBgBody:e.colorBgLayout,colorBgTrigger:"#002140"}})),Us=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},Gs=v.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function Ks(e){var t=e.suffixCls,n=e.tagName;e.displayName;return function(e){return v.forwardRef((function(i,r){var o=v.useContext(wa).getPrefixCls,a=i.prefixCls,s=o(t,a);return v.createElement(e,Zt({ref:r,prefixCls:s,tagName:n},i))}))}}var Ys=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,r=e.children,o=e.tagName,a=Us(e,["prefixCls","className","children","tagName"]),s=Ja()(n,i);return v.createElement(o,Zt(Zt({className:s},a),{ref:t}),r)})),qs=v.forwardRef((function(e,t){var n,i=v.useContext(wa).direction,r=v.useState([]),o=(0,k.Z)(r,2),a=o[0],s=o[1],l=e.prefixCls,c=e.className,u=e.children,d=e.hasSider,h=e.tagName,f=Us(e,["prefixCls","className","children","hasSider","tagName"]),p=Ws(l),g=(0,k.Z)(p,2),m=g[0],y=g[1],b=Ja()(l,(n={},(0,N.Z)(n,l+"-has-sider","boolean"===typeof d?d:a.length>0),(0,N.Z)(n,l+"-rtl","rtl"===i),n),c,y),C=v.useMemo((function(){return{siderHook:{addSider:function(e){s((function(t){return[].concat((0,_.Z)(t),[e])}))},removeSider:function(e){s((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return m(v.createElement(Gs.Provider,{value:C},v.createElement(h,Zt({ref:t,className:b},f),u)))})),$s=Ks({suffixCls:"layout",tagName:"section",displayName:"Layout"})(qs),Xs=Ks({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(Ys),Qs=Ks({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(Ys),Js=Ks({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(Ys),el=$s,tl={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},nl=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:tl}))};nl.displayName="BarsOutlined";var il=v.forwardRef(nl),rl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},ol=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:rl}))};ol.displayName="LeftOutlined";var al=v.forwardRef(ol),sl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},ll=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:sl}))};ll.displayName="RightOutlined";var cl=v.forwardRef(ll),ul=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},dl=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},hl={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},fl=v.createContext({}),pl=function(){var e=0;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""+t+(e+=1)}}(),gl=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,r=e.trigger,o=e.children,a=e.defaultCollapsed,s=void 0!==a&&a,l=e.theme,c=void 0===l?"dark":l,u=e.style,d=void 0===u?{}:u,h=e.collapsible,f=void 0!==h&&h,p=e.reverseArrow,g=void 0!==p&&p,m=e.width,y=void 0===m?200:m,_=e.collapsedWidth,b=void 0===_?80:_,C=e.zeroWidthTriggerStyle,S=e.breakpoint,w=e.onCollapse,x=e.onBreakpoint,E=dl(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),T=(0,v.useContext)(Gs).siderHook,I=(0,v.useState)("collapsed"in E?E.collapsed:s),D=(0,k.Z)(I,2),L=D[0],O=D[1],R=(0,v.useState)(!1),A=(0,k.Z)(R,2),M=A[0],P=A[1];(0,v.useEffect)((function(){"collapsed"in E&&O(E.collapsed)}),[E.collapsed]);var Z=function(e,t){"collapsed"in E||O(e),null===w||void 0===w||w(e,t)},F=(0,v.useRef)();F.current=function(e){P(e.matches),null===x||void 0===x||x(e.matches),L!==e.matches&&Z(e.matches,"responsive")},(0,v.useEffect)((function(){function e(e){return F.current(e)}var t;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&S&&S in hl){t=n("(max-width: "+hl[S]+")");try{t.addEventListener("change",e)}catch(i){t.addListener(e)}e(t)}}return function(){try{null===t||void 0===t||t.removeEventListener("change",e)}catch(i){null===t||void 0===t||t.removeListener(e)}}}),[S]),(0,v.useEffect)((function(){var e=pl("ant-sider-");return T.addSider(e),function(){return T.removeSider(e)}}),[]);var B=function(){Z(!L,"clickTrigger")},H=(0,v.useContext)(wa).getPrefixCls,z=v.useMemo((function(){return{siderCollapsed:L}}),[L]);return v.createElement(fl.Provider,{value:z},function(){var e,a=H("layout-sider",n),s=ns(E,["collapsed"]),l=L?b:y,u=ul(l)?l+"px":String(l),h=0===parseFloat(String(b||0))?v.createElement("span",{onClick:B,className:Ja()(a+"-zero-width-trigger",a+"-zero-width-trigger-"+(g?"right":"left")),style:C},r||v.createElement(il,null)):null,p={expanded:g?v.createElement(cl,null):v.createElement(al,null),collapsed:g?v.createElement(al,null):v.createElement(cl,null)}[L?"collapsed":"expanded"],m=null!==r?h||v.createElement("div",{className:a+"-trigger",onClick:B,style:{width:u}},r||p):null,_=Zt(Zt({},d),{flex:"0 0 "+u,maxWidth:u,minWidth:u,width:u}),S=Ja()(a,a+"-"+c,(e={},(0,N.Z)(e,a+"-collapsed",!!L),(0,N.Z)(e,a+"-has-trigger",f&&null!==r&&!h),(0,N.Z)(e,a+"-below",!!M),(0,N.Z)(e,a+"-zero-width",0===parseFloat(u)),e),i);return v.createElement("aside",Zt({className:S},s,{style:_,ref:t}),v.createElement("div",{className:a+"-children"},o),f||M&&h?m:null)}())}));var vl=gl,ml=el;ml.Header=Xs,ml.Footer=Qs,ml.Content=Js,ml.Sider=vl;var yl=ml,_l=v.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),bl=v.createContext(null),Cl=v.createContext({prefixCls:""}),Sl=v.createContext({}),wl=function(e){var t=e.children,n=e.status,i=e.override,r=(0,v.useContext)(Sl),o=(0,v.useMemo)((function(){var e=Zt({},r);return i&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,i,r]);return v.createElement(Sl.Provider,{value:o},t)},kl=n(54164),xl=n.t(kl,2);function El(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof v.Component?kl.findDOMNode(e):null}function Tl(e,t){"function"===typeof e?e(t):"object"===(0,Bt.Z)(e)&&e&&"current"in e&&(e.current=t)}function Nl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter((function(e){return e}));return i.length<=1?i[0]:function(e){t.forEach((function(t){Tl(t,e)}))}}function Il(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return uo((function(){return Nl.apply(void 0,t)}),t,(function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))}))}function Dl(e){var t,n,i=(0,Pi.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof i||null!==(t=i.prototype)&&void 0!==t&&t.render)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render)}function Ll(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var Ol=function(e,t){var n={animationend:Ll("Animation","AnimationEnd"),transitionend:Ll("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Ht(),"undefined"!==typeof window?window:{}),Rl={};if(Ht()){var Al=document.createElement("div");Rl=Al.style}var Ml={};function Pl(e){if(Ml[e])return Ml[e];var t=Ol[e];if(t)for(var n=Object.keys(t),i=n.length,r=0;r<i;r+=1){var o=n[r];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Rl)return Ml[e]=t[o],Ml[e]}return""}var Zl=Pl("animationend"),Fl=Pl("transitionend"),Bl=!(!Zl||!Fl),Hl=Zl||"animationend",zl=Fl||"transitionend";function jl(e,t){if(!e)return null;if("object"===(0,Bt.Z)(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var Vl="none",Wl="appear",Ul="enter",Gl="leave",Kl="none",Yl="prepare",ql="start",$l="active",Xl="end";function Ql(e){var t=v.useRef(!1),n=v.useState(e),i=(0,k.Z)(n,2),r=i[0],o=i[1];return v.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}var Jl=function(e){return+setTimeout(e,16)},ec=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(Jl=function(e){return window.requestAnimationFrame(e)},ec=function(e){return window.cancelAnimationFrame(e)});var tc=0,nc=new Map;function ic(e){nc.delete(e)}var rc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=tc+=1;function i(t){if(0===t)ic(n),e();else{var r=Jl((function(){i(t-1)}));nc.set(n,r)}}return i(t),n};rc.cancel=function(e){var t=nc.get(e);return ic(t),ec(t)};var oc=rc,ac=Ht()?v.useLayoutEffect:v.useEffect,sc=[Yl,ql,$l,Xl];function lc(e){return e===$l||e===Xl}var cc=function(e,t){var n=Ql(Kl),i=(0,k.Z)(n,2),r=i[0],o=i[1],a=function(){var e=v.useRef(null);function t(){oc.cancel(e.current)}return v.useEffect((function(){return function(){t()}}),[]),[function n(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var o=oc((function(){r<=1?i({isCanceled:function(){return o!==e.current}}):n(i,r-1)}));e.current=o},t]}(),s=(0,k.Z)(a,2),l=s[0],c=s[1];return ac((function(){if(r!==Kl&&r!==Xl){var e=sc.indexOf(r),n=sc[e+1],i=t(r);false===i?o(n,!0):l((function(e){function t(){e.isCanceled()||o(n,!0)}!0===i?t():Promise.resolve(i).then(t)}))}}),[e,r]),v.useEffect((function(){return function(){c()}}),[]),[function(){o(Yl,!0)},r]};function uc(e,t,n,i){var r=i.motionEnter,o=void 0===r||r,a=i.motionAppear,s=void 0===a||a,l=i.motionLeave,c=void 0===l||l,u=i.motionDeadline,d=i.motionLeaveImmediately,h=i.onAppearPrepare,f=i.onEnterPrepare,p=i.onLeavePrepare,g=i.onAppearStart,m=i.onEnterStart,y=i.onLeaveStart,_=i.onAppearActive,b=i.onEnterActive,C=i.onLeaveActive,S=i.onAppearEnd,w=i.onEnterEnd,x=i.onLeaveEnd,E=i.onVisibleChanged,T=Ql(),I=(0,k.Z)(T,2),D=I[0],L=I[1],O=Ql(Vl),R=(0,k.Z)(O,2),A=R[0],M=R[1],P=Ql(null),Z=(0,k.Z)(P,2),F=Z[0],B=Z[1],H=(0,v.useRef)(!1),z=(0,v.useRef)(null);function j(){return n()}var V=(0,v.useRef)(!1);function W(e){var t=j();if(!e||e.deadline||e.target===t){var n,i=V.current;A===Wl&&i?n=null===S||void 0===S?void 0:S(t,e):A===Ul&&i?n=null===w||void 0===w?void 0:w(t,e):A===Gl&&i&&(n=null===x||void 0===x?void 0:x(t,e)),A!==Vl&&i&&!1!==n&&(M(Vl,!0),B(null,!0))}}var U=function(e){var t=(0,v.useRef)(),n=(0,v.useRef)(e);n.current=e;var i=v.useCallback((function(e){n.current(e)}),[]);function r(e){e&&(e.removeEventListener(zl,i),e.removeEventListener(Hl,i))}return v.useEffect((function(){return function(){r(t.current)}}),[]),[function(e){t.current&&t.current!==e&&r(t.current),e&&e!==t.current&&(e.addEventListener(zl,i),e.addEventListener(Hl,i),t.current=e)},r]}(W),G=(0,k.Z)(U,1)[0],K=v.useMemo((function(){var e,t,n;switch(A){case Wl:return e={},(0,N.Z)(e,Yl,h),(0,N.Z)(e,ql,g),(0,N.Z)(e,$l,_),e;case Ul:return t={},(0,N.Z)(t,Yl,f),(0,N.Z)(t,ql,m),(0,N.Z)(t,$l,b),t;case Gl:return n={},(0,N.Z)(n,Yl,p),(0,N.Z)(n,ql,y),(0,N.Z)(n,$l,C),n;default:return{}}}),[A]),Y=cc(A,(function(e){if(e===Yl){var t=K.prepare;return!!t&&t(j())}var n;X in K&&B((null===(n=K[X])||void 0===n?void 0:n.call(K,j(),null))||null);return X===$l&&(G(j()),u>0&&(clearTimeout(z.current),z.current=setTimeout((function(){W({deadline:!0})}),u))),true})),q=(0,k.Z)(Y,2),$=q[0],X=q[1],Q=lc(X);V.current=Q,ac((function(){L(t);var n,i=H.current;(H.current=!0,e)&&(!i&&t&&s&&(n=Wl),i&&t&&o&&(n=Ul),(i&&!t&&c||!i&&d&&!t&&c)&&(n=Gl),n&&(M(n),$()))}),[t]),(0,v.useEffect)((function(){(A===Wl&&!s||A===Ul&&!o||A===Gl&&!c)&&M(Vl)}),[s,o,c]),(0,v.useEffect)((function(){return function(){H.current=!1,clearTimeout(z.current)}}),[]);var J=v.useRef(!1);(0,v.useEffect)((function(){D&&(J.current=!0),void 0!==D&&A===Vl&&((J.current||D)&&(null===E||void 0===E||E(D)),J.current=!0)}),[D,A]);var ee=F;return K.prepare&&X===ql&&(ee=(0,Ft.Z)({transition:"none"},ee)),[A,X,ee,null!==D&&void 0!==D?D:t]}var dc=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){return(0,b.Z)(this,n),t.apply(this,arguments)}return(0,C.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(v.Component),hc=dc;var fc=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,Bt.Z)(e)&&(t=e.transitionSupport);var i=v.forwardRef((function(e,t){var i=e.visible,r=void 0===i||i,o=e.removeOnLeave,a=void 0===o||o,s=e.forceRender,l=e.children,c=e.motionName,u=e.leavedClassName,d=e.eventProps,h=n(e),f=(0,v.useRef)(),p=(0,v.useRef)();var g=uc(h,r,(function(){try{return f.current instanceof HTMLElement?f.current:El(p.current)}catch(Fc){return null}}),e),m=(0,k.Z)(g,4),y=m[0],_=m[1],b=m[2],C=m[3],S=v.useRef(C);C&&(S.current=!0);var w,x=v.useCallback((function(e){f.current=e,Tl(t,e)}),[t]),E=(0,Ft.Z)((0,Ft.Z)({},d),{},{visible:r});if(l)if(y!==Vl&&n(e)){var T,I;_===Yl?I="prepare":lc(_)?I="active":_===ql&&(I="start"),w=l((0,Ft.Z)((0,Ft.Z)({},E),{},{className:Ja()(jl(c,y),(T={},(0,N.Z)(T,jl(c,"".concat(y,"-").concat(I)),I),(0,N.Z)(T,c,"string"===typeof c),T)),style:b}),x)}else w=C?l((0,Ft.Z)({},E),x):!a&&S.current?l((0,Ft.Z)((0,Ft.Z)({},E),{},{className:u}),x):s?l((0,Ft.Z)((0,Ft.Z)({},E),{},{style:{display:"none"}}),x):null;else w=null;v.isValidElement(w)&&Dl(w)&&(w.ref||(w=v.cloneElement(w,{ref:x})));return v.createElement(hc,{ref:p},w)}));return i.displayName="CSSMotion",i}(Bl),pc="add",gc="keep",vc="remove",mc="removed";function yc(e){var t;return t=e&&"object"===(0,Bt.Z)(e)&&"key"in e?e:{key:e},(0,Ft.Z)((0,Ft.Z)({},t),{},{key:String(t.key)})}function _c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(yc)}function bc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],i=0,r=t.length,o=_c(e),a=_c(t);o.forEach((function(e){for(var t=!1,o=i;o<r;o+=1){var s=a[o];if(s.key===e.key){i<o&&(n=n.concat(a.slice(i,o).map((function(e){return(0,Ft.Z)((0,Ft.Z)({},e),{},{status:pc})}))),i=o),n.push((0,Ft.Z)((0,Ft.Z)({},s),{},{status:gc})),i+=1,t=!0;break}}t||n.push((0,Ft.Z)((0,Ft.Z)({},e),{},{status:vc}))})),i<r&&(n=n.concat(a.slice(i).map((function(e){return(0,Ft.Z)((0,Ft.Z)({},e),{},{status:pc})}))));var s={};n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1}));var l=Object.keys(s).filter((function(e){return s[e]>1}));return l.forEach((function(e){n=n.filter((function(t){var n=t.key,i=t.status;return n!==e||i!==vc})),n.forEach((function(t){t.key===e&&(t.status=gc)}))})),n}var Cc=["component","children","onVisibleChanged","onAllRemoved"],Sc=["status"],wc=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var kc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fc,n=function(e){(0,S.Z)(i,e);var n=(0,w.Z)(i);function i(){var e;(0,b.Z)(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={keyEntities:[]},e.removeKey=function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:(0,Ft.Z)((0,Ft.Z)({},e),{},{status:mc})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==mc})).length},e}return(0,C.Z)(i,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,i=this.props,r=i.component,o=i.children,a=i.onVisibleChanged,s=i.onAllRemoved,l=Ai(i,Cc),c=r||v.Fragment,u={};return wc.forEach((function(e){u[e]=l[e],delete l[e]})),delete l.keys,v.createElement(c,l,n.map((function(n){var i=n.status,r=Ai(n,Sc),l=i===pc||i===gc;return v.createElement(t,Zt({},u,{key:r.key,visible:l,eventProps:r,onVisibleChanged:function(t){(null===a||void 0===a||a(t,{key:r.key}),t)||0===e.removeKey(r.key)&&s&&s()}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,i=t.keyEntities,r=_c(n);return{keyEntities:bc(i,r).filter((function(e){var t=i.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==mc||e.status!==vc}))}}}]),i}(v.Component);return n.defaultProps={component:"div"},n}(Bl),xc=fc,Ec=function(){return{height:0,opacity:0}},Tc=function(e){return{height:e.scrollHeight,opacity:1}},Nc=function(e){return{height:e?e.offsetHeight:0}},Ic=function(e,t){return!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName},Dc=(as("bottomLeft","bottomRight","topLeft","topRight"),function(e){return void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down"}),Lc=function(e,t,n){return void 0!==n?n:e+"-"+t},Oc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant";return{motionName:e+"-motion-collapse",onAppearStart:Ec,onEnterStart:Ec,onAppearActive:Tc,onEnterActive:Tc,onLeaveStart:Nc,onLeaveActive:Ec,onAppearEnd:Ic,onEnterEnd:Ic,onLeaveEnd:Ic,motionDeadline:500}};function Rc(e){var t=v.useState(e),n=(0,k.Z)(t,2),i=n[0],r=n[1];return v.useEffect((function(){var t=setTimeout((function(){r(e)}),e.length?0:10);return function(){clearTimeout(t)}}),[e]),i}var Ac=[];function Mc(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"===typeof e?e:n+"-"+i,error:e,errorStatus:t}}function Pc(e){var t=e.help,n=e.helpStatus,i=e.errors,r=void 0===i?Ac:i,o=e.warnings,a=void 0===o?Ac:o,s=e.className,l=e.fieldId,c=e.onVisibleChanged,u=v.useContext(Cl).prefixCls,d=v.useContext(wa).getPrefixCls,h=u+"-item-explain",f=d(),p=(0,v.useMemo)((function(){return Oc(f)}),[f]),g=Rc(r),m=Rc(a),y=v.useMemo((function(){return void 0!==t&&null!==t?[Mc(t,n,"help")]:[].concat((0,_.Z)(g.map((function(e,t){return Mc(e,"error","error",t)}))),(0,_.Z)(m.map((function(e,t){return Mc(e,"warning","warning",t)}))))}),[t,n,g,m]),b={};return l&&(b.id=l+"_help"),v.createElement(xc,Zt({},p,{motionDeadline:p.motionDeadline,motionName:f+"-show-help",visible:!!y.length,onVisibleChanged:c}),(function(e){var t=e.className,n=e.style;return v.createElement("div",Zt({},b,{className:Ja()(h,t,s),style:n,role:"alert"}),v.createElement(kc,Zt({keys:y},Oc(f),{motionName:f+"-show-help-item",component:!1}),(function(e){var t=e.key,n=e.error,i=e.errorStatus,r=e.className,o=e.style;return v.createElement("div",{key:t,className:Ja()(r,(0,N.Z)({},h+"-"+i,i)),style:o},n)})))}))}function Zc(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Fc(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function Bc(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Fc(n.overflowY,t)||Fc(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function Hc(e,t,n,i,r,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-i:a>t&&s<n||o<e&&s>n?a-t+r:0}function zc(e,t){var n=window,i=t.scrollMode,r=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!Zc(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],d=e;Zc(d)&&l(d);){if((d=d.parentElement)===c){u.push(d);break}null!=d&&d===document.body&&Bc(d)&&!Bc(document.documentElement)||null!=d&&Bc(d,s)&&u.push(d)}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,f=n.visualViewport?n.visualViewport.height:innerHeight,p=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,y=v.width,_=v.top,b=v.right,C=v.bottom,S=v.left,w="start"===r||"nearest"===r?_:"end"===r?C:_+m/2,k="center"===o?S+y/2:"end"===o?b:S,x=[],E=0;E<u.length;E++){var T=u[E],N=T.getBoundingClientRect(),I=N.height,D=N.width,L=N.top,O=N.right,R=N.bottom,A=N.left;if("if-needed"===i&&_>=0&&S>=0&&C<=f&&b<=h&&_>=L&&C<=R&&S>=A&&b<=O)return x;var M=getComputedStyle(T),P=parseInt(M.borderLeftWidth,10),Z=parseInt(M.borderTopWidth,10),F=parseInt(M.borderRightWidth,10),B=parseInt(M.borderBottomWidth,10),H=0,z=0,j="offsetWidth"in T?T.offsetWidth-T.clientWidth-P-F:0,V="offsetHeight"in T?T.offsetHeight-T.clientHeight-Z-B:0;if(c===T)H="start"===r?w:"end"===r?w-f:"nearest"===r?Hc(g,g+f,f,Z,B,g+w,g+w+m,m):w-f/2,z="start"===o?k:"center"===o?k-h/2:"end"===o?k-h:Hc(p,p+h,h,P,F,p+k,p+k+y,y),H=Math.max(0,H+g),z=Math.max(0,z+p);else{H="start"===r?w-L-Z:"end"===r?w-R+B+V:"nearest"===r?Hc(L,R,I,Z,B+V,w,w+m,m):w-(L+I/2)+V/2,z="start"===o?k-A-P:"center"===o?k-(A+D/2)+j/2:"end"===o?k-O+F+j:Hc(A,O,D,P,F+j,k,k+y,y);var W=T.scrollLeft,U=T.scrollTop;w+=U-(H=Math.max(0,Math.min(U+H,T.scrollHeight-I+V))),k+=W-(z=Math.max(0,Math.min(W+z,T.scrollWidth-D+j)))}x.push({el:T,top:H,left:z})}return x}function jc(e){return e===Object(e)&&0!==Object.keys(e).length}var Vc=function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(jc(t)&&"function"===typeof t.behavior)return t.behavior(n?zc(e,t):[]);if(n){var i=function(e){return!1===e?{block:"end",inline:"nearest"}:jc(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var i=e.el,r=e.top,o=e.left;i.scroll&&n?i.scroll({top:r,left:o,behavior:t}):(i.scrollTop=r,i.scrollLeft=o)}))}(zc(e,i),i.behavior)}},Wc=["parentNode"];function Uc(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Gc(e,t){if(e.length){var n=e.join("_");return t?t+"_"+n:Wc.includes(n)?"form_item_"+n:n}}function Kc(e){return Uc(e).join("_")}function Yc(e){var t=eo(),n=(0,k.Z)(t,1)[0],i=v.useRef({}),r=v.useMemo((function(){return null!==e&&void 0!==e?e:Zt(Zt({},n),{__INTERNAL__:{itemRef:function(e){return function(t){var n=Kc(e);t?i.current[n]=t:delete i.current[n]}}},scrollToField:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Uc(e),i=Gc(n,r.__INTERNAL__.name),o=i?document.getElementById(i):null;o&&Vc(o,Zt({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:function(e){var t=Kc(e);return i.current[t]}})}),[e,n]);return[r]}var qc=function(e){return{animationDuration:e,animationFillMode:"both"}},$c=function(e){return{animationDuration:e,animationFillMode:"both"}},Xc=function(e,t,n,i){var r,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=o?"&":"";return r={},(0,N.Z)(r,"\n "+a+e+"-enter,\n "+a+e+"-appear\n ",Zt(Zt({},qc(i)),{animationPlayState:"paused"})),(0,N.Z)(r,""+a+e+"-leave",Zt(Zt({},$c(i)),{animationPlayState:"paused"})),(0,N.Z)(r,"\n "+a+e+"-enter"+e+"-enter-active,\n "+a+e+"-appear"+e+"-appear-active\n ",{animationName:t,animationPlayState:"running"}),(0,N.Z)(r,""+a+e+"-leave"+e+"-leave-active",{animationName:n,animationPlayState:"running",pointerEvents:"none"}),r},Qc=new Ti("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Jc=new Ti("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),eu=new Ti("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),tu=new Ti("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),nu=new Ti("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),iu=new Ti("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ru=new Ti("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ou=new Ti("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),au=new Ti("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),su=new Ti("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),lu=new Ti("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),cu=new Ti("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),uu={zoom:{inKeyframes:Qc,outKeyframes:Jc},"zoom-big":{inKeyframes:eu,outKeyframes:tu},"zoom-big-fast":{inKeyframes:eu,outKeyframes:tu},"zoom-left":{inKeyframes:ru,outKeyframes:ou},"zoom-right":{inKeyframes:au,outKeyframes:su},"zoom-up":{inKeyframes:nu,outKeyframes:iu},"zoom-down":{inKeyframes:lu,outKeyframes:cu}},du=function(e,t){var n,i=e.antCls+"-"+t,r=uu[t],o=r.inKeyframes,a=r.outKeyframes;return[Xc(i,o,a,e.motionDurationMid),(n={},(0,N.Z)(n,"\n "+i+"-enter,\n "+i+"-appear\n ",{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}}),(0,N.Z)(n,i+"-leave",{animationTimingFunction:e.motionEaseInOutCirc}),n)]},hu=function(e){var t;return(0,N.Z)({},e.componentCls,(t={},(0,N.Z)(t,e.antCls+"-motion-collapse-legacy",{overflow:"hidden","&-active":{transition:"height "+e.motionDurationMid+" "+e.motionEaseInOut+",\n opacity "+e.motionDurationMid+" "+e.motionEaseInOut+" !important"}}),(0,N.Z)(t,e.antCls+"-motion-collapse",{overflow:"hidden",transition:"height "+e.motionDurationMid+" "+e.motionEaseInOut+",\n opacity "+e.motionDurationMid+" "+e.motionEaseInOut+" !important"}),t))},fu=function(e,t){var n,i=e.formItemCls;return(0,N.Z)({},i,(n={},(0,N.Z)(n,i+"-label > label",{height:t}),(0,N.Z)(n,i+"-control-input",{minHeight:t}),n))},pu=function(e){var t,n=e.componentCls;return(0,N.Z)({},e.componentCls,Zt(Zt(Zt({},Fa(e)),function(e){var t;return t={legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:e.lineWidth+"px "+e.lineType+" "+e.colorBorder},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"}},(0,N.Z)(t,"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus",{outline:0,boxShadow:"0 0 0 "+e.controlOutlineWidth+"px "+e.controlOutline}),(0,N.Z)(t,"output",{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}),t}(e)),(t={},(0,N.Z)(t,n+"-text",{display:"inline-block",paddingInlineEnd:e.paddingSM}),(0,N.Z)(t,"&-small",Zt({},fu(e,e.controlHeightSM))),(0,N.Z)(t,"&-large",Zt({},fu(e,e.controlHeightLG))),t)))},gu=function(e){var t,n,i,r=e.formItemCls,o=e.iconCls,a=e.componentCls,s=e.rootPrefixCls;return(0,N.Z)({},r,Zt(Zt({},Fa(e)),(i={marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"}},(0,N.Z)(i,"&-hidden,\n &-hidden."+s+"-row",{display:"none"}),(0,N.Z)(i,"&-has-warning",(0,N.Z)({},r+"-split",{color:e.colorError})),(0,N.Z)(i,"&-has-error",(0,N.Z)({},r+"-split",{color:e.colorWarning})),(0,N.Z)(i,r+"-label",{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight+" - 0.25em",whiteSpace:"unset"},"> label":(t={position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize},(0,N.Z)(t,"> "+o,{fontSize:e.fontSize,verticalAlign:"top"}),(0,N.Z)(t,"&"+r+"-required:not("+r+"-required-mark-optional)::before",(0,N.Z)({display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},a+"-hide-required-mark &",{display:"none"})),(0,N.Z)(t,r+"-optional",(0,N.Z)({display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription},a+"-hide-required-mark &",{display:"none"})),(0,N.Z)(t,r+"-tooltip",{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS}),(0,N.Z)(t,"&::after",{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS}),(0,N.Z)(t,"&"+r+"-no-colon::after",{content:'" "'}),t)}),(0,N.Z)(i,r+"-control",(n={display:"flex",flexDirection:"column",flexGrow:1},(0,N.Z)(n,"&:first-child:not([class^=~\"'"+s+"-col-'\"]):not([class*=~\"' "+s+"-col-'\"])",{width:"100%"}),(0,N.Z)(n,"&-input",{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}),n)),(0,N.Z)(i,r,{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,transition:"color "+e.motionDurationMid+" "+e.motionEaseOut},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}}),(0,N.Z)(i,"&-with-help "+r+"-explain",{height:"auto",opacity:1}),(0,N.Z)(i,r+"-feedback-icon",{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Qc,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}),i)))},vu=function(e){var t,n,i=e.componentCls,r=e.rootPrefixCls;return(0,N.Z)({},i,(n={},(0,N.Z)(n,"."+r+"-show-help",{transition:"opacity "+e.motionDurationSlow+" "+e.motionEaseInOut,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}}),(0,N.Z)(n,"."+r+"-show-help-item",(t={overflow:"hidden",transition:"height "+e.motionDurationSlow+" "+e.motionEaseInOut+",\n opacity "+e.motionDurationSlow+" "+e.motionEaseInOut+",\n transform "+e.motionDurationSlow+" "+e.motionEaseInOut+" !important"},(0,N.Z)(t,"&-appear,\n &-enter",{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}}),(0,N.Z)(t,"&-leave-active",{transform:"translateY(-5px)"}),t)),n))},mu=function(e){var t,n=e.componentCls,i=e.formItemCls,r=e.rootPrefixCls;return(0,N.Z)({},n+"-horizontal",(t={},(0,N.Z)(t,i+"-label",{flexGrow:0}),(0,N.Z)(t,i+"-control",{flex:"1 1 0",minWidth:0}),(0,N.Z)(t,i+"-label."+r+"-col-24 + "+i+"-control",{minWidth:"unset"}),t))},yu=function(e){var t,n=e.componentCls,i=e.formItemCls;return(0,N.Z)({},n+"-inline",(0,N.Z)({display:"flex",flexWrap:"wrap"},i,(t={flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG}},(0,N.Z)(t,"> "+i+"-label,\n > "+i+"-control",{display:"inline-block",verticalAlign:"top"}),(0,N.Z)(t,"> "+i+"-label",{flex:"none"}),(0,N.Z)(t,n+"-text",{display:"inline-block"}),(0,N.Z)(t,i+"-has-feedback",{display:"inline-block"}),t)))},_u=function(e){return{margin:0,padding:"0 0 "+e.paddingXS+"px",whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}},bu=function(e){var t,n=e.componentCls,i=e.formItemCls,r=e.rootPrefixCls;return t={},(0,N.Z)(t,n+"-vertical",(0,N.Z)({},i,(0,N.Z)({"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"}},n+"-item-control",{width:"100%"}))),(0,N.Z)(t,n+"-vertical "+i+"-label,\n ."+r+"-col-24"+i+"-label,\n ."+r+"-col-xl-24"+i+"-label",Zt({},_u(e))),(0,N.Z)(t,"@media (max-width: "+e.screenSMMax+"px)",Zt(Zt({},function(e){var t,n=e.componentCls,i=e.formItemCls;return t={},(0,N.Z)(t,i+" "+i+"-label",Zt({},_u(e))),(0,N.Z)(t,n,(0,N.Z)({},i,(0,N.Z)({flexWrap:"wrap"},i+"-label,\n "+i+"-control",{flex:"0 0 100%",maxWidth:"100%"}))),t}(e)),(0,N.Z)({},n,(0,N.Z)({},"."+r+"-col-xs-24"+i+"-label",Zt({},_u(e)))))),(0,N.Z)(t,"@media (max-width: "+e.screenSMMax+"px)",(0,N.Z)({},n,(0,N.Z)({},"."+r+"-col-sm-24"+i+"-label",Zt({},_u(e))))),(0,N.Z)(t,"@media (max-width: "+e.screenMDMax+"px)",(0,N.Z)({},n,(0,N.Z)({},"."+r+"-col-md-24"+i+"-label",Zt({},_u(e))))),(0,N.Z)(t,"@media (max-width: "+e.screenLGMax+"px)",(0,N.Z)({},n,(0,N.Z)({},"."+r+"-col-lg-24"+i+"-label",Zt({},_u(e))))),t},Cu=hs("Form",(function(e,t){var n=t.rootPrefixCls,i=cs(e,{formItemCls:e.componentCls+"-item",rootPrefixCls:n});return[pu(i),gu(i),vu(i),mu(i),yu(i),bu(i),hu(i),Qc]})),Su=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},wu=function(e,t){var n,i=v.useContext(Pa),r=v.useContext(Ia),o=v.useContext(wa),a=o.getPrefixCls,s=o.direction,l=o.form,c=e.prefixCls,u=e.className,d=void 0===u?"":u,h=e.size,f=void 0===h?i:h,p=e.disabled,g=void 0===p?r:p,m=e.form,y=e.colon,_=e.labelAlign,b=e.labelWrap,C=e.labelCol,S=e.wrapperCol,w=e.hideRequiredMark,x=e.layout,E=void 0===x?"horizontal":x,T=e.scrollToFirstError,I=e.requiredMark,D=e.onFinishFailed,L=e.name,O=Su(e,["prefixCls","className","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name"]),R=(0,v.useMemo)((function(){return void 0!==I?I:l&&void 0!==l.requiredMark?l.requiredMark:!w}),[w,I,l]),A=null!==y&&void 0!==y?y:null===l||void 0===l?void 0:l.colon,M=a("form",c),P=Cu(M),Z=(0,k.Z)(P,2),F=Z[0],B=Z[1],H=Ja()(M,(n={},(0,N.Z)(n,M+"-"+E,!0),(0,N.Z)(n,M+"-hide-required-mark",!1===R),(0,N.Z)(n,M+"-rtl","rtl"===s),(0,N.Z)(n,M+"-"+f,f),n),B,d),z=Yc(m),j=(0,k.Z)(z,1)[0],V=j.__INTERNAL__;V.name=L;var W=(0,v.useMemo)((function(){return{name:L,labelAlign:_,labelCol:C,labelWrap:b,wrapperCol:S,vertical:"vertical"===E,colon:A,requiredMark:R,itemRef:V.itemRef,form:j}}),[L,_,C,S,E,A,R,j]);v.useImperativeHandle(t,(function(){return j}));return F(v.createElement(Na,{disabled:g},v.createElement(Ma,{size:f},v.createElement(_l.Provider,{value:W},v.createElement(co,Zt({id:L},O,{name:L,onFinishFailed:function(e){null===D||void 0===D||D(e);var t={block:"nearest"};T&&e.errorFields.length&&("object"===(0,Bt.Z)(T)&&(t=T),j.scrollToField(e.errorFields[0].name,t))},form:j,className:H}))))))},ku=v.forwardRef(wu),xu=function(){return{status:(0,v.useContext)(Sl).status}};var Eu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},Tu=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Eu}))};Tu.displayName="CheckCircleFilled";var Nu=v.forwardRef(Tu),Iu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},Du=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Iu}))};Du.displayName="CloseCircleFilled";var Lu=v.forwardRef(Du),Ou={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},Ru=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Ou}))};Ru.displayName="ExclamationCircleFilled";var Au=v.forwardRef(Ru),Mu={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},Pu=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Mu}))};Pu.displayName="LoadingOutlined";var Zu,Fu=v.forwardRef(Pu),Bu=Ht()?v.useLayoutEffect:v.useEffect,Hu=function(e,t){var n=v.useRef(!0);Bu((function(){return e(n.current)}),t),Bu((function(){return n.current=!1,function(){n.current=!0}}),[])},zu=function(e,t){Hu((function(t){if(!t)return e()}),t)},ju=Hu,Vu=function(){return Ht()&&window.document.documentElement},Wu=function(){var e=v.useState(!1),t=(0,k.Z)(e,2),n=t[0],i=t[1];return v.useEffect((function(){i(function(){if(!Vu())return!1;if(void 0!==Zu)return Zu;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Zu=1===e.scrollHeight,document.body.removeChild(e),Zu}())}),[]),n},Uu=["xxl","xl","lg","md","sm","xs"],Gu={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},Ku=new Map,Yu=-1,qu={},$u={matchHandlers:{},dispatch:function(e){return qu=e,Ku.forEach((function(e){return e(qu)})),Ku.size>=1},subscribe:function(e){return Ku.size||this.register(),Yu+=1,Ku.set(Yu,e),e(qu),Yu},unsubscribe:function(e){Ku.delete(e),Ku.size||this.unregister()},unregister:function(){var e=this;Object.keys(Gu).forEach((function(t){var n=Gu[t],i=e.matchHandlers[n];null===i||void 0===i||i.mql.removeListener(null===i||void 0===i?void 0:i.listener)})),Ku.clear()},register:function(){var e=this;Object.keys(Gu).forEach((function(t){var n=Gu[t],i=function(n){var i=n.matches;e.dispatch(Zt(Zt({},qu),(0,N.Z)({},t,i)))},r=window.matchMedia(n);r.addListener(i),e.matchHandlers[n]={mql:r,listener:i},i(r)}))}},Xu=$u,Qu=(0,v.createContext)({}),Ju=function(e){var t=e.componentCls;return(0,N.Z)({},t,{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}})},ed=function(e){var t=e.componentCls;return(0,N.Z)({},t,{position:"relative",maxWidth:"100%",minHeight:1})},td=function(e,t){return function(e,t){for(var n=e.componentCls,i=e.gridColumns,r={},o=i;o>=0;o--)0===o?(r[""+n+t+"-"+o]={display:"none"},r[n+"-push-"+o]={insetInlineStart:"auto"},r[n+"-pull-"+o]={insetInlineEnd:"auto"},r[""+n+t+"-push-"+o]={insetInlineStart:"auto"},r[""+n+t+"-pull-"+o]={insetInlineEnd:"auto"},r[""+n+t+"-offset-"+o]={marginInlineEnd:0},r[""+n+t+"-order-"+o]={order:0}):(r[""+n+t+"-"+o]={display:"block",flex:"0 0 "+o/i*100+"%",maxWidth:o/i*100+"%"},r[""+n+t+"-push-"+o]={insetInlineStart:o/i*100+"%"},r[""+n+t+"-pull-"+o]={insetInlineEnd:o/i*100+"%"},r[""+n+t+"-offset-"+o]={marginInlineStart:o/i*100+"%"},r[""+n+t+"-order-"+o]={order:o});return r}(e,t)},nd=hs("Grid",(function(e){return[Ju(e)]})),id=hs("Grid",(function(e){var t=cs(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[ed(t),td(t,""),td(t,"-xs"),Object.keys(n).map((function(e){return function(e,t,n){return(0,N.Z)({},"@media (min-width: "+t+"px)",Zt({},td(e,n)))}(t,n[e],e)})).reduce((function(e,t){return Zt(Zt({},e),t)}),{})]})),rd=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};as("top","middle","bottom","stretch"),as("start","end","center","space-around","space-between","space-evenly");function od(e,t){var n=v.useState("string"===typeof e?e:""),i=(0,k.Z)(n,2),r=i[0],o=i[1];return v.useEffect((function(){!function(){if("object"===(0,Bt.Z)(e))for(var n=0;n<Uu.length;n++){var i=Uu[n];if(t[i]){var r=e[i];if(void 0!==r)return void o(r)}}}()}),[JSON.stringify(e),t]),r}var ad=v.forwardRef((function(e,t){var n,i=e.prefixCls,r=e.justify,o=e.align,a=e.className,s=e.style,l=e.children,c=e.gutter,u=void 0===c?0:c,d=e.wrap,h=rd(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),f=v.useContext(wa),p=f.getPrefixCls,g=f.direction,m=v.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),y=(0,k.Z)(m,2),_=y[0],b=y[1],C=v.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=(0,k.Z)(C,2),w=S[0],x=S[1],E=od(o,w),T=od(r,w),I=Wu(),D=v.useRef(u);v.useEffect((function(){var e=Xu.subscribe((function(e){x(e);var t=D.current||0;(!Array.isArray(t)&&"object"===(0,Bt.Z)(t)||Array.isArray(t)&&("object"===(0,Bt.Z)(t[0])||"object"===(0,Bt.Z)(t[1])))&&b(e)}));return function(){return Xu.unsubscribe(e)}}),[]);var L=p("row",i),O=nd(L),R=(0,k.Z)(O,2),A=R[0],M=R[1],P=function(){var e=[void 0,void 0];return(Array.isArray(u)?u:[u,void 0]).forEach((function(t,n){if("object"===(0,Bt.Z)(t))for(var i=0;i<Uu.length;i++){var r=Uu[i];if(_[r]&&void 0!==t[r]){e[n]=t[r];break}}else e[n]=t})),e}(),Z=Ja()(L,(n={},(0,N.Z)(n,L+"-no-wrap",!1===d),(0,N.Z)(n,L+"-"+T,T),(0,N.Z)(n,L+"-"+E,E),(0,N.Z)(n,L+"-rtl","rtl"===g),n),a,M),F={},B=null!=P[0]&&P[0]>0?P[0]/-2:void 0,H=null!=P[1]&&P[1]>0?P[1]/-2:void 0;if(B&&(F.marginLeft=B,F.marginRight=B),I){var z=(0,k.Z)(P,2);F.rowGap=z[1]}else H&&(F.marginTop=H,F.marginBottom=H);var j=(0,k.Z)(P,2),V=j[0],W=j[1],U=v.useMemo((function(){return{gutter:[V,W],wrap:d,supportFlexGap:I}}),[V,W,d,I]);return A(v.createElement(Qu.Provider,{value:U},v.createElement("div",Zt({},h,{className:Z,style:Zt(Zt({},F),s),ref:t}),l)))}));var sd=ad,ld={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},cd=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:ld}))};cd.displayName="QuestionCircleOutlined";var ud=v.forwardRef(cd),dd=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};var hd=["xs","sm","md","lg","xl","xxl"],fd=v.forwardRef((function(e,t){var n,i=v.useContext(wa),r=i.getPrefixCls,o=i.direction,a=v.useContext(Qu),s=a.gutter,l=a.wrap,c=a.supportFlexGap,u=e.prefixCls,d=e.span,h=e.order,f=e.offset,p=e.push,g=e.pull,m=e.className,y=e.children,_=e.flex,b=e.style,C=dd(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=r("col",u),w=id(S),x=(0,k.Z)(w,2),E=x[0],T=x[1],I={};hd.forEach((function(t){var n,i={},r=e[t];"number"===typeof r?i.span=r:"object"===(0,Bt.Z)(r)&&(i=r||{}),delete C[t],I=Zt(Zt({},I),(n={},(0,N.Z)(n,S+"-"+t+"-"+i.span,void 0!==i.span),(0,N.Z)(n,S+"-"+t+"-order-"+i.order,i.order||0===i.order),(0,N.Z)(n,S+"-"+t+"-offset-"+i.offset,i.offset||0===i.offset),(0,N.Z)(n,S+"-"+t+"-push-"+i.push,i.push||0===i.push),(0,N.Z)(n,S+"-"+t+"-pull-"+i.pull,i.pull||0===i.pull),(0,N.Z)(n,S+"-rtl","rtl"===o),n))}));var D=Ja()(S,(n={},(0,N.Z)(n,S+"-"+d,void 0!==d),(0,N.Z)(n,S+"-order-"+h,h),(0,N.Z)(n,S+"-offset-"+f,f),(0,N.Z)(n,S+"-push-"+p,p),(0,N.Z)(n,S+"-pull-"+g,g),n),m,I,T),L={};if(s&&s[0]>0){var O=s[0]/2;L.paddingLeft=O,L.paddingRight=O}if(s&&s[1]>0&&!c){var R=s[1]/2;L.paddingTop=R,L.paddingBottom=R}return _&&(L.flex=function(e){return"number"===typeof e?e+" "+e+" auto":/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 "+e:e}(_),!1!==l||L.minWidth||(L.minWidth=0)),E(v.createElement("div",Zt({},C,{style:Zt(Zt({},L),b),className:D,ref:t}),y))}));var pd=fd;function gd(e,t,n,i){var r=kl.unstable_batchedUpdates?function(e){kl.unstable_batchedUpdates(n,e)}:n;return null!==e&&void 0!==e&&e.addEventListener&&e.addEventListener(t,r,i),{remove:function(){null!==e&&void 0!==e&&e.removeEventListener&&e.removeEventListener(t,r,i)}}}var vd=(0,v.forwardRef)((function(e,t){var n=e.didUpdate,i=e.getContainer,r=e.children,o=(0,v.useRef)(),a=(0,v.useRef)();(0,v.useImperativeHandle)(t,(function(){return{}}));var s=(0,v.useRef)(!1);return!s.current&&Ht()&&(a.current=i(),o.current=a.current.parentNode,s.current=!0),(0,v.useEffect)((function(){null===n||void 0===n||n(e)})),(0,v.useEffect)((function(){return null===a.current.parentNode&&null!==o.current&&o.current.appendChild(a.current),function(){var e,t;null===(e=a.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(a.current)}}),[]),a.current?kl.createPortal(r,a.current):null})),md=vd;function yd(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var _d=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))};function bd(e){var t=e.prefixCls,n=e.motion,i=e.animation,r=e.transitionName;return n||(i?{motionName:"".concat(t,"-").concat(i)}:r?{motionName:r}:null)}function Cd(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,r=e.mask,o=e.maskMotion,a=e.maskAnimation,s=e.maskTransitionName;if(!r)return null;var l={};return(o||s||a)&&(l=(0,Ft.Z)({motionAppear:!0},bd({motion:o,prefixCls:t,transitionName:s,animation:a}))),v.createElement(xc,Zt({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return v.createElement("div",{style:{zIndex:i},className:Ja()("".concat(t,"-mask"),n)})}))}var Sd,wd=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,i=t.height;if(n||i)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),o=r.width,a=r.height;if(o||a)return!0}}return!1};function kd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kd(Object(n),!0).forEach((function(t){Td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ed(e){return Ed="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ed(e)}function Td(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nd={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Id(){if(void 0!==Sd)return Sd;Sd="";var e=document.createElement("p").style;for(var t in Nd)t+"Transform"in e&&(Sd=t);return Sd}function Dd(){return Id()?"".concat(Id(),"TransitionProperty"):"transitionProperty"}function Ld(){return Id()?"".concat(Id(),"Transform"):"transform"}function Od(e,t){var n=Dd();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function Rd(e,t){var n=Ld();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var Ad,Md=/matrix\((.*)\)/,Pd=/matrix3d\((.*)\)/;function Zd(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function Fd(e,t,n){var i=n;if("object"!==Ed(t))return"undefined"!==typeof i?("number"===typeof i&&(i="".concat(i,"px")),void(e.style[t]=i)):Ad(e,t);for(var r in t)t.hasOwnProperty(r)&&Fd(e,r,t[r])}function Bd(e,t){var n=e["page".concat(t?"Y":"X","Offset")],i="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var r=e.document;"number"!==typeof(n=r.documentElement[i])&&(n=r.body[i])}return n}function Hd(e){return Bd(e)}function zd(e){return Bd(e,!0)}function jd(e){var t=function(e){var t,n,i,r=e.ownerDocument,o=r.body,a=r&&r.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),i=Math.floor(t.top),{left:n-=a.clientLeft||o.clientLeft||0,top:i-=a.clientTop||o.clientTop||0}}(e),n=e.ownerDocument,i=n.defaultView||n.parentWindow;return t.left+=Hd(i),t.top+=zd(i),t}function Vd(e){return null!==e&&void 0!==e&&e==e.window}function Wd(e){return Vd(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Ud=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),Gd=/^(top|right|bottom|left)$/;function Kd(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function Yd(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function qd(e,t,n){"static"===Fd(e,"position")&&(e.style.position="relative");var i=-999,r=-999,o=Kd("left",n),a=Kd("top",n),s=Yd(o),l=Yd(a);"left"!==o&&(i=999),"top"!==a&&(r=999);var c="",u=jd(e);("left"in t||"top"in t)&&(c=function(e){return e.style.transitionProperty||e.style[Dd()]}(e)||"",Od(e,"none")),"left"in t&&(e.style[s]="",e.style[o]="".concat(i,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(r,"px")),Zd(e);var d=jd(e),h={};for(var f in t)if(t.hasOwnProperty(f)){var p=Kd(f,n),g="left"===f?i:r,v=u[f]-d[f];h[p]=p===f?g+v:g-v}Fd(e,h),Zd(e),("left"in t||"top"in t)&&Od(e,c);var m={};for(var y in t)if(t.hasOwnProperty(y)){var _=Kd(y,n),b=t[y]-u[y];m[_]=y===_?h[_]+b:h[_]-b}Fd(e,m)}function $d(e,t){var n=jd(e),i=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(Ld());if(n&&"none"!==n){var i=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(i[12]||i[4],0),y:parseFloat(i[13]||i[5],0)}}return{x:0,y:0}}(e),r={x:i.x,y:i.y};"left"in t&&(r.x=i.x+t.left-n.left),"top"in t&&(r.y=i.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),i=n.getPropertyValue("transform")||n.getPropertyValue(Ld());if(i&&"none"!==i){var r,o=i.match(Md);o?((r=(o=o[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,r[5]=t.y,Rd(e,"matrix(".concat(r.join(","),")"))):((r=i.match(Pd)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,r[13]=t.y,Rd(e,"matrix3d(".concat(r.join(","),")")))}else Rd(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,r)}function Xd(e,t){for(var n=0;n<e.length;n++)t(e[n])}function Qd(e){return"border-box"===Ad(e,"boxSizing")}"undefined"!==typeof window&&(Ad=window.getComputedStyle?function(e,t,n){var i=n,r="",o=Wd(e);return(i=i||o.defaultView.getComputedStyle(e,null))&&(r=i.getPropertyValue(t)||i[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(Ud.test(n)&&!Gd.test(t)){var i=e.style,r=i.left,o=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,i.left="fontSize"===t?"1em":n||0,n=i.pixelLeft+"px",i.left=r,e.runtimeStyle.left=o}return""===n?"auto":n});var Jd=["margin","border","padding"];function eh(e,t,n){var i,r={},o=e.style;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}function th(e,t,n){var i,r,o,a=0;for(r=0;r<t.length;r++)if(i=t[r])for(o=0;o<n.length;o++){var s=void 0;s="border"===i?"".concat(i).concat(n[o],"Width"):i+n[o],a+=parseFloat(Ad(e,s))||0}return a}var nh={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function ih(e,t,n){var i=n;if(Vd(e))return"width"===t?nh.viewportWidth(e):nh.viewportHeight(e);if(9===e.nodeType)return"width"===t?nh.docWidth(e):nh.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=Qd(e),s=0;(null===o||void 0===o||o<=0)&&(o=void 0,(null===(s=Ad(e,t))||void 0===s||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===i&&(i=a?1:-1);var l=void 0!==o||a,c=o||s;return-1===i?l?c-th(e,["border","padding"],r):s:l?1===i?c:c+(2===i?-th(e,["border"],r):th(e,["margin"],r)):s+th(e,Jd.slice(i),r)}Xd(["Width","Height"],(function(e){nh["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],nh["viewport".concat(e)](n))},nh["viewport".concat(e)]=function(t){var n="client".concat(e),i=t.document,r=i.body,o=i.documentElement[n];return"CSS1Compat"===i.compatMode&&o||r&&r[n]||o}}));var rh={position:"absolute",visibility:"hidden",display:"block"};function oh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i,r=t[0];return 0!==r.offsetWidth?i=ih.apply(void 0,t):eh(r,rh,(function(){i=ih.apply(void 0,t)})),i}function ah(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}Xd(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);nh["outer".concat(t)]=function(t,n){return t&&oh(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];nh[e]=function(t,i){var r=i;return void 0!==r?t?(Qd(t)&&(r+=th(t,["padding","border"],n)),Fd(t,e,r)):void 0:t&&oh(t,e,-1)}}));var sh={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Wd,offset:function(e,t,n){if("undefined"===typeof t)return jd(e);!function(e,t,n){if(n.ignoreShake){var i=jd(e),r=i.left.toFixed(0),o=i.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(r===a&&o===s)return}n.useCssRight||n.useCssBottom?qd(e,t,n):n.useCssTransform&&Ld()in document.body.style?$d(e,t):qd(e,t,n)}(e,t,n||{})},isWindow:Vd,each:Xd,css:Fd,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:ah,getWindowScrollLeft:function(e){return Hd(e)},getWindowScrollTop:function(e){return zd(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)sh.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};ah(sh,nh);var lh=sh.getParent;function ch(e){if(sh.isWindow(e)||9===e.nodeType)return null;var t,n=sh.getDocument(e).body,i=sh.css(e,"position");if(!("fixed"===i||"absolute"===i))return"html"===e.nodeName.toLowerCase()?null:lh(e);for(t=lh(e);t&&t!==n&&9!==t.nodeType;t=lh(t))if("static"!==(i=sh.css(t,"position")))return t;return null}var uh=sh.getParent;function dh(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},i=ch(e),r=sh.getDocument(e),o=r.defaultView||r.parentWindow,a=r.body,s=r.documentElement;i;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===i.clientWidth||i===a||i===s||"visible"===sh.css(i,"overflow")){if(i===a||i===s)break}else{var l=sh.offset(i);l.left+=i.clientLeft,l.top+=i.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+i.clientWidth),n.bottom=Math.min(n.bottom,l.top+i.clientHeight),n.left=Math.max(n.left,l.left)}i=ch(i)}var c=null;sh.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===sh.css(e,"position")&&(e.style.position="fixed"));var u=sh.getWindowScrollLeft(o),d=sh.getWindowScrollTop(o),h=sh.viewportWidth(o),f=sh.viewportHeight(o),p=s.scrollWidth,g=s.scrollHeight,v=window.getComputedStyle(a);if("hidden"===v.overflowX&&(p=o.innerWidth),"hidden"===v.overflowY&&(g=o.innerHeight),e.style&&(e.style.position=c),t||function(e){if(sh.isWindow(e)||9===e.nodeType)return!1;var t=sh.getDocument(e),n=t.body,i=null;for(i=uh(e);i&&i!==n&&i!==t;i=uh(i))if("fixed"===sh.css(i,"position"))return!0;return!1}(e))n.left=Math.max(n.left,u),n.top=Math.max(n.top,d),n.right=Math.min(n.right,u+h),n.bottom=Math.min(n.bottom,d+f);else{var m=Math.max(p,u+h);n.right=Math.min(n.right,m);var y=Math.max(g,d+f);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function hh(e){var t,n,i;if(sh.isWindow(e)||9===e.nodeType){var r=sh.getWindow(e);t={left:sh.getWindowScrollLeft(r),top:sh.getWindowScrollTop(r)},n=sh.viewportWidth(r),i=sh.viewportHeight(r)}else t=sh.offset(e),n=sh.outerWidth(e),i=sh.outerHeight(e);return t.width=n,t.height=i,t}function fh(e,t){var n=t.charAt(0),i=t.charAt(1),r=e.width,o=e.height,a=e.left,s=e.top;return"c"===n?s+=o/2:"b"===n&&(s+=o),"c"===i?a+=r/2:"r"===i&&(a+=r),{left:a,top:s}}function ph(e,t,n,i,r){var o=fh(t,n[1]),a=fh(e,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-s[0]+i[0]-r[0]),top:Math.round(e.top-s[1]+i[1]-r[1])}}function gh(e,t,n){return e.left<n.left||e.left+t.width>n.right}function vh(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function mh(e,t,n){var i=[];return sh.each(e,(function(e){i.push(e.replace(t,(function(e){return n[e]})))})),i}function yh(e,t){return e[t]=-e[t],e}function _h(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function bh(e,t){e[0]=_h(e[0],t.width),e[1]=_h(e[1],t.height)}function Ch(e,t,n,i){var r=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;o=[].concat(o),a=[].concat(a);var c={},u=0,d=dh(l,!(!(s=s||{})||!s.alwaysByViewport)),h=hh(l);bh(o,h),bh(a,t);var f=ph(h,t,r,o,a),p=sh.merge(h,f);if(d&&(s.adjustX||s.adjustY)&&i){if(s.adjustX&&gh(f,h,d)){var g=mh(r,/[lr]/gi,{l:"r",r:"l"}),v=yh(o,0),m=yh(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(ph(h,t,g,v,m),h,d)||(u=1,r=g,o=v,a=m)}if(s.adjustY&&vh(f,h,d)){var y=mh(r,/[tb]/gi,{t:"b",b:"t"}),_=yh(o,1),b=yh(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(ph(h,t,y,_,b),h,d)||(u=1,r=y,o=_,a=b)}u&&(f=ph(h,t,r,o,a),sh.mix(p,f));var C=gh(f,h,d),S=vh(f,h,d);if(C||S){var w=r;C&&(w=mh(r,/[lr]/gi,{l:"r",r:"l"})),S&&(w=mh(r,/[tb]/gi,{t:"b",b:"t"})),r=w,o=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=s.adjustX&&C,c.adjustY=s.adjustY&&S,(c.adjustX||c.adjustY)&&(p=function(e,t,n,i){var r=sh.clone(e),o={width:t.width,height:t.height};return i.adjustX&&r.left<n.left&&(r.left=n.left),i.resizeWidth&&r.left>=n.left&&r.left+o.width>n.right&&(o.width-=r.left+o.width-n.right),i.adjustX&&r.left+o.width>n.right&&(r.left=Math.max(n.right-o.width,n.left)),i.adjustY&&r.top<n.top&&(r.top=n.top),i.resizeHeight&&r.top>=n.top&&r.top+o.height>n.bottom&&(o.height-=r.top+o.height-n.bottom),i.adjustY&&r.top+o.height>n.bottom&&(r.top=Math.max(n.bottom-o.height,n.top)),sh.mix(r,o)}(f,h,d,c))}return p.width!==h.width&&sh.css(l,"width",sh.width(l)+p.width-h.width),p.height!==h.height&&sh.css(l,"height",sh.height(l)+p.height-h.height),sh.offset(l,{left:p.left,top:p.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:o,targetOffset:a,overflow:c}}function Sh(e,t,n){var i=n.target||t,r=hh(i),o=!function(e,t){var n=dh(e,t),i=hh(e);return!n||i.left+i.width<=n.left||i.top+i.height<=n.top||i.left>=n.right||i.top>=n.bottom}(i,n.overflow&&n.overflow.alwaysByViewport);return Ch(e,r,n,o)}Sh.__getOffsetParent=ch,Sh.__getVisibleRectForElement=dh;var wh=n(18111),kh=n.n(wh),xh=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),Eh="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,Th="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),Nh="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(Th):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Ih=["top","right","bottom","left","width","height","size","weight"],Dh="undefined"!==typeof MutationObserver,Lh=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,i=!1,r=0;function o(){n&&(n=!1,e()),i&&s()}function a(){Nh(o)}function s(){var e=Date.now();if(n){if(e-r<2)return;i=!0}else n=!0,i=!1,setTimeout(a,t);r=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Eh&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Dh?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Eh&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Ih.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Oh=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Rh=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Th},Ah=Hh(0,0,0,0);function Mh(e){return parseFloat(e)||0}function Ph(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Mh(e["border-"+n+"-width"])}),0)}function Zh(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ah;var i=Rh(e).getComputedStyle(e),r=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],o=e["padding-"+r];t[r]=Mh(o)}return t}(i),o=r.left+r.right,a=r.top+r.bottom,s=Mh(i.width),l=Mh(i.height);if("border-box"===i.boxSizing&&(Math.round(s+o)!==t&&(s-=Ph(i,"left","right")+o),Math.round(l+a)!==n&&(l-=Ph(i,"top","bottom")+a)),!function(e){return e===Rh(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return Hh(r.left,r.top,s,l)}var Fh="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof Rh(e).SVGGraphicsElement}:function(e){return e instanceof Rh(e).SVGElement&&"function"===typeof e.getBBox};function Bh(e){return Eh?Fh(e)?function(e){var t=e.getBBox();return Hh(0,0,t.width,t.height)}(e):Zh(e):Ah}function Hh(e,t,n,i){return{x:e,y:t,width:n,height:i}}var zh=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Hh(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Bh(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),jh=function(e,t){var n=function(e){var t=e.x,n=e.y,i=e.width,r=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Oh(a,{x:t,y:n,width:i,height:r,top:n,right:t+i,bottom:r+n,left:t}),a}(t);Oh(this,{target:e,contentRect:n})},Vh=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new xh,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof Rh(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new zh(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof Rh(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new jh(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Wh="undefined"!==typeof WeakMap?new WeakMap:new xh,Uh=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Lh.getInstance(),i=new Vh(t,n,this);Wh.set(this,i)};["observe","unobserve","disconnect"].forEach((function(e){Uh.prototype[e]=function(){var t;return(t=Wh.get(this))[e].apply(t,arguments)}}));var Gh="undefined"!==typeof Th.ResizeObserver?Th.ResizeObserver:Uh;function Kh(e,t){var n=null,i=null;var r=new Gh((function(e){var r=(0,k.Z)(e,1)[0].target;if(document.documentElement.contains(r)){var o=r.getBoundingClientRect(),a=o.width,s=o.height,l=Math.floor(a),c=Math.floor(s);n===l&&i===c||Promise.resolve().then((function(){t({width:l,height:c})})),n=l,i=c}}));return e&&r.observe(e),function(){r.disconnect()}}function Yh(e){return"function"!==typeof e?null:e()}function qh(e){return"object"===(0,Bt.Z)(e)&&e?e:null}var $h=function(e,t){var n=e.children,i=e.disabled,r=e.target,o=e.align,a=e.onAlign,s=e.monitorWindowResize,l=e.monitorBufferTime,c=void 0===l?0:l,u=v.useRef({}),d=v.useRef(),h=v.Children.only(n),f=v.useRef({});f.current.disabled=i,f.current.target=r,f.current.align=o,f.current.onAlign=a;var p=function(e,t){var n=v.useRef(!1),i=v.useRef(null);function r(){window.clearTimeout(i.current)}return[function o(a){if(r(),n.current&&!0!==a)i.current=window.setTimeout((function(){n.current=!1,o()}),t);else{if(!1===e())return;n.current=!0,i.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,r()}]}((function(){var e=f.current,t=e.disabled,n=e.target,i=e.align,r=e.onAlign;if(!t&&n){var o,a=d.current,s=Yh(n),l=qh(n);u.current.element=s,u.current.point=l,u.current.align=i;var c=document.activeElement;return s&&wd(s)?o=Sh(a,s,i):l&&(o=function(e,t,n){var i,r,o=sh.getDocument(e),a=o.defaultView||o.parentWindow,s=sh.getWindowScrollLeft(a),l=sh.getWindowScrollTop(a),c=sh.viewportWidth(a),u=sh.viewportHeight(a),d={left:i="pageX"in t?t.pageX:s+t.clientX,top:r="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},h=i>=0&&i<=s+c&&r>=0&&r<=l+u,f=[n.points[0],"cc"];return Ch(e,d,xd(xd({},n),{},{points:f}),h)}(a,l,i)),function(e,t){e!==document.activeElement&&zt(t,e)&&"function"===typeof e.focus&&e.focus()}(c,a),r&&o&&r(a,o),!0}return!1}),c),g=(0,k.Z)(p,2),m=g[0],y=g[1],_=v.useRef({cancel:function(){}}),b=v.useRef({cancel:function(){}});v.useEffect((function(){var e=Yh(r),t=qh(r);d.current!==b.current.element&&(b.current.cancel(),b.current.element=d.current,b.current.cancel=Kh(d.current,m)),u.current.element===e&&function(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY)}(u.current.point,t)&&kh()(u.current.align,o)||(m(),_.current.element!==e&&(_.current.cancel(),_.current.element=e,_.current.cancel=Kh(e,m)))})),v.useEffect((function(){i?y():m()}),[i]);var C=v.useRef(null);return v.useEffect((function(){s?C.current||(C.current=gd(window,"resize",m)):C.current&&(C.current.remove(),C.current=null)}),[s]),v.useEffect((function(){return function(){_.current.cancel(),b.current.cancel(),C.current&&C.current.remove(),y()}}),[]),v.useImperativeHandle(t,(function(){return{forceAlign:function(){return m(!0)}}})),v.isValidElement(h)&&(h=v.cloneElement(h,{ref:Nl(h.ref,d)})),h},Xh=v.forwardRef($h);Xh.displayName="Align";var Qh=Xh,Jh=["measure","alignPre","align",null,"motion"],ef=v.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,r=e.className,o=e.style,a=e.children,s=e.zIndex,l=e.stretch,c=e.destroyPopupOnHide,u=e.forceRender,d=e.align,h=e.point,f=e.getRootDomNode,p=e.getClassNameFromAlign,g=e.onAlign,m=e.onMouseEnter,y=e.onMouseLeave,_=e.onMouseDown,b=e.onTouchStart,C=e.onClick,S=(0,v.useRef)(),w=(0,v.useRef)(),x=(0,v.useState)(),N=(0,k.Z)(x,2),I=N[0],D=N[1],L=function(e){var t=v.useState({width:0,height:0}),n=(0,k.Z)(t,2),i=n[0],r=n[1];return[v.useMemo((function(){var t={};if(e){var n=i.width,r=i.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,i]),function(e){r({width:e.offsetWidth,height:e.offsetHeight})}]}(l),O=(0,k.Z)(L,2),R=O[0],A=O[1];var M=function(e,t){var n=Ql(null),i=(0,k.Z)(n,2),r=i[0],o=i[1],a=(0,v.useRef)();function s(e){o(e,!0)}function l(){oc.cancel(a.current)}return(0,v.useEffect)((function(){s("measure")}),[e]),(0,v.useEffect)((function(){"measure"===r&&t(),r&&(a.current=oc((0,T.Z)((0,E.Z)().mark((function e(){var t,n;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Jh.indexOf(r),(n=Jh[t+1])&&-1!==t&&s(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),(0,v.useEffect)((function(){return function(){l()}}),[]),[r,function(e){l(),a.current=oc((function(){s((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null===e||void 0===e||e()}))}]}(n,(function(){l&&A(f())})),P=(0,k.Z)(M,2),Z=P[0],F=P[1],B=(0,v.useState)(0),H=(0,k.Z)(B,2),z=H[0],j=H[1],V=(0,v.useRef)();function W(){var e;null===(e=S.current)||void 0===e||e.forceAlign()}function U(e,t){var n=p(t);I!==n&&D(n),j((function(e){return e+1})),"align"===Z&&(null===g||void 0===g||g(e,t))}ju((function(){"alignPre"===Z&&j(0)}),[Z]),ju((function(){"align"===Z&&(z<3?W():F((function(){var e;null===(e=V.current)||void 0===e||e.call(V)})))}),[z]);var G=(0,Ft.Z)({},bd(e));function K(){return new Promise((function(e){V.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=G[e];G[e]=function(e,n){return F(),null===t||void 0===t?void 0:t(e,n)}})),v.useEffect((function(){G.motionName||"motion"!==Z||F()}),[G.motionName,Z]),v.useImperativeHandle(t,(function(){return{forceAlign:W,getElement:function(){return w.current}}}));var Y=(0,Ft.Z)((0,Ft.Z)({},R),{},{zIndex:s,opacity:"motion"!==Z&&"stable"!==Z&&n?0:void 0,pointerEvents:n||"stable"===Z?void 0:"none"},o),q=!0;null===d||void 0===d||!d.points||"align"!==Z&&"stable"!==Z||(q=!1);var $=a;return v.Children.count(a)>1&&($=v.createElement("div",{className:"".concat(i,"-content")},a)),v.createElement(xc,Zt({visible:n,ref:w,leavedClassName:"".concat(i,"-hidden")},G,{onAppearPrepare:K,onEnterPrepare:K,removeOnLeave:c,forceRender:u}),(function(e,t){var n=e.className,o=e.style,a=Ja()(i,r,I,n);return v.createElement(Qh,{target:h||f,key:"popup",ref:S,monitorWindowResize:!0,disabled:q,align:d,onAlign:U},v.createElement("div",{ref:t,className:a,onMouseEnter:m,onMouseLeave:y,onMouseDownCapture:_,onTouchStartCapture:b,onClick:C,style:(0,Ft.Z)((0,Ft.Z)({},o),Y)},$))}))}));ef.displayName="PopupInner";var tf=ef,nf=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,r=e.zIndex,o=e.children,a=e.mobile,s=(a=void 0===a?{}:a).popupClassName,l=a.popupStyle,c=a.popupMotion,u=void 0===c?{}:c,d=a.popupRender,h=e.onClick,f=v.useRef();v.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return f.current}}}));var p=(0,Ft.Z)({zIndex:r},l),g=o;return v.Children.count(o)>1&&(g=v.createElement("div",{className:"".concat(n,"-content")},o)),d&&(g=d(g)),v.createElement(xc,Zt({visible:i,ref:f,removeOnLeave:!0},u),(function(e,t){var i=e.className,r=e.style,o=Ja()(n,s,i);return v.createElement("div",{ref:t,className:o,onClick:h,style:(0,Ft.Z)((0,Ft.Z)({},r),p)},g)}))}));nf.displayName="MobilePopupInner";var rf=nf,of=["visible","mobile"],af=v.forwardRef((function(e,t){var n=e.visible,i=e.mobile,r=Ai(e,of),o=(0,v.useState)(n),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,Ft.Z)((0,Ft.Z)({},r),{},{visible:s});(0,v.useEffect)((function(){l(n),n&&i&&h(_d())}),[n,i]);var p=d?v.createElement(rf,Zt({},f,{mobile:i,ref:t})):v.createElement(tf,Zt({},f,{ref:t}));return v.createElement("div",null,v.createElement(Cd,f),p)}));af.displayName="Popup";var sf=af,lf=v.createContext(null);function cf(){}function uf(){return""}function df(e){return e?e.ownerDocument:window.document}var hf=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var ff=function(e){var t=function(t){(0,S.Z)(i,t);var n=(0,w.Z)(i);function i(e){var t,r;return(0,b.Z)(this,i),t=n.call(this,e),(0,N.Z)((0,Mi.Z)(t),"popupRef",v.createRef()),(0,N.Z)((0,Mi.Z)(t),"triggerRef",v.createRef()),(0,N.Z)((0,Mi.Z)(t),"portalContainer",void 0),(0,N.Z)((0,Mi.Z)(t),"attachId",void 0),(0,N.Z)((0,Mi.Z)(t),"clickOutsideHandler",void 0),(0,N.Z)((0,Mi.Z)(t),"touchOutsideHandler",void 0),(0,N.Z)((0,Mi.Z)(t),"contextMenuOutsideHandler1",void 0),(0,N.Z)((0,Mi.Z)(t),"contextMenuOutsideHandler2",void 0),(0,N.Z)((0,Mi.Z)(t),"mouseDownTimeout",void 0),(0,N.Z)((0,Mi.Z)(t),"focusTime",void 0),(0,N.Z)((0,Mi.Z)(t),"preClickTime",void 0),(0,N.Z)((0,Mi.Z)(t),"preTouchTime",void 0),(0,N.Z)((0,Mi.Z)(t),"delayTimer",void 0),(0,N.Z)((0,Mi.Z)(t),"hasPopupMouseDown",void 0),(0,N.Z)((0,Mi.Z)(t),"onMouseEnter",(function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)})),(0,N.Z)((0,Mi.Z)(t),"onMouseMove",(function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)})),(0,N.Z)((0,Mi.Z)(t),"onMouseLeave",(function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),(0,N.Z)((0,Mi.Z)(t),"onPopupMouseEnter",(function(){t.clearDelayTimer()})),(0,N.Z)((0,Mi.Z)(t),"onPopupMouseLeave",(function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&zt(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),(0,N.Z)((0,Mi.Z)(t),"onFocus",(function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))})),(0,N.Z)((0,Mi.Z)(t),"onMouseDown",(function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()})),(0,N.Z)((0,Mi.Z)(t),"onTouchStart",(function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()})),(0,N.Z)((0,Mi.Z)(t),"onBlur",(function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)})),(0,N.Z)((0,Mi.Z)(t),"onContextMenu",(function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)})),(0,N.Z)((0,Mi.Z)(t),"onContextMenuClose",(function(){t.isContextMenuToShow()&&t.close()})),(0,N.Z)((0,Mi.Z)(t),"onClick",(function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var i=!t.state.popupVisible;(t.isClickToHide()&&!i||i&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)})),(0,N.Z)((0,Mi.Z)(t),"onPopupMouseDown",(function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)})),(0,N.Z)((0,Mi.Z)(t),"onDocumentClick",(function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,i=t.getRootDomNode(),r=t.getPopupDomNode();zt(i,n)&&!t.isContextMenuOnly()||zt(r,n)||t.hasPopupMouseDown||t.close()}})),(0,N.Z)((0,Mi.Z)(t),"getRootDomNode",(function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=El(t.triggerRef.current);if(n)return n}catch(i){}return kl.findDOMNode((0,Mi.Z)(t))})),(0,N.Z)((0,Mi.Z)(t),"getPopupClassNameFromAlign",(function(e){var n=[],i=t.props,r=i.popupPlacement,o=i.builtinPlacements,a=i.prefixCls,s=i.alignPoint,l=i.getPopupClassNameFromAlign;return r&&o&&n.push(function(e,t,n,i){for(var r=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s=o[a];if(yd(e[s].points,r,i))return"".concat(t,"-placement-").concat(s)}return""}(o,a,e,s)),l&&n.push(l(e)),n.join(" ")})),(0,N.Z)((0,Mi.Z)(t),"getComponent",(function(){var e=t.props,n=e.prefixCls,i=e.destroyPopupOnHide,r=e.popupClassName,o=e.onPopupAlign,a=e.popupMotion,s=e.popupAnimation,l=e.popupTransitionName,c=e.popupStyle,u=e.mask,d=e.maskAnimation,h=e.maskTransitionName,f=e.maskMotion,p=e.zIndex,g=e.popup,m=e.stretch,y=e.alignPoint,_=e.mobile,b=e.forceRender,C=e.onPopupClick,S=t.state,w=S.popupVisible,k=S.point,x=t.getPopupAlign(),E={};return t.isMouseEnterToShow()&&(E.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(E.onMouseLeave=t.onPopupMouseLeave),E.onMouseDown=t.onPopupMouseDown,E.onTouchStart=t.onPopupMouseDown,v.createElement(sf,Zt({prefixCls:n,destroyPopupOnHide:i,visible:w,point:y&&k,className:r,align:x,onAlign:o,animation:s,getClassNameFromAlign:t.getPopupClassNameFromAlign},E,{stretch:m,getRootDomNode:t.getRootDomNode,style:c,mask:u,zIndex:p,transitionName:l,maskAnimation:d,maskTransitionName:h,maskMotion:f,ref:t.popupRef,motion:a,mobile:_,forceRender:b,onClick:C}),"function"===typeof g?g():g)})),(0,N.Z)((0,Mi.Z)(t),"attachParent",(function(e){oc.cancel(t.attachId);var n,i=t.props,r=i.getPopupContainer,o=i.getDocument,a=t.getRootDomNode();r?(a||0===r.length)&&(n=r(a)):n=o(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=oc((function(){t.attachParent(e)}))})),(0,N.Z)((0,Mi.Z)(t),"getContainer",(function(){if(!t.portalContainer){var e=(0,t.props.getDocument)(t.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",t.portalContainer=e}return t.attachParent(t.portalContainer),t.portalContainer})),(0,N.Z)((0,Mi.Z)(t),"setPoint",(function(e){t.props.alignPoint&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,N.Z)((0,Mi.Z)(t),"handlePortalUpdate",(function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)})),(0,N.Z)((0,Mi.Z)(t),"triggerContextValue",{onPopupMouseDown:t.onPopupMouseDown}),r="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:r,popupVisible:r},hf.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return(0,C.Z)(i,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=gd(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=gd(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=gd(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=gd(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),oc.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,i=e.builtinPlacements;return t&&i?function(e,t,n){var i=e[t]||{};return(0,Ft.Z)((0,Ft.Z)({},i),n)}(i,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,i=this.state.popupVisible;this.clearDelayTimer(),i!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:i}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var i=this,r=1e3*t;if(this.clearDelayTimer(),r){var o=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){i.setPopupVisible(e,o),i.clearDelayTimer()}),r)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var i=this.props[e];i&&i(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,i=n.children,r=n.forceRender,o=n.alignPoint,a=n.className,s=n.autoDestroy,l=v.Children.only(i),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,o&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var u=Ja()(l&&l.props&&l.props.className,a);u&&(c.className=u);var d=(0,Ft.Z)({},c);Dl(l)&&(d.ref=Nl(this.triggerRef,l.ref));var h,f=v.cloneElement(l,d);return(t||this.popupRef.current||r)&&(h=v.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&s&&(h=null),v.createElement(lf.Provider,{value:this.triggerContextValue},f,h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,i={};return void 0!==n&&t.popupVisible!==n&&(i.popupVisible=n,i.prevPopupVisible=t.popupVisible),i}}]),i}(v.Component);return(0,N.Z)(t,"contextType",lf),(0,N.Z)(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:uf,getDocument:df,onPopupVisibleChange:cf,afterPopupVisibleChange:cf,onPopupAlign:cf,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}(md),pf={adjustX:1,adjustY:1},gf=[0,0],vf={left:{points:["cr","cl"],overflow:pf,offset:[-4,0],targetOffset:gf},right:{points:["cl","cr"],overflow:pf,offset:[4,0],targetOffset:gf},top:{points:["bc","tc"],overflow:pf,offset:[0,-4],targetOffset:gf},bottom:{points:["tc","bc"],overflow:pf,offset:[0,4],targetOffset:gf},topLeft:{points:["bl","tl"],overflow:pf,offset:[0,-4],targetOffset:gf},leftTop:{points:["tr","tl"],overflow:pf,offset:[-4,0],targetOffset:gf},topRight:{points:["br","tr"],overflow:pf,offset:[0,-4],targetOffset:gf},rightTop:{points:["tl","tr"],overflow:pf,offset:[4,0],targetOffset:gf},bottomRight:{points:["tr","br"],overflow:pf,offset:[0,4],targetOffset:gf},rightBottom:{points:["bl","br"],overflow:pf,offset:[4,0],targetOffset:gf},bottomLeft:{points:["tl","bl"],overflow:pf,offset:[0,4],targetOffset:gf},leftBottom:{points:["br","bl"],overflow:pf,offset:[-4,0],targetOffset:gf}};function mf(e){var t=e.showArrow,n=e.arrowContent,i=e.children,r=e.prefixCls,o=e.id,a=e.overlayInnerStyle,s=e.className,l=e.style;return v.createElement("div",{className:Ja()("".concat(r,"-content"),s),style:l},!1!==t&&v.createElement("div",{className:"".concat(r,"-arrow"),key:"arrow"},n),v.createElement("div",{className:"".concat(r,"-inner"),id:o,role:"tooltip",style:a},"function"===typeof i?i():i))}var yf=function(e,t){var n=e.overlayClassName,i=e.trigger,r=void 0===i?["hover"]:i,o=e.mouseEnterDelay,a=void 0===o?0:o,s=e.mouseLeaveDelay,l=void 0===s?.1:s,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,h=e.children,f=e.onVisibleChange,p=e.afterVisibleChange,g=e.transitionName,m=e.animation,y=e.motion,_=e.placement,b=void 0===_?"right":_,C=e.align,S=void 0===C?{}:C,w=e.destroyTooltipOnHide,k=void 0!==w&&w,x=e.defaultVisible,E=e.getTooltipContainer,T=e.overlayInnerStyle,N=e.arrowContent,I=e.overlay,D=e.id,L=e.showArrow,O=Ai(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),R=(0,v.useRef)(null);(0,v.useImperativeHandle)(t,(function(){return R.current}));var A=(0,Ft.Z)({},O);"visible"in e&&(A.popupVisible=e.visible);var M=!1,P=!1;if("boolean"===typeof k)M=k;else if(k&&"object"===(0,Bt.Z)(k)){var Z=k.keepParent;M=!0===Z,P=!1===Z}return v.createElement(ff,Zt({popupClassName:n,prefixCls:d,popup:function(){return v.createElement(mf,{showArrow:L,arrowContent:N,key:"content",prefixCls:d,id:D,overlayInnerStyle:T},I)},action:r,builtinPlacements:vf,popupPlacement:b,ref:R,popupAlign:S,getPopupContainer:E,onPopupVisibleChange:f,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:m,popupMotion:y,defaultPopupVisible:x,destroyPopupOnHide:M,autoDestroy:P,mouseLeaveDelay:l,popupStyle:c,mouseEnterDelay:a},A),h)},_f=(0,v.forwardRef)(yf);function bf(e){var t=v.useRef();t.current=e;var n=v.useCallback((function(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(i))}),[]);return n}function Cf(e){return void 0!==e}function Sf(e,t){var n=t||{},i=n.defaultValue,r=n.value,o=n.onChange,a=n.postState,s=Ql((function(){return Cf(r)?r:Cf(i)?"function"===typeof i?i():i:"function"===typeof e?e():e})),l=(0,k.Z)(s,2),c=l[0],u=l[1],d=void 0!==r?r:c,h=a?a(d):d,f=bf(o),p=Ql([d]),g=(0,k.Z)(p,2),v=g[0],m=g[1];return zu((function(){var e=v[0];c!==e&&f(c,e)}),[v]),zu((function(){Cf(r)||u(r)}),[r]),[h,bf((function(e,t){u(e,t),m([d],t)}))]}var wf={adjustX:1,adjustY:1},kf={adjustX:0,adjustY:0},xf=[0,0];function Ef(e){return"boolean"===typeof e?e?wf:kf:Zt(Zt({},kf),e)}function Tf(e){var t=e.arrowWidth,n=void 0===t?4:t,i=e.horizontalArrowShift,r=void 0===i?16:i,o=e.verticalArrowShift,a=void 0===o?8:o,s=e.autoAdjustOverflow,l=e.arrowPointAtCenter,c={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(r+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(a+n)]},topRight:{points:["br","tc"],offset:[r+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(a+n)]},bottomRight:{points:["tr","bc"],offset:[r+n,4]},rightBottom:{points:["bl","cr"],offset:[4,a+n]},bottomLeft:{points:["tl","bc"],offset:[-(r+n),4]},leftBottom:{points:["br","cl"],offset:[-4,a+n]}};return Object.keys(c).forEach((function(e){c[e]=l?Zt(Zt({},c[e]),{overflow:Ef(s),targetOffset:xf}):Zt(Zt({},vf[e]),{overflow:Ef(s)}),c[e].ignoreShake=!0})),c}var Nf=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],If=function(e,t,n,i,r){var o=e/2,a=o-n*(Math.sqrt(2)-1),s=o,l=o+n*(1-1/Math.sqrt(2)),c=o-n*(1-1/Math.sqrt(2)),u=2*o-t*(1/Math.sqrt(2)),d=t*(1/Math.sqrt(2)),h=4*o-u,f=d,p=4*o-l,g=c,v=4*o-a,m=s;return{borderRadius:{_skip_check_:!0,value:"0 0 "+t+"px"},pointerEvents:"none",width:2*e,height:2*e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:e/Math.sqrt(2),height:e/Math.sqrt(2),bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:"0 0 "+t+"px 0"},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:2*e,height:e/2,background:i,clipPath:"path('M "+a+" "+s+" A "+n+" "+n+" 0 0 0 "+l+" "+c+" L "+u+" "+d+" A "+t+" "+t+" 0 0 1 "+h+" "+f+" L "+p+" "+g+" A "+n+" "+n+" 0 0 0 "+v+" "+m+" Z')",content:'""'}}};function Df(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((function(e){return""+t+e})).join(",")}function Lf(e){var t=e.sizePopupArrow,n=e.contentRadius,i=e.borderRadiusOuter,r=e.limitVerticalRadius,o=t/2-Math.ceil(i*(Math.sqrt(2)-1)),a=(n>12?n+2:12)-o;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:r?8-o:a}}function Of(e,t){var n,i=e.componentCls,r=e.sizePopupArrow,o=e.marginXXS,a=e.borderRadiusXS,s=e.borderRadiusOuter,l=e.boxShadowPopoverArrow,c=t.colorBg,u=t.showArrowCls,d=t.contentRadius,h=Lf({sizePopupArrow:r,contentRadius:void 0===d?e.borderRadiusLG:d,borderRadiusOuter:s,limitVerticalRadius:t.limitVerticalRadius}),f=h.dropdownArrowOffsetVertical,p=h.dropdownArrowOffset,g=r/2+o;return(0,N.Z)({},i,(n={},(0,N.Z)(n,i+"-arrow",[Zt(Zt({position:"absolute",zIndex:1,display:"block"},If(r,a,s,c,l)),{"&:before":{background:c}})]),(0,N.Z)(n,["&-placement-top "+i+"-arrow","&-placement-topLeft "+i+"-arrow","&-placement-topRight "+i+"-arrow"].join(","),{bottom:0,transform:"translateY(100%) rotate(180deg)"}),(0,N.Z)(n,"&-placement-top "+i+"-arrow",{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"}),(0,N.Z)(n,"&-placement-topLeft "+i+"-arrow",{left:{_skip_check_:!0,value:p}}),(0,N.Z)(n,"&-placement-topRight "+i+"-arrow",{right:{_skip_check_:!0,value:p}}),(0,N.Z)(n,["&-placement-bottom "+i+"-arrow","&-placement-bottomLeft "+i+"-arrow","&-placement-bottomRight "+i+"-arrow"].join(","),{top:0,transform:"translateY(-100%)"}),(0,N.Z)(n,"&-placement-bottom "+i+"-arrow",{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"}),(0,N.Z)(n,"&-placement-bottomLeft "+i+"-arrow",{left:{_skip_check_:!0,value:p}}),(0,N.Z)(n,"&-placement-bottomRight "+i+"-arrow",{right:{_skip_check_:!0,value:p}}),(0,N.Z)(n,["&-placement-left "+i+"-arrow","&-placement-leftTop "+i+"-arrow","&-placement-leftBottom "+i+"-arrow"].join(","),{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"}),(0,N.Z)(n,"&-placement-left "+i+"-arrow",{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"}),(0,N.Z)(n,"&-placement-leftTop "+i+"-arrow",{top:f}),(0,N.Z)(n,"&-placement-leftBottom "+i+"-arrow",{bottom:f}),(0,N.Z)(n,["&-placement-right "+i+"-arrow","&-placement-rightTop "+i+"-arrow","&-placement-rightBottom "+i+"-arrow"].join(","),{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"}),(0,N.Z)(n,"&-placement-right "+i+"-arrow",{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"}),(0,N.Z)(n,"&-placement-rightTop "+i+"-arrow",{top:f}),(0,N.Z)(n,"&-placement-rightBottom "+i+"-arrow",{bottom:f}),(0,N.Z)(n,Df(["&-placement-topLeft","&-placement-top","&-placement-topRight"],u),{paddingBottom:g}),(0,N.Z)(n,Df(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],u),{paddingTop:g}),(0,N.Z)(n,Df(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],u),{paddingRight:{_skip_check_:!0,value:g}}),(0,N.Z)(n,Df(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],u),{paddingLeft:{_skip_check_:!0,value:g}}),n))}var Rf=function(e){var t=e.componentCls;return Nf.reduce((function(n,i){var r,o=e[i+"-6"];return n["&"+t+"-"+i]=(r={},(0,N.Z)(r,t+"-inner",{backgroundColor:o}),(0,N.Z)(r,t+"-arrow",{"--antd-arrow-background-color":o}),r),n}),{})},Af=function(e){var t,n=e.componentCls,i=e.tooltipMaxWidth,r=e.tooltipColor,o=e.tooltipBg,a=e.tooltipBorderRadius,s=e.zIndexPopup,l=e.controlHeight,c=e.boxShadowSecondary,u=e.paddingSM,d=e.paddingXS,h=e.tooltipRadiusOuter;return[(0,N.Z)({},n,Zt(Zt(Zt(Zt({},Fa(e)),(t={position:"absolute",zIndex:s,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:i,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":o},(0,N.Z)(t,n+"-inner",{minWidth:l,minHeight:l,padding:u/2+"px "+d+"px",color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c}),(0,N.Z)(t,["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(","),(0,N.Z)({},n+"-inner",{borderRadius:a>8?8:a})),(0,N.Z)(t,n+"-content",{position:"relative"}),t)),Rf(e)),{"&-rtl":{direction:"rtl"}})),Of(cs(e,{borderRadiusOuter:h}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:a,limitVerticalRadius:!0}),(0,N.Z)({},n+"-pure",{position:"relative",maxWidth:"none"})]},Mf=function(e,t){var n=hs("Tooltip",(function(e){if(!1===t)return[];var n=e.borderRadius,i=e.colorTextLightSolid,r=e.colorBgDefault,o=e.borderRadiusOuter,a=cs(e,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:n,tooltipBg:r,tooltipRadiusOuter:o>4?4:o});return[Af(a),du(e,"zoom-big-fast")]}),(function(e){return{zIndexPopup:e.zIndexPopupBase+70,colorBgDefault:e.colorBgSpotlight}}));return n(e)},Pf=as("success","processing","error","default","warning"),Zf=as("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"),Ff=new RegExp("^("+Zf.join("|")+")(-inverse)?$");function Bf(e,t){var n,i,r=Ja()((0,N.Z)({},e+"-"+t,t&&Ff.test(t)));return t&&!Ff.test(t)&&(n={background:t},i={"--antd-arrow-background-color":t}),{className:r,overlayStyle:n,arrowStyle:i}}var Hf=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function zf(e,t){var n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){var i=function(e,t){var n={},i=Zt({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete i[t])})),{picked:n,omitted:i}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=i.picked,o=i.omitted,a=Zt(Zt({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),s=os(e,{style:Zt(Zt({},o),{pointerEvents:"none"}),className:null});return v.createElement("span",{style:a,className:Ja()(e.props.className,t+"-disabled-compatible-wrapper")},s)}return e}var jf=v.forwardRef((function(e,t){var n,i,r=e.prefixCls,o=e.openClassName,a=e.getTooltipContainer,s=e.overlayClassName,l=e.color,c=e.overlayInnerStyle,u=e.children,d=e.afterOpenChange,h=e.afterVisibleChange,f=v.useContext(wa),p=f.getPopupContainer,g=f.getPrefixCls,m=f.direction;var y=Sf(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(i=e.defaultOpen)&&void 0!==i?i:e.defaultVisible}),_=(0,k.Z)(y,2),b=_[0],C=_[1],S=function(){var t=e.title,n=e.overlay;return!t&&!n&&0!==t},w=function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,i=void 0!==n&&n,r=e.autoAdjustOverflow;return t||Tf({arrowPointAtCenter:i,autoAdjustOverflow:void 0===r||r})},x=e.getPopupContainer,E=e.placement,T=void 0===E?"top":E,I=e.mouseEnterDelay,D=void 0===I?.1:I,L=e.mouseLeaveDelay,O=void 0===L?.1:L,R=e.overlayStyle,A=Hf(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),M=g("tooltip",r),P=g(),Z=e["data-popover-inject"],F=b;"open"in e||"visible"in e||!S()||(F=!1);var B=zf(is(u)&&!rs(u)?u:v.createElement("span",null,u),M),H=B.props,z=H.className&&"string"!==typeof H.className?H.className:Ja()(H.className,(0,N.Z)({},o||M+"-open",!0)),j=Mf(M,!Z),V=(0,k.Z)(j,2),W=V[0],U=V[1],G=Bf(M,l),K=Zt(Zt({},c),G.overlayStyle),Y=G.arrowStyle,q=Ja()(s,(0,N.Z)({},M+"-rtl","rtl"===m),G.className,U);return W(v.createElement(_f,Zt({},A,{placement:T,mouseEnterDelay:D,mouseLeaveDelay:O,prefixCls:M,overlayClassName:q,overlayStyle:Zt(Zt({},Y),R),getTooltipContainer:x||a||p,ref:t,builtinPlacements:w(),overlay:function(){var t=e.title,n=e.overlay;return 0===t?t:n||t||""}(),visible:F,onVisibleChange:function(t){var n,i;C(!S()&&t),S()||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(i=e.onVisibleChange)||void 0===i||i.call(e,t))},afterVisibleChange:null!==d&&void 0!==d?d:h,onPopupAlign:function(e,t){var n=w(),i=Object.keys(n).find((function(e){var i,r;return n[e].points[0]===(null===(i=t.points)||void 0===i?void 0:i[0])&&n[e].points[1]===(null===(r=t.points)||void 0===r?void 0:r[1])}));if(i){var r=e.getBoundingClientRect(),o={top:"50%",left:"50%"};/top|Bottom/.test(i)?o.top=r.height-t.offset[1]+"px":/Top|bottom/.test(i)&&(o.top=-t.offset[1]+"px"),/left|Right/.test(i)?o.left=r.width-t.offset[0]+"px":/right|Left/.test(i)&&(o.left=-t.offset[0]+"px"),e.style.transformOrigin=o.left+" "+o.top}},overlayInnerStyle:K,arrowContent:v.createElement("span",{className:M+"-arrow-content"}),motion:{motionName:Lc(P,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),F?os(B,{className:z}):B))}));jf._InternalPanelDoNotUseOrYouWillBeFired=function(e){var t=e.prefixCls,n=e.className,i=e.placement,r=void 0===i?"top":i,o=e.title,a=e.color,s=e.overlayInnerStyle,l=(0,v.useContext(wa).getPrefixCls)("tooltip",t),c=Mf(l,!0),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=Bf(l,a),p=Zt(Zt({},s),f.overlayStyle),g=f.arrowStyle;return d(v.createElement("div",{className:Ja()(h,l,l+"-pure",l+"-placement-"+r,n,f.className),style:g},v.createElement(mf,Zt({},e,{className:h,prefixCls:l,overlayInnerStyle:p}),o)))};var Vf=jf,Wf=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};var Uf=function(e){var t=e.prefixCls,n=e.label,i=e.htmlFor,r=e.labelCol,o=e.labelAlign,a=e.colon,s=e.required,l=e.requiredMark,c=e.tooltip,u=wo("Form"),d=(0,k.Z)(u,1)[0];return n?v.createElement(_l.Consumer,{key:"label"},(function(e){var u,h,f=e.vertical,p=e.labelAlign,g=e.labelCol,m=e.labelWrap,y=e.colon,_=r||g||{},b=o||p,C=t+"-item-label",S=Ja()(C,"left"===b&&C+"-left",_.className,(0,N.Z)({},C+"-wrap",!!m)),w=n,k=!0===a||!1!==y&&!1!==a;k&&!f&&"string"===typeof n&&""!==n.trim()&&(w=n.replace(/[:|\uff1a]\s*$/,""));var x=function(e){return e?"object"!==(0,Bt.Z)(e)||v.isValidElement(e)?{title:e}:e:null}(c);if(x){var E=x.icon,T=void 0===E?v.createElement(ud,null):E,I=Wf(x,["icon"]),D=v.createElement(Vf,Zt({},I),v.cloneElement(T,{className:t+"-item-tooltip",title:""}));w=v.createElement(v.Fragment,null,w,D)}"optional"!==l||s||(w=v.createElement(v.Fragment,null,w,v.createElement("span",{className:t+"-item-optional",title:""},(null===d||void 0===d?void 0:d.optional)||(null===(h=vo.Form)||void 0===h?void 0:h.optional))));var L=Ja()((u={},(0,N.Z)(u,t+"-item-required",s),(0,N.Z)(u,t+"-item-required-mark-optional","optional"===l),(0,N.Z)(u,t+"-item-no-colon",!k),u));return v.createElement(pd,Zt({},_,{className:S}),v.createElement("label",{htmlFor:i,className:L,title:"string"===typeof n?n:""},w))})):null},Gf=function(e){var t=e.prefixCls,n=e.status,i=e.wrapperCol,r=e.children,o=e.errors,a=e.warnings,s=e._internalItemRender,l=e.extra,c=e.help,u=e.fieldId,d=e.marginBottom,h=e.onErrorVisibleChanged,f=t+"-item",p=v.useContext(_l),g=i||p.wrapperCol||{},m=Ja()(f+"-control",g.className),y=v.useMemo((function(){return Zt({},p)}),[p]);delete y.labelCol,delete y.wrapperCol;var _=v.createElement("div",{className:f+"-control-input"},v.createElement("div",{className:f+"-control-input-content"},r)),b=v.useMemo((function(){return{prefixCls:t,status:n}}),[t,n]),C=null!==d||o.length||a.length?v.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},v.createElement(Cl.Provider,{value:b},v.createElement(Pc,{fieldId:u,errors:o,warnings:a,help:c,helpStatus:n,className:f+"-explain-connected",onVisibleChanged:h})),!!d&&v.createElement("div",{style:{width:0,height:d}})):null,S={};u&&(S.id=u+"_extra");var w=l?v.createElement("div",Zt({},S,{className:f+"-extra"}),l):null,k=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:_,errorList:C,extra:w}):v.createElement(v.Fragment,null,_,C,w);return v.createElement(_l.Provider,{value:y},v.createElement(pd,Zt({},g,{className:m}),k))},Kf=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},Yf={success:Nu,warning:Au,error:Lu,validating:Fu};function qf(e){var t,n=e.prefixCls,i=e.className,r=e.style,o=e.help,a=e.errors,s=e.warnings,l=e.validateStatus,c=e.meta,u=e.hasFeedback,d=e.hidden,h=e.children,f=e.fieldId,p=e.isRequired,g=e.onSubItemMetaChange,m=Kf(e,["prefixCls","className","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","isRequired","onSubItemMetaChange"]),y=n+"-item",_=v.useContext(_l).requiredMark,b=v.useRef(null),C=Rc(a),S=Rc(s),w=void 0!==o&&null!==o,x=!!(w||a.length||s.length),E=v.useState(null),T=(0,k.Z)(E,2),I=T[0],D=T[1];ju((function(){if(x&&b.current){var e=getComputedStyle(b.current);D(parseInt(e.marginBottom,10))}}),[x]);var L="";void 0!==l?L=l:c.validating?L="validating":C.length?L="error":S.length?L="warning":c.touched&&(L="success");var O=v.useMemo((function(){var e;if(u){var t=L&&Yf[L];e=t?v.createElement("span",{className:Ja()(y+"-feedback-icon",y+"-feedback-icon-"+L)},v.createElement(t,null)):null}return{status:L,hasFeedback:u,feedbackIcon:e,isFormItemInput:!0}}),[L,u]),R=(t={},(0,N.Z)(t,y,!0),(0,N.Z)(t,y+"-with-help",w||C.length||S.length),(0,N.Z)(t,""+i,!!i),(0,N.Z)(t,y+"-has-feedback",L&&u),(0,N.Z)(t,y+"-has-success","success"===L),(0,N.Z)(t,y+"-has-warning","warning"===L),(0,N.Z)(t,y+"-has-error","error"===L),(0,N.Z)(t,y+"-is-validating","validating"===L),(0,N.Z)(t,y+"-hidden",d),t);return v.createElement("div",{className:Ja()(R),style:r,ref:b},v.createElement(sd,Zt({className:y+"-row"},ns(m,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","required","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol"])),v.createElement(Uf,Zt({htmlFor:f,required:p,requiredMark:_},e,{prefixCls:n})),v.createElement(Gf,Zt({},e,c,{errors:C,warnings:S,prefixCls:n,status:L,help:o,marginBottom:I,onErrorVisibleChanged:function(e){e||D(null)}}),v.createElement(bl.Provider,{value:g},v.createElement(Sl.Provider,{value:O},h)))),!!I&&v.createElement("div",{className:y+"-margin-offset",style:{marginBottom:-I}}))}as("success","warning","error","validating","");var $f=v.memo((function(e){return e.children}),(function(e,t){return e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((function(e,n){return e===t.childProps[n]}))}));var Xf=function(e){var t=e.name,n=e.noStyle,i=e.className,r=e.dependencies,o=e.prefixCls,a=e.shouldUpdate,s=e.rules,l=e.children,c=e.required,u=e.label,d=e.messageVariables,h=e.trigger,f=void 0===h?"onChange":h,p=e.validateTrigger,g=e.hidden,m=(0,v.useContext)(wa).getPrefixCls,y=(0,v.useContext)(_l).name,b="function"===typeof l,C=(0,v.useContext)(bl),S=(0,v.useContext)(Hi).validateTrigger,w=void 0!==p?p:S,x=function(e){return!(void 0===e||null===e)}(t),E=m("form",o),T=Cu(E),N=(0,k.Z)(T,2),I=N[0],D=N[1],L=v.useContext(Gr),O=v.useRef(),R=function(e){var t=v.useState(e),n=(0,k.Z)(t,2),i=n[0],r=n[1],o=(0,v.useRef)(null),a=(0,v.useRef)([]),s=(0,v.useRef)(!1);return v.useEffect((function(){return s.current=!1,function(){s.current=!0,oc.cancel(o.current),o.current=null}}),[]),[i,function(e){s.current||(null===o.current&&(a.current=[],o.current=oc((function(){o.current=null,r((function(e){var t=e;return a.current.forEach((function(e){t=e(t)})),t}))}))),a.current.push(e))}]}({}),A=(0,k.Z)(R,2),M=A[0],P=A[1],Z=Ql((function(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[]}})),F=(0,k.Z)(Z,2),B=F[0],H=F[1],z=function(e,t){P((function(n){var i=Zt({},n),r=[].concat((0,_.Z)(e.name.slice(0,-1)),(0,_.Z)(t)).join("__SPLIT__");return e.destroy?delete i[r]:i[r]=e,i}))},j=v.useMemo((function(){var e=(0,_.Z)(B.errors),t=(0,_.Z)(B.warnings);return Object.values(M).forEach((function(n){e.push.apply(e,(0,_.Z)(n.errors||[])),t.push.apply(t,(0,_.Z)(n.warnings||[]))})),[e,t]}),[M,B.errors,B.warnings]),V=(0,k.Z)(j,2),W=V[0],U=V[1],G=function(){var e=v.useContext(_l).itemRef,t=v.useRef({});return function(n,i){var r=i&&"object"===(0,Bt.Z)(i)&&i.ref,o=n.join("_");return t.current.name===o&&t.current.originRef===r||(t.current.name=o,t.current.originRef=r,t.current.ref=Nl(e(n),r)),t.current.ref}}();function K(t,r,o){return n&&!g?t:v.createElement(qf,Zt({key:"row"},e,{className:Ja()(i,D),prefixCls:E,fieldId:r,isRequired:o,errors:W,warnings:U,meta:B,onSubItemMetaChange:z}),t)}if(!x&&!b&&!r)return I(K(l));var Y={};return"string"===typeof u?Y.label=u:t&&(Y.label=String(t)),d&&(Y=Zt(Zt({},Y),d)),I(v.createElement(Ur,Zt({},e,{messageVariables:Y,trigger:f,validateTrigger:w,onMetaChange:function(e){var t=null===L||void 0===L?void 0:L.getKey(e.name);if(H(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[]}:e,!0),n&&C){var i=e.name;if(e.destroy)i=O.current||i;else if(void 0!==t){var r=(0,k.Z)(t,2),o=r[0],a=r[1];i=[o].concat((0,_.Z)(a)),O.current=i}C(e,i)}}}),(function(n,i,o){var u=Uc(t).length&&i?i.name:[],d=Gc(u,y),h=void 0!==c?c:!(!s||!s.some((function(e){if(e&&"object"===(0,Bt.Z)(e)&&e.required&&!e.warningOnly)return!0;if("function"===typeof e){var t=e(o);return t&&t.required&&!t.warningOnly}return!1}))),p=Zt({},n),g=null;if(Array.isArray(l)&&x)g=l;else if(b&&(!a&&!r||x));else if(!r||b||x)if(is(l)){var m=Zt(Zt({},l.props),p);if(m.id||(m.id=d),e.help||W.length>0||U.length>0||e.extra){var C=[];(e.help||W.length>0)&&C.push(d+"_help"),e.extra&&C.push(d+"_extra"),m["aria-describedby"]=C.join(" ")}W.length>0&&(m["aria-invalid"]="true"),h&&(m["aria-required"]="true"),Dl(l)&&(m.ref=G(u,l)),new Set([].concat((0,_.Z)(Uc(f)),(0,_.Z)(Uc(w)))).forEach((function(e){m[e]=function(){for(var t,n,i,r,o,a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];null===(i=p[e])||void 0===i||(t=i).call.apply(t,[p].concat(s)),null===(o=(r=l.props)[e])||void 0===o||(n=o).call.apply(n,[r].concat(s))}}));var S=[m["aria-required"],m["aria-invalid"],m["aria-describedby"]];g=v.createElement($f,{value:p[e.valuePropName||"value"],update:l,childProps:S},os(l,m))}else g=b&&(a||r)&&!x?l(o):l;else;return K(g,d,h)})))};Xf.useStatus=xu;var Qf=Xf,Jf=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},ep=function(e){var t=e.prefixCls,n=e.children,i=Jf(e,["prefixCls","children"]),r=(0,v.useContext(wa).getPrefixCls)("form",t),o=v.useMemo((function(){return{prefixCls:r,status:"error"}}),[r]);return v.createElement(Kr,Zt({},i),(function(e,t,i){return v.createElement(Cl.Provider,{value:o},n(e.map((function(e){return Zt(Zt({},e),{fieldKey:e.key})})),t,{errors:i.errors,warnings:i.warnings}))}))};var tp=ku;tp.Item=Qf,tp.List=ep,tp.ErrorList=Pc,tp.useForm=Yc,tp.useFormInstance=function(){return(0,v.useContext)(_l).form},tp.useWatch=so,tp.Provider=function(e){var t=ns(e,["prefixCls"]);return v.createElement(no,Zt({},t))},tp.create=function(){};var np,ip=tp,rp=(0,Ft.Z)({},xl),op=rp.version,ap=rp.render,sp=rp.unmountComponentAtNode;try{Number((op||"").split(".")[0])>=18&&(np=rp.createRoot)}catch(Fc){}function lp(e){var t=rp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,Bt.Z)(t)&&(t.usingClientEntryPoint=e)}var cp="__rc_react_root__";function up(e,t){np?function(e,t){lp(!0);var n=t[cp]||np(t);lp(!1),n.render(e),t[cp]=n}(e,t):function(e,t){ap(e,t)}(e,t)}function dp(e){return hp.apply(this,arguments)}function hp(){return hp=(0,T.Z)((0,E.Z)().mark((function e(t){return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[cp])||void 0===e||e.unmount(),delete t[cp]})));case 1:case"end":return e.stop()}}),e)}))),hp.apply(this,arguments)}function fp(e){sp(e)}function pp(e){return gp.apply(this,arguments)}function gp(){return(gp=(0,T.Z)((0,E.Z)().mark((function e(t){return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===np){e.next=2;break}return e.abrupt("return",dp(t));case 2:fp(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var vp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},mp=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:vp}))};mp.displayName="InfoCircleFilled";var yp=v.forwardRef(mp),_p=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.style,r=e.className,o=e.duration,a=void 0===o?4.5:o,s=e.eventKey,l=e.content,c=e.closable,u=e.closeIcon,d=void 0===u?"x":u,h=e.props,f=e.onClick,p=e.onNoticeClose,g=v.useState(!1),m=(0,k.Z)(g,2),y=m[0],_=m[1],b=function(){p(s)};v.useEffect((function(){if(!y&&a>0){var e=setTimeout((function(){b()}),1e3*a);return function(){clearTimeout(e)}}}),[a,y]);var C="".concat(n,"-notice");return v.createElement("div",Zt({},h,{ref:t,className:Ja()(C,r,(0,N.Z)({},"".concat(C,"-closable"),c)),style:i,onMouseEnter:function(){_(!0)},onMouseLeave:function(){_(!1)},onClick:f}),v.createElement("div",{className:"".concat(C,"-content")},l),c&&v.createElement("a",{tabIndex:0,className:"".concat(C,"-close"),onClick:function(e){e.preventDefault(),e.stopPropagation(),b()}},d))})),bp=_p,Cp=v.forwardRef((function(e,t){var n=e.prefixCls,i=void 0===n?"rc-notification":n,r=e.container,o=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=v.useState([]),d=(0,k.Z)(u,2),h=d[0],f=d[1],p=function(e){var t,n=h.find((function(t){return t.key===e}));null===n||void 0===n||null===(t=n.onClose)||void 0===t||t.call(n),f((function(t){return t.filter((function(t){return t.key!==e}))}))};v.useImperativeHandle(t,(function(){return{open:function(e){f((function(t){var n=(0,_.Z)(t),i=n.findIndex((function(t){return t.key===e.key}));return i>=0?n[i]=e:n.push(e),a>0&&n.length>a&&(n=n.slice(-a)),n}))},close:function(e){p(e)},destroy:function(){f([])}}}));var g=v.useState({}),m=(0,k.Z)(g,2),y=m[0],b=m[1];v.useEffect((function(){var e={};h.forEach((function(t){var n=t.placement,i=void 0===n?"topRight":n;i&&(e[i]=e[i]||[],e[i].push(t))})),Object.keys(y).forEach((function(t){e[t]=e[t]||[]})),b(e)}),[h]);var C=v.useRef(!1);if(v.useEffect((function(){Object.keys(y).length>0?C.current=!0:C.current&&(null===c||void 0===c||c(),C.current=!1)}),[y]),!r)return null;var S=Object.keys(y);return(0,kl.createPortal)(v.createElement(v.Fragment,null,S.map((function(e){var t=y[e].map((function(e){return{config:e,key:e.key}})),n="function"===typeof o?o(e):o;return v.createElement(kc,Zt({key:e,className:Ja()(i,"".concat(i,"-").concat(e),null===s||void 0===s?void 0:s(e)),style:null===l||void 0===l?void 0:l(e),keys:t,motionAppear:!0},n,{onAllRemoved:function(){!function(e){b((function(t){var n=(0,Ft.Z)({},t);return(n[e]||[]).length||delete n[e],n}))}(e)}}),(function(e,t){var n=e.config,r=e.className,o=e.style,a=n.key,s=n.className,l=n.style;return v.createElement(bp,Zt({},n,{ref:t,prefixCls:i,className:Ja()(r,s),style:(0,Ft.Z)((0,Ft.Z)({},o),l),key:a,eventKey:a,onNoticeClose:p}))}))}))),r)}));var Sp=Cp,wp=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],kp=function(){return document.body},xp=0;function Ep(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var i=t[n];void 0!==i&&(e[n]=i)}))})),e}var Tp=function(e){var t,n,i=e.componentCls,r=e.iconCls,o=e.boxShadowSecondary,a=e.colorBgElevated,s=e.colorSuccess,l=e.colorError,c=e.colorWarning,u=e.colorInfo,d=e.fontSizeLG,h=e.motionEaseInOutCirc,f=e.motionDurationSlow,p=e.marginXS,g=e.paddingXS,v=e.borderRadiusLG,m=e.zIndexPopup,y=e.messageNoticeContentPadding,_=new Ti("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),b=new Ti("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[(0,N.Z)({},i,Zt(Zt({},Fa(e)),(t={position:"fixed",top:p,insetInlineStart:0,width:"100%",pointerEvents:"none",zIndex:m},(0,N.Z)(t,i+"-move-up",{animationFillMode:"forwards"}),(0,N.Z)(t,"\n "+i+"-move-up-appear,\n "+i+"-move-up-enter\n ",{animationName:_,animationDuration:f,animationPlayState:"paused",animationTimingFunction:h}),(0,N.Z)(t,"\n "+i+"-move-up-appear"+i+"-move-up-appear-active,\n "+i+"-move-up-enter"+i+"-move-up-enter-active\n ",{animationPlayState:"running"}),(0,N.Z)(t,i+"-move-up-leave",{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:h}),(0,N.Z)(t,i+"-move-up-leave"+i+"-move-up-leave-active",{animationPlayState:"running"}),(0,N.Z)(t,"&-rtl",{direction:"rtl",span:{direction:"rtl"}}),t))),(0,N.Z)({},i+"-notice",(n={padding:g,textAlign:"center"},(0,N.Z)(n,r,{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:d}),(0,N.Z)(n,i+"-notice-content",{display:"inline-block",padding:y,background:a,borderRadius:v,boxShadow:o,pointerEvents:"all"}),(0,N.Z)(n,i+"-success "+r,{color:s}),(0,N.Z)(n,i+"-error "+r,{color:l}),(0,N.Z)(n,i+"-warning "+r,{color:c}),(0,N.Z)(n,"\n "+i+"-info "+r+",\n "+i+"-loading "+r,{color:u}),n)),(0,N.Z)({},i+"-notice-pure-panel",{padding:0,textAlign:"start"})]},Np=hs("Message",(function(e){var t=cs(e,{messageNoticeContentPadding:(e.controlHeightLG-e.fontSize*e.lineHeight)/2+"px "+e.paddingContentVertical+"px"});return[Tp(t)]}),(function(e){return{height:150,zIndexPopup:e.zIndexPopupBase+10}})),Ip=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},Dp={info:v.createElement(yp,null),success:v.createElement(Nu,null),error:v.createElement(Lu,null),warning:v.createElement(Au,null),loading:v.createElement(Fu,null)};function Lp(e){var t=e.prefixCls,n=e.type,i=e.icon,r=e.children;return v.createElement("div",{className:Ja()(t+"-custom-content",t+"-"+n)},i||Dp[n],v.createElement("span",null,r))}var Op={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},Rp=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Op}))};Rp.displayName="CloseOutlined";var Ap=v.forwardRef(Rp);function Mp(e){var t,n=new Promise((function(n){t=e((function(){n(!0)}))})),i=function(){null===t||void 0===t||t()};return i.then=function(e,t){return n.then(e,t)},i.promise=n,i}var Pp=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},Zp=v.forwardRef((function(e,t){var n=e.top,i=e.prefixCls,r=e.getContainer,o=e.maxCount,a=e.rtl,s=e.transitionName,l=e.onAllRemoved,c=v.useContext(wa),u=c.getPrefixCls,d=c.getPopupContainer,h=i||u("message"),f=Np(h),p=(0,k.Z)(f,2)[1],g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?kp:t,i=e.motion,r=e.prefixCls,o=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=Ai(e,wp),u=v.useState(),d=(0,k.Z)(u,2),h=d[0],f=d[1],p=v.useRef(),g=v.createElement(Sp,{container:h,ref:p,prefixCls:r,motion:i,maxCount:o,className:a,style:s,onAllRemoved:l}),m=v.useState([]),y=(0,k.Z)(m,2),b=y[0],C=y[1],S=v.useMemo((function(){return{open:function(e){var t=Ep(c,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(xp),xp+=1),C((function(e){return[].concat((0,_.Z)(e),[{type:"open",config:t}])}))},close:function(e){C((function(t){return[].concat((0,_.Z)(t),[{type:"close",key:e}])}))},destroy:function(){C((function(e){return[].concat((0,_.Z)(e),[{type:"destroy"}])}))}}}),[]);return v.useEffect((function(){f(n())})),v.useEffect((function(){p.current&&b.length&&(b.forEach((function(e){switch(e.type){case"open":p.current.open(e.config);break;case"close":p.current.close(e.key);break;case"destroy":p.current.destroy()}})),C([]))}),[b]),[S,g]}({prefixCls:h,style:function(){return{left:"50%",transform:"translateX(-50%)",top:null!==n&&void 0!==n?n:8}},className:function(){return Ja()(p,a?h+"-rtl":"")},motion:function(){return function(e,t){return{motionName:null!==t&&void 0!==t?t:e+"-move-up"}}(h,s)},closable:!1,closeIcon:v.createElement("span",{className:h+"-close-x"},v.createElement(Ap,{className:h+"-close-icon"})),duration:3,getContainer:function(){return(null===r||void 0===r?void 0:r())||(null===d||void 0===d?void 0:d())||document.body},maxCount:o,onAllRemoved:l}),m=(0,k.Z)(g,2),y=m[0],b=m[1];return v.useImperativeHandle(t,(function(){return Zt(Zt({},y),{prefixCls:h,hashId:p})})),b})),Fp=0;function Bp(e){var t=v.useRef(null),n=v.useMemo((function(){var e=function(e){var n;null===(n=t.current)||void 0===n||n.close(e)},n=function(n){if(!t.current){var i=function(){};return i.then=function(){},i}var r=t.current,o=r.open,a=r.prefixCls,s=r.hashId,l=a+"-notice",c=n.content,u=n.icon,d=n.type,h=n.key,f=n.className,p=n.onClose,g=Pp(n,["content","icon","type","key","className","onClose"]),m=h;return void 0!==m&&null!==m||(m="antd-message-"+(Fp+=1)),Mp((function(t){return o(Zt(Zt({},g),{key:m,content:v.createElement(Lp,{prefixCls:a,type:d,icon:u},c),placement:"top",className:Ja()(d&&l+"-"+d,s,f),onClose:function(){null===p||void 0===p||p(),t()}})),function(){e(m)}}))},i={open:n,destroy:function(n){var i;void 0!==n?e(n):null===(i=t.current)||void 0===i||i.destroy()}};return["info","success","warning","error","loading"].forEach((function(e){i[e]=function(t,i,r){var o,a;"function"===typeof i?a=i:(o=i,a=r);var s=Zt(Zt({onClose:a,duration:o},t&&"object"===(0,Bt.Z)(t)&&"content"in t?t:{content:t}),{type:e});return n(s)}})),i}),[]);return[n,v.createElement(Zp,Zt({key:"holder"},e,{ref:t}))]}var Hp=null,zp=function(e){return e()},jp=[],Vp={};var Wp=v.forwardRef((function(e,t){var n=v.useState(),i=(0,k.Z)(n,2),r=i[0],o=i[1],a=v.useState(),s=(0,k.Z)(a,2),l=s[0],c=s[1],u=v.useState(),d=(0,k.Z)(u,2),h=d[0],f=d[1],p=v.useState(),g=(0,k.Z)(p,2),m=g[0],y=g[1],_=v.useState(),b=(0,k.Z)(_,2),C=b[0],S=b[1],w=Bp({prefixCls:r,getContainer:function(){return l},maxCount:h,rtl:m,top:C}),x=(0,k.Z)(w,2),E=x[0],T=x[1],N=Ya(),I=N.getRootPrefixCls(),D=N.getIconPrefixCls(),L=function(){var e=function(){var e=Vp,t=e.prefixCls,n=e.getContainer,i=e.rtl,r=e.maxCount,o=e.top;return{prefixCls:null!==t&&void 0!==t?t:Ya().getPrefixCls("message"),container:(null===n||void 0===n?void 0:n())||document.body,rtl:i,maxCount:r,top:o}}(),t=e.prefixCls,n=e.container,i=e.maxCount,r=e.rtl,a=e.top;o(t),c(n),f(i),y(r),S(a)};return v.useEffect(L,[]),v.useImperativeHandle(t,(function(){var e=Zt({},E);return Object.keys(e).forEach((function(t){e[t]=function(){return L(),E[t].apply(E,arguments)}})),{instance:e,sync:L}})),v.createElement(Xa,{prefixCls:I,iconPrefixCls:D},T)}));function Up(){if(!Hp){var e=document.createDocumentFragment(),t={fragment:e};return Hp=t,void zp((function(){up(v.createElement(Wp,{ref:function(e){var n=e||{},i=n.instance,r=n.sync;Promise.resolve().then((function(){!t.instance&&i&&(t.instance=i,t.sync=r,Up())}))}}),e)}))}Hp&&!Hp.instance||(jp.forEach((function(e){var t=e.type;if(!e.skipped)switch(t){case"open":zp((function(){var t=Hp.instance.open(Zt(Zt({},Vp),e.config));null===t||void 0===t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":zp((function(){null===Hp||void 0===Hp||Hp.instance.destroy(e.key)}));break;default:zp((function(){var n,i=(n=Hp.instance)[t].apply(n,(0,_.Z)(e.args));null===i||void 0===i||i.then(e.resolve),e.setCloseFn(i)}))}})),jp=[])}function Gp(e,t){var n=Mp((function(n){var i,r={type:e,args:t,resolve:n,setCloseFn:function(e){i=e}};return jp.push(r),function(){i?zp((function(){i()})):r.skipped=!0}}));return Up(),n}var Kp={open:function(e){var t=Mp((function(t){var n,i={type:"open",config:e,resolve:t,setCloseFn:function(e){n=e}};return jp.push(i),function(){n?zp((function(){n()})):i.skipped=!0}}));return Up(),t},destroy:function(e){jp.push({type:"destroy",key:e}),Up()},config:function(e){Vp=Zt(Zt({},Vp),e),zp((function(){var e;null===(e=null===Hp||void 0===Hp?void 0:Hp.sync)||void 0===e||e.call(Hp)}))},useMessage:function(e){return Bp(e)},_InternalPanelDoNotUseOrYouWillBeFired:function(e){var t=e.prefixCls,n=e.className,i=e.type,r=e.icon,o=e.content,a=Ip(e,["prefixCls","className","type","icon","content"]),s=v.useContext(wa).getPrefixCls,l=t||s("message"),c=Np(l),u=(0,k.Z)(c,2)[1];return v.createElement(bp,Zt({},a,{prefixCls:l,className:Ja()(n,u,l+"-notice-pure-panel"),eventKey:"pure",duration:null,content:v.createElement(Lp,{prefixCls:l,type:i,icon:r},o)}))}},Yp=Kp;["success","info","warning","error","loading"].forEach((function(e){Yp[e]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Gp(e,n)}}));var qp=Yp,$p=function(e){var t=e.componentCls;return(0,N.Z)({},t,{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}})},Xp=function(e){var t=e.componentCls;return(0,N.Z)({},t,(0,N.Z)({display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"flex-baseline"}}},t+"-space-item",{"&:empty":{display:"none"}}))},Qp=hs("Space",(function(e){return[Xp(e),$p(e)]})),Jp=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},eg=v.createContext(null),tg=function(e,t){var n=v.useContext(eg),i=v.useMemo((function(){var i;if(!n)return"";var r=n.compactDirection,o=n.isFirstItem,a=n.isLastItem,s="vertical"===r?"-vertical-":"-";return Ja()((i={},(0,N.Z)(i,e+"-compact"+s+"item",!0),(0,N.Z)(i,e+"-compact"+s+"first-item",o),(0,N.Z)(i,e+"-compact"+s+"last-item",a),(0,N.Z)(i,e+"-compact"+s+"item-rtl","rtl"===t),i))}),[e,t,n]);return{compactSize:null===n||void 0===n?void 0:n.compactSize,compactDirection:null===n||void 0===n?void 0:n.compactDirection,compactItemClassnames:i}},ng=function(e){var t=e.children;return v.createElement(eg.Provider,{value:null},t)},ig=function(e){var t=e.children,n=Jp(e,["children"]);return v.createElement(eg.Provider,{value:n},t)},rg=function(e){var t,n=v.useContext(wa),i=n.getPrefixCls,r=n.direction,o=e.size,a=void 0===o?"middle":o,s=e.direction,l=e.block,c=e.prefixCls,u=e.className,d=e.children,h=Jp(e,["size","direction","block","prefixCls","className","children"]),f=i("space-compact",c),p=Qp(f),g=(0,k.Z)(p,2),m=g[0],y=g[1],_=Ja()(f,y,(t={},(0,N.Z)(t,f+"-rtl","rtl"===r),(0,N.Z)(t,f+"-block",l),(0,N.Z)(t,f+"-vertical","vertical"===s),t),u),b=v.useContext(eg),C=Zi(d),S=v.useMemo((function(){return C.map((function(e,t){var n=e&&e.key||f+"-item-"+t;return v.createElement(ig,{key:n,compactSize:a,compactDirection:s,isFirstItem:0===t&&(!b||(null===b||void 0===b?void 0:b.isFirstItem)),isLastItem:t===C.length-1&&(!b||(null===b||void 0===b?void 0:b.isLastItem))},e)}))}),[a,C,b]);return 0===C.length?null:m(v.createElement("div",Zt({className:_},h),S))},og=0,ag={};function sg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=og++,i=t;function r(){(i-=1)<=0?(e(),delete ag[n]):ag[n]=oc(r)}return ag[n]=oc(r),n}sg.cancel=function(e){void 0!==e&&(oc.cancel(ag[e]),delete ag[e])},sg.ids=ag;var lg,cg=function(e){var t,n=new Ti("waveEffect",{"100%":{boxShadow:"0 0 0 6px var(--antd-wave-shadow-color)"}}),i=new Ti("fadeEffect",{"100%":{opacity:0}});return[(t={},(0,N.Z)(t,e.clickAnimatingWithoutExtraNodeTrue+",\n "+e.clickAnimatingTrue,{"--antd-wave-shadow-color":e.colorPrimary,"--scroll-bar":0,position:"relative"}),(0,N.Z)(t,e.clickAnimatingWithoutExtraNodeTrueAfter+",\n & "+e.clickAnimatingNode,{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:0,bottom:0,display:"block",borderRadius:"inherit",boxShadow:"0 0 0 0 var(--antd-wave-shadow-color)",opacity:.2,animation:{_skip_check_:!0,value:i.getName(e.hashId)+" 2s "+e.motionEaseOutCirc+", "+n.getName(e.hashId)+" 0.4s "+e.motionEaseOutCirc},animationFillMode:"forwards",content:'""',pointerEvents:"none"}),t),{},n,i]};function ug(e){return!e||null===e.offsetParent||e.hidden}function dg(e){return e instanceof Document?e.body:Array.from(e.childNodes).find((function(e){return(null===e||void 0===e?void 0:e.nodeType)===Node.ELEMENT_NODE}))}function hg(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function fg(e){var t=getComputedStyle(e),n=t.getPropertyValue("border-top-color"),i=t.getPropertyValue("border-color"),r=t.getPropertyValue("background-color");return hg(n)?n:hg(i)?i:r}var pg=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){var e;return(0,b.Z)(this,n),(e=t.apply(this,arguments)).containerRef=v.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var i,r,o=e.props,a=o.insertExtraNode;if(!o.disabled&&t&&!ug(t)&&!t.className.includes("-leave")){e.extraNode=document.createElement("div");var s=(0,Mi.Z)(e).extraNode,l=e.context.getPrefixCls;s.className=l("")+"-click-animating-node";var c=e.getAttributeName();if(t.setAttribute(c,"true"),hg(n)){s.style.borderColor=n;var u=(null===(i=t.getRootNode)||void 0===i?void 0:i.call(t))||t.ownerDocument,d=null!==(r=dg(u))&&void 0!==r?r:u;lg=Jt("\n ["+l("")+"-click-animating-without-extra-node='true']::after, ."+l("")+"-click-animating-node {\n --antd-wave-shadow-color: "+n+";\n }","antd-wave",{csp:e.csp,attachTo:d})}a&&t.appendChild(s),["transition","animation"].forEach((function(n){t.addEventListener(n+"start",e.onTransitionStart),t.addEventListener(n+"end",e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!t.className.includes("disabled")){var n=function(n){if("INPUT"!==n.target.tagName&&!ug(n.target)){e.resetEffect(t);var i=fg(t);e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,i)}),0),sg.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=sg((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,i=e.props.children;if(e.csp=n,!v.isValidElement(i))return i;var r=e.containerRef;return Dl(i)&&(r=Nl(i.ref,e.containerRef)),os(i,{ref:r})},e}return(0,C.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1;var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls;return this.props.insertExtraNode?e("")+"-click-animating":e("")+"-click-animating-without-extra-node"}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,i=this.getAttributeName();e.setAttribute(i,"false"),lg&&(lg.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener(n+"start",t.onTransitionStart),e.removeEventListener(n+"end",t.onTransitionEnd)}))}}},{key:"render",value:function(){return v.createElement(ka,null,this.renderWave)}}]),n}(v.Component);pg.contextType=wa;var gg=(0,v.forwardRef)((function(e,t){return function(){var e=Ca(),t=(0,k.Z)(e,3),n=t[0],i=t[1],r=t[2],o=(0,(0,v.useContext)(wa).getPrefixCls)(),a="["+o+"-click-animating='true']",s="["+o+"-click-animating-without-extra-node='true']",l="."+o+"-click-animating-node",c=Zt(Zt({},i),{hashId:r,clickAnimatingNode:l,clickAnimatingTrue:a,clickAnimatingWithoutExtraNodeTrue:s,clickAnimatingWithoutExtraNodeTrueAfter:s+"::after"});Ci({theme:n,token:i,hashId:r,path:["wave"]},(function(){return[cg(c)]}))}(),v.createElement(pg,Zt({ref:t},e))})),vg=gg,mg=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},yg=v.createContext(void 0),_g=function(e){var t,n=v.useContext(wa),i=n.getPrefixCls,r=n.direction,o=e.prefixCls,a=e.size,s=e.className,l=mg(e,["prefixCls","size","className"]),c=i("btn-group",o),u=Ca(),d=(0,k.Z)(u,3)[2],h="";switch(a){case"large":h="lg";break;case"small":h="sm"}var f=Ja()(c,(t={},(0,N.Z)(t,c+"-"+h,h),(0,N.Z)(t,c+"-rtl","rtl"===r),t),s,d);return v.createElement(yg.Provider,{value:a},v.createElement("div",Zt({},l,{className:f})))},bg=function(){return{width:0,opacity:0,transform:"scale(0)"}},Cg=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}},Sg=function(e){var t=e.prefixCls,n=!!e.loading;return e.existIcon?v.createElement("span",{className:t+"-loading-icon"},v.createElement(Fu,null)):v.createElement(xc,{visible:n,motionName:t+"-loading-icon-motion",removeOnLeave:!0,onAppearStart:bg,onAppearActive:Cg,onEnterStart:bg,onEnterActive:Cg,onLeaveStart:Cg,onLeaveActive:bg},(function(e,n){var i=e.className,r=e.style;return v.createElement("span",{className:t+"-loading-icon",style:r,ref:n},v.createElement(Fu,{className:i}))}))},wg=function(e,t){return(0,N.Z)({},"> span, > "+e,{"&:not(:last-child)":(0,N.Z)({},"&, & > "+e,{"&:not(:disabled)":{borderInlineEndColor:t}}),"&:not(:first-child)":(0,N.Z)({},"&, & > "+e,{"&:not(:disabled)":{borderInlineStartColor:t}})})},kg=function(e){var t,n,i=e.componentCls,r=e.fontSize,o=e.lineWidth,a=e.colorPrimaryHover,s=e.colorErrorHover;return(0,N.Z)({},i+"-group",[(n={position:"relative",display:"inline-flex"},(0,N.Z)(n,"> span, > "+i,{"&:not(:last-child)":(0,N.Z)({},"&, & > "+i,{borderStartEndRadius:0,borderEndEndRadius:0}),"&:not(:first-child)":(0,N.Z)({marginInlineStart:-o},"&, & > "+i,{borderStartStartRadius:0,borderEndStartRadius:0})}),(0,N.Z)(n,i,(t={position:"relative",zIndex:1},(0,N.Z)(t,"&:hover,\n &:focus,\n &:active",{zIndex:2}),(0,N.Z)(t,"&[disabled]",{zIndex:0}),t)),(0,N.Z)(n,i+"-icon-only",{fontSize:r}),n),wg(i+"-primary",a),wg(i+"-danger",s)])};function xg(e,t,n){var i=t?"> *":"";return{"&-item:not(&-last-item)":{marginInlineEnd:-e.lineWidth},"&-item":Zt(Zt((0,N.Z)({},"&:hover "+i+", &:focus "+i+", &:active "+i,{zIndex:2}),n?(0,N.Z)({},"&"+n,{zIndex:2}):{}),(0,N.Z)({},"&[disabled] "+i,{zIndex:0}))}}function Eg(e,t){var n,i=t?"> "+t:"";return n={},(0,N.Z)(n,"&-item:not(&-first-item):not(&-last-item) "+i,{borderRadius:0}),(0,N.Z)(n,"&-item&-first-item",(0,N.Z)({},"& "+i+", &"+e+"-sm "+i+", &"+e+"-lg "+i,{borderStartEndRadius:0,borderEndEndRadius:0})),(0,N.Z)(n,"&-item&-last-item",(0,N.Z)({},"& "+i+", &"+e+"-sm "+i+", &"+e+"-lg "+i,{borderStartStartRadius:0,borderEndStartRadius:0})),n}function Tg(e,t,n,i){return{"&-compact":Zt(Zt({},xg(e,n,i)),Eg(t,n))}}function Ng(e){return{"&-item:not(&-last-item)":{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ig(e){return{"&-item:not(&-first-item):not(&-last-item)":{borderRadius:0},"&-item&-first-item":(0,N.Z)({},"&, &"+e+"-sm, &"+e+"-lg",{borderEndEndRadius:0,borderEndStartRadius:0}),"&-item&-last-item":(0,N.Z)({},"&, &"+e+"-sm, &"+e+"-lg",{borderStartStartRadius:0,borderStartEndRadius:0})}}var Dg=function(e){var t,n,i=e.componentCls,r=e.iconCls;return(0,N.Z)({},i,Zt(Zt(Zt((t={outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:e.lineWidth+"px "+e.lineType+" transparent",cursor:"pointer",transition:"all "+e.motionDurationMid+" "+e.motionEaseInOut,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"}},(0,N.Z)(t,"> "+r+" + span, > span + "+r,{marginInlineStart:e.marginXS}),(0,N.Z)(t,"&"+i+"-block",{width:"100%"}),(0,N.Z)(t,"&:not(:disabled)",Zt({},ja(e))),t),Tg(e,i)),function(e,t){return{"&-compact-vertical":Zt(Zt({},Ng(e)),Ig(t))}}(e,i)),(n={"&-icon-only&-compact-item":{flex:"none"}},(0,N.Z)(n,"&-compact-item"+i+"-primary",{"&:not([disabled]) + &:not([disabled])":{position:"relative","&:after":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:"calc(100% + "+2*e.lineWidth+"px)",backgroundColor:e.colorPrimaryBorder,content:'""'}}}),(0,N.Z)(n,"&-compact-vertical-item",(0,N.Z)({},"&"+i+"-primary",{"&:not([disabled]) + &:not([disabled])":{position:"relative","&:after":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:"calc(100% + "+2*e.lineWidth+"px)",height:e.lineWidth,backgroundColor:e.colorPrimaryBorder,content:'""'}}})),n)))},Lg=function(e,t){return{"&:not(:disabled)":{"&:hover":e,"&:active":t}}},Og=function(e){return{minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}},Rg=function(e){return{borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2,width:"auto"}},Ag=function(e,t,n,i,r,o,a){return(0,N.Z)({},"&"+e+"-background-ghost",Zt(Zt({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Lg(Zt({backgroundColor:"transparent"},o),Zt({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:r||void 0}}))},Mg=function(e){return{"&:disabled":{cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}}},Pg=function(e){return Zt({},Mg(e))},Zg=function(e){return{"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}},Fg=function(e){return Zt(Zt(Zt(Zt(Zt({},Pg(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:"0 "+e.controlOutlineWidth+"px 0 "+e.controlTmpOutline}),Lg({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Ag(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),(0,N.Z)({},"&"+e.componentCls+"-dangerous",Zt(Zt(Zt({color:e.colorError,borderColor:e.colorError},Lg({color:e.colorErrorHover,borderColor:e.colorErrorBorder},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ag(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Mg(e))))},Bg=function(e){var t,n=e.componentCls;return t={},(0,N.Z)(t,n+"-default",Fg(e)),(0,N.Z)(t,n+"-primary",function(e){return Zt(Zt(Zt(Zt(Zt({},Pg(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:"0 "+e.controlOutlineWidth+"px 0 "+e.controlOutline}),Lg({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Ag(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),(0,N.Z)({},"&"+e.componentCls+"-dangerous",Zt(Zt(Zt({backgroundColor:e.colorError,boxShadow:"0 "+e.controlOutlineWidth+"px 0 "+e.colorErrorOutline},Lg({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Ag(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Mg(e))))}(e)),(0,N.Z)(t,n+"-dashed",function(e){return Zt(Zt({},Fg(e)),{borderStyle:"dashed"})}(e)),(0,N.Z)(t,n+"-link",function(e){return Zt(Zt(Zt({color:e.colorLink},Lg({color:e.colorLinkHover},{color:e.colorLinkActive})),Zg(e)),(0,N.Z)({},"&"+e.componentCls+"-dangerous",Zt(Zt({color:e.colorError},Lg({color:e.colorErrorHover},{color:e.colorErrorActive})),Zg(e))))}(e)),(0,N.Z)(t,n+"-text",function(e){return Zt(Zt(Zt({},Lg({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Zg(e)),(0,N.Z)({},"&"+e.componentCls+"-dangerous",Zt(Zt({color:e.colorError},Zg(e)),Lg({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))))}(e)),t},Hg=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.componentCls,r=e.iconCls,o=Math.max(0,(e.controlHeight-e.fontSize*e.lineHeight)/2-e.lineWidth),a=e.buttonPaddingHorizontal-e.lineWidth,s=i+"-icon-only";return[(0,N.Z)({},""+i+n,(t={fontSize:e.fontSize,height:e.controlHeight,padding:o+"px "+a+"px",borderRadius:e.borderRadius},(0,N.Z)(t,"&"+s,{width:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,"> span":{transform:"scale(1.143)"}}),(0,N.Z)(t,"&"+i+"-loading",{opacity:e.opacityLoading,cursor:"default"}),(0,N.Z)(t,i+"-loading-icon",{transition:"width "+e.motionDurationSlow+" "+e.motionEaseInOut+", opacity "+e.motionDurationSlow+" "+e.motionEaseInOut}),(0,N.Z)(t,"&:not("+s+") "+i+"-loading-icon > "+r,{marginInlineEnd:e.marginXS}),t)),(0,N.Z)({},""+i+i+"-circle"+n,Og(e)),(0,N.Z)({},""+i+i+"-round"+n,Rg(e))]},zg=function(e){return Hg(e)},jg=function(e){var t=cs(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Hg(t,e.componentCls+"-sm")},Vg=function(e){var t=cs(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Hg(t,e.componentCls+"-lg")},Wg=hs("Button",(function(e){var t=cs(e,{colorOutlineDefault:e.controlTmpOutline,buttonPaddingHorizontal:e.paddingContentHorizontal});return[Dg(t),jg(t),zg(t),Vg(t),Bg(t),kg(t)]})),Ug=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},Gg=/^[\u4e00-\u9fa5]{2}$/,Kg=Gg.test.bind(Gg);function Yg(e){return"text"===e||"link"===e}function qg(e,t){var n=!1,i=[];return v.Children.forEach(e,(function(e){var t=(0,Bt.Z)(e),r="string"===t||"number"===t;if(n&&r){var o=i.length-1,a=i[o];i[o]=""+a+e}else i.push(e);n=r})),v.Children.map(i,(function(e){return function(e,t){if(null!==e&&void 0!==e){var n=t?" ":"";return"string"!==typeof e&&"number"!==typeof e&&function(e){return"string"===typeof e}(e.type)&&Kg(e.props.children)?os(e,{children:e.props.children.split("").join(n)}):"string"===typeof e?Kg(e)?v.createElement("span",null,e.split("").join(n)):v.createElement("span",null,e):rs(e)?v.createElement("span",null,e):e}}(e,t)}))}as("default","primary","ghost","dashed","link","text"),as("default","circle","round"),as("submit","button","reset");function $g(e){return"danger"===e?{danger:!0}:{type:e}}var Xg=function(e,t){var n,i=e.loading,r=void 0!==i&&i,o=e.prefixCls,a=e.type,s=void 0===a?"default":a,l=e.danger,c=e.shape,u=void 0===c?"default":c,d=e.size,h=e.disabled,f=e.className,p=e.children,g=e.icon,m=e.ghost,y=void 0!==m&&m,_=e.block,b=void 0!==_&&_,C=e.htmlType,S=void 0===C?"button":C,w=Ug(e,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),x=v.useContext(wa),E=x.getPrefixCls,T=x.autoInsertSpaceInButton,I=x.direction,D=E("btn",o),L=Wg(D),O=(0,k.Z)(L,2),R=O[0],A=O[1],M=v.useContext(Pa),P=v.useContext(Ia),Z=null!==h&&void 0!==h?h:P,F=v.useContext(yg),B=v.useState(!!r),H=(0,k.Z)(B,2),z=H[0],j=H[1],V=v.useState(!1),W=(0,k.Z)(V,2),U=W[0],G=W[1],K=t||v.createRef(),Y=function(){return 1===v.Children.count(p)&&!g&&!Yg(s)},q="boolean"===typeof r?r:(null===r||void 0===r?void 0:r.delay)||!0;v.useEffect((function(){var e=null;return"number"===typeof q?e=window.setTimeout((function(){e=null,j(q)}),q):j(q),function(){e&&(window.clearTimeout(e),e=null)}}),[q]),v.useEffect((function(){if(K&&K.current&&!1!==T){var e=K.current.textContent;Y()&&Kg(e)?U||G(!0):U&&G(!1)}}),[K]);var $=function(t){var n=e.onClick;z||Z?t.preventDefault():null===n||void 0===n||n(t)},X=!1!==T,Q=tg(D,I),J=Q.compactSize,ee=Q.compactItemClassnames,te=J||F||d||M,ne=te&&{large:"lg",small:"sm",middle:void 0}[te]||"",ie=z?"loading":g,re=ns(w,["navigate"]),oe=Ja()(D,A,(n={},(0,N.Z)(n,D+"-"+u,"default"!==u&&u),(0,N.Z)(n,D+"-"+s,s),(0,N.Z)(n,D+"-"+ne,ne),(0,N.Z)(n,D+"-icon-only",!p&&0!==p&&!!ie),(0,N.Z)(n,D+"-background-ghost",y&&!Yg(s)),(0,N.Z)(n,D+"-loading",z),(0,N.Z)(n,D+"-two-chinese-chars",U&&X&&!z),(0,N.Z)(n,D+"-block",b),(0,N.Z)(n,D+"-dangerous",!!l),(0,N.Z)(n,D+"-rtl","rtl"===I),(0,N.Z)(n,D+"-disabled",void 0!==re.href&&Z),n),ee,f),ae=g&&!z?g:v.createElement(Sg,{existIcon:!!g,prefixCls:D,loading:!!z}),se=p||0===p?qg(p,Y()&&X):null;if(void 0!==re.href)return R(v.createElement("a",Zt({},re,{className:oe,onClick:$,ref:K}),ae,se));var le=v.createElement("button",Zt({},w,{type:S,className:oe,onClick:$,disabled:Z,ref:K}),ae,se);return Yg(s)||(le=v.createElement(vg,{disabled:!!z},le)),R(le)},Qg=v.forwardRef(Xg);Qg.Group=_g,Qg.__ANT_BUTTON=!0;var Jg=Qg;function ev(e){return!(!e||!e.then)}var tv,nv=function(e){var t=v.useRef(!1),n=v.useRef(null),i=Ql(!1),r=(0,k.Z)(i,2),o=r[0],a=r[1],s=e.close,l=function(){null===s||void 0===s||s.apply(void 0,arguments)};v.useEffect((function(){var t=null;return e.autoFocus&&(t=setTimeout((function(){var e;null===(e=n.current)||void 0===e||e.focus()}))),function(){t&&clearTimeout(t)}}),[]);var c=e.type,u=e.children,d=e.prefixCls,h=e.buttonProps;return v.createElement(Jg,Zt({},$g(c),{onClick:function(n){var i=e.actionFn;if(!t.current)if(t.current=!0,i){var r;if(e.emitEvent){if(r=i(n),e.quitOnNullishReturnValue&&!ev(r))return t.current=!1,void l(n)}else if(i.length)r=i(s),t.current=!1;else if(!(r=i()))return void l();!function(e){ev(e)&&(a(!0),e.then((function(){a(!1,!0),l.apply(void 0,arguments),t.current=!1}),(function(e){console.error(e),a(!1,!0),t.current=!1})))}(r)}else l()},loading:o,prefixCls:d},h,{ref:n}),u)},iv=v.createContext(null),rv=[];function ov(e){if("undefined"===typeof document)return 0;if(e||void 0===tv){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),i=n.style;i.position="absolute",i.top="0",i.left="0",i.pointerEvents="none",i.visibility="hidden",i.width="200px",i.height="150px",i.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var r=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;r===o&&(o=n.clientWidth),document.body.removeChild(n),tv=r-o}return tv}function av(e){var t=e.match(/^(.*)px$/),n=Number(null===t||void 0===t?void 0:t[1]);return Number.isNaN(n)?ov():n}function sv(e){if("undefined"===typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,i=t.height;return{width:av(n),height:av(i)}}var lv="rc-util-locker-".concat(Date.now()),cv=0;function uv(e){var t=!!e,n=v.useState((function(){return cv+=1,"".concat(lv,"_").concat(cv)})),i=(0,k.Z)(n,1)[0];ju((function(){if(t){var e=ov(),n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Jt("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else Xt(i);return function(){Xt(i)}}),[t,i])}var dv=!1;var hv=function(e){return!1!==e&&(Ht()&&e?"string"===typeof e?document.querySelector(e):"function"===typeof e?e():e:null)},fv=v.forwardRef((function(e,t){var n=e.open,i=e.autoLock,r=e.getContainer,o=(e.debug,e.autoDestroy),a=void 0===o||o,s=e.children,l=v.useState(n),c=(0,k.Z)(l,2),u=c[0],d=c[1],h=u||n;v.useEffect((function(){(a||n)&&d(n)}),[n,a]);var f=v.useState((function(){return hv(r)})),p=(0,k.Z)(f,2),g=p[0],m=p[1];v.useEffect((function(){var e=hv(r);m(null!==e&&void 0!==e?e:null)}));var y=function(e,t){var n=v.useState((function(){return Ht()?document.createElement("div"):null})),i=(0,k.Z)(n,1)[0],r=v.useContext(iv),o=v.useState(rv),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=r||function(e){l((function(t){return[e].concat((0,_.Z)(t))}))};function u(){i.parentElement||document.body.appendChild(i)}function d(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i)}return ju((function(){return e?r?r(u):u():d(),d}),[e]),ju((function(){s.length&&(s.forEach((function(e){return e()})),l(rv))}),[s]),[i,c]}(h&&!g),b=(0,k.Z)(y,2),C=b[0],S=b[1],w=null!==g&&void 0!==g?g:C;uv(i&&n&&Ht()&&(w===C||w===document.body));var x=null;s&&Dl(s)&&t&&(x=s.ref);var E=Il(x,t);if(!h||!Ht()||void 0===g)return null;var T,N=!1===w||("boolean"===typeof T&&(dv=T),dv),I=s;return t&&(I=v.cloneElement(s,{ref:E})),v.createElement(iv.Provider,{value:S},N?I:(0,kl.createPortal)(I,w))}));var pv=fv,gv={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=gv.F1&&t<=gv.F12)return!1;switch(t){case gv.ALT:case gv.CAPS_LOCK:case gv.CONTEXT_MENU:case gv.CTRL:case gv.DOWN:case gv.END:case gv.ESC:case gv.HOME:case gv.INSERT:case gv.LEFT:case gv.MAC_FF_META:case gv.META:case gv.NUMLOCK:case gv.NUM_CENTER:case gv.PAGE_DOWN:case gv.PAGE_UP:case gv.PAUSE:case gv.PRINT_SCREEN:case gv.RIGHT:case gv.SHIFT:case gv.UP:case gv.WIN_KEY:case gv.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=gv.ZERO&&e<=gv.NINE)return!0;if(e>=gv.NUM_ZERO&&e<=gv.NUM_MULTIPLY)return!0;if(e>=gv.A&&e<=gv.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case gv.SPACE:case gv.QUESTION_MARK:case gv.NUM_PLUS:case gv.NUM_MINUS:case gv.NUM_PERIOD:case gv.NUM_DIVISION:case gv.SEMICOLON:case gv.DASH:case gv.EQUALS:case gv.COMMA:case gv.PERIOD:case gv.SLASH:case gv.APOSTROPHE:case gv.SINGLE_QUOTE:case gv.OPEN_SQUARE_BRACKET:case gv.BACKSLASH:case gv.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},vv=gv;var mv=0;function yv(e){var t=v.useState("ssr-id"),n=(0,k.Z)(t,2),i=n[0],r=n[1],o=(0,Ft.Z)({},m).useId,a=null===o||void 0===o?void 0:o();return v.useEffect((function(){if(!o){var e=mv;mv+=1,r("rc_unique_".concat(e))}}),[]),e||(a||i)}var _v="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),bv="aria-",Cv="data-";function Sv(e,t){return 0===e.indexOf(t)}function wv(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,Ft.Z)({},n);var i={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Sv(n,bv))||t.data&&Sv(n,Cv)||t.attr&&_v.includes(n))&&(i[n]=e[n])})),i}function kv(e){var t=e.prefixCls,n=e.style,i=e.visible,r=e.maskProps,o=e.motionName;return v.createElement(xc,{key:"mask",visible:i,motionName:o,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,i){var o=e.className,a=e.style;return v.createElement("div",Zt({ref:i,style:(0,Ft.Z)((0,Ft.Z)({},a),n),className:Ja()("".concat(t,"-mask"),o)},r))}))}function xv(e,t,n){var i=t;return!i&&n&&(i="".concat(e,"-").concat(n)),i}function Ev(e,t){var n=e["page".concat(t?"Y":"X","Offset")],i="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var r=e.document;"number"!==typeof(n=r.documentElement[i])&&(n=r.body[i])}return n}var Tv=v.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),Nv={width:0,height:0,overflow:"hidden",outline:"none"},Iv=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,r=e.style,o=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,h=e.bodyStyle,f=e.bodyProps,p=e.modalRender,g=e.onMouseDown,m=e.onMouseUp,y=e.holderRef,_=e.visible,b=e.forceRender,C=e.width,S=e.height,w=(0,v.useRef)(),k=(0,v.useRef)();v.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=w.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===k.current?w.current.focus():e||t!==w.current||k.current.focus()}}}));var x,E,T,N={};void 0!==C&&(N.width=C),void 0!==S&&(N.height=S),s&&(x=v.createElement("div",{className:"".concat(n,"-footer")},s)),o&&(E=v.createElement("div",{className:"".concat(n,"-header")},v.createElement("div",{className:"".concat(n,"-title"),id:a},o))),l&&(T=v.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:"".concat(n,"-close")},c||v.createElement("span",{className:"".concat(n,"-close-x")})));var I=v.createElement("div",{className:"".concat(n,"-content")},T,E,v.createElement("div",Zt({className:"".concat(n,"-body"),style:h},f),d),x);return v.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?a:null,"aria-modal":"true",ref:y,style:(0,Ft.Z)((0,Ft.Z)({},r),N),className:Ja()(n,i),onMouseDown:g,onMouseUp:m},v.createElement("div",{tabIndex:0,ref:w,style:Nv,"aria-hidden":"true"}),v.createElement(Tv,{shouldUpdate:_||b},p?p(I):I),v.createElement("div",{tabIndex:0,ref:k,style:Nv,"aria-hidden":"true"}))}));var Dv=Iv,Lv=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.title,r=e.style,o=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,h=e.mousePosition,f=(0,v.useRef)(),p=v.useState(),g=(0,k.Z)(p,2),m=g[0],y=g[1],_={};function b(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},i=e.ownerDocument,r=i.defaultView||i.parentWindow;return n.left+=Ev(r),n.top+=Ev(r,!0),n}(f.current);y(h?"".concat(h.x-e.left,"px ").concat(h.y-e.top,"px"):"")}return m&&(_.transformOrigin=m),v.createElement(xc,{visible:a,onVisibleChanged:d,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:c,removeOnLeave:l,ref:f},(function(a,s){var l=a.className,c=a.style;return v.createElement(Dv,Zt({},e,{ref:t,title:i,ariaId:u,prefixCls:n,holderRef:s,style:(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},c),r),_),className:Ja()(o,l)}))}))}));Lv.displayName="Content";var Ov=Lv;function Rv(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,i=e.zIndex,r=e.visible,o=void 0!==r&&r,a=e.keyboard,s=void 0===a||a,l=e.focusTriggerAfterClose,c=void 0===l||l,u=e.wrapStyle,d=e.wrapClassName,h=e.wrapProps,f=e.onClose,p=e.afterClose,g=e.transitionName,m=e.animation,y=e.closable,_=void 0===y||y,b=e.mask,C=void 0===b||b,S=e.maskTransitionName,w=e.maskAnimation,x=e.maskClosable,E=void 0===x||x,T=e.maskStyle,N=e.maskProps,I=e.rootClassName,D=(0,v.useRef)(),L=(0,v.useRef)(),O=(0,v.useRef)(),R=v.useState(o),A=(0,k.Z)(R,2),M=A[0],P=A[1],Z=yv();function F(e){null===f||void 0===f||f(e)}var B=(0,v.useRef)(!1),H=(0,v.useRef)(),z=null;return E&&(z=function(e){B.current?B.current=!1:L.current===e.target&&F(e)}),(0,v.useEffect)((function(){o&&(P(!0),zt(L.current,document.activeElement)||(D.current=document.activeElement))}),[o]),(0,v.useEffect)((function(){return function(){clearTimeout(H.current)}}),[]),v.createElement("div",Zt({className:Ja()("".concat(n,"-root"),I)},wv(e,{data:!0})),v.createElement(kv,{prefixCls:n,visible:C&&o,motionName:xv(n,S,w),style:(0,Ft.Z)({zIndex:i},T),maskProps:N}),v.createElement("div",Zt({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===vv.ESC)return e.stopPropagation(),void F(e);o&&e.keyCode===vv.TAB&&O.current.changeActive(!e.shiftKey)},className:Ja()("".concat(n,"-wrap"),d),ref:L,onClick:z,style:(0,Ft.Z)((0,Ft.Z)({zIndex:i},u),{},{display:M?null:"none"})},h),v.createElement(Ov,Zt({},e,{onMouseDown:function(){clearTimeout(H.current),B.current=!0},onMouseUp:function(){H.current=setTimeout((function(){B.current=!1}))},ref:O,closable:_,ariaId:Z,prefixCls:n,visible:o&&M,onClose:F,onVisibleChanged:function(e){if(e)!function(){var e;zt(L.current,document.activeElement)||null===(e=O.current)||void 0===e||e.focus()}();else{if(P(!1),C&&D.current&&c){try{D.current.focus({preventScroll:!0})}catch(Fc){}D.current=null}M&&(null===p||void 0===p||p())}},motionName:xv(n,g,m)}))))}var Av=function(e){var t=e.visible,n=e.getContainer,i=e.forceRender,r=e.destroyOnClose,o=void 0!==r&&r,a=e.afterClose,s=v.useState(t),l=(0,k.Z)(s,2),c=l[0],u=l[1];return v.useEffect((function(){t&&u(!0)}),[t]),i||!o||c?v.createElement(pv,{open:t||i||c,autoDestroy:!1,getContainer:n,autoLock:t||c},v.createElement(Rv,Zt({},e,{destroyOnClose:o,afterClose:function(){null===a||void 0===a||a(),u(!1)}}))):null};Av.displayName="Dialog";var Mv=Av,Pv=new Ti("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Zv=new Ti("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Fv=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.antCls,r=i+"-fade",o=n?"&":"";return[Xc(r,Pv,Zv,e.motionDurationMid,n),(t={},(0,N.Z)(t,"\n "+o+r+"-enter,\n "+o+r+"-appear\n ",{opacity:0,animationTimingFunction:"linear"}),(0,N.Z)(t,""+o+r+"-leave",{animationTimingFunction:"linear"}),t)]};function Bv(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}var Hv=function(e){var t,n=e.componentCls;return[(0,N.Z)({},n+"-root",(t={},(0,N.Z)(t,""+n+e.antCls+"-zoom-enter, "+n+e.antCls+"-zoom-appear",{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"}),(0,N.Z)(t,n+"-mask",Zt(Zt({},Bv("fixed")),(0,N.Z)({zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask},n+"-hidden",{display:"none"}))),(0,N.Z)(t,n+"-wrap",Zt(Zt({},Bv("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})),t)),(0,N.Z)({},n+"-root",Fv(e))]},zv=function(e){var t,n,i,r,o=e.componentCls;return[(0,N.Z)({},o+"-root",(n={},(0,N.Z)(n,o+"-wrap",{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}),(0,N.Z)(n,o+"-wrap-rtl",{direction:"rtl"}),(0,N.Z)(n,o+"-centered",(0,N.Z)({textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'}},o,{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"})),(0,N.Z)(n,"@media (max-width: "+e.screenSMMax+")",(t={},(0,N.Z)(t,o,{maxWidth:"calc(100vw - 16px)",margin:e.marginXS+" auto"}),(0,N.Z)(t,o+"-centered",(0,N.Z)({},o,{flex:1})),t)),n)),(0,N.Z)({},o,Zt(Zt({},Fa(e)),(i={pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:"calc(100vw - "+2*e.margin+"px)",margin:"0 auto",paddingBottom:e.paddingLG},(0,N.Z)(i,o+"-title",{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"}),(0,N.Z)(i,o+"-content",{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:e.paddingMD+"px "+e.paddingContentHorizontalLG+"px"}),(0,N.Z)(i,o+"-close",Zt({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:"color "+e.motionDurationMid+", background-color "+e.motionDurationMid,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:e.modalCloseBtnSize+"px",textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},ja(e))),(0,N.Z)(i,o+"-header",{color:e.colorText,background:e.modalHeaderBg,borderRadius:e.borderRadiusLG+"px "+e.borderRadiusLG+"px 0 0",marginBottom:e.marginXS}),(0,N.Z)(i,o+"-body",{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"}),(0,N.Z)(i,o+"-footer",(0,N.Z)({textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM},e.antCls+"-btn + "+e.antCls+"-btn:not("+e.antCls+"-dropdown-trigger)",{marginBottom:0,marginInlineStart:e.marginXS})),(0,N.Z)(i,o+"-open",{overflow:"hidden"}),i))),(0,N.Z)({},o+"-pure-panel",(r={top:"auto",padding:0,display:"flex",flexDirection:"column"},(0,N.Z)(r,o+"-content,\n "+o+"-body,\n "+o+"-confirm-body-wrapper",{display:"flex",flexDirection:"column",flex:"auto"}),(0,N.Z)(r,o+"-confirm-body",{marginBottom:"auto"}),r))]},jv=function(e){var t,n,i,r,o=e.componentCls,a=o+"-confirm";return r={},(0,N.Z)(r,a,(i={"&-rtl":{direction:"rtl"}},(0,N.Z)(i,e.antCls+"-modal-header",{display:"none"}),(0,N.Z)(i,a+"-body-wrapper",Zt({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}})),(0,N.Z)(i,a+"-body",(n={display:"flex",flexWrap:"wrap",alignItems:"center"},(0,N.Z)(n,a+"-title",(0,N.Z)({flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight},"+ "+a+"-content",{marginBlockStart:e.marginXS})),(0,N.Z)(n,a+"-content",{color:e.colorText,fontSize:e.fontSize}),(0,N.Z)(n,"> "+e.iconCls,(t={flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize},(0,N.Z)(t,"+ "+a+"-title",{flex:1}),(0,N.Z)(t,"+ "+a+"-title + "+a+"-content",{marginInlineStart:e.modalConfirmIconSize+e.marginSM,flexBasis:"100%"}),t)),n)),(0,N.Z)(i,a+"-btns",(0,N.Z)({textAlign:"end",marginTop:e.marginSM},e.antCls+"-btn + "+e.antCls+"-btn",{marginBottom:0,marginInlineStart:e.marginXS})),i)),(0,N.Z)(r,a+"-error "+a+"-body > "+e.iconCls,{color:e.colorError}),(0,N.Z)(r,a+"-warning "+a+"-body > "+e.iconCls+",\n "+a+"-confirm "+a+"-body > "+e.iconCls,{color:e.colorWarning}),(0,N.Z)(r,a+"-info "+a+"-body > "+e.iconCls,{color:e.colorInfo}),(0,N.Z)(r,a+"-success "+a+"-body > "+e.iconCls,{color:e.colorSuccess}),(0,N.Z)(r,o+"-zoom-leave "+o+"-btns",{pointerEvents:"none"}),r},Vv=function(e){var t=e.componentCls;return(0,N.Z)({},t+"-root",(0,N.Z)({},t+"-wrap-rtl",(0,N.Z)({direction:"rtl"},t+"-confirm-body",{direction:"rtl"})))},Wv=function(e){var t,n,i,r=e.componentCls,o=e.antCls,a=r+"-confirm";return i={},(0,N.Z)(i,r,(t={},(0,N.Z)(t,r+"-content",{padding:0}),(0,N.Z)(t,r+"-header",{padding:e.modalHeaderPadding,borderBottom:e.modalHeaderBorderWidth+"px "+e.modalHeaderBorderStyle+" "+e.modalHeaderBorderColorSplit,marginBottom:0}),(0,N.Z)(t,r+"-body",{padding:e.modalBodyPadding}),(0,N.Z)(t,r+"-footer",{padding:e.modalFooterPaddingVertical+"px "+e.modalFooterPaddingHorizontal+"px",borderTop:e.modalFooterBorderWidth+"px "+e.modalFooterBorderStyle+" "+e.modalFooterBorderColorSplit,borderRadius:"0 0 "+e.borderRadiusLG+"px "+e.borderRadiusLG+"px",marginTop:0}),t)),(0,N.Z)(i,a,(n={},(0,N.Z)(n,o+"-modal-body",{padding:2*e.padding+"px "+2*e.padding+"px "+e.paddingLG+"px"}),(0,N.Z)(n,a+"-body",(0,N.Z)({},"> "+e.iconCls,(0,N.Z)({marginInlineEnd:e.margin},"+ "+a+"-title + "+a+"-content",{marginInlineStart:e.modalConfirmIconSize+e.margin}))),(0,N.Z)(n,a+"-btns",{marginTop:e.marginLG}),n)),i},Uv=hs("Modal",(function(e){var t=e.padding,n=e.fontSizeHeading5,i=e.lineHeightHeading5,r=cs(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:t+"px "+e.paddingLG+"px",modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:i,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:i*n+2*t,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:.55*e.controlHeightLG});return[zv(r),jv(r),Vv(r),Hv(r),e.wireframe&&Wv(r),du(r,"zoom")]})),Gv=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function Kv(e,t){return v.createElement("span",{className:e+"-close-x"},t||v.createElement(Ap,{className:e+"-close-icon"}))}function Yv(e){var t=e.okText,n=e.okType,i=void 0===n?"primary":n,r=e.cancelText,o=e.confirmLoading,a=e.onOk,s=e.onCancel,l=e.okButtonProps,c=e.cancelButtonProps,u=e.footer;return void 0===u?v.createElement(So,{componentName:"Modal",defaultLocale:_o()},(function(e){return v.createElement(v.Fragment,null,v.createElement(Jg,Zt({onClick:s},c),r||e.cancelText),v.createElement(Jg,Zt({},$g(i),{loading:o,onClick:a},l),t||e.okText))})):u}var qv,$v=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Vu()&&document.documentElement.addEventListener("click",(function(e){qv={x:e.pageX,y:e.pageY},setTimeout((function(){qv=null}),100)}),!0);var Xv=function(e){var t,n,i=v.useContext(wa),r=i.getPopupContainer,o=i.getPrefixCls,a=i.direction,s=function(t){var n=e.onCancel;null===n||void 0===n||n(t)},l=e.prefixCls,c=e.className,u=e.open,d=e.wrapClassName,h=e.centered,f=e.getContainer,p=e.closeIcon,g=e.focusTriggerAfterClose,m=void 0===g||g,y=e.visible,_=e.width,b=void 0===_?520:_,C=$v(e,["prefixCls","className","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","visible","width"]),S=o("modal",l),w=o(),x=Uv(S),E=(0,k.Z)(x,2),T=E[0],I=E[1],D=Ja()(d,(t={},(0,N.Z)(t,S+"-centered",!!h),(0,N.Z)(t,S+"-wrap-rtl","rtl"===a),t));return T(v.createElement(wl,{status:!0,override:!0},v.createElement(Mv,Zt({width:b},C,{getContainer:void 0===f?r:f,prefixCls:S,rootClassName:I,wrapClassName:D,footer:Yv(Zt(Zt({},e),{onOk:function(t){var n=e.onOk;null===n||void 0===n||n(t)},onCancel:s})),visible:null!==u&&void 0!==u?u:y,mousePosition:null!==(n=C.mousePosition)&&void 0!==n?n:qv,onClose:s,closeIcon:Kv(S,p),focusTriggerAfterClose:m,transitionName:Lc(w,"zoom",e.transitionName),maskTransitionName:Lc(w,"fade",e.maskTransitionName),className:Ja()(I,c)}))))};function Qv(e){var t=e.icon,n=e.onCancel,i=e.onOk,r=e.close,o=e.okText,a=e.okButtonProps,s=e.cancelText,l=e.cancelButtonProps,c=e.confirmPrefixCls,u=e.rootPrefixCls,d=e.type,h=e.okCancel,f=e.locale,p=t;if(!t&&null!==t)switch(d){case"info":p=v.createElement(yp,null);break;case"success":p=v.createElement(Nu,null);break;case"error":p=v.createElement(Lu,null);break;default:p=v.createElement(Au,null)}var g=e.okType||"primary",m=null!==h&&void 0!==h?h:"confirm"===d,y=null!==e.autoFocusButton&&(e.autoFocusButton||"ok");return v.createElement(So,{componentName:"Modal"},(function(t){var d=f||t,h=m&&v.createElement(nv,{actionFn:n,close:r,autoFocus:"cancel"===y,buttonProps:l,prefixCls:u+"-btn"},s||(null===d||void 0===d?void 0:d.cancelText));return v.createElement("div",{className:c+"-body-wrapper"},v.createElement("div",{className:c+"-body"},p,void 0===e.title?null:v.createElement("span",{className:c+"-title"},e.title),v.createElement("div",{className:c+"-content"},e.content)),v.createElement("div",{className:c+"-btns"},h,v.createElement(nv,{type:g,actionFn:i,close:r,autoFocus:"ok"===y,buttonProps:a,prefixCls:u+"-btn"},o||(m?null===d||void 0===d?void 0:d.okText:null===d||void 0===d?void 0:d.justOkText))))}))}var Jv=function(e){var t=e.close,n=e.zIndex,i=e.afterClose,r=(e.visible,e.open),o=e.keyboard,a=e.centered,s=e.getContainer,l=e.maskStyle,c=e.direction,u=e.prefixCls,d=e.wrapClassName,h=e.rootPrefixCls,f=e.iconPrefixCls,p=e.bodyStyle,g=e.closable,m=void 0!==g&&g,y=e.closeIcon,_=e.modalRender,b=e.focusTriggerAfterClose;var C=u+"-confirm",S=e.width||416,w=e.style||{},k=void 0===e.mask||e.mask,x=void 0!==e.maskClosable&&e.maskClosable,E=Ja()(C,C+"-"+e.type,(0,N.Z)({},C+"-rtl","rtl"===c),e.className);return v.createElement(Xa,{prefixCls:h,iconPrefixCls:f,direction:c},v.createElement(Xv,{prefixCls:u,className:E,wrapClassName:Ja()((0,N.Z)({},C+"-centered",!!e.centered),d),onCancel:function(){return null===t||void 0===t?void 0:t({triggerCancel:!0})},open:r,title:"",footer:"",transitionName:Lc(h,"zoom",e.transitionName),maskTransitionName:Lc(h,"fade",e.maskTransitionName),mask:k,maskClosable:x,maskStyle:l,style:w,bodyStyle:p,width:S,zIndex:n,afterClose:i,keyboard:o,centered:a,getContainer:s,closable:m,closeIcon:y,modalRender:_,focusTriggerAfterClose:b},v.createElement(Qv,Zt({},e,{confirmPrefixCls:C}))))},em=[],tm=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},nm="";function im(e){var t,n=document.createDocumentFragment(),i=Zt(Zt({},e),{close:a,open:!0});function r(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];var o=i.some((function(e){return e&&e.triggerCancel}));e.onCancel&&o&&e.onCancel.apply(e,[function(){}].concat((0,_.Z)(i.slice(1))));for(var s=0;s<em.length;s++){var l=em[s];if(l===a){em.splice(s,1);break}}pp(n)}function o(e){var i=e.okText,r=e.cancelText,o=e.prefixCls,a=tm(e,["okText","cancelText","prefixCls"]);clearTimeout(t),t=setTimeout((function(){var e=_o(),t=Ya(),s=t.getPrefixCls,l=t.getIconPrefixCls,c=s(void 0,nm),u=o||c+"-modal",d=l();up(v.createElement(Jv,Zt({},a,{prefixCls:u,rootPrefixCls:c,iconPrefixCls:d,okText:i,locale:e,cancelText:r||e.cancelText})),n)}))}function a(){for(var t=this,n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];(i=Zt(Zt({},i),{open:!1,afterClose:function(){"function"===typeof e.afterClose&&e.afterClose(),r.apply(t,a)}})).visible&&delete i.visible,o(i)}return o(i),em.push(a),{destroy:a,update:function(e){o(i="function"===typeof e?e(i):Zt(Zt({},i),e))}}}function rm(e){return Zt(Zt({},e),{type:"warning"})}function om(e){return Zt(Zt({},e),{type:"info"})}function am(e){return Zt(Zt({},e),{type:"success"})}function sm(e){return Zt(Zt({},e),{type:"error"})}function lm(e){return Zt(Zt({},e),{type:"confirm"})}var cm=function(e,t){var n=e.afterClose,i=e.config,r=v.useState(!0),o=(0,k.Z)(r,2),a=o[0],s=o[1],l=v.useState(i),c=(0,k.Z)(l,2),u=c[0],d=c[1],h=v.useContext(wa),f=h.direction,p=h.getPrefixCls,g=p("modal"),m=p(),y=function(){s(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.some((function(e){return e&&e.triggerCancel}));u.onCancel&&i&&u.onCancel.apply(u,[function(){}].concat((0,_.Z)(t.slice(1))))};return v.useImperativeHandle(t,(function(){return{destroy:y,update:function(e){d((function(t){return Zt(Zt({},t),e)}))}}})),v.createElement(So,{componentName:"Modal",defaultLocale:vo.Modal},(function(e){return v.createElement(Jv,Zt({prefixCls:g,rootPrefixCls:m},u,{close:y,open:a,afterClose:n,okText:u.okText||(u.okCancel?e.okText:e.justOkText),direction:f,cancelText:u.cancelText||e.cancelText}))}))},um=v.forwardRef(cm),dm=0,hm=v.memo(v.forwardRef((function(e,t){var n=function(){var e=v.useState([]),t=(0,k.Z)(e,2),n=t[0],i=t[1];return[n,v.useCallback((function(e){return i((function(t){return[].concat((0,_.Z)(t),[e])})),function(){i((function(t){return t.filter((function(t){return t!==e}))}))}}),[])]}(),i=(0,k.Z)(n,2),r=i[0],o=i[1];return v.useImperativeHandle(t,(function(){return{patchElement:o}}),[]),v.createElement(v.Fragment,null,r)})));function fm(e){return im(rm(e))}var pm=Xv;pm.useModal=function(){var e=v.useRef(null),t=v.useState([]),n=(0,k.Z)(t,2),i=n[0],r=n[1];v.useEffect((function(){i.length&&((0,_.Z)(i).forEach((function(e){e()})),r([]))}),[i]);var o=v.useCallback((function(t){return function(n){var i;dm+=1;var o,a=v.createRef(),s=v.createElement(um,{key:"modal-"+dm,config:t(n),ref:a,afterClose:function(){null===o||void 0===o||o()}});return o=null===(i=e.current)||void 0===i?void 0:i.patchElement(s),{destroy:function(){function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():r((function(t){return[].concat((0,_.Z)(t),[e])}))},update:function(e){function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():r((function(e){return[].concat((0,_.Z)(e),[t])}))}}}}),[]);return[v.useMemo((function(){return{info:o(om),success:o(am),error:o(sm),warning:o(rm),confirm:o(lm)}}),[]),v.createElement(hm,{ref:e})]},pm.info=function(e){return im(om(e))},pm.success=function(e){return im(am(e))},pm.error=function(e){return im(sm(e))},pm.warning=fm,pm.warn=fm,pm.confirm=function(e){return im(lm(e))},pm.destroyAll=function(){for(;em.length;){var e=em.pop();e&&e()}},pm.config=function(e){var t=e.rootPrefixCls;nm=t},pm._InternalPanelDoNotUseOrYouWillBeFired=function(e){var t=e.prefixCls,n=e.className,i=e.closeIcon,r=e.closable,o=e.type,a=e.title,s=e.children,l=Gv(e,["prefixCls","className","closeIcon","closable","type","title","children"]),c=v.useContext(wa).getPrefixCls,u=c(),d=t||c("modal"),h=Uv(d),f=(0,k.Z)(h,2)[1],p=d+"-confirm",g={};return g=o?{closable:null!==r&&void 0!==r&&r,title:"",footer:"",children:v.createElement(Qv,Zt({},e,{confirmPrefixCls:p,rootPrefixCls:u,content:s}))}:{closable:null===r||void 0===r||r,title:a,footer:Yv(e),children:s},v.createElement(Dv,Zt({prefixCls:d,className:Ja()(f,d+"-pure-panel",o&&p,o&&p+"-"+o,n)},l,{closeIcon:Kv(d,i),closable:r},g))};var gm=pm,vm=function(e){return{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}},mm=function(e){return{borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}},ym=function(e){return{borderColor:e.inputBorderHoverColor,boxShadow:"0 0 0 "+e.controlOutlineWidth+"px "+e.controlOutline,borderInlineEndWidth:e.lineWidth,outline:0}},_m=function(e){return{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Zt({},mm(cs(e,{inputBorderHoverColor:e.colorBorder})))}},bm=function(e){return{padding:e.inputPaddingVerticalLG+"px "+e.inputPaddingHorizontal+"px",fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG,borderRadius:e.borderRadiusLG}},Cm=function(e){return{padding:e.inputPaddingVerticalSM+"px "+(e.controlPaddingHorizontalSM-1)+"px",borderRadius:e.borderRadiusSM}},Sm=function(e){var t=e.componentCls,n=e.colorError,i=e.colorWarning,r=e.colorErrorOutline,o=e.colorWarningOutline,a=e.colorErrorBorderHover,s=e.colorWarningBorderHover;return{"&-status-error:not(&-disabled):not(&-borderless)&":(0,N.Z)({borderColor:n,"&:hover":{borderColor:a},"&:focus, &-focused":Zt({},ym(cs(e,{inputBorderActiveColor:n,inputBorderHoverColor:n,controlOutline:r})))},t+"-prefix",{color:n}),"&-status-warning:not(&-disabled):not(&-borderless)&":(0,N.Z)({borderColor:i,"&:hover":{borderColor:s},"&:focus, &-focused":Zt({},ym(cs(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:o})))},t+"-prefix",{color:i})}},wm=function(e){return Zt(Zt({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:e.inputPaddingVertical+"px "+e.inputPaddingHorizontal+"px",color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:"all "+e.motionDurationMid},vm(e.colorTextPlaceholder)),{"&:hover":Zt({},mm(e)),"&:focus, &-focused":Zt({},ym(e)),"&-disabled, &[disabled]":Zt({},_m(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:"all "+e.motionDurationSlow+", height 0s"},"&-textarea":{"&-rtl":{direction:"rtl"}},"&-lg":Zt({},bm(e)),"&-sm":Zt({},Cm(e)),"&-rtl":{direction:"rtl"}})},km=function(e){var t,n,i,r,o,a,s,l=e.componentCls,c=e.antCls;return s={position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0},(0,N.Z)(s,"&[class*='col-']",{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}}),(0,N.Z)(s,"&-lg "+l+", &-lg > "+l+"-group-addon",Zt({},bm(e))),(0,N.Z)(s,"&-sm "+l+", &-sm > "+l+"-group-addon",Zt({},Cm(e))),(0,N.Z)(s,"&-lg "+c+"-select-single "+c+"-select-selector",{height:e.controlHeightLG}),(0,N.Z)(s,"&-sm "+c+"-select-single "+c+"-select-selector",{height:e.controlHeightSM}),(0,N.Z)(s,"> "+l,{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}}),(0,N.Z)(s,l+"-group",(i={},(0,N.Z)(i,"&-addon, &-wrap",{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}}),(0,N.Z)(i,"&-wrap > *",{display:"block !important"}),(0,N.Z)(i,"&-addon",(n={position:"relative",padding:"0 "+e.inputPaddingHorizontal+"px",color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:e.lineWidth+"px "+e.lineType+" "+e.colorBorder,borderRadius:e.borderRadius,transition:"all "+e.motionDurationSlow},(0,N.Z)(n,c+"-select",(t={margin:"-"+(e.inputPaddingVertical+1)+"px -"+e.inputPaddingHorizontal+"px"},(0,N.Z)(t,"&"+c+"-select-single:not("+c+"-select-customize-input)",(0,N.Z)({},c+"-select-selector",{backgroundColor:"inherit",border:e.lineWidth+"px "+e.lineType+" transparent",boxShadow:"none"})),(0,N.Z)(t,"&-open, &-focused",(0,N.Z)({},c+"-select-selector",{color:e.colorPrimary})),t)),(0,N.Z)(n,c+"-cascader-picker",(0,N.Z)({margin:"-9px -"+e.inputPaddingHorizontal+"px",backgroundColor:"transparent"},c+"-cascader-input",{textAlign:"start",border:0,boxShadow:"none"})),n)),(0,N.Z)(i,"&-addon:first-child",{borderInlineEnd:0}),(0,N.Z)(i,"&-addon:last-child",{borderInlineStart:0}),i)),(0,N.Z)(s,""+l,{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":(0,N.Z)({zIndex:1,borderInlineEndWidth:1},l+"-search-with-button &",{zIndex:0})}),(0,N.Z)(s,"> "+l+":first-child, "+l+"-group-addon:first-child",(0,N.Z)({borderStartEndRadius:0,borderEndEndRadius:0},c+"-select "+c+"-select-selector",{borderStartEndRadius:0,borderEndEndRadius:0})),(0,N.Z)(s,"> "+l+"-affix-wrapper",(r={},(0,N.Z)(r,"&:not(:first-child) "+l,{borderStartStartRadius:0,borderEndStartRadius:0}),(0,N.Z)(r,"&:not(:last-child) "+l,{borderStartEndRadius:0,borderEndEndRadius:0}),r)),(0,N.Z)(s,"> "+l+":last-child, "+l+"-group-addon:last-child",(0,N.Z)({borderStartStartRadius:0,borderEndStartRadius:0},c+"-select "+c+"-select-selector",{borderStartStartRadius:0,borderEndStartRadius:0})),(0,N.Z)(s,l+"-affix-wrapper",(0,N.Z)({"&:not(:last-child)":(0,N.Z)({borderStartEndRadius:0,borderEndEndRadius:0},l+"-search &",{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius})},"&:not(:first-child), "+l+"-search &:not(:first-child)",{borderStartStartRadius:0,borderEndStartRadius:0})),(0,N.Z)(s,"&&-compact",Zt(Zt({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),(a={},(0,N.Z)(a,l+"-group-addon, "+l+"-group-wrap, > "+l,{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}}),(0,N.Z)(a,"& > *",{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0}),(0,N.Z)(a,"& > "+l+"-affix-wrapper",{display:"inline-flex"}),(0,N.Z)(a,"& > "+c+"-picker-range",{display:"inline-flex"}),(0,N.Z)(a,"& > *:not(:last-child)",{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth}),(0,N.Z)(a,""+l,{float:"none"}),(0,N.Z)(a,"& > "+c+"-select > "+c+"-select-selector,\n & > "+c+"-select-auto-complete "+l+",\n & > "+c+"-cascader-picker "+l+",\n & > "+l+"-group-wrapper "+l,{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}),(0,N.Z)(a,"& > "+c+"-select-focused",{zIndex:1}),(0,N.Z)(a,"& > "+c+"-select > "+c+"-select-arrow",{zIndex:1}),(0,N.Z)(a,"& > *:first-child,\n & > "+c+"-select:first-child > "+c+"-select-selector,\n & > "+c+"-select-auto-complete:first-child "+l+",\n & > "+c+"-cascader-picker:first-child "+l,{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}),(0,N.Z)(a,"& > *:last-child,\n & > "+c+"-select:last-child > "+c+"-select-selector,\n & > "+c+"-cascader-picker:last-child "+l+",\n & > "+c+"-cascader-picker-focused:last-child "+l,{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius}),(0,N.Z)(a,"& > "+c+"-select-auto-complete "+l,{verticalAlign:"top"}),(0,N.Z)(a,l+"-group-wrapper + "+l+"-group-wrapper",(0,N.Z)({marginInlineStart:-e.lineWidth},l+"-affix-wrapper",{borderRadius:0})),(0,N.Z)(a,l+"-group-wrapper:not(:last-child)",(0,N.Z)({},"&"+l+"-search > "+l+"-group",(o={},(0,N.Z)(o,"& > "+l+"-group-addon > "+l+"-search-button",{borderRadius:0}),(0,N.Z)(o,"& > "+l,{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}),o))),a))),s},xm=function(e){var t,n=e.prefixCls,i=e.componentCls,r=e.controlHeightSM,o=(r-2*e.lineWidth-16)/2;return(0,N.Z)({},""+i,Zt(Zt(Zt(Zt(Zt({},Fa(e)),wm(e)),Sm(e)),Tg(e,n)),{'&[type="color"]':(t={height:e.controlHeight},(0,N.Z)(t,"&"+i+"-lg",{height:e.controlHeightLG}),(0,N.Z)(t,"&"+i+"-sm",{height:r,paddingTop:o,paddingBottom:o}),t)}))},Em=function(e){var t,n=e.componentCls,i=e.inputAffixPadding,r=e.colorTextDescription,o=e.motionDurationSlow,a=e.colorIcon,s=e.colorIconHover,l=e.iconCls;return(0,N.Z)({},n+"-affix-wrapper",Zt(Zt(Zt(Zt(Zt({},wm(e)),(t={display:"inline-flex","&:not(&-disabled):hover":Zt(Zt({},mm(e)),(0,N.Z)({zIndex:1},n+"-search-with-button &",{zIndex:0})),"&-focused, &:focus":{zIndex:1},"&-disabled":(0,N.Z)({},n+"[disabled]",{background:"transparent"})},(0,N.Z)(t,"> input"+n,{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}}),(0,N.Z)(t,"&::before",{width:0,visibility:"hidden",content:'"\\a0"'}),(0,N.Z)(t,""+n,{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:i},"&-suffix":{marginInlineStart:i}}),t)),function(e){var t,n=e.componentCls;return t={},(0,N.Z)(t,n+"-clear-icon",{margin:0,color:e.colorIcon,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:"color "+e.motionDurationSlow,"&:hover":{color:e.colorTextDescription},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:"0 "+e.inputAffixPadding+"px"}}),(0,N.Z)(t,"&-textarea-with-clear-btn",(0,N.Z)({padding:"0 !important",border:"0 !important"},n+"-clear-icon",{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1})),t}(e)),(0,N.Z)({},""+l+n+"-password-icon",{color:a,cursor:"pointer",transition:"all "+o,"&:hover":{color:s}})),Sm(e)))},Tm=function(e){var t=e.componentCls,n=e.colorError,i=e.colorSuccess,r=e.borderRadiusLG,o=e.borderRadiusSM;return(0,N.Z)({},t+"-group",Zt(Zt(Zt({},Fa(e)),km(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":(0,N.Z)({},t+"-group-addon",{borderRadius:r}),"&-sm":(0,N.Z)({},t+"-group-addon",{borderRadius:o}),"&-status-error":(0,N.Z)({},t+"-group-addon",{color:n,borderColor:n}),"&-status-warning":(0,N.Z)({},t+"-group-addon:last-child",{color:i,borderColor:i})}}))},Nm=function(e){var t,n,i,r=e.componentCls,o=e.antCls,a=r+"-search";return(0,N.Z)({},a,(i={},(0,N.Z)(i,""+r,{"&:hover, &:focus":(0,N.Z)({borderColor:e.colorPrimaryHover},"+ "+r+"-group-addon "+a+"-button:not(.@{ant-prefix}-btn-primary)",{borderInlineStartColor:e.colorPrimaryHover})}),(0,N.Z)(i,r+"-affix-wrapper",{borderRadius:0}),(0,N.Z)(i,r+"-lg",{lineHeight:e.lineHeightLG-2e-4}),(0,N.Z)(i,"> "+r+"-group",(0,N.Z)({},"> "+r+"-group-addon:last-child",(t={insetInlineStart:-1,padding:0,border:0},(0,N.Z)(t,a+"-button",{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0}),(0,N.Z)(t,a+"-button:not("+o+"-btn-primary)",(0,N.Z)({color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive}},"&"+o+"-btn-loading::before",{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0})),t))),(0,N.Z)(i,a+"-button",{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}}),(0,N.Z)(i,"&-large "+a+"-button",{height:e.controlHeightLG}),(0,N.Z)(i,"&-small "+a+"-button",{height:e.controlHeightSM}),(0,N.Z)(i,"&-rtl",{direction:"rtl"}),(0,N.Z)(i,"&"+r+"-compact-item",(n={},(0,N.Z)(n,"&:not("+r+"-compact-last-item)",(0,N.Z)({},r+"-group-addon",(0,N.Z)({},r+"-search-button",{marginInlineEnd:-e.lineWidth,borderRadius:0}))),(0,N.Z)(n,"&:not("+r+"-compact-first-item)",(0,N.Z)({},r+","+r+"-affix-wrapper",{borderRadius:0})),(0,N.Z)(n,"> "+r+"-group-addon "+r+"-search-button,\n > "+r+",\n "+r+"-affix-wrapper",{"&:hover,&:focus,&:active":{zIndex:2}}),(0,N.Z)(n,"> "+r+"-affix-wrapper-focused",{zIndex:2}),n)),i))};function Im(e){return cs(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.controlPaddingHorizontal-e.lineWidth,inputPaddingHorizontalSM:e.controlPaddingHorizontalSM-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}var Dm=function(e){var t,n,i=e.componentCls,r=e.inputPaddingHorizontal,o=e.paddingLG,a=i+"-textarea";return(0,N.Z)({},a,(n={position:"relative"},(0,N.Z)(n,a+"-suffix",{position:"absolute",top:0,insetInlineEnd:r,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"}),(0,N.Z)(n,"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating",(0,N.Z)({},"&"+a+"-has-feedback",(0,N.Z)({},""+i,{paddingInlineEnd:o}))),(0,N.Z)(n,"&-show-count",(t={},(0,N.Z)(t,"> "+i,{height:"100%"}),(0,N.Z)(t,"&::after",{position:"absolute",bottom:0,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",display:"block",transform:"translateY(100%)"}),t)),n))},Lm=hs("Input",(function(e){var t=Im(e);return[xm(t),Dm(t),Em(t),Tm(t),Nm(t)]})),Om=function(e){var t,n=(0,v.useContext)(wa),i=n.getPrefixCls,r=n.direction,o=e.prefixCls,a=e.className,s=void 0===a?"":a,l=i("input-group",o),c=i("input"),u=Lm(c),d=(0,k.Z)(u,2),h=d[0],f=d[1],p=Ja()(l,(t={},(0,N.Z)(t,l+"-lg","large"===e.size),(0,N.Z)(t,l+"-sm","small"===e.size),(0,N.Z)(t,l+"-compact",e.compact),(0,N.Z)(t,l+"-rtl","rtl"===r),t),f,s),g=(0,v.useContext)(Sl),m=(0,v.useMemo)((function(){return Zt(Zt({},g),{isFormItemInput:!1})}),[g]);return h(v.createElement("span",{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},v.createElement(Sl.Provider,{value:m},e.children)))};function Rm(e){return!(!e.addonBefore&&!e.addonAfter)}function Am(e){return!!(e.prefix||e.suffix||e.allowClear)}function Mm(e,t,n,i){if(n){var r=t;if("click"===t.type){var o=e.cloneNode(!0);return r=Object.create(t,{target:{value:o},currentTarget:{value:o}}),o.value="",void n(r)}if(void 0!==i)return r=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=i,void n(r);n(r)}}function Pm(e){return"undefined"===typeof e||null===e?"":String(e)}var Zm=function(e){var t=e.inputElement,n=e.prefixCls,i=e.prefix,r=e.suffix,o=e.addonBefore,a=e.addonAfter,s=e.className,l=e.style,c=e.affixWrapperClassName,u=e.groupClassName,d=e.wrapperClassName,h=e.disabled,f=e.readOnly,p=e.focused,g=e.triggerFocus,m=e.allowClear,y=e.value,_=e.handleReset,b=e.hidden,C=(0,v.useRef)(null),S=(0,v.cloneElement)(t,{value:y,hidden:b});if(Am(e)){var w,k="".concat(n,"-affix-wrapper"),x=Ja()(k,(w={},(0,N.Z)(w,"".concat(k,"-disabled"),h),(0,N.Z)(w,"".concat(k,"-focused"),p),(0,N.Z)(w,"".concat(k,"-readonly"),f),(0,N.Z)(w,"".concat(k,"-input-with-clear-btn"),r&&m&&y),w),!Rm(e)&&s,c),E=(r||m)&&v.createElement("span",{className:"".concat(n,"-suffix")},function(){var e;if(!m)return null;var t=!h&&!f&&y,i="".concat(n,"-clear-icon"),o="object"===(0,Bt.Z)(m)&&null!==m&&void 0!==m&&m.clearIcon?m.clearIcon:"\u2716";return v.createElement("span",{onClick:_,onMouseDown:function(e){return e.preventDefault()},className:Ja()(i,(e={},(0,N.Z)(e,"".concat(i,"-hidden"),!t),(0,N.Z)(e,"".concat(i,"-has-suffix"),!!r),e)),role:"button",tabIndex:-1},o)}(),r);S=v.createElement("span",{className:x,style:l,hidden:!Rm(e)&&b,onClick:function(e){var t;null!==(t=C.current)&&void 0!==t&&t.contains(e.target)&&(null===g||void 0===g||g())},ref:C},i&&v.createElement("span",{className:"".concat(n,"-prefix")},i),(0,v.cloneElement)(t,{style:null,value:y,hidden:null}),E)}if(Rm(e)){var T="".concat(n,"-group"),I="".concat(T,"-addon"),D=Ja()("".concat(n,"-wrapper"),T,d),L=Ja()("".concat(n,"-group-wrapper"),s,u);return v.createElement("span",{className:L,style:l,hidden:b},v.createElement("span",{className:D},o&&v.createElement("span",{className:I},o),(0,v.cloneElement)(S,{style:null,hidden:null}),a&&v.createElement("span",{className:I},a)))}return S},Fm=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","inputClassName"],Bm=(0,v.forwardRef)((function(e,t){var n=e.autoComplete,i=e.onChange,r=e.onFocus,o=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=void 0===l?"rc-input":l,u=e.disabled,d=e.htmlSize,h=e.className,f=e.maxLength,p=e.suffix,g=e.showCount,m=e.type,y=void 0===m?"text":m,b=e.inputClassName,C=Ai(e,Fm),S=Sf(e.defaultValue,{value:e.value}),w=(0,k.Z)(S,2),x=w[0],E=w[1],T=(0,v.useState)(!1),I=(0,k.Z)(T,2),D=I[0],L=I[1],O=(0,v.useRef)(null),R=function(e){O.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var i=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}(O.current,e)};(0,v.useImperativeHandle)(t,(function(){return{focus:R,blur:function(){var e;null===(e=O.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var i;null===(i=O.current)||void 0===i||i.setSelectionRange(e,t,n)},select:function(){var e;null===(e=O.current)||void 0===e||e.select()},input:O.current}})),(0,v.useEffect)((function(){L((function(e){return(!e||!u)&&e}))}),[u]);var A=function(t){void 0===e.value&&E(t.target.value),O.current&&Mm(O.current,t,i)},M=function(e){a&&"Enter"===e.key&&a(e),null===s||void 0===s||s(e)},P=function(e){L(!0),null===r||void 0===r||r(e)},Z=function(e){L(!1),null===o||void 0===o||o(e)};return v.createElement(Zm,Zt({},C,{prefixCls:c,className:h,inputElement:function(){var t=ns(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName","htmlSize"]);return v.createElement("input",Zt({autoComplete:n},t,{onChange:A,onFocus:P,onBlur:Z,onKeyDown:M,className:Ja()(c,(0,N.Z)({},"".concat(c,"-disabled"),u),b,!Rm(e)&&!Am(e)&&h),ref:O,size:d,type:y}))}(),handleReset:function(e){E(""),R(),O.current&&Mm(O.current,e,i)},value:Pm(x),focused:D,triggerFocus:R,suffix:function(){var e=Number(f)>0;if(p||g){var t=Pm(x),n=(0,_.Z)(t).length,i="object"===(0,Bt.Z)(g)?g.formatter({value:t,count:n,maxLength:f}):"".concat(n).concat(e?" / ".concat(f):"");return v.createElement(v.Fragment,null,!!g&&v.createElement("span",{className:Ja()("".concat(c,"-show-count-suffix"),(0,N.Z)({},"".concat(c,"-show-count-has-suffix"),!!p))},i),p)}return null}(),disabled:u}))})),Hm=Bm;as("warning","error","");function zm(e,t,n){var i;return Ja()((i={},(0,N.Z)(i,e+"-status-success","success"===t),(0,N.Z)(i,e+"-status-warning","warning"===t),(0,N.Z)(i,e+"-status-error","error"===t),(0,N.Z)(i,e+"-status-validating","validating"===t),(0,N.Z)(i,e+"-has-feedback",n),i))}var jm=function(e,t){return t||e};function Vm(e,t){var n=(0,v.useRef)([]),i=function(){n.current.push(setTimeout((function(){var t,n,i,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(i=e.current)||void 0===i?void 0:i.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,v.useEffect)((function(){return t&&i(),function(){return n.current.forEach((function(e){e&&clearTimeout(e)}))}}),[]),i}var Wm=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function Um(e,t,n,i){if(n){var r=t;if("click"===t.type){var o=e.cloneNode(!0);return r=Object.create(t,{target:{value:o},currentTarget:{value:o}}),o.value="",void n(r)}if(void 0!==i)return r=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=i,void n(r);n(r)}}var Gm=(0,v.forwardRef)((function(e,t){var n,i,r,o=e.prefixCls,a=e.bordered,s=void 0===a||a,l=e.status,c=e.size,u=e.disabled,d=e.onBlur,h=e.onFocus,f=e.suffix,p=e.allowClear,g=e.addonAfter,m=e.addonBefore,y=e.className,_=e.onChange,b=Wm(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","onChange"]),C=v.useContext(wa),S=C.getPrefixCls,w=C.direction,x=C.input,E=S("input",o),T=(0,v.useRef)(null),I=Lm(E),D=(0,k.Z)(I,2),L=D[0],O=D[1],R=tg(E,w),A=R.compactSize,M=R.compactItemClassnames,P=v.useContext(Pa),Z=A||c||P,F=v.useContext(Ia),B=null!==u&&void 0!==u?u:F,H=(0,v.useContext)(Sl),z=H.status,j=H.hasFeedback,V=H.feedbackIcon,W=jm(z,l),U=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!j,G=(0,v.useRef)(U);(0,v.useEffect)((function(){U&&G.current,G.current=U}),[U]);var K,Y=Vm(T,!0),q=(j||f)&&v.createElement(v.Fragment,null,f,j&&V);return"object"===(0,Bt.Z)(p)&&(null===p||void 0===p?void 0:p.clearIcon)?K=p:p&&(K={clearIcon:v.createElement(Lu,null)}),L(v.createElement(Hm,Zt({ref:Nl(t,T),prefixCls:E,autoComplete:null===x||void 0===x?void 0:x.autoComplete},b,{disabled:B||void 0,onBlur:function(e){Y(),null===d||void 0===d||d(e)},onFocus:function(e){Y(),null===h||void 0===h||h(e)},suffix:q,allowClear:K,className:Ja()(y,M),onChange:function(e){Y(),null===_||void 0===_||_(e)},addonAfter:g&&v.createElement(ng,null,v.createElement(wl,{override:!0,status:!0},g)),addonBefore:m&&v.createElement(ng,null,v.createElement(wl,{override:!0,status:!0},m)),inputClassName:Ja()((n={},(0,N.Z)(n,E+"-sm","small"===Z),(0,N.Z)(n,E+"-lg","large"===Z),(0,N.Z)(n,E+"-rtl","rtl"===w),(0,N.Z)(n,E+"-borderless",!s),n),!U&&zm(E,W),O),affixWrapperClassName:Ja()((i={},(0,N.Z)(i,E+"-affix-wrapper-sm","small"===Z),(0,N.Z)(i,E+"-affix-wrapper-lg","large"===Z),(0,N.Z)(i,E+"-affix-wrapper-rtl","rtl"===w),(0,N.Z)(i,E+"-affix-wrapper-borderless",!s),i),zm(E+"-affix-wrapper",W,j),O),wrapperClassName:Ja()((0,N.Z)({},E+"-group-rtl","rtl"===w),O),groupClassName:Ja()((r={},(0,N.Z)(r,E+"-group-wrapper-sm","small"===Z),(0,N.Z)(r,E+"-group-wrapper-lg","large"===Z),(0,N.Z)(r,E+"-group-wrapper-rtl","rtl"===w),r),zm(E+"-group-wrapper",W,j),O)})))})),Km=Gm,Ym={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},qm=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Ym}))};qm.displayName="EyeInvisibleOutlined";var $m=v.forwardRef(qm),Xm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Qm=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Xm}))};Qm.displayName="EyeOutlined";var Jm=v.forwardRef(Qm),ey=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},ty=function(e){return e?v.createElement(Jm,null):v.createElement($m,null)},ny={click:"onClick",hover:"onMouseOver"},iy=v.forwardRef((function(e,t){var n=e.visibilityToggle,i=void 0===n||n,r="object"===(0,Bt.Z)(i)&&void 0!==i.visible,o=(0,v.useState)((function(){return!!r&&i.visible})),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useRef)(null);v.useEffect((function(){r&&l(i.visible)}),[r,i]);var u=Vm(c),d=function(){e.disabled||(s&&u(),l((function(e){var t,n=!e;return"object"===(0,Bt.Z)(i)&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},h=function(n){var r=n.getPrefixCls,o=e.className,a=e.prefixCls,l=e.inputPrefixCls,u=e.size,h=ey(e,["className","prefixCls","inputPrefixCls","size"]),f=r("input",l),p=r("input-password",a),g=i&&function(t){var n,i=e.action,r=void 0===i?"click":i,o=e.iconRender,a=ny[r]||"",l=(void 0===o?ty:o)(s),c=(n={},(0,N.Z)(n,a,d),(0,N.Z)(n,"className",t+"-icon"),(0,N.Z)(n,"key","passwordIcon"),(0,N.Z)(n,"onMouseDown",(function(e){e.preventDefault()})),(0,N.Z)(n,"onMouseUp",(function(e){e.preventDefault()})),n);return v.cloneElement(v.isValidElement(l)?l:v.createElement("span",null,l),c)}(p),m=Ja()(p,o,(0,N.Z)({},p+"-"+u,!!u)),y=Zt(Zt({},ns(h,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:m,prefixCls:f,suffix:g});return u&&(y.size=u),v.createElement(Km,Zt({ref:Nl(t,c)},y))};return v.createElement(ka,null,h)}));var ry=iy,oy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},ay=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:oy}))};ay.displayName="SearchOutlined";var sy=v.forwardRef(ay),ly=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},cy=v.forwardRef((function(e,t){var n,i,r=e.prefixCls,o=e.inputPrefixCls,a=e.className,s=e.size,l=e.suffix,c=e.enterButton,u=void 0!==c&&c,d=e.addonAfter,h=e.loading,f=e.disabled,p=e.onSearch,g=e.onChange,m=e.onCompositionStart,y=e.onCompositionEnd,_=ly(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),b=v.useContext(wa),C=b.getPrefixCls,S=b.direction,w=v.useContext(Pa),k=v.useRef(!1),x=C("input-search",r),E=C("input",o),T=tg(x,S).compactSize||s||w,I=v.useRef(null),D=function(e){var t;document.activeElement===(null===(t=I.current)||void 0===t?void 0:t.input)&&e.preventDefault()},L=function(e){var t,n;p&&p(null===(n=null===(t=I.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},O="boolean"===typeof u?v.createElement(sy,null):null,R=x+"-button",A=u||{},M=A.type&&!0===A.type.__ANT_BUTTON;i=M||"button"===A.type?os(A,Zt({onMouseDown:D,onClick:function(e){var t,n;null===(n=null===(t=null===A||void 0===A?void 0:A.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),L(e)},key:"enterButton"},M?{className:R,size:T}:{})):v.createElement(Jg,{className:R,type:u?"primary":void 0,size:T,disabled:f,key:"enterButton",onMouseDown:D,onClick:L,loading:h,icon:O},u),d&&(i=[i,os(d,{key:"addonAfter"})]);var P=Ja()(x,(n={},(0,N.Z)(n,x+"-rtl","rtl"===S),(0,N.Z)(n,x+"-"+T,!!T),(0,N.Z)(n,x+"-with-button",!!u),n),a);return v.createElement(Km,Zt({ref:Nl(I,t),onPressEnter:function(e){k.current||h||L(e)}},_,{size:T,onCompositionStart:function(e){k.current=!0,null===m||void 0===m||m(e)},onCompositionEnd:function(e){k.current=!1,null===y||void 0===y||y(e)},prefixCls:E,addonAfter:i,suffix:l,onChange:function(e){e&&e.target&&"click"===e.type&&p&&p(e.target.value,e),g&&g(e)},className:P,disabled:f}))}));var uy=cy,dy=new Map;var hy=new Gh((function(e){e.forEach((function(e){var t,n=e.target;null===(t=dy.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var fy=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){return(0,b.Z)(this,n),t.apply(this,arguments)}return(0,C.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(v.Component),py=v.createContext(null);function gy(e){var t=e.children,n=e.disabled,i=v.useRef(null),r=v.useRef(null),o=v.useContext(py),a="function"===typeof t,s=a?t(i):t,l=v.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=!a&&v.isValidElement(s)&&Dl(s),u=c?s.ref:null,d=v.useMemo((function(){return Nl(u,i)}),[u,i]),h=v.useRef(e);h.current=e;var f=v.useCallback((function(e){var t=h.current,n=t.onResize,i=t.data,r=e.getBoundingClientRect(),a=r.width,s=r.height,c=e.offsetWidth,u=e.offsetHeight,d=Math.floor(a),f=Math.floor(s);if(l.current.width!==d||l.current.height!==f||l.current.offsetWidth!==c||l.current.offsetHeight!==u){var p={width:d,height:f,offsetWidth:c,offsetHeight:u};l.current=p;var g=c===Math.round(a)?a:c,v=u===Math.round(s)?s:u,m=(0,Ft.Z)((0,Ft.Z)({},p),{},{offsetWidth:g,offsetHeight:v});null===o||void 0===o||o(m,e,i),n&&Promise.resolve().then((function(){n(m,e)}))}}),[]);return v.useEffect((function(){var e,t,o=El(i.current)||El(r.current);return o&&!n&&(e=o,t=f,dy.has(e)||(dy.set(e,new Set),hy.observe(e)),dy.get(e).add(t)),function(){return function(e,t){dy.has(e)&&(dy.get(e).delete(t),dy.get(e).size||(hy.unobserve(e),dy.delete(e)))}(o,f)}}),[i.current,n]),v.createElement(fy,{ref:r},c?v.cloneElement(s,{ref:d}):s)}function vy(e){var t=e.children;return("function"===typeof t?[t]:Zi(t)).map((function(t,n){var i=(null===t||void 0===t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return v.createElement(gy,Zt({},e,{key:i}),t)}))}vy.Collection=function(e){var t=e.children,n=e.onBatchResize,i=v.useRef(0),r=v.useRef([]),o=v.useContext(py),a=v.useCallback((function(e,t,a){i.current+=1;var s=i.current;r.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===i.current&&(null===n||void 0===n||n(r.current),r.current=[])})),null===o||void 0===o||o(e,t,a)}),[n,o]);return v.createElement(py.Provider,{value:a},t)};var my,yy=vy,_y="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",by=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Cy={};function Sy(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Cy[n])return Cy[n];var i=window.getComputedStyle(e),r=i.getPropertyValue("box-sizing")||i.getPropertyValue("-moz-box-sizing")||i.getPropertyValue("-webkit-box-sizing"),o=parseFloat(i.getPropertyValue("padding-bottom"))+parseFloat(i.getPropertyValue("padding-top")),a=parseFloat(i.getPropertyValue("border-bottom-width"))+parseFloat(i.getPropertyValue("border-top-width")),s=by.map((function(e){return"".concat(e,":").concat(i.getPropertyValue(e))})).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:r};return t&&n&&(Cy[n]=l),l}var wy=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ky=v.forwardRef((function(e,t){var n=e.prefixCls,i=void 0===n?"rc-textarea":n,r=(e.onPressEnter,e.defaultValue),o=e.value,a=e.autoSize,s=e.onResize,l=e.className,c=e.style,u=e.disabled,d=e.onChange,h=(e.onInternalAutoSize,Ai(e,wy)),f=Sf(r,{value:o,postState:function(e){return null!==e&&void 0!==e?e:""}}),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=v.useRef();v.useImperativeHandle(t,(function(){return{textArea:y.current}}));var _=v.useMemo((function(){return a&&"object"===(0,Bt.Z)(a)?[a.minRows,a.maxRows]:[]}),[a]),b=(0,k.Z)(_,2),C=b[0],S=b[1],w=!!a,x=v.useState(2),E=(0,k.Z)(x,2),T=E[0],I=E[1],D=v.useState(),L=(0,k.Z)(D,2),O=L[0],R=L[1],A=function(){I(0)};ju((function(){w&&A()}),[o,C,S,w]),ju((function(){if(0===T)I(1);else if(1===T){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;my||((my=document.createElement("textarea")).setAttribute("tab-index","-1"),my.setAttribute("aria-hidden","true"),document.body.appendChild(my)),e.getAttribute("wrap")?my.setAttribute("wrap",e.getAttribute("wrap")):my.removeAttribute("wrap");var r=Sy(e,t),o=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;my.setAttribute("style","".concat(l,";").concat(_y)),my.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,h=my.scrollHeight;if("border-box"===s?h+=a:"content-box"===s&&(h-=o),null!==n||null!==i){my.value=" ";var f=my.scrollHeight-o;null!==n&&(u=f*n,"border-box"===s&&(u=u+o+a),h=Math.max(u,h)),null!==i&&(d=f*i,"border-box"===s&&(d=d+o+a),c=h>d?"":"hidden",h=Math.min(d,h))}var p={height:h,overflowY:c,resize:"none"};return u&&(p.minHeight=u),d&&(p.maxHeight=d),p}(y.current,!1,C,S);I(2),R(e)}else!function(){try{if(document.activeElement===y.current){var e=y.current,t=e.selectionStart,n=e.selectionEnd,i=e.scrollTop;y.current.setSelectionRange(t,n),y.current.scrollTop=i}}catch(Fc){}}()}),[T]);var M=v.useRef(),P=function(){oc.cancel(M.current)};v.useEffect((function(){return P}),[]);var Z=w?O:null,F=(0,Ft.Z)((0,Ft.Z)({},c),Z);return 0!==T&&1!==T||(F.overflowY="hidden",F.overflowX="hidden"),v.createElement(yy,{onResize:function(e){2===T&&(null===s||void 0===s||s(e),a&&(P(),M.current=oc((function(){A()}))))},disabled:!(a||s)},v.createElement("textarea",Zt({},h,{ref:y,style:F,className:Ja()(i,l,(0,N.Z)({},"".concat(i,"-disabled"),u)),disabled:u,value:g,onChange:function(e){m(e.target.value),null===d||void 0===d||d(e)}})))})),xy=ky,Ey=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(e){var i;(0,b.Z)(this,n),(i=t.call(this,e)).resizableTextArea=void 0,i.focus=function(){i.resizableTextArea.textArea.focus()},i.saveTextArea=function(e){i.resizableTextArea=e},i.handleChange=function(e){var t=i.props.onChange;i.setValue(e.target.value),t&&t(e)},i.handleKeyDown=function(e){var t=i.props,n=t.onPressEnter,r=t.onKeyDown;13===e.keyCode&&n&&n(e),r&&r(e)};var r="undefined"===typeof e.value||null===e.value?e.defaultValue:e.value;return i.state={value:r},i}return(0,C.Z)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return v.createElement(xy,Zt({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(v.Component),Ty=Ey,Ny=as("text","input");var Iy=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){return(0,b.Z)(this,n),t.apply(this,arguments)}return(0,C.Z)(n,[{key:"renderClearIcon",value:function(e){var t,n=this.props,i=n.value,r=n.disabled,o=n.readOnly,a=n.handleReset,s=n.suffix,l=!r&&!o&&i,c=e+"-clear-icon";return v.createElement(Lu,{onClick:a,onMouseDown:function(e){return e.preventDefault()},className:Ja()((t={},(0,N.Z)(t,c+"-hidden",!l),(0,N.Z)(t,c+"-has-suffix",!!s),t),c),role:"button"})}},{key:"renderTextAreaWithClearIcon",value:function(e,t,n){var i,r=this.props,o=r.value,a=r.allowClear,s=r.className,l=r.style,c=r.direction,u=r.bordered,d=r.hidden,h=r.status,f=r.hashId,p=n.status,g=n.hasFeedback;if(!a)return os(t,{value:o});var m,y=Ja()(e+"-affix-wrapper",e+"-affix-wrapper-textarea-with-clear-btn",zm(e+"-affix-wrapper",jm(p,h),g),(i={},(0,N.Z)(i,e+"-affix-wrapper-rtl","rtl"===c),(0,N.Z)(i,e+"-affix-wrapper-borderless",!u),(0,N.Z)(i,""+s,!((m=this.props).addonBefore||m.addonAfter)&&s),i),f);return v.createElement("span",{className:y,style:l,hidden:d},os(t,{style:null,value:o}),this.renderClearIcon(e))}},{key:"render",value:function(){var e=this;return v.createElement(Sl.Consumer,null,(function(t){var n=e.props,i=n.prefixCls,r=n.inputType,o=n.element;if(r===Ny[0])return e.renderTextAreaWithClearIcon(i,o,t)}))}}]),n}(v.Component),Dy=Iy,Ly=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function Oy(e,t){return(0,_.Z)(e||"").slice(0,t).join("")}function Ry(e,t,n,i){var r=n;return e?r=Oy(n,i):(0,_.Z)(t||"").length<n.length&&(0,_.Z)(n||"").length>i&&(r=t),r}var Ay=v.forwardRef((function(e,t){var n,i=e.prefixCls,r=e.bordered,o=void 0===r||r,a=e.showCount,s=void 0!==a&&a,l=e.maxLength,c=e.className,u=e.style,d=e.size,h=e.disabled,f=e.onCompositionStart,p=e.onCompositionEnd,g=e.onChange,m=e.status,y=Ly(e,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","status"]),b=v.useContext(wa),C=b.getPrefixCls,S=b.direction,w=v.useContext(Pa),x=v.useContext(Ia),E=null!==h&&void 0!==h?h:x,T=v.useContext(Sl),I=T.status,D=T.hasFeedback,L=T.feedbackIcon,O=jm(I,m),R=v.useRef(null),A=v.useRef(null),M=v.useState(!1),P=(0,k.Z)(M,2),Z=P[0],F=P[1],B=v.useRef(),H=v.useRef(0),z=Sf(y.defaultValue,{value:y.value}),j=(0,k.Z)(z,2),V=j[0],W=j[1],U=y.hidden,G=function(e,t){void 0===y.value&&(W(e),null===t||void 0===t||t())},K=Number(l)>0,Y=C("input",i),q=Lm(Y),$=(0,k.Z)(q,2),X=$[0],Q=$[1];v.useImperativeHandle(t,(function(){var e;return{resizableTextArea:null===(e=R.current)||void 0===e?void 0:e.resizableTextArea,focus:function(e){var t,n;!function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var i=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}(null===(n=null===(t=R.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:function(){var e;return null===(e=R.current)||void 0===e?void 0:e.blur()}}}));var J=v.createElement(Ty,Zt({},ns(y,["allowClear"]),{disabled:E,className:Ja()((n={},(0,N.Z)(n,Y+"-borderless",!o),(0,N.Z)(n,c,c&&!s),(0,N.Z)(n,Y+"-sm","small"===w||"small"===d),(0,N.Z)(n,Y+"-lg","large"===w||"large"===d),n),zm(Y,O),Q),style:s?{resize:null===u||void 0===u?void 0:u.resize}:u,prefixCls:Y,onCompositionStart:function(e){F(!0),B.current=V,H.current=e.currentTarget.selectionStart,null===f||void 0===f||f(e)},onChange:function(e){var t=e.target.value;!Z&&K&&(t=Ry(e.target.selectionStart>=l+1||e.target.selectionStart===t.length||!e.target.selectionStart,V,t,l));G(t),Um(e.currentTarget,e,g,t)},onCompositionEnd:function(e){var t;F(!1);var n=e.currentTarget.value;K&&(n=Ry(H.current>=l+1||H.current===(null===(t=B.current)||void 0===t?void 0:t.length),B.current,n,l));n!==V&&(G(n),Um(e.currentTarget,e,g,n)),null===p||void 0===p||p(e)},ref:R})),ee=function(e){return"undefined"===typeof e||null===e?"":String(e)}(V);Z||!K||null!==y.value&&void 0!==y.value||(ee=Oy(ee,l));var te=v.createElement(Dy,Zt({disabled:E},y,{prefixCls:Y,direction:S,inputType:"text",value:ee,element:J,handleReset:function(e){var t,n,i;G(""),null===(t=R.current)||void 0===t||t.focus(),Um(null===(i=null===(n=R.current)||void 0===n?void 0:n.resizableTextArea)||void 0===i?void 0:i.textArea,e,g)},ref:A,bordered:o,status:m,style:s?void 0:u,hashId:Q}));if(s||D){var ne,ie=(0,_.Z)(ee).length,re="";return re="object"===(0,Bt.Z)(s)?s.formatter({value:ee,count:ie,maxLength:l}):ie+(K?" / "+l:""),v.createElement("div",{hidden:U,className:Ja()(Y+"-textarea",(ne={},(0,N.Z)(ne,Y+"-textarea-rtl","rtl"===S),(0,N.Z)(ne,Y+"-textarea-show-count",s),ne),zm(Y+"-textarea",O,D),c,Q),style:u,"data-count":re},te,D&&v.createElement("span",{className:Y+"-textarea-suffix"},L))}return X(te)})),My=Ay,Py=Km;Py.Group=Om,Py.Search=uy,Py.TextArea=My,Py.Password=ry;var Zy=Py;function Fy(e){var t=e.className,n=e.direction,i=e.index,r=e.marginDirection,o=e.children,a=e.split,s=e.wrap,l=v.useContext(Hy),c=l.horizontalSize,u=l.verticalSize,d=l.latestIndex,h={};return l.supportFlexGap||("vertical"===n?i<d&&(h={marginBottom:c/(a?2:1)}):h=Zt(Zt({},i<d&&(0,N.Z)({},r,c/(a?2:1))),s&&{paddingBottom:u})),null===o||void 0===o?null:v.createElement(v.Fragment,null,v.createElement("div",{className:t,style:h},o),i<d&&a&&v.createElement("span",{className:t+"-split",style:h},a))}var By=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},Hy=v.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),zy={small:8,middle:16,large:24};var jy=function(e){var t,n=v.useContext(wa),i=n.getPrefixCls,r=n.space,o=n.direction,a=e.size,s=void 0===a?(null===r||void 0===r?void 0:r.size)||"small":a,l=e.align,c=e.className,u=e.children,d=e.direction,h=void 0===d?"horizontal":d,f=e.prefixCls,p=e.split,g=e.style,m=e.wrap,y=void 0!==m&&m,_=By(e,["size","align","className","children","direction","prefixCls","split","style","wrap"]),b=Wu(),C=v.useMemo((function(){return(Array.isArray(s)?s:[s,s]).map((function(e){return function(e){return"string"===typeof e?zy[e]:e||0}(e)}))}),[s]),S=(0,k.Z)(C,2),w=S[0],x=S[1],E=Zi(u,{keepEmpty:!0}),T=void 0===l&&"horizontal"===h?"center":l,I=i("space",f),D=Qp(I),L=(0,k.Z)(D,2),O=L[0],R=L[1],A=Ja()(I,R,I+"-"+h,(t={},(0,N.Z)(t,I+"-rtl","rtl"===o),(0,N.Z)(t,I+"-align-"+T,T),t),c),M=I+"-item",P="rtl"===o?"marginLeft":"marginRight",Z=0,F=E.map((function(e,t){null!==e&&void 0!==e&&(Z=t);var n=e&&e.key||M+"-"+t;return v.createElement(Fy,{className:M,key:n,direction:h,index:t,marginDirection:P,split:p,wrap:y},e)})),B=v.useMemo((function(){return{horizontalSize:w,verticalSize:x,latestIndex:Z,supportFlexGap:b}}),[w,x,Z,b]);if(0===E.length)return null;var H={};return y&&(H.flexWrap="wrap",b||(H.marginBottom=-x)),b&&(H.columnGap=w,H.rowGap=x),O(v.createElement("div",Zt({className:A,style:Zt(Zt({},H),g)},_),v.createElement(Hy.Provider,{value:B},F)))};jy.Compact=rg;var Vy=jy,Wy={adjustX:1,adjustY:1},Uy=[0,0],Gy={topLeft:{points:["bl","tl"],overflow:Wy,offset:[0,-4],targetOffset:Uy},topCenter:{points:["bc","tc"],overflow:Wy,offset:[0,-4],targetOffset:Uy},topRight:{points:["br","tr"],overflow:Wy,offset:[0,-4],targetOffset:Uy},bottomLeft:{points:["tl","bl"],overflow:Wy,offset:[0,4],targetOffset:Uy},bottomCenter:{points:["tc","bc"],overflow:Wy,offset:[0,4],targetOffset:Uy},bottomRight:{points:["tr","br"],overflow:Wy,offset:[0,4],targetOffset:Uy}};function Ky(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(wd(e)){var n=e.nodeName.toLowerCase(),i=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),o=Number(r),a=null;return r&&!Number.isNaN(o)?a=o:i&&null===a&&(a=0),i&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function Yy(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,_.Z)(e.querySelectorAll("*")).filter((function(e){return Ky(e,t)}));return Ky(e,t)&&n.unshift(e),n}var qy=vv.ESC,$y=vv.TAB;var Xy=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Qy(e,t){var n=e.arrow,i=void 0!==n&&n,r=e.prefixCls,o=void 0===r?"rc-dropdown":r,a=e.transitionName,s=e.animation,l=e.align,c=e.placement,u=void 0===c?"bottomLeft":c,d=e.placements,h=void 0===d?Gy:d,f=e.getPopupContainer,p=e.showAction,g=e.hideAction,m=e.overlayClassName,y=e.overlayStyle,_=e.visible,b=e.trigger,C=void 0===b?["hover"]:b,S=e.autoFocus,w=Ai(e,Xy),x=v.useState(),E=(0,k.Z)(x,2),T=E[0],I=E[1],D="visible"in e?_:T,L=v.useRef(null);v.useImperativeHandle(t,(function(){return L.current})),function(e){var t=e.visible,n=e.setTriggerVisible,i=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=v.useRef(!1),s=function(){var e,o,a,s;t&&i.current&&(null===(e=i.current)||void 0===e||null===(o=e.triggerRef)||void 0===o||null===(a=o.current)||void 0===a||null===(s=a.focus)||void 0===s||s.call(a),n(!1),"function"===typeof r&&r(!1))},l=function(){var e,t,n,r,o=Yy(null===(e=i.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(r=n.getElement)||void 0===r?void 0:r.call(n))[0];return!!(null===o||void 0===o?void 0:o.focus)&&(o.focus(),a.current=!0,!0)},c=function(e){switch(e.keyCode){case qy:s();break;case $y:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};v.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&oc(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:D,setTriggerVisible:I,triggerRef:L,onVisibleChange:e.onVisibleChange,autoFocus:S});var O=function(){var t=function(){var t=e.overlay;return"function"===typeof t?t():t}();return v.createElement(v.Fragment,null,i&&v.createElement("div",{className:"".concat(o,"-arrow")}),t)},R=g;return R||-1===C.indexOf("contextMenu")||(R=["click"]),v.createElement(ff,(0,Ft.Z)((0,Ft.Z)({builtinPlacements:h},w),{},{prefixCls:o,ref:L,popupClassName:Ja()(m,(0,N.Z)({},"".concat(o,"-show-arrow"),i)),popupStyle:y,action:C,showAction:p,hideAction:R||[],popupPlacement:u,popupAlign:l,popupTransitionName:a,popupAnimation:s,popupVisible:D,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"===typeof e.overlay?O:O(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;I(t),"function"===typeof n&&n(t)},onPopupClick:function(t){var n=e.onOverlayClick;I(!1),n&&n(t)},getPopupContainer:f}),function(){var t=e.children,n=t.props?t.props:{},i=Ja()(n.className,function(){var t=e.openClassName;return void 0!==t?t:"".concat(o,"-open")}());return D&&t?v.cloneElement(t,{className:i}):t}())}var Jy=v.forwardRef(Qy),e_=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],t_=void 0;function n_(e,t){var n=e.prefixCls,i=e.invalidate,r=e.item,o=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,h=e.children,f=e.display,p=e.order,g=e.component,m=void 0===g?"div":g,y=Ai(e,e_),_=a&&!f;function b(e){l(c,e)}v.useEffect((function(){return function(){b(null)}}),[]);var C,S=o&&r!==t_?o(r):h;i||(C={opacity:_?0:1,height:_?0:t_,overflowY:_?"hidden":t_,order:a?p:t_,pointerEvents:_?"none":t_,position:_?"absolute":t_});var w={};_&&(w["aria-hidden"]=!0);var k=v.createElement(m,Zt({className:Ja()(!i&&n,u),style:(0,Ft.Z)((0,Ft.Z)({},C),d)},w,y,{ref:t}),S);return a&&(k=v.createElement(yy,{onResize:function(e){b(e.offsetWidth)},disabled:s},k)),k}var i_=v.forwardRef(n_);i_.displayName="Item";var r_=i_;var o_=["component"],a_=["className"],s_=["className"],l_=function(e,t){var n=v.useContext(h_);if(!n){var i=e.component,r=void 0===i?"div":i,o=Ai(e,o_);return v.createElement(r,Zt({},o,{ref:t}))}var a=n.className,s=Ai(n,a_),l=e.className,c=Ai(e,s_);return v.createElement(h_.Provider,{value:null},v.createElement(r_,Zt({ref:t,className:Ja()(a,l)},s,c)))},c_=v.forwardRef(l_);c_.displayName="RawItem";var u_=c_,d_=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],h_=v.createContext(null),f_="responsive",p_="invalidate";function g_(e){return"+ ".concat(e.length," ...")}function v_(e,t){var n=e.prefixCls,i=void 0===n?"rc-overflow":n,r=e.data,o=void 0===r?[]:r,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=void 0===c?10:c,d=e.ssr,h=e.style,f=e.className,p=e.maxCount,g=e.renderRest,m=e.renderRawRest,y=e.suffix,_=e.component,b=void 0===_?"div":_,C=e.itemComponent,S=e.onVisibleChange,w=Ai(e,d_),x=function(){var e=Ql({}),t=(0,k.Z)(e,2)[1],n=(0,v.useRef)([]),i=0,r=0;return function(e){var o=i;return i+=1,n.current.length<o+1&&(n.current[o]=e),[n.current[o],function(e){n.current[o]="function"===typeof e?e(n.current[o]):e,oc.cancel(r),r=oc((function(){t({},!0)}))}]}}(),E="full"===d,T=x(null),N=(0,k.Z)(T,2),I=N[0],D=N[1],L=I||0,O=x(new Map),R=(0,k.Z)(O,2),A=R[0],M=R[1],P=x(0),Z=(0,k.Z)(P,2),F=Z[0],B=Z[1],H=x(0),z=(0,k.Z)(H,2),j=z[0],V=z[1],W=x(0),U=(0,k.Z)(W,2),G=U[0],K=U[1],Y=(0,v.useState)(null),q=(0,k.Z)(Y,2),$=q[0],X=q[1],Q=(0,v.useState)(null),J=(0,k.Z)(Q,2),ee=J[0],te=J[1],ne=v.useMemo((function(){return null===ee&&E?Number.MAX_SAFE_INTEGER:ee||0}),[ee,I]),ie=(0,v.useState)(!1),re=(0,k.Z)(ie,2),oe=re[0],ae=re[1],se="".concat(i,"-item"),le=Math.max(F,j),ce=p===f_,ue=o.length&&ce,de=p===p_,he=ue||"number"===typeof p&&o.length>p,fe=(0,v.useMemo)((function(){var e=o;return ue?e=null===I&&E?o:o.slice(0,Math.min(o.length,L/u)):"number"===typeof p&&(e=o.slice(0,p)),e}),[o,u,I,p,ue]),pe=(0,v.useMemo)((function(){return ue?o.slice(ne+1):o.slice(fe.length)}),[o,fe,ue,ne]),ge=(0,v.useCallback)((function(e,t){var n;return"function"===typeof l?l(e):null!==(n=l&&(null===e||void 0===e?void 0:e[l]))&&void 0!==n?n:t}),[l]),ve=(0,v.useCallback)(a||function(e){return e},[a]);function me(e,t,n){(ee!==e||void 0!==t&&t!==$)&&(te(e),n||(ae(e<o.length-1),null===S||void 0===S||S(e)),void 0!==t&&X(t))}function ye(e,t){M((function(n){var i=new Map(n);return null===t?i.delete(e):i.set(e,t),i}))}function _e(e){return A.get(ge(fe[e],e))}ju((function(){if(L&&le&&fe){var e=G,t=fe.length,n=t-1;if(!t)return void me(0,null);for(var i=0;i<t;i+=1){var r=_e(i);if(E&&(r=r||0),void 0===r){me(i-1,void 0,!0);break}if(e+=r,0===n&&e<=L||i===n-1&&e+_e(n)<=L){me(n,null);break}if(e+le>L){me(i-1,e-r-G+j);break}}y&&_e(0)+G>L&&X(null)}}),[L,A,j,G,ge,fe]);var be=oe&&!!pe.length,Ce={};null!==$&&ue&&(Ce={position:"absolute",left:$,top:0});var Se,we={prefixCls:se,responsive:ue,component:C,invalidate:de},ke=s?function(e,t){var n=ge(e,t);return v.createElement(h_.Provider,{key:n,value:(0,Ft.Z)((0,Ft.Z)({},we),{},{order:t,item:e,itemKey:n,registerSize:ye,display:t<=ne})},s(e,t))}:function(e,t){var n=ge(e,t);return v.createElement(r_,Zt({},we,{order:t,key:n,item:e,renderItem:ve,itemKey:n,registerSize:ye,display:t<=ne}))},xe={order:be?ne:Number.MAX_SAFE_INTEGER,className:"".concat(se,"-rest"),registerSize:function(e,t){V(t),B(j)},display:be};if(m)m&&(Se=v.createElement(h_.Provider,{value:(0,Ft.Z)((0,Ft.Z)({},we),xe)},m(pe)));else{var Ee=g||g_;Se=v.createElement(r_,Zt({},we,xe),"function"===typeof Ee?Ee(pe):Ee)}var Te=v.createElement(b,Zt({className:Ja()(!de&&i,f),style:h,ref:t},w),fe.map(ke),he?Se:null,y&&v.createElement(r_,Zt({},we,{responsive:ce,responsiveDisabled:!ue,order:ne,className:"".concat(se,"-suffix"),registerSize:function(e,t){K(t)},display:!0,style:Ce}),y));return ce&&(Te=v.createElement(yy,{onResize:function(e,t){D(t.clientWidth)},disabled:!ue},Te)),Te}var m_=v.forwardRef(v_);m_.displayName="Overflow",m_.Item=u_,m_.RESPONSIVE=f_,m_.INVALIDATE=p_;var y_=m_,__=["children","locked"],b_=v.createContext(null);function C_(e){var t=e.children,n=e.locked,i=Ai(e,__),r=v.useContext(b_),o=uo((function(){return function(e,t){var n=(0,Ft.Z)({},e);return Object.keys(t).forEach((function(e){var i=t[e];void 0!==i&&(n[e]=i)})),n}(r,i)}),[r,i],(function(e,t){return!n&&(e[0]!==t[0]||!La()(e[1],t[1]))}));return v.createElement(b_.Provider,{value:o},t)}function S_(e,t,n,i){var r=v.useContext(b_),o=r.activeKey,a=r.onActive,s=r.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),a(e)},l.onMouseLeave=function(t){null===i||void 0===i||i({key:e,domEvent:t}),s(e)}),l}var w_=["item"];function k_(e){var t=e.item,n=Ai(e,w_);return Object.defineProperty(n,"item",{get:function(){return li(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function x_(e){var t=e.icon,n=e.props,i=e.children;return("function"===typeof t?v.createElement(t,(0,Ft.Z)({},n)):t)||i||null}function E_(e){var t=v.useContext(b_),n=t.mode,i=t.rtl,r=t.inlineIndent;if("inline"!==n)return null;return i?{paddingRight:e*r}:{paddingLeft:e*r}}var T_=[],N_=v.createContext(null);function I_(){return v.useContext(N_)}var D_=v.createContext(T_);function L_(e){var t=v.useContext(D_);return v.useMemo((function(){return void 0!==e?[].concat((0,_.Z)(t),[e]):t}),[t,e])}var O_=v.createContext(null),R_=v.createContext(null);function A_(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function M_(e){return A_(v.useContext(R_),e)}var P_=v.createContext({}),Z_=["title","attribute","elementRef"],F_=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],B_=["active"],H_=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){return(0,b.Z)(this,n),t.apply(this,arguments)}return(0,C.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,i=e.elementRef,r=ns(Ai(e,Z_),["eventKey"]);return li(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),v.createElement(y_.Item,Zt({},n,{title:"string"===typeof t?t:void 0},r,{ref:i}))}}]),n}(v.Component),z_=function(e){var t,n=e.style,i=e.className,r=e.eventKey,o=(e.warnKey,e.disabled),a=e.itemIcon,s=e.children,l=e.role,c=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,h=e.onKeyDown,f=e.onFocus,p=Ai(e,F_),g=M_(r),m=v.useContext(b_),y=m.prefixCls,b=m.onItemClick,C=m.disabled,S=m.overflowDisabled,w=m.itemIcon,k=m.selectedKeys,x=m.onActive,E=v.useContext(P_)._internalRenderMenuItem,T="".concat(y,"-item"),I=v.useRef(),D=v.useRef(),L=C||o,O=L_(r);var R=function(e){return{key:r,keyPath:(0,_.Z)(O).reverse(),item:I.current,domEvent:e}},A=a||w,M=S_(r,L,c,u),P=M.active,Z=Ai(M,B_),F=k.includes(r),B=E_(O.length),H={};"option"===e.role&&(H["aria-selected"]=F);var z=v.createElement(H_,Zt({ref:I,elementRef:D,role:null===l?"none":l||"menuitem",tabIndex:o?null:-1,"data-menu-id":S&&g?null:g},p,Z,H,{component:"li","aria-disabled":o,style:(0,Ft.Z)((0,Ft.Z)({},B),n),className:Ja()(T,(t={},(0,N.Z)(t,"".concat(T,"-active"),P),(0,N.Z)(t,"".concat(T,"-selected"),F),(0,N.Z)(t,"".concat(T,"-disabled"),L),t),i),onClick:function(e){if(!L){var t=R(e);null===d||void 0===d||d(k_(t)),b(t)}},onKeyDown:function(e){if(null===h||void 0===h||h(e),e.which===vv.ENTER){var t=R(e);null===d||void 0===d||d(k_(t)),b(t)}},onFocus:function(e){x(r),null===f||void 0===f||f(e)}}),s,v.createElement(x_,{props:(0,Ft.Z)((0,Ft.Z)({},e),{},{isSelected:F}),icon:A}));return E&&(z=E(z,e,{selected:F})),z};var j_=function(e){var t=e.eventKey,n=I_(),i=L_(t);return v.useEffect((function(){if(n)return n.registerPath(t,i),function(){n.unregisterPath(t,i)}}),[i]),n?null:v.createElement(z_,e)},V_=["label","children","key","type"];function W_(e,t){return Zi(e).map((function(e,n){if(v.isValidElement(e)){var i,r,o=e.key,a=null!==(i=null===(r=e.props)||void 0===r?void 0:r.eventKey)&&void 0!==i?i:o;(null===a||void 0===a)&&(a="tmp_key-".concat([].concat((0,_.Z)(t),[n]).join("-")));var s={key:a,eventKey:a};return v.cloneElement(e,s)}return e}))}function U_(e){return(e||[]).map((function(e,t){if(e&&"object"===(0,Bt.Z)(e)){var n=e,i=n.label,r=n.children,o=n.key,a=n.type,s=Ai(n,V_),l=null!==o&&void 0!==o?o:"tmp-".concat(t);return r||"group"===a?"group"===a?v.createElement(Rb,Zt({key:l},s,{title:i}),U_(r)):v.createElement(lb,Zt({key:l},s,{title:i}),U_(r)):"divider"===a?v.createElement(Ab,Zt({key:l},s)):v.createElement(j_,Zt({key:l},s),i)}return null})).filter((function(e){return e}))}function G_(e,t,n){var i=e;return t&&(i=U_(t)),W_(i,n)}function K_(e){var t=v.useRef(e);t.current=e;var n=v.useCallback((function(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(i))}),[]);return e?n:void 0}var Y_=["className","children"],q_=function(e,t){var n=e.className,i=e.children,r=Ai(e,Y_),o=v.useContext(b_),a=o.prefixCls,s=o.mode,l=o.rtl;return v.createElement("ul",Zt({className:Ja()(a,l&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===s?"inline":"vertical"),n)},r,{"data-menu-list":!0,ref:t}),i)},$_=v.forwardRef(q_);$_.displayName="SubMenuList";var X_=$_,Q_={adjustX:1,adjustY:1},J_={topLeft:{points:["bl","tl"],overflow:Q_,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Q_,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Q_,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Q_,offset:[4,0]}},eb={topLeft:{points:["bl","tl"],overflow:Q_,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Q_,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Q_,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Q_,offset:[4,0]}};function tb(e,t,n){return t||(n?n[e]||n.other:void 0)}var nb={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ib(e){var t=e.prefixCls,n=e.visible,i=e.children,r=e.popup,o=e.popupClassName,a=e.popupOffset,s=e.disabled,l=e.mode,c=e.onVisibleChange,u=v.useContext(b_),d=u.getPopupContainer,h=u.rtl,f=u.subMenuOpenDelay,p=u.subMenuCloseDelay,g=u.builtinPlacements,m=u.triggerSubMenuAction,y=u.forceSubMenuRender,_=u.rootClassName,b=u.motion,C=u.defaultMotions,S=v.useState(!1),w=(0,k.Z)(S,2),x=w[0],E=w[1],T=h?(0,Ft.Z)((0,Ft.Z)({},eb),g):(0,Ft.Z)((0,Ft.Z)({},J_),g),I=nb[l],D=tb(l,b,C),L=(0,Ft.Z)((0,Ft.Z)({},D),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),O=v.useRef();return v.useEffect((function(){return O.current=oc((function(){E(n)})),function(){oc.cancel(O.current)}}),[n]),v.createElement(ff,{prefixCls:t,popupClassName:Ja()("".concat(t,"-popup"),(0,N.Z)({},"".concat(t,"-rtl"),h),o,_),stretch:"horizontal"===l?"minWidth":null,getPopupContainer:d,builtinPlacements:T,popupPlacement:I,popupVisible:x,popup:r,popupAlign:a&&{offset:a},action:s?[]:[m],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:c,forceRender:y,popupMotion:L},i)}function rb(e){var t=e.id,n=e.open,i=e.keyPath,r=e.children,o="inline",a=v.useContext(b_),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,h=v.useRef(!1);h.current=d===o;var f=v.useState(!h.current),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=!!h.current&&n;v.useEffect((function(){h.current&&m(!1)}),[d]);var _=(0,Ft.Z)({},tb(o,c,u));i.length>1&&(_.motionAppear=!1);var b=_.onVisibleChanged;return _.onVisibleChanged=function(e){return h.current||e||m(!0),null===b||void 0===b?void 0:b(e)},g?null:v.createElement(C_,{mode:o,locked:!h.current},v.createElement(xc,Zt({visible:y},_,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var n=e.className,i=e.style;return v.createElement(X_,{id:t,className:n,style:i},r)})))}var ob=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ab=["active"],sb=function(e){var t,n=e.style,i=e.className,r=e.title,o=e.eventKey,a=(e.warnKey,e.disabled),s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,h=e.popupOffset,f=e.onClick,p=e.onMouseEnter,g=e.onMouseLeave,m=e.onTitleClick,y=e.onTitleMouseEnter,_=e.onTitleMouseLeave,b=Ai(e,ob),C=M_(o),S=v.useContext(b_),w=S.prefixCls,x=S.mode,E=S.openKeys,T=S.disabled,I=S.overflowDisabled,D=S.activeKey,L=S.selectedKeys,O=S.itemIcon,R=S.expandIcon,A=S.onItemClick,M=S.onOpenChange,P=S.onActive,Z=v.useContext(P_)._internalRenderSubMenuItem,F=v.useContext(O_).isSubPathKey,B=L_(),H="".concat(w,"-submenu"),z=T||a,j=v.useRef(),V=v.useRef();var W=c||O,U=u||R,G=E.includes(o),K=!I&&G,Y=F(L,o),q=S_(o,z,y,_),$=q.active,X=Ai(q,ab),Q=v.useState(!1),J=(0,k.Z)(Q,2),ee=J[0],te=J[1],ne=function(e){z||te(e)},ie=v.useMemo((function(){return $||"inline"!==x&&(ee||F([D],o))}),[x,$,D,ee,o,F]),re=E_(B.length),oe=K_((function(e){null===f||void 0===f||f(k_(e)),A(e)})),ae=C&&"".concat(C,"-popup"),se=v.createElement("div",Zt({role:"menuitem",style:re,className:"".concat(H,"-title"),tabIndex:z?null:-1,ref:j,title:"string"===typeof r?r:null,"data-menu-id":I&&C?null:C,"aria-expanded":K,"aria-haspopup":!0,"aria-controls":ae,"aria-disabled":z,onClick:function(e){z||(null===m||void 0===m||m({key:o,domEvent:e}),"inline"===x&&M(o,!G))},onFocus:function(){P(o)}},X),r,v.createElement(x_,{icon:"horizontal"!==x?U:null,props:(0,Ft.Z)((0,Ft.Z)({},e),{},{isOpen:K,isSubMenu:!0})},v.createElement("i",{className:"".concat(H,"-arrow")}))),le=v.useRef(x);if("inline"!==x&&B.length>1?le.current="vertical":le.current=x,!I){var ce=le.current;se=v.createElement(ib,{mode:ce,prefixCls:H,visible:!s&&K&&"inline"!==x,popupClassName:d,popupOffset:h,popup:v.createElement(C_,{mode:"horizontal"===ce?"vertical":ce},v.createElement(X_,{id:ae,ref:V},l)),disabled:z,onVisibleChange:function(e){"inline"!==x&&M(o,e)}},se)}var ue=v.createElement(y_.Item,Zt({role:"none"},b,{component:"li",style:n,className:Ja()(H,"".concat(H,"-").concat(x),i,(t={},(0,N.Z)(t,"".concat(H,"-open"),K),(0,N.Z)(t,"".concat(H,"-active"),ie),(0,N.Z)(t,"".concat(H,"-selected"),Y),(0,N.Z)(t,"".concat(H,"-disabled"),z),t)),onMouseEnter:function(e){ne(!0),null===p||void 0===p||p({key:o,domEvent:e})},onMouseLeave:function(e){ne(!1),null===g||void 0===g||g({key:o,domEvent:e})}}),se,!I&&v.createElement(rb,{id:ae,open:K,keyPath:B},l));return Z&&(ue=Z(ue,e,{selected:Y,active:ie,open:K,disabled:z})),v.createElement(C_,{onItemClick:oe,mode:"horizontal"===x?"vertical":x,itemIcon:W,expandIcon:U},ue)};function lb(e){var t,n=e.eventKey,i=e.children,r=L_(n),o=W_(i,r),a=I_();return v.useEffect((function(){if(a)return a.registerPath(n,r),function(){a.unregisterPath(n,r)}}),[r]),t=a?o:v.createElement(sb,e,o),v.createElement(D_.Provider,{value:r},t)}var cb=vv.LEFT,ub=vv.RIGHT,db=vv.UP,hb=vv.DOWN,fb=vv.ENTER,pb=vv.ESC,gb=vv.HOME,vb=vv.END,mb=[db,hb,cb,ub];function yb(e,t){return Yy(e,!0).filter((function(e){return t.has(e)}))}function _b(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=yb(e,t),o=r.length,a=r.findIndex((function(e){return n===e}));return i<0?-1===a?a=o-1:a-=1:i>0&&(a+=1),r[a=(a+o)%o]}function bb(e,t,n,i,r,o,a,s,l,c){var u=v.useRef(),d=v.useRef();d.current=t;var h=function(){oc.cancel(u.current)};return v.useEffect((function(){return function(){h()}}),[]),function(f){var p=f.which;if([].concat(mb,[fb,pb,gb,vb]).includes(p)){var g,v,m,y=function(){return g=new Set,v=new Map,m=new Map,o().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(A_(i,e),"']"));t&&(g.add(t),m.set(t,e),v.set(e,t))})),g};y();var _=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(v.get(t),g),b=m.get(_),C=function(e,t,n,i){var r,o,a,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&i===fb)return{inlineTrigger:!0};var h=(r={},(0,N.Z)(r,db,l),(0,N.Z)(r,hb,c),r),f=(o={},(0,N.Z)(o,cb,n?c:l),(0,N.Z)(o,ub,n?l:c),(0,N.Z)(o,hb,u),(0,N.Z)(o,fb,u),o),p=(a={},(0,N.Z)(a,db,l),(0,N.Z)(a,hb,c),(0,N.Z)(a,fb,u),(0,N.Z)(a,pb,d),(0,N.Z)(a,cb,n?u:d),(0,N.Z)(a,ub,n?d:u),a);switch(null===(s={inline:h,horizontal:f,vertical:p,inlineSub:h,horizontalSub:p,verticalSub:p}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[i]){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===a(b,!0).length,n,p);if(!C&&p!==gb&&p!==vb)return;(mb.includes(p)||[gb,vb].includes(p))&&f.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!==n&&void 0!==n&&n.getAttribute("href")&&(t=n);var i=m.get(e);s(i),h(),u.current=oc((function(){d.current===i&&t.focus()}))}};if([gb,vb].includes(p)||C.sibling||!_){var w,k,x=yb(w=_&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(_):r.current,g);k=p===gb?x[0]:p===vb?x[x.length-1]:_b(w,g,_,C.offset),S(k)}else if(C.inlineTrigger)l(b);else if(C.offset>0)l(b,!0),h(),u.current=oc((function(){y();var e=_.getAttribute("aria-controls"),t=_b(document.getElementById(e),g);S(t)}),5);else if(C.offset<0){var E=a(b,!0),T=E[E.length-2],I=v.get(T);l(T,!1),S(I)}}null===c||void 0===c||c(f)}}var Cb=Math.random().toFixed(5).toString().slice(2),Sb=0;var wb="__RC_UTIL_PATH_SPLIT__",kb=function(e){return e.join(wb)},xb="rc-menu-more";function Eb(){var e=v.useState({}),t=(0,k.Z)(e,2)[1],n=(0,v.useRef)(new Map),i=(0,v.useRef)(new Map),r=v.useState([]),o=(0,k.Z)(r,2),a=o[0],s=o[1],l=(0,v.useRef)(0),c=(0,v.useRef)(!1),u=(0,v.useCallback)((function(e,r){var o=kb(r);i.current.set(o,e),n.current.set(e,o),l.current+=1;var a,s=l.current;a=function(){s===l.current&&(c.current||t({}))},Promise.resolve().then(a)}),[]),d=(0,v.useCallback)((function(e,t){var r=kb(t);i.current.delete(r),n.current.delete(e)}),[]),h=(0,v.useCallback)((function(e){s(e)}),[]),f=(0,v.useCallback)((function(e,t){var i=n.current.get(e)||"",r=i.split(wb);return t&&a.includes(r[0])&&r.unshift(xb),r}),[a]),p=(0,v.useCallback)((function(e,t){return e.some((function(e){return f(e,!0).includes(t)}))}),[f]),g=(0,v.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(wb),r=new Set;return(0,_.Z)(i.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(i.current.get(e))})),r}),[]);return v.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:h,isSubPathKey:p,getKeyPath:f,getKeys:function(){var e=(0,_.Z)(n.current.keys());return a.length&&e.push(xb),e},getSubPathKeys:g}}var Tb=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Nb=[],Ib=v.forwardRef((function(e,t){var n,i,r=e,o=r.prefixCls,a=void 0===o?"rc-menu":o,s=r.rootClassName,l=r.style,c=r.className,u=r.tabIndex,d=void 0===u?0:u,h=r.items,f=r.children,p=r.direction,g=r.id,m=r.mode,y=void 0===m?"vertical":m,b=r.inlineCollapsed,C=r.disabled,S=r.disabledOverflow,w=r.subMenuOpenDelay,x=void 0===w?.1:w,E=r.subMenuCloseDelay,T=void 0===E?.1:E,I=r.forceSubMenuRender,D=r.defaultOpenKeys,L=r.openKeys,O=r.activeKey,R=r.defaultActiveFirst,A=r.selectable,M=void 0===A||A,P=r.multiple,Z=void 0!==P&&P,F=r.defaultSelectedKeys,B=r.selectedKeys,H=r.onSelect,z=r.onDeselect,j=r.inlineIndent,V=void 0===j?24:j,W=r.motion,U=r.defaultMotions,G=r.triggerSubMenuAction,K=void 0===G?"hover":G,Y=r.builtinPlacements,q=r.itemIcon,$=r.expandIcon,X=r.overflowedIndicator,Q=void 0===X?"...":X,J=r.overflowedIndicatorPopupClassName,ee=r.getPopupContainer,te=r.onClick,ne=r.onOpenChange,ie=r.onKeyDown,re=(r.openAnimation,r.openTransitionName,r._internalRenderMenuItem),oe=r._internalRenderSubMenuItem,ae=Ai(r,Tb),se=v.useMemo((function(){return G_(f,h,Nb)}),[f,h]),le=v.useState(!1),ce=(0,k.Z)(le,2),ue=ce[0],de=ce[1],he=v.useRef(),fe=function(e){var t=Sf(e,{value:e}),n=(0,k.Z)(t,2),i=n[0],r=n[1];return v.useEffect((function(){Sb+=1;var e="".concat(Cb,"-").concat(Sb);r("rc-menu-uuid-".concat(e))}),[]),i}(g),pe="rtl"===p;var ge=v.useMemo((function(){return"inline"!==y&&"vertical"!==y||!b?[y,!1]:["vertical",b]}),[y,b]),ve=(0,k.Z)(ge,2),me=ve[0],ye=ve[1],_e=v.useState(0),be=(0,k.Z)(_e,2),Ce=be[0],Se=be[1],we=Ce>=se.length-1||"horizontal"!==me||S,ke=Sf(D,{value:L,postState:function(e){return e||Nb}}),xe=(0,k.Z)(ke,2),Ee=xe[0],Te=xe[1],Ne=function(e){Te(e),null===ne||void 0===ne||ne(e)},Ie=v.useState(Ee),De=(0,k.Z)(Ie,2),Le=De[0],Oe=De[1],Re="inline"===me,Ae=v.useRef(!1);v.useEffect((function(){Re&&Oe(Ee)}),[Ee]),v.useEffect((function(){Ae.current&&(Re?Te(Le):Ne(Nb))}),[Re]),v.useEffect((function(){return Ae.current=!0,function(){Ae.current=!1}}),[]);var Me=Eb(),Pe=Me.registerPath,Ze=Me.unregisterPath,Fe=Me.refreshOverflowKeys,Be=Me.isSubPathKey,He=Me.getKeyPath,ze=Me.getKeys,je=Me.getSubPathKeys,Ve=v.useMemo((function(){return{registerPath:Pe,unregisterPath:Ze}}),[Pe,Ze]),We=v.useMemo((function(){return{isSubPathKey:Be}}),[Be]);v.useEffect((function(){Fe(we?Nb:se.slice(Ce+1).map((function(e){return e.key})))}),[Ce,we]);var Ue=Sf(O||R&&(null===(n=se[0])||void 0===n?void 0:n.key),{value:O}),Ge=(0,k.Z)(Ue,2),Ke=Ge[0],Ye=Ge[1],qe=K_((function(e){Ye(e)})),$e=K_((function(){Ye(void 0)}));(0,v.useImperativeHandle)(t,(function(){return{list:he.current,focus:function(e){var t,n,i,r,o=null!==Ke&&void 0!==Ke?Ke:null===(t=se.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;o&&(null===(n=he.current)||void 0===n||null===(i=n.querySelector("li[data-menu-id='".concat(A_(fe,o),"']")))||void 0===i||null===(r=i.focus)||void 0===r||r.call(i,e))}}}));var Xe=Sf(F||[],{value:B,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?Nb:[e]}}),Qe=(0,k.Z)(Xe,2),Je=Qe[0],et=Qe[1],tt=K_((function(e){null===te||void 0===te||te(k_(e)),function(e){if(M){var t,n=e.key,i=Je.includes(n);t=Z?i?Je.filter((function(e){return e!==n})):[].concat((0,_.Z)(Je),[n]):[n],et(t);var r=(0,Ft.Z)((0,Ft.Z)({},e),{},{selectedKeys:t});i?null===z||void 0===z||z(r):null===H||void 0===H||H(r)}!Z&&Ee.length&&"inline"!==me&&Ne(Nb)}(e)})),nt=K_((function(e,t){var n=Ee.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==me){var i=je(e);n=n.filter((function(e){return!i.has(e)}))}La()(Ee,n)||Ne(n)})),it=K_(ee),rt=bb(me,Ke,pe,fe,he,ze,He,Ye,(function(e,t){var n=null!==t&&void 0!==t?t:!Ee.includes(e);nt(e,n)}),ie);v.useEffect((function(){de(!0)}),[]);var ot=v.useMemo((function(){return{_internalRenderMenuItem:re,_internalRenderSubMenuItem:oe}}),[re,oe]),at="horizontal"!==me||S?se:se.map((function(e,t){return v.createElement(C_,{key:e.key,overflowDisabled:t>Ce},e)})),st=v.createElement(y_,Zt({id:g,ref:he,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:j_,className:Ja()(a,"".concat(a,"-root"),"".concat(a,"-").concat(me),c,(i={},(0,N.Z)(i,"".concat(a,"-inline-collapsed"),ye),(0,N.Z)(i,"".concat(a,"-rtl"),pe),i),s),dir:p,style:l,role:"menu",tabIndex:d,data:at,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?se.slice(-t):null;return v.createElement(lb,{eventKey:xb,title:Q,disabled:we,internalPopupClose:0===t,popupClassName:J},n)},maxCount:"horizontal"!==me||S?y_.INVALIDATE:y_.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Se(e)},onKeyDown:rt},ae));return v.createElement(P_.Provider,{value:ot},v.createElement(R_.Provider,{value:fe},v.createElement(C_,{prefixCls:a,rootClassName:s,mode:me,openKeys:Ee,rtl:pe,disabled:C,motion:ue?W:null,defaultMotions:ue?U:null,activeKey:Ke,onActive:qe,onInactive:$e,selectedKeys:Je,inlineIndent:V,subMenuOpenDelay:x,subMenuCloseDelay:T,forceSubMenuRender:I,builtinPlacements:Y,triggerSubMenuAction:K,getPopupContainer:it,itemIcon:q,expandIcon:$,onItemClick:tt,onOpenChange:nt},v.createElement(O_.Provider,{value:We},st),v.createElement("div",{style:{display:"none"},"aria-hidden":!0},v.createElement(N_.Provider,{value:Ve},se)))))})),Db=["className","title","eventKey","children"],Lb=["children"],Ob=function(e){var t=e.className,n=e.title,i=(e.eventKey,e.children),r=Ai(e,Db),o=v.useContext(b_).prefixCls,a="".concat(o,"-item-group");return v.createElement("li",Zt({},r,{onClick:function(e){return e.stopPropagation()},className:Ja()(a,t)}),v.createElement("div",{className:"".concat(a,"-title"),title:"string"===typeof n?n:void 0},n),v.createElement("ul",{className:"".concat(a,"-list")},i))};function Rb(e){var t=e.children,n=Ai(e,Lb),i=W_(t,L_(n.eventKey));return I_()?i:v.createElement(Ob,ns(n,["warnKey"]),i)}function Ab(e){var t=e.className,n=e.style,i=v.useContext(b_).prefixCls;return I_()?null:v.createElement("li",{className:Ja()("".concat(i,"-item-divider"),t),style:n})}var Mb=Ib;Mb.Item=j_,Mb.SubMenu=lb,Mb.ItemGroup=Rb,Mb.Divider=Ab;var Pb=Mb,Zb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Fb=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Zb}))};Fb.displayName="EllipsisOutlined";var Bb=v.forwardRef(Fb),Hb=new Ti("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),zb=new Ti("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),jb=new Ti("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Vb=new Ti("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Wb=new Ti("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Ub=new Ti("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Gb=new Ti("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Kb=new Ti("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Yb={"slide-up":{inKeyframes:Hb,outKeyframes:zb},"slide-down":{inKeyframes:jb,outKeyframes:Vb},"slide-left":{inKeyframes:Wb,outKeyframes:Ub},"slide-right":{inKeyframes:Gb,outKeyframes:Kb}},qb=function(e,t){var n,i=e.antCls+"-"+t,r=Yb[t],o=r.inKeyframes,a=r.outKeyframes;return[Xc(i,o,a,e.motionDurationMid),(n={},(0,N.Z)(n,"\n "+i+"-enter,\n "+i+"-appear\n ",{opacity:0,animationTimingFunction:e.motionEaseOutQuint}),(0,N.Z)(n,i+"-leave",{animationTimingFunction:e.motionEaseInQuint}),n)]},$b=function(e){var t,n=e.componentCls,i=e.motionDurationSlow,r=e.menuHorizontalHeight,o=e.colorSplit,a=e.lineWidth,s=e.lineType,l=e.menuItemPaddingInline,c=e.menuItemMarginInline;return(0,N.Z)({},n+"-horizontal",(t={lineHeight:r+"px",border:0,borderBottom:a+"px "+s+" "+o,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'}},(0,N.Z)(t,n+"-item, "+n+"-submenu",{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l,marginInline:c}),(0,N.Z)(t,"> "+n+"-item:hover,\n > "+n+"-item-active,\n > "+n+"-submenu "+n+"-submenu-title:hover",{backgroundColor:"transparent"}),(0,N.Z)(t,n+"-item, "+n+"-submenu-title",{transition:["border-color "+i,"background "+i].join(",")}),(0,N.Z)(t,n+"-submenu-arrow",{display:"none"}),t))},Xb=function(e){var t,n=e.componentCls,i=e.menuArrowOffset;return t={},(0,N.Z)(t,n+"-rtl",{direction:"rtl"}),(0,N.Z)(t,n+"-submenu-rtl",{transformOrigin:"100% 0"}),(0,N.Z)(t,n+"-rtl"+n+"-vertical,\n "+n+"-submenu-rtl "+n+"-vertical",(0,N.Z)({},n+"-submenu-arrow",{"&::before":{transform:"rotate(-45deg) translateY(-"+i+")"},"&::after":{transform:"rotate(45deg) translateY("+i+")"}})),t},Qb=function(e){return Zt({},za(e))},Jb=function(e,t){var n,i,r,o,a,s,l=e.componentCls,c=e.colorItemText,u=e.colorItemTextSelected,d=e.colorItemTextSelectedHorizontal,h=e.colorGroupTitle,f=e.colorItemBg,p=e.colorSubItemBg,g=e.colorItemBgSelectedHorizontal,v=e.colorItemBgSelected,m=e.colorActiveBarHeight,y=e.colorActiveBarWidth,_=e.colorActiveBarBorderSize,b=e.motionDurationSlow,C=e.motionEaseInOut,S=e.motionEaseOut,w=e.menuItemPaddingInline,k=e.motionDurationMid,x=e.colorItemTextHover,E=e.lineType,T=e.colorSplit,I=e.colorItemTextDisabled,D=e.colorDangerItemText,L=e.colorDangerItemTextHover,O=e.colorDangerItemTextSelected,R=e.colorDangerItemBgActive,A=e.colorDangerItemBgSelected,M=e.colorItemBgHover;return(0,N.Z)({},l+"-"+t,(s={color:c,background:f},(0,N.Z)(s,"&"+l+"-root:focus-visible",Zt({},Qb(e))),(0,N.Z)(s,l+"-item-group-title",{color:h}),(0,N.Z)(s,l+"-submenu-selected",(0,N.Z)({},"> "+l+"-submenu-title",{color:u})),(0,N.Z)(s,l+"-item-disabled, "+l+"-submenu-disabled",{color:I+" !important"}),(0,N.Z)(s,l+"-item:hover, "+l+"-submenu-title:hover",(0,N.Z)({},"&:not("+l+"-item-selected):not("+l+"-submenu-selected)",{color:x})),(0,N.Z)(s,"&:not("+l+"-horizontal)",(n={},(0,N.Z)(n,l+"-item:not("+l+"-item-selected)",{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:v}}),(0,N.Z)(n,l+"-submenu-title",{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:v}}),n)),(0,N.Z)(s,l+"-item-danger",(i={color:D},(0,N.Z)(i,"&"+l+"-item:hover",(0,N.Z)({},"&:not("+l+"-item-selected):not("+l+"-submenu-selected)",{color:L})),(0,N.Z)(i,"&"+l+"-item:active",{background:R}),i)),(0,N.Z)(s,l+"-item a",{"&, &:hover":{color:"inherit"}}),(0,N.Z)(s,l+"-item-selected",(r={color:u},(0,N.Z)(r,"&"+l+"-item-danger",{color:O}),(0,N.Z)(r,"a, a:hover",{color:"inherit"}),r)),(0,N.Z)(s,"&:not("+l+"-horizontal) "+l+"-item-selected",(0,N.Z)({backgroundColor:v},"&"+l+"-item-danger",{backgroundColor:A})),(0,N.Z)(s,l+"-item, "+l+"-submenu-title",(0,N.Z)({},"&:not("+l+"-item-disabled):focus-visible",Zt({},Qb(e)))),(0,N.Z)(s,"&"+l+"-submenu > "+l,{backgroundColor:f}),(0,N.Z)(s,"&"+l+"-popup > "+l,{backgroundColor:f}),(0,N.Z)(s,"&"+l+"-horizontal",(0,N.Z)({},"> "+l+"-item, > "+l+"-submenu",(o={top:_,marginTop:-_,marginBottom:0,borderRadius:e.radiusItem,"&::after":{position:"absolute",insetInline:w,bottom:0,borderBottom:m+"px solid transparent",transition:"border-color "+b+" "+C,content:'""'}},(0,N.Z)(o,"&:hover, &-active, &-open",{color:d,"&::after":{borderWidth:m+"px",borderBottomColor:d}}),(0,N.Z)(o,"&-selected",{color:d,backgroundColor:g,"&::after":{borderWidth:m+"px",borderBottomColor:d}}),o))),(0,N.Z)(s,"&"+l+"-root",(0,N.Z)({},"&"+l+"-inline, &"+l+"-vertical",{borderInlineEnd:_+"px "+E+" "+T})),(0,N.Z)(s,"&"+l+"-inline",(a={},(0,N.Z)(a,l+"-sub"+l+"-inline",{background:p}),(0,N.Z)(a,l+"-item, "+l+"-submenu-title",_&&y?{width:"calc(100% + "+_+"px)"}:{}),(0,N.Z)(a,l+"-item",(0,N.Z)({position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:y+"px solid "+u,transform:"scaleY(0.0001)",opacity:0,transition:["transform "+k+" "+S,"opacity "+k+" "+S].join(","),content:'""'}},"&"+l+"-item-danger",{"&::after":{borderInlineEndColor:O}})),(0,N.Z)(a,l+"-selected, "+l+"-item-selected",{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform "+k+" "+C,"opacity "+k+" "+C].join(",")}}),a)),s))},eC=function(e){var t,n=e.componentCls,i=e.menuItemHeight,r=e.menuItemMarginInline,o=e.itemMarginInline,a=e.padding,s=e.menuArrowSize+e.fontSize;return t={},(0,N.Z)(t,n+"-item",{position:"relative"}),(0,N.Z)(t,n+"-item, "+n+"-submenu-title",{height:i,lineHeight:i+"px",paddingInline:a,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:r,width:"calc(100% - "+2*o+"px)"}),(0,N.Z)(t,n+"-submenu",{paddingBottom:.02}),(0,N.Z)(t,"> "+n+"-item,\n > "+n+"-submenu > "+n+"-submenu-title",{height:i,lineHeight:i+"px"}),(0,N.Z)(t,n+"-item-group-list "+n+"-submenu-title,\n "+n+"-submenu-title",{paddingInlineEnd:s}),t},tC=function(e){var t,n,i,r,o,a,s,l=e.componentCls,c=e.iconCls,u=e.menuItemHeight,d=e.colorTextLightSolid,h=e.dropdownWidth,f=e.controlHeightLG,p=e.motionDurationMid,g=e.motionEaseOut,v=e.paddingXL,m=e.fontSizeSM,y=e.fontSizeLG,_=e.motionDurationSlow,b=e.paddingXS,C=e.boxShadowSecondary,S={height:u,lineHeight:u+"px",listStylePosition:"inside",listStyleType:"disc"};return[(t={},(0,N.Z)(t,l,(0,N.Z)({},"&-inline, &-vertical",Zt((0,N.Z)({},"&"+l+"-root",{boxShadow:"none"}),eC(e)))),(0,N.Z)(t,l+"-submenu-popup",(0,N.Z)({},l+"-vertical",Zt(Zt({},eC(e)),{boxShadow:C}))),t),(0,N.Z)({},l+"-submenu-popup "+l+"-vertical"+l+"-sub",{minWidth:h,maxHeight:"calc(100vh - "+2.5*f+"px)",padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}),(0,N.Z)({},l+"-inline",(r={width:"100%"},(0,N.Z)(r,"&"+l+"-root",(0,N.Z)({},l+"-item, "+l+"-submenu-title",(n={display:"flex",alignItems:"center",transition:["border-color "+_,"background "+_,"padding "+p+" "+g]},(0,N.Z)(n,"> "+l+"-title-content",{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"}),(0,N.Z)(n,"> *",{flex:"none"}),n))),(0,N.Z)(r,l+"-sub"+l+"-inline",(i={padding:0,border:0,borderRadius:0,boxShadow:"none"},(0,N.Z)(i,"& > "+l+"-submenu > "+l+"-submenu-title",S),(0,N.Z)(i,"& "+l+"-item-group-title",{paddingInlineStart:v}),i)),(0,N.Z)(r,l+"-item",S),r)),(0,N.Z)({},l+"-inline-collapsed",(s={width:2*u},(0,N.Z)(s,"&"+l+"-root",(0,N.Z)({},l+"-item, "+l+"-submenu "+l+"-submenu-title",(0,N.Z)({},"> "+l+"-inline-collapsed-noicon",{fontSize:y,textAlign:"center"}))),(0,N.Z)(s,"> "+l+"-item,\n > "+l+"-item-group > "+l+"-item-group-list > "+l+"-item,\n > "+l+"-item-group > "+l+"-item-group-list > "+l+"-submenu > "+l+"-submenu-title,\n > "+l+"-submenu > "+l+"-submenu-title",(o={insetInlineStart:0,paddingInline:"calc(50% - "+m+"px)",textOverflow:"clip"},(0,N.Z)(o,l+"-submenu-arrow",{opacity:0}),(0,N.Z)(o,l+"-item-icon, "+c,{margin:0,fontSize:y,lineHeight:u+"px","+ span":{display:"inline-block",opacity:0}}),o)),(0,N.Z)(s,l+"-item-icon, "+c,{display:"inline-block"}),(0,N.Z)(s,"&-tooltip",(a={pointerEvents:"none"},(0,N.Z)(a,l+"-item-icon, "+c,{display:"none"}),(0,N.Z)(a,"a, a:hover",{color:d}),a)),(0,N.Z)(s,l+"-item-group-title",Zt(Zt({},Za),{paddingInline:b})),s))]},nC=function(e){var t,n,i,r,o=e.antCls,a=e.componentCls,s=e.fontSize,l=e.motionDurationSlow,c=e.motionDurationMid,u=e.motionEaseInOut,d=e.motionEaseOut,h=e.lineHeight,f=e.paddingXS,p=e.padding,g=e.colorSplit,v=e.lineWidth,m=e.iconCls,y=e.zIndexPopup,_=e.borderRadius,b=e.borderRadiusLG,C=e.radiusSubMenuItem,S=e.menuArrowSize,w=e.controlHeightSM,k=e.menuArrowOffset,x=e.lineType,E=e.menuPanelMaskInset;return[(0,N.Z)({"":(0,N.Z)({},""+a,(0,N.Z)({},"&-hidden",{display:"none"}))},a+"-submenu-hidden",{display:"none"}),(0,N.Z)({},a,Zt(Zt(Zt({},Fa(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),(r={marginBottom:0,paddingInlineStart:0,fontSize:s,lineHeight:0,listStyle:"none",outline:"none",transition:["background "+l,"width "+l+" cubic-bezier(0.2, 0, 0, 1) 0s"].join(",")},(0,N.Z)(r,"ul, ol",{margin:0,padding:0,listStyle:"none"}),(0,N.Z)(r,"&-overflow",(0,N.Z)({display:"flex"},a+"-item",{flex:"none"})),(0,N.Z)(r,a+"-item, "+a+"-submenu, "+a+"-submenu-title",{borderRadius:e.radiusItem}),(0,N.Z)(r,a+"-item-group-title",{padding:f+"px "+p+"px",fontSize:s,lineHeight:h,transition:"all "+l}),(0,N.Z)(r,"&-horizontal "+a+"-submenu",{transition:["border-color "+l+" "+u,"background "+l+" "+u].join(",")}),(0,N.Z)(r,a+"-submenu, "+a+"-submenu-inline",{transition:["border-color "+l+" "+u,"background "+l+" "+u,"padding "+c+" "+u].join(",")}),(0,N.Z)(r,a+"-submenu "+a+"-sub",{cursor:"initial",transition:["background "+l+" "+u,"padding "+l+" "+u]}),(0,N.Z)(r,a+"-title-content",{transition:"color "+l}),(0,N.Z)(r,a+"-item a",{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}}),(0,N.Z)(r,a+"-item-divider",{overflow:"hidden",lineHeight:0,borderColor:g,borderStyle:x,borderTopWidth:v,marginBlock:v,padding:0,"&-dashed":{borderStyle:"dashed"}}),(0,N.Z)(r,a+"-item, "+a+"-submenu-title",(t={position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:["border-color "+l,"background "+l,"padding "+l+" "+u].join(",")},(0,N.Z)(t,a+"-item-icon, "+m,{minWidth:s,fontSize:s,transition:["font-size "+c+" "+d,"margin "+l+" "+u,"color "+l].join(","),"+ span":{marginInlineStart:w-s,opacity:1,transition:["opacity "+l+" "+u,"margin "+l,"color "+l].join(",")}}),(0,N.Z)(t,a+"-item-icon",Zt({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"},"& &-icon":{display:"block"}})),(0,N.Z)(t,"&"+a+"-item-only-child",(0,N.Z)({},"> "+m+", > "+a+"-item-icon",{marginInlineEnd:0})),t)),(0,N.Z)(r,a+"-item-disabled, "+a+"-submenu-disabled",(0,N.Z)({background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"}},"> "+a+"-submenu-title",{color:"inherit !important",cursor:"not-allowed"})),(0,N.Z)(r,a+"-item-group",(0,N.Z)({},a+"-item-group-list",(0,N.Z)({margin:0,padding:0},a+"-item, "+a+"-submenu-title",{paddingInline:2*s+"px "+p+"px"}))),(0,N.Z)(r,"&-submenu",(0,N.Z)({"&-popup":{position:"absolute",zIndex:y,background:"transparent",borderRadius:b,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:E+"px 0 0",zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:E}},"> "+a,(n={borderRadius:b},(0,N.Z)(n,"> "+a+"-item",{borderRadius:C}),(0,N.Z)(n,a+"-submenu-title::after",{transition:"transform "+l+" "+u}),n))),(0,N.Z)(r,a+"-submenu",(i={},(0,N.Z)(i,"&-expand-icon, &-arrow",{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:S,color:"currentcolor",transform:"translateY(-50%)",transition:"transform "+l+" "+u}),(0,N.Z)(i,"&-arrow",{"&::before, &::after":{position:"absolute",width:.6*S,height:.15*S,backgroundColor:"currentcolor",borderRadius:_,transition:["background "+l+" "+u,"transform "+l+" "+u,"top "+l+" "+u,"color "+l+" "+u].join(","),content:'""'},"&::before":{transform:"rotate(45deg) translateY(-"+k+")"},"&::after":{transform:"rotate(-45deg) translateY("+k+")"}}),i)),(0,N.Z)(r,"&-inline-collapsed "+a+"-submenu-arrow,\n &-inline "+a+"-submenu-arrow",{"&::before":{transform:"rotate(-45deg) translateX("+k+")"},"&::after":{transform:"rotate(45deg) translateX(-"+k+")"}}),(0,N.Z)(r,a+"-submenu-open"+a+"-submenu-inline > "+a+"-submenu-title > "+a+"-submenu-arrow",{transform:"translateY(-"+.2*S+"px)","&::after":{transform:"rotate(-45deg) translateX(-"+k+")"},"&::before":{transform:"rotate(45deg) translateX("+k+")"}}),r))),(0,N.Z)({},o+"-layout-header",(0,N.Z)({},a,{lineHeight:"inherit"}))]},iC=function(e,t){var n=hs("Menu",(function(e,n){var i=n.overrideComponentToken;if(!1===t)return[];var r=e.colorPrimary,o=e.colorError,a=e.colorErrorHover,s=e.colorTextLightSolid,l=e.colorTextSecondary,c=e.controlHeightLG,u=e.fontSize/7*5,d=cs(e,{menuItemHeight:c,menuItemPaddingInline:e.margin,menuItemMarginInline:e.marginXXS,menuArrowSize:u,menuHorizontalHeight:1.15*c,menuArrowOffset:.25*u+"px",menuPanelMaskInset:-7}),h=cs(d,{colorItemText:new oa(s).setAlpha(.65).toRgbString(),colorItemTextHover:s,colorGroupTitle:l,colorItemTextSelected:s,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:r,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new oa(s).setAlpha(.25).toRgbString(),colorDangerItemText:o,colorDangerItemTextHover:a,colorDangerItemTextSelected:s,colorDangerItemBgActive:o,colorDangerItemBgSelected:o},Zt({},i));return[nC(d),$b(d),tC(d),Jb(d,"light"),Jb(h,"dark"),Xb(d),hu(d),qb(d,"slide-up"),qb(d,"slide-down"),du(d,"zoom-big")]}),(function(e){var t=e.colorPrimary,n=e.colorError,i=e.colorTextDisabled,r=e.colorErrorBg,o=e.colorText,a=e.colorTextDescription,s=e.colorBgContainer,l=e.colorFillAlter,c=e.colorFillContent,u=e.lineWidth,d=e.lineWidthBold,h=e.controlItemBgActiveHover,f=e.colorBgTextHover;return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,colorItemText:o,colorItemTextHover:o,colorItemTextHoverHorizontal:t,colorGroupTitle:a,colorItemTextSelected:o,colorItemTextSelectedHorizontal:t,colorItemBg:s,colorItemBgHover:f,colorItemBgActive:c,colorSubItemBg:l,colorItemBgSelected:h,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:d,colorActiveBarBorderSize:u,colorItemTextDisabled:i,colorDangerItemText:n,colorDangerItemTextHover:n,colorDangerItemTextSelected:n,colorDangerItemBgActive:r,colorDangerItemBgSelected:r,itemMarginInline:e.marginXXS}}));return n(e)},rC=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},oC=v.createContext(null),aC=function(e){var t=e.children,n=rC(e,["children"]),i=v.useContext(oC),r=v.useMemo((function(){return Zt(Zt({},i),n)}),[i,n.prefixCls,n.mode,n.selectable]);return v.createElement(oC.Provider,{value:r},t)},sC=oC,lC=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},cC=function(e){var t=e.prefixCls,n=e.className,i=e.dashed,r=lC(e,["prefixCls","className","dashed"]),o=(0,v.useContext(wa).getPrefixCls)("menu",t),a=Ja()((0,N.Z)({},o+"-item-divider-dashed",!!i),n);return v.createElement(Ab,Zt({className:a},r))},uC=(0,v.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),dC=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},hC=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){var e;return(0,b.Z)(this,n),(e=t.apply(this,arguments)).renderItem=function(t){var n,i,r=t.siderCollapsed,o=e.context,a=o.prefixCls,s=o.firstLevel,l=o.inlineCollapsed,c=o.direction,u=o.disableMenuItemTitleTooltip,d=e.props,h=d.className,f=d.children,p=e.props,g=p.title,m=p.icon,y=p.danger,_=dC(p,["title","icon","danger"]),b=g;"undefined"===typeof g?b=s?f:"":!1===g&&(b="");var C={title:b};r||l||(C.title=null,C.open=!1);var S=Zi(f).length,w=v.createElement(j_,Zt({},_,{className:Ja()((n={},(0,N.Z)(n,a+"-item-danger",y),(0,N.Z)(n,a+"-item-only-child",1===(m?S+1:S)),n),h),title:"string"===typeof g?g:void 0}),os(m,{className:Ja()(is(m)?null===(i=m.props)||void 0===i?void 0:i.className:"",a+"-item-icon")}),e.renderItemChildren(l));return u||(w=v.createElement(Vf,Zt({},C,{placement:"rtl"===c?"left":"right",overlayClassName:a+"-inline-collapsed-tooltip"}),w)),w},e}return(0,C.Z)(n,[{key:"renderItemChildren",value:function(e){var t=this.context,n=t.prefixCls,i=t.firstLevel,r=this.props,o=r.icon,a=r.children,s=v.createElement("span",{className:n+"-title-content"},a);return(!o||is(a)&&"span"===a.type)&&a&&e&&i&&"string"===typeof a?v.createElement("div",{className:n+"-inline-collapsed-noicon"},a.charAt(0)):s}},{key:"render",value:function(){return v.createElement(fl.Consumer,null,this.renderItem)}}]),n}(v.Component);hC.contextType=uC;var fC=function(e){var t,n,i=e.popupClassName,r=e.icon,o=e.title,a=e.theme,s=v.useContext(uC),l=s.prefixCls,c=s.inlineCollapsed,u=s.theme,d=s.mode,h=L_();if(r){var f=is(o)&&"span"===o.type;n=v.createElement(v.Fragment,null,os(r,{className:Ja()(is(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",l+"-item-icon")}),f?o:v.createElement("span",{className:l+"-title-content"},o))}else n=c&&!h.length&&o&&"string"===typeof o?v.createElement("div",{className:l+"-inline-collapsed-noicon"},o.charAt(0)):v.createElement("span",{className:l+"-title-content"},o);var p=v.useMemo((function(){return Zt(Zt({},s),{firstLevel:!1})}),[s]),g="horizontal"===d?[0,8]:[10,0];return v.createElement(uC.Provider,{value:p},v.createElement(lb,Zt({popupOffset:g},ns(e,["icon"]),{title:n,popupClassName:Ja()(l,i,l+"-"+(a||u))})))},pC=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function gC(e){return(e||[]).map((function(e,t){if(e&&"object"===(0,Bt.Z)(e)){var n=e,i=n.label,r=n.children,o=n.key,a=n.type,s=pC(n,["label","children","key","type"]),l=null!==o&&void 0!==o?o:"tmp-"+t;return r||"group"===a?"group"===a?v.createElement(Rb,Zt({key:l},s,{title:i}),gC(r)):v.createElement(fC,Zt({key:l},s,{title:i}),gC(r)):"divider"===a?v.createElement(cC,Zt({key:l},s)):v.createElement(hC,Zt({key:l},s),i)}return null})).filter((function(e){return e}))}function vC(e){return v.useMemo((function(){return e?gC(e):e}),[e])}var mC=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},yC=(0,v.forwardRef)((function(e,t){var n,i=v.useContext(sC),r=i||{},o=v.useContext(wa),a=o.getPrefixCls,s=o.getPopupContainer,l=o.direction,c=a(),u=e.prefixCls,d=e.className,h=e.theme,f=void 0===h?"light":h,p=e.expandIcon,g=e._internalDisableMenuItemTitleTooltip,m=e.inlineCollapsed,y=e.siderCollapsed,_=e.items,b=e.children,C=e.rootClassName,S=e.mode,w=e.selectable,x=e.onClick,E=ns(mC(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick"]),["collapsedWidth"]),T=vC(_)||b;null===(n=r.validator)||void 0===n||n.call(r,{mode:S});var N,I=bf((function(){var e;null===x||void 0===x||x.apply(void 0,arguments),null===(e=r.onClick)||void 0===e||e.call(r)})),D=r.mode||S,L=null!==w&&void 0!==w?w:r.selectable,O=v.useMemo((function(){return void 0!==y?y:m}),[m,y]),R={horizontal:{motionName:c+"-slide-up"},inline:Oc(c),other:{motionName:c+"-zoom-big"}},A=a("menu",u||r.prefixCls),M=iC(A,!i),P=(0,k.Z)(M,2),Z=P[0],F=P[1],B=Ja()(A+"-"+f,d);N="function"===typeof p?p:os(p||r.expandIcon,{className:A+"-submenu-expand-icon"});var H=v.useMemo((function(){return{prefixCls:A,inlineCollapsed:O||!1,direction:l,firstLevel:!0,theme:f,mode:D,disableMenuItemTitleTooltip:g}}),[A,O,l,g,f]);return Z(v.createElement(sC.Provider,{value:null},v.createElement(uC.Provider,{value:H},v.createElement(Pb,Zt({getPopupContainer:s,overflowedIndicator:v.createElement(Bb,null),overflowedIndicatorPopupClassName:A+"-"+f,mode:D,selectable:L,onClick:I},E,{inlineCollapsed:O,className:B,prefixCls:A,direction:l,defaultMotions:R,expandIcon:N,ref:t,rootClassName:Ja()(C,F)}),T))))})),_C=yC,bC=(0,v.forwardRef)((function(e,t){var n=(0,v.useRef)(null),i=v.useContext(fl);return(0,v.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=n.current)||void 0===t||t.focus(e)},menu:n.current}})),v.createElement(_C,Zt({ref:n},e,i))}));bC.Divider=cC,bC.Item=hC,bC.SubMenu=fC,bC.ItemGroup=Rb;var CC=bC;function SC(e,t,n){return function(i){var r=i.prefixCls,o=i.style,a=v.useRef(null),s=v.useState(0),l=(0,k.Z)(s,2),c=l[0],u=l[1],d=v.useState(0),h=(0,k.Z)(d,2),f=h[0],p=h[1],g=Sf(!1,{value:i.open}),m=(0,k.Z)(g,2),y=m[0],_=m[1],b=(0,v.useContext(wa).getPrefixCls)(t||"select",r);return v.useEffect((function(){if(_(!0),"undefined"!==typeof ResizeObserver){var e=new ResizeObserver((function(e){var t=e[0].target;u(t.offsetHeight+8),p(t.offsetWidth)})),t=setInterval((function(){var i,r=n?"."+n(b):"."+b+"-dropdown",o=null===(i=a.current)||void 0===i?void 0:i.querySelector(r);o&&(clearInterval(t),e.observe(o))}),10);return function(){clearInterval(t),e.disconnect()}}}),[]),v.createElement(Xa,{theme:{token:{motionDurationFast:"0.01s",motionDurationMid:"0.01s",motionDurationSlow:"0.01s"}}},v.createElement("div",{ref:a,style:{paddingBottom:c,position:"relative",width:"fit-content",minWidth:f}},v.createElement(e,Zt({},i,{style:Zt(Zt({},o),{margin:0}),open:y,visible:y,getPopupContainer:function(){return a.current}}))))}}var wC=new Ti("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kC=new Ti("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),xC=new Ti("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),EC=new Ti("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),TC=new Ti("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),NC=new Ti("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),IC={"move-up":{inKeyframes:new Ti("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Ti("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:wC,outKeyframes:kC},"move-left":{inKeyframes:xC,outKeyframes:EC},"move-right":{inKeyframes:TC,outKeyframes:NC}},DC=function(e,t){var n,i=e.antCls+"-"+t,r=IC[t],o=r.inKeyframes,a=r.outKeyframes;return[Xc(i,o,a,e.motionDurationMid),(n={},(0,N.Z)(n,"\n "+i+"-enter,\n "+i+"-appear\n ",{opacity:0,animationTimingFunction:e.motionEaseOutCirc}),(0,N.Z)(n,i+"-leave",{animationTimingFunction:e.motionEaseInOutCirc}),n)]},LC=function(e){var t,n=e.componentCls,i=e.antCls,r=e.paddingXS,o=e.opacityLoading;return(0,N.Z)({},n+"-button",(0,N.Z)({whiteSpace:"nowrap"},"&"+i+"-btn-group > "+i+"-btn",(t={},(0,N.Z)(t,"&-loading, &-loading + "+i+"-btn",{cursor:"default",pointerEvents:"none",opacity:o}),(0,N.Z)(t,"&:last-child:not(:first-child):not("+i+"-btn-icon-only)",{paddingInline:r}),t)))},OC=function(e){var t=e.componentCls,n=e.menuCls,i=e.colorError,r=e.colorTextLightSolid,o=n+"-item";return(0,N.Z)({},t+", "+t+"-menu-submenu",(0,N.Z)({},n+" "+o,(0,N.Z)({},"&"+o+"-danger",{color:i,"&:hover":{color:r,backgroundColor:i}})))},RC=function(e){var t,n,i,r,o=e.componentCls,a=e.menuCls,s=e.zIndexPopup,l=e.dropdownArrowDistance,c=e.dropdownArrowOffset,u=e.sizePopupArrow,d=e.antCls,h=e.iconCls,f=e.motionDurationMid,p=e.dropdownPaddingVertical,g=e.fontSize,v=e.dropdownEdgeChildPadding,m=e.borderRadius,y=e.colorTextDisabled,_=e.fontSizeIcon,b=e.controlPaddingHorizontal,C=e.colorBgElevated,S=e.boxShadowPopoverArrow;return[(0,N.Z)({},o,Zt(Zt({},Fa(e)),(n={position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:s,display:"block","&::before":{position:"absolute",insetBlock:u/2-l,zIndex:-9999,opacity:1e-4,content:'""'}},(0,N.Z)(n,o+"-wrap",(t={position:"relative"},(0,N.Z)(t,d+"-btn > "+h+"-down",{fontSize:_}),(0,N.Z)(t,h+"-down::before",{transition:"transform "+f}),t)),(0,N.Z)(n,o+"-wrap-open",(0,N.Z)({},h+"-down::before",{transform:"rotate(180deg)"})),(0,N.Z)(n,"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ",{display:"none"}),(0,N.Z)(n,"\n &-show-arrow&-placement-topLeft,\n &-show-arrow&-placement-top,\n &-show-arrow&-placement-topRight\n ",{paddingBottom:l}),(0,N.Z)(n,"\n &-show-arrow&-placement-bottomLeft,\n &-show-arrow&-placement-bottom,\n &-show-arrow&-placement-bottomRight\n ",{paddingTop:l}),(0,N.Z)(n,o+"-arrow",Zt({position:"absolute",zIndex:1,display:"block"},If(u,e.borderRadiusXS,e.borderRadiusOuter,C,S))),(0,N.Z)(n,"\n &-placement-top > "+o+"-arrow,\n &-placement-topLeft > "+o+"-arrow,\n &-placement-topRight > "+o+"-arrow\n ",{bottom:l,transform:"translateY(100%) rotate(180deg)"}),(0,N.Z)(n,"&-placement-top > "+o+"-arrow",{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"}),(0,N.Z)(n,"&-placement-topLeft > "+o+"-arrow",{left:{_skip_check_:!0,value:c}}),(0,N.Z)(n,"&-placement-topRight > "+o+"-arrow",{right:{_skip_check_:!0,value:c}}),(0,N.Z)(n,"\n &-placement-bottom > "+o+"-arrow,\n &-placement-bottomLeft > "+o+"-arrow,\n &-placement-bottomRight > "+o+"-arrow\n ",{top:l,transform:"translateY(-100%)"}),(0,N.Z)(n,"&-placement-bottom > "+o+"-arrow",{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"}),(0,N.Z)(n,"&-placement-bottomLeft > "+o+"-arrow",{left:{_skip_check_:!0,value:c}}),(0,N.Z)(n,"&-placement-bottomRight > "+o+"-arrow",{right:{_skip_check_:!0,value:c}}),(0,N.Z)(n,"&"+d+"-slide-down-enter"+d+"-slide-down-enter-active&-placement-bottomLeft,\n &"+d+"-slide-down-appear"+d+"-slide-down-appear-active&-placement-bottomLeft\n &"+d+"-slide-down-enter"+d+"-slide-down-enter-active&-placement-bottom,\n &"+d+"-slide-down-appear"+d+"-slide-down-appear-active&-placement-bottom,\n &"+d+"-slide-down-enter"+d+"-slide-down-enter-active&-placement-bottomRight,\n &"+d+"-slide-down-appear"+d+"-slide-down-appear-active&-placement-bottomRight",{animationName:Hb}),(0,N.Z)(n,"&"+d+"-slide-up-enter"+d+"-slide-up-enter-active&-placement-topLeft,\n &"+d+"-slide-up-appear"+d+"-slide-up-appear-active&-placement-topLeft,\n &"+d+"-slide-up-enter"+d+"-slide-up-enter-active&-placement-top,\n &"+d+"-slide-up-appear"+d+"-slide-up-appear-active&-placement-top,\n &"+d+"-slide-up-enter"+d+"-slide-up-enter-active&-placement-topRight,\n &"+d+"-slide-up-appear"+d+"-slide-up-appear-active&-placement-topRight",{animationName:jb}),(0,N.Z)(n,"&"+d+"-slide-down-leave"+d+"-slide-down-leave-active&-placement-bottomLeft,\n &"+d+"-slide-down-leave"+d+"-slide-down-leave-active&-placement-bottom,\n &"+d+"-slide-down-leave"+d+"-slide-down-leave-active&-placement-bottomRight",{animationName:zb}),(0,N.Z)(n,"&"+d+"-slide-up-leave"+d+"-slide-up-leave-active&-placement-topLeft,\n &"+d+"-slide-up-leave"+d+"-slide-up-leave-active&-placement-top,\n &"+d+"-slide-up-leave"+d+"-slide-up-leave-active&-placement-topRight",{animationName:Vb}),n))),(r={},(0,N.Z)(r,o+" "+a,{position:"relative",margin:0}),(0,N.Z)(r,a+"-submenu-popup",{position:"absolute",zIndex:s,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}}),(0,N.Z)(r,o+", "+o+"-menu-submenu",(0,N.Z)({},a,Zt(Zt({padding:v,listStyleType:"none",backgroundColor:C,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ja(e)),(i={},(0,N.Z)(i,a+"-item-group-title",{padding:p+"px "+b+"px",color:e.colorTextDescription,transition:"all "+f}),(0,N.Z)(i,a+"-item",{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM}),(0,N.Z)(i,a+"-item-icon",{minWidth:g,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM}),(0,N.Z)(i,a+"-title-content",{flex:"auto","> a":{color:"inherit",transition:"all "+f,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}}),(0,N.Z)(i,a+"-item, "+a+"-submenu-title",Zt(Zt((0,N.Z)({clear:"both",margin:0,padding:p+"px "+b+"px",color:e.colorText,fontWeight:"normal",fontSize:g,lineHeight:e.lineHeight,cursor:"pointer",transition:"all "+f,"&:first-child":v?[]:{borderRadius:m+"px "+m+"px 0 0"},"&:last-child":v?[]:{borderRadius:"0 0 "+m+"px "+m+"px"}},"&:hover, &-active",{backgroundColor:e.controlItemBgHover}),ja(e)),(0,N.Z)({"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:y,cursor:"not-allowed","&:hover":{color:y,backgroundColor:C,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:e.marginXXS+"px 0",overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit}},o+"-menu-submenu-expand-icon",(0,N.Z)({position:"absolute",insetInlineEnd:e.paddingXS},o+"-menu-submenu-arrow-icon",{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:_,fontStyle:"normal"})))),(0,N.Z)(i,a+"-item-group-list",{margin:"0 "+e.marginXS+"px",padding:0,listStyle:"none"}),(0,N.Z)(i,a+"-submenu-title",{paddingInlineEnd:b+e.fontSizeSM}),(0,N.Z)(i,a+"-submenu-vertical",{position:"relative"}),(0,N.Z)(i,a+"-submenu"+a+"-submenu-disabled "+o+"-menu-submenu-title",(0,N.Z)({},"&, "+o+"-menu-submenu-arrow-icon",{color:y,backgroundColor:C,cursor:"not-allowed"})),(0,N.Z)(i,a+"-submenu-selected "+o+"-menu-submenu-title",{color:e.colorPrimary}),i)))),r),[qb(e,"slide-up"),qb(e,"slide-down"),DC(e,"move-up"),DC(e,"move-down")]]},AC=hs("Dropdown",(function(e,t){var n=t.rootPrefixCls,i=e.marginXXS,r=e.sizePopupArrow,o=e.controlHeight,a=e.fontSize,s=e.lineHeight,l=e.paddingXXS,c=e.componentCls,u=e.borderRadiusOuter,d=(o-a*s)/2,h=cs(e,{menuCls:c+"-menu",rootPrefixCls:n,dropdownArrowDistance:r/2+i,dropdownArrowOffset:Lf({sizePopupArrow:r,contentRadius:e.borderRadiusLG,borderRadiusOuter:u}).dropdownArrowOffset,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return[RC(h),LC(h),OC(h)]}),(function(e){return{zIndexPopup:e.zIndexPopupBase+50}})),MC=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},PC=function(e){var t=v.useContext(wa),n=t.getPopupContainer,i=t.getPrefixCls,r=t.direction,o=e.prefixCls,a=e.type,s=void 0===a?"default":a,l=e.danger,c=e.disabled,u=e.loading,d=e.onClick,h=e.htmlType,f=e.children,p=e.className,g=e.menu,m=e.arrow,y=e.autoFocus,_=e.overlay,b=e.trigger,C=e.align,S=e.open,w=e.onOpenChange,x=e.placement,E=e.getPopupContainer,T=e.href,N=e.icon,I=void 0===N?v.createElement(Bb,null):N,D=e.title,L=e.buttonsRender,O=void 0===L?function(e){return e}:L,R=e.mouseEnterDelay,A=e.mouseLeaveDelay,M=e.overlayClassName,P=e.overlayStyle,Z=e.destroyPopupOnHide,F=MC(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide"]),B=i("dropdown",o),H=B+"-button",z=AC(B),j=(0,k.Z)(z,2),V=j[0],W=j[1],U={menu:g,arrow:m,autoFocus:y,align:C,disabled:c,trigger:c?[]:b,onOpenChange:w,getPopupContainer:E||n,mouseEnterDelay:R,mouseLeaveDelay:A,overlayClassName:M,overlayStyle:P,destroyPopupOnHide:Z},G=tg(B,r),K=G.compactSize,Y=G.compactItemClassnames,q=Ja()(H,Y,p,W);"overlay"in e&&(U.overlay=_),"open"in e&&(U.open=S),U.placement="placement"in e?x:"rtl"===r?"bottomLeft":"bottomRight";var $=O([v.createElement(Jg,{type:s,danger:l,disabled:c,loading:u,onClick:d,htmlType:h,href:T,title:D},f),v.createElement(Jg,{type:s,danger:l,icon:I})]),X=(0,k.Z)($,2),Q=X[0],J=X[1];return V(v.createElement(Vy.Compact,Zt({className:q,size:K,block:!0},F),Q,v.createElement(HC,Zt({},U),J)))};PC.__ANT_BUTTON=!0;var ZC=PC,FC=(as("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight","top","bottom"),function(e){var t=v.useContext(wa),n=t.getPopupContainer,i=t.getPrefixCls,r=t.direction;var o=e.menu,a=e.arrow,s=e.prefixCls,l=e.children,c=e.trigger,u=e.disabled,d=e.dropdownRender,h=e.getPopupContainer,f=e.overlayClassName,p=e.open,g=e.onOpenChange,m=e.visible,y=e.onVisibleChange,_=e.mouseEnterDelay,b=void 0===_?.15:_,C=e.mouseLeaveDelay,S=void 0===C?.1:C;var w,x=i("dropdown",s),E=AC(x),T=(0,k.Z)(E,2),I=T[0],D=T[1],L=v.Children.only(l),O=os(L,{className:Ja()(x+"-trigger",(0,N.Z)({},x+"-rtl","rtl"===r),L.props.className),disabled:u}),R=u?[]:c;R&&R.includes("contextMenu")&&(w=!0);var A=Sf(!1,{value:null!==p&&void 0!==p?p:m}),M=(0,k.Z)(A,2),P=M[0],Z=M[1],F=bf((function(e){null===g||void 0===g||g(e),null===y||void 0===y||y(e),Z(e)})),B=Ja()(f,D,(0,N.Z)({},x+"-rtl","rtl"===r)),H=Tf({arrowPointAtCenter:"object"===(0,Bt.Z)(a)&&a.pointAtCenter,autoAdjustOverflow:!0}),z=v.useCallback((function(){Z(!1)}),[]);return I(v.createElement(Jy,Zt({alignPoint:w},e,{mouseEnterDelay:b,mouseLeaveDelay:S,visible:P,builtinPlacements:H,arrow:!!a,overlayClassName:B,prefixCls:x,getPopupContainer:h||n,transitionName:function(){var t=i(),n=e.placement,r=void 0===n?"":n,o=e.transitionName;return void 0!==o?o:r.includes("top")?t+"-slide-down":t+"-slide-up"}(),trigger:R,overlay:function(){var t,n=e.overlay;return t=(null===o||void 0===o?void 0:o.items)?v.createElement(CC,Zt({},o)):"function"===typeof n?n():n,d&&(t=d(t)),t=v.Children.only("string"===typeof t?v.createElement("span",null,t):t),v.createElement(aC,{prefixCls:x+"-menu",expandIcon:v.createElement("span",{className:x+"-menu-submenu-arrow"},v.createElement(cl,{className:x+"-menu-submenu-arrow-icon"})),mode:"vertical",selectable:!1,onClick:z,validator:function(e){e.mode}},t)},placement:function(){var t=e.placement;return t?t.includes("Center")?t.slice(0,t.indexOf("Center")):t:"rtl"===r?"bottomRight":"bottomLeft"}(),onVisibleChange:F}),O))});FC.Button=ZC;var BC=SC(FC,"dropdown",(function(e){return e}));FC._InternalPanelDoNotUseOrYouWillBeFired=function(e){return v.createElement(BC,Zt({},e),v.createElement("span",null))};var HC=FC,zC=HC;function jC(){var e=v.useReducer((function(e){return e+1}),0);return(0,k.Z)(e,2)[1]}var VC=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=(0,v.useRef)({}),n=jC();return(0,v.useEffect)((function(){var i=Xu.subscribe((function(i){t.current=i,e&&n()}));return function(){return Xu.unsubscribe(i)}}),[]),t.current},WC=v.createContext("default"),UC=function(e){var t=e.children,n=e.size;return v.createElement(WC.Consumer,null,(function(e){return v.createElement(WC.Provider,{value:n||e},t)}))},GC=WC,KC=function(e){var t,n,i=e.antCls,r=e.componentCls,o=e.iconCls,a=e.avatarBg,s=e.avatarColor,l=e.avatarSizeBase,c=e.avatarSizeLG,u=e.avatarSizeSM,d=e.avatarFontSizeBase,h=e.avatarFontSizeLG,f=e.avatarFontSizeSM,p=e.borderRadius,g=e.borderRadiusLG,v=e.borderRadiusSM,m=e.lineWidth,y=e.lineType,_=function(e,t,n){var i;return i={width:e,height:e,lineHeight:e-2*m+"px",borderRadius:"50%"},(0,N.Z)(i,"&"+r+"-square",{borderRadius:n}),(0,N.Z)(i,r+"-string",{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"}),(0,N.Z)(i,"&"+r+"-icon",(0,N.Z)({fontSize:t},"> "+o,{margin:0})),i};return(0,N.Z)({},r,Zt(Zt(Zt(Zt({},Fa(e)),(t={position:"relative",display:"inline-block",overflow:"hidden",color:s,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:a,border:m+"px "+y+" transparent"},(0,N.Z)(t,"&-image",{background:"transparent"}),(0,N.Z)(t,i+"-image-img",{display:"block"}),t)),_(l,d,p)),(n={},(0,N.Z)(n,"&-lg",Zt({},_(c,h,g))),(0,N.Z)(n,"&-sm",Zt({},_(u,f,v))),(0,N.Z)(n,"> img",{display:"block",width:"100%",height:"100%",objectFit:"cover"}),n)))},YC=function(e){var t,n=e.componentCls,i=e.avatarGroupBorderColor,r=e.avatarGroupOverlapping,o=e.avatarGroupSpace;return(0,N.Z)({},n+"-group",(t={display:"inline-flex"},(0,N.Z)(t,""+n,(0,N.Z)({borderColor:i},"&:not(:first-child)",{marginInlineStart:-r})),(0,N.Z)(t,"&-popover",(0,N.Z)({},n+" + "+n,{marginInlineStart:o})),t))},qC=hs("Avatar",(function(e){var t=e.colorTextLightSolid,n=e.controlHeight,i=e.controlHeightLG,r=e.controlHeightSM,o=e.fontSize,a=e.fontSizeLG,s=e.fontSizeXL,l=e.fontSizeHeading3,c=e.marginXS,u=e.colorBorderBg,d=cs(e,{avatarBg:e.colorTextPlaceholder,avatarColor:t,avatarSizeBase:n,avatarSizeLG:i,avatarSizeSM:r,avatarFontSizeBase:Math.round((a+s)/2),avatarFontSizeLG:l,avatarFontSizeSM:o,avatarGroupOverlapping:c,avatarGroupSpace:c,avatarGroupBorderColor:u});return[KC(d),YC(d)]})),$C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},XC=function(e,t){var n,i,r=v.useContext(GC),o=v.useState(1),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=v.useState(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=v.useState(!0),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=v.useRef(null),_=v.useRef(null),b=Nl(t,y),C=v.useContext(wa).getPrefixCls,S=function(){if(_.current&&y.current){var t=_.current.offsetWidth,n=y.current.offsetWidth;if(0!==t&&0!==n){var i=e.gap,r=void 0===i?4:i;2*r<n&&l(n-2*r<t?(n-2*r)/t:1)}}};v.useEffect((function(){h(!0)}),[]),v.useEffect((function(){m(!0),l(1)}),[e.src]),v.useEffect((function(){S()}),[e.gap]);var w,x=e.prefixCls,E=e.shape,T=void 0===E?"circle":E,I=e.size,D=void 0===I?"default":I,L=e.src,O=e.srcSet,R=e.icon,A=e.className,M=e.alt,P=e.draggable,Z=e.children,F=e.crossOrigin,B=$C(e,["prefixCls","shape","size","src","srcSet","icon","className","alt","draggable","children","crossOrigin"]),H="default"===D?r:D,z=Object.keys("object"===(0,Bt.Z)(H)&&H||{}).some((function(e){return["xs","sm","md","lg","xl","xxl"].includes(e)})),j=VC(z),V=v.useMemo((function(){if("object"!==(0,Bt.Z)(H))return{};var e=Uu.find((function(e){return j[e]})),t=H[e];return t?{width:t,height:t,lineHeight:t+"px",fontSize:R?t/2:18}:{}}),[j,H]),W=C("avatar",x),U=qC(W),G=(0,k.Z)(U,2),K=G[0],Y=G[1],q=Ja()((n={},(0,N.Z)(n,W+"-lg","large"===H),(0,N.Z)(n,W+"-sm","small"===H),n)),$=v.isValidElement(L),X=Ja()(W,q,(i={},(0,N.Z)(i,W+"-"+T,!!T),(0,N.Z)(i,W+"-image",$||L&&g),(0,N.Z)(i,W+"-icon",!!R),i),A,Y),Q="number"===typeof H?{width:H,height:H,lineHeight:H+"px",fontSize:R?H/2:18}:{};if("string"===typeof L&&g)w=v.createElement("img",{src:L,draggable:P,srcSet:O,onError:function(){var t=e.onError;!1!==(t?t():void 0)&&m(!1)},alt:M,crossOrigin:F});else if($)w=L;else if(R)w=R;else if(d||1!==s){var J="scale("+s+") translateX(-50%)",ee={msTransform:J,WebkitTransform:J,transform:J},te="number"===typeof H?{lineHeight:H+"px"}:{};w=v.createElement(yy,{onResize:S},v.createElement("span",{className:W+"-string",ref:_,style:Zt(Zt({},te),ee)},Z))}else w=v.createElement("span",{className:W+"-string",style:{opacity:0},ref:_},Z);return delete B.onError,delete B.gap,K(v.createElement("span",Zt({},B,{style:Zt(Zt(Zt({},Q),V),B.style),className:X,ref:b}),w))};var QC=v.forwardRef(XC),JC=function(e){return e?"function"===typeof e?e():e:null},eS=function(e){var t,n=e.componentCls,i=e.popoverBg,r=e.popoverColor,o=e.width,a=e.fontWeightStrong,s=e.popoverPadding,l=e.boxShadowSecondary,c=e.colorTextHeading,u=e.borderRadiusLG,d=e.zIndexPopup,h=e.marginXS;return[(0,N.Z)({},n,Zt(Zt({},Fa(e)),(t={position:"absolute",top:0,insetInlineStart:0,zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"}},(0,N.Z)(t,n+"-content",{position:"relative"}),(0,N.Z)(t,n+"-inner",{backgroundColor:i,backgroundClip:"padding-box",borderRadius:u,boxShadow:l,padding:s}),(0,N.Z)(t,n+"-title",{minWidth:o,marginBottom:h,color:c,fontWeight:a}),(0,N.Z)(t,n+"-inner-content",{color:r}),t))),Of(e,{colorBg:e.colorBgElevated}),(0,N.Z)({},n+"-pure",(0,N.Z)({position:"relative",maxWidth:"none"},n+"-content",{display:"inline-block"}))]},tS=function(e){var t=e.componentCls;return(0,N.Z)({},t,Nf.map((function(n){var i,r=e[n+"-6"];return(0,N.Z)({},"&"+t+"-"+n,(i={},(0,N.Z)(i,t+"-inner",{backgroundColor:r}),(0,N.Z)(i,t+"-arrow",{background:"transparent","&:before":{backgroundColor:r}}),i))})))},nS=function(e){var t,n=e.componentCls,i=e.lineWidth,r=e.lineType,o=e.colorSplit,a=e.paddingSM,s=e.controlHeight,l=e.fontSize,c=e.lineHeight,u=e.padding,d=s-Math.round(l*c),h=d/2,f=d/2-i,p=u;return(0,N.Z)({},n,(t={},(0,N.Z)(t,n+"-inner",{padding:0}),(0,N.Z)(t,n+"-title",{margin:0,padding:h+"px "+p+"px "+f+"px",borderBottom:i+"px "+r+" "+o}),(0,N.Z)(t,n+"-inner-content",{padding:a+"px "+p+"px"}),t))},iS=hs("Popover",(function(e){var t=e.colorBgElevated,n=e.colorText,i=e.wireframe,r=cs(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[eS(r),tS(r),i&&nS(r),du(r,"zoom-big")]}),(function(e){return{zIndexPopup:e.zIndexPopupBase+30,width:177}})),rS=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function oS(e){var t=e.hashId,n=e.prefixCls,i=e.className,r=e.style,o=e.placement,a=void 0===o?"top":o,s=e.title,l=e.content,c=e.children;return v.createElement("div",{className:Ja()(t,n,n+"-pure",n+"-placement-"+a,i),style:r},v.createElement(mf,Zt({},e,{className:t,prefixCls:n}),c||function(e,t,n){if(t||n)return v.createElement(v.Fragment,null,t&&v.createElement("div",{className:e+"-title"},JC(t)),v.createElement("div",{className:e+"-inner-content"},JC(n)))}(n,s,l)))}function aS(e){var t=e.prefixCls,n=rS(e,["prefixCls"]),i=(0,v.useContext(wa).getPrefixCls)("popover",t),r=iS(i),o=(0,k.Z)(r,2),a=o[0],s=o[1];return a(v.createElement(oS,Zt({},n,{prefixCls:i,hashId:s})))}var sS=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},lS=function(e){var t=e.title,n=e.content,i=e.prefixCls;return t||n?v.createElement(v.Fragment,null,t&&v.createElement("div",{className:i+"-title"},JC(t)),v.createElement("div",{className:i+"-inner-content"},JC(n))):null},cS=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.title,r=e.content,o=e.overlayClassName,a=e._overlay,s=e.placement,l=void 0===s?"top":s,c=e.trigger,u=void 0===c?"hover":c,d=e.mouseEnterDelay,h=void 0===d?.1:d,f=e.mouseLeaveDelay,p=void 0===f?.1:f,g=e.overlayStyle,m=void 0===g?{}:g,y=sS(e,["prefixCls","title","content","overlayClassName","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),_=v.useContext(wa).getPrefixCls,b=_("popover",n),C=iS(b),S=(0,k.Z)(C,2),w=S[0],x=S[1],E=_(),T=Ja()(o,x);return w(v.createElement(Vf,Zt({placement:l,trigger:u,mouseEnterDelay:h,mouseLeaveDelay:p,overlayStyle:m},y,{prefixCls:b,overlayClassName:T,ref:t,overlay:a||v.createElement(lS,{prefixCls:b,title:i,content:r}),transitionName:Lc(E,"zoom-big",y.transitionName),"data-popover-inject":!0})))}));cS._InternalPanelDoNotUseOrYouWillBeFired=aS;var uS=cS,dS=function(e){var t=v.useContext(wa),n=t.getPrefixCls,i=t.direction,r=e.prefixCls,o=e.className,a=void 0===o?"":o,s=e.maxCount,l=e.maxStyle,c=e.size,u=n("avatar",r),d=u+"-group",h=qC(u),f=(0,k.Z)(h,2),p=f[0],g=f[1],m=Ja()(d,(0,N.Z)({},d+"-rtl","rtl"===i),a,g),y=e.children,_=e.maxPopoverPlacement,b=void 0===_?"top":_,C=e.maxPopoverTrigger,S=void 0===C?"hover":C,w=Zi(y).map((function(e,t){return os(e,{key:"avatar-key-"+t})})),x=w.length;if(s&&s<x){var E=w.slice(0,s),T=w.slice(s,x);return E.push(v.createElement(uS,{key:"avatar-popover-key",content:T,trigger:S,placement:b,overlayClassName:d+"-popover"},v.createElement(QC,{style:l},"+"+(x-s)))),p(v.createElement(UC,{size:c},v.createElement("div",{className:m,style:e.style},E)))}return p(v.createElement(UC,{size:c},v.createElement("div",{className:m,style:e.style},w)))},hS=QC;hS.Group=dS;var fS=hS,pS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},gS=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:pS}))};gS.displayName="DashboardOutlined";var vS=v.forwardRef(gS),mS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},yS=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:mS}))};yS.displayName="GlobalOutlined";var _S=v.forwardRef(yS),bS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M945 412H689c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h256c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM811 548H689c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h122c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM477.3 322.5H434c-6.2 0-11.2 5-11.2 11.2v248c0 3.6 1.7 6.9 4.6 9l148.9 108.6c5 3.6 12 2.6 15.6-2.4l25.7-35.1v-.1c3.6-5 2.5-12-2.5-15.6l-126.7-91.6V333.7c.1-6.2-5-11.2-11.1-11.2z"}},{tag:"path",attrs:{d:"M804.8 673.9H747c-5.6 0-10.9 2.9-13.9 7.7a321 321 0 01-44.5 55.7 317.17 317.17 0 01-101.3 68.3c-39.3 16.6-81 25-124 25-43.1 0-84.8-8.4-124-25-37.9-16-72-39-101.3-68.3s-52.3-63.4-68.3-101.3c-16.6-39.2-25-80.9-25-124 0-43.1 8.4-84.7 25-124 16-37.9 39-72 68.3-101.3 29.3-29.3 63.4-52.3 101.3-68.3 39.2-16.6 81-25 124-25 43.1 0 84.8 8.4 124 25 37.9 16 72 39 101.3 68.3a321 321 0 0144.5 55.7c3 4.8 8.3 7.7 13.9 7.7h57.8c6.9 0 11.3-7.2 8.2-13.3-65.2-129.7-197.4-214-345-215.7-216.1-2.7-395.6 174.2-396 390.1C71.6 727.5 246.9 903 463.2 903c149.5 0 283.9-84.6 349.8-215.8a9.18 9.18 0 00-8.2-13.3z"}}]},name:"field-time",theme:"outlined"},CS=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:bS}))};CS.displayName="FieldTimeOutlined";var SS=v.forwardRef(CS),wS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M841 370c3-3.3 2.7-8.3-.6-11.3a8.24 8.24 0 00-5.3-2.1h-72.6c-2.4 0-4.6 1-6.1 2.8L633.5 504.6a7.96 7.96 0 01-13.4-1.9l-63.5-141.3a7.9 7.9 0 00-7.3-4.7H380.7l.9-4.7 8-42.3c10.5-55.4 38-81.4 85.8-81.4 18.6 0 35.5 1.7 48.8 4.7l14.1-66.8c-22.6-4.7-35.2-6.1-54.9-6.1-103.3 0-156.4 44.3-175.9 147.3l-9.4 49.4h-97.6c-3.8 0-7.1 2.7-7.8 6.4L181.9 415a8.07 8.07 0 007.8 9.7H284l-89 429.9a8.07 8.07 0 007.8 9.7H269c3.8 0 7.1-2.7 7.8-6.4l89.7-433.1h135.8l68.2 139.1c1.4 2.9 1 6.4-1.2 8.8l-180.6 203c-2.9 3.3-2.6 8.4.7 11.3 1.5 1.3 3.4 2 5.3 2h72.7c2.4 0 4.6-1 6.1-2.8l123.7-146.7c2.8-3.4 7.9-3.8 11.3-1 .9.8 1.6 1.7 2.1 2.8L676.4 784c1.3 2.8 4.1 4.7 7.3 4.7h64.6a8.02 8.02 0 007.2-11.5l-95.2-198.9c-1.4-2.9-.9-6.4 1.3-8.8L841 370z"}}]},name:"function",theme:"outlined"},kS=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:wS}))};kS.displayName="FunctionOutlined";var xS=v.forwardRef(kS),ES=n(80184),TS=[{label:"\u9996\u9875",key:"/home/dashboard",icon:(0,ES.jsx)(vS,{})},{label:"\u8bbe\u5907\u63a5\u5165",key:"/gateway",icon:(0,ES.jsx)(_S,{}),children:[{label:"\u4ea7\u54c1\u7ba1\u7406",key:"/gateway/product/manage"},{label:"\u8bbe\u5907\u7ba1\u7406",key:"/gateway/device/manage"},{label:"\u9a71\u52a8\u955c\u50cf",key:"/gateway/drive/image"},{label:"\u6211\u7684\u9a71\u52a8",key:"/gateway/my/drive"}]},{label:"\u8fd0\u7ef4\u76d1\u63a7",key:"/monitor",icon:(0,ES.jsx)(SS,{}),children:[{label:"\u7cfb\u7edf\u76d1\u63a7",key:"/monitor/systemMonitor"},{label:"\u544a\u8b66\u4e2d\u5fc3",key:"/monitor/alarmCenter/list"}]},{label:"\u9ad8\u7ea7\u80fd\u529b",key:"/advanced",icon:(0,ES.jsx)(xS,{}),children:[{label:"\u8d44\u6e90\u7ba1\u7406",key:"/advanced/resource/manage"},{label:"\u89c4\u5219\u5f15\u64ce",key:"/advanced/rule/engine"},{label:"\u573a\u666f\u8054\u52a8",key:"/advanced/scene/linkage"}]},{label:"\u5de5\u5177\u4e0e\u6587\u6863",key:"/documents/documents",icon:(0,ES.jsx)(Fs,{})}],NS={};!function e(t){null===t||void 0===t||t.forEach((function(t){var n=t.key,i=t.label,r=t.children;NS[n]=i,Array.isArray(r)&&e(r)}))}(TS);var IS="$user$",DS=function(){var e;return null===(e=function(){var e=localStorage.getItem(IS);if(e)try{return JSON.parse(e)}catch(t){console.error(t)}return null}())||void 0===e?void 0:e.token};function LS(e,t){return function(){return e.apply(t,arguments)}}var OS=Object.prototype.toString,RS=Object.getPrototypeOf,AS=function(e){return function(t){var n=OS.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null)),MS=function(e){return e=e.toLowerCase(),function(t){return AS(t)===e}},PS=function(e){return function(t){return typeof t===e}},ZS=Array.isArray,FS=PS("undefined");var BS=MS("ArrayBuffer");var HS=PS("string"),zS=PS("function"),jS=PS("number"),VS=function(e){return null!==e&&"object"===typeof e},WS=function(e){if("object"!==AS(e))return!1;var t=RS(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},US=MS("Date"),GS=MS("File"),KS=MS("Blob"),YS=MS("FileList"),qS=MS("URLSearchParams");function $S(e,t){var n,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.allOwnKeys,a=void 0!==o&&o;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),ZS(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{var s,l=a?Object.getOwnPropertyNames(e):Object.keys(e),c=l.length;for(n=0;n<c;n++)s=l[n],t.call(null,e[s],s,e)}}var XS,QS=(XS="undefined"!==typeof Uint8Array&&RS(Uint8Array),function(e){return XS&&e instanceof XS}),JS=MS("HTMLFormElement"),ew=function(e){var t=Object.prototype.hasOwnProperty;return function(e,n){return t.call(e,n)}}(),tw=MS("RegExp"),nw=function(e,t){var n=Object.getOwnPropertyDescriptors(e),i={};$S(n,(function(n,r){!1!==t(n,r,e)&&(i[r]=n)})),Object.defineProperties(e,i)},iw={isArray:ZS,isArrayBuffer:BS,isBuffer:function(e){return null!==e&&!FS(e)&&null!==e.constructor&&!FS(e.constructor)&&zS(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||OS.call(e)===t||zS(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&BS(e.buffer)},isString:HS,isNumber:jS,isBoolean:function(e){return!0===e||!1===e},isObject:VS,isPlainObject:WS,isUndefined:FS,isDate:US,isFile:GS,isBlob:KS,isRegExp:tw,isFunction:zS,isStream:function(e){return VS(e)&&zS(e.pipe)},isURLSearchParams:qS,isTypedArray:QS,isFileList:YS,forEach:$S,merge:function e(){for(var t={},n=function(n,i){WS(t[i])&&WS(n)?t[i]=e(t[i],n):WS(n)?t[i]=e({},n):ZS(n)?t[i]=n.slice():t[i]=n},i=0,r=arguments.length;i<r;i++)arguments[i]&&$S(arguments[i],n);return t},extend:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.allOwnKeys;return $S(t,(function(t,i){n&&zS(t)?e[i]=LS(t,n):e[i]=t}),{allOwnKeys:r}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,i){var r,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a=r[o],i&&!i(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&RS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:AS,kindOfTest:MS,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n},toArray:function(e){if(!e)return null;if(ZS(e))return e;var t=e.length;if(!jS(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,i=(e&&e[Symbol.iterator]).call(e);(n=i.next())&&!n.done;){var r=n.value;t.call(e,r[0],r[1])}},matchAll:function(e,t){for(var n,i=[];null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:JS,hasOwnProperty:ew,hasOwnProp:ew,reduceDescriptors:nw,freezeMethods:function(e){nw(e,(function(t,n){var i=e[n];zS(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},i=function(e){e.forEach((function(e){n[e]=!0}))};return ZS(e)?i(e):i(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t}};function rw(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}iw.inherits(rw,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ow=rw.prototype,aw={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){aw[e]={value:e}})),Object.defineProperties(rw,aw),Object.defineProperty(ow,"isAxiosError",{value:!0}),rw.from=function(e,t,n,i,r,o){var a=Object.create(ow);return iw.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),rw.call(a,e.message,t,n,i,r),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var sw=rw,lw=n(47472);function cw(e){return iw.isPlainObject(e)||iw.isArray(e)}function uw(e){return iw.endsWith(e,"[]")?e.slice(0,-2):e}function dw(e,t,n){return e?e.concat(t).map((function(e,t){return e=uw(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var hw=iw.toFlatObject(iw,{},null,(function(e){return/^is[A-Z]/.test(e)}));var fw=function(e,t,n){if(!iw.isObject(e))throw new TypeError("target must be an object");t=t||new(lw||FormData);var i,r=(n=iw.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!iw.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,a=n.dots,s=n.indexes,l=(n.Blob||"undefined"!==typeof Blob&&Blob)&&((i=t)&&iw.isFunction(i.append)&&"FormData"===i[Symbol.toStringTag]&&i[Symbol.iterator]);if(!iw.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(iw.isDate(e))return e.toISOString();if(!l&&iw.isBlob(e))throw new sw("Blob is not supported. Use a Buffer instead.");return iw.isArrayBuffer(e)||iw.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,i){var o=e;if(e&&!i&&"object"===typeof e)if(iw.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(iw.isArray(e)&&function(e){return iw.isArray(e)&&!e.some(cw)}(e)||iw.isFileList(e)||iw.endsWith(n,"[]")&&(o=iw.toArray(e)))return n=uw(n),o.forEach((function(e,i){!iw.isUndefined(e)&&null!==e&&t.append(!0===s?dw([n],i,a):null===s?n:n+"[]",c(e))})),!1;return!!cw(e)||(t.append(dw(i,n,a),c(e)),!1)}var d=[],h=Object.assign(hw,{defaultVisitor:u,convertValue:c,isVisitable:cw});if(!iw.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!iw.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+i.join("."));d.push(n),iw.forEach(n,(function(n,r){!0===(!(iw.isUndefined(n)||null===n)&&o.call(t,n,iw.isString(r)?r.trim():r,i,h))&&e(n,i?i.concat(r):[r])})),d.pop()}}(e),t};function pw(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function gw(e,t){this._pairs=[],e&&fw(e,this,t)}var vw=gw.prototype;vw.append=function(e,t){this._pairs.push([e,t])},vw.toString=function(e){var t=e?function(t){return e.call(this,t,pw)}:pw;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var mw=gw;function yw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _w(e,t,n){if(!t)return e;var i,r=n&&n.encode||yw,o=n&&n.serialize;if(i=o?o(t,n):iw.isURLSearchParams(t)?t.toString():new mw(t,n).toString(r)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var bw=function(){function e(){(0,b.Z)(this,e),this.handlers=[]}return(0,C.Z)(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){iw.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),Cw=bw,Sw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ww="undefined"!==typeof URLSearchParams?URLSearchParams:mw,kw=FormData,xw=function(){var e;return("undefined"===typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!==typeof window&&"undefined"!==typeof document)}(),Ew={isBrowser:!0,classes:{URLSearchParams:ww,FormData:kw,Blob:Blob},isStandardBrowserEnv:xw,protocols:["http","https","file","blob","url","data"]};var Tw=function(e){function t(e,n,i,r){var o=e[r++],a=Number.isFinite(+o),s=r>=e.length;return o=!o&&iw.isArray(i)?i.length:o,s?(iw.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):(i[o]&&iw.isObject(i[o])||(i[o]=[]),t(e,n,i[o],r)&&iw.isArray(i[o])&&(i[o]=function(e){var t,n,i={},r=Object.keys(e),o=r.length;for(t=0;t<o;t++)i[n=r[t]]=e[n];return i}(i[o])),!a)}if(iw.isFormData(e)&&iw.isFunction(e.entries)){var n={};return iw.forEachEntry(e,(function(e,i){t(function(e){return iw.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),i,n,0)})),n}return null};var Nw=Ew.isStandardBrowserEnv?{write:function(e,t,n,i,r,o){var a=[];a.push(e+"="+encodeURIComponent(t)),iw.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),iw.isString(i)&&a.push("path="+i),iw.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Iw(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Dw=Ew.isStandardBrowserEnv?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=iw.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};function Lw(e,t,n){sw.call(this,null==e?"canceled":e,sw.ERR_CANCELED,t,n),this.name="CanceledError"}iw.inherits(Lw,sw,{__CANCEL__:!0});var Ow=Lw;var Rw=iw.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Aw=Symbol("internals"),Mw=Symbol("defaults");function Pw(e){return e&&String(e).trim().toLowerCase()}function Zw(e){return!1===e||null==e?e:iw.isArray(e)?e.map(Zw):String(e)}function Fw(e,t,n,i){return iw.isFunction(i)?i.call(this,t,n):iw.isString(t)?iw.isString(i)?-1!==t.indexOf(i):iw.isRegExp(i)?i.test(t):void 0:void 0}function Bw(e,t){t=t.toLowerCase();for(var n,i=Object.keys(e),r=i.length;r-- >0;)if(t===(n=i[r]).toLowerCase())return n;return null}function Hw(e,t){e&&this.set(e),this[Mw]=t||null}Object.assign(Hw.prototype,{set:function(e,t,n){var i=this;function r(e,t,n){var r=Pw(t);if(!r)throw new Error("header name must be a non-empty string");var o=Bw(i,r);(!o||!0===n||!1!==i[o]&&!1!==n)&&(i[o||t]=Zw(e))}return iw.isPlainObject(e)?iw.forEach(e,(function(e,n){r(e,n,t)})):r(t,e,n),this},get:function(e,t){if(e=Pw(e)){var n=Bw(this,e);if(n){var i=this[n];if(!t)return i;if(!0===t)return function(e){for(var t,n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=i.exec(e);)n[t[1]]=t[2];return n}(i);if(iw.isFunction(t))return t.call(this,i,n);if(iw.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}},has:function(e,t){if(e=Pw(e)){var n=Bw(this,e);return!(!n||t&&!Fw(0,this[n],n,t))}return!1},delete:function(e,t){var n=this,i=!1;function r(e){if(e=Pw(e)){var r=Bw(n,e);!r||t&&!Fw(0,n[r],r,t)||(delete n[r],i=!0)}}return iw.isArray(e)?e.forEach(r):r(e),i},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){var t=this,n={};return iw.forEach(this,(function(i,r){var o=Bw(n,r);if(o)return t[o]=Zw(i),void delete t[r];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(r):String(r).trim();a!==r&&delete t[r],t[a]=Zw(i),n[a]=!0})),this},toJSON:function(e){var t=Object.create(null);return iw.forEach(Object.assign({},this[Mw]||null,this),(function(n,i){null!=n&&!1!==n&&(t[i]=e&&iw.isArray(n)?n.join(", "):n)})),t}}),Object.assign(Hw,{from:function(e){return iw.isString(e)?new this(function(e){var t,n,i,r={};return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!t||r[t]&&Rw[t]||("set-cookie"===t?r[t]?r[t].push(n):r[t]=[n]:r[t]=r[t]?r[t]+", "+n:n)})),r}(e)):e instanceof this?e:new this(e)},accessor:function(e){var t=(this[Aw]=this[Aw]={accessors:{}}).accessors,n=this.prototype;function i(e){var i=Pw(e);t[i]||(!function(e,t){var n=iw.toCamelCase(" "+t);["get","set","has"].forEach((function(i){Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[i]=!0)}return iw.isArray(e)?e.forEach(i):i(e),this}}),Hw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),iw.freezeMethods(Hw.prototype),iw.freezeMethods(Hw);var zw=Hw;var jw=function(e,t){e=e||10;var n,i=new Array(e),r=new Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){var l=Date.now(),c=r[a];n||(n=l),i[o]=s,r[o]=l;for(var u=a,d=0;u!==o;)d+=i[u++],u%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),!(l-n<t)){var h=c&&l-c;return h?Math.round(1e3*d/h):void 0}}};function Vw(e,t){var n=0,i=jw(50,250);return function(r){var o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-n,l=i(s);n=o;var c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0};c[t?"download":"upload"]=!0,e(c)}}function Ww(e){return new Promise((function(t,n){var i,r=e.data,o=zw.from(e.headers).normalize(),a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}iw.isFormData(r)&&Ew.isStandardBrowserEnv&&o.setContentType(!1);var l=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(c+":"+u))}var d=Iw(e.baseURL,e.url);function h(){if(l){var i=zw.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new sw("Request failed with status code "+n.status,[sw.ERR_BAD_REQUEST,sw.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:i,config:e,request:l}),l=null}}if(l.open(e.method.toUpperCase(),_w(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(h)},l.onabort=function(){l&&(n(new sw("Request aborted",sw.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new sw("Network Error",sw.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||Sw;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new sw(t,i.clarifyTimeoutError?sw.ETIMEDOUT:sw.ECONNABORTED,e,l)),l=null},Ew.isStandardBrowserEnv){var f=(e.withCredentials||Dw(d))&&e.xsrfCookieName&&Nw.read(e.xsrfCookieName);f&&o.set(e.xsrfHeaderName,f)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&iw.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),iw.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&l.addEventListener("progress",Vw(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Vw(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=function(t){l&&(n(!t||t.type?new Ow(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));var p=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);p&&-1===Ew.protocols.indexOf(p)?n(new sw("Unsupported protocol "+p+":",sw.ERR_BAD_REQUEST,e)):l.send(r||null)}))}var Uw={http:Ww,xhr:Ww},Gw=function(e){if(iw.isString(e)){var t=Uw[e];if(!e)throw Error(iw.hasOwnProp(e)?"Adapter '".concat(e,"' is not available in the build"):"Can not resolve adapter '".concat(e,"'"));return t}if(!iw.isFunction(e))throw new TypeError("adapter is not a function");return e},Kw={"Content-Type":"application/x-www-form-urlencoded"};var Yw={transitional:Sw,adapter:function(){var e;return"undefined"!==typeof XMLHttpRequest?e=Gw("xhr"):"undefined"!==typeof process&&"process"===iw.kindOf(process)&&(e=Gw("http")),e}(),transformRequest:[function(e,t){var n,i=t.getContentType()||"",r=i.indexOf("application/json")>-1,o=iw.isObject(e);if(o&&iw.isHTMLForm(e)&&(e=new FormData(e)),iw.isFormData(e))return r&&r?JSON.stringify(Tw(e)):e;if(iw.isArrayBuffer(e)||iw.isBuffer(e)||iw.isStream(e)||iw.isFile(e)||iw.isBlob(e))return e;if(iw.isArrayBufferView(e))return e.buffer;if(iw.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return fw(e,new Ew.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return Ew.isNode&&iw.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=iw.isFileList(e))||i.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return fw(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(iw.isString(e))try{return(t||JSON.parse)(e),iw.trim(e)}catch(Fc){if("SyntaxError"!==Fc.name)throw Fc}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Yw.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&iw.isString(e)&&(n&&!this.responseType||i)){var r=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(Fc){if(r){if("SyntaxError"===Fc.name)throw sw.from(Fc,sw.ERR_BAD_RESPONSE,this,null,this.response);throw Fc}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ew.classes.FormData,Blob:Ew.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};iw.forEach(["delete","get","head"],(function(e){Yw.headers[e]={}})),iw.forEach(["post","put","patch"],(function(e){Yw.headers[e]=iw.merge(Kw)}));var qw=Yw;function $w(e,t){var n=this||qw,i=t||n,r=zw.from(i.headers),o=i.data;return iw.forEach(e,(function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)})),r.normalize(),o}function Xw(e){return!(!e||!e.__CANCEL__)}function Qw(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ow}function Jw(e){return Qw(e),e.headers=zw.from(e.headers),e.data=$w.call(e,e.transformRequest),(e.adapter||qw.adapter)(e).then((function(t){return Qw(e),t.data=$w.call(e,e.transformResponse,t),t.headers=zw.from(t.headers),t}),(function(t){return Xw(t)||(Qw(e),t&&t.response&&(t.response.data=$w.call(e,e.transformResponse,t.response),t.response.headers=zw.from(t.response.headers))),Promise.reject(t)}))}function ek(e,t){t=t||{};var n={};function i(e,t){return iw.isPlainObject(e)&&iw.isPlainObject(t)?iw.merge(e,t):iw.isPlainObject(t)?iw.merge({},t):iw.isArray(t)?t.slice():t}function r(n){return iw.isUndefined(t[n])?iw.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function o(e){if(!iw.isUndefined(t[e]))return i(void 0,t[e])}function a(n){return iw.isUndefined(t[n])?iw.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function s(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return iw.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||r,i=t(e);iw.isUndefined(i)&&t!==s||(n[e]=i)})),n}var tk="1.1.3",nk={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){nk[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var ik={};nk.transitional=function(e,t,n){function i(e,t){return"[Axios v1.1.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new sw(i(r," has been removed"+(t?" in "+t:"")),sw.ERR_DEPRECATED);return t&&!ik[r]&&(ik[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}};var rk={assertOptions:function(e,t,n){if("object"!==typeof e)throw new sw("options must be an object",sw.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),r=i.length;r-- >0;){var o=i[r],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new sw("option "+o+" must be "+l,sw.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new sw("Unknown option "+o,sw.ERR_BAD_OPTION)}},validators:nk},ok=rk.validators,ak=function(){function e(t){(0,b.Z)(this,e),this.defaults=t,this.interceptors={request:new Cw,response:new Cw}}return(0,C.Z)(e,[{key:"request",value:function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};var n=t=ek(this.defaults,t),i=n.transitional,r=n.paramsSerializer;void 0!==i&&rk.assertOptions(i,{silentJSONParsing:ok.transitional(ok.boolean),forcedJSONParsing:ok.transitional(ok.boolean),clarifyTimeoutError:ok.transitional(ok.boolean)},!1),void 0!==r&&rk.assertOptions(r,{encode:ok.function,serialize:ok.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();var o=t.headers&&iw.merge(t.headers.common,t.headers[t.method]);o&&iw.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),t.headers=new zw(t.headers,o);var a=[],s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));var l,c=[];this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));var u,d=0;if(!s){var h=[Jw.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,c),u=h.length,l=Promise.resolve(t);d<u;)l=l.then(h[d++],h[d++]);return l}u=a.length;var f=t;for(d=0;d<u;){var p=a[d++],g=a[d++];try{f=p(f)}catch(v){g.call(this,v);break}}try{l=Jw.call(this,f)}catch(v){return Promise.reject(v)}for(d=0,u=c.length;d<u;)l=l.then(c[d++],c[d++]);return l}},{key:"getUri",value:function(e){return _w(Iw((e=ek(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}]),e}();iw.forEach(["delete","get","head","options"],(function(e){ak.prototype[e]=function(t,n){return this.request(ek(n||{},{method:e,url:t,data:(n||{}).data}))}})),iw.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(ek(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ak.prototype[e]=t(),ak.prototype[e+"Form"]=t(!0)}));var sk=ak,lk=function(){function e(t){if((0,b.Z)(this,e),"function"!==typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var i=this;this.promise.then((function(e){if(i._listeners){for(var t=i._listeners.length;t-- >0;)i._listeners[t](e);i._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){i.subscribe(e),t=e})).then(e);return n.cancel=function(){i.unsubscribe(t)},n},t((function(e,t,r){i.reason||(i.reason=new Ow(e,t,r),n(i.reason))}))}return(0,C.Z)(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}(),ck=lk;var uk=function e(t){var n=new sk(t),i=LS(sk.prototype.request,n);return iw.extend(i,sk.prototype,n,{allOwnKeys:!0}),iw.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(ek(t,n))},i}(qw);uk.Axios=sk,uk.CanceledError=Ow,uk.CancelToken=ck,uk.isCancel=Xw,uk.VERSION=tk,uk.toFormData=fw,uk.AxiosError=sw,uk.Cancel=uk.CanceledError,uk.all=function(e){return Promise.all(e)},uk.spread=function(e){return function(t){return e.apply(null,t)}},uk.isAxiosError=function(e){return iw.isObject(e)&&!0===e.isAxiosError},uk.formToJSON=function(e){return Tw(iw.isHTMLForm(e)?new FormData(e):e)};var dk,hk=uk,fk=(hk.Axios,hk.AxiosError,hk.CanceledError,hk.isCancel,hk.CancelToken,hk.VERSION,hk.all,hk.Cancel,hk.isAxiosError,hk.spread,hk.toFormData,hk);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(dk||(dk={}));var pk=function(e){return e};var gk="beforeunload",vk="popstate";function mk(e){e.preventDefault(),e.returnValue=""}function yk(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function _k(){return Math.random().toString(36).substr(2,8)}function bk(e){var t=e.pathname,n=void 0===t?"/":t,i=e.search,r=void 0===i?"":i,o=e.hash,a=void 0===o?"":o;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function Ck(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}var Sk=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,i=n.history;function r(){var e=n.location,t=e.pathname,r=e.search,o=e.hash,a=i.state||{};return[a.idx,pk({pathname:t,search:r,hash:o,state:a.usr||null,key:a.key||"default"})]}var o=null;n.addEventListener(vk,(function(){if(o)d.call(o),o=null;else{var e=dk.Pop,t=r(),n=t[0],i=t[1];if(d.length){if(null!=n){var a=l-n;a&&(o={action:e,location:i,retry:function(){m(-1*a)}},m(a))}}else v(e)}}));var a=dk.Pop,s=r(),l=s[0],c=s[1],u=yk(),d=yk();function h(e){return"string"===typeof e?e:bk(e)}function f(e,t){return void 0===t&&(t=null),pk(Zt({pathname:c.pathname,hash:"",search:""},"string"===typeof e?Ck(e):e,{state:t,key:_k()}))}function p(e,t){return[{usr:e.state,key:e.key,idx:t},h(e)]}function g(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function v(e){a=e;var t=r();l=t[0],c=t[1],u.call({action:a,location:c})}function m(e){i.go(e)}null==l&&(l=0,i.replaceState(Zt({},i.state,{idx:l}),""));var y={get action(){return a},get location(){return c},createHref:h,push:function e(t,r){var o=dk.Push,a=f(t,r);if(g(o,a,(function(){e(t,r)}))){var s=p(a,l+1),c=s[0],u=s[1];try{i.pushState(c,"",u)}catch(d){n.location.assign(u)}v(o)}},replace:function e(t,n){var r=dk.Replace,o=f(t,n);if(g(r,o,(function(){e(t,n)}))){var a=p(o,l),s=a[0],c=a[1];i.replaceState(s,"",c),v(r)}},go:m,back:function(){m(-1)},forward:function(){m(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(gk,mk),function(){t(),d.length||n.removeEventListener(gk,mk)}}};return y}(),wk=fk.create({timeout:3e4});function kk(e){return wk(e).then((function(e){return"OK"===e.statusText&&200===e.status?e.data:e}))}function xk(e){return kk({url:"/api/v1/device-servers",params:e})}function Ek(e){return kk({url:"/api/v1/category-template",params:e})}function Tk(e){return kk({url:"/api/v1/thingmodel",method:"post",data:e})}function Nk(e){return kk({url:"/api/v1/thingmodel/unit",params:e})}function Ik(e){return kk({url:"/api/v1/docker-configs",params:e})}function Dk(e){return kk({url:"/api/v1/devices",params:e})}function Lk(e){return kk({url:"/api/v1/device-libraries",params:e})}function Ok(e){return kk({url:"/api/v1/product/".concat(e),method:"get",params:{productId:e}})}function Rk(e){return kk({url:"/api/v1/products",params:e})}wk.interceptors.request.use((function(e){return e.headers=(0,Ft.Z)((0,Ft.Z)({},e.headers),{},{"x-token":DS()}),e}),(function(e){return Promise.reject(e)})),wk.interceptors.response.use((function(e){return 10006===e.data.errorCode&&(qp.error(null===e||void 0===e?void 0:e.data.errorMsg),Sk.replace("/auth/login")),e}),(function(e){return Promise.reject(e)}));var Ak=function(){var e=(0,v.useState)([]),t=(0,k.Z)(e,2),n=t[0],i=t[1];return(0,v.useEffect)((function(){kk({url:"/api/v1/device/status-template"}).then((function(e){var t=e.success,n=e.result;t&&i(n)}))}),[]),{data:n}},Mk=function(){var e=(0,v.useState)([]),t=(0,k.Z)(e,2),n=t[0],i=t[1];return(0,v.useEffect)((function(){kk({url:"/api/v1/iot-platform"}).then((function(e){var t=e.success,n=e.result;t&&i(n)}))}),[]),{data:n}},Pk=function(e){var t=(0,v.useState)([]),n=(0,k.Z)(t,2),i=n[0],r=n[1];return(0,v.useEffect)((function(){xk((0,Ft.Z)({isAll:!0},e)).then((function(e){var t=e.success,n=e.result;t&&r(n.list)}))}),[]),{data:i}},Zk=function(e){var t=(0,v.useState)([]),n=(0,k.Z)(t,2),i=n[0],r=n[1];return(0,v.useEffect)((function(){Rk(e).then((function(e){var t=e.success,n=e.result;t&&r(n.list)}))}),[]),{data:i}};function Fk(e){return kk({url:"/api/v1/alert-treated",method:"post",data:e})}function Bk(e,t){return kk({url:"/api/v1/rule-field",method:"put",data:t})}function Hk(e){return kk({url:"/api/v1/auth/password ",method:"put",data:e})}function zk(){return kk({url:"/api/v1/auth/initInfo",method:"get"})}function jk(e){return kk({url:"/api/v1/dataresource",params:e})}function Vk(){return kk({url:"/api/v1/typeresource",method:"get"})}function Wk(e){return kk({url:"/api/v1/dataresource",method:"post",data:e})}function Uk(e){return kk({url:"/api/v1/dataresource/".concat(e),method:"delete"})}function Gk(e){return kk({url:"/api/v1/dataresource/".concat(e,"/health"),method:"post"})}function Kk(e){return kk({url:"/api/v1/dataresource",method:"put",data:e})}function Yk(e){return kk({url:"/api/v1/rule-engine/".concat(e),method:"get"})}function qk(e){return kk({url:"/api/v1/rule-engine/".concat(e,"/start"),method:"post"})}function $k(e){return kk({url:"/api/v1/rule-engine/".concat(e,"/stop"),method:"post"})}function Xk(e){return kk({url:"/api/v1/rule-engine/".concat(e,"/status "),method:"get"})}function Qk(e){return kk({url:"/api/v1/scene",method:"put",data:e})}function Jk(e){return kk({url:"/api/v1/scene/".concat(e,"/start"),method:"post"})}function ex(e){return kk({url:"/api/v1/scene/".concat(e,"/stop"),method:"post"})}function tx(){return kk({url:"/api/v1/language-sdk"})}var nx=yl.Header,ix=yl.Content,rx=yl.Sider,ox=ip.useForm,ax=qp.useMessage,sx=function(){var e=(0,v.useState)(!1),t=(0,k.Z)(e,2),i=t[0],r=t[1],o=(0,v.useState)(""),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=ax(),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=st(),p=lt();console.log("console",f,p);var g=(0,v.useMemo)((function(){return console.log(TS),TS}),[s]),m=(0,v.useState)([]),y=(0,k.Z)(m,2),_=y[0],b=y[1];if((0,v.useEffect)((function(){var e=null===TS||void 0===TS?void 0:TS.reduce((function(e,t){if(Array.isArray(t.children)){var n=t.children.find((function(e){return e.key===f.pathname}));if(console.log("findItem",n),n)return e.paths.push(t.key),e}return e}),{paths:[]}),t=e.paths,n=null===TS||void 0===TS?void 0:TS.reduce((function(e,t){if(console.log(f.pathname),"/auth/login"===f.pathname)e.titles.push("\u767b\u5f55");else if(t.key===f.pathname)e.titles.push(t.label);else if(Array.isArray(t.children)){var n=t.children.find((function(e){return e.key===f.pathname}));if(console.log("findItem",n),n)return e.titles.push(n.label||t.label),e}return e}),{titles:[]}),i=n.titles;console.log(t,i),i[i.length-1]?(document.title=i[i.length-1],localStorage.setItem("title",i[i.length-1])):document.title=localStorage.getItem("title")||"",b(t)}),[f.pathname]),(0,v.useEffect)((function(){var e=f.pathname.match(/(?<!\w)\/\w+/g);Array.isArray(e)&&l(e[0])}),[]),"/auth/login"===f.pathname)return(0,ES.jsx)(Ct,{});var C=ox(),S=(0,k.Z)(C,1)[0],w=function(){var e=(0,T.Z)((0,E.Z)().mark((function e(){var t;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S.validateFields();case 2:t=e.sent,console.log("values",t),t.newPassword1=void 0,Hk(t).then((function(e){e.success?(d.open({type:"success",content:"\u4fee\u6539\u6210\u529f"}),D(!1),setTimeout((function(){p("/auth/login")}),1e3)):d.open({type:"error",content:e.errorMsg})}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=(0,v.useState)(!1),N=(0,k.Z)(x,2),I=N[0],D=N[1],L=[{key:"password",label:(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)("div",{onClick:function(){D(!0)},children:"\u4fee\u6539\u5bc6\u7801"}),(0,ES.jsxs)(gm,{open:I,onOk:w,onCancel:function(){D(!1),S.resetFields()},okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",maskClosable:!1,children:[h,(0,ES.jsxs)(ip,{form:S,layout:"vertical",style:{marginTop:"40px"},children:[(0,ES.jsx)(ip.Item,{label:"\u539f\u5bc6\u7801",name:"currentPassword",rules:[{required:!0,message:"\u8bf7\u8f93\u5165"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u539f\u5bc6\u7801"})}),(0,ES.jsx)(ip.Item,{label:"\u65b0\u5bc6\u7801",name:"newPassword",rules:[{required:!0,message:"\u8bf7\u8f93\u5165"}],children:(0,ES.jsx)(Zy.Password,{placeholder:"\u8bf7\u8f93\u5165\u65b0\u5bc6\u7801"})}),(0,ES.jsx)(ip.Item,{label:"\u786e\u8ba4\u5bc6\u7801",name:"newPassword1",rules:[{required:!0,message:"\u8bf7\u8f93\u5165"}],children:(0,ES.jsx)(Zy.Password,{placeholder:"\u8bf7\u8f93\u5165\u786e\u8ba4\u5bc6\u7801"})})]})]})]})},{key:"logout",label:(0,ES.jsx)("div",{onClick:function(){localStorage.removeItem(IS),p("/auth/login")},children:"\u9000\u51fa\u767b\u5f55"})}];return(0,ES.jsxs)(yl,{className:"main-layout",children:[(0,ES.jsx)(nx,{className:"main-header",children:(0,ES.jsxs)(Vy,{size:20,children:[(0,ES.jsxs)("div",{style:{cursor:"pointer"},onClick:function(){p("/home/dashboard")},children:[(0,ES.jsx)("img",{src:n(951),alt:"",style:{marginTop:"15px",marginLeft:"-20px",height:"25px",float:"left"}}),(0,ES.jsx)("div",{style:{fontSize:"14px",marginLeft:"20px",fontWeight:600},children:"Hummingbird"})]}),(0,ES.jsx)("div",{}),(0,ES.jsx)(Fs,{onClick:function(){window.open("https://doc.hummingbird.winc-link.com/")}}),(0,ES.jsx)(zC,{menu:{items:L},placement:"bottom",arrow:{pointAtCenter:!0},trigger:["click"],children:(0,ES.jsx)(fS,{icon:(0,ES.jsx)(zs,{}),size:"small",style:{cursor:"pointer"}})})]})}),(0,ES.jsxs)(yl,{className:"main-body",hasSider:!0,children:[(0,ES.jsx)(rx,{width:200,className:"main-sider",theme:"light",collapsible:!0,collapsed:i,onCollapse:function(e){return r(e)},children:(0,ES.jsx)(CC,{mode:"inline",style:{height:"100%",borderRight:0},items:g,openKeys:_,onOpenChange:function(e){b(e)},selectedKeys:[f.pathname],onClick:function(e){var t=e.key;p(t)}})}),(0,ES.jsx)(yl,{className:"main-container",style:{marginLeft:i?80:200},children:(0,ES.jsx)(ix,{className:"main-view",children:(0,ES.jsx)(Ct,{})})})]})]})};var lx=function(){var e=st(),t=lt();return(0,v.useEffect)((function(){var n="/"===e.pathname?"/home/dashboard":e.pathname;DS()?"/"===e.pathname&&t("/home/dashboard"):t("/auth/login?path=".concat(encodeURIComponent(n)))})),(0,ES.jsx)(Xa,{theme:{token:{fontSize:12,borderRadius:4,colorPrimary:"#172c4d",colorBgLayout:"#fafafa",colorBorderSecondary:"#e7eaef"}},children:(0,ES.jsx)(Cs,{spinning:!1,children:(0,ES.jsx)(sx,{})})})},cx=n(97892),ux=n.n(cx),dx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},hx=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:dx}))};hx.displayName="CheckOutlined";var fx=v.forwardRef(hx),px={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},gx=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:px}))};gx.displayName="CopyOutlined";var vx=v.forwardRef(gx),mx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},yx=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:mx}))};yx.displayName="EditOutlined";var _x=v.forwardRef(yx),bx=n(76998),Cx=n.n(bx),Sx=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},wx={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},kx=v.forwardRef((function(e,t){var n=e.style,i=e.noStyle,r=e.disabled,o=Sx(e,["style","noStyle","disabled"]),a={};return i||(a=Zt({},wx)),r&&(a.pointerEvents="none"),a=Zt(Zt({},a),n),v.createElement("div",Zt({role:"button",tabIndex:0,ref:t},o,{onKeyDown:function(e){e.keyCode===vv.ENTER&&e.preventDefault()},onKeyUp:function(t){var n=t.keyCode,i=e.onClick;n===vv.ENTER&&i&&i()},style:a}))})),xx=kx,Ex=function(e){if(Ht()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function Tx(e,t){return Array.isArray(e)||void 0===t?Ex(e):function(e,t){if(!Ex(e))return!1;var n=document.createElement("div"),i=n.style[e];return n.style[e]=t,n.style[e]!==i}(e,t)}var Nx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Ix=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Nx}))};Ix.displayName="EnterOutlined";var Dx=v.forwardRef(Ix),Lx=function(e){return{color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:"color "+e.motionDurationSlow,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}},Ox=function(e){var t,n=e.componentCls,i=e.sizeMarginHeadingVerticalStart;return(0,N.Z)({},n,Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt((0,N.Z)({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,"&&-secondary":{color:e.colorTextDescription},"&&-success":{color:e.colorSuccess},"&&-warning":{color:e.colorWarning},"&&-danger":{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},"&&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"}},"\n div&,\n p\n ",{marginBottom:"1em"}),function(e){var t={};return[1,2,3,4,5].forEach((function(n){t["\n h"+n+"&,\n div&-h"+n+",\n div&-h"+n+" > textarea,\n h"+n+"\n "]=function(e,t,n,i){return{marginBottom:i.sizeMarginHeadingVerticalEnd,color:n,fontWeight:i.fontWeightStrong,fontSize:e,lineHeight:t}}(e["fontSizeHeading"+n],e["lineHeightHeading"+n],e.colorTextHeading,e)})),t}(e)),(t={},(0,N.Z)(t,"\n & + h1&,\n & + h2&,\n & + h3&,\n & + h4&,\n & + h5&\n ",{marginTop:i}),(0,N.Z)(t,"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5",(0,N.Z)({},"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ",{marginTop:i})),t)),{code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ta[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),function(e){var t=e.componentCls;return{"a&, a":Zt(Zt({},Lx(e)),(0,N.Z)({textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration}},"&[disabled], &"+t+"-disabled",{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}))}}(e)),(0,N.Z)({},"\n "+n+"-expand,\n "+n+"-edit,\n "+n+"-copy\n ",Zt(Zt({},Lx(e)),{marginInlineStart:e.marginXXS}))),function(e){var t,n=e.componentCls,i=Im(e).inputPaddingVertical+1;return{"&-edit-content":(t={position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-i,marginBottom:"calc(1em - "+i+"px)"}},(0,N.Z)(t,n+"-edit-content-confirm",{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"}),(0,N.Z)(t,"textarea",{margin:"0!important",MozTransition:"none",height:"1em"}),t)}}(e)),function(e){return{"&-copy-success":(0,N.Z)({},"\n &,\n &:hover,\n &:focus",{color:e.colorSuccess})}}(e)),function(){var e;return e={},(0,N.Z)(e,"\n a&-ellipsis,\n span&-ellipsis\n ",{display:"inline-block",maxWidth:"100%"}),(0,N.Z)(e,"&-single-line",{whiteSpace:"nowrap"}),(0,N.Z)(e,"&-ellipsis-single-line",{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}}),(0,N.Z)(e,"&-ellipsis-multiple-line",{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}),e}()),{"&-rtl":{direction:"rtl"}}))},Rx=hs("Typography",(function(e){return[Ox(e)]}),{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),Ax=function(e){var t=e.prefixCls,n=e["aria-label"],i=e.className,r=e.style,o=e.direction,a=e.maxLength,s=e.autoSize,l=void 0===s||s,c=e.value,u=e.onSave,d=e.onCancel,h=e.onEnd,f=e.component,p=e.enterIcon,g=void 0===p?v.createElement(Dx,null):p,m=v.useRef(null),y=v.useRef(!1),_=v.useRef(),b=v.useState(c),C=(0,k.Z)(b,2),S=C[0],w=C[1];v.useEffect((function(){w(c)}),[c]),v.useEffect((function(){if(m.current&&m.current.resizableTextArea){var e=m.current.resizableTextArea.textArea;e.focus();var t=e.value.length;e.setSelectionRange(t,t)}}),[]);var x=function(){u(S.trim())},E=f?t+"-"+f:"",T=Rx(t),I=(0,k.Z)(T,2),D=I[0],L=I[1],O=Ja()(t,t+"-edit-content",(0,N.Z)({},t+"-rtl","rtl"===o),i,E,L);return D(v.createElement("div",{className:O,style:r},v.createElement(My,{ref:m,maxLength:a,value:S,onChange:function(e){var t=e.target;w(t.value.replace(/[\n\r]/g,""))},onKeyDown:function(e){var t=e.keyCode;y.current||(_.current=t)},onKeyUp:function(e){var t=e.keyCode,n=e.ctrlKey,i=e.altKey,r=e.metaKey,o=e.shiftKey;_.current!==t||y.current||n||i||r||o||(t===vv.ENTER?(x(),null===h||void 0===h||h()):t===vv.ESC&&d())},onCompositionStart:function(){y.current=!0},onCompositionEnd:function(){y.current=!1},onBlur:function(){x()},"aria-label":n,rows:1,autoSize:l}),null!==g?os(g,{className:t+"-edit-content-confirm"}):null))};function Mx(e,t){return v.useMemo((function(){var n=!!e;return[n,Zt(Zt({},t),n&&"object"===(0,Bt.Z)(e)?e:null)]}),[e])}var Px=function(e,t){var n=v.useRef(!1);v.useEffect((function(){n.current?e():n.current=!0}),t)},Zx=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},Fx=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.component,r=void 0===i?"article":i,o=e.className,a=e.setContentRef,s=e.children,l=e.direction,c=Zx(e,["prefixCls","component","className","setContentRef","children","direction"]),u=v.useContext(wa),d=u.getPrefixCls,h=u.direction,f=null!==l&&void 0!==l?l:h,p=t;a&&(p=Nl(t,a));var g=d("typography",n),m=Rx(g),y=(0,k.Z)(m,2),_=y[0],b=y[1],C=Ja()(g,(0,N.Z)({},g+"-rtl","rtl"===f),o,b);return _(v.createElement(r,Zt({className:C,ref:p},c),s))}));var Bx=Fx;function Hx(e){var t=(0,Bt.Z)(e);return"string"===t||"number"===t}function zx(e,t){for(var n=0,i=[],r=0;r<e.length;r+=1){if(n===t)return i;var o=e[r],a=n+(Hx(o)?String(o).length:1);if(a>t){var s=t-n;return i.push(String(o).slice(0,s)),i}i.push(o),n=a}return e}var jx=function(e){var t=e.enabledMeasure,n=e.children,i=e.text,r=e.width,o=e.fontSize,a=e.rows,s=e.onEllipsis,l=v.useState([0,0,0]),c=(0,k.Z)(l,2),u=(0,k.Z)(c[0],3),d=u[0],h=u[1],f=u[2],p=c[1],g=v.useState(0),m=(0,k.Z)(g,2),y=m[0],_=m[1],b=v.useState(0),C=(0,k.Z)(b,2),S=C[0],w=C[1],x=v.useRef(null),E=v.useRef(null),T=v.useMemo((function(){return Zi(i)}),[i]),N=v.useMemo((function(){return function(e){var t=0;return e.forEach((function(e){Hx(e)?t+=String(e).length:t+=1})),t}(T)}),[T]),I=v.useMemo((function(){return t&&3===y?n(zx(T,h),h<N):n(T,!1)}),[t,y,n,T,h,N]);ju((function(){t&&r&&o&&N&&(_(1),p([0,Math.ceil(N/2),N]))}),[t,r,o,i,N,a]),ju((function(){var e;1===y&&w((null===(e=x.current)||void 0===e?void 0:e.offsetHeight)||0)}),[y]),ju((function(){var e,t;if(S)if(1===y)((null===(e=E.current)||void 0===e?void 0:e.offsetHeight)||0)<=a*S?(_(4),s(!1)):_(2);else if(2===y)if(d!==f){var n=(null===(t=E.current)||void 0===t?void 0:t.offsetHeight)||0,i=d,r=f;d===f-1?r=d:n<=a*S?i=h:r=h;var o=Math.ceil((i+r)/2);p([i,o,r])}else _(3),s(!0)}),[y,d,f,a,S]);var D={width:r,whiteSpace:"normal",margin:0,padding:0},L=function(e,t,n){return v.createElement("span",{"aria-hidden":!0,ref:t,style:Zt({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.floor(o/2)},n)},e)};return v.createElement(v.Fragment,null,I,t&&3!==y&&4!==y&&v.createElement(v.Fragment,null,L("lg",x,{wordBreak:"keep-all",whiteSpace:"nowrap"}),1===y?L(n(T,!1),E,D):function(e,t){var i=zx(T,e);return L(n(i,!0),t,D)}(h,E)))};var Vx=function(e){var t=e.enabledEllipsis,n=e.isEllipsis,i=e.children,r=e.tooltipProps;return(null===r||void 0===r?void 0:r.title)&&t?v.createElement(Vf,Zt({open:!!n&&void 0},r),i):i},Wx=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function Ux(e,t,n){return!0===e||void 0===e?t:e||n&&t}function Gx(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}var Kx=v.forwardRef((function(e,t){var n,i,r,o=e.prefixCls,a=e.className,s=e.style,l=e.type,c=e.disabled,u=e.children,d=e.ellipsis,h=e.editable,f=e.copyable,p=e.component,g=e.title,m=Wx(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),y=v.useContext(wa),_=y.getPrefixCls,b=y.direction,C=wo("Text")[0],S=v.useRef(null),w=v.useRef(null),x=_("typography",o),E=ns(m,["mark","code","delete","underline","strong","keyboard","italic"]),T=Mx(h),I=(0,k.Z)(T,2),D=I[0],L=I[1],O=Sf(!1,{value:L.editing}),R=(0,k.Z)(O,2),A=R[0],M=R[1],P=L.triggerType,Z=void 0===P?["icon"]:P,F=function(e){var t;e&&(null===(t=L.onStart)||void 0===t||t.call(L)),M(e)};Px((function(){var e;A||null===(e=w.current)||void 0===e||e.focus()}),[A]);var B=function(e){null===e||void 0===e||e.preventDefault(),F(!0)},H=Mx(f),z=(0,k.Z)(H,2),j=z[0],V=z[1],W=v.useState(!1),U=(0,k.Z)(W,2),G=U[0],K=U[1],Y=v.useRef(),q={};V.format&&(q.format=V.format);var $=function(){window.clearTimeout(Y.current)},X=function(e){var t;null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),Cx()(V.text||String(u)||"",q),K(!0),$(),Y.current=window.setTimeout((function(){K(!1)}),3e3),null===(t=V.onCopy)||void 0===t||t.call(V,e)};v.useEffect((function(){return $}),[]);var Q=v.useState(!1),J=(0,k.Z)(Q,2),ee=J[0],te=J[1],ne=v.useState(!1),ie=(0,k.Z)(ne,2),re=ie[0],oe=ie[1],ae=v.useState(!1),se=(0,k.Z)(ae,2),le=se[0],ce=se[1],ue=v.useState(!1),de=(0,k.Z)(ue,2),he=de[0],fe=de[1],pe=v.useState(!1),ge=(0,k.Z)(pe,2),ve=ge[0],me=ge[1],ye=v.useState(!0),_e=(0,k.Z)(ye,2),be=_e[0],Ce=_e[1],Se=Mx(d,{expandable:!1}),we=(0,k.Z)(Se,2),ke=we[0],xe=we[1],Ee=ke&&!le,Te=xe.rows,Ne=void 0===Te?1:Te,Ie=v.useMemo((function(){return!Ee||void 0!==xe.suffix||xe.onEllipsis||xe.expandable||D||j}),[Ee,xe,D,j]);ju((function(){ke&&!Ie&&(te(Tx("webkitLineClamp")),oe(Tx("textOverflow")))}),[Ie,ke]);var De=v.useMemo((function(){return!Ie&&(1===Ne?re:ee)}),[Ie,re,ee]),Le=Ee&&(De?ve:he),Oe=Ee&&1===Ne&&De,Re=Ee&&Ne>1&&De,Ae=function(e){var t;ce(!0),null===(t=xe.onExpand)||void 0===t||t.call(xe,e)},Me=v.useState(0),Pe=(0,k.Z)(Me,2),Ze=Pe[0],Fe=Pe[1],Be=v.useState(0),He=(0,k.Z)(Be,2),ze=He[0],je=He[1],Ve=function(e){var t;fe(e),he!==e&&(null===(t=xe.onEllipsis)||void 0===t||t.call(xe,e))};v.useEffect((function(){var e=S.current;if(ke&&De&&e){var t=Re?e.offsetHeight<e.scrollHeight:e.offsetWidth<e.scrollWidth;ve!==t&&me(t)}}),[ke,De,u,Re,be]),v.useEffect((function(){var e=S.current;if("undefined"!==typeof IntersectionObserver&&e&&De&&Ee){var t=new IntersectionObserver((function(){Ce(!!e.offsetParent)}));return t.observe(e),function(){t.disconnect()}}}),[De,Ee]);var We={};We=!0===xe.tooltip?{title:null!==(n=L.text)&&void 0!==n?n:u}:v.isValidElement(xe.tooltip)?{title:xe.tooltip}:"object"===(0,Bt.Z)(xe.tooltip)?Zt({title:null!==(i=L.text)&&void 0!==i?i:u},xe.tooltip):{title:xe.tooltip};var Ue=v.useMemo((function(){var e=function(e){return["string","number"].includes((0,Bt.Z)(e))};if(ke&&!De)return e(L.text)?L.text:e(u)?u:e(g)?g:e(We.title)?We.title:void 0}),[ke,De,g,We.title,Le]);if(A)return v.createElement(Ax,{value:null!==(r=L.text)&&void 0!==r?r:"string"===typeof u?u:"",onSave:function(e){var t;null===(t=L.onChange)||void 0===t||t.call(L,e),F(!1)},onCancel:function(){var e;null===(e=L.onCancel)||void 0===e||e.call(L),F(!1)},onEnd:L.onEnd,prefixCls:x,className:a,style:s,direction:b,component:p,maxLength:L.maxLength,autoSize:L.autoSize,enterIcon:L.enterIcon});var Ge=function(){var e,t=xe.expandable,n=xe.symbol;return t?(e=n||C.expand,v.createElement("a",{key:"expand",className:x+"-expand",onClick:Ae,"aria-label":C.expand},e)):null},Ke=function(){if(D){var e=L.icon,t=L.tooltip,n=Zi(t)[0]||C.edit,i="string"===typeof n?n:"";return Z.includes("icon")?v.createElement(Vf,{key:"edit",title:!1===t?"":n},v.createElement(xx,{ref:w,className:x+"-edit",onClick:B,"aria-label":i},e||v.createElement(_x,{role:"button"}))):null}},Ye=function(){if(j){var e=V.tooltips,t=V.icon,n=Gx(e),i=Gx(t),r=G?Ux(n[1],C.copied):Ux(n[0],C.copy),o=G?C.copied:C.copy,a="string"===typeof r?r:o;return v.createElement(Vf,{key:"copy",title:r},v.createElement(xx,{className:Ja()(x+"-copy",G&&x+"-copy-success"),onClick:X,"aria-label":a},G?Ux(i[1],v.createElement(fx,null),!0):Ux(i[0],v.createElement(vx,null),!0)))}};return v.createElement(yy,{onResize:function(e,t){var n,i=e.offsetWidth;Fe(i),je(parseInt(null===(n=window.getComputedStyle)||void 0===n?void 0:n.call(window,t).fontSize,10)||0)},disabled:!Ee||De},(function(n){var i;return v.createElement(Vx,{tooltipProps:We,enabledEllipsis:Ee,isEllipsis:Le},v.createElement(Bx,Zt({className:Ja()((i={},(0,N.Z)(i,x+"-"+l,l),(0,N.Z)(i,x+"-disabled",c),(0,N.Z)(i,x+"-ellipsis",ke),(0,N.Z)(i,x+"-single-line",Ee&&1===Ne),(0,N.Z)(i,x+"-ellipsis-single-line",Oe),(0,N.Z)(i,x+"-ellipsis-multiple-line",Re),i),a),prefixCls:o,style:Zt(Zt({},s),{WebkitLineClamp:Re?Ne:void 0}),component:p,ref:Nl(n,S,t),direction:b,onClick:Z.includes("text")?B:void 0,"aria-label":null===Ue||void 0===Ue?void 0:Ue.toString(),title:g},E),v.createElement(jx,{enabledMeasure:Ee&&!De,text:u,rows:Ne,width:Ze,fontSize:ze,onEllipsis:Ve},(function(t,n){var i=t;t.length&&n&&Ue&&(i=v.createElement("span",{key:"show-content","aria-hidden":!0},i));var r=function(e,t){var n=e.mark,i=e.code,r=e.underline,o=e.delete,a=e.strong,s=e.keyboard,l=e.italic,c=t;function u(e,t){e&&(c=v.createElement(t,{},c))}return u(a,"strong"),u(r,"u"),u(o,"del"),u(i,"code"),u(n,"mark"),u(s,"kbd"),u(l,"i"),c}(e,v.createElement(v.Fragment,null,i,function(e){return[e&&v.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),xe.suffix,(t=e,[t&&Ge(),Ke(),Ye()])];var t}(n)));return r}))))}))})),Yx=Kx,qx=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},$x=v.forwardRef((function(e,t){var n=e.ellipsis,i=e.rel,r=qx(e,["ellipsis","rel"]),o=Zt(Zt({},r),{rel:void 0===i&&"_blank"===r.target?"noopener noreferrer":i});return delete o.navigate,v.createElement(Yx,Zt({},o,{ref:t,ellipsis:!!n,component:"a"}))})),Xx=$x,Qx=v.forwardRef((function(e,t){return v.createElement(Yx,Zt({ref:t},e,{component:"div"}))})),Jx=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},eE=function(e,t){var n=e.ellipsis,i=Jx(e,["ellipsis"]),r=v.useMemo((function(){return n&&"object"===(0,Bt.Z)(n)?ns(n,["expandable","rows"]):n}),[n]);return v.createElement(Yx,Zt({ref:t},i,{ellipsis:r,component:"span"}))},tE=v.forwardRef(eE),nE=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},iE=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}(1,2,3,4,5),rE=v.forwardRef((function(e,t){var n,i=e.level,r=void 0===i?1:i,o=nE(e,["level"]);return n=iE.includes(r)?"h"+r:"h1",v.createElement(Yx,Zt({ref:t},o,{component:n}))})),oE=rE,aE=Bx;aE.Text=tE,aE.Link=Xx,aE.Title=oE,aE.Paragraph=Qx;var sE=aE,lE=function(e){var t,n,i=e.prefixCls,r=e.className,o=e.style,a=e.size,s=e.shape,l=Ja()((t={},(0,N.Z)(t,i+"-lg","large"===a),(0,N.Z)(t,i+"-sm","small"===a),t)),c=Ja()((n={},(0,N.Z)(n,i+"-circle","circle"===s),(0,N.Z)(n,i+"-square","square"===s),(0,N.Z)(n,i+"-round","round"===s),n)),u=v.useMemo((function(){return"number"===typeof a?{width:a,height:a,lineHeight:a+"px"}:{}}),[a]);return v.createElement("span",{className:Ja()(i,l,c,r),style:Zt(Zt({},u),o)})},cE=new Ti("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),uE=function(e){return{height:e,lineHeight:e+"px"}},dE=function(e){return Zt({width:e},uE(e))},hE=function(e){return Zt({width:5*e,minWidth:5*e},uE(e))},fE=function(e){return Zt({width:e},uE(e))},pE=function(e,t,n){var i,r=e.skeletonButtonCls;return i={},(0,N.Z)(i,""+n+r+"-circle",{width:t,minWidth:t,borderRadius:"50%"}),(0,N.Z)(i,""+n+r+"-round",{borderRadius:t}),i},gE=function(e){return Zt({width:2*e,minWidth:2*e},uE(e))},vE=function(e){var t,n,i,r,o,a=e.componentCls,s=e.skeletonAvatarCls,l=e.skeletonTitleCls,c=e.skeletonParagraphCls,u=e.skeletonButtonCls,d=e.skeletonInputCls,h=e.skeletonImageCls,f=e.controlHeight,p=e.controlHeightLG,g=e.controlHeightSM,v=e.color,m=e.padding,y=e.marginSM,_=e.borderRadius,b=e.skeletonTitleHeight,C=e.skeletonBlockRadius,S=e.skeletonParagraphLineHeight,w=e.controlHeightXS,k=e.skeletonParagraphMarginTop;return o={},(0,N.Z)(o,""+a,(i={display:"table",width:"100%"},(0,N.Z)(i,a+"-header",(t={display:"table-cell",paddingInlineEnd:m,verticalAlign:"top"},(0,N.Z)(t,""+s,Zt({display:"inline-block",verticalAlign:"top",background:v},dE(f))),(0,N.Z)(t,s+"-circle",{borderRadius:"50%"}),(0,N.Z)(t,s+"-lg",Zt({},dE(p))),(0,N.Z)(t,s+"-sm",Zt({},dE(g))),t)),(0,N.Z)(i,a+"-content",(n={display:"table-cell",width:"100%",verticalAlign:"top"},(0,N.Z)(n,""+l,(0,N.Z)({width:"100%",height:b,background:v,borderRadius:C},"+ "+c,{marginBlockStart:g})),(0,N.Z)(n,""+c,{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:v,borderRadius:C,"+ li":{marginBlockStart:w}}}),(0,N.Z)(n,c+"> li:last-child:not(:first-child):not(:nth-child(2))",{width:"61%"}),n)),(0,N.Z)(i,"&-round "+a+"-content",(0,N.Z)({},l+", "+c+" > li",{borderRadius:_})),i)),(0,N.Z)(o,a+"-with-avatar "+a+"-content",(0,N.Z)({},""+l,(0,N.Z)({marginBlockStart:y},"+ "+c,{marginBlockStart:k}))),(0,N.Z)(o,""+a+a+"-element",Zt(Zt(Zt(Zt({display:"inline-block",width:"auto"},function(e){var t=e.borderRadiusSM,n=e.skeletonButtonCls,i=e.controlHeight,r=e.controlHeightLG,o=e.controlHeightSM,a=e.color;return Zt(Zt(Zt(Zt(Zt((0,N.Z)({},""+n,Zt({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:2*i,minWidth:2*i},gE(i))),pE(e,i,n)),(0,N.Z)({},n+"-lg",Zt({},gE(r)))),pE(e,r,n+"-lg")),(0,N.Z)({},n+"-sm",Zt({},gE(o)))),pE(e,o,n+"-sm"))}(e)),function(e){var t,n=e.skeletonAvatarCls,i=e.color,r=e.controlHeight,o=e.controlHeightLG,a=e.controlHeightSM;return t={},(0,N.Z)(t,""+n,Zt({display:"inline-block",verticalAlign:"top",background:i},dE(r))),(0,N.Z)(t,""+n+n+"-circle",{borderRadius:"50%"}),(0,N.Z)(t,""+n+n+"-lg",Zt({},dE(o))),(0,N.Z)(t,""+n+n+"-sm",Zt({},dE(a))),t}(e)),function(e){var t,n=e.controlHeight,i=e.borderRadiusSM,r=e.skeletonInputCls,o=e.controlHeightLG,a=e.controlHeightSM,s=e.color;return t={},(0,N.Z)(t,""+r,Zt({display:"inline-block",verticalAlign:"top",background:s,borderRadius:i},hE(n))),(0,N.Z)(t,r+"-lg",Zt({},hE(o))),(0,N.Z)(t,r+"-sm",Zt({},hE(a))),t}(e)),function(e){var t,n,i=e.skeletonImageCls,r=e.imageSizeBase,o=e.color,a=e.borderRadiusSM;return n={},(0,N.Z)(n,""+i,Zt(Zt({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:o,borderRadius:a},fE(2*r)),(t={},(0,N.Z)(t,i+"-path",{fill:"#bfbfbf"}),(0,N.Z)(t,i+"-svg",Zt(Zt({},fE(r)),{maxWidth:4*r,maxHeight:4*r})),(0,N.Z)(t,i+"-svg"+i+"-svg-circle",{borderRadius:"50%"}),t))),(0,N.Z)(n,""+i+i+"-circle",{borderRadius:"50%"}),n}(e))),(0,N.Z)(o,""+a+a+"-block",(r={width:"100%"},(0,N.Z)(r,""+u,{width:"100%"}),(0,N.Z)(r,""+d,{width:"100%"}),r)),(0,N.Z)(o,""+a+a+"-active",(0,N.Z)({},"\n "+l+",\n "+c+" > li,\n "+s+",\n "+u+",\n "+d+",\n "+h+"\n ",Zt({},function(e){return{position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:cE,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}}(e)))),o},mE=hs("Skeleton",(function(e){var t=e.componentCls,n=cs(e,{skeletonAvatarCls:t+"-avatar",skeletonTitleCls:t+"-title",skeletonParagraphCls:t+"-paragraph",skeletonButtonCls:t+"-button",skeletonInputCls:t+"-input",skeletonImageCls:t+"-image",imageSizeBase:1.5*e.controlHeight,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:"linear-gradient(90deg, "+e.color+" 25%, "+e.colorGradientEnd+" 37%, "+e.color+" 63%)",skeletonLoadingMotionDuration:"1.4s"});return[vE(n)]}),(function(e){return{color:e.colorFillContent,colorGradientEnd:e.colorFill}})),yE=function(e){var t=e.prefixCls,n=e.className,i=e.active,r=e.shape,o=void 0===r?"circle":r,a=e.size,s=void 0===a?"default":a,l=(0,v.useContext(wa).getPrefixCls)("skeleton",t),c=mE(l),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=ns(e,["prefixCls","className"]),p=Ja()(l,l+"-element",(0,N.Z)({},l+"-active",i),n,h);return d(v.createElement("div",{className:p},v.createElement(lE,Zt({prefixCls:l+"-avatar",shape:o,size:s},f))))},_E=function(e){var t,n=e.prefixCls,i=e.className,r=e.active,o=e.block,a=void 0!==o&&o,s=e.size,l=void 0===s?"default":s,c=(0,v.useContext(wa).getPrefixCls)("skeleton",n),u=mE(c),d=(0,k.Z)(u,2),h=d[0],f=d[1],p=ns(e,["prefixCls"]),g=Ja()(c,c+"-element",(t={},(0,N.Z)(t,c+"-active",r),(0,N.Z)(t,c+"-block",a),t),i,f);return h(v.createElement("div",{className:g},v.createElement(lE,Zt({prefixCls:c+"-button",size:l},p))))},bE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},CE=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:bE}))};CE.displayName="DotChartOutlined";var SE=v.forwardRef(CE),wE=function(e){var t=e.prefixCls,n=e.className,i=e.style,r=e.active,o=e.children,a=(0,v.useContext(wa).getPrefixCls)("skeleton",t),s=mE(a),l=(0,k.Z)(s,2),c=l[0],u=l[1],d=Ja()(a,a+"-element",(0,N.Z)({},a+"-active",r),u,n),h=null!==o&&void 0!==o?o:v.createElement(SE,null);return c(v.createElement("div",{className:d},v.createElement("div",{className:Ja()(a+"-image",n),style:i},h)))},kE=function(e){var t=e.prefixCls,n=e.className,i=e.style,r=e.active,o=(0,v.useContext(wa).getPrefixCls)("skeleton",t),a=mE(o),s=(0,k.Z)(a,2),l=s[0],c=s[1],u=Ja()(o,o+"-element",(0,N.Z)({},o+"-active",r),n,c);return l(v.createElement("div",{className:u},v.createElement("div",{className:Ja()(o+"-image",n),style:i},v.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:o+"-image-svg"},v.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:o+"-image-path"})))))},xE=function(e){var t,n=e.prefixCls,i=e.className,r=e.active,o=e.block,a=e.size,s=void 0===a?"default":a,l=(0,v.useContext(wa).getPrefixCls)("skeleton",n),c=mE(l),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=ns(e,["prefixCls"]),p=Ja()(l,l+"-element",(t={},(0,N.Z)(t,l+"-active",r),(0,N.Z)(t,l+"-block",o),t),i,h);return d(v.createElement("div",{className:p},v.createElement(lE,Zt({prefixCls:l+"-input",size:s},f))))},EE=function(e){var t=function(t){var n=e.width,i=e.rows,r=void 0===i?2:i;return Array.isArray(n)?n[t]:r-1===t?n:void 0},n=e.prefixCls,i=e.className,r=e.style,o=e.rows,a=(0,_.Z)(Array(o)).map((function(e,n){return v.createElement("li",{key:n,style:{width:t(n)}})}));return v.createElement("ul",{className:Ja()(n,i),style:r},a)},TE=function(e){var t=e.prefixCls,n=e.className,i=e.width,r=e.style;return v.createElement("h3",{className:Ja()(t,n),style:Zt({width:i},r)})};function NE(e){return e&&"object"===(0,Bt.Z)(e)?e:{}}var IE=function(e){var t=e.prefixCls,n=e.loading,i=e.className,r=e.style,o=e.children,a=e.avatar,s=void 0!==a&&a,l=e.title,c=void 0===l||l,u=e.paragraph,d=void 0===u||u,h=e.active,f=e.round,p=v.useContext(wa),g=p.getPrefixCls,m=p.direction,y=g("skeleton",t),_=mE(y),b=(0,k.Z)(_,2),C=b[0],S=b[1];if(n||!("loading"in e)){var w,x,E,T=!!s,I=!!c,D=!!d;if(T){var L=Zt(Zt({prefixCls:y+"-avatar"},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(I,D)),NE(s));x=v.createElement("div",{className:y+"-header"},v.createElement(lE,Zt({},L)))}if(I||D){var O,R;if(I){var A=Zt(Zt({prefixCls:y+"-title"},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(T,D)),NE(c));O=v.createElement(TE,Zt({},A))}if(D){var M=Zt(Zt({prefixCls:y+"-paragraph"},function(e,t){var n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(T,I)),NE(d));R=v.createElement(EE,Zt({},M))}E=v.createElement("div",{className:y+"-content"},O,R)}var P=Ja()(y,(w={},(0,N.Z)(w,y+"-with-avatar",T),(0,N.Z)(w,y+"-active",h),(0,N.Z)(w,y+"-rtl","rtl"===m),(0,N.Z)(w,y+"-round",f),w),i,S);return C(v.createElement("div",{className:P,style:r},x,E))}return"undefined"!==typeof o?o:null};IE.Button=_E,IE.Avatar=yE,IE.Input=xE,IE.Image=kE,IE.Node=wE;var DE=IE,LE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},OE=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:LE}))};OE.displayName="PlusOutlined";var RE=v.forwardRef(OE),AE=(0,v.createContext)(null),ME=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,r=e.style,o=e.id,a=e.active,s=e.tabKey,l=e.children;return v.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!a,style:r,className:Ja()(n,a&&"".concat(n,"-active"),i),ref:t},l)}));var PE=ME,ZE=["key","forceRender","style","className"];function FE(e){var t=e.id,n=e.activeKey,i=e.animated,r=e.tabPosition,o=e.destroyInactiveTabPane,a=v.useContext(AE),s=a.prefixCls,l=a.tabs,c=i.tabPane,u="".concat(s,"-tabpane");return v.createElement("div",{className:Ja()("".concat(s,"-content-holder"))},v.createElement("div",{className:Ja()("".concat(s,"-content"),"".concat(s,"-content-").concat(r),(0,N.Z)({},"".concat(s,"-content-animated"),c))},l.map((function(e){var r=e.key,a=e.forceRender,s=e.style,l=e.className,d=Ai(e,ZE),h=r===n;return v.createElement(xc,Zt({key:r,visible:h,forceRender:a,removeOnLeave:!!o,leavedClassName:"".concat(u,"-hidden")},i.tabPaneMotion),(function(e,n){var i=e.style,o=e.className;return v.createElement(PE,Zt({},d,{prefixCls:u,id:t,tabKey:r,animated:c,active:h,style:(0,Ft.Z)((0,Ft.Z)({},s),i),className:Ja()(l,o),ref:n}))}))}))))}function BE(e){var t=(0,v.useRef)(),n=(0,v.useRef)(!1);return(0,v.useEffect)((function(){return n.current=!1,function(){n.current=!0,oc.cancel(t.current)}}),[]),function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];n.current||(oc.cancel(t.current),t.current=oc((function(){e.apply(void 0,r)})))}}function HE(e,t){var n,i=e.prefixCls,r=e.id,o=e.active,a=e.tab,s=a.key,l=a.label,c=a.disabled,u=a.closeIcon,d=e.closable,h=e.renderWrapper,f=e.removeAriaLabel,p=e.editable,g=e.onClick,m=e.onRemove,y=e.onFocus,_=e.style,b="".concat(i,"-tab");v.useEffect((function(){return m}),[]);var C=p&&!1!==d&&!c;function S(e){c||g(e)}var w=v.createElement("div",{key:s,ref:t,className:Ja()(b,(n={},(0,N.Z)(n,"".concat(b,"-with-remove"),C),(0,N.Z)(n,"".concat(b,"-active"),o),(0,N.Z)(n,"".concat(b,"-disabled"),c),n)),style:_,onClick:S},v.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),S(e)},onKeyDown:function(e){[vv.SPACE,vv.ENTER].includes(e.which)&&(e.preventDefault(),S(e))},onFocus:y},l),C&&v.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),p.onEdit("remove",{key:s,event:t})}},u||p.removeIcon||"\xd7"));return h?h(w):w}var zE=v.forwardRef(HE),jE={width:0,height:0,left:0,top:0};var VE={width:0,height:0,left:0,top:0,right:0};function WE(e,t){var n=e.prefixCls,i=e.editable,r=e.locale,o=e.style;return i&&!1!==i.showAdd?v.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(null===r||void 0===r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){i.onEdit("add",{event:e})}},i.addIcon||"+"):null}var UE=v.forwardRef(WE);function GE(e,t){var n=e.prefixCls,i=e.id,r=e.tabs,o=e.locale,a=e.mobile,s=e.moreIcon,l=void 0===s?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,h=e.editable,f=e.tabBarGutter,p=e.rtl,g=e.removeAriaLabel,m=e.onTabClick,y=e.getPopupContainer,_=e.popupClassName,b=(0,v.useState)(!1),C=(0,k.Z)(b,2),S=C[0],w=C[1],x=(0,v.useState)(null),E=(0,k.Z)(x,2),T=E[0],I=E[1],D="".concat(i,"-more-popup"),L="".concat(n,"-dropdown"),O=null!==T?"".concat(D,"-").concat(T):null,R=null===o||void 0===o?void 0:o.dropdownAriaLabel;var A=v.createElement(Pb,{onClick:function(e){var t=e.key,n=e.domEvent;m(t,n),w(!1)},prefixCls:"".concat(L,"-menu"),id:D,tabIndex:-1,role:"listbox","aria-activedescendant":O,selectedKeys:[T],"aria-label":void 0!==R?R:"expanded dropdown"},r.map((function(e){var t=h&&!1!==e.closable&&!e.disabled;return v.createElement(j_,{key:e.key,id:"".concat(D,"-").concat(e.key),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(e.key),disabled:e.disabled},v.createElement("span",null,e.label),t&&v.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(L,"-menu-item-remove"),onClick:function(t){var n,i;t.stopPropagation(),n=t,i=e.key,n.preventDefault(),n.stopPropagation(),h.onEdit("remove",{key:i,event:n})}},e.closeIcon||h.removeIcon||"\xd7"))})));function M(e){for(var t=r.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===T}))||0,i=t.length,o=0;o<i;o+=1){var a=t[n=(n+e+i)%i];if(!a.disabled)return void I(a.key)}}(0,v.useEffect)((function(){var e=document.getElementById(O);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[T]),(0,v.useEffect)((function(){S||I(null)}),[S]);var P=(0,N.Z)({},p?"marginRight":"marginLeft",f);r.length||(P.visibility="hidden",P.order=1);var Z=Ja()((0,N.Z)({},"".concat(L,"-rtl"),p)),F=a?null:v.createElement(Jy,{prefixCls:L,overlay:A,trigger:["hover"],visible:!!r.length&&S,transitionName:c,onVisibleChange:w,overlayClassName:Ja()(Z,_),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},v.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:P,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":D,id:"".concat(i,"-more"),"aria-expanded":S,onKeyDown:function(e){var t=e.which;if(S)switch(t){case vv.UP:M(-1),e.preventDefault();break;case vv.DOWN:M(1),e.preventDefault();break;case vv.ESC:w(!1);break;case vv.SPACE:case vv.ENTER:null!==T&&m(T,e)}else[vv.DOWN,vv.SPACE,vv.ENTER].includes(t)&&(w(!0),e.preventDefault())}},l));return v.createElement("div",{className:Ja()("".concat(n,"-nav-operations"),d),style:u,ref:t},F,v.createElement(UE,{prefixCls:n,locale:o,editable:h}))}var KE=v.memo(v.forwardRef(GE),(function(e,t){return t.tabMoving})),YE=Math.pow(.995,20);function qE(e,t){var n=v.useRef(e),i=v.useState({}),r=(0,k.Z)(i,2)[1];return[n.current,function(e){var i="function"===typeof e?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}]}function $E(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}var XE=v.forwardRef((function(e,t){var n,i=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a={};return"object"!==(0,Bt.Z)(o)||v.isValidElement(o)?a.right=o:a=o,"right"===i&&(n=a.right),"left"===i&&(n=a.left),n?v.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},n):null}));var QE=XE,JE=function(e){var t=e.current||{},n=t.offsetWidth,i=void 0===n?0:n,r=t.offsetHeight;return[i,void 0===r?0:r]},eT=function(e,t){return e[t?0:1]};function tT(e,t){var n,i=v.useContext(AE),r=i.prefixCls,o=i.tabs,a=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,h=e.extra,f=e.editable,p=e.locale,g=e.tabPosition,m=e.tabBarGutter,y=e.children,b=e.onTabClick,C=e.onTabScroll,S=(0,v.useRef)(),w=(0,v.useRef)(),x=(0,v.useRef)(),E=(0,v.useRef)(),T=(0,v.useRef)(),I=(0,v.useRef)(),D=(0,v.useRef)(),L=function(){var e=(0,v.useRef)(new Map);return[function(t){return e.current.has(t)||e.current.set(t,v.createRef()),e.current.get(t)},function(t){e.current.delete(t)}]}(),O=(0,k.Z)(L,2),R=O[0],A=O[1],M="top"===g||"bottom"===g,P=qE(0,(function(e,t){M&&C&&C({direction:e>t?"left":"right"})})),Z=(0,k.Z)(P,2),F=Z[0],B=Z[1],H=qE(0,(function(e,t){!M&&C&&C({direction:e>t?"top":"bottom"})})),z=(0,k.Z)(H,2),j=z[0],V=z[1],W=(0,v.useState)([0,0]),U=(0,k.Z)(W,2),G=U[0],K=U[1],Y=(0,v.useState)([0,0]),q=(0,k.Z)(Y,2),$=q[0],X=q[1],Q=(0,v.useState)([0,0]),J=(0,k.Z)(Q,2),ee=J[0],te=J[1],ne=(0,v.useState)([0,0]),ie=(0,k.Z)(ne,2),re=ie[0],oe=ie[1],ae=function(e){var t=(0,v.useRef)([]),n=(0,v.useState)({}),i=(0,k.Z)(n,2)[1],r=(0,v.useRef)("function"===typeof e?e():e),o=BE((function(){var e=r.current;t.current.forEach((function(t){e=t(e)})),t.current=[],r.current=e,i({})}));return[r.current,function(e){t.current.push(e),o()}]}(new Map),se=(0,k.Z)(ae,2),le=se[0],ce=se[1],ue=function(e,t,n){return(0,v.useMemo)((function(){for(var n,i=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||jE,o=r.left+r.width,a=0;a<e.length;a+=1){var s,l=e[a].key,c=t.get(l);c||(c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||jE);var u=i.get(l)||(0,Ft.Z)({},c);u.right=o-u.left-u.width,i.set(l,u)}return i}),[e.map((function(e){return e.key})).join("_"),t,n])}(o,le,$[0]),de=eT(G,M),he=eT($,M),fe=eT(ee,M),pe=eT(re,M),ge=de<he+fe?de-pe:de-fe,ve="".concat(r,"-nav-operations-hidden"),me=0,ye=0;function _e(e){return e<me?me:e>ye?ye:e}M&&d?(me=0,ye=Math.max(0,he-ge)):(me=Math.min(0,ge-he),ye=0);var be=(0,v.useRef)(),Ce=(0,v.useState)(),Se=(0,k.Z)(Ce,2),we=Se[0],ke=Se[1];function xe(){ke(Date.now())}function Ee(){window.clearTimeout(be.current)}!function(e,t){var n=(0,v.useState)(),i=(0,k.Z)(n,2),r=i[0],o=i[1],a=(0,v.useState)(0),s=(0,k.Z)(a,2),l=s[0],c=s[1],u=(0,v.useState)(0),d=(0,k.Z)(u,2),h=d[0],f=d[1],p=(0,v.useState)(),g=(0,k.Z)(p,2),m=g[0],y=g[1],_=(0,v.useRef)(),b=(0,v.useRef)(),C=(0,v.useRef)(null);C.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,i=t.screenY;o({x:n,y:i}),window.clearInterval(_.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],i=n.screenX,a=n.screenY;o({x:i,y:a});var s=i-r.x,u=a-r.y;t(s,u);var d=Date.now();c(d),f(d-l),y({x:s,y:u})}},onTouchEnd:function(){if(r&&(o(null),y(null),m)){var e=m.x/h,n=m.y/h,i=Math.abs(e),a=Math.abs(n);if(Math.max(i,a)<.1)return;var s=e,l=n;_.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(_.current):t(20*(s*=YE),20*(l*=YE))}),20)}},onWheel:function(e){var n=e.deltaX,i=e.deltaY,r=0,o=Math.abs(n),a=Math.abs(i);o===a?r="x"===b.current?n:i:o>a?(r=n,b.current="x"):(r=i,b.current="y"),t(-r,-r)&&e.preventDefault()}},v.useEffect((function(){function t(e){C.current.onTouchMove(e)}function n(e){C.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){C.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){C.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(E,(function(e,t){function n(e,t){e((function(e){return _e(e+t)}))}return!(de>=he)&&(M?n(B,e):n(V,t),Ee(),xe(),!0)})),(0,v.useEffect)((function(){return Ee(),we&&(be.current=window.setTimeout((function(){ke(0)}),100)),Ee}),[we]);var Te=function(e,t,n,i,r,o,a){var s,l,c,u=a.tabs,d=a.tabPosition,h=a.rtl;return["top","bottom"].includes(d)?(s="width",l=h?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),(0,v.useMemo)((function(){if(!u.length)return[0,0];for(var n=u.length,i=n,r=0;r<n;r+=1){var o=e.get(u[r].key)||VE;if(o[l]+o[s]>c+t){i=r-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||VE)[l]<c){a=d+1;break}return[a,i]}),[e,t,i,r,o,c,d,u.map((function(e){return e.key})).join("_"),h])}(ue,ge,M?F:j,he,fe,pe,(0,Ft.Z)((0,Ft.Z)({},e),{},{tabs:o})),Ne=(0,k.Z)(Te,2),Ie=Ne[0],De=Ne[1],Le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(M){var n=F;d?t.right<F?n=t.right:t.right+t.width>F+ge&&(n=t.right+t.width-ge):t.left<-F?n=-t.left:t.left+t.width>-F+ge&&(n=-(t.left+t.width-ge)),V(0),B(_e(n))}else{var i=j;t.top<-j?i=-t.top:t.top+t.height>-j+ge&&(i=-(t.top+t.height-ge)),B(0),V(_e(i))}},Oe={};"top"===g||"bottom"===g?Oe[d?"marginRight":"marginLeft"]=m:Oe.marginTop=m;var Re=o.map((function(e,t){var n=e.key;return v.createElement(zE,{id:l,prefixCls:r,key:n,tab:e,style:0===t?void 0:Oe,closable:e.closable,editable:f,active:n===u,renderWrapper:y,removeAriaLabel:null===p||void 0===p?void 0:p.removeAriaLabel,ref:R(n),onClick:function(e){b(n,e)},onRemove:function(){A(n)},onFocus:function(){Le(n),xe(),E.current&&(d||(E.current.scrollLeft=0),E.current.scrollTop=0)}})})),Ae=BE((function(){var e=JE(S),t=JE(w),n=JE(x);K([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var i=JE(D);te(i);var r=JE(I);oe(r);var a=JE(T);X([a[0]-i[0],a[1]-i[1]]),ce((function(){var e=new Map;return o.forEach((function(t){var n=t.key,i=R(n).current;i&&e.set(n,{width:i.offsetWidth,height:i.offsetHeight,left:i.offsetLeft,top:i.offsetTop})})),e}))})),Me=o.slice(0,Ie),Pe=o.slice(De+1),Ze=[].concat((0,_.Z)(Me),(0,_.Z)(Pe)),Fe=(0,v.useState)(),Be=(0,k.Z)(Fe,2),He=Be[0],ze=Be[1],je=ue.get(u),Ve=(0,v.useRef)();function We(){oc.cancel(Ve.current)}(0,v.useEffect)((function(){var e={};return je&&(M?(d?e.right=je.right:e.left=je.left,e.width=je.width):(e.top=je.top,e.height=je.height)),We(),Ve.current=oc((function(){ze(e)})),We}),[je,M,d]),(0,v.useEffect)((function(){Le()}),[u,$E(je),$E(ue),M]),(0,v.useEffect)((function(){Ae()}),[d]);var Ue,Ge,Ke,Ye,qe=!!Ze.length,$e="".concat(r,"-nav-wrap");return M?d?(Ge=F>0,Ue=F+de<he):(Ue=F<0,Ge=-F+de<he):(Ke=j<0,Ye=-j+de<he),v.createElement(yy,{onResize:Ae},v.createElement("div",{ref:Il(t,S),role:"tablist",className:Ja()("".concat(r,"-nav"),a),style:s,onKeyDown:function(){xe()}},v.createElement(QE,{ref:w,position:"left",extra:h,prefixCls:r}),v.createElement("div",{className:Ja()($e,(n={},(0,N.Z)(n,"".concat($e,"-ping-left"),Ue),(0,N.Z)(n,"".concat($e,"-ping-right"),Ge),(0,N.Z)(n,"".concat($e,"-ping-top"),Ke),(0,N.Z)(n,"".concat($e,"-ping-bottom"),Ye),n)),ref:E},v.createElement(yy,{onResize:Ae},v.createElement("div",{ref:T,className:"".concat(r,"-nav-list"),style:{transform:"translate(".concat(F,"px, ").concat(j,"px)"),transition:we?"none":void 0}},Re,v.createElement(UE,{ref:D,prefixCls:r,locale:p,editable:f,style:(0,Ft.Z)((0,Ft.Z)({},0===Re.length?void 0:Oe),{},{visibility:qe?"hidden":null})}),v.createElement("div",{className:Ja()("".concat(r,"-ink-bar"),(0,N.Z)({},"".concat(r,"-ink-bar-animated"),c.inkBar)),style:He})))),v.createElement(KE,Zt({},e,{removeAriaLabel:null===p||void 0===p?void 0:p.removeAriaLabel,ref:I,prefixCls:r,tabs:Ze,className:!qe&&ve,tabMoving:!!we})),v.createElement(QE,{ref:x,position:"right",extra:h,prefixCls:r})))}var nT=v.forwardRef(tT),iT=["renderTabBar"],rT=["label","key"];function oT(e){var t=e.renderTabBar,n=Ai(e,iT),i=(0,v.useContext)(AE).tabs;if(t){var r=(0,Ft.Z)((0,Ft.Z)({},n),{},{panes:i.map((function(e){var t=e.label,n=e.key,i=Ai(e,rT);return v.createElement(PE,Zt({tab:t,key:n,tabKey:n},i))}))});return t(r,nT)}return v.createElement(nT,n)}var aT=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],sT=0;function lT(e,t){var n,i=e.id,r=e.prefixCls,o=void 0===r?"rc-tabs":r,a=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,h=e.animated,f=e.tabPosition,p=void 0===f?"top":f,g=e.tabBarGutter,m=e.tabBarStyle,y=e.tabBarExtraContent,_=e.locale,b=e.moreIcon,C=e.moreTransitionName,S=e.destroyInactiveTabPane,w=e.renderTabBar,x=e.onChange,E=e.onTabClick,T=e.onTabScroll,I=e.getPopupContainer,D=e.popupClassName,L=Ai(e,aT),O=v.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===(0,Bt.Z)(e)&&"key"in e}))}),[s]),R="rtl"===l,A=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,Ft.Z)({inkBar:!0},"object"===(0,Bt.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(h),M=(0,v.useState)(!1),P=(0,k.Z)(M,2),Z=P[0],F=P[1];(0,v.useEffect)((function(){F(_d())}),[]);var B=Sf((function(){var e;return null===(e=O[0])||void 0===e?void 0:e.key}),{value:c,defaultValue:u}),H=(0,k.Z)(B,2),z=H[0],j=H[1],V=(0,v.useState)((function(){return O.findIndex((function(e){return e.key===z}))})),W=(0,k.Z)(V,2),U=W[0],G=W[1];(0,v.useEffect)((function(){var e,t=O.findIndex((function(e){return e.key===z}));-1===t&&(t=Math.max(0,Math.min(U,O.length-1)),j(null===(e=O[t])||void 0===e?void 0:e.key));G(t)}),[O.map((function(e){return e.key})).join("_"),z,U]);var K=Sf(null,{value:i}),Y=(0,k.Z)(K,2),q=Y[0],$=Y[1];(0,v.useEffect)((function(){i||($("rc-tabs-".concat(sT)),sT+=1)}),[]);var X={id:q,activeKey:z,animated:A,tabPosition:p,rtl:R,mobile:Z},Q=(0,Ft.Z)((0,Ft.Z)({},X),{},{editable:d,locale:_,moreIcon:b,moreTransitionName:C,tabBarGutter:g,onTabClick:function(e,t){null===E||void 0===E||E(e,t);var n=e!==z;j(e),n&&(null===x||void 0===x||x(e))},onTabScroll:T,extra:y,style:m,panes:null,getPopupContainer:I,popupClassName:D});return v.createElement(AE.Provider,{value:{tabs:O,prefixCls:o}},v.createElement("div",Zt({ref:t,id:i,className:Ja()(o,"".concat(o,"-").concat(p),(n={},(0,N.Z)(n,"".concat(o,"-mobile"),Z),(0,N.Z)(n,"".concat(o,"-editable"),d),(0,N.Z)(n,"".concat(o,"-rtl"),R),n),a)},L),undefined,v.createElement(oT,Zt({},Q,{renderTabBar:w})),v.createElement(FE,Zt({destroyInactiveTabPane:S},X,{animated:A}))))}var cT=v.forwardRef(lT),uT={motionAppear:!1,motionEnter:!0,motionLeave:!0};var dT=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};var hT=function(){return null},fT=function(e){var t=e.componentCls,n=e.motionDurationSlow;return(0,N.Z)({},t,(0,N.Z)({},t+"-switch",{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:"opacity "+n}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:"opacity "+n}}}))},pT=function(e){var t,n,i,r,o,a,s=e.componentCls,l=e.tabsCardHorizontalPadding,c=e.tabsCardHeadBackground,u=e.tabsCardGutter,d=e.colorSplit;return(0,N.Z)({},s+"-card",(a={},(0,N.Z)(a,"> "+s+"-nav, > div > "+s+"-nav",(t={},(0,N.Z)(t,s+"-tab",{margin:0,padding:l,background:c,border:e.lineWidth+"px "+e.lineType+" "+d,transition:"all "+e.motionDurationSlow+" "+e.motionEaseInOut}),(0,N.Z)(t,s+"-tab-active",{color:e.colorPrimary,background:e.colorBgContainer}),(0,N.Z)(t,s+"-ink-bar",{visibility:"hidden"}),t)),(0,N.Z)(a,"&"+s+"-top, &"+s+"-bottom",(0,N.Z)({},"> "+s+"-nav, > div > "+s+"-nav",(0,N.Z)({},s+"-tab + "+s+"-tab",{marginLeft:{_skip_check_:!0,value:u+"px"}}))),(0,N.Z)(a,"&"+s+"-top",(0,N.Z)({},"> "+s+"-nav, > div > "+s+"-nav",(n={},(0,N.Z)(n,s+"-tab",{borderRadius:e.borderRadiusLG+"px "+e.borderRadiusLG+"px 0 0"}),(0,N.Z)(n,s+"-tab-active",{borderBottomColor:e.colorBgContainer}),n))),(0,N.Z)(a,"&"+s+"-bottom",(0,N.Z)({},"> "+s+"-nav, > div > "+s+"-nav",(i={},(0,N.Z)(i,s+"-tab",{borderRadius:"0 0 "+e.borderRadiusLG+"px "+e.borderRadiusLG+"px"}),(0,N.Z)(i,s+"-tab-active",{borderTopColor:e.colorBgContainer}),i))),(0,N.Z)(a,"&"+s+"-left, &"+s+"-right",(0,N.Z)({},"> "+s+"-nav, > div > "+s+"-nav",(0,N.Z)({},s+"-tab + "+s+"-tab",{marginTop:u+"px"}))),(0,N.Z)(a,"&"+s+"-left",(0,N.Z)({},"> "+s+"-nav, > div > "+s+"-nav",(r={},(0,N.Z)(r,s+"-tab",{borderRadius:{_skip_check_:!0,value:e.borderRadiusLG+"px 0 0 "+e.borderRadiusLG+"px"}}),(0,N.Z)(r,s+"-tab-active",{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}),r))),(0,N.Z)(a,"&"+s+"-right",(0,N.Z)({},"> "+s+"-nav, > div > "+s+"-nav",(o={},(0,N.Z)(o,s+"-tab",{borderRadius:{_skip_check_:!0,value:"0 "+e.borderRadiusLG+"px "+e.borderRadiusLG+"px 0"}}),(0,N.Z)(o,s+"-tab-active",{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}),o))),a))},gT=function(e){var t=e.componentCls,n=e.tabsHoverColor,i=e.dropdownEdgeChildVerticalPadding;return(0,N.Z)({},t+"-dropdown",Zt(Zt({},Fa(e)),(0,N.Z)({position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"}},t+"-dropdown-menu",{maxHeight:e.tabsDropdownHeight,margin:0,padding:i+"px 0",overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadow,"&-item":Zt(Zt({},Za),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:e.paddingXXS+"px "+e.paddingSM+"px",color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:"all "+e.motionDurationSlow,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})})))},vT=function(e){var t,n,i,r,o,a,s,l,c=e.componentCls,u=e.margin,d=e.colorSplit;return l={},(0,N.Z)(l,c+"-top, "+c+"-bottom",(0,N.Z)({flexDirection:"column"},"> "+c+"-nav, > div > "+c+"-nav",(n={margin:"0 0 "+u+"px 0","&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:e.lineWidth+"px "+e.lineType+" "+d,content:"''"}},(0,N.Z)(n,c+"-ink-bar",{height:e.lineWidthBold,"&-animated":{transition:"width "+e.motionDurationSlow+", left "+e.motionDurationSlow+",\n right "+e.motionDurationSlow}}),(0,N.Z)(n,c+"-nav-wrap",(t={"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight}},(0,N.Z)(t,"&"+c+"-nav-wrap-ping-left::before",{opacity:1}),(0,N.Z)(t,"&"+c+"-nav-wrap-ping-right::after",{opacity:1}),t)),n))),(0,N.Z)(l,c+"-top",(0,N.Z)({},"> "+c+"-nav,\n > div > "+c+"-nav",(0,N.Z)({"&::before":{bottom:0}},c+"-ink-bar",{bottom:0}))),(0,N.Z)(l,c+"-bottom",(i={},(0,N.Z)(i,"> "+c+"-nav, > div > "+c+"-nav",(0,N.Z)({order:1,marginTop:u+"px",marginBottom:0,"&::before":{top:0}},c+"-ink-bar",{top:0})),(0,N.Z)(i,"> "+c+"-content-holder, > div > "+c+"-content-holder",{order:0}),i)),(0,N.Z)(l,c+"-left, "+c+"-right",(0,N.Z)({},"> "+c+"-nav, > div > "+c+"-nav",(o={flexDirection:"column",minWidth:1.25*e.controlHeight},(0,N.Z)(o,c+"-tab",{padding:e.paddingXS+"px "+e.paddingLG+"px",textAlign:"center"}),(0,N.Z)(o,c+"-tab + "+c+"-tab",{margin:e.margin+"px 0 0 0"}),(0,N.Z)(o,c+"-nav-wrap",(r={flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom}},(0,N.Z)(r,"&"+c+"-nav-wrap-ping-top::before",{opacity:1}),(0,N.Z)(r,"&"+c+"-nav-wrap-ping-bottom::after",{opacity:1}),r)),(0,N.Z)(o,c+"-ink-bar",{width:e.lineWidthBold,"&-animated":{transition:"height "+e.motionDurationSlow+", top "+e.motionDurationSlow}}),(0,N.Z)(o,c+"-nav-list, "+c+"-nav-operations",{flex:"1 0 auto",flexDirection:"column"}),o))),(0,N.Z)(l,c+"-left",(a={},(0,N.Z)(a,"> "+c+"-nav, > div > "+c+"-nav",(0,N.Z)({},c+"-ink-bar",{right:{_skip_check_:!0,value:0}})),(0,N.Z)(a,"> "+c+"-content-holder, > div > "+c+"-content-holder",(0,N.Z)({marginLeft:{_skip_check_:!0,value:"-"+e.lineWidth+"px"},borderLeft:{_skip_check_:!0,value:e.lineWidth+"px "+e.lineType+" "+e.colorBorder}},"> "+c+"-content > "+c+"-tabpane",{paddingLeft:{_skip_check_:!0,value:e.paddingLG}})),a)),(0,N.Z)(l,c+"-right",(s={},(0,N.Z)(s,"> "+c+"-nav, > div > "+c+"-nav",(0,N.Z)({order:1},c+"-ink-bar",{left:{_skip_check_:!0,value:0}})),(0,N.Z)(s,"> "+c+"-content-holder, > div > "+c+"-content-holder",(0,N.Z)({order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:e.lineWidth+"px "+e.lineType+" "+e.colorBorder}},"> "+c+"-content > "+c+"-tabpane",{paddingRight:{_skip_check_:!0,value:e.paddingLG}})),s)),l},mT=function(e){var t,n,i,r=e.componentCls,o=e.padding;return i={},(0,N.Z)(i,r,{"&-small":(0,N.Z)({},"> "+r+"-nav",(0,N.Z)({},r+"-tab",{padding:e.paddingXS+"px 0",fontSize:e.fontSize})),"&-large":(0,N.Z)({},"> "+r+"-nav",(0,N.Z)({},r+"-tab",{padding:o+"px 0",fontSize:e.fontSizeLG}))}),(0,N.Z)(i,r+"-card",(n={},(0,N.Z)(n,"&"+r+"-small",(t={},(0,N.Z)(t,"> "+r+"-nav",(0,N.Z)({},r+"-tab",{padding:1.5*e.paddingXXS+"px "+o+"px"})),(0,N.Z)(t,"&"+r+"-bottom",(0,N.Z)({},"> "+r+"-nav "+r+"-tab",{borderRadius:"0 0 "+e.borderRadius+"px "+e.borderRadius+"px"})),(0,N.Z)(t,"&"+r+"-top",(0,N.Z)({},"> "+r+"-nav "+r+"-tab",{borderRadius:e.borderRadius+"px "+e.borderRadius+"px 0 0"})),(0,N.Z)(t,"&"+r+"-right",(0,N.Z)({},"> "+r+"-nav "+r+"-tab",{borderRadius:{_skip_check_:!0,value:"0 "+e.borderRadius+"px "+e.borderRadius+"px 0"}})),(0,N.Z)(t,"&"+r+"-left",(0,N.Z)({},"> "+r+"-nav "+r+"-tab",{borderRadius:{_skip_check_:!0,value:e.borderRadius+"px 0 0 "+e.borderRadius+"px"}})),t)),(0,N.Z)(n,"&"+r+"-large",(0,N.Z)({},"> "+r+"-nav",(0,N.Z)({},r+"-tab",{padding:e.paddingXS+"px "+o+"px "+1.5*e.paddingXXS+"px"}))),n)),i},yT=function(e){var t,n,i,r,o,a=e.componentCls,s=e.tabsHorizontalGutter,l=e.iconCls,c=e.tabsCardGutter,u=a+"-rtl";return o={},(0,N.Z)(o,u,(r={direction:"rtl"},(0,N.Z)(r,a+"-nav",(0,N.Z)({},a+"-tab",(t={margin:{_skip_check_:!0,value:"0 0 0 "+s+"px"}},(0,N.Z)(t,a+"-tab:last-of-type",{marginLeft:{_skip_check_:!0,value:0}}),(0,N.Z)(t,l,{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM+"px"}}),(0,N.Z)(t,a+"-tab-remove",(0,N.Z)({marginRight:{_skip_check_:!0,value:e.marginXS+"px"},marginLeft:{_skip_check_:!0,value:"-"+e.marginXXS+"px"}},l,{margin:0})),t))),(0,N.Z)(r,"&"+a+"-left",(n={},(0,N.Z)(n,"> "+a+"-nav",{order:1}),(0,N.Z)(n,"> "+a+"-content-holder",{order:0}),n)),(0,N.Z)(r,"&"+a+"-right",(i={},(0,N.Z)(i,"> "+a+"-nav",{order:0}),(0,N.Z)(i,"> "+a+"-content-holder",{order:1}),i)),(0,N.Z)(r,"&"+a+"-card"+a+"-top, &"+a+"-card"+a+"-bottom",(0,N.Z)({},"> "+a+"-nav, > div > "+a+"-nav",(0,N.Z)({},a+"-tab + "+a+"-tab",{marginRight:{_skip_check_:!0,value:c+"px"},marginLeft:{_skip_check_:!0,value:0}}))),r)),(0,N.Z)(o,a+"-dropdown-rtl",{direction:"rtl"}),(0,N.Z)(o,a+"-menu-item",(0,N.Z)({},a+"-dropdown-rtl",{textAlign:{_skip_check_:!0,value:"right"}})),o},_T=function(e){var t,n,i,r,o=e.componentCls,a=e.tabsCardHorizontalPadding,s=e.tabsCardHeight,l=e.tabsCardGutter,c=e.tabsHoverColor,u=e.tabsActiveColor,d=e.colorSplit;return r={},(0,N.Z)(r,o,Zt(Zt(Zt(Zt({},Fa(e)),(n={display:"flex"},(0,N.Z)(n,"> "+o+"-nav, > div > "+o+"-nav",(t={position:"relative",display:"flex",flex:"none",alignItems:"center"},(0,N.Z)(t,o+"-nav-wrap",{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:"opacity "+e.motionDurationSlow,content:"''",pointerEvents:"none"}}),(0,N.Z)(t,o+"-nav-list",{position:"relative",display:"flex",transition:"opacity "+e.motionDurationSlow}),(0,N.Z)(t,o+"-nav-operations",{display:"flex",alignSelf:"stretch"}),(0,N.Z)(t,o+"-nav-operations-hidden",{position:"absolute",visibility:"hidden",pointerEvents:"none"}),(0,N.Z)(t,o+"-nav-more",{position:"relative",padding:a,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}}),(0,N.Z)(t,o+"-nav-add",Zt({minWidth:s+"px",marginLeft:{_skip_check_:!0,value:l+"px"},padding:"0 "+e.paddingXS+"px",background:"transparent",border:e.lineWidth+"px "+e.lineType+" "+d,borderRadius:e.borderRadiusLG+"px "+e.borderRadiusLG+"px 0 0",outline:"none",cursor:"pointer",transition:"all "+e.motionDurationSlow+" "+e.motionEaseInOut,"&:hover":{color:c},"&:active, &:focus:not(:focus-visible)":{color:u}},ja(e))),t)),(0,N.Z)(n,o+"-extra-content",{flex:"none"}),(0,N.Z)(n,o+"-ink-bar",{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}),n)),function(e){var t,n,i=e.componentCls,r=e.tabsActiveColor,o=e.tabsHoverColor,a=e.iconCls,s=e.tabsHorizontalGutter,l=i+"-tab";return n={},(0,N.Z)(n,l,(t={position:"relative",display:"inline-flex",alignItems:"center",padding:e.paddingSM+"px 0",fontSize:e.fontSize+"px",background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Zt({"&:focus:not(:focus-visible), &:active":{color:r}},ja(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:"all "+e.motionDurationSlow,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o}},(0,N.Z)(t,"&"+l+"-active "+l+"-btn",{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow}),(0,N.Z)(t,"&"+l+"-disabled",{color:e.colorTextDisabled,cursor:"not-allowed"}),(0,N.Z)(t,"&"+l+"-disabled "+l+"-btn, &"+l+"-disabled "+i+"-remove",{"&:focus, &:active":{color:e.colorTextDisabled}}),(0,N.Z)(t,"& "+l+"-remove "+a,{margin:0}),(0,N.Z)(t,a,{marginRight:{_skip_check_:!0,value:e.marginSM}}),t)),(0,N.Z)(n,l+" + "+l,{margin:{_skip_check_:!0,value:"0 0 0 "+s+"px"}}),n}(e)),(i={},(0,N.Z)(i,o+"-content",{position:"relative",width:"100%"}),(0,N.Z)(i,o+"-content-holder",{flex:"auto",minWidth:0,minHeight:0}),(0,N.Z)(i,o+"-tabpane",{outline:"none","&-hidden":{display:"none"}}),i))),(0,N.Z)(r,o+"-centered",(0,N.Z)({},"> "+o+"-nav, > div > "+o+"-nav",(0,N.Z)({},o+"-nav-wrap",(0,N.Z)({},"&:not([class*='"+o+"-nav-wrap-ping'])",{justifyContent:"center"})))),r},bT=hs("Tabs",(function(e){var t=e.controlHeightLG,n=cs(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth+"px "+e.padding+"px",tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[mT(n),yT(n),vT(n),gT(n),pT(n),_T(n),fT(n)]}),(function(e){return{zIndexPopup:e.zIndexPopupBase+50}})),CT=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function ST(e){var t,n=e.type,i=e.className,r=e.size,o=e.onEdit,a=e.hideAdd,s=e.centered,l=e.addIcon,c=e.popupClassName,u=e.children,d=e.items,h=e.animated,f=CT(e,["type","className","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated"]),p=f.prefixCls,g=f.moreIcon,m=void 0===g?v.createElement(Bb,null):g,y=v.useContext(wa),_=y.getPrefixCls,b=y.direction,C=y.getPopupContainer,S=_("tabs",p),w=bT(S),x=(0,k.Z)(w,2),E=x[0],T=x[1];"editable-card"===n&&(t={onEdit:function(e,t){var n=t.key,i=t.event;null===o||void 0===o||o("add"===e?i:n,e)},removeIcon:v.createElement(Ap,null),addIcon:l||v.createElement(RE,null),showAdd:!0!==a});var I=_(),D=function(e,t){if(e)return e;var n=Zi(t).map((function(e){if(v.isValidElement(e)){var t=e.key,n=e.props||{},i=n.tab,r=dT(n,["tab"]);return Zt(Zt({key:String(t)},r),{label:i})}return null}));return function(e){return e.filter((function(e){return e}))}(n)}(d,u),L=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Zt({inkBar:!0},"object"===(0,Bt.Z)(n)?n:{})).tabPane&&(t.tabPaneMotion=Zt(Zt({},uT),{motionName:Lc(e,"switch")})),t}(S,h);return E(v.createElement(Pa.Consumer,null,(function(e){var o,a=void 0!==r?r:e;return v.createElement(cT,Zt({direction:b,getPopupContainer:C,moreTransitionName:I+"-slide-up"},f,{items:D,className:Ja()((o={},(0,N.Z)(o,S+"-"+a,a),(0,N.Z)(o,S+"-card",["card","editable-card"].includes(n)),(0,N.Z)(o,S+"-editable-card","editable-card"===n),(0,N.Z)(o,S+"-centered",s),o),i,T),popupClassName:Ja()(c,T),editable:t,moreIcon:m,prefixCls:S,animated:L}))})))}ST.TabPane=hT;var wT=ST,kT=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},xT=function(e){var t=e.prefixCls,n=e.className,i=e.hoverable,r=void 0===i||i,o=kT(e,["prefixCls","className","hoverable"]);return v.createElement(ka,null,(function(e){var i=(0,e.getPrefixCls)("card",t),a=Ja()(i+"-grid",n,(0,N.Z)({},i+"-grid-hoverable",r));return v.createElement("div",Zt({},o,{className:a}))}))},ET=function(e){var t,n,i,r,o=e.componentCls,a=e.cardShadow,s=e.cardHeadHeight,l=e.cardHeadPadding,c=e.colorBorderSecondary,u=e.boxShadow,d=e.cardPaddingBase;return r={},(0,N.Z)(r,o,Zt(Zt({},Fa(e)),(t={position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG},(0,N.Z)(t,"&:not("+o+"-bordered)",{boxShadow:u}),(0,N.Z)(t,o+"-head",function(e){var t=e.antCls,n=e.componentCls,i=e.cardHeadHeight,r=e.cardHeadPadding,o=e.cardPaddingBase,a=e.cardHeadTabsMarginBottom;return Zt(Zt({minHeight:i,marginBottom:-1,padding:"0 "+o+"px",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:e.lineWidth+"px "+e.lineType+" "+e.colorBorderSecondary,borderRadius:e.borderRadiusLG+"px "+e.borderRadiusLG+"px 0 0"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),(0,N.Z)({"&-wrapper":{display:"flex",alignItems:"center"},"&-title":Zt(Zt({display:"inline-block",flex:1,padding:r+"px 0"},Za),(0,N.Z)({},"\n > "+n+"-typography,\n > "+n+"-typography-edit-content\n ",{insetInlineStart:0,marginTop:0,marginBottom:0}))},t+"-tabs-top",{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:e.lineWidth+"px "+e.lineType+" "+e.colorBorderSecondary}}))}(e)),(0,N.Z)(t,o+"-extra",{marginInlineStart:"auto",padding:"",color:"",fontWeight:"normal",fontSize:e.fontSize}),(0,N.Z)(t,o+"-body",Zt({padding:d},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}})),(0,N.Z)(t,o+"-grid",function(e){var t=e.cardPaddingBase,n=e.colorBorderSecondary,i=e.cardShadow,r=e.lineWidth;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:"\n "+r+"px 0 0 0 "+n+",\n 0 "+r+"px 0 0 "+n+",\n "+r+"px "+r+"px 0 0 "+n+",\n "+r+"px 0 0 0 "+n+" inset,\n 0 "+r+"px 0 0 "+n+" inset;\n ",transition:"all "+e.motionDurationMid,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:i}}}(e)),(0,N.Z)(t,o+"-cover",{"> *":{display:"block",width:"100%"},img:{borderRadius:e.borderRadiusLG+"px "+e.borderRadiusLG+"px 0 0"}}),(0,N.Z)(t,o+"-actions",function(e){var t,n=e.componentCls,i=e.iconCls,r=e.cardActionsLiMargin,o=e.cardActionsIconSize,a=e.colorBorderSecondary;return Zt(Zt({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:e.lineWidth+"px "+e.lineType+" "+a,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":(t={position:"relative",display:"block",minWidth:2*e.cardActionsIconSize,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:"color "+e.motionDurationMid}},(0,N.Z)(t,"a:not("+n+"-btn), > "+i,{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:e.fontSize*e.lineHeight+"px",transition:"color "+e.motionDurationMid,"&:hover":{color:e.colorPrimary}}),(0,N.Z)(t,"> "+i,{fontSize:o,lineHeight:o*e.lineHeight+"px"}),t),"&:not(:last-child)":{borderInlineEnd:e.lineWidth+"px "+e.lineType+" "+a}}})}(e)),(0,N.Z)(t,o+"-meta",function(e){return Zt(Zt({margin:"-"+e.marginXXS+"px 0",display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden","> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Zt({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Za),"&-description":{color:e.colorTextDescription}})}(e)),t))),(0,N.Z)(r,o+"-bordered",(0,N.Z)({border:e.lineWidth+"px "+e.lineType+" "+c},o+"-cover",{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1})),(0,N.Z)(r,o+"-hoverable",{cursor:"pointer",transition:"box-shadow "+e.motionDurationMid+", border-color "+e.motionDurationMid,"&:hover":{borderColor:"transparent",boxShadow:a}}),(0,N.Z)(r,o+"-contain-grid",(n={},(0,N.Z)(n,o+"-body",{display:"flex",flexWrap:"wrap"}),(0,N.Z)(n,"&:not("+o+"-loading) "+o+"-body",{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}),n)),(0,N.Z)(r,o+"-contain-tabs",(0,N.Z)({},"> "+o+"-head",(i={},(0,N.Z)(i,o+"-head-title",{minHeight:s-l,paddingBottom:0}),(0,N.Z)(i,o+"-extra",{paddingBottom:0}),i))),(0,N.Z)(r,o+"-type-inner",function(e){var t,n=e.componentCls,i=e.cardPaddingBase,r=e.colorFillAlter,o=e.cardInnerHeadPadding;return t={},(0,N.Z)(t,n+"-head",{padding:"0 "+i+"px",background:r,"&-title":{padding:o+"px 0",fontSize:e.fontSize}}),(0,N.Z)(t,n+"-body",{padding:e.padding+"px "+i+"px"}),(0,N.Z)(t,n+"-extra",{padding:o+1.5+"px 0"}),t}(e)),(0,N.Z)(r,o+"-loading",function(e){var t=e.componentCls;return(0,N.Z)({overflow:"hidden"},t+"-body",{userSelect:"none"})}(e)),(0,N.Z)(r,o+"-rtl",{direction:"rtl"}),r},TT=function(e){var t,n,i=e.componentCls,r=e.cardPaddingSM,o=e.fontSize,a=e.lineHeight,s=e.cardHeaderHeightSM,l=(s-o*a)/2;return(0,N.Z)({},i+"-small",(n={},(0,N.Z)(n,"> "+i+"-head",(0,N.Z)({minHeight:s,padding:"0 "+r+"px",fontSize:e.fontSize},"> "+i+"-head-wrapper",(t={},(0,N.Z)(t,"> "+i+"-head-title",{padding:l+"px 0"}),(0,N.Z)(t,"> "+i+"-extra",{padding:l+"px 0",fontSize:e.fontSize}),t))),(0,N.Z)(n,"> "+i+"-body",{padding:r}),n))},NT=hs("Card",(function(e){var t=cs(e,{cardShadow:e.boxShadowCard,cardHeaderHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,cardHeaderHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardInnerHeadPadding:e.paddingSM,cardActionsLiMargin:e.paddingSM+"px 0",cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[ET(t),TT(t)]})),IT=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};var DT=v.forwardRef((function(e,t){var n,i,r,o=v.useContext(wa),a=o.getPrefixCls,s=o.direction,l=v.useContext(Pa),c=e.prefixCls,u=e.className,d=e.extra,h=e.headStyle,f=void 0===h?{}:h,p=e.bodyStyle,g=void 0===p?{}:p,m=e.title,y=e.loading,_=e.bordered,b=void 0===_||_,C=e.size,S=e.type,w=e.cover,x=e.actions,E=e.tabList,T=e.children,I=e.activeTabKey,D=e.defaultActiveTabKey,L=e.tabBarExtraContent,O=e.hoverable,R=e.tabProps,A=void 0===R?{}:R,M=IT(e,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),P=a("card",c),Z=NT(P),F=(0,k.Z)(Z,2),B=F[0],H=F[1],z=v.createElement(DE,{loading:!0,active:!0,paragraph:{rows:4},title:!1},T),j=void 0!==I,V=Zt(Zt({},A),(n={},(0,N.Z)(n,j?"activeKey":"defaultActiveKey",j?I:D),(0,N.Z)(n,"tabBarExtraContent",L),n)),W=E&&E.length?v.createElement(wT,Zt({size:"large"},V,{className:P+"-head-tabs",onChange:function(t){var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:E.map((function(e){var t;return{label:e.tab,key:e.key,disabled:null!==(t=e.disabled)&&void 0!==t&&t}}))})):null;(m||d||W)&&(r=v.createElement("div",{className:P+"-head",style:f},v.createElement("div",{className:P+"-head-wrapper"},m&&v.createElement("div",{className:P+"-head-title"},m),d&&v.createElement("div",{className:P+"-extra"},d)),W));var U=w?v.createElement("div",{className:P+"-cover"},w):null,G=v.createElement("div",{className:P+"-body",style:g},y?z:T),K=x&&x.length?v.createElement("ul",{className:P+"-actions"},function(e){var t=e.map((function(t,n){return v.createElement("li",{style:{width:100/e.length+"%"},key:"action-"+n},v.createElement("span",null,t))}));return t}(x)):null,Y=ns(M,["onTabChange"]),q=C||l,$=Ja()(P,(i={},(0,N.Z)(i,P+"-loading",y),(0,N.Z)(i,P+"-bordered",b),(0,N.Z)(i,P+"-hoverable",O),(0,N.Z)(i,P+"-contain-grid",function(){var t;return v.Children.forEach(e.children,(function(e){e&&e.type&&e.type===xT&&(t=!0)})),t}()),(0,N.Z)(i,P+"-contain-tabs",E&&E.length),(0,N.Z)(i,P+"-"+q,q),(0,N.Z)(i,P+"-type-"+S,!!S),(0,N.Z)(i,P+"-rtl","rtl"===s),i),u,H);return B(v.createElement("div",Zt({ref:t},Y,{className:$}),r,U,G,K))})),LT=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},OT=function(e){return v.createElement(ka,null,(function(t){var n=t.getPrefixCls,i=e.prefixCls,r=e.className,o=e.avatar,a=e.title,s=e.description,l=LT(e,["prefixCls","className","avatar","title","description"]),c=n("card",i),u=Ja()(c+"-meta",r),d=o?v.createElement("div",{className:c+"-meta-avatar"},o):null,h=a?v.createElement("div",{className:c+"-meta-title"},a):null,f=s?v.createElement("div",{className:c+"-meta-description"},s):null,p=h||f?v.createElement("div",{className:c+"-meta-detail"},h,f):null;return v.createElement("div",Zt({},l,{className:u}),d,p)}))},RT=DT;RT.Grid=xT,RT.Meta=OT;var AT=RT;function MT(e,t){var n,i=e.key;return"value"in e&&(n=e.value),null!==i&&void 0!==i?i:void 0!==n?n:"rc-index-key-".concat(t)}function PT(e,t){var n=e||{};return{label:n.label||(t?"children":"label"),value:n.value||"value",options:n.options||"options"}}function ZT(e){var t=(0,Ft.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return li(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var FT=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],BT=function(e,t){var n=e.prefixCls,i=(e.disabled,e.visible),r=e.children,o=e.popupElement,a=e.containerWidth,s=e.animation,l=e.transitionName,c=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,h=void 0===d?"ltr":d,f=e.placement,p=e.dropdownMatchSelectWidth,g=e.dropdownRender,m=e.dropdownAlign,y=e.getPopupContainer,_=e.empty,b=e.getTriggerDOMNode,C=e.onPopupVisibleChange,S=e.onPopupMouseEnter,w=Ai(e,FT),k="".concat(n,"-dropdown"),x=o;g&&(x=g(o));var E=v.useMemo((function(){return function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}}(p)}),[p]),T=s?"".concat(k,"-").concat(s):l,I=v.useRef(null);v.useImperativeHandle(t,(function(){return{getPopupElement:function(){return I.current}}}));var D=(0,Ft.Z)({minWidth:a},c);return"number"===typeof p?D.width=p:p&&(D.width=a),v.createElement(ff,Zt({},w,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:f||("rtl"===h?"bottomRight":"bottomLeft"),builtinPlacements:E,prefixCls:k,popupTransitionName:T,popup:v.createElement("div",{ref:I,onMouseEnter:S},x),popupAlign:m,popupVisible:i,getPopupContainer:y,popupClassName:Ja()(u,(0,N.Z)({},"".concat(k,"-empty"),_)),popupStyle:D,getTriggerDOMNode:b,onPopupVisibleChange:C}),r)},HT=v.forwardRef(BT);HT.displayName="SelectTrigger";var zT=HT,jT=function(e){var t,n=e.className,i=e.customizeIcon,r=e.customizeIconProps,o=e.onMouseDown,a=e.onClick,s=e.children;return t="function"===typeof i?i(r):i,v.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:v.createElement("span",{className:Ja()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))},VT=function(e,t){var n,i,r=e.prefixCls,o=e.id,a=e.inputElement,s=e.disabled,l=e.tabIndex,c=e.autoFocus,u=e.autoComplete,d=e.editable,h=e.activeDescendantId,f=e.value,p=e.maxLength,g=e.onKeyDown,m=e.onMouseDown,y=e.onChange,_=e.onPaste,b=e.onCompositionStart,C=e.onCompositionEnd,S=e.open,w=e.attrs,k=a||v.createElement("input",null),x=k,E=x.ref,T=x.props,N=T.onKeyDown,I=T.onChange,D=T.onMouseDown,L=T.onCompositionStart,O=T.onCompositionEnd,R=T.style;return k.props,k=v.cloneElement(k,(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({type:"search"},T),{},{id:o,ref:Nl(t,E),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:Ja()("".concat(r,"-selection-search-input"),null===(n=k)||void 0===n||null===(i=n.props)||void 0===i?void 0:i.className),role:"combobox","aria-expanded":S,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":h},w),{},{value:d?f:"",maxLength:p,readOnly:!d,unselectable:d?null:"on",style:(0,Ft.Z)((0,Ft.Z)({},R),{},{opacity:d?null:0}),onKeyDown:function(e){g(e),N&&N(e)},onMouseDown:function(e){m(e),D&&D(e)},onChange:function(e){y(e),I&&I(e)},onCompositionStart:function(e){b(e),L&&L(e)},onCompositionEnd:function(e){C(e),O&&O(e)},onPaste:_}))},WT=v.forwardRef(VT);WT.displayName="Input";var UT=WT;function GT(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var KT="undefined"!==typeof window&&window.document&&window.document.documentElement;function YT(e){return["string","number"].includes((0,Bt.Z)(e))}function qT(e){var t=void 0;return e&&(YT(e.title)?t=e.title.toString():YT(e.label)&&(t=e.label.toString())),t}function $T(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var XT=function(e){e.preventDefault(),e.stopPropagation()},QT=function(e){var t,n,i=e.id,r=e.prefixCls,o=e.values,a=e.open,s=e.searchValue,l=e.inputRef,c=e.placeholder,u=e.disabled,d=e.mode,h=e.showSearch,f=e.autoFocus,p=e.autoComplete,g=e.activeDescendantId,m=e.tabIndex,y=e.removeIcon,_=e.maxTagCount,b=e.maxTagTextLength,C=e.maxTagPlaceholder,S=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,w=e.tagRender,x=e.onToggleOpen,E=e.onRemove,T=e.onInputChange,I=e.onInputPaste,D=e.onInputKeyDown,L=e.onInputMouseDown,O=e.onInputCompositionStart,R=e.onInputCompositionEnd,A=v.useRef(null),M=(0,v.useState)(0),P=(0,k.Z)(M,2),Z=P[0],F=P[1],B=(0,v.useState)(!1),H=(0,k.Z)(B,2),z=H[0],j=H[1],V="".concat(r,"-selection"),W=a||"tags"===d?s:"",U="tags"===d||h&&(a||z);function G(e,t,n,i,r){return v.createElement("span",{className:Ja()("".concat(V,"-item"),(0,N.Z)({},"".concat(V,"-item-disabled"),n)),title:qT(e)},v.createElement("span",{className:"".concat(V,"-item-content")},t),i&&v.createElement(jT,{className:"".concat(V,"-item-remove"),onMouseDown:XT,onClick:r,customizeIcon:y},"\xd7"))}t=function(){F(A.current.scrollWidth)},n=[W],KT?v.useLayoutEffect(t,n):v.useEffect(t,n);var K=v.createElement("div",{className:"".concat(V,"-search"),style:{width:Z},onFocus:function(){j(!0)},onBlur:function(){j(!1)}},v.createElement(UT,{ref:l,open:a,prefixCls:r,id:i,inputElement:null,disabled:u,autoFocus:f,autoComplete:p,editable:U,activeDescendantId:g,value:W,onKeyDown:D,onMouseDown:L,onChange:T,onPaste:I,onCompositionStart:O,onCompositionEnd:R,tabIndex:m,attrs:wv(e,!0)}),v.createElement("span",{ref:A,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},W,"\xa0")),Y=v.createElement(y_,{prefixCls:"".concat(V,"-overflow"),data:o,renderItem:function(e){var t=e.disabled,n=e.label,i=e.value,r=!u&&!t,o=n;if("number"===typeof b&&("string"===typeof n||"number"===typeof n)){var s=String(o);s.length>b&&(o="".concat(s.slice(0,b),"..."))}var l=function(t){t&&t.stopPropagation(),E(e)};return"function"===typeof w?function(e,t,n,i,r){return v.createElement("span",{onMouseDown:function(e){XT(e),x(!a)}},w({label:t,value:e,disabled:n,closable:i,onClose:r}))}(i,o,t,r,l):G(e,o,t,r,l)},renderRest:function(e){var t="function"===typeof S?S(e):S;return G({title:t},t,!1)},suffix:K,itemKey:$T,maxCount:_});return v.createElement(v.Fragment,null,Y,!o.length&&!W&&v.createElement("span",{className:"".concat(V,"-placeholder")},c))},JT=function(e){var t=e.inputElement,n=e.prefixCls,i=e.id,r=e.inputRef,o=e.disabled,a=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,c=e.mode,u=e.open,d=e.values,h=e.placeholder,f=e.tabIndex,p=e.showSearch,g=e.searchValue,m=e.activeValue,y=e.maxLength,_=e.onInputKeyDown,b=e.onInputMouseDown,C=e.onInputChange,S=e.onInputPaste,w=e.onInputCompositionStart,x=e.onInputCompositionEnd,E=v.useState(!1),T=(0,k.Z)(E,2),N=T[0],I=T[1],D="combobox"===c,L=D||p,O=d[0],R=g||"";D&&m&&!N&&(R=m),v.useEffect((function(){D&&I(!1)}),[D,m]);var A=!("combobox"!==c&&!u&&!p)&&!!R,M=qT(O);return v.createElement(v.Fragment,null,v.createElement("span",{className:"".concat(n,"-selection-search")},v.createElement(UT,{ref:r,prefixCls:n,id:i,open:u,inputElement:t,disabled:o,autoFocus:a,autoComplete:s,editable:L,activeDescendantId:l,value:R,onKeyDown:_,onMouseDown:b,onChange:function(e){I(!0),C(e)},onPaste:S,onCompositionStart:w,onCompositionEnd:x,tabIndex:f,attrs:wv(e,!0),maxLength:D?y:void 0})),!D&&O&&!A&&v.createElement("span",{className:"".concat(n,"-selection-item"),title:M},O.label),function(){if(O)return null;var e=A?{visibility:"hidden"}:void 0;return v.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},h)}())};function eN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=v.useRef(null),n=v.useRef(null);function i(i){(i||null===t.current)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return v.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},i]}var tN=function(e,t){var n=(0,v.useRef)(null),i=(0,v.useRef)(!1),r=e.prefixCls,o=e.open,a=e.mode,s=e.showSearch,l=e.tokenWithEnter,c=e.onSearch,u=e.onSearchSubmit,d=e.onToggleOpen,h=e.onInputKeyDown,f=e.domRef;v.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var p=eN(0),g=(0,k.Z)(p,2),m=g[0],y=g[1],_=(0,v.useRef)(null),b=function(e){!1!==c(e,!0,i.current)&&d(!0)},C={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==vv.UP&&n!==vv.DOWN||e.preventDefault(),h&&h(e),n!==vv.ENTER||"tags"!==a||i.current||o||null===u||void 0===u||u(e.target.value),t=n,[vv.ESC,vv.SHIFT,vv.BACKSPACE,vv.TAB,vv.WIN_KEY,vv.ALT,vv.META,vv.WIN_KEY_RIGHT,vv.CTRL,vv.SEMICOLON,vv.EQUALS,vv.CAPS_LOCK,vv.CONTEXT_MENU,vv.F1,vv.F2,vv.F3,vv.F4,vv.F5,vv.F6,vv.F7,vv.F8,vv.F9,vv.F10,vv.F11,vv.F12].includes(t)||d(!0)},onInputMouseDown:function(){y(!0)},onInputChange:function(e){var t=e.target.value;if(l&&_.current&&/[\r\n]/.test(_.current)){var n=_.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,_.current)}_.current=null,b(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");_.current=t},onInputCompositionStart:function(){i.current=!0},onInputCompositionEnd:function(e){i.current=!1,"combobox"!==a&&b(e.target.value)}},S="multiple"===a||"tags"===a?v.createElement(QT,Zt({},e,C)):v.createElement(JT,Zt({},e,C));return v.createElement("div",{ref:f,className:"".concat(r,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=m();e.target===n.current||t||"combobox"===a||e.preventDefault(),("combobox"===a||s&&t)&&o||(o&&c("",!0,!1),d())}},S)},nN=v.forwardRef(tN);nN.displayName="Selector";var iN=nN;var rN=v.createContext(null);function oN(){return v.useContext(rN)}var aN=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],sN=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function lN(e){return"tags"===e||"multiple"===e}var cN=v.forwardRef((function(e,t){var n,i,r=e.id,o=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,h=e.onDisplayValuesChange,f=e.emptyOptions,p=e.notFoundContent,g=void 0===p?"Not Found":p,m=e.onClear,y=e.mode,b=e.disabled,C=e.loading,S=e.getInputElement,w=e.getRawInputElement,x=e.open,E=e.defaultOpen,T=e.onDropdownVisibleChange,I=e.activeValue,D=e.onActiveValueChange,L=e.activeDescendantId,O=e.searchValue,R=e.onSearch,A=e.onSearchSplit,M=e.tokenSeparators,P=e.allowClear,Z=e.showArrow,F=e.inputIcon,B=e.clearIcon,H=e.OptionList,z=e.animation,j=e.transitionName,V=e.dropdownStyle,W=e.dropdownClassName,U=e.dropdownMatchSelectWidth,G=e.dropdownRender,K=e.dropdownAlign,Y=e.placement,q=e.getPopupContainer,$=e.showAction,X=void 0===$?[]:$,Q=e.onFocus,J=e.onBlur,ee=e.onKeyUp,te=e.onKeyDown,ne=e.onMouseDown,ie=Ai(e,aN),re=lN(y),oe=(void 0!==s?s:re)||"combobox"===y,ae=(0,Ft.Z)({},ie);sN.forEach((function(e){delete ae[e]})),null===u||void 0===u||u.forEach((function(e){delete ae[e]}));var se=v.useState(!1),le=(0,k.Z)(se,2),ce=le[0],ue=le[1];v.useEffect((function(){ue(_d())}),[]);var de=v.useRef(null),he=v.useRef(null),fe=v.useRef(null),pe=v.useRef(null),ge=v.useRef(null),ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=v.useState(!1),n=(0,k.Z)(t,2),i=n[0],r=n[1],o=v.useRef(null),a=function(){window.clearTimeout(o.current)};v.useEffect((function(){return a}),[]);var s=function(t,n){a(),o.current=window.setTimeout((function(){r(t),n&&n()}),e)};return[i,s,a]}(),me=(0,k.Z)(ve,3),ye=me[0],_e=me[1],be=me[2];v.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=pe.current)||void 0===e?void 0:e.focus,blur:null===(t=pe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=ge.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Ce=v.useMemo((function(){var e;if("combobox"!==y)return O;var t=null===(e=d[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""}),[O,y,d]),Se="combobox"===y&&"function"===typeof S&&S()||null,we="function"===typeof w&&w(),ke=Il(he,null===we||void 0===we||null===(n=we.props)||void 0===n?void 0:n.ref),xe=Sf(void 0,{defaultValue:E,value:x}),Ee=(0,k.Z)(xe,2),Te=Ee[0],Ne=Ee[1],Ie=Te,De=!g&&f;(b||De&&Ie&&"combobox"===y)&&(Ie=!1);var Le=!De&&Ie,Oe=v.useCallback((function(e){var t=void 0!==e?e:!Ie;Ie===t||b||(Ne(t),null===T||void 0===T||T(t))}),[b,Ie,Ne,T]),Re=v.useMemo((function(){return(M||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[M]),Ae=function(e,t,n){var i=!0,r=e;null===D||void 0===D||D(null);var o=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,i=function e(t,i){var r=(0,mr.Z)(i),o=r[0],a=r.slice(1);if(!o)return[t];var s=t.split(o);return n=n||s.length>1,s.reduce((function(t,n){return[].concat((0,_.Z)(t),(0,_.Z)(e(n,a)))}),[]).filter((function(e){return e}))}(e,t);return n?i:null}(e,M);return"combobox"!==y&&o&&(r="",null===A||void 0===A||A(o),Oe(!1),i=!1),R&&Ce!==r&&R(r,{source:t?"typing":"effect"}),i};v.useEffect((function(){Ie||re||"combobox"===y||Ae("",!1,!1)}),[Ie]),v.useEffect((function(){Te&&b&&Ne(!1),b&&_e(!1)}),[b]);var Me=eN(),Pe=(0,k.Z)(Me,2),Ze=Pe[0],Fe=Pe[1],Be=v.useRef(!1),He=[];v.useEffect((function(){return function(){He.forEach((function(e){return clearTimeout(e)})),He.splice(0,He.length)}}),[]);var ze,je=v.useState(null),Ve=(0,k.Z)(je,2),We=Ve[0],Ue=Ve[1],Ge=v.useState({}),Ke=(0,k.Z)(Ge,2)[1];ju((function(){if(Le){var e,t=Math.ceil(null===(e=de.current)||void 0===e?void 0:e.offsetWidth);We===t||Number.isNaN(t)||Ue(t)}}),[Le]),we&&(ze=function(e){Oe(e)}),function(e,t,n,i){var r=v.useRef(null);r.current={open:t,triggerOpen:n,customizedTrigger:i},v.useEffect((function(){function t(t){var n;if(!(null===(n=r.current)||void 0===n?void 0:n.customizedTrigger)){var i=t.target;i.shadowRoot&&t.composed&&(i=t.composedPath()[0]||i),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(i)&&e!==i}))&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[de.current,null===(e=fe.current)||void 0===e?void 0:e.getPopupElement()]}),Le,Oe,!!we);var Ye,qe,$e=v.useMemo((function(){return(0,Ft.Z)((0,Ft.Z)({},e),{},{notFoundContent:g,open:Ie,triggerOpen:Le,id:r,showSearch:oe,multiple:re,toggleOpen:Oe})}),[e,g,Le,Ie,r,oe,re,Oe]),Xe=void 0!==Z?Z:C||!re&&"combobox"!==y;Xe&&(Ye=v.createElement(jT,{className:Ja()("".concat(o,"-arrow"),(0,N.Z)({},"".concat(o,"-arrow-loading"),C)),customizeIcon:F,customizeIconProps:{loading:C,searchValue:Ce,open:Ie,focused:ye,showSearch:oe}}));b||!P||!d.length&&!Ce||"combobox"===y&&""===Ce||(qe=v.createElement(jT,{className:"".concat(o,"-clear"),onMouseDown:function(){null===m||void 0===m||m(),h([],{type:"clear",values:d}),Ae("",!1,!1)},customizeIcon:B},"\xd7"));var Qe,Je=v.createElement(H,{ref:ge}),et=Ja()(o,a,(i={},(0,N.Z)(i,"".concat(o,"-focused"),ye),(0,N.Z)(i,"".concat(o,"-multiple"),re),(0,N.Z)(i,"".concat(o,"-single"),!re),(0,N.Z)(i,"".concat(o,"-allow-clear"),P),(0,N.Z)(i,"".concat(o,"-show-arrow"),Xe),(0,N.Z)(i,"".concat(o,"-disabled"),b),(0,N.Z)(i,"".concat(o,"-loading"),C),(0,N.Z)(i,"".concat(o,"-open"),Ie),(0,N.Z)(i,"".concat(o,"-customize-input"),Se),(0,N.Z)(i,"".concat(o,"-show-search"),oe),i)),tt=v.createElement(zT,{ref:fe,disabled:b,prefixCls:o,visible:Le,popupElement:Je,containerWidth:We,animation:z,transitionName:j,dropdownStyle:V,dropdownClassName:W,direction:c,dropdownMatchSelectWidth:U,dropdownRender:G,dropdownAlign:K,placement:Y,getPopupContainer:q,empty:f,getTriggerDOMNode:function(){return he.current},onPopupVisibleChange:ze,onPopupMouseEnter:function(){Ke({})}},we?v.cloneElement(we,{ref:ke}):v.createElement(iN,Zt({},e,{domRef:he,prefixCls:o,inputElement:Se,ref:pe,id:r,showSearch:oe,mode:y,activeDescendantId:L,tagRender:l,values:d,open:Ie,onToggleOpen:Oe,activeValue:I,searchValue:Ce,onSearch:Ae,onSearchSubmit:function(e){e&&e.trim()&&R(e,{source:"submit"})},onRemove:function(e){var t=d.filter((function(t){return t!==e}));h(t,{type:"remove",values:[e]})},tokenWithEnter:Re})));return Qe=we?tt:v.createElement("div",Zt({className:et},ae,{ref:de,onMouseDown:function(e){var t,n=e.target,i=null===(t=fe.current)||void 0===t?void 0:t.getPopupElement();if(i&&i.contains(n)){var r=setTimeout((function(){var e,t=He.indexOf(r);-1!==t&&He.splice(t,1),be(),ce||i.contains(document.activeElement)||null===(e=pe.current)||void 0===e||e.focus()}));He.push(r)}for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];null===ne||void 0===ne||ne.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Ze(),i=e.which;if(i===vv.ENTER&&("combobox"!==y&&e.preventDefault(),Ie||Oe(!0)),Fe(!!Ce),i===vv.BACKSPACE&&!n&&re&&!Ce&&d.length){for(var r=(0,_.Z)(d),o=null,a=r.length-1;a>=0;a-=1){var s=r[a];if(!s.disabled){r.splice(a,1),o=s;break}}o&&h(r,{type:"remove",values:[o]})}for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];Ie&&ge.current&&(t=ge.current).onKeyDown.apply(t,[e].concat(c)),null===te||void 0===te||te.apply(void 0,[e].concat(c))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r;Ie&&ge.current&&(r=ge.current).onKeyUp.apply(r,[e].concat(n)),null===ee||void 0===ee||ee.apply(void 0,[e].concat(n))},onFocus:function(){_e(!0),b||(Q&&!Be.current&&Q.apply(void 0,arguments),X.includes("focus")&&Oe(!0)),Be.current=!0},onBlur:function(){_e(!1,(function(){Be.current=!1,Oe(!1)})),b||(Ce&&("tags"===y?R(Ce,{source:"submit"}):"multiple"===y&&R("",{source:"blur"})),J&&J.apply(void 0,arguments))}}),ye&&!Ie&&v.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,Bt.Z)(t))?t:n})).join(", "))),tt,Ye,qe),v.createElement(rN.Provider,{value:$e},Qe)}));var uN=cN;function dN(e,t){return GT(e).join("").toUpperCase().includes(t)}var hN=0,fN=Ht();function pN(e){var t=v.useState(),n=(0,k.Z)(t,2),i=n[0],r=n[1];return v.useEffect((function(){r("rc_select_".concat(function(){var e;return fN?(e=hN,hN+=1):e="TEST_OR_SSR",e}()))}),[]),e||i}var gN=["children","value"],vN=["children"];function mN(e){var t=e.key,n=e.props,i=n.children,r=n.value,o=Ai(n,gN);return(0,Ft.Z)({key:t,value:void 0!==r?r:t,children:i},o)}function yN(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Zi(e).map((function(e,n){if(!v.isValidElement(e)||!e.type)return null;var i=e.type.isSelectOptGroup,r=e.key,o=e.props,a=o.children,s=Ai(o,vN);return t||!i?mN(e):(0,Ft.Z)((0,Ft.Z)({key:"__RC_SELECT_GRP__".concat(null===r?n:r,"__"),label:r},s),{},{options:yN(a)})})).filter((function(e){return e}))}function _N(e,t,n,i,r){return v.useMemo((function(){var o=e;!e&&(o=yN(t));var a=new Map,s=new Map,l=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[n.options]||o?(a.set(u[n.value],u),l(s,u,n.label),l(s,u,i),l(s,u,r)):e(u[n.options],!0)}}(o),{options:o,valueOptions:a,labelOptions:s}}),[e,t,n,i,r])}function bN(e){var t=v.useRef();t.current=e;var n=v.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var CN=function(){return null};CN.isSelectOptGroup=!0;var SN=CN,wN=function(){return null};wN.isSelectOption=!0;var kN=wN,xN=v.forwardRef((function(e,t){var n=e.height,i=e.offset,r=e.children,o=e.prefixCls,a=e.onInnerResize,s={},l={display:"flex",flexDirection:"column"};return void 0!==i&&(s={height:n,position:"relative",overflow:"hidden"},l=(0,Ft.Z)((0,Ft.Z)({},l),{},{transform:"translateY(".concat(i,"px)"),position:"absolute",left:0,right:0,top:0})),v.createElement("div",{style:s},v.createElement(yy,{onResize:function(e){e.offsetHeight&&a&&a()}},v.createElement("div",{style:l,className:Ja()((0,N.Z)({},"".concat(o,"-holder-inner"),o)),ref:t},r)))}));xN.displayName="Filler";var EN=xN;function TN(e){return"touches"in e?e.touches[0].pageY:e.pageY}var NN=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){var e;(0,b.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).moveRaf=null,e.scrollbarRef=v.createRef(),e.thumbRef=v.createRef(),e.visibleTimeout=null,e.state={dragging:!1,pageY:null,startTop:null,visible:!1},e.delayHidden=function(){clearTimeout(e.visibleTimeout),e.setState({visible:!0}),e.visibleTimeout=setTimeout((function(){e.setState({visible:!1})}),2e3)},e.onScrollbarTouchStart=function(e){e.preventDefault()},e.onContainerMouseDown=function(e){e.stopPropagation(),e.preventDefault()},e.patchEvents=function(){window.addEventListener("mousemove",e.onMouseMove),window.addEventListener("mouseup",e.onMouseUp),e.thumbRef.current.addEventListener("touchmove",e.onMouseMove),e.thumbRef.current.addEventListener("touchend",e.onMouseUp)},e.removeEvents=function(){var t;window.removeEventListener("mousemove",e.onMouseMove),window.removeEventListener("mouseup",e.onMouseUp),null===(t=e.scrollbarRef.current)||void 0===t||t.removeEventListener("touchstart",e.onScrollbarTouchStart),e.thumbRef.current&&(e.thumbRef.current.removeEventListener("touchstart",e.onMouseDown),e.thumbRef.current.removeEventListener("touchmove",e.onMouseMove),e.thumbRef.current.removeEventListener("touchend",e.onMouseUp)),oc.cancel(e.moveRaf)},e.onMouseDown=function(t){var n=e.props.onStartMove;e.setState({dragging:!0,pageY:TN(t),startTop:e.getTop()}),n(),e.patchEvents(),t.stopPropagation(),t.preventDefault()},e.onMouseMove=function(t){var n=e.state,i=n.dragging,r=n.pageY,o=n.startTop,a=e.props.onScroll;if(oc.cancel(e.moveRaf),i){var s=o+(TN(t)-r),l=e.getEnableScrollRange(),c=e.getEnableHeightRange(),u=c?s/c:0,d=Math.ceil(u*l);e.moveRaf=oc((function(){a(d)}))}},e.onMouseUp=function(){var t=e.props.onStopMove;e.setState({dragging:!1}),t(),e.removeEvents()},e.getSpinHeight=function(){var t=e.props,n=t.height,i=n/t.count*10;return i=Math.max(i,20),i=Math.min(i,n/2),Math.floor(i)},e.getEnableScrollRange=function(){var t=e.props;return t.scrollHeight-t.height||0},e.getEnableHeightRange=function(){return e.props.height-e.getSpinHeight()||0},e.getTop=function(){var t=e.props.scrollTop,n=e.getEnableScrollRange(),i=e.getEnableHeightRange();return 0===t||0===n?0:t/n*i},e.showScroll=function(){var t=e.props,n=t.height;return t.scrollHeight>n},e}return(0,C.Z)(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,i=this.props.prefixCls,r=this.getSpinHeight(),o=this.getTop(),a=this.showScroll(),s=a&&n;return v.createElement("div",{ref:this.scrollbarRef,className:Ja()("".concat(i,"-scrollbar"),(0,N.Z)({},"".concat(i,"-scrollbar-show"),a)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:s?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},v.createElement("div",{ref:this.thumbRef,className:Ja()("".concat(i,"-scrollbar-thumb"),(0,N.Z)({},"".concat(i,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:r,top:o,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(v.Component);function IN(e){var t=e.children,n=e.setRef,i=v.useCallback((function(e){n(e)}),[]);return v.cloneElement(t,{ref:i})}var DN=function(){function e(){(0,b.Z)(this,e),this.maps=void 0,this.maps=Object.create(null)}return(0,C.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),LN=DN;function ON(e,t,n){var i=v.useState(e),r=(0,k.Z)(i,2),o=r[0],a=r[1],s=v.useState(null),l=(0,k.Z)(s,2),c=l[0],u=l[1];return v.useEffect((function(){var i=function(e,t,n){var i,r,o=e.length,a=t.length;if(0===o&&0===a)return null;o<a?(i=e,r=t):(i=t,r=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(o-a),d=0;d<r.length;d+=1){var h=l(i[d]);if(h!==l(r[d])){c=d,u=u||h!==l(r[d+1]);break}}return null===c?null:{index:c,multiple:u}}(o||[],e||[],t);void 0!==(null===i||void 0===i?void 0:i.index)&&(null===n||void 0===n||n(i.index),u(e[i.index])),a(e)}),[e]),[c]}var RN="object"===("undefined"===typeof navigator?"undefined":(0,Bt.Z)(navigator))&&/Firefox/i.test(navigator.userAgent),AN=function(e,t){var n=(0,v.useRef)(!1),i=(0,v.useRef)(null);function r(){clearTimeout(i.current),n.current=!0,i.current=setTimeout((function(){n.current=!1}),50)}var o=(0,v.useRef)({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e<0&&o.current.top||e>0&&o.current.bottom;return t&&a?(clearTimeout(i.current),n.current=!1):a&&!n.current||r(),!n.current&&a}};var MN=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"],PN=[],ZN={overflowY:"auto",overflowAnchor:"none"};function FN(e,t){var n=e.prefixCls,i=void 0===n?"rc-virtual-list":n,r=e.className,o=e.height,a=e.itemHeight,s=e.fullHeight,l=void 0===s||s,c=e.style,u=e.data,d=e.children,h=e.itemKey,f=e.virtual,p=e.component,g=void 0===p?"div":p,m=e.onScroll,y=e.onVisibleChange,_=Ai(e,MN),b=!(!1===f||!o||!a),C=b&&u&&a*u.length>o,S=(0,v.useState)(0),w=(0,k.Z)(S,2),x=w[0],E=w[1],T=(0,v.useState)(!1),I=(0,k.Z)(T,2),D=I[0],L=I[1],O=Ja()(i,r),R=u||PN,A=(0,v.useRef)(),M=(0,v.useRef)(),P=(0,v.useRef)(),Z=v.useCallback((function(e){return"function"===typeof h?h(e):null===e||void 0===e?void 0:e[h]}),[h]),F={getKey:Z};function B(e){E((function(t){var n=function(e){var t=e;Number.isNaN(ne.current)||(t=Math.min(t,ne.current));return t=Math.max(t,0)}("function"===typeof e?e(t):e);return A.current.scrollTop=n,n}))}var H=(0,v.useRef)({start:0,end:R.length}),z=(0,v.useRef)(),j=ON(R,Z),V=(0,k.Z)(j,1)[0];z.current=V;var W=function(e,t,n){var i=v.useState(0),r=(0,k.Z)(i,2),o=r[0],a=r[1],s=(0,v.useRef)(new Map),l=(0,v.useRef)(new LN),c=(0,v.useRef)();function u(){oc.cancel(c.current)}function d(){u(),c.current=oc((function(){s.current.forEach((function(e,t){if(e&&e.offsetParent){var n=El(e),i=n.offsetHeight;l.current.get(t)!==i&&l.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))}))}return(0,v.useEffect)((function(){return u}),[]),[function(i,r){var o=e(i),a=s.current.get(o);r?(s.current.set(o,r),d()):s.current.delete(o),!a!==!r&&(r?null===t||void 0===t||t(i):null===n||void 0===n||n(i))},d,l.current,o]}(Z,null,null),U=(0,k.Z)(W,4),G=U[0],K=U[1],Y=U[2],q=U[3],$=v.useMemo((function(){if(!b)return{scrollHeight:void 0,start:0,end:R.length-1,offset:void 0};var e;if(!C)return{scrollHeight:(null===(e=M.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:R.length-1,offset:void 0};for(var t,n,i,r=0,s=R.length,l=0;l<s;l+=1){var c=R[l],u=Z(c),d=Y.get(u),h=r+(void 0===d?a:d);h>=x&&void 0===t&&(t=l,n=r),h>x+o&&void 0===i&&(i=l),r=h}return void 0===t&&(t=0,n=0,i=Math.ceil(o/a)),void 0===i&&(i=R.length-1),{scrollHeight:r,start:t,end:i=Math.min(i+1,R.length),offset:n}}),[C,b,x,R,q,o]),X=$.scrollHeight,Q=$.start,J=$.end,ee=$.offset;H.current.start=Q,H.current.end=J;var te=X-o,ne=(0,v.useRef)(te);ne.current=te;var ie=x<=0,re=x>=te,oe=AN(ie,re);var ae=function(e,t,n,i){var r=(0,v.useRef)(0),o=(0,v.useRef)(null),a=(0,v.useRef)(null),s=(0,v.useRef)(!1),l=AN(t,n);return[function(t){if(e){oc.cancel(o.current);var n=t.deltaY;r.current+=n,a.current=n,l(n)||(RN||t.preventDefault(),o.current=oc((function(){var e=s.current?10:1;i(r.current*e),r.current=0})))}},function(t){e&&(s.current=t.detail===a.current)}]}(b,ie,re,(function(e){B((function(t){return t+e}))})),se=(0,k.Z)(ae,2),le=se[0],ce=se[1];!function(e,t,n){var i,r=(0,v.useRef)(!1),o=(0,v.useRef)(0),a=(0,v.useRef)(null),s=(0,v.useRef)(null),l=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageY),i=o.current-t;o.current=t,n(i)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(i*=.9333333333333333,!0)||Math.abs(i)<=.1)&&clearInterval(s.current)}),16)}},c=function(){r.current=!1,i()},u=function(e){i(),1!==e.touches.length||r.current||(r.current=!0,o.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",l),a.current.addEventListener("touchend",c))};i=function(){a.current&&(a.current.removeEventListener("touchmove",l),a.current.removeEventListener("touchend",c))},ju((function(){return e&&t.current.addEventListener("touchstart",u),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",u),i(),clearInterval(s.current)}}),[e])}(b,A,(function(e,t){return!oe(e,t)&&(le({preventDefault:function(){},deltaY:e}),!0)})),ju((function(){function e(e){b&&e.preventDefault()}return A.current.addEventListener("wheel",le),A.current.addEventListener("DOMMouseScroll",ce),A.current.addEventListener("MozMousePixelScroll",e),function(){A.current&&(A.current.removeEventListener("wheel",le),A.current.removeEventListener("DOMMouseScroll",ce),A.current.removeEventListener("MozMousePixelScroll",e))}}),[b]);var ue=function(e,t,n,i,r,o,a,s){var l=v.useRef();return function(c){if(null!==c&&void 0!==c){if(oc.cancel(l.current),"number"===typeof c)a(c);else if(c&&"object"===(0,Bt.Z)(c)){var u,d=c.align;u="index"in c?c.index:t.findIndex((function(e){return r(e)===c.key}));var h=c.offset,f=void 0===h?0:h;!function s(c,h){if(!(c<0)&&e.current){var p=e.current.clientHeight,g=!1,v=h;if(p){for(var m=h||d,y=0,_=0,b=0,C=Math.min(t.length,u),S=0;S<=C;S+=1){var w=r(t[S]);_=y;var k=n.get(w);y=b=_+(void 0===k?i:k),S===u&&void 0===k&&(g=!0)}var x=null;switch(m){case"top":x=_-f;break;case"bottom":x=b-p+f;break;default:var E=e.current.scrollTop;_<E?v="top":b>E+p&&(v="bottom")}null!==x&&x!==e.current.scrollTop&&a(x)}l.current=oc((function(){g&&o(),s(c-1,v)}))}}(3)}}else s()}}(A,R,Y,a,Z,K,B,(function(){var e;null===(e=P.current)||void 0===e||e.delayHidden()}));v.useImperativeHandle(t,(function(){return{scrollTo:ue}})),ju((function(){if(y){var e=R.slice(Q,J+1);y(e,R)}}),[Q,J,R]);var de=function(e,t,n,i,r,o){var a=o.getKey;return e.slice(t,n+1).map((function(e,n){var o=r(e,t+n,{}),s=a(e);return v.createElement(IN,{key:s,setRef:function(t){return i(e,t)}},o)}))}(R,Q,J,G,d,F),he=null;return o&&(he=(0,Ft.Z)((0,N.Z)({},l?"height":"maxHeight",o),ZN),b&&(he.overflowY="hidden",D&&(he.pointerEvents="none"))),v.createElement("div",Zt({style:(0,Ft.Z)((0,Ft.Z)({},c),{},{position:"relative"}),className:O},_),v.createElement(g,{className:"".concat(i,"-holder"),style:he,ref:A,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==x&&B(t),null===m||void 0===m||m(e)}},v.createElement(EN,{prefixCls:i,height:X,offset:ee,onInnerResize:K,ref:M},de)),b&&v.createElement(NN,{ref:P,prefixCls:i,scrollTop:x,height:o,scrollHeight:X,count:R.length,onScroll:function(e){B(e)},onStartMove:function(){L(!0)},onStopMove:function(){L(!1)}}))}var BN=v.forwardRef(FN);BN.displayName="List";var HN=BN;var zN=v.createContext(null),jN=["disabled","title","children","style","className"];function VN(e){return"string"===typeof e||"number"===typeof e}var WN=function(e,t){var n=oN(),i=n.prefixCls,r=n.id,o=n.open,a=n.multiple,s=n.mode,l=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,h=v.useContext(zN),f=h.flattenOptions,p=h.onActiveValue,g=h.defaultActiveFirstOption,m=h.onSelect,y=h.menuItemSelectedIcon,b=h.rawValues,C=h.fieldNames,S=h.virtual,w=h.listHeight,x=h.listItemHeight,E="".concat(i,"-item"),T=uo((function(){return f}),[o,f],(function(e,t){return t[0]&&e[1]!==t[1]})),I=v.useRef(null),D=function(e){e.preventDefault()},L=function(e){I.current&&I.current.scrollTo("number"===typeof e?{index:e}:e)},O=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=T.length,i=0;i<n;i+=1){var r=(e+i*t+n)%n,o=T[r],a=o.group,s=o.data;if(!a&&!s.disabled)return r}return-1},R=v.useState((function(){return O(0)})),A=(0,k.Z)(R,2),M=A[0],P=A[1],Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];P(e);var n={source:t?"keyboard":"mouse"},i=T[e];i?p(i.value,e,n):p(null,-1,n)};(0,v.useEffect)((function(){Z(!1!==g?O(0):-1)}),[T.length,l]);var F=v.useCallback((function(e){return b.has(e)&&"combobox"!==s}),[s,(0,_.Z)(b).toString()]);(0,v.useEffect)((function(){var e,t=setTimeout((function(){if(!a&&o&&1===b.size){var e=Array.from(b)[0],t=T.findIndex((function(t){return t.data.value===e}));-1!==t&&(Z(t),L(t))}}));o&&(null===(e=I.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[o,l]);var B=function(e){void 0!==e&&m(e,{selected:!b.has(e)}),a||c(!1)};if(v.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case vv.N:case vv.P:case vv.UP:case vv.DOWN:var i=0;if(t===vv.UP?i=-1:t===vv.DOWN?i=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===vv.N?i=1:t===vv.P&&(i=-1)),0!==i){var r=O(M+i,i);L(r),Z(r,!0)}break;case vv.ENTER:var a=T[M];a&&!a.data.disabled?B(a.value):B(void 0),o&&e.preventDefault();break;case vv.ESC:c(!1),o&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){L(e)}}})),0===T.length)return v.createElement("div",{role:"listbox",id:"".concat(r,"_list"),className:"".concat(E,"-empty"),onMouseDown:D},u);var H=Object.keys(C).map((function(e){return C[e]})),z=function(e){return e.label},j=function(e){var t=T[e];if(!t)return null;var n=t.data||{},i=n.value,o=t.group,a=wv(n,!0),s=z(t);return t?v.createElement("div",Zt({"aria-label":"string"!==typeof s||o?null:s},a,{key:e,role:o?"presentation":"option",id:"".concat(r,"_list_").concat(e),"aria-selected":F(i)}),i):null};return v.createElement(v.Fragment,null,v.createElement("div",{role:"listbox",id:"".concat(r,"_list"),style:{height:0,width:0,overflow:"hidden"}},j(M-1),j(M),j(M+1)),v.createElement(HN,{itemKey:"key",ref:I,data:T,height:w,itemHeight:x,fullHeight:!1,onMouseDown:D,onScroll:d,virtual:S},(function(e,t){var n,i=e.group,r=e.groupOption,o=e.data,a=e.label,s=e.value,l=o.key;if(i){var c,u=null!==(c=o.title)&&void 0!==c?c:VN(a)?a.toString():void 0;return v.createElement("div",{className:Ja()(E,"".concat(E,"-group")),title:u},void 0!==a?a:l)}var d=o.disabled,h=o.title,f=(o.children,o.style),p=o.className,g=ns(Ai(o,jN),H),m=F(s),_="".concat(E,"-option"),b=Ja()(E,_,p,(n={},(0,N.Z)(n,"".concat(_,"-grouped"),r),(0,N.Z)(n,"".concat(_,"-active"),M===t&&!d),(0,N.Z)(n,"".concat(_,"-disabled"),d),(0,N.Z)(n,"".concat(_,"-selected"),m),n)),C=z(e),S=!y||"function"===typeof y||m,w="number"===typeof C?C:C||s,k=VN(w)?w.toString():void 0;return void 0!==h&&(k=h),v.createElement("div",Zt({},wv(g),{"aria-selected":m,className:b,title:k,onMouseMove:function(){M===t||d||Z(t)},onClick:function(){d||B(s)},style:f}),v.createElement("div",{className:"".concat(_,"-content")},w),v.isValidElement(y)||m,S&&v.createElement(jT,{className:"".concat(E,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:m}},m?"\u2713":null))})))},UN=v.forwardRef(WN);UN.displayName="OptionList";var GN=UN;var KN=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],YN=["inputValue"];var qN=v.forwardRef((function(e,t){var n=e.id,i=e.mode,r=e.prefixCls,o=void 0===r?"rc-select":r,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,h=void 0===d||d,f=e.onSelect,p=e.onDeselect,g=e.dropdownMatchSelectWidth,m=void 0===g||g,y=e.filterOption,b=e.filterSort,C=e.optionFilterProp,S=e.optionLabelProp,w=e.options,x=e.children,E=e.defaultActiveFirstOption,T=e.menuItemSelectedIcon,I=e.virtual,D=e.listHeight,L=void 0===D?200:D,O=e.listItemHeight,R=void 0===O?20:O,A=e.value,M=e.defaultValue,P=e.labelInValue,Z=e.onChange,F=Ai(e,KN),B=pN(n),H=lN(i),z=!(w||!x),j=v.useMemo((function(){return(void 0!==y||"combobox"!==i)&&y}),[y,i]),V=v.useMemo((function(){return PT(s,z)}),[JSON.stringify(s),z]),W=Sf("",{value:void 0!==c?c:l,postState:function(e){return e||""}}),U=(0,k.Z)(W,2),G=U[0],K=U[1],Y=_N(w,x,V,C,S),q=Y.valueOptions,$=Y.labelOptions,X=Y.options,Q=v.useCallback((function(e){return GT(e).map((function(e){var t,n,i,r,o,a;(function(e){return!e||"object"!==(0,Bt.Z)(e)})(e)?t=e:(i=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:i);var s,l=q.get(t);l&&(void 0===n&&(n=null===l||void 0===l?void 0:l[S||V.label]),void 0===i&&(i=null!==(s=null===l||void 0===l?void 0:l.key)&&void 0!==s?s:t),r=null===l||void 0===l?void 0:l.disabled,o=null===l||void 0===l?void 0:l.title);return{label:n,value:t,key:i,disabled:r,title:o}}))}),[V,S,q]),J=Sf(M,{value:A}),ee=(0,k.Z)(J,2),te=ee[0],ne=ee[1],ie=function(e,t){var n=v.useRef({values:new Map,options:new Map});return[v.useMemo((function(){var i=n.current,r=i.values,o=i.options,a=e.map((function(e){var t;return void 0===e.label?(0,Ft.Z)((0,Ft.Z)({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),s=new Map,l=new Map;return a.forEach((function(e){s.set(e.value,e),l.set(e.value,t.get(e.value)||o.get(e.value))})),n.current.values=s,n.current.options=l,a}),[e,t]),v.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(v.useMemo((function(){var e,t=Q(te);return"combobox"!==i||(null===(e=t[0])||void 0===e?void 0:e.value)?t:[]}),[te,Q,i]),q),re=(0,k.Z)(ie,2),oe=re[0],ae=re[1],se=v.useMemo((function(){if(!i&&1===oe.length){var e=oe[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return oe.map((function(e){var t;return(0,Ft.Z)((0,Ft.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[i,oe]),le=v.useMemo((function(){return new Set(oe.map((function(e){return e.value})))}),[oe]);v.useEffect((function(){if("combobox"===i){var e,t=null===(e=oe[0])||void 0===e?void 0:e.value;K(function(e){return void 0!==e&&null!==e}(t)?String(t):"")}}),[oe]);var ce=bN((function(e,t){var n,i=null!==t&&void 0!==t?t:e;return n={},(0,N.Z)(n,V.value,e),(0,N.Z)(n,V.label,i),n})),ue=function(e,t,n,i,r){return v.useMemo((function(){if(!n||!1===i)return e;var o=t.options,a=t.label,s=t.value,l=[],c="function"===typeof i,u=n.toUpperCase(),d=c?i:function(e,t){return r?dN(t[r],u):t[o]?dN(t["children"!==a?a:"label"],u):dN(t[s],u)},h=c?function(e){return ZT(e)}:function(e){return e};return e.forEach((function(e){if(e[o])if(d(n,h(e)))l.push(e);else{var t=e[o].filter((function(e){return d(n,h(e))}));t.length&&l.push((0,Ft.Z)((0,Ft.Z)({},e),{},(0,N.Z)({},o,t)))}else d(n,h(e))&&l.push(e)})),l}),[e,i,r,n,t])}(v.useMemo((function(){if("tags"!==i)return X;var e=(0,_.Z)(X);return(0,_.Z)(oe).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return q.has(e)})(n)||e.push(ce(n,t.label))})),e}),[ce,X,q,oe,i]),V,G,j,C),de=v.useMemo((function(){return"tags"!==i||!G||ue.some((function(e){return e[C||"value"]===G}))?ue:[ce(G)].concat((0,_.Z)(ue))}),[ce,C,i,ue,G]),he=v.useMemo((function(){return b?(0,_.Z)(de).sort((function(e,t){return b(e,t)})):de}),[de,b]),fe=v.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,i=t.childrenAsData,r=[],o=PT(n,!1),a=o.label,s=o.value,l=o.options;function c(e,t){e.forEach((function(e){var n=e[a];if(t||!(l in e)){var o=e[s];r.push({key:MT(e,r.length),groupOption:t,data:e,label:n,value:o})}else{var u=n;void 0===u&&i&&(u=e.label),r.push({key:MT(e,r.length),group:!0,data:e,label:u}),c(e[l],!0)}}))}return c(e,!1),r}(he,{fieldNames:V,childrenAsData:z})}),[he,V,z]),pe=function(e){var t=Q(e);if(ne(t),Z&&(t.length!==oe.length||t.some((function(e,t){var n;return(null===(n=oe[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){var n=P?t:t.map((function(e){return e.value})),i=t.map((function(e){return ZT(ae(e.value))}));Z(H?n:n[0],H?i:i[0])}},ge=v.useState(null),ve=(0,k.Z)(ge,2),me=ve[0],ye=ve[1],_e=v.useState(0),be=(0,k.Z)(_e,2),Ce=be[0],Se=be[1],we=void 0!==E?E:"combobox"!==i,ke=v.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=void 0===r?"keyboard":r;Se(t),a&&"combobox"===i&&null!==e&&"keyboard"===o&&ye(String(e))}),[a,i]),xe=function(e,t){var n=function(){var t,n=ae(e);return[P?{label:null===n||void 0===n?void 0:n[V.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,ZT(n)]};if(t&&f){var i=n(),r=(0,k.Z)(i,2),o=r[0],a=r[1];f(o,a)}else if(!t&&p){var s=n(),l=(0,k.Z)(s,2),c=l[0],u=l[1];p(c,u)}},Ee=bN((function(e,t){var n,r=!H||t.selected;n=r?H?[].concat((0,_.Z)(oe),[e]):[e]:oe.filter((function(t){return t.value!==e})),pe(n),xe(e,r),"combobox"===i?ye(""):lN&&!h||(K(""),ye(""))})),Te=v.useMemo((function(){var e=!1!==I&&!1!==m;return(0,Ft.Z)((0,Ft.Z)({},Y),{},{flattenOptions:fe,onActiveValue:ke,defaultActiveFirstOption:we,onSelect:Ee,menuItemSelectedIcon:T,rawValues:le,fieldNames:V,virtual:e,listHeight:L,listItemHeight:R,childrenAsData:z})}),[Y,fe,ke,we,Ee,T,le,V,I,m,L,R,z]);return v.createElement(zN.Provider,{value:Te},v.createElement(uN,Zt({},F,{id:B,prefixCls:o,ref:t,omitDomProps:YN,mode:i,displayValues:se,onDisplayValuesChange:function(e,t){pe(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((function(e){xe(e.value,!1)}))},searchValue:G,onSearch:function(e,t){if(K(e),ye(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===i&&pe(e),null===u||void 0===u||u(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,_.Z)(le),[n])));pe(r),xe(n,!0),K("")}}},onSearchSplit:function(e){var t=e;"tags"!==i&&(t=e.map((function(e){var t=$.get(e);return null===t||void 0===t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,_.Z)(le),(0,_.Z)(t))));pe(n),n.forEach((function(e){xe(e,!0)}))},dropdownMatchSelectWidth:m,OptionList:GN,emptyOptions:!fe.length,activeValue:me,activeDescendantId:"".concat(B,"_list_").concat(Ce)})))}));var $N=qN;$N.Option=kN,$N.OptGroup=SN;var XN=$N,QN=function(){return v.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(24 31.67)"},v.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),v.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),v.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),v.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),v.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),v.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),v.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},v.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),v.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},JN=function(){return v.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},v.createElement("ellipse",{fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"}),v.createElement("g",{fillRule:"nonzero",stroke:"#D9D9D9"},v.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),v.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA"}))))},eI=function(e){var t,n=e.componentCls,i=e.margin,r=e.marginXS,o=e.marginXL,a=e.fontSize,s=e.lineHeight;return(0,N.Z)({},n,(t={marginInline:r,fontSize:a,lineHeight:s,textAlign:"center"},(0,N.Z)(t,n+"-image",{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}}),(0,N.Z)(t,n+"-footer",{marginTop:i}),(0,N.Z)(t,"&-normal",(0,N.Z)({marginBlock:o,color:e.colorTextDisabled},n+"-image",{height:e.emptyImgHeightMD})),(0,N.Z)(t,"&-small",(0,N.Z)({marginBlock:r,color:e.colorTextDisabled},n+"-image",{height:e.emptyImgHeightSM})),t))},tI=hs("Empty",(function(e){var t=e.componentCls,n=e.controlHeightLG,i=cs(e,{emptyImgCls:t+"-img",emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[eI(i)]})),nI=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},iI=v.createElement(QN,null),rI=v.createElement(JN,null),oI=function(e){var t=e.className,n=e.prefixCls,i=e.image,r=void 0===i?iI:i,o=e.description,a=e.children,s=e.imageStyle,l=nI(e,["className","prefixCls","image","description","children","imageStyle"]),c=v.useContext(wa),u=c.getPrefixCls,d=c.direction,h=u("empty",n),f=tI(h),p=(0,k.Z)(f,2),g=p[0],m=p[1];return g(v.createElement(So,{componentName:"Empty"},(function(e){var n,i="undefined"!==typeof o?o:e.description,c="string"===typeof i?i:"empty",u=null;return u="string"===typeof r?v.createElement("img",{alt:c,src:r}):r,v.createElement("div",Zt({className:Ja()(m,h,(n={},(0,N.Z)(n,h+"-normal",r===rI),(0,N.Z)(n,h+"-rtl","rtl"===d),n),t)},l),v.createElement("div",{className:h+"-image",style:s},u),i&&v.createElement("div",{className:h+"-description"},i),a&&v.createElement("div",{className:h+"-footer"},a))})))};oI.PRESENTED_IMAGE_DEFAULT=iI,oI.PRESENTED_IMAGE_SIMPLE=rI;var aI=oI,sI=function(e){return v.createElement(ka,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return v.createElement(aI,{image:aI.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return v.createElement(aI,{image:aI.PRESENTED_IMAGE_SIMPLE,className:n+"-small"});default:return v.createElement(aI,null)}}))},lI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},cI=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:lI}))};cI.displayName="DownOutlined";var uI=v.forwardRef(cI);function dI(e){var t=e.suffixIcon,n=e.clearIcon,i=e.menuItemSelectedIcon,r=e.removeIcon,o=e.loading,a=e.multiple,s=e.hasFeedback,l=e.prefixCls,c=e.showArrow,u=e.feedbackIcon,d=null!==n&&void 0!==n?n:v.createElement(Lu,null),h=function(e){return v.createElement(v.Fragment,null,!1!==c&&e,s&&u)},f=null;if(void 0!==t)f=h(t);else if(o)f=h(v.createElement(Fu,{spin:!0}));else{var p=l+"-suffix";f=function(e){var t=e.open,n=e.showSearch;return h(t&&n?v.createElement(sy,{className:p}):v.createElement(uI,{className:p}))}}return{clearIcon:d,suffixIcon:f,itemIcon:void 0!==i?i:a?v.createElement(fx,null):null,removeIcon:void 0!==r?r:v.createElement(Ap,null)}}var hI=function(e){var t=e.controlPaddingHorizontal;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:(e.controlHeight-e.fontSize*e.lineHeight)/2+"px "+t+"px",color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},fI=function(e){var t,n,i,r=e.antCls,o=e.componentCls,a=o+"-item";return[(0,N.Z)({},o+"-dropdown",Zt(Zt({},Fa(e)),(i={position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,N.Z)(i,"\n &"+r+"-slide-up-enter"+r+"-slide-up-enter-active&-placement-bottomLeft,\n &"+r+"-slide-up-appear"+r+"-slide-up-appear-active&-placement-bottomLeft\n ",{animationName:Hb}),(0,N.Z)(i,"\n &"+r+"-slide-up-enter"+r+"-slide-up-enter-active&-placement-topLeft,\n &"+r+"-slide-up-appear"+r+"-slide-up-appear-active&-placement-topLeft\n ",{animationName:jb}),(0,N.Z)(i,"&"+r+"-slide-up-leave"+r+"-slide-up-leave-active&-placement-bottomLeft",{animationName:zb}),(0,N.Z)(i,"&"+r+"-slide-up-leave"+r+"-slide-up-leave-active&-placement-topLeft",{animationName:Vb}),(0,N.Z)(i,"&-hidden",{display:"none"}),(0,N.Z)(i,"&-empty",{color:e.colorTextDisabled}),(0,N.Z)(i,a+"-empty",Zt(Zt({},hI(e)),{color:e.colorTextDisabled})),(0,N.Z)(i,""+a,Zt(Zt({},hI(e)),{cursor:"pointer",transition:"background "+e.motionDurationSlow+" ease",borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":(n={display:"flex","&-content":Zt({flex:"auto"},Za),"&-state":{flex:"none"}},(0,N.Z)(n,"&-active:not("+a+"-option-disabled)",{backgroundColor:e.controlItemBgHover}),(0,N.Z)(n,"&-selected:not("+a+"-option-disabled)",(0,N.Z)({color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive},a+"-option-state",{color:e.colorPrimary})),(0,N.Z)(n,"&-disabled",(t={},(0,N.Z)(t,"&"+a+"-option-selected",{backgroundColor:e.colorBgContainerDisabled}),(0,N.Z)(t,"color",e.colorTextDisabled),(0,N.Z)(t,"cursor","not-allowed"),t)),(0,N.Z)(n,"&-grouped",{paddingInlineStart:2*e.controlPaddingHorizontal}),n)})),(0,N.Z)(i,"&-rtl",{direction:"rtl"}),i))),qb(e,"slide-up"),qb(e,"slide-down"),DC(e,"move-up"),DC(e,"move-down")]};function pI(e){var t=e.controlHeightSM,n=(e.controlHeight-t)/2-e.lineWidth;return[n,Math.ceil(n/2)]}function gI(e,t){var n,i,r,o,a,s=e.componentCls,l=e.iconCls,c=s+"-selection-overflow",u=e.controlHeightSM,d=pI(e),h=(0,k.Z)(d,1)[0],f=t?s+"-"+t:"";return(0,N.Z)({},s+"-multiple"+f,(a={fontSize:e.fontSize},(0,N.Z)(a,c,{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}}),(0,N.Z)(a,s+"-selector",(n={display:"flex",flexWrap:"wrap",alignItems:"center",padding:h-2+"px 4px",borderRadius:e.borderRadius},(0,N.Z)(n,s+"-show-search&",{cursor:"text"}),(0,N.Z)(n,s+"-disabled&",{background:e.colorBgContainerDisabled,cursor:"not-allowed"}),(0,N.Z)(n,"&:after",{display:"inline-block",width:0,margin:"2px 0",lineHeight:u+"px",content:'"\\a0"'}),n)),(0,N.Z)(a,"\n &"+s+"-show-arrow "+s+"-selector,\n &"+s+"-allow-clear "+s+"-selector\n ",{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal}),(0,N.Z)(a,s+"-selection-item",(r={position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:u,marginTop:2,marginBottom:2,lineHeight:u-2*e.lineWidth+"px",background:e.colorFillSecondary,border:e.lineWidth+"px solid "+e.colorSplit,borderRadius:e.borderRadiusSM,cursor:"default",transition:"font-size "+e.motionDurationSlow+", line-height "+e.motionDurationSlow+", height "+e.motionDurationSlow,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2},(0,N.Z)(r,s+"-disabled&",{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}),(0,N.Z)(r,"&-content",{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"}),(0,N.Z)(r,"&-remove",Zt(Zt({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"},"& &-icon":{display:"block"}}),(i={display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer"},(0,N.Z)(i,"> "+l,{verticalAlign:"-0.2em"}),(0,N.Z)(i,"&:hover",{color:e.colorIconHover}),i))),r)),(0,N.Z)(a,c+"-item + "+c+"-item",(0,N.Z)({},s+"-selection-search",{marginInlineStart:0})),(0,N.Z)(a,s+"-selection-search",(o={display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-h},(0,N.Z)(o,"\n &-input,\n &-mirror\n ",{height:u,fontFamily:e.fontFamily,lineHeight:u+"px",transition:"all "+e.motionDurationSlow}),(0,N.Z)(o,"&-input",{width:"100%",minWidth:4.1}),(0,N.Z)(o,"&-mirror",{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}),o)),(0,N.Z)(a,s+"-selection-placeholder ",{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:"all "+e.motionDurationSlow}),a))}function vI(e){var t,n=e.componentCls,i=cs(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=pI(e),o=(0,k.Z)(r,2)[1];return[gI(e),gI(i,"sm"),(0,N.Z)({},n+"-multiple"+n+"-sm",(t={},(0,N.Z)(t,n+"-selection-placeholder",{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"}),(0,N.Z)(t,n+"-selection-search",{marginInlineStart:o}),t)),gI(cs(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function mI(e,t){var n,i,r,o,a=e.componentCls,s=e.inputPaddingHorizontalBase,l=e.borderRadius,c=e.controlHeight-2*e.lineWidth,u=Math.ceil(1.25*e.fontSize),d=t?a+"-"+t:"";return(0,N.Z)({},a+"-single"+d,(o={fontSize:e.fontSize},(0,N.Z)(o,a+"-selector",Zt(Zt({},Fa(e)),(n={display:"flex",borderRadius:l},(0,N.Z)(n,a+"-selection-search",{position:"absolute",top:0,insetInlineStart:s,insetInlineEnd:s,bottom:0,"&-input":{width:"100%"}}),(0,N.Z)(n,"\n "+a+"-selection-item,\n "+a+"-selection-placeholder\n ",{padding:0,lineHeight:c+"px",transition:"all "+e.motionDurationSlow,"@supports (-moz-appearance: meterbar) &":{lineHeight:c+"px"}}),(0,N.Z)(n,a+"-selection-item",{position:"relative",userSelect:"none"}),(0,N.Z)(n,a+"-selection-placeholder",{transition:"none",pointerEvents:"none"}),(0,N.Z)(n,["&:after",a+"-selection-item:after",a+"-selection-placeholder:after"].join(","),{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}),n))),(0,N.Z)(o,"\n &"+a+"-show-arrow "+a+"-selection-item,\n &"+a+"-show-arrow "+a+"-selection-placeholder\n ",{paddingInlineEnd:u}),(0,N.Z)(o,"&"+a+"-open "+a+"-selection-item",{color:e.colorTextPlaceholder}),(0,N.Z)(o,"&:not("+a+"-customize-input)",(0,N.Z)({},a+"-selector",(i={width:"100%",height:e.controlHeight,padding:"0 "+s+"px"},(0,N.Z)(i,a+"-selection-search-input",{height:c}),(0,N.Z)(i,"&:after",{lineHeight:c+"px"}),i))),(0,N.Z)(o,"&"+a+"-customize-input",(0,N.Z)({},a+"-selector",(r={"&:after":{display:"none"}},(0,N.Z)(r,a+"-selection-search",{position:"static",width:"100%"}),(0,N.Z)(r,a+"-selection-placeholder",{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:"0 "+s+"px","&:after":{display:"none"}}),r))),o))}function yI(e){var t,n=e.componentCls,i=e.controlPaddingHorizontalSM-e.lineWidth;return[mI(e),mI(cs(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),(0,N.Z)({},n+"-single"+n+"-sm",(0,N.Z)({},"&:not("+n+"-customize-input)",(t={},(0,N.Z)(t,n+"-selection-search",{insetInlineStart:i,insetInlineEnd:i}),(0,N.Z)(t,n+"-selector",{padding:"0 "+i+"px"}),(0,N.Z)(t,"&"+n+"-show-arrow "+n+"-selection-search",{insetInlineStart:"auto",insetInlineEnd:i+1.5*e.fontSize}),(0,N.Z)(t,"\n &"+n+"-show-arrow "+n+"-selection-item,\n &"+n+"-show-arrow "+n+"-selection-placeholder\n ",{paddingInlineEnd:1.5*e.fontSize}),t))),mI(cs(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var _I=function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.componentCls,o=t.borderHoverColor,a=t.outlineColor,s=t.antCls,l=i?(0,N.Z)({},r+"-selector",{borderColor:o}):{};return(0,N.Z)({},e,(0,N.Z)({},"&:not("+r+"-disabled):not("+r+"-customize-input):not("+s+"-pagination-size-changer)",Zt(Zt({},l),(n={},(0,N.Z)(n,r+"-focused& "+r+"-selector",{borderColor:o,boxShadow:"0 0 0 "+t.controlOutlineWidth+"px "+a,borderInlineEndWidth:t.controlLineWidth+"px !important",outline:0}),(0,N.Z)(n,"&:hover "+r+"-selector",{borderColor:o,borderInlineEndWidth:t.controlLineWidth+"px !important"}),n))))},bI=function(e){var t,n,i,r=e.componentCls,o=e.inputPaddingHorizontalBase,a=e.iconCls;return i={},(0,N.Z)(i,r,Zt(Zt({},Fa(e)),(n={position:"relative",display:"inline-block",cursor:"pointer"},(0,N.Z)(n,"&:not(&-customize-input) "+r+"-selector",Zt(Zt({},function(e){var t,n,i=e.componentCls;return n={position:"relative",backgroundColor:e.colorBgContainer,border:e.lineWidth+"px "+e.lineType+" "+e.colorBorder,transition:"all "+e.motionDurationMid+" "+e.motionEaseInOut,input:{cursor:"pointer"}},(0,N.Z)(n,i+"-show-search&",{cursor:"text",input:{cursor:"auto"}}),(0,N.Z)(n,i+"-disabled&",(t={color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed"},(0,N.Z)(t,i+"-multiple&",{background:e.colorBgContainerDisabled}),(0,N.Z)(t,"input",{cursor:"not-allowed"}),t)),n}(e)),function(e){var t=e.componentCls;return(0,N.Z)({},t+"-selection-search-input",{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}})}(e))),(0,N.Z)(n,r+"-selection-item",Zt({flex:1,fontWeight:"normal"},Za)),(0,N.Z)(n,r+"-selection-placeholder",Zt(Zt({},Za),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"})),(0,N.Z)(n,r+"-arrow",Zt(Zt({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"},"& &-icon":{display:"block"}}),(t={position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextDisabled,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center"},(0,N.Z)(t,a,(0,N.Z)({verticalAlign:"top",transition:"transform "+e.motionDurationSlow,"> svg":{verticalAlign:"top"}},"&:not("+r+"-suffix)",{pointerEvents:"auto"})),(0,N.Z)(t,r+"-disabled &",{cursor:"not-allowed"}),(0,N.Z)(t,"> *:not(:last-child)",{marginInlineEnd:8}),t))),(0,N.Z)(n,r+"-clear",{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextDisabled,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:"color "+e.motionDurationMid+" ease, opacity "+e.motionDurationSlow+" ease",textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextDescription}}),(0,N.Z)(n,"&:hover",(0,N.Z)({},r+"-clear",{opacity:1})),n))),(0,N.Z)(i,r+"-has-feedback",(0,N.Z)({},r+"-clear",{insetInlineEnd:o+e.fontSize+e.paddingXXS})),i},CI=function(e){var t,n=e.componentCls;return[(0,N.Z)({},n,Zt((t={},(0,N.Z)(t,"&-borderless "+n+"-selector",{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"}),(0,N.Z)(t,"&&-in-form-item",{width:"100%"}),t),Tg(e,n,n+"-selector",n+"-focused"))),bI(e),yI(e),vI(e),fI(e),(0,N.Z)({},n+"-rtl",{direction:"rtl"}),_I(n,cs(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),_I(n+"-status-error",cs(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),_I(n+"-status-warning",cs(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0)]},SI=hs("Select",(function(e,t){var n=cs(e,{rootPrefixCls:t.rootPrefixCls,inputPaddingHorizontalBase:e.controlPaddingHorizontal-1});return[CI(n)]}),(function(e){return{zIndexPopup:e.zIndexPopupBase+50}})),wI=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},kI="SECRET_COMBOBOX_MODE_DO_NOT_USE",xI=function(e,t){var n,i,r=e.prefixCls,o=e.bordered,a=void 0===o||o,s=e.className,l=e.getPopupContainer,c=e.popupClassName,u=e.dropdownClassName,d=e.listHeight,h=void 0===d?256:d,f=e.placement,p=e.listItemHeight,g=void 0===p?24:p,m=e.size,y=e.disabled,_=e.notFoundContent,b=e.status,C=e.showArrow,S=wI(e,["prefixCls","bordered","className","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),w=v.useContext(wa),x=w.getPopupContainer,E=w.getPrefixCls,T=w.renderEmpty,I=w.direction,D=w.virtual,L=w.dropdownMatchSelectWidth,O=v.useContext(Pa),R=E("select",r),A=E(),M=tg(R,I),P=M.compactSize,Z=M.compactItemClassnames,F=SI(R),B=(0,k.Z)(F,2),H=B[0],z=B[1],j=v.useMemo((function(){var e=S.mode;if("combobox"!==e)return e===kI?"combobox":e}),[S.mode]),V="multiple"===j||"tags"===j,W=void 0!==C?C:S.loading||!(V||"combobox"===j),U=(0,v.useContext)(Sl),G=U.status,K=U.hasFeedback,Y=U.isFormItemInput,q=U.feedbackIcon,$=jm(G,b);i=void 0!==_?_:"combobox"===j?null:(T||sI)("Select");var X=dI(Zt(Zt({},S),{multiple:V,hasFeedback:K,feedbackIcon:q,showArrow:W,prefixCls:R})),Q=X.suffixIcon,J=X.itemIcon,ee=X.removeIcon,te=X.clearIcon,ne=ns(S,["suffixIcon","itemIcon"]),ie=Ja()(c||u,(0,N.Z)({},R+"-dropdown-"+I,"rtl"===I),z),re=P||m||O,oe=v.useContext(Ia),ae=null!==y&&void 0!==y?y:oe,se=Ja()((n={},(0,N.Z)(n,R+"-lg","large"===re),(0,N.Z)(n,R+"-sm","small"===re),(0,N.Z)(n,R+"-rtl","rtl"===I),(0,N.Z)(n,R+"-borderless",!a),(0,N.Z)(n,R+"-in-form-item",Y),n),zm(R,$,K),Z,s,z);return H(v.createElement(XN,Zt({ref:t,virtual:D,dropdownMatchSelectWidth:L},ne,{transitionName:Lc(A,Dc(f),S.transitionName),listHeight:h,listItemHeight:g,mode:j,prefixCls:R,placement:void 0!==f?f:"rtl"===I?"bottomRight":"bottomLeft",direction:I,inputIcon:Q,menuItemSelectedIcon:J,removeIcon:ee,clearIcon:te,notFoundContent:i,className:se,getPopupContainer:l||x,dropdownClassName:ie,showArrow:K||C,disabled:ae})))},EI=v.forwardRef(xI),TI=SC(EI);EI.SECRET_COMBOBOX_MODE_DO_NOT_USE=kI,EI.Option=kN,EI.OptGroup=SN,EI._InternalPanelDoNotUseOrYouWillBeFired=TI;var NI=EI;var II=function(e){return null};var DI=function(e){return null};function LI(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function OI(e,t){if(!t&&"number"!==typeof t)return e;for(var n=LI(t),i=e,r=0;r<n.length;r+=1){if(!i)return null;i=i[n[r]]}return i}function RI(e){var t=[],n={};return e.forEach((function(e){for(var i=e||{},r=i.key,o=i.dataIndex,a=r||LI(o).join("-")||"RC_TABLE_KEY";n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)})),t}function AI(e){return null!==e&&void 0!==e}var MI=v.createContext(!1);var PI=function(){var e=v.createContext(null);return{Context:e,Provider:function(t){var n=t.value,i=t.children,r=v.useRef(n);r.current=n;var o=v.useState((function(){return{getValue:function(){return r.current},listeners:new Set}})),a=(0,k.Z)(o,1)[0];return ju((function(){a.listeners.forEach((function(e){e(n)}))}),[n]),v.createElement(e.Provider,{value:a},i)}}}(),ZI=PI,FI=v.createContext(null),BI=v.createContext({renderWithProps:!1}),HI=["colSpan","rowSpan","style","className"];function zI(e){return"string"===typeof e||Dl(e)}function jI(e,t){var n,i,r,o=e.prefixCls,a=e.className,s=e.record,l=e.index,c=e.renderIndex,u=e.dataIndex,d=e.render,h=e.children,f=e.component,p=void 0===f?"td":f,g=e.colSpan,m=e.rowSpan,y=e.fixLeft,_=e.fixRight,b=e.firstFixLeft,C=e.lastFixLeft,S=e.firstFixRight,w=e.lastFixRight,x=e.appendNode,E=e.additionalProps,T=void 0===E?{}:E,I=e.ellipsis,D=e.align,L=e.rowType,O=e.isSticky,R=e.hovering,A=e.onHover,M="".concat(o,"-cell"),P=v.useContext(BI),Z=v.useContext(MI),F=v.useContext(FI).allColumnsFixedLeft,B=v.useMemo((function(){if(AI(h))return[h];var e=OI(s,u),t=e,n=void 0;if(d){var i=d(e,s,c);!function(e){return e&&"object"===(0,Bt.Z)(e)&&!Array.isArray(e)&&!v.isValidElement(e)}(i)?t=i:(t=i.children,n=i.props,P.renderWithProps=!0)}return[t,n]}),[P.renderWithProps?Math.random():0,h,u,P,s,d,c]),H=(0,k.Z)(B,2),z=H[0],j=H[1],V=z;"object"!==(0,Bt.Z)(V)||Array.isArray(V)||v.isValidElement(V)||(V=null),I&&(C||S)&&(V=v.createElement("span",{className:"".concat(M,"-content")},V));var W=j||{},U=W.colSpan,G=W.rowSpan,K=W.style,Y=W.className,q=Ai(W,HI),$=null!==(n=void 0!==U?U:g)&&void 0!==n?n:1,X=null!==(i=void 0!==G?G:m)&&void 0!==i?i:1;if(0===$||0===X)return null;var Q={},J="number"===typeof y&&Z,ee="number"===typeof _&&Z;J&&(Q.position="sticky",Q.left=y),ee&&(Q.position="sticky",Q.right=_);var te={};D&&(te.textAlign=D);var ne=function(e){var t,n=e.ellipsis,i=e.rowType,r=e.children,o=!0===n?{showTitle:!0}:n;return o&&(o.showTitle||"header"===i)&&("string"===typeof r||"number"===typeof r?t=r.toString():v.isValidElement(r)&&"string"===typeof r.props.children&&(t=r.props.children)),t}({rowType:L,ellipsis:I,children:z}),ie=(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({title:ne},q),T),{},{colSpan:1!==$?$:null,rowSpan:1!==X?X:null,className:Ja()(M,a,(r={},(0,N.Z)(r,"".concat(M,"-fix-left"),J&&Z),(0,N.Z)(r,"".concat(M,"-fix-left-first"),b&&Z),(0,N.Z)(r,"".concat(M,"-fix-left-last"),C&&Z),(0,N.Z)(r,"".concat(M,"-fix-left-all"),C&&F&&Z),(0,N.Z)(r,"".concat(M,"-fix-right"),ee&&Z),(0,N.Z)(r,"".concat(M,"-fix-right-first"),S&&Z),(0,N.Z)(r,"".concat(M,"-fix-right-last"),w&&Z),(0,N.Z)(r,"".concat(M,"-ellipsis"),I),(0,N.Z)(r,"".concat(M,"-with-append"),x),(0,N.Z)(r,"".concat(M,"-fix-sticky"),(J||ee)&&O&&Z),(0,N.Z)(r,"".concat(M,"-row-hover"),!j&&R),r),T.className,Y),style:(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},T.style),te),Q),K),onMouseEnter:function(e){var t;s&&A(l,l+X-1),null===T||void 0===T||null===(t=T.onMouseEnter)||void 0===t||t.call(T,e)},onMouseLeave:function(e){var t;s&&A(-1,-1),null===T||void 0===T||null===(t=T.onMouseLeave)||void 0===t||t.call(T,e)},ref:zI(p)?t:null});return v.createElement(p,ie,x,V)}var VI=v.forwardRef(jI);VI.displayName="Cell";var WI=["expanded","className","hovering"],UI=v.memo(VI,(function(e,t){return t.shouldCellUpdate?WI.every((function(n){return e[n]===t[n]}))&&!t.shouldCellUpdate(t.record,e.record):La()(e,t)})),GI=v.forwardRef((function(e,t){var n=e.index,i=e.additionalProps,r=void 0===i?{}:i,o=e.colSpan,a=e.rowSpan,s=r.colSpan,l=r.rowSpan,c=null!==o&&void 0!==o?o:s,u=null!==a&&void 0!==a?a:l,d=function(e,t){var n=bf(t),i=v.useContext(null===e||void 0===e?void 0:e.Context),r=i||{},o=r.listeners,a=r.getValue,s=v.useState((function(){return n(i?a():null)})),l=(0,k.Z)(s,2),c=l[0],u=l[1];return ju((function(){if(i)return o.add(e),function(){o.delete(e)};function e(e){u((function(t){var i=n(e);return La()(t,i)?t:i}))}}),[i]),c}(ZI,(function(e){var t=function(e,t,n,i){return e<=i&&e+t-1>=n}(n,u||1,null===e||void 0===e?void 0:e.startRow,null===e||void 0===e?void 0:e.endRow);return{onHover:null===e||void 0===e?void 0:e.onHover,hovering:t}})),h=d.onHover,f=d.hovering;return v.createElement(UI,Zt({},e,{colSpan:c,rowSpan:u,hovering:f,ref:t,onHover:h}))}));GI.displayName="WrappedCell";var KI=GI,YI=v.createContext(null);function qI(e,t,n,i,r){var o,a,s=n[e]||{},l=n[t]||{};"left"===s.fixed?o=i.left[e]:"right"===l.fixed&&(a=i.right[t]);var c=!1,u=!1,d=!1,h=!1,f=n[t+1],p=n[e-1];if("rtl"===r){if(void 0!==o)h=!(p&&"left"===p.fixed);else if(void 0!==a){d=!(f&&"right"===f.fixed)}}else if(void 0!==o){c=!(f&&"left"===f.fixed)}else if(void 0!==a){u=!(p&&"right"===p.fixed)}return{fixLeft:o,fixRight:a,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:h,isSticky:i.isSticky}}function $I(e){var t,n=e.cells,i=e.stickyOffsets,r=e.flattenColumns,o=e.rowComponent,a=e.cellComponent,s=e.onHeaderRow,l=e.index,c=v.useContext(YI),u=c.prefixCls,d=c.direction;s&&(t=s(n.map((function(e){return e.column})),l));var h=RI(n.map((function(e){return e.column})));return v.createElement(o,t,n.map((function(e,t){var n,o=e.column,s=qI(e.colStart,e.colEnd,r,i,d);return o&&o.onHeaderCell&&(n=e.column.onHeaderCell(o)),v.createElement(KI,Zt({},e,{ellipsis:o.ellipsis,align:o.align,component:a,prefixCls:u,key:h[t]},s,{additionalProps:n,rowType:"header"}))})))}$I.displayName="HeaderRow";var XI=$I;var QI=function(e){var t=e.stickyOffsets,n=e.columns,i=e.flattenColumns,r=e.onHeaderRow,o=v.useContext(YI),a=o.prefixCls,s=o.getComponent,l=v.useMemo((function(){return function(e){var t=[];!function e(n,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var o=i,a=n.filter(Boolean).map((function(n){var i={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,s=n.children;return s&&s.length>0&&(a=e(s,o,r+1).reduce((function(e,t){return e+t}),0),i.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(i.rowSpan=n.rowSpan),i.colSpan=a,i.colEnd=i.colStart+a-1,t[r].push(i),o+=a,a}));return a}(e,0);for(var n=t.length,i=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},r=0;r<n;r+=1)i(r);return t}(n)}),[n]),c=s(["header","wrapper"],"thead"),u=s(["header","row"],"tr"),d=s(["header","cell"],"th");return v.createElement(c,{className:"".concat(a,"-thead")},l.map((function(e,n){return v.createElement(XI,{key:n,flattenColumns:i,cells:e,stickyOffsets:t,rowComponent:u,cellComponent:d,onHeaderRow:r,index:n})})))},JI=v.createContext(null);var eD=function(e){var t=e.prefixCls,n=e.children,i=e.component,r=e.cellComponent,o=e.className,a=e.expanded,s=e.colSpan,l=e.isEmpty,c=v.useContext(YI).scrollbarSize,u=v.useContext(JI),d=u.fixHeader,h=u.fixColumn,f=u.componentWidth,p=u.horizonScroll;return v.useMemo((function(){var e=n;return(l?p:h)&&(e=v.createElement("div",{style:{width:f-(d?c:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},0!==f&&e)),v.createElement(i,{className:o,style:{display:a?null:"none"}},v.createElement(KI,{component:r,prefixCls:t,colSpan:s},e))}),[n,i,o,a,s,l,c,f,h,d,p])},tD=v.createContext(null);function nD(e){var t=e.className,n=e.style,i=e.record,r=e.index,o=e.renderIndex,a=e.rowKey,s=e.rowExpandable,l=e.expandedKeys,c=e.onRow,u=e.indent,d=void 0===u?0:u,h=e.rowComponent,f=e.cellComponent,p=e.childrenColumnName,g=v.useContext(YI),m=g.prefixCls,y=g.fixedInfoList,_=v.useContext(FI),b=_.flattenColumns,C=_.expandableType,S=_.expandRowByClick,w=_.onTriggerExpand,x=_.rowClassName,E=_.expandedRowClassName,T=_.indentSize,N=_.expandIcon,I=_.expandedRowRender,D=_.expandIconColumnIndex,L=v.useState(!1),O=(0,k.Z)(L,2),R=O[0],A=O[1],M=l&&l.has(e.recordKey);v.useEffect((function(){M&&A(!0)}),[M]);var P="row"===C&&(!s||s(i)),Z="nest"===C,F=p&&i&&i[p],B=P||Z,H=v.useRef(w);H.current=w;var z,j=function(){H.current.apply(H,arguments)},V=null===c||void 0===c?void 0:c(i,r);"string"===typeof x?z=x:"function"===typeof x&&(z=x(i,r,d));var W,U=RI(b),G=v.createElement(h,Zt({},V,{"data-row-key":a,className:Ja()(t,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(d),z,V&&V.className),style:(0,Ft.Z)((0,Ft.Z)({},n),V?V.style:null),onClick:function(e){var t;S&&B&&j(i,e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===V||void 0===V||null===(t=V.onClick)||void 0===t||t.call.apply(t,[V,e].concat(r))}}),b.map((function(e,t){var n,a,s=e.render,l=e.dataIndex,c=e.className,u=U[t],h=y[t];return t===(D||0)&&Z&&(n=v.createElement(v.Fragment,null,v.createElement("span",{style:{paddingLeft:"".concat(T*d,"px")},className:"".concat(m,"-row-indent indent-level-").concat(d)}),N({prefixCls:m,expanded:M,expandable:F,record:i,onExpand:j}))),e.onCell&&(a=e.onCell(i,r)),v.createElement(KI,Zt({className:c,ellipsis:e.ellipsis,align:e.align,component:f,prefixCls:m,key:u,record:i,index:r,renderIndex:o,dataIndex:l,render:s,shouldCellUpdate:e.shouldCellUpdate,expanded:n&&M},h,{appendNode:n,additionalProps:a}))})));if(P&&(R||M)){var K=I(i,r,d+1,M),Y=E&&E(i,r,d);W=v.createElement(eD,{expanded:M,className:Ja()("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(d+1),Y),prefixCls:m,component:h,cellComponent:f,colSpan:b.length,isEmpty:!1},K)}return v.createElement(v.Fragment,null,G,W)}nD.displayName="BodyRow";var iD=nD;function rD(e,t,n,i,r,o){var a=[];a.push({record:e,indent:t,index:o});var s=r(e),l=null===i||void 0===i?void 0:i.has(s);if(e&&Array.isArray(e[n])&&l)for(var c=0;c<e[n].length;c+=1){var u=rD(e[n][c],t+1,n,i,r,c);a.push.apply(a,(0,_.Z)(u))}return a}function oD(e){var t=e.columnKey,n=e.onColumnResize,i=v.useRef();return v.useEffect((function(){i.current&&n(t,i.current.offsetWidth)}),[]),v.createElement(yy,{data:t},v.createElement("td",{ref:i,style:{padding:0,border:0,height:0}},v.createElement("div",{style:{height:0,overflow:"hidden"}},"\xa0")))}function aD(e){var t=e.prefixCls,n=e.columnsKey,i=e.onColumnResize;return v.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},v.createElement(yy.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;i(t,n.offsetWidth)}))}},n.map((function(e){return v.createElement(oD,{key:e,columnKey:e,onColumnResize:i})}))))}function sD(e){var t=e.data,n=e.getRowKey,i=e.measureColumnWidth,r=e.expandedKeys,o=e.onRow,a=e.rowExpandable,s=e.emptyNode,l=e.childrenColumnName,c=v.useContext(tD).onColumnResize,u=v.useContext(YI),d=u.prefixCls,h=u.getComponent,f=v.useContext(FI).flattenColumns,p=function(e,t,n,i){var r=v.useMemo((function(){if(null===n||void 0===n?void 0:n.size){for(var r=[],o=0;o<(null===e||void 0===e?void 0:e.length);o+=1){var a=e[o];r.push.apply(r,(0,_.Z)(rD(a,0,t,n,i,o)))}return r}return null===e||void 0===e?void 0:e.map((function(e,t){return{record:e,indent:0,index:t}}))}),[e,t,n,i]);return r}(t,l,r,n),g=v.useRef({renderWithProps:!1}),m=v.useState(-1),y=(0,k.Z)(m,2),b=y[0],C=y[1],S=v.useState(-1),w=(0,k.Z)(S,2),x=w[0],E=w[1],T=v.useCallback((function(e,t){C(e),E(t)}),[]),N=v.useMemo((function(){var e,u=h(["body","wrapper"],"tbody"),g=h(["body","row"],"tr"),m=h(["body","cell"],"td");e=t.length?p.map((function(e,t){var i=e.record,s=e.indent,c=e.index,u=n(i,t);return v.createElement(iD,{key:u,rowKey:u,record:i,recordKey:u,index:t,renderIndex:c,rowComponent:g,cellComponent:m,expandedKeys:r,onRow:o,getRowKey:n,rowExpandable:a,childrenColumnName:l,indent:s})})):v.createElement(eD,{expanded:!0,className:"".concat(d,"-placeholder"),prefixCls:d,component:g,cellComponent:m,colSpan:f.length,isEmpty:!0},s);var y=RI(f);return v.createElement(u,{className:"".concat(d,"-tbody")},i&&v.createElement(aD,{prefixCls:d,columnsKey:y,onColumnResize:c}),e)}),[t,d,o,i,r,n,h,s,f,l,c,a,p]);return v.createElement(BI.Provider,{value:g.current},v.createElement(ZI.Provider,{value:{startRow:b,endRow:x,onHover:T}},N))}var lD=v.memo(sD);lD.displayName="Body";var cD=lD,uD=["expandable"],dD="RC_TABLE_INTERNAL_COL_DEFINE";var hD={},fD=["children"],pD=["fixed"];function gD(e){return Zi(e).filter((function(e){return v.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,i=n.children,r=Ai(n,fD),o=(0,Ft.Z)({key:t},r);return i&&(o.children=gD(i)),o}))}function vD(e){return e.reduce((function(e,t){var n=t.fixed,i=!0===n?"left":n,r=t.children;return r&&r.length>0?[].concat((0,_.Z)(e),(0,_.Z)(vD(r).map((function(e){return(0,Ft.Z)({fixed:i},e)})))):[].concat((0,_.Z)(e),[(0,Ft.Z)((0,Ft.Z)({},t),{},{fixed:i})])}),[])}var mD=function(e,t){var n=e.prefixCls,i=e.columns,r=e.children,o=e.expandable,a=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,d=e.rowExpandable,h=e.expandIconColumnIndex,f=e.direction,p=e.expandRowByClick,g=e.columnWidth,m=e.fixed,y=v.useMemo((function(){return i||gD(r)}),[i,r]),_=v.useMemo((function(){if(o){var e,t=y.slice();if(!t.includes(hD)){var i=h||0;i>=0&&t.splice(i,0,hD)}0;var r=t.indexOf(hD);t=t.filter((function(e,t){return e!==hD||t===r}));var f,_=y[r];f="left"!==m&&!m||h?"right"!==m&&!m||h!==y.length?_?_.fixed:null:"right":"left";var b=(e={},(0,N.Z)(e,dD,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,N.Z)(e,"title",s),(0,N.Z)(e,"fixed",f),(0,N.Z)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,N.Z)(e,"width",g),(0,N.Z)(e,"render",(function(e,t,i){var r=l(t,i),o=a.has(r),s=!d||d(t),h=u({prefixCls:n,expanded:o,expandable:s,record:t,onExpand:c});return p?v.createElement("span",{onClick:function(e){return e.stopPropagation()}},h):h})),e);return t.map((function(e){return e===hD?b:e}))}return y.filter((function(e){return e!==hD}))}),[o,y,l,a,u,f]),b=v.useMemo((function(){var e=_;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,_,f]),C=v.useMemo((function(){return"rtl"===f?function(e){return e.map((function(e){var t=e.fixed,n=Ai(e,pD),i=t;return"left"===t?i="right":"right"===t&&(i="left"),(0,Ft.Z)({fixed:i},n)}))}(vD(b)):vD(b)}),[b,f]);return[b,C]};function yD(e){var t=(0,v.useRef)(e),n=(0,v.useState)({}),i=(0,k.Z)(n,2)[1],r=(0,v.useRef)(null),o=(0,v.useRef)([]);return(0,v.useEffect)((function(){return function(){r.current=null}}),[]),[t.current,function(e){o.current.push(e);var n=Promise.resolve();r.current=n,n.then((function(){if(r.current===n){var e=o.current,a=t.current;o.current=[],e.forEach((function(e){t.current=e(t.current)})),r.current=null,a!==t.current&&i({})}}))}]}var _D=function(e,t,n){var i=(0,v.useMemo)((function(){for(var i=[],r=[],o=0,a=0,s=0;s<t;s+=1)if("rtl"===n){r[s]=a,a+=e[s]||0;var l=t-s-1;i[l]=o,o+=e[l]||0}else{i[s]=o,o+=e[s]||0;var c=t-s-1;r[c]=a,a+=e[c]||0}return{left:i,right:r}}),[e,t,n]);return i},bD=["columnType"];var CD=function(e){for(var t=e.colWidths,n=e.columns,i=[],r=!1,o=(e.columCount||n.length)-1;o>=0;o-=1){var a=t[o],s=n&&n[o],l=s&&s[dD];if(a||l||r){var c=l||{},u=(c.columnType,Ai(c,bD));i.unshift(v.createElement("col",Zt({key:o,style:{width:a}},u))),r=!0}}return v.createElement("colgroup",null,i)};var SD=function(e){var t=e.className,n=e.children;return v.createElement("div",{className:t},n)},wD=v.createContext({});var kD=["children"];function xD(e){return e.children}xD.Row=function(e){var t=e.children,n=Ai(e,kD);return v.createElement("tr",n,t)},xD.Cell=function(e){var t=e.className,n=e.index,i=e.children,r=e.colSpan,o=void 0===r?1:r,a=e.rowSpan,s=e.align,l=v.useContext(YI),c=l.prefixCls,u=l.direction,d=v.useContext(wD),h=d.scrollColumnIndex,f=d.stickyOffsets,p=n+o-1+1===h?o+1:o,g=qI(n,n+p-1,d.flattenColumns,f,u);return v.createElement(KI,Zt({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:p,rowSpan:a,render:function(){return i}},g))};var ED=xD;var TD=function(e){var t=e.children,n=e.stickyOffsets,i=e.flattenColumns,r=v.useContext(YI).prefixCls,o=i.length-1,a=i[o],s=v.useMemo((function(){return{stickyOffsets:n,flattenColumns:i,scrollColumnIndex:(null===a||void 0===a?void 0:a.scrollbar)?o:null}}),[a,i,o,n]);return v.createElement(wD.Provider,{value:s},v.createElement("tfoot",{className:"".concat(r,"-summary")},t))},ND=ED;function ID(e){var t,n=e.prefixCls,i=e.record,r=e.onExpand,o=e.expanded,a=e.expandable,s="".concat(n,"-row-expand-icon");if(!a)return v.createElement("span",{className:Ja()(s,"".concat(n,"-row-spaced"))});return v.createElement("span",{className:Ja()(s,(t={},(0,N.Z)(t,"".concat(n,"-row-expanded"),o),(0,N.Z)(t,"".concat(n,"-row-collapsed"),!o),t)),onClick:function(e){r(i,e),e.stopPropagation()}})}function DD(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var LD=function(e,t){var n,i,r=e.scrollBodyRef,o=e.onScroll,a=e.offsetScroll,s=e.container,l=v.useContext(YI).prefixCls,c=(null===(n=r.current)||void 0===n?void 0:n.scrollWidth)||0,u=(null===(i=r.current)||void 0===i?void 0:i.clientWidth)||0,d=c&&u*(u/c),h=v.useRef(),f=yD({scrollLeft:0,isHiddenScrollBar:!1}),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=v.useRef({delta:0,x:0}),_=v.useState(!1),b=(0,k.Z)(_,2),C=b[0],S=b[1],w=function(){S(!1)},x=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(C&&0!==n){var i=y.current.x+e.pageX-y.current.x-y.current.delta;i<=0&&(i=0),i+d>=u&&(i=u-d),o({scrollLeft:i/u*(c+2)}),y.current.x=e.pageX}else C&&S(!1)},E=function(){if(r.current){var e=DD(r.current).top,t=e+r.current.offsetHeight,n=s===window?document.documentElement.scrollTop+window.innerHeight:DD(s).top+s.clientHeight;t-ov()<=n||e>=n-a?m((function(e){return(0,Ft.Z)((0,Ft.Z)({},e),{},{isHiddenScrollBar:!0})})):m((function(e){return(0,Ft.Z)((0,Ft.Z)({},e),{},{isHiddenScrollBar:!1})}))}},T=function(e){m((function(t){return(0,Ft.Z)((0,Ft.Z)({},t),{},{scrollLeft:e/c*u||0})}))};return v.useImperativeHandle(t,(function(){return{setScrollLeft:T}})),v.useEffect((function(){var e=gd(document.body,"mouseup",w,!1),t=gd(document.body,"mousemove",x,!1);return E(),function(){e.remove(),t.remove()}}),[d,C]),v.useEffect((function(){var e=gd(s,"scroll",E,!1),t=gd(window,"resize",E,!1);return function(){e.remove(),t.remove()}}),[s]),v.useEffect((function(){g.isHiddenScrollBar||m((function(e){var t=r.current;return t?(0,Ft.Z)((0,Ft.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[g.isHiddenScrollBar]),c<=u||!d||g.isHiddenScrollBar?null:v.createElement("div",{style:{height:ov(),width:u,bottom:a},className:"".concat(l,"-sticky-scroll")},v.createElement("div",{onMouseDown:function(e){e.persist(),y.current.delta=e.pageX-g.scrollLeft,y.current.x=0,S(!0),e.preventDefault()},ref:h,className:Ja()("".concat(l,"-sticky-scroll-bar"),(0,N.Z)({},"".concat(l,"-sticky-scroll-bar-active"),C)),style:{width:"".concat(d,"px"),transform:"translate3d(".concat(g.scrollLeft,"px, 0, 0)")}}))},OD=v.forwardRef(LD),RD=Ht()?window:null;var AD=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var MD=v.forwardRef((function(e,t){var n=e.className,i=e.noData,r=e.columns,o=e.flattenColumns,a=e.colWidths,s=e.columCount,l=e.stickyOffsets,c=e.direction,u=e.fixHeader,d=e.stickyTopOffset,h=e.stickyBottomOffset,f=e.stickyClassName,p=e.onScroll,g=e.maxContentScroll,m=e.children,y=Ai(e,AD),b=v.useContext(YI),C=b.prefixCls,S=b.scrollbarSize,w=b.isSticky,k=w&&!u?0:S,x=v.useRef(null),E=v.useCallback((function(e){Tl(t,e),Tl(x,e)}),[]);v.useEffect((function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(p({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=x.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=x.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var T=v.useMemo((function(){return o.every((function(e){return e.width>=0}))}),[o]),I=o[o.length-1],D={fixed:I?I.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},L=(0,v.useMemo)((function(){return k?[].concat((0,_.Z)(r),[D]):r}),[k,r]),O=(0,v.useMemo)((function(){return k?[].concat((0,_.Z)(o),[D]):o}),[k,o]),R=(0,v.useMemo)((function(){var e=l.right,t=l.left;return(0,Ft.Z)((0,Ft.Z)({},l),{},{left:"rtl"===c?[].concat((0,_.Z)(t.map((function(e){return e+k}))),[0]):t,right:"rtl"===c?e:[].concat((0,_.Z)(e.map((function(e){return e+k}))),[0]),isSticky:w})}),[k,l,w]),A=function(e,t){return(0,v.useMemo)((function(){for(var n=[],i=0;i<t;i+=1){var r=e[i];if(void 0===r)return null;n[i]=r}return n}),[e.join("_"),t])}(a,s);return v.createElement("div",{style:(0,Ft.Z)({overflow:"hidden"},w?{top:d,bottom:h}:{}),ref:E,className:Ja()(n,(0,N.Z)({},f,!!f))},v.createElement("table",{style:{tableLayout:"fixed",visibility:i||A?null:"hidden"}},(!i||!g||T)&&v.createElement(CD,{colWidths:A?[].concat((0,_.Z)(A),[k]):[],columCount:s+1,columns:O}),m((0,Ft.Z)((0,Ft.Z)({},y),{},{stickyOffsets:R,columns:L,flattenColumns:O}))))}));MD.displayName="FixedHolder";var PD=MD,ZD=[],FD={},BD="rc-table-internal-hook",HD=v.memo((function(e){return e.children}),(function(e,t){return!!La()(e.props,t.props)&&(e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight)}));function zD(e){var t,n=e.prefixCls,i=e.className,r=e.rowClassName,o=e.style,a=e.data,s=e.rowKey,l=e.scroll,c=e.tableLayout,u=e.direction,d=e.title,h=e.footer,f=e.summary,p=e.id,g=e.showHeader,m=e.components,y=e.emptyText,b=e.onRow,C=e.onHeaderRow,S=e.internalHooks,w=e.transformColumns,x=e.internalRefs,E=e.sticky,T=a||ZD,I=!!T.length;var D=v.useCallback((function(e,t){return OI(m||{},e)||t}),[m]),L=v.useMemo((function(){return"function"===typeof s?s:function(e){return e&&e[s]}}),[s]),O=function(e){var t,n=e.expandable,i=Ai(e,uD);return!1===(t="expandable"in e?(0,Ft.Z)((0,Ft.Z)({},i),n):i).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),R=O.expandIcon,A=O.expandedRowKeys,M=O.defaultExpandedRowKeys,P=O.defaultExpandAllRows,Z=O.expandedRowRender,F=O.columnTitle,B=O.onExpand,H=O.onExpandedRowsChange,z=O.expandRowByClick,j=O.rowExpandable,V=O.expandIconColumnIndex,W=O.expandedRowClassName,U=O.childrenColumnName,G=O.indentSize,K=R||ID,Y=U||"children",q=v.useMemo((function(){return Z?"row":!!(e.expandable&&S===BD&&e.expandable.__PARENT_RENDER_ICON__||T.some((function(e){return e&&"object"===(0,Bt.Z)(e)&&e[Y]})))&&"nest"}),[!!Z,T]),$=v.useState((function(){return M||(P?function(e,t,n){var i=[];return function e(r){(r||[]).forEach((function(r,o){i.push(t(r,o)),e(r[n])}))}(e),i}(T,L,Y):[])})),X=(0,k.Z)($,2),Q=X[0],J=X[1],ee=v.useMemo((function(){return new Set(A||Q||[])}),[A,Q]),te=v.useCallback((function(e){var t,n=L(e,T.indexOf(e)),i=ee.has(n);i?(ee.delete(n),t=(0,_.Z)(ee)):t=[].concat((0,_.Z)(ee),[n]),J(t),B&&B(!i,e),H&&H(t)}),[L,ee,T,B,H]);var ne,ie,re,oe=v.useState(0),ae=(0,k.Z)(oe,2),se=ae[0],le=ae[1],ce=mD((0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},e),O),{},{expandable:!!Z,columnTitle:F,expandedKeys:ee,getRowKey:L,onTriggerExpand:te,expandIcon:K,expandIconColumnIndex:V,direction:u}),S===BD?w:null),ue=(0,k.Z)(ce,2),de=ue[0],he=ue[1],fe=v.useMemo((function(){return{columns:de,flattenColumns:he}}),[de,he]),pe=v.useRef(),ge=v.useRef(),ve=v.useRef(),me=v.useRef(),ye=v.useRef(),_e=v.useState(!1),be=(0,k.Z)(_e,2),Ce=be[0],Se=be[1],we=v.useState(!1),ke=(0,k.Z)(we,2),xe=ke[0],Ee=ke[1],Te=yD(new Map),Ne=(0,k.Z)(Te,2),Ie=Ne[0],De=Ne[1],Le=RI(he).map((function(e){return Ie.get(e)})),Oe=v.useMemo((function(){return Le}),[Le.join("_")]),Re=_D(Oe,he.length,u),Ae=l&&AI(l.y),Me=l&&AI(l.x)||Boolean(O.fixed),Pe=Me&&he.some((function(e){return e.fixed})),Ze=v.useRef(),Fe=function(e,t){var n="object"===(0,Bt.Z)(e)?e:{},i=n.offsetHeader,r=void 0===i?0:i,o=n.offsetSummary,a=void 0===o?0:o,s=n.offsetScroll,l=void 0===s?0:s,c=n.getContainer,u=(void 0===c?function(){return RD}:c)()||RD;return v.useMemo((function(){var n=!!e;return{isSticky:n,stickyClassName:n?"".concat(t,"-sticky-holder"):"",offsetHeader:r,offsetSummary:a,offsetScroll:l,container:u}}),[l,r,a,t,u])}(E,n),Be=Fe.isSticky,He=Fe.offsetHeader,ze=Fe.offsetSummary,je=Fe.offsetScroll,Ve=Fe.stickyClassName,We=Fe.container,Ue=null===f||void 0===f?void 0:f(T),Ge=(Ae||Be)&&v.isValidElement(Ue)&&Ue.type===ED&&Ue.props.fixed;Ae&&(ie={overflowY:"scroll",maxHeight:l.y}),Me&&(ne={overflowX:"auto"},Ae||(ie={overflowY:"hidden"}),re={width:!0===(null===l||void 0===l?void 0:l.x)?"auto":null===l||void 0===l?void 0:l.x,minWidth:"100%"});var Ke=v.useCallback((function(e,t){wd(pe.current)&&De((function(n){if(n.get(e)!==t){var i=new Map(n);return i.set(e,t),i}return n}))}),[]),Ye=function(e){var t=(0,v.useRef)(e||null),n=(0,v.useRef)();function i(){window.clearTimeout(n.current)}return(0,v.useEffect)((function(){return i}),[]),[function(e){t.current=e,i(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),qe=(0,k.Z)(Ye,2),$e=qe[0],Xe=qe[1];function Qe(e,t){t&&("function"===typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e))}var Je=function(e){var t,n=e.currentTarget,i=e.scrollLeft,r="rtl"===u,o="number"===typeof i?i:n.scrollLeft,a=n||FD;Xe()&&Xe()!==a||($e(a),Qe(o,ge.current),Qe(o,ve.current),Qe(o,ye.current),Qe(o,null===(t=Ze.current)||void 0===t?void 0:t.setScrollLeft));if(n){var s=n.scrollWidth,l=n.clientWidth;if(s===l)return Se(!1),void Ee(!1);r?(Se(-o<s-l),Ee(-o>0)):(Se(o>0),Ee(o<s-l))}},et=function(){Me&&ve.current?Je({currentTarget:ve.current}):(Se(!1),Ee(!1))},tt=v.useRef(!1);v.useEffect((function(){tt.current&&et()}),[Me,a,de.length]),v.useEffect((function(){tt.current=!0}),[]);var nt=v.useState(0),it=(0,k.Z)(nt,2),rt=it[0],ot=it[1],at=v.useState(!0),st=(0,k.Z)(at,2),lt=st[0],ct=st[1];v.useEffect((function(){ve.current instanceof Element?ot(sv(ve.current).width):ot(sv(me.current).width),ct(Tx("position","sticky"))}),[]),v.useEffect((function(){S===BD&&x&&(x.body.current=ve.current)}));var ut,dt=D(["table"],"table"),ht=v.useMemo((function(){return c||(Pe?"max-content"===(null===l||void 0===l?void 0:l.x)?"auto":"fixed":Ae||Be||he.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[Ae,Pe,he,c,Be]),ft={colWidths:Oe,columCount:he.length,stickyOffsets:Re,onHeaderRow:C,fixHeader:Ae,scroll:l},pt=v.useMemo((function(){return I?null:"function"===typeof y?y():y}),[I,y]),gt=v.createElement(cD,{data:T,measureColumnWidth:Ae||Me||Be,expandedKeys:ee,rowExpandable:j,getRowKey:L,onRow:b,emptyNode:pt,childrenColumnName:Y}),vt=v.createElement(CD,{colWidths:he.map((function(e){return e.width})),columns:he}),mt=D(["body"]);if(Ae||Be){var yt;"function"===typeof mt?(yt=mt(T,{scrollbarSize:rt,ref:ve,onScroll:Je}),ft.colWidths=he.map((function(e,t){var n=e.width,i=t===de.length-1?n-rt:n;return"number"!==typeof i||Number.isNaN(i)?(li(!1,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):i}))):yt=v.createElement("div",{style:(0,Ft.Z)((0,Ft.Z)({},ne),ie),onScroll:Je,ref:ve,className:Ja()("".concat(n,"-body"))},v.createElement(dt,{style:(0,Ft.Z)((0,Ft.Z)({},re),{},{tableLayout:ht})},vt,gt,!Ge&&Ue&&v.createElement(TD,{stickyOffsets:Re,flattenColumns:he},Ue)));var _t=(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({noData:!T.length,maxContentScroll:Me&&"max-content"===l.x},ft),fe),{},{direction:u,stickyClassName:Ve,onScroll:Je});ut=v.createElement(v.Fragment,null,!1!==g&&v.createElement(PD,Zt({},_t,{stickyTopOffset:He,className:"".concat(n,"-header"),ref:ge}),(function(e){return v.createElement(v.Fragment,null,v.createElement(QI,e),"top"===Ge&&v.createElement(TD,e,Ue))})),yt,Ge&&"top"!==Ge&&v.createElement(PD,Zt({},_t,{stickyBottomOffset:ze,className:"".concat(n,"-summary"),ref:ye}),(function(e){return v.createElement(TD,e,Ue)})),Be&&v.createElement(OD,{ref:Ze,offsetScroll:je,scrollBodyRef:ve,onScroll:Je,container:We}))}else ut=v.createElement("div",{style:(0,Ft.Z)((0,Ft.Z)({},ne),ie),className:Ja()("".concat(n,"-content")),onScroll:Je,ref:ve},v.createElement(dt,{style:(0,Ft.Z)((0,Ft.Z)({},re),{},{tableLayout:ht})},vt,!1!==g&&v.createElement(QI,Zt({},ft,fe)),gt,Ue&&v.createElement(TD,{stickyOffsets:Re,flattenColumns:he},Ue)));var bt=wv(e,{aria:!0,data:!0}),Ct=v.createElement("div",Zt({className:Ja()(n,i,(t={},(0,N.Z)(t,"".concat(n,"-rtl"),"rtl"===u),(0,N.Z)(t,"".concat(n,"-ping-left"),Ce),(0,N.Z)(t,"".concat(n,"-ping-right"),xe),(0,N.Z)(t,"".concat(n,"-layout-fixed"),"fixed"===c),(0,N.Z)(t,"".concat(n,"-fixed-header"),Ae),(0,N.Z)(t,"".concat(n,"-fixed-column"),Pe),(0,N.Z)(t,"".concat(n,"-scroll-horizontal"),Me),(0,N.Z)(t,"".concat(n,"-has-fix-left"),he[0]&&he[0].fixed),(0,N.Z)(t,"".concat(n,"-has-fix-right"),he[he.length-1]&&"right"===he[he.length-1].fixed),t)),style:o,id:p,ref:pe},bt),v.createElement(HD,{pingLeft:Ce,pingRight:xe,props:(0,Ft.Z)((0,Ft.Z)({},e),{},{stickyOffsets:Re,mergedExpandedKeys:ee})},d&&v.createElement(SD,{className:"".concat(n,"-title")},d(T)),v.createElement("div",{ref:me,className:"".concat(n,"-container")},ut),h&&v.createElement(SD,{className:"".concat(n,"-footer")},h(T))));Me&&(Ct=v.createElement(yy,{onResize:function(e){var t=e.width;t!==se&&(et(),le(pe.current?pe.current.offsetWidth:t))}},Ct));var St=v.useMemo((function(){return{prefixCls:n,getComponent:D,scrollbarSize:rt,direction:u,fixedInfoList:he.map((function(e,t){return qI(t,t,he,Re,u)})),isSticky:Be}}),[n,D,rt,u,he,Re,Be]),wt=v.useMemo((function(){return(0,Ft.Z)((0,Ft.Z)({},fe),{},{tableLayout:ht,rowClassName:r,expandedRowClassName:W,expandIcon:K,expandableType:q,expandRowByClick:z,expandedRowRender:Z,onTriggerExpand:te,expandIconColumnIndex:V,indentSize:G,allColumnsFixedLeft:fe.flattenColumns.every((function(e){return"left"===e.fixed}))})}),[fe,ht,r,W,K,q,z,Z,te,V,G]),kt=v.useMemo((function(){return{componentWidth:se,fixHeader:Ae,fixColumn:Pe,horizonScroll:Me}}),[se,Ae,Pe,Me]),xt=v.useMemo((function(){return{onColumnResize:Ke}}),[Ke]);return v.createElement(MI.Provider,{value:lt},v.createElement(YI.Provider,{value:St},v.createElement(FI.Provider,{value:wt},v.createElement(JI.Provider,{value:kt},v.createElement(tD.Provider,{value:xt},Ct)))))}zD.EXPAND_COLUMN=hD,zD.Column=DI,zD.ColumnGroup=II,zD.Summary=ND,zD.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var jD=zD,VD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},WD=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:VD}))};WD.displayName="DoubleLeftOutlined";var UD=v.forwardRef(WD),GD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},KD=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:GD}))};KD.displayName="DoubleRightOutlined";var YD=v.forwardRef(KD),qD=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),i=Ja()(n,"".concat(n,"-").concat(e.page),(t={},(0,N.Z)(t,"".concat(n,"-active"),e.active),(0,N.Z)(t,"".concat(n,"-disabled"),!e.page),(0,N.Z)(t,e.className,!!e.className),t));return v.createElement("li",{title:e.showTitle?e.page:null,className:i,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",v.createElement("a",{rel:"nofollow"},e.page)))},$D=13,XD=38,QD=40,JD=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){var e;(0,b.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={goInputText:""},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var n=e.props,i=n.goButton,r=n.quickGo,o=n.rootPrefixCls,a=e.state.goInputText;i||""===a||(e.setState({goInputText:""}),t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(o,"-item-link"))>=0||t.relatedTarget.className.indexOf("".concat(o,"-item"))>=0)||r(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==$D&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,C.Z)(n,[{key:"getValidValue",value:function(){var e=this.state.goInputText;return!e||isNaN(e)?void 0:Number(e)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,i=t.locale,r=t.rootPrefixCls,o=t.changeSize,a=t.quickGo,s=t.goButton,l=t.selectComponentClass,c=t.buildOptionText,u=t.selectPrefixCls,d=t.disabled,h=this.state.goInputText,f="".concat(r,"-options"),p=l,g=null,m=null,y=null;if(!o&&!a)return null;var _=this.getPageSizeOptions();if(o&&p){var b=_.map((function(t,n){return v.createElement(p.Option,{key:n,value:t.toString()},(c||e.buildOptionText)(t))}));g=v.createElement(p,{disabled:d,prefixCls:u,showSearch:!1,className:"".concat(f,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||_[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":i.page_size,defaultOpen:!1},b)}return a&&(s&&(y="boolean"===typeof s?v.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:d,className:"".concat(f,"-quick-jumper-button")},i.jump_to_confirm):v.createElement("span",{onClick:this.go,onKeyUp:this.go},s)),m=v.createElement("div",{className:"".concat(f,"-quick-jumper")},i.jump_to,v.createElement("input",{disabled:d,type:"text",value:h,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":i.page}),i.page,y)),v.createElement("li",{className:"".concat(f)},g,m)}}]),n}(v.Component);JD.defaultProps={pageSizeOptions:["10","20","50","100"]};var eL=JD,tL={items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"};function nL(){}function iL(e){var t=Number(e);return"number"===typeof t&&!isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function rL(e,t,n){var i="undefined"===typeof e?t.pageSize:e;return Math.floor((n.total-1)/i)+1}var oL=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(e){var i;(0,b.Z)(this,n),(i=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(rL(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(e,t){var n=i.props.prefixCls,r=e||v.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"===typeof e&&(r=v.createElement(e,(0,Ft.Z)({},i.props))),r},i.savePaginationNode=function(e){i.paginationNode=e},i.isValid=function(e){var t=i.props.total;return iL(e)&&e!==i.state.current&&iL(t)&&t>0},i.shouldDisplayQuickJumper=function(){var e=i.props,t=e.showQuickJumper;return!(e.total<=i.state.pageSize)&&t},i.handleKeyDown=function(e){e.keyCode!==XD&&e.keyCode!==QD||e.preventDefault()},i.handleKeyUp=function(e){var t=i.getValidValue(e);t!==i.state.currentInputValue&&i.setState({currentInputValue:t}),e.keyCode===$D?i.handleChange(t):e.keyCode===XD?i.handleChange(t-1):e.keyCode===QD&&i.handleChange(t+1)},i.handleBlur=function(e){var t=i.getValidValue(e);i.handleChange(t)},i.changePageSize=function(e){var t=i.state.current,n=rL(e,i.state,i.props);t=t>n?n:t,0===n&&(t=i.state.current),"number"===typeof e&&("pageSize"in i.props||i.setState({pageSize:e}),"current"in i.props||i.setState({current:t,currentInputValue:t})),i.props.onShowSizeChange(t,e),"onChange"in i.props&&i.props.onChange&&i.props.onChange(t,e)},i.handleChange=function(e){var t=i.props,n=t.disabled,r=t.onChange,o=i.state,a=o.pageSize,s=o.current,l=o.currentInputValue;if(i.isValid(e)&&!n){var c=rL(void 0,i.state,i.props),u=e;return e>c?u=c:e<1&&(u=1),"current"in i.props||i.setState({current:u}),u!==l&&i.setState({currentInputValue:u}),r(u,a),u}return s},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current<rL(void 0,i.state,i.props)},i.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];t.apply(void 0,i)}},i.runIfEnterPrev=function(e){i.runIfEnter(e,i.prev)},i.runIfEnterNext=function(e){i.runIfEnter(e,i.next)},i.runIfEnterJumpPrev=function(e){i.runIfEnter(e,i.jumpPrev)},i.runIfEnterJumpNext=function(e){i.runIfEnter(e,i.jumpNext)},i.handleGoTO=function(e){e.keyCode!==$D&&"click"!==e.type||i.handleChange(i.state.currentInputValue)};var r=e.onChange!==nL;"current"in e&&!r&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var o=e.defaultCurrent;"current"in e&&(o=e.current);var a=e.defaultPageSize;return"pageSize"in e&&(a=e.pageSize),o=Math.min(o,rL(a,void 0,e)),i.state={current:o,currentInputValue:o,pageSize:a},i}return(0,C.Z)(n,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var i=this.paginationNode.querySelector(".".concat(n,"-item-").concat(t.current));i&&document.activeElement===i&&i.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=rL(void 0,this.state,this.props),i=this.state.currentInputValue;return""===t?t:isNaN(Number(t))?i:t>=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,i=e.totalBoundaryShowSizeChanger;return"undefined"!==typeof t?t:n>i}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,i=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),r=!this.hasPrev();return(0,v.isValidElement)(i)?(0,v.cloneElement)(i,{disabled:r}):i}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,i=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),r=!this.hasNext();return(0,v.isValidElement)(i)?(0,v.cloneElement)(i,{disabled:r}):i}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.className,r=t.style,o=t.disabled,a=t.hideOnSinglePage,s=t.total,l=t.locale,c=t.showQuickJumper,u=t.showLessItems,d=t.showTitle,h=t.showTotal,f=t.simple,p=t.itemRender,g=t.showPrevNextJumpers,m=t.jumpPrevIcon,y=t.jumpNextIcon,_=t.selectComponentClass,b=t.selectPrefixCls,C=t.pageSizeOptions,S=this.state,w=S.current,k=S.pageSize,x=S.currentInputValue;if(!0===a&&s<=k)return null;var E=rL(void 0,this.state,this.props),T=[],I=null,D=null,L=null,O=null,R=null,A=c&&c.goButton,M=u?1:2,P=w-1>0?w-1:0,Z=w+1<E?w+1:E,F=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),B=h&&v.createElement("li",{className:"".concat(n,"-total-text")},h(s,[0===s?0:(w-1)*k+1,w*k>s?s:w*k]));if(f)return A&&(R="boolean"===typeof A?v.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},l.jump_to_confirm):v.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},A),R=v.createElement("li",{title:d?"".concat(l.jump_to).concat(w,"/").concat(E):null,className:"".concat(n,"-simple-pager")},R)),v.createElement("ul",Zt({className:Ja()(n,"".concat(n,"-simple"),(0,N.Z)({},"".concat(n,"-disabled"),o),i),style:r,ref:this.savePaginationNode},F),B,v.createElement("li",{title:d?l.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ja()("".concat(n,"-prev"),(0,N.Z)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(P)),v.createElement("li",{title:d?"".concat(w,"/").concat(E):null,className:"".concat(n,"-simple-pager")},v.createElement("input",{type:"text",value:x,disabled:o,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),v.createElement("span",{className:"".concat(n,"-slash")},"/"),E),v.createElement("li",{title:d?l.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ja()("".concat(n,"-next"),(0,N.Z)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Z)),R);if(E<=3+2*M){var H={locale:l,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:d,itemRender:p};E||T.push(v.createElement(qD,Zt({},H,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var z=1;z<=E;z+=1){var j=w===z;T.push(v.createElement(qD,Zt({},H,{key:z,page:z,active:j})))}}else{var V=u?l.prev_3:l.prev_5,W=u?l.next_3:l.next_5;g&&(I=v.createElement("li",{title:d?V:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:Ja()("".concat(n,"-jump-prev"),(0,N.Z)({},"".concat(n,"-jump-prev-custom-icon"),!!m))},p(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(m,"prev page"))),D=v.createElement("li",{title:d?W:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ja()("".concat(n,"-jump-next"),(0,N.Z)({},"".concat(n,"-jump-next-custom-icon"),!!y))},p(this.getJumpNextPage(),"jump-next",this.getItemIcon(y,"next page")))),O=v.createElement(qD,{locale:l,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:E,page:E,active:!1,showTitle:d,itemRender:p}),L=v.createElement(qD,{locale:l,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:d,itemRender:p});var U=Math.max(1,w-M),G=Math.min(w+M,E);w-1<=M&&(G=1+2*M),E-w<=M&&(U=E-2*M);for(var K=U;K<=G;K+=1){var Y=w===K;T.push(v.createElement(qD,{locale:l,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:K,page:K,active:Y,showTitle:d,itemRender:p}))}w-1>=2*M&&3!==w&&(T[0]=(0,v.cloneElement)(T[0],{className:"".concat(n,"-item-after-jump-prev")}),T.unshift(I)),E-w>=2*M&&w!==E-2&&(T[T.length-1]=(0,v.cloneElement)(T[T.length-1],{className:"".concat(n,"-item-before-jump-next")}),T.push(D)),1!==U&&T.unshift(L),G!==E&&T.push(O)}var q=!this.hasPrev()||!E,$=!this.hasNext()||!E;return v.createElement("ul",Zt({className:Ja()(n,i,(0,N.Z)({},"".concat(n,"-disabled"),o)),style:r,ref:this.savePaginationNode},F),B,v.createElement("li",{title:d?l.prev_page:null,onClick:this.prev,tabIndex:q?null:0,onKeyPress:this.runIfEnterPrev,className:Ja()("".concat(n,"-prev"),(0,N.Z)({},"".concat(n,"-disabled"),q)),"aria-disabled":q},this.renderPrev(P)),T,v.createElement("li",{title:d?l.next_page:null,onClick:this.next,tabIndex:$?null:0,onKeyPress:this.runIfEnterNext,className:Ja()("".concat(n,"-next"),(0,N.Z)({},"".concat(n,"-disabled"),$)),"aria-disabled":$},this.renderNext(Z)),v.createElement(eL,{disabled:o,locale:l,rootPrefixCls:n,selectComponentClass:_,selectPrefixCls:b,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:w,pageSize:k,pageSizeOptions:C,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:A}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var i=t.current,r=rL(e.pageSize,t,e);i=i>r?r:i,"current"in e||(n.current=i,n.currentInputValue=i),n.pageSize=e.pageSize}return n}}]),n}(v.Component);oL.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:nL,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:nL,locale:tL,style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var aL=oL,sL=function(e){return v.createElement(NI,Zt({},e,{size:"small"}))},lL=function(e){return v.createElement(NI,Zt({},e,{size:"middle"}))};sL.Option=NI.Option,lL.Option=NI.Option;var cL=function(e){var t,n,i=e.componentCls;return n={},(0,N.Z)(n,i,Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt({},Fa(e)),(0,N.Z)({"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'}},i+"-total-text",{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:e.paginationItemSize-2+"px",verticalAlign:"middle"})),function(e){var t=e.componentCls;return(0,N.Z)({},t+"-item",Zt(Zt((0,N.Z)({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:e.paginationItemSize-2+"px",textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:e.lineWidth+"px "+e.lineType+" transparent",borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:"0 "+e.paginationItemPaddingInline+"px",color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}}},"&:not("+t+"-item-active)",{"&:hover":{transition:"all "+e.motionDurationMid,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}),ja(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}))}(e)),function(e){var t,n,i,r,o,a,s=e.componentCls;return a={},(0,N.Z)(a,s+"-jump-prev, "+s+"-jump-next",(r={outline:0},(0,N.Z)(r,s+"-item-container",(t={position:"relative"},(0,N.Z)(t,s+"-item-link-icon",{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:"all "+e.motionDurationMid,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}}),(0,N.Z)(t,s+"-item-ellipsis",{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:"all "+e.motionDurationMid}),t)),(0,N.Z)(r,"&:hover",(n={},(0,N.Z)(n,s+"-item-link-icon",{opacity:1}),(0,N.Z)(n,s+"-item-ellipsis",{opacity:0}),n)),(0,N.Z)(r,"&:focus-visible",Zt((i={},(0,N.Z)(i,s+"-item-link-icon",{opacity:1}),(0,N.Z)(i,s+"-item-ellipsis",{opacity:0}),i),za(e))),r)),(0,N.Z)(a,"\n "+s+"-prev,\n "+s+"-jump-prev,\n "+s+"-jump-next\n ",{marginInlineEnd:e.marginXS}),(0,N.Z)(a,"\n "+s+"-prev,\n "+s+"-next,\n "+s+"-jump-prev,\n "+s+"-jump-next\n ",{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:e.paginationItemSize+"px",textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:"all "+e.motionDurationMid}),(0,N.Z)(a,s+"-prev, "+s+"-next",(o={fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"}},(0,N.Z)(o,s+"-item-link",{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:e.lineWidth+"px "+e.lineType+" transparent",borderRadius:e.borderRadius,outline:"none",transition:"border "+e.motionDurationMid}),(0,N.Z)(o,"&:focus-visible "+s+"-item-link",Zt({},za(e))),(0,N.Z)(o,"&:hover "+s+"-item-link",{backgroundColor:e.colorBgTextHover}),(0,N.Z)(o,"&:active "+s+"-item-link",{backgroundColor:e.colorBgTextActive}),(0,N.Z)(o,"&"+s+"-disabled:hover",(0,N.Z)({},s+"-item-link",{backgroundColor:"transparent"})),o)),(0,N.Z)(a,s+"-slash",{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart}),(0,N.Z)(a,s+"-options",{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:e.controlHeight+"px",verticalAlign:"top",input:Zt(Zt({},wm(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}),a}(e)),function(e){var t,n=e.componentCls;return t={},(0,N.Z)(t,"\n &"+n+"-simple "+n+"-prev,\n &"+n+"-simple "+n+"-next\n ",(0,N.Z)({height:e.paginationItemSizeSM,lineHeight:e.paginationItemSizeSM+"px",verticalAlign:"top"},n+"-item-link",{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&::after":{height:e.paginationItemSizeSM,lineHeight:e.paginationItemSizeSM+"px"}})),(0,N.Z)(t,"&"+n+"-simple "+n+"-simple-pager",{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:"0 "+e.paginationItemPaddingInline+"px",textAlign:"center",backgroundColor:e.paginationItemInputBg,border:e.lineWidth+"px "+e.lineType+" "+e.colorBorder,borderRadius:e.borderRadius,outline:"none",transition:"border-color "+e.motionDurationMid,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:e.inputOutlineOffset+"px 0 "+e.controlOutlineWidth+"px "+e.controlOutline},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}),t}(e)),function(e){var t,n,i=e.componentCls;return n={},(0,N.Z)(n,"&&-mini "+i+"-total-text, &&-mini "+i+"-simple-pager",{height:e.paginationItemSizeSM,lineHeight:e.paginationItemSizeSM+"px"}),(0,N.Z)(n,"&&-mini "+i+"-item",{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:e.paginationItemSizeSM-2+"px"}),(0,N.Z)(n,"&&-mini "+i+"-item:not("+i+"-item-active)",{backgroundColor:"transparent",borderColor:"transparent"}),(0,N.Z)(n,"&&-mini "+i+"-prev, &&-mini "+i+"-next",{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:e.paginationItemSizeSM+"px"}),(0,N.Z)(n,"\n &&-mini "+i+"-prev "+i+"-item-link,\n &&-mini "+i+"-next "+i+"-item-link\n ",{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:e.paginationItemSizeSM+"px"}}),(0,N.Z)(n,"&&-mini "+i+"-jump-prev, &&-mini "+i+"-jump-next",{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:e.paginationItemSizeSM+"px"}),(0,N.Z)(n,"&&-mini "+i+"-options",(t={marginInlineStart:e.paginationMiniOptionsMarginInlineStart},(0,N.Z)(t,"&-size-changer",{top:e.paginationMiniOptionsSizeChangerTop}),(0,N.Z)(t,"&-quick-jumper",{height:e.paginationItemSizeSM,lineHeight:e.paginationItemSizeSM+"px",input:Zt(Zt({},Cm(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}),t)),n}(e)),function(e){var t,n,i=e.componentCls;return n={},(0,N.Z)(n,i+"-disabled",{"&, &:hover":(0,N.Z)({cursor:"not-allowed"},i+"-item-link",{color:e.colorTextDisabled,cursor:"not-allowed"}),"&:focus-visible":(0,N.Z)({cursor:"not-allowed"},i+"-item-link",{color:e.colorTextDisabled,cursor:"not-allowed"})}),(0,N.Z)(n,"&"+i+"-disabled",(t={cursor:"not-allowed"},(0,N.Z)(t,i+"-item",{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}}),(0,N.Z)(t,i+"-item-link",(0,N.Z)({color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"}},i+"-simple&",{backgroundColor:"transparent"})),(0,N.Z)(t,i+"-item-link-icon",{opacity:0}),(0,N.Z)(t,i+"-item-ellipsis",{opacity:1}),(0,N.Z)(t,i+"-simple-pager",{color:e.colorTextDisabled}),t)),n}(e)),(t={},(0,N.Z)(t,"@media only screen and (max-width: "+e.screenLG+"px)",(0,N.Z)({},i+"-item",{"&-after-jump-prev, &-before-jump-next":{display:"none"}})),(0,N.Z)(t,"@media only screen and (max-width: "+e.screenSM+"px)",(0,N.Z)({},i+"-options",{display:"none"})),t))),(0,N.Z)(n,"&"+e.componentCls+"-rtl",{direction:"rtl"}),n},uL=function(e){var t,n,i,r,o,a,s=e.componentCls;return a={},(0,N.Z)(a,""+s+s+"-disabled",(n={"&, &:hover":(0,N.Z)({},s+"-item-link",{borderColor:e.colorBorder}),"&:focus-visible":(0,N.Z)({},s+"-item-link",{borderColor:e.colorBorder})},(0,N.Z)(n,s+"-item, "+s+"-item-link",(t={backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder},(0,N.Z)(t,"&:hover:not("+s+"-item-active)",{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}}),(0,N.Z)(t,"&"+s+"-item-active",{backgroundColor:e.paginationItemDisabledBgActive}),t)),(0,N.Z)(n,s+"-prev, "+s+"-next",(0,N.Z)({"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled}},s+"-item-link",{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder})),n)),(0,N.Z)(a,s,(o={},(0,N.Z)(o,s+"-prev, "+s+"-next",(i={"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg}},(0,N.Z)(i,s+"-item-link",{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder}),(0,N.Z)(i,"&:hover "+s+"-item-link",{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary}),(0,N.Z)(i,"&"+s+"-disabled",(0,N.Z)({},s+"-item-link",{borderColor:e.colorBorder,color:e.colorTextDisabled})),i)),(0,N.Z)(o,s+"-item",(r={backgroundColor:e.paginationItemBg,border:e.lineWidth+"px "+e.lineType+" "+e.colorBorder},(0,N.Z)(r,"&:hover:not("+s+"-item-active)",{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}}),(0,N.Z)(r,"&-active",{borderColor:e.colorPrimary}),r)),o)),a},dL=hs("Pagination",(function(e){var t=cs(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Im(e));return[cL(t),e.wireframe&&uL(t)]})),hL=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},fL=function(e){var t=e.prefixCls,n=e.selectPrefixCls,i=e.className,r=e.size,o=e.locale,a=e.selectComponentClass,s=e.responsive,l=e.showSizeChanger,c=hL(e,["prefixCls","selectPrefixCls","className","size","locale","selectComponentClass","responsive","showSizeChanger"]),u=VC(s).xs,d=v.useContext(wa),h=d.getPrefixCls,f=d.direction,p=d.pagination,g=void 0===p?{}:p,m=h("pagination",t),y=dL(m),_=(0,k.Z)(y,2),b=_[0],C=_[1],S=null!==l&&void 0!==l?l:g.showSizeChanger;return v.createElement(So,{componentName:"Pagination",defaultLocale:ho},(function(e){var t,l=Zt(Zt({},e),o),d="small"===r||!(!u||r||!s),p=h("select",n),g=Ja()((t={},(0,N.Z)(t,m+"-mini",d),(0,N.Z)(t,m+"-rtl","rtl"===f),t),i,C);return b(v.createElement(aL,Zt({},function(){var e=v.createElement("span",{className:m+"-item-ellipsis"},"\u2022\u2022\u2022"),t=v.createElement("button",{className:m+"-item-link",type:"button",tabIndex:-1},v.createElement(al,null)),n=v.createElement("button",{className:m+"-item-link",type:"button",tabIndex:-1},v.createElement(cl,null)),i=v.createElement("a",{className:m+"-item-link"},v.createElement("div",{className:m+"-item-container"},v.createElement(UD,{className:m+"-item-link-icon"}),e)),r=v.createElement("a",{className:m+"-item-link"},v.createElement("div",{className:m+"-item-container"},v.createElement(YD,{className:m+"-item-link-icon"}),e));if("rtl"===f){var o=[n,t];t=o[0],n=o[1];var a=[r,i];i=a[0],r=a[1]}return{prevIcon:t,nextIcon:n,jumpPrevIcon:i,jumpNextIcon:r}}(),c,{prefixCls:m,selectPrefixCls:p,className:g,selectComponentClass:a||(d?sL:lL),locale:l,showSizeChanger:S})))}))},pL=fL;function gL(e,t,n,i){var r=n-t;return(e/=i/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}function vL(e){return null!==e&&void 0!==e&&e===e.window}function mL(e,t){var n,i;if("undefined"===typeof window)return 0;var r=t?"scrollTop":"scrollLeft",o=0;return vL(e)?o=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?o=e.documentElement[r]:(e instanceof HTMLElement||e)&&(o=e[r]),e&&!vL(e)&&"number"!==typeof o&&(o=null===(i=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===i?void 0:i[r]),o}function yL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getContainer,i=void 0===n?function(){return window}:n,r=t.callback,o=t.duration,a=void 0===o?450:o,s=i(),l=mL(s,!0),c=Date.now(),u=function t(){var n=Date.now()-c,i=gL(n>a?a:n,l,e,a);vL(s)?s.scrollTo(window.pageXOffset,i):s instanceof Document||"HTMLDocument"===s.constructor.name?s.documentElement.scrollTop=i:s.scrollTop=i,n<a?oc(t):"function"===typeof r&&r()};oc(u)}var _L=function(e){return null};var bL=function(e){return null};var CL=function(e){return function(t){var n,i=t.prefixCls,r=t.onExpand,o=t.record,a=t.expanded,s=t.expandable,l=i+"-row-expand-icon";return v.createElement("button",{type:"button",onClick:function(e){r(o,e),e.stopPropagation()},className:Ja()(l,(n={},(0,N.Z)(n,l+"-spaced",!s),(0,N.Z)(n,l+"-expanded",s&&a),(0,N.Z)(n,l+"-collapsed",s&&!a),n)),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}};function SL(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function wL(e,t){return t?t+"-"+e:""+e}function kL(e,t){return"function"===typeof e?e(t):e}var xL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},EL=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:xL}))};EL.displayName="FilterFilled";var TL=v.forwardRef(EL),NL=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(e){var i;(0,b.Z)(this,n),(i=t.call(this,e)).handleChange=function(e){var t=i.props,n=t.disabled,r=t.onChange;n||("checked"in i.props||i.setState({checked:e.target.checked}),r&&r({target:(0,Ft.Z)((0,Ft.Z)({},i.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},i.saveInput=function(e){i.input=e};var r="checked"in e?e.checked:e.defaultChecked;return i.state={checked:r},i}return(0,C.Z)(n,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,i=t.className,r=t.style,o=t.name,a=t.id,s=t.type,l=t.disabled,c=t.readOnly,u=t.tabIndex,d=t.onClick,h=t.onFocus,f=t.onBlur,p=t.onKeyDown,g=t.onKeyPress,m=t.onKeyUp,y=t.autoFocus,_=t.value,b=t.required,C=Ai(t,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),S=Object.keys(C).reduce((function(e,t){return"aria-"!==t.substr(0,5)&&"data-"!==t.substr(0,5)&&"role"!==t||(e[t]=C[t]),e}),{}),w=this.state.checked,k=Ja()(n,i,(e={},(0,N.Z)(e,"".concat(n,"-checked"),w),(0,N.Z)(e,"".concat(n,"-disabled"),l),e));return v.createElement("span",{className:k,style:r},v.createElement("input",Zt({name:o,id:a,type:s,required:b,readOnly:c,disabled:l,tabIndex:u,className:"".concat(n,"-input"),checked:!!w,onClick:d,onFocus:h,onBlur:f,onKeyUp:m,onKeyDown:p,onKeyPress:g,onChange:this.handleChange,autoFocus:y,ref:this.saveInput,value:_},S)),v.createElement("span",{className:"".concat(n,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"checked"in e?(0,Ft.Z)((0,Ft.Z)({},t),{},{checked:e.checked}):null}}]),n}(v.Component);NL.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}};var IL=NL,DL=new Ti("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),LL=function(e){var t,n,i,r,o,a,s,l=e.checkboxCls,c=l+"-wrapper";return[(n={},(0,N.Z)(n,l+"-group",Zt(Zt({},Fa(e)),{display:"inline-flex"})),(0,N.Z)(n,c,Zt(Zt({},Fa(e)),{display:"inline-flex",alignItems:"baseline",lineHeight:"unset",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},"& + &":{marginInlineStart:e.marginXS},"&&-in-form-item":{'input[type="checkbox"]':{width:14,height:14}}})),(0,N.Z)(n,l,Zt(Zt({},Fa(e)),(t={top:"0.2em",position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer"},(0,N.Z)(t,l+"-input",(0,N.Z)({position:"absolute",inset:0,zIndex:1,width:"100%",height:"100%",cursor:"pointer",opacity:0},"&:focus-visible + "+l+"-inner",Zt({},za(e)))),(0,N.Z)(t,l+"-inner",{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:e.lineWidth+"px "+e.lineType+" "+e.colorBorder,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:"all "+e.motionDurationSlow,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:e.lineWidthBold+"px solid "+e.colorWhite,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:"all "+e.motionDurationFast+" "+e.motionEaseInBack+", opacity "+e.motionDurationFast}}),(0,N.Z)(t,"& + span",{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}),t))),n),(0,N.Z)({},l,{"&-indeterminate":(0,N.Z)({},l+"-inner",{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}})}),(i={},(0,N.Z)(i,c+":hover "+l+":after",{visibility:"visible"}),(0,N.Z)(i,"\n "+c+":not("+c+"-disabled),\n "+l+":not("+l+"-disabled)\n ",(0,N.Z)({},"&:hover "+l+"-inner",{borderColor:e.colorPrimary})),i),(o={},(0,N.Z)(o,l+"-checked",(r={},(0,N.Z)(r,l+"-inner",{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,zIndex:2,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:"all "+e.motionDurationMid+" "+e.motionEaseOutBack+" "+e.motionDurationFast}}),(0,N.Z)(r,"&:after",{position:"absolute",zIndex:1,top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:e.lineWidthBold+"px solid "+e.colorPrimary,animationName:DL,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""'}),r)),(0,N.Z)(o,"\n "+c+"-checked:not("+c+"-disabled),\n "+l+"-checked:not("+l+"-disabled)\n ",(0,N.Z)({},"&:hover "+l+"-inner",{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"})),o),(s={},(0,N.Z)(s,c+"-disabled",{cursor:"not-allowed"}),(0,N.Z)(s,l+"-disabled",(a={},(0,N.Z)(a,"&, "+l+"-input",{cursor:"not-allowed"}),(0,N.Z)(a,l+"-inner",{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}}),(0,N.Z)(a,"&:after",{display:"none"}),(0,N.Z)(a,"& + span",{color:e.colorTextDisabled}),a)),s)]};function OL(e,t){var n=cs(t,{checkboxCls:"."+e,checkboxSize:t.controlInteractiveSize});return[LL(n)]}var RL=hs("Checkbox",(function(e,t){return[OL(t.prefixCls,e)]})),AL=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},ML=v.createContext(null),PL=function(e,t){var n=e.defaultValue,i=e.children,r=e.options,o=void 0===r?[]:r,a=e.prefixCls,s=e.className,l=e.style,c=e.onChange,u=AL(e,["defaultValue","children","options","prefixCls","className","style","onChange"]),d=v.useContext(wa),h=d.getPrefixCls,f=d.direction,p=v.useState(u.value||n||[]),g=(0,k.Z)(p,2),m=g[0],y=g[1],b=v.useState([]),C=(0,k.Z)(b,2),S=C[0],w=C[1];v.useEffect((function(){"value"in u&&y(u.value||[])}),[u.value]);var x=function(){return o.map((function(e){return"string"===typeof e||"number"===typeof e?{label:e,value:e}:e}))},E=h("checkbox",a),T=E+"-group",I=RL(E),D=(0,k.Z)(I,2),L=D[0],O=D[1],R=ns(u,["value","disabled"]);o&&o.length>0&&(i=x().map((function(e){return v.createElement(zL,{prefixCls:E,key:e.value.toString(),disabled:"disabled"in e?e.disabled:u.disabled,value:e.value,checked:m.includes(e.value),onChange:e.onChange,className:T+"-item",style:e.style},e.label)})));var A={toggleOption:function(e){var t=m.indexOf(e.value),n=(0,_.Z)(m);-1===t?n.push(e.value):n.splice(t,1),"value"in u||y(n);var i=x();null===c||void 0===c||c(n.filter((function(e){return S.includes(e)})).sort((function(e,t){return i.findIndex((function(t){return t.value===e}))-i.findIndex((function(e){return e.value===t}))})))},value:m,disabled:u.disabled,name:u.name,registerValue:function(e){w((function(t){return[].concat((0,_.Z)(t),[e])}))},cancelValue:function(e){w((function(t){return t.filter((function(t){return t!==e}))}))}},M=Ja()(T,(0,N.Z)({},T+"-rtl","rtl"===f),s,O);return L(v.createElement("div",Zt({className:M,style:l},R,{ref:t}),v.createElement(ML.Provider,{value:A},i)))},ZL=v.forwardRef(PL),FL=v.memo(ZL),BL=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},HL=function(e,t){var n,i,r=e.prefixCls,o=e.className,a=e.children,s=e.indeterminate,l=void 0!==s&&s,c=e.style,u=e.onMouseEnter,d=e.onMouseLeave,h=e.skipGroup,f=void 0!==h&&h,p=e.disabled,g=BL(e,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),m=v.useContext(wa),y=m.getPrefixCls,_=m.direction,b=v.useContext(ML),C=(0,v.useContext)(Sl).isFormItemInput,S=(0,v.useContext)(Ia),w=null!==(i=(null===b||void 0===b?void 0:b.disabled)||p)&&void 0!==i?i:S,x=v.useRef(g.value);v.useEffect((function(){null===b||void 0===b||b.registerValue(g.value)}),[]),v.useEffect((function(){if(!f)return g.value!==x.current&&(null===b||void 0===b||b.cancelValue(x.current),null===b||void 0===b||b.registerValue(g.value),x.current=g.value),function(){return null===b||void 0===b?void 0:b.cancelValue(g.value)}}),[g.value]);var E=y("checkbox",r),T=RL(E),I=(0,k.Z)(T,2),D=I[0],L=I[1],O=Zt({},g);b&&!f&&(O.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),b.toggleOption&&b.toggleOption({label:a,value:g.value})},O.name=b.name,O.checked=b.value.includes(g.value));var R=Ja()((n={},(0,N.Z)(n,E+"-wrapper",!0),(0,N.Z)(n,E+"-rtl","rtl"===_),(0,N.Z)(n,E+"-wrapper-checked",O.checked),(0,N.Z)(n,E+"-wrapper-disabled",w),(0,N.Z)(n,E+"-wrapper-in-form-item",C),n),o,L),A=Ja()((0,N.Z)({},E+"-indeterminate",l),L),M=l?"mixed":void 0;return D(v.createElement("label",{className:R,style:c,onMouseEnter:u,onMouseLeave:d},v.createElement(IL,Zt({"aria-checked":M},O,{prefixCls:E,className:A,disabled:w,ref:t})),void 0!==a&&v.createElement("span",null,a)))};var zL=v.forwardRef(HL),jL=zL;jL.Group=FL,jL.__ANT_CHECKBOX=!0;var VL=jL;var WL=v.createContext(null),UL=WL.Provider,GL=WL,KL=v.createContext(null),YL=KL.Provider,qL=new Ti("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),$L=function(e){var t,n=e.componentCls,i=e.antCls,r=n+"-group";return(0,N.Z)({},r,Zt(Zt({},Fa(e)),(t={display:"inline-block",fontSize:0,"&&-rtl":{direction:"rtl"}},(0,N.Z)(t,i+"-badge "+i+"-badge-count",{zIndex:1}),(0,N.Z)(t,"> "+i+"-badge:not(:first-child) > "+i+"-button-wrapper",{borderInlineStart:"none"}),t)))},XL=function(e){var t,n,i=e.componentCls,r=e.radioWrapperMarginRight,o=e.radioCheckedColor,a=e.radioTop,s=e.radioSize,l=e.motionDurationSlow,c=e.motionDurationMid,u=e.motionEaseInOut,d=e.motionEaseInOutCirc,h=e.radioButtonBg,f=e.colorBorder,p=e.lineWidth,g=e.radioDotSize,v=e.colorBgContainerDisabled,m=e.colorTextDisabled,y=e.paddingXS,_=e.radioDotDisabledColor,b=e.lineType,C=e.radioDotDisabledSize,S=e.wireframe,w=e.colorWhite,k=i+"-inner";return(0,N.Z)({},i+"-wrapper",Zt(Zt({},Fa(e)),(n={position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer","&&-rtl":{direction:"rtl"},"&-disabled":{cursor:"not-allowed"},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'}},(0,N.Z)(n,i+"-checked::after",{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:p+"px "+b+" "+o,borderRadius:"50%",visibility:"hidden",animationName:qL,animationDuration:l,animationTimingFunction:u,animationFillMode:"both",content:'""'}),(0,N.Z)(n,i,Zt(Zt({},Fa(e)),{position:"relative",insetBlockStart:a,display:"inline-block",outline:"none",cursor:"pointer"})),(0,N.Z)(n,i+"-wrapper:hover &,\n &:hover "+k,{borderColor:o}),(0,N.Z)(n,i+"-input:focus-visible + "+k,Zt({},za(e))),(0,N.Z)(n,i+":hover::after, "+i+"-wrapper:hover &::after",{visibility:"visible"}),(0,N.Z)(n,i+"-inner",{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:s,height:s,marginBlockStart:s/-2,marginInlineStart:s/-2,backgroundColor:S?o:w,borderBlockStart:0,borderInlineStart:0,borderRadius:s,transform:"scale(0)",opacity:0,transition:"all "+l+" "+d,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:s,height:s,backgroundColor:h,borderColor:f,borderStyle:"solid",borderWidth:p,borderRadius:"50%",transition:"all "+c}),(0,N.Z)(n,i+"-input",{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0}),(0,N.Z)(n,i+"-checked",(0,N.Z)({},k,{borderColor:o,backgroundColor:S?h:o,"&::after":{transform:"scale("+g/s+")",opacity:1,transition:"all "+l+" "+d}})),(0,N.Z)(n,i+"-disabled",(t={cursor:"not-allowed"},(0,N.Z)(t,k,{backgroundColor:v,borderColor:f,cursor:"not-allowed","&::after":{backgroundColor:_}}),(0,N.Z)(t,"&-input",{cursor:"not-allowed"}),(0,N.Z)(t,i+"-disabled + span",{color:m,cursor:"not-allowed"}),(0,N.Z)(t,"&"+i+"-checked",(0,N.Z)({},k,{"&::after":{transform:"scale("+C/s+")"}})),t)),(0,N.Z)(n,"span"+i+" + *",{paddingInlineStart:y,paddingInlineEnd:y}),n)))},QL=function(e){var t,n=e.radioButtonColor,i=e.controlHeight,r=e.componentCls,o=e.lineWidth,a=e.lineType,s=e.colorBorder,l=e.motionDurationSlow,c=e.motionDurationMid,u=e.radioButtonPaddingHorizontal,d=e.fontSize,h=e.radioButtonBg,f=e.fontSizeLG,p=e.controlHeightLG,g=e.controlHeightSM,v=e.paddingXS,m=e.borderRadius,y=e.borderRadiusSM,_=e.borderRadiusLG,b=e.radioCheckedColor,C=e.radioButtonCheckedBg,S=e.radioButtonHoverColor,w=e.radioButtonActiveColor,k=e.radioSolidCheckedColor,x=e.colorTextDisabled,E=e.colorBgContainerDisabled,T=e.radioDisabledButtonCheckedColor,I=e.radioDisabledButtonCheckedBg;return(0,N.Z)({},r+"-button-wrapper",(t={position:"relative",display:"inline-block",height:i,margin:0,paddingInline:u,paddingBlock:0,color:n,fontSize:d,lineHeight:i-2*o+"px",background:h,border:o+"px "+a+" "+s,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:["color "+c,"background "+c,"border-color "+c,"box-shadow "+c].join(","),a:{color:n}},(0,N.Z)(t,"> "+r+"-button",{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"}),(0,N.Z)(t,"&:not(:first-child)",{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:s,transition:"background-color "+l,content:'""'}}),(0,N.Z)(t,"&:first-child",{borderInlineStart:o+"px "+a+" "+s,borderStartStartRadius:m,borderEndStartRadius:m}),(0,N.Z)(t,"&:last-child",{borderStartEndRadius:m,borderEndEndRadius:m}),(0,N.Z)(t,"&:first-child:last-child",{borderRadius:m}),(0,N.Z)(t,r+"-group-large &",{height:p,fontSize:f,lineHeight:p-2*o+"px","&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}}),(0,N.Z)(t,r+"-group-small &",{height:g,paddingInline:v-o,paddingBlock:0,lineHeight:g-2*o+"px","&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}}),(0,N.Z)(t,"&:hover",{position:"relative",color:b}),(0,N.Z)(t,"&:has(:focus-visible)",Zt({},za(e))),(0,N.Z)(t,r+"-inner, input[type='checkbox'], input[type='radio']",{width:0,height:0,opacity:0,pointerEvents:"none"}),(0,N.Z)(t,"&-checked:not(&-disabled)",{zIndex:1,color:b,background:C,borderColor:b,"&::before":{backgroundColor:b},"&:first-child":{borderColor:b},"&:hover":{color:S,borderColor:S,"&::before":{backgroundColor:S}},"&:active":{color:w,borderColor:w,"&::before":{backgroundColor:w}}}),(0,N.Z)(t,r+"-group-solid &-checked:not(&-disabled)",{color:k,background:b,borderColor:b,"&:hover":{color:k,background:S,borderColor:S},"&:active":{color:k,background:w,borderColor:w}}),(0,N.Z)(t,"&-disabled",{color:x,backgroundColor:E,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:E,borderColor:s}}),(0,N.Z)(t,"&-disabled&-checked",{color:T,backgroundColor:I,borderColor:s,boxShadow:"none"}),t))},JL=hs("Radio",(function(e){var t=e.padding,n=e.lineWidth,i=e.colorBgContainerDisabled,r=e.colorTextDisabled,o=e.colorBgContainer,a=e.fontSize,s=e.lineHeight,l=e.fontSizeLG,c=e.controlOutline,u=e.colorPrimaryHover,d=e.colorPrimaryActive,h=e.colorText,f=e.colorPrimary,p=e.marginXS,g=e.controlOutlineWidth,v=e.wireframe,m="0 0 0 "+g+"px "+c,y=l,_=y-8,b=cs(e,{radioFocusShadow:m,radioButtonFocusShadow:m,radioSize:y,radioTop:(Math.round(a*s)-y)/2,radioDotSize:v?_:y-2*(4+n),radioDotDisabledSize:_,radioCheckedColor:f,radioDotDisabledColor:r,radioSolidCheckedColor:o,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:h,radioButtonHoverColor:u,radioButtonActiveColor:d,radioButtonPaddingHorizontal:t-n,radioDisabledButtonCheckedBg:i,radioDisabledButtonCheckedColor:r,radioWrapperMarginRight:p});return[$L(b),XL(b),QL(b)]})),eO=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},tO=function(e,t){var n,i=v.useContext(GL),r=v.useContext(KL),o=v.useContext(wa),a=o.getPrefixCls,s=o.direction,l=Nl(t,v.useRef()),c=(0,v.useContext)(Sl).isFormItemInput,u=e.prefixCls,d=e.className,h=e.children,f=e.style,p=e.disabled,g=eO(e,["prefixCls","className","children","style","disabled"]),m=a("radio",u),y="button"===((null===i||void 0===i?void 0:i.optionType)||r)?m+"-button":m,_=JL(m),b=(0,k.Z)(_,2),C=b[0],S=b[1],w=Zt({},g),x=v.useContext(Ia);w.disabled=p||x,i&&(w.name=i.name,w.onChange=function(t){var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null===i||void 0===i?void 0:i.onChange)||void 0===r||r.call(i,t)},w.checked=e.value===i.value,w.disabled=w.disabled||i.disabled);var E=Ja()(y+"-wrapper",(n={},(0,N.Z)(n,y+"-wrapper-checked",w.checked),(0,N.Z)(n,y+"-wrapper-disabled",w.disabled),(0,N.Z)(n,y+"-wrapper-rtl","rtl"===s),(0,N.Z)(n,y+"-wrapper-in-form-item",c),n),d,S);return C(v.createElement("label",{className:E,style:f,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},v.createElement(IL,Zt({},w,{type:"radio",prefixCls:y,ref:l})),void 0!==h?v.createElement("span",null,h):null))};var nO=v.forwardRef(tO),iO=v.forwardRef((function(e,t){var n,i=v.useContext(wa),r=i.getPrefixCls,o=i.direction,a=v.useContext(Pa),s=Sf(e.defaultValue,{value:e.value}),l=(0,k.Z)(s,2),c=l[0],u=l[1],d=e.prefixCls,h=e.className,f=void 0===h?"":h,p=e.options,g=e.buttonStyle,m=void 0===g?"outline":g,y=e.disabled,_=e.children,b=e.size,C=e.style,S=e.id,w=e.onMouseEnter,x=e.onMouseLeave,E=e.onFocus,T=e.onBlur,I=r("radio",d),D=I+"-group",L=JL(I),O=(0,k.Z)(L,2),R=O[0],A=O[1],M=_;p&&p.length>0&&(M=p.map((function(e){return"string"===typeof e||"number"===typeof e?v.createElement(nO,{key:e.toString(),prefixCls:I,disabled:y,value:e,checked:c===e},e):v.createElement(nO,{key:"radio-group-value-options-"+e.value,prefixCls:I,disabled:e.disabled||y,value:e.value,checked:c===e.value,style:e.style},e.label)})));var P=b||a,Z=Ja()(D,D+"-"+m,(n={},(0,N.Z)(n,D+"-"+P,P),(0,N.Z)(n,D+"-rtl","rtl"===o),n),f,A);return R(v.createElement("div",Zt({},function(e){return Object.keys(e).reduce((function(t,n){return!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n||n.startsWith("data-__")||(t[n]=e[n]),t}),{})}(e),{className:Z,style:C,onMouseEnter:w,onMouseLeave:x,onFocus:E,onBlur:T,id:S,ref:t}),v.createElement(UL,{value:{onChange:function(t){var n=c,i=t.target.value;"value"in e||u(i);var r=e.onChange;r&&i!==n&&r(t)},value:c,disabled:e.disabled,name:e.name,optionType:e.optionType}},M)))})),rO=v.memo(iO),oO=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},aO=function(e,t){var n=v.useContext(wa).getPrefixCls,i=e.prefixCls,r=oO(e,["prefixCls"]),o=n("radio",i);return v.createElement(YL,{value:"button"},v.createElement(nO,Zt({prefixCls:o},r,{type:"radio",ref:t})))},sO=v.forwardRef(aO),lO=nO;lO.Button=sO,lO.Group=rO,lO.__ANT_RADIO=!0;var cO=lO,uO=v.createContext(null),dO=function(e){for(var t=e.prefixCls,n=e.level,i=e.isStart,r=e.isEnd,o="".concat(t,"-indent-unit"),a=[],s=0;s<n;s+=1){var l;a.push(v.createElement("span",{key:s,className:Ja()(o,(l={},(0,N.Z)(l,"".concat(o,"-start"),i[s]),(0,N.Z)(l,"".concat(o,"-end"),r[s]),l))}))}return v.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},a)},hO=v.memo(dO),fO=["children"];function pO(e,t){return null!==e&&void 0!==e?e:t}function gO(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function vO(e){return function e(t){return Zi(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return li(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,i=t.props,r=i.children,o=Ai(i,fO),a=(0,Ft.Z)({key:n},o),s=e(r);return s.length&&(a.children=s),a})).filter((function(e){return e}))}(e)}function mO(e,t,n){var i=gO(n),r=i._title,o=i.key,a=i.children,s=new Set(!0===t?[]:t),l=[];return function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(c,u){for(var d,h=LO(i?i.pos:"0",u),f=pO(c[o],h),p=0;p<r.length;p+=1){var g=r[p];if(void 0!==c[g]){d=c[g];break}}var v=(0,Ft.Z)((0,Ft.Z)({},ns(c,[].concat((0,_.Z)(r),[o,a]))),{},{title:d,key:f,parent:i,pos:h,children:null,data:c,isStart:[].concat((0,_.Z)(i?i.isStart:[]),[0===u]),isEnd:[].concat((0,_.Z)(i?i.isEnd:[]),[u===n.length-1])});return l.push(v),!0===t||s.has(f)?v.children=e(c[a]||[],v):v.children=[],v}))}(e),l}function yO(e,t,n){var i,r=("object"===(0,Bt.Z)(n)?n:{externalGetKey:n})||{},o=r.childrenPropName,a=r.externalGetKey,s=gO(r.fieldNames),l=s.key,c=s.children,u=o||c;a?"string"===typeof a?i=function(e){return e[a]}:"function"===typeof a&&(i=function(e){return a(e)}):i=function(e,t){return pO(e[l],t)},function n(r,o,a,s){var l=r?r[u]:e,c=r?LO(a.pos,o):"0",d=r?[].concat((0,_.Z)(s),[r]):[];if(r){var h=i(r,c),f={node:r,index:o,pos:c,key:h,parentPos:a.node?a.pos:null,level:a.level+1,nodes:d};t(f)}l&&l.forEach((function(e,t){n(e,t,{node:r,pos:c,level:a?a.level+1:-1},d)}))}(null)}function _O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,i=t.processEntity,r=t.onProcessFinished,o=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=o||l,u={},d={},h={posEntities:u,keyEntities:d};return n&&(h=n(h)||h),yO(e,(function(e){var t=e.node,n=e.index,r=e.pos,o=e.key,a=e.parentPos,s=e.level,l={node:t,nodes:e.nodes,index:n,key:o,pos:r,level:s},c=pO(o,r);u[r]=l,d[c]=l,l.parent=u[a],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),i&&i(l,h)}),{externalGetKey:c,childrenPropName:a,fieldNames:s}),r&&r(h),h}function bO(e,t){var n=t.expandedKeys,i=t.selectedKeys,r=t.loadedKeys,o=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities[e];return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==i.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c}}function CO(e){var t=e.data,n=e.expanded,i=e.selected,r=e.checked,o=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,h=e.active,f=e.eventKey,p=(0,Ft.Z)((0,Ft.Z)({},t),{},{expanded:n,selected:i,checked:r,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:h,key:f});return"props"in p||Object.defineProperty(p,"props",{get:function(){return li(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}var SO=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],wO="open",kO="close",xO=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){var e;(0,b.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={dragNodeHighlight:!1},e.selectHandle=void 0,e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,CO(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,CO(e.props))},e.onSelect=function(t){if(!e.isDisabled()){var n=e.props.context.onNodeSelect;t.preventDefault(),n(t,CO(e.props))}},e.onCheck=function(t){if(!e.isDisabled()){var n=e.props,i=n.disableCheckbox,r=n.checked,o=e.props.context.onNodeCheck;if(e.isCheckable()&&!i){t.preventDefault();var a=!r;o(t,CO(e.props),a)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,CO(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,CO(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,CO(e.props))},e.onDragStart=function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,(0,Mi.Z)(e));try{t.dataTransfer.setData("text/plain","")}catch(i){}},e.onDragEnter=function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,(0,Mi.Z)(e))},e.onDragOver=function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,(0,Mi.Z)(e))},e.onDragLeave=function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,(0,Mi.Z)(e))},e.onDragEnd=function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,(0,Mi.Z)(e))},e.onDrop=function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,(0,Mi.Z)(e))},e.onExpand=function(t){var n=e.props,i=n.loading,r=n.context.onNodeExpand;i||r(t,CO(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?wO:kO},e.hasChildren=function(){var t=e.props.eventKey;return!!((e.props.context.keyEntities[t]||{}).children||[]).length},e.isLeaf=function(){var t=e.props,n=t.isLeaf,i=t.loaded,r=e.props.context.loadData,o=e.hasChildren();return!1!==n&&(n||!r&&!o||r&&i&&!o)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n},e.syncLoadData=function(t){var n=t.expanded,i=t.loading,r=t.loaded,o=e.props.context,a=o.loadData,s=o.onNodeLoad;i||a&&n&&!e.isLeaf()&&(e.hasChildren()||r||s(CO(e.props)))},e.isDraggable=function(){var t=e.props,n=t.data,i=t.context.draggable;return!(!i||i.nodeDraggable&&!i.nodeDraggable(n))},e.renderDragHandler=function(){var t=e.props.context,n=t.draggable,i=t.prefixCls;return(null===n||void 0===n?void 0:n.icon)?v.createElement("span",{className:"".concat(i,"-draggable-icon")},n.icon):null},e.renderSwitcherIconDom=function(t){var n=e.props.switcherIcon,i=e.props.context.switcherIcon,r=n||i;return"function"===typeof r?r((0,Ft.Z)((0,Ft.Z)({},e.props),{},{isLeaf:t})):r},e.renderSwitcher=function(){var t=e.props.expanded,n=e.props.context.prefixCls;if(e.isLeaf()){var i=e.renderSwitcherIconDom(!0);return!1!==i?v.createElement("span",{className:Ja()("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},i):null}var r=Ja()("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?wO:kO)),o=e.renderSwitcherIconDom(!1);return!1!==o?v.createElement("span",{onClick:e.onExpand,className:r},o):null},e.renderCheckbox=function(){var t=e.props,n=t.checked,i=t.halfChecked,r=t.disableCheckbox,o=e.props.context.prefixCls,a=e.isDisabled(),s=e.isCheckable();if(!s)return null;var l="boolean"!==typeof s?s:null;return v.createElement("span",{className:Ja()("".concat(o,"-checkbox"),n&&"".concat(o,"-checkbox-checked"),!n&&i&&"".concat(o,"-checkbox-indeterminate"),(a||r)&&"".concat(o,"-checkbox-disabled")),onClick:e.onCheck},l)},e.renderIcon=function(){var t=e.props.loading,n=e.props.context.prefixCls;return v.createElement("span",{className:Ja()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})},e.renderSelector=function(){var t,n,i=e.state.dragNodeHighlight,r=e.props,o=r.title,a=r.selected,s=r.icon,l=r.loading,c=r.data,u=e.props.context,d=u.prefixCls,h=u.showIcon,f=u.icon,p=u.loadData,g=u.titleRender,m=e.isDisabled(),y="".concat(d,"-node-content-wrapper");if(h){var _=s||f;t=_?v.createElement("span",{className:Ja()("".concat(d,"-iconEle"),"".concat(d,"-icon__customize"))},"function"===typeof _?_(e.props):_):e.renderIcon()}else p&&l&&(t=e.renderIcon());n="function"===typeof o?o(c):g?g(c):o;var b=v.createElement("span",{className:"".concat(d,"-title")},n);return v.createElement("span",{ref:e.setSelectHandle,title:"string"===typeof o?o:"",className:Ja()("".concat(y),"".concat(y,"-").concat(e.getNodeState()||"normal"),!m&&(a||i)&&"".concat(d,"-node-selected")),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick},t,b,e.renderDropIndicator())},e.renderDropIndicator=function(){var t=e.props,n=t.disabled,i=t.eventKey,r=e.props.context,o=r.draggable,a=r.dropLevelOffset,s=r.dropPosition,l=r.prefixCls,c=r.indent,u=r.dropIndicatorRender,d=r.dragOverNodeKey,h=r.direction;return!n&&!1!==o&&d===i?u({dropPosition:s,dropLevelOffset:a,indent:c,prefixCls:l,direction:h}):null},e}return(0,C.Z)(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"===typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,i=t.className,r=t.style,o=t.dragOver,a=t.dragOverGapTop,s=t.dragOverGapBottom,l=t.isLeaf,c=t.isStart,u=t.isEnd,d=t.expanded,h=t.selected,f=t.checked,p=t.halfChecked,g=t.loading,m=t.domRef,y=t.active,_=(t.data,t.onMouseMove),b=t.selectable,C=Ai(t,SO),S=this.props.context,w=S.prefixCls,k=S.filterTreeNode,x=S.keyEntities,E=S.dropContainerKey,T=S.dropTargetKey,I=S.draggingNodeKey,D=this.isDisabled(),L=wv(C,{aria:!0,data:!0}),O=(x[n]||{}).level,R=u[u.length-1],A=this.isDraggable(),M=!D&&A,P=I===n,Z=void 0!==b?{"aria-selected":!!b}:void 0;return v.createElement("div",Zt({ref:m,className:Ja()(i,"".concat(w,"-treenode"),(e={},(0,N.Z)(e,"".concat(w,"-treenode-disabled"),D),(0,N.Z)(e,"".concat(w,"-treenode-switcher-").concat(d?"open":"close"),!l),(0,N.Z)(e,"".concat(w,"-treenode-checkbox-checked"),f),(0,N.Z)(e,"".concat(w,"-treenode-checkbox-indeterminate"),p),(0,N.Z)(e,"".concat(w,"-treenode-selected"),h),(0,N.Z)(e,"".concat(w,"-treenode-loading"),g),(0,N.Z)(e,"".concat(w,"-treenode-active"),y),(0,N.Z)(e,"".concat(w,"-treenode-leaf-last"),R),(0,N.Z)(e,"".concat(w,"-treenode-draggable"),A),(0,N.Z)(e,"dragging",P),(0,N.Z)(e,"drop-target",T===n),(0,N.Z)(e,"drop-container",E===n),(0,N.Z)(e,"drag-over",!D&&o),(0,N.Z)(e,"drag-over-gap-top",!D&&a),(0,N.Z)(e,"drag-over-gap-bottom",!D&&s),(0,N.Z)(e,"filter-node",k&&k(CO(this.props))),e)),style:r,draggable:M,"aria-grabbed":P,onDragStart:M?this.onDragStart:void 0,onDragEnter:A?this.onDragEnter:void 0,onDragOver:A?this.onDragOver:void 0,onDragLeave:A?this.onDragLeave:void 0,onDrop:A?this.onDrop:void 0,onDragEnd:A?this.onDragEnd:void 0,onMouseMove:_},Z,L),v.createElement(hO,{prefixCls:w,level:O,isStart:c,isEnd:u}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(v.Component),EO=function(e){return v.createElement(uO.Consumer,null,(function(t){return v.createElement(xO,Zt({},e,{context:t}))}))};EO.displayName="TreeNode",EO.defaultProps={title:"---"},EO.isTreeNode=1;var TO=EO;function NO(e,t){if(!e)return[];var n=e.slice(),i=n.indexOf(t);return i>=0&&n.splice(i,1),n}function IO(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function DO(e){return e.split("-")}function LO(e,t){return"".concat(e,"-").concat(t)}function OO(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var i=t.key,r=t.children;n.push(i),e(r)}))}(t[e].children),n}function RO(e){if(e.parent){var t=DO(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function AO(e,t,n,i,r,o,a,s,l,c){var u,d=e.clientX,h=e.clientY,f=e.target.getBoundingClientRect(),p=f.top,g=f.height,v=(("rtl"===c?-1:1)*(((null===r||void 0===r?void 0:r.x)||0)-d)-12)/i,m=s[n.props.eventKey];if(h<p+g/2){var y=a.findIndex((function(e){return e.key===m.key})),_=a[y<=0?0:y-1].key;m=s[_]}var b=m.key,C=m,S=m.key,w=0,k=0;if(!l.includes(b))for(var x=0;x<v&&RO(m);x+=1)m=m.parent,k+=1;var E=t.props.data,T=m.node,N=!0;return function(e){var t=DO(e.pos);return 0===Number(t[t.length-1])}(m)&&0===m.level&&h<p+g/2&&o({dragNode:E,dropNode:T,dropPosition:-1})&&m.key===n.props.eventKey?w=-1:(C.children||[]).length&&l.includes(S)?o({dragNode:E,dropNode:T,dropPosition:0})?w=0:N=!1:0===k?v>-1.5?o({dragNode:E,dropNode:T,dropPosition:1})?w=1:N=!1:o({dragNode:E,dropNode:T,dropPosition:0})?w=0:o({dragNode:E,dropNode:T,dropPosition:1})?w=1:N=!1:o({dragNode:E,dropNode:T,dropPosition:1})?w=1:N=!1,{dropPosition:w,dropLevelOffset:k,dropTargetKey:m.key,dropTargetPos:m.pos,dragOverNodeKey:S,dropContainerKey:0===w?null:(null===(u=m.parent)||void 0===u?void 0:u.key)||null,dropAllowed:N}}function MO(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function PO(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,Bt.Z)(e))return li(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function ZO(e,t){var n=new Set;function i(e){if(!n.has(e)){var r=t[e];if(r){n.add(e);var o=r.parent;r.node.disabled||o&&i(o.key)}}}return(e||[]).forEach((function(e){i(e)})),(0,_.Z)(n)}var FO=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],BO=function(e,t){var n=e.className,i=e.style,r=e.motion,o=e.motionNodes,a=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,d=Ai(e,FO),h=v.useState(!0),f=(0,k.Z)(h,2),p=f[0],g=f[1],m=v.useContext(uO).prefixCls,y=v.useRef(!1),_=function(){y.current||l(),y.current=!0};return(0,v.useEffect)((function(){o&&"hide"===a&&p&&g(!1)}),[o]),(0,v.useEffect)((function(){return o&&s(),function(){o&&_()}}),[]),o?v.createElement(xc,Zt({ref:t,visible:p},r,{motionAppear:"show"===a,onAppearEnd:_,onLeaveEnd:_}),(function(e,t){var n=e.className,i=e.style;return v.createElement("div",{ref:t,className:Ja()("".concat(m,"-treenode-motion"),n),style:i},o.map((function(e){var t=Zt({},e.data),n=e.title,i=e.key,r=e.isStart,o=e.isEnd;delete t.children;var a=bO(i,u);return v.createElement(TO,Zt({},t,a,{title:n,active:c,data:e.data,key:i,isStart:r,isEnd:o}))})))})):v.createElement(TO,Zt({domRef:t,className:n,style:i},d,{active:c}))};BO.displayName="MotionTreeNode";var HO=v.forwardRef(BO);function zO(e,t,n){var i=e.findIndex((function(e){return e.key===n})),r=e[i+1],o=t.findIndex((function(e){return e.key===n}));if(r){var a=t.findIndex((function(e){return e.key===r.key}));return t.slice(o+1,a)}return t.slice(o+1)}var jO=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],VO={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},WO=function(){},UO="RC_TREE_MOTION_".concat(Math.random()),GO={key:UO},KO={key:UO,level:0,index:0,pos:"0",node:GO,nodes:[GO]},YO={parent:null,children:[],pos:KO.pos,data:GO,title:null,key:UO,isStart:[],isEnd:[]};function qO(e,t,n,i){return!1!==t&&n?e.slice(0,Math.ceil(n/i)+1):e}function $O(e){return pO(e.key,e.pos)}var XO=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.data,r=(e.selectable,e.checkable,e.expandedKeys),o=e.selectedKeys,a=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,d=e.disabled,h=e.dragging,f=e.dragOverNodeKey,p=e.dropPosition,g=e.motion,m=e.height,y=e.itemHeight,_=e.virtual,b=e.focusable,C=e.activeItem,S=e.focused,w=e.tabIndex,x=e.onKeyDown,E=e.onFocus,T=e.onBlur,N=e.onActiveChange,I=e.onListChangeStart,D=e.onListChangeEnd,L=Ai(e,jO),O=v.useRef(null),R=v.useRef(null);v.useImperativeHandle(t,(function(){return{scrollTo:function(e){O.current.scrollTo(e)},getIndentWidth:function(){return R.current.offsetWidth}}}));var A=v.useState(r),M=(0,k.Z)(A,2),P=M[0],Z=M[1],F=v.useState(i),B=(0,k.Z)(F,2),H=B[0],z=B[1],j=v.useState(i),V=(0,k.Z)(j,2),W=V[0],U=V[1],G=v.useState([]),K=(0,k.Z)(G,2),Y=K[0],q=K[1],$=v.useState(null),X=(0,k.Z)($,2),Q=X[0],J=X[1],ee=v.useRef(i);function te(){var e=ee.current;z(e),U(e),q([]),J(null),D()}ee.current=i,v.useEffect((function(){Z(r);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,i=t.length;if(1!==Math.abs(n-i))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var i=t.filter((function(e){return!n.has(e)}));return 1===i.length?i[0]:null}return n<i?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(P,r);if(null!==e.key)if(e.add){var t=H.findIndex((function(t){return t.key===e.key})),n=qO(zO(H,i,e.key),_,m,y),o=H.slice();o.splice(t+1,0,YO),U(o),q(n),J("show")}else{var a=i.findIndex((function(t){return t.key===e.key})),s=qO(zO(i,H,e.key),_,m,y),l=i.slice();l.splice(a+1,0,YO),U(l),q(s),J("hide")}else H!==i&&(z(i),U(i))}),[r,i]),v.useEffect((function(){h||te()}),[h]);var ne=g?W:i,ie={expandedKeys:r,selectedKeys:o,loadedKeys:s,loadingKeys:l,checkedKeys:a,halfCheckedKeys:c,dragOverNodeKey:f,dropPosition:p,keyEntities:u};return v.createElement(v.Fragment,null,S&&C&&v.createElement("span",{style:VO,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(C)),v.createElement("div",null,v.createElement("input",{style:VO,disabled:!1===b||d,tabIndex:!1!==b?w:null,onKeyDown:x,onFocus:E,onBlur:T,value:"",onChange:WO,"aria-label":"for screen reader"})),v.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},v.createElement("div",{className:"".concat(n,"-indent")},v.createElement("div",{ref:R,className:"".concat(n,"-indent-unit")}))),v.createElement(HN,Zt({},L,{data:ne,itemKey:$O,height:m,fullHeight:!1,virtual:_,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:O,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return $O(e)===UO}))&&te()}}),(function(e){var t=e.pos,n=Zt({},e.data),i=e.title,r=e.key,o=e.isStart,a=e.isEnd,s=pO(r,t);delete n.key,delete n.children;var l=bO(s,ie);return v.createElement(HO,Zt({},n,l,{title:i,active:!!C&&r===C.key,pos:t,data:e.data,isStart:o,isEnd:a,motion:g,motionNodes:r===UO?Y:null,motionType:Q,onMotionStart:I,onMotionEnd:te,treeNodeRequiredProps:ie,onMouseMove:function(){N(null)}}))})))}));XO.displayName="NodeList";var QO=XO;function JO(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function eR(e){var t=e||{},n=t.disabled,i=t.disableCheckbox,r=t.checkable;return!(!n&&!i)||!1===r}function tR(e,t,n,i){var r,o=[];r=i||eR;var a,s=new Set(e.filter((function(e){var t=!!n[e];return t||o.push(e),t}))),l=new Map,c=0;return Object.keys(n).forEach((function(e){var t=n[e],i=t.level,r=l.get(i);r||(r=new Set,l.set(i,r)),r.add(t),c=Math.max(c,i)})),li(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,i){for(var r=new Set(e),o=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,a=void 0===o?[]:o;r.has(t)&&!i(n)&&a.filter((function(e){return!i(e.node)})).forEach((function(e){r.add(e.key)}))}));for(var s=new Set,l=n;l>=0;l-=1)(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!i(n)&&e.parent&&!s.has(e.parent.key))if(i(e.parent.node))s.add(t.key);else{var a=!0,l=!1;(t.children||[]).filter((function(e){return!i(e.node)})).forEach((function(e){var t=e.key,n=r.has(t);a&&!n&&(a=!1),l||!n&&!o.has(t)||(l=!0)})),a&&r.add(t.key),l&&o.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(JO(o,r))}}(s,l,c,r):function(e,t,n,i,r){for(var o=new Set(e),a=new Set(t),s=0;s<=i;s+=1)(n.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,s=void 0===i?[]:i;o.has(t)||a.has(t)||r(n)||s.filter((function(e){return!r(e.node)})).forEach((function(e){o.delete(e.key)}))}));a=new Set;for(var l=new Set,c=i;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var i=!0,s=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);i&&!n&&(i=!1),s||!n&&!a.has(t)||(s=!0)})),i||o.delete(t.key),s&&a.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(JO(a,o))}}(s,t.halfCheckedKeys,l,c,r),a}var nR=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){var e;(0,b.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).destroyed=!1,e.delayedDragEnterLogic=void 0,e.loadingRetryTimes={},e.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:gO()},e.dragStartMousePosition=null,e.dragNode=void 0,e.currentMouseOverDroppableNodeKey=null,e.listRef=v.createRef(),e.onNodeDragStart=function(t,n){var i=e.state,r=i.expandedKeys,o=i.keyEntities,a=e.props.onDragStart,s=n.props.eventKey;e.dragNode=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var l=NO(r,s);e.setState({draggingNodeKey:s,dragChildrenKeys:OO(s,o),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(l),window.addEventListener("dragend",e.onWindowDragEnd),null===a||void 0===a||a({event:t,node:CO(n.props)})},e.onNodeDragEnter=function(t,n){var i=e.state,r=i.expandedKeys,o=i.keyEntities,a=i.dragChildrenKeys,s=i.flattenNodes,l=i.indent,c=e.props,u=c.onDragEnter,d=c.onExpand,h=c.allowDrop,f=c.direction,p=n.props,g=p.pos,v=p.eventKey,m=(0,Mi.Z)(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==v&&(e.currentMouseOverDroppableNodeKey=v),m){var y=AO(t,m,n,l,e.dragStartMousePosition,h,s,o,r,f),b=y.dropPosition,C=y.dropLevelOffset,S=y.dropTargetKey,w=y.dropContainerKey,k=y.dropTargetPos,x=y.dropAllowed,E=y.dragOverNodeKey;-1===a.indexOf(S)&&x?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),m.props.eventKey!==n.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[g]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var i=(0,_.Z)(r),a=o[n.props.eventKey];a&&(a.children||[]).length&&(i=IO(r,n.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(i),null===d||void 0===d||d(i,{node:CO(n.props),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),m.props.eventKey!==S||0!==C?(e.setState({dragOverNodeKey:E,dropPosition:b,dropLevelOffset:C,dropTargetKey:S,dropContainerKey:w,dropTargetPos:k,dropAllowed:x}),null===u||void 0===u||u({event:t,node:CO(n.props),expandedKeys:r})):e.resetDragState()):e.resetDragState()}else e.resetDragState()},e.onNodeDragOver=function(t,n){var i=e.state,r=i.dragChildrenKeys,o=i.flattenNodes,a=i.keyEntities,s=i.expandedKeys,l=i.indent,c=e.props,u=c.onDragOver,d=c.allowDrop,h=c.direction,f=(0,Mi.Z)(e).dragNode;if(f){var p=AO(t,f,n,l,e.dragStartMousePosition,d,o,a,s,h),g=p.dropPosition,v=p.dropLevelOffset,m=p.dropTargetKey,y=p.dropContainerKey,_=p.dropAllowed,b=p.dropTargetPos,C=p.dragOverNodeKey;-1===r.indexOf(m)&&_&&(f.props.eventKey===m&&0===v?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():g===e.state.dropPosition&&v===e.state.dropLevelOffset&&m===e.state.dropTargetKey&&y===e.state.dropContainerKey&&b===e.state.dropTargetPos&&_===e.state.dropAllowed&&C===e.state.dragOverNodeKey||e.setState({dropPosition:g,dropLevelOffset:v,dropTargetKey:m,dropContainerKey:y,dropTargetPos:b,dropAllowed:_,dragOverNodeKey:C}),null===u||void 0===u||u({event:t,node:CO(n.props)}))}},e.onNodeDragLeave=function(t,n){e.currentMouseOverDroppableNodeKey!==n.props.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var i=e.props.onDragLeave;null===i||void 0===i||i({event:t,node:CO(n.props)})},e.onWindowDragEnd=function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(t,n){var i=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null===i||void 0===i||i({event:t,node:CO(n.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(t,n){var i,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.state,a=o.dragChildrenKeys,s=o.dropPosition,l=o.dropTargetKey,c=o.dropTargetPos,u=o.dropAllowed;if(u){var d=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==l){var h=(0,Ft.Z)((0,Ft.Z)({},bO(l,e.getTreeNodeRequiredProps())),{},{active:(null===(i=e.getActiveItem())||void 0===i?void 0:i.key)===l,data:e.state.keyEntities[l].node}),f=-1!==a.indexOf(l);li(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=DO(c),g={event:t,node:CO(h),dragNode:e.dragNode?CO(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(a),dropToGap:0!==s,dropPosition:s+Number(p[p.length-1])};r||null===d||void 0===d||d(g),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,n){var i=e.state,r=i.expandedKeys,o=i.flattenNodes,a=n.expanded,s=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var l=o.filter((function(e){return e.key===s}))[0],c=CO((0,Ft.Z)((0,Ft.Z)({},bO(s,e.getTreeNodeRequiredProps())),{},{data:l.data}));e.setExpandedKeys(a?NO(r,s):IO(r,s)),e.onNodeExpand(t,c)}},e.onNodeClick=function(t,n){var i=e.props,r=i.onClick;"click"===i.expandAction&&e.triggerExpandActionExpand(t,n),null===r||void 0===r||r(t,n)},e.onNodeDoubleClick=function(t,n){var i=e.props,r=i.onDoubleClick;"doubleClick"===i.expandAction&&e.triggerExpandActionExpand(t,n),null===r||void 0===r||r(t,n)},e.onNodeSelect=function(t,n){var i=e.state.selectedKeys,r=e.state,o=r.keyEntities,a=r.fieldNames,s=e.props,l=s.onSelect,c=s.multiple,u=n.selected,d=n[a.key],h=!u,f=(i=h?c?IO(i,d):[d]:NO(i,d)).map((function(e){var t=o[e];return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:i}),null===l||void 0===l||l(i,{event:"select",selected:h,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,i){var r,o=e.state,a=o.keyEntities,s=o.checkedKeys,l=o.halfCheckedKeys,c=e.props,u=c.checkStrictly,d=c.onCheck,h=n.key,f={event:"check",node:n,checked:i,nativeEvent:t.nativeEvent};if(u){var p=i?IO(s,h):NO(s,h);r={checked:p,halfChecked:NO(l,h)},f.checkedNodes=p.map((function(e){return a[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:p})}else{var g=tR([].concat((0,_.Z)(s),[h]),!0,a),v=g.checkedKeys,m=g.halfCheckedKeys;if(!i){var y=new Set(v);y.delete(h);var b=tR(Array.from(y),{checked:!1,halfCheckedKeys:m},a);v=b.checkedKeys,m=b.halfCheckedKeys}r=v,f.checkedNodes=[],f.checkedNodesPositions=[],f.halfCheckedKeys=m,v.forEach((function(e){var t=a[e];if(t){var n=t.node,i=t.pos;f.checkedNodes.push(n),f.checkedNodesPositions.push({node:n,pos:i})}})),e.setUncontrolledState({checkedKeys:v},!1,{halfCheckedKeys:m})}null===d||void 0===d||d(r,f)},e.onNodeLoad=function(t){var n=t.key,i=new Promise((function(i,r){e.setState((function(o){var a=o.loadedKeys,s=void 0===a?[]:a,l=o.loadingKeys,c=void 0===l?[]:l,u=e.props,d=u.loadData,h=u.onLoad;return d&&-1===s.indexOf(n)&&-1===c.indexOf(n)?(d(t).then((function(){var r=IO(e.state.loadedKeys,n);null===h||void 0===h||h(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState((function(e){return{loadingKeys:NO(e.loadingKeys,n)}})),i()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:NO(e.loadingKeys,n)}})),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var o=e.state.loadedKeys;li(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:IO(o,n)}),i()}r(t)})),{loadingKeys:IO(c,n)}):null}))}));return i.catch((function(){})),i},e.onNodeMouseEnter=function(t,n){var i=e.props.onMouseEnter;null===i||void 0===i||i({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var i=e.props.onMouseLeave;null===i||void 0===i||i({event:t,node:n})},e.onNodeContextMenu=function(t,n){var i=e.props.onRightClick;i&&(t.preventDefault(),i({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];null===t||void 0===t||t.apply(void 0,i)},e.onBlur=function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];null===t||void 0===t||t.apply(void 0,i)},e.getTreeNodeRequiredProps=function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}},e.setExpandedKeys=function(t){var n=e.state,i=mO(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:i},!0)},e.onNodeExpand=function(t,n){var i=e.state.expandedKeys,r=e.state,o=r.listChanging,a=r.fieldNames,s=e.props,l=s.onExpand,c=s.loadData,u=n.expanded,d=n[a.key];if(!o){var h=i.indexOf(d),f=!u;if(li(u&&-1!==h||!u&&-1===h,"Expand state not sync with index check"),i=f?IO(i,d):NO(i,d),e.setExpandedKeys(i),null===l||void 0===l||l(i,{node:n,expanded:f,nativeEvent:t.nativeEvent}),f&&c){var p=e.onNodeLoad(n);p&&p.then((function(){var t=mO(e.state.treeData,i,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=NO(e.state.expandedKeys,d);e.setExpandedKeys(t)}))}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))},e.onActiveChange=function(t){var n=e.state.activeKey,i=e.props.onActiveChange;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t}),null===i||void 0===i||i(t))},e.getActiveItem=function(){var t=e.state,n=t.activeKey,i=t.flattenNodes;return null===n?null:i.find((function(e){return e.key===n}))||null},e.offsetActiveKey=function(t){var n=e.state,i=n.flattenNodes,r=n.activeKey,o=i.findIndex((function(e){return e.key===r}));-1===o&&t<0&&(o=i.length);var a=i[o=(o+t+i.length)%i.length];if(a){var s=a.key;e.onActiveChange(s)}else e.onActiveChange(null)},e.onKeyDown=function(t){var n=e.state,i=n.activeKey,r=n.expandedKeys,o=n.checkedKeys,a=n.fieldNames,s=e.props,l=s.onKeyDown,c=s.checkable,u=s.selectable;switch(t.which){case vv.UP:e.offsetActiveKey(-1),t.preventDefault();break;case vv.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var h=e.getTreeNodeRequiredProps(),f=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,p=CO((0,Ft.Z)((0,Ft.Z)({},bO(i,h)),{},{data:d.data,active:!0}));switch(t.which){case vv.LEFT:f&&r.includes(i)?e.onNodeExpand({},p):d.parent&&e.onActiveChange(d.parent.key),t.preventDefault();break;case vv.RIGHT:f&&!r.includes(i)?e.onNodeExpand({},p):d.children&&d.children.length&&e.onActiveChange(d.children[0].key),t.preventDefault();break;case vv.ENTER:case vv.SPACE:!c||p.disabled||!1===p.checkable||p.disableCheckbox?c||!u||p.disabled||!1===p.selectable||e.onNodeSelect({},p):e.onNodeCheck({},p,!o.includes(i))}}null===l||void 0===l||l(t)},e.setUncontrolledState=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,o=!0,a={};Object.keys(t).forEach((function(n){n in e.props?o=!1:(r=!0,a[n]=t[n])})),!r||n&&!o||e.setState((0,Ft.Z)((0,Ft.Z)({},a),i))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,C.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,n=this.state,i=n.focused,r=n.flattenNodes,o=n.keyEntities,a=n.draggingNodeKey,s=n.activeKey,l=n.dropLevelOffset,c=n.dropContainerKey,u=n.dropTargetKey,d=n.dropPosition,h=n.dragOverNodeKey,f=n.indent,p=this.props,g=p.prefixCls,m=p.className,y=p.style,_=p.showLine,b=p.focusable,C=p.tabIndex,S=void 0===C?0:C,w=p.selectable,k=p.showIcon,x=p.icon,E=p.switcherIcon,T=p.draggable,I=p.checkable,D=p.checkStrictly,L=p.disabled,O=p.motion,R=p.loadData,A=p.filterTreeNode,M=p.height,P=p.itemHeight,Z=p.virtual,F=p.titleRender,B=p.dropIndicatorRender,H=p.onContextMenu,z=p.onScroll,j=p.direction,V=p.rootClassName,W=p.rootStyle,U=wv(this.props,{aria:!0,data:!0});return T&&(t="object"===(0,Bt.Z)(T)?T:"function"===typeof T?{nodeDraggable:T}:{}),v.createElement(uO.Provider,{value:{prefixCls:g,selectable:w,showIcon:k,icon:x,switcherIcon:E,draggable:t,draggingNodeKey:a,checkable:I,checkStrictly:D,disabled:L,keyEntities:o,dropLevelOffset:l,dropContainerKey:c,dropTargetKey:u,dropPosition:d,dragOverNodeKey:h,indent:f,direction:j,dropIndicatorRender:B,loadData:R,filterTreeNode:A,titleRender:F,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},v.createElement("div",{role:"tree",className:Ja()(g,m,V,(e={},(0,N.Z)(e,"".concat(g,"-show-line"),_),(0,N.Z)(e,"".concat(g,"-focused"),i),(0,N.Z)(e,"".concat(g,"-active-focused"),null!==s),e)),style:W},v.createElement(QO,Zt({ref:this.listRef,prefixCls:g,style:y,data:r,disabled:L,selectable:w,checkable:!!I,motion:O,dragging:null!==a,height:M,itemHeight:P,virtual:Z,focusable:b,focused:i,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:z},this.getTreeNodeRequiredProps(),U))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,i=t.prevProps,r={prevProps:e};function o(t){return!i&&t in e||i&&i[t]!==e[t]}var a=t.fieldNames;if(o("fieldNames")&&(a=gO(e.fieldNames),r.fieldNames=a),o("treeData")?n=e.treeData:o("children")&&(li(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=vO(e.children)),n){r.treeData=n;var s=_O(n,{fieldNames:a});r.keyEntities=(0,Ft.Z)((0,N.Z)({},UO,KO),s.keyEntities)}var l,c=r.keyEntities||t.keyEntities;if(o("expandedKeys")||i&&o("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!i&&e.defaultExpandParent?ZO(e.expandedKeys,c):e.expandedKeys;else if(!i&&e.defaultExpandAll){var u=(0,Ft.Z)({},c);delete u[UO],r.expandedKeys=Object.keys(u).map((function(e){return u[e].key}))}else!i&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?ZO(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var d=mO(n||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=d}if((e.selectable&&(o("selectedKeys")?r.selectedKeys=MO(e.selectedKeys,e):!i&&e.defaultSelectedKeys&&(r.selectedKeys=MO(e.defaultSelectedKeys,e))),e.checkable)&&(o("checkedKeys")?l=PO(e.checkedKeys)||{}:!i&&e.defaultCheckedKeys?l=PO(e.defaultCheckedKeys)||{}:n&&(l=PO(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),l)){var h=l,f=h.checkedKeys,p=void 0===f?[]:f,g=h.halfCheckedKeys,v=void 0===g?[]:g;if(!e.checkStrictly){var m=tR(p,!0,c);p=m.checkedKeys,v=m.halfCheckedKeys}r.checkedKeys=p,r.halfCheckedKeys=v}return o("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),n}(v.Component);nR.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,i=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:r.top=0,r.left=-n*i;break;case 1:r.bottom=0,r.left=-n*i;break;case 0:r.bottom=0,r.left=i}return v.createElement("div",{style:r})},allowDrop:function(){return!0},expandAction:!1},nR.TreeNode=TO;var iR=nR,rR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},oR=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:rR}))};oR.displayName="HolderOutlined";var aR=v.forwardRef(oR);function sR(e){var t,n=e.dropPosition,i=e.dropLevelOffset,r=e.prefixCls,o=e.indent,a=e.direction,s=void 0===a?"ltr":a,l="ltr"===s?"left":"right",c="ltr"===s?"right":"left",u=(t={},(0,N.Z)(t,l,-i*o+4),(0,N.Z)(t,c,0),t);switch(n){case-1:u.top=-3;break;case 1:u.bottom=-3;break;default:u.bottom=-3,u[l]=o+4}return v.createElement("div",{style:u,className:r+"-drop-indicator"})}var lR={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},cR=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:lR}))};cR.displayName="CaretDownFilled";var uR=v.forwardRef(cR),dR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},hR=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:dR}))};hR.displayName="FileOutlined";var fR=v.forwardRef(hR),pR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},gR=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:pR}))};gR.displayName="MinusSquareOutlined";var vR=v.forwardRef(gR),mR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},yR=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:mR}))};yR.displayName="PlusSquareOutlined";var _R=v.forwardRef(yR);function bR(e,t,n,i){var r,o=i.isLeaf,a=i.expanded;if(i.loading)return v.createElement(Fu,{className:e+"-switcher-loading-icon"});if(n&&"object"===(0,Bt.Z)(n)&&(r=n.showLeafIcon),o){if(!n)return null;if("boolean"!==typeof r&&r){var s="function"===typeof r?r(i):r,l=e+"-switcher-line-custom-icon";return is(s)?os(s,{className:Ja()(s.props.className||"",l)}):s}return r?v.createElement(fR,{className:e+"-switcher-line-icon"}):v.createElement("span",{className:e+"-switcher-leaf-line"})}var c=e+"-switcher-icon",u="function"===typeof t?t(i):t;return is(u)?os(u,{className:Ja()(u.props.className||"",c)}):u||(n?a?v.createElement(vR,{className:e+"-switcher-line-icon"}):v.createElement(_R,{className:e+"-switcher-line-icon"}):v.createElement(uR,{className:c}))}var CR=new Ti("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),SR=function(e,t){var n,i,r,o,a,s,l=t.treeCls,c=t.treeNodeCls,u=t.treeNodePadding,d=t.treeTitleHeight,h=(d-t.fontSizeLG)/2,f=t.paddingXS;return(0,N.Z)({},l,Zt(Zt({},Fa(t)),(s={background:t.colorBgContainer,borderRadius:t.borderRadius,transition:"background-color "+t.motionDurationSlow,"&&-rtl":(0,N.Z)({},l+"-switcher",{"&_close":(0,N.Z)({},l+"-switcher-icon",{svg:{transform:"rotate(90deg)"}})}),"&-focused:not(:hover):not(&-active-focused)":Zt({},za(t))},(0,N.Z)(s,l+"-list-holder-inner",{alignItems:"flex-start"}),(0,N.Z)(s,"&"+l+"-block-node",(0,N.Z)({},l+"-list-holder-inner",(n={alignItems:"stretch"},(0,N.Z)(n,l+"-node-content-wrapper",{flex:"auto"}),(0,N.Z)(n,c+".dragging",{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:u,insetInlineStart:0,border:"1px solid "+t.colorPrimary,opacity:0,animationName:CR,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}),n))),(0,N.Z)(s,""+c,(r={display:"flex",alignItems:"flex-start",padding:"0 0 "+u+"px 0",outline:"none","&-rtl":{direction:"rtl"},"&-disabled":(0,N.Z)({},l+"-node-content-wrapper",{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}})},(0,N.Z)(r,"&-active "+l+"-node-content-wrapper",Zt({},za(t))),(0,N.Z)(r,"&:not(&-disabled).filter-node "+l+"-title",{color:"inherit",fontWeight:500}),(0,N.Z)(r,"&-draggable",(i={},(0,N.Z)(i,l+"-draggable-icon",(0,N.Z)({width:d,lineHeight:d+"px",textAlign:"center",visibility:"visible",opacity:.2,transition:"opacity "+t.motionDurationSlow},c+":hover &",{opacity:.45})),(0,N.Z)(i,"&"+c+"-disabled",(0,N.Z)({},l+"-draggable-icon",{visibility:"hidden"})),i)),r)),(0,N.Z)(s,l+"-indent",{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:d}}),(0,N.Z)(s,l+"-draggable-icon",{visibility:"hidden"}),(0,N.Z)(s,l+"-switcher",Zt(Zt({},function(e,t){return(0,N.Z)({},"."+e+"-switcher-icon",{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:"transform "+t.motionDurationSlow}})}(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:d,margin:0,lineHeight:d+"px",textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":(0,N.Z)({},l+"-switcher-icon",{svg:{transform:"rotate(-90deg)"}}),"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:d/2,bottom:-u,marginInlineStart:-1,borderInlineEnd:"1px solid "+t.colorBorder,content:'""'},"&:after":{position:"absolute",width:d/2*.8,height:d/2,borderBottom:"1px solid "+t.colorBorder,content:'""'}}})),(0,N.Z)(s,l+"-checkbox",{top:"initial",marginInlineEnd:f,marginBlockStart:h}),(0,N.Z)(s,"\n "+l+"-node-content-wrapper,\n "+l+"-checkbox + span\n ",(o={display:"flex",flexWrap:"nowrap",position:"relative",zIndex:"auto",minHeight:d,margin:0,padding:"0 "+t.paddingXS/2+"px",color:"inherit",lineHeight:d+"px",background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:"all "+t.motionDurationMid+", border 0s, line-height 0s, box-shadow 0s","&:hover":{backgroundColor:t.controlItemBgHover}},(0,N.Z)(o,"&"+l+"-node-selected",{backgroundColor:t.controlOutline}),(0,N.Z)(o,l+"-iconEle",{display:"inline-block",width:d,height:d,lineHeight:d+"px",textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}),o)),(0,N.Z)(s,l+"-unselectable "+l+"-node-content-wrapper:hover",{backgroundColor:"transparent"}),(0,N.Z)(s,l+"-node-content-wrapper",Zt({lineHeight:d+"px",userSelect:"none"},function(e,t){return(0,N.Z)({},"."+e+"-drop-indicator",{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:t.lineWidthBold+"px solid "+t.colorPrimary,borderRadius:"50%",content:'""'}})}(e,t))),(0,N.Z)(s,c+".drop-container",{"> [draggable]":{boxShadow:"0 0 0 2px "+t.colorPrimary}}),(0,N.Z)(s,"&-show-line",(a={},(0,N.Z)(a,l+"-indent",{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:d/2,bottom:-u,borderInlineEnd:"1px solid "+t.colorBorder,content:'""'},"&-end":{"&:before":{display:"none"}}}}),(0,N.Z)(a,l+"-switcher",{background:t.colorBgContainer,"&-line-icon":{verticalAlign:"-0.15em"}}),a)),(0,N.Z)(s,c+"-leaf-last",(0,N.Z)({},l+"-switcher",{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:d/2+"px !important"}}})),s)))},wR=function(e){var t,n,i=e.treeCls,r=e.treeNodeCls,o=e.treeNodePadding;return(0,N.Z)({},""+i+i+"-directory",(0,N.Z)({},r,(n={position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:"background-color "+e.motionDurationMid,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1}},(0,N.Z)(n,i+"-switcher",{transition:"color "+e.motionDurationMid}),(0,N.Z)(n,i+"-node-content-wrapper",(0,N.Z)({borderRadius:0,userSelect:"none","&:hover":{background:"transparent"}},"&."+i+"-node-selected",{color:e.colorTextLightSolid,background:"transparent"})),(0,N.Z)(n,"&-selected",(t={},(0,N.Z)(t,"\n &:hover::before,\n &::before\n ",{background:e.colorPrimary}),(0,N.Z)(t,i+"-switcher",{color:e.colorTextLightSolid}),(0,N.Z)(t,i+"-node-content-wrapper",{color:e.colorTextLightSolid,background:"transparent"}),t)),n)))},kR=function(e,t){var n="."+e,i=cs(t,{treeCls:n,treeNodeCls:n+"-treenode",treeNodePadding:t.paddingXS/2,treeTitleHeight:t.controlHeightSM});return[SR(e,i),wR(i)]},xR=hs("Tree",(function(e,t){var n=t.prefixCls;return[(0,N.Z)({},e.componentCls,OL(n+"-checkbox",e)),kR(n,e),hu(e)]})),ER=v.forwardRef((function(e,t){var n,i=v.useContext(wa),r=i.getPrefixCls,o=i.direction,a=i.virtual,s=e.prefixCls,l=e.className,c=e.showIcon,u=void 0!==c&&c,d=e.showLine,h=e.switcherIcon,f=e.blockNode,p=void 0!==f&&f,g=e.children,m=e.checkable,y=void 0!==m&&m,_=e.selectable,b=void 0===_||_,C=e.draggable,S=e.motion,w=r("tree",s),x=r(),E=null!==S&&void 0!==S?S:Zt(Zt({},Oc(x)),{motionAppear:!1}),T=Zt(Zt({},e),{checkable:y,selectable:b,showIcon:u,motion:E,blockNode:p,showLine:Boolean(d),dropIndicatorRender:sR}),I=xR(w),D=(0,k.Z)(I,2),L=D[0],O=D[1],R=v.useMemo((function(){if(!C)return!1;var e={};switch((0,Bt.Z)(C)){case"function":e.nodeDraggable=C;break;case"object":e=Zt({},C)}return!1!==e.icon&&(e.icon=e.icon||v.createElement(aR,null)),e}),[C]);return L(v.createElement(iR,Zt({itemHeight:20,ref:t,virtual:a},T,{prefixCls:w,className:Ja()((n={},(0,N.Z)(n,w+"-icon-hide",!u),(0,N.Z)(n,w+"-block-node",p),(0,N.Z)(n,w+"-unselectable",!b),(0,N.Z)(n,w+"-rtl","rtl"===o),n),l,O),direction:o,checkable:y?v.createElement("span",{className:w+"-checkbox-inner"}):y,selectable:b,switcherIcon:function(e){return bR(w,h,d,e)},draggable:R}),g))})),TR=ER,NR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},IR=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:NR}))};IR.displayName="FolderOpenOutlined";var DR=v.forwardRef(IR),LR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},OR=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:LR}))};OR.displayName="FolderOutlined";var RR,AR=v.forwardRef(OR);function MR(e,t){e.forEach((function(e){var n=e.key,i=e.children;!1!==t(n,e)&&MR(i||[],t)}))}function PR(e){var t=e.treeData,n=e.expandedKeys,i=e.startKey,r=e.endKey,o=[],a=RR.None;if(i&&i===r)return[i];if(!i||!r)return[];return MR(t,(function(e){if(a===RR.End)return!1;if(function(e){return e===i||e===r}(e)){if(o.push(e),a===RR.None)a=RR.Start;else if(a===RR.Start)return a=RR.End,!1}else a===RR.Start&&o.push(e);return n.includes(e)})),o}function ZR(e,t){var n=(0,_.Z)(t),i=[];return MR(e,(function(e,t){var r=n.indexOf(e);return-1!==r&&(i.push(t),n.splice(r,1)),!!n.length})),i}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(RR||(RR={}));var FR=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function BR(e){var t=e.isLeaf,n=e.expanded;return t?v.createElement(fR,null):n?v.createElement(DR,null):v.createElement(AR,null)}function HR(e){var t=e.treeData,n=e.children;return t||vO(n)}var zR=function(e,t){var n=e.defaultExpandAll,i=e.defaultExpandParent,r=e.defaultExpandedKeys,o=FR(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),a=v.useRef(),s=v.useRef(),l=v.useState(o.selectedKeys||o.defaultSelectedKeys||[]),c=(0,k.Z)(l,2),u=c[0],d=c[1],h=v.useState((function(){return function(){var e=_O(HR(o)).keyEntities;return n?Object.keys(e):i?ZO(o.expandedKeys||r||[],e):o.expandedKeys||r}()})),f=(0,k.Z)(h,2),p=f[0],g=f[1];v.useEffect((function(){"selectedKeys"in o&&d(o.selectedKeys)}),[o.selectedKeys]),v.useEffect((function(){"expandedKeys"in o&&g(o.expandedKeys)}),[o.expandedKeys]);var m=v.useContext(wa),y=m.getPrefixCls,b=m.direction,C=o.prefixCls,S=o.className,w=o.showIcon,x=void 0===w||w,E=o.expandAction,T=void 0===E?"click":E,I=FR(o,["prefixCls","className","showIcon","expandAction"]),D=y("tree",C),L=Ja()(D+"-directory",(0,N.Z)({},D+"-directory-rtl","rtl"===b),S);return v.createElement(TR,Zt({icon:BR,ref:t,blockNode:!0},I,{showIcon:x,expandAction:T,prefixCls:D,className:L,expandedKeys:p,selectedKeys:u,onSelect:function(e,t){var n,i,r=o.multiple,l=t.node,c=t.nativeEvent,u=l.key,h=void 0===u?"":u,f=HR(o),g=Zt(Zt({},t),{selected:!0}),v=(null===c||void 0===c?void 0:c.ctrlKey)||(null===c||void 0===c?void 0:c.metaKey),m=null===c||void 0===c?void 0:c.shiftKey;r&&v?(i=e,a.current=h,s.current=i,g.selectedNodes=ZR(f,i)):r&&m?(i=Array.from(new Set([].concat((0,_.Z)(s.current||[]),(0,_.Z)(PR({treeData:f,expandedKeys:p,startKey:h,endKey:a.current}))))),g.selectedNodes=ZR(f,i)):(i=[h],a.current=h,s.current=i,g.selectedNodes=ZR(f,i)),null===(n=o.onSelect)||void 0===n||n.call(o,i,g),"selectedKeys"in o||d(i)},onExpand:function(e,t){var n;return"expandedKeys"in o||g(e),null===(n=o.onExpand)||void 0===n?void 0:n.call(o,e,t)}}))};var jR=v.forwardRef(zR),VR=TR;VR.DirectoryTree=jR,VR.TreeNode=TO;var WR=VR;var UR=function(e){var t=e.value,n=e.onChange,i=e.filterSearch,r=e.tablePrefixCls,o=e.locale;return i?v.createElement("div",{className:r+"-filter-dropdown-search"},v.createElement(Zy,{prefix:v.createElement(sy,null),placeholder:o.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:r+"-filter-dropdown-search-input"})):null},GR=function(e){e.keyCode===vv.ENTER&&e.stopPropagation()},KR=function(e){return v.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()},onKeyDown:GR},e.children)};function YR(e,t){return("string"===typeof t||"number"===typeof t)&&(null===t||void 0===t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function qR(e){var t=e.filters,n=e.prefixCls,i=e.filteredKeys,r=e.filterMultiple,o=e.searchValue,a=e.filterSearch;return t.map((function(e,t){var s=String(e.value);if(e.children)return{key:s||t,label:e.text,popupClassName:n+"-dropdown-submenu",children:qR({filters:e.children,prefixCls:n,filteredKeys:i,filterMultiple:r,searchValue:o,filterSearch:a})};var l=r?VL:cO,c={key:void 0!==e.value?s:t,label:v.createElement(v.Fragment,null,v.createElement(l,{checked:i.includes(s)}),v.createElement("span",null,e.text))};return o.trim()?"function"===typeof a?a(o,e)?c:null:YR(o,e.text)?c:null:c}))}var $R=function(e){var t,n,i=e.tablePrefixCls,r=e.prefixCls,o=e.column,a=e.dropdownPrefixCls,s=e.columnKey,l=e.filterMultiple,c=e.filterMode,u=void 0===c?"menu":c,d=e.filterSearch,h=void 0!==d&&d,f=e.filterState,p=e.triggerFilter,g=e.locale,m=e.children,y=e.getPopupContainer,_=o.filterDropdownOpen,b=o.onFilterDropdownOpenChange,C=o.filterResetToDefaultFilteredValue,S=o.defaultFilteredValue,w=o.filterDropdownVisible,x=o.onFilterDropdownVisibleChange,E=v.useState(!1),T=(0,k.Z)(E,2),I=T[0],D=T[1],L=!(!f||!(null===(t=f.filteredKeys)||void 0===t?void 0:t.length)&&!f.forceFiltered),O=function(e){D(e),null===b||void 0===b||b(e),null===x||void 0===x||x(e)},R=null!==(n=null!==_&&void 0!==_?_:w)&&void 0!==n?n:I,A=null===f||void 0===f?void 0:f.filteredKeys,M=function(e){var t=v.useRef(e),n=jC();return[function(){return t.current},function(e){t.current=e,n()}]}(A||[]),P=(0,k.Z)(M,2),Z=P[0],F=P[1],B=function(e){var t=e.selectedKeys;F(t)},H=function(e,t){var n=t.node,i=t.checked;B(l?{selectedKeys:e}:{selectedKeys:i&&n.key?[n.key]:[]})};v.useEffect((function(){I&&B({selectedKeys:A||[]})}),[A]);var z=v.useState([]),j=(0,k.Z)(z,2),V=j[0],W=j[1],U=function(e){W(e)},G=v.useState(""),K=(0,k.Z)(G,2),Y=K[0],q=K[1],$=function(e){var t=e.target.value;q(t)};v.useEffect((function(){I||q("")}),[I]);var X,Q,J=function(e){var t=e&&e.length?e:null;return null!==t||f&&f.filteredKeys?kh()(t,null===f||void 0===f?void 0:f.filteredKeys)?null:void p({column:o,key:s,filteredKeys:t}):null},ee=function(){O(!1),J(Z())},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1},t=e.confirm,n=e.closeDropdown;t&&J([]),n&&O(!1),q(""),F(C?(S||[]).map((function(e){return String(e)})):[])},ne=Ja()((0,N.Z)({},a+"-menu-without-submenu",!(o.filters||[]).some((function(e){return e.children})))),ie=function(e){if(e.target.checked){var t=JR(null===o||void 0===o?void 0:o.filters).map((function(e){return String(e)}));F(t)}else F([])},re=function e(t){return(t.filters||[]).map((function(t,n){var i=String(t.value),r={title:t.text,key:void 0!==t.value?i:n};return t.children&&(r.children=e({filters:t.children})),r}))},oe=function e(t){var n;return Zt(Zt({},t),{text:t.title,value:t.key,children:(null===(n=t.children)||void 0===n?void 0:n.map((function(t){return e(t)})))||[]})};if("function"===typeof o.filterDropdown)X=o.filterDropdown({prefixCls:a+"-custom",setSelectedKeys:function(e){return B({selectedKeys:e})},selectedKeys:Z(),confirm:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0}).closeDropdown&&O(!1),J(Z())},clearFilters:te,filters:o.filters,visible:R,close:function(){O(!1)}});else if(o.filterDropdown)X=o.filterDropdown;else{var ae=Z()||[];X=v.createElement(v.Fragment,null,0===(o.filters||[]).length?v.createElement(aI,{image:aI.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===u?v.createElement(v.Fragment,null,v.createElement(UR,{filterSearch:h,value:Y,onChange:$,tablePrefixCls:i,locale:g}),v.createElement("div",{className:i+"-filter-dropdown-tree"},l?v.createElement(VL,{checked:ae.length===JR(o.filters).length,indeterminate:ae.length>0&&ae.length<JR(o.filters).length,className:i+"-filter-dropdown-checkall",onChange:ie},g.filterCheckall):null,v.createElement(WR,{checkable:!0,selectable:!1,blockNode:!0,multiple:l,checkStrictly:!l,className:a+"-menu",onCheck:H,checkedKeys:ae,selectedKeys:ae,showIcon:!1,treeData:re({filters:o.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Y.trim()?function(e){return"function"===typeof h?h(Y,oe(e)):YR(Y,e.title)}:void 0}))):v.createElement(v.Fragment,null,v.createElement(UR,{filterSearch:h,value:Y,onChange:$,tablePrefixCls:i,locale:g}),v.createElement(CC,{selectable:!0,multiple:l,prefixCls:a+"-menu",className:ne,onSelect:B,onDeselect:B,selectedKeys:ae,getPopupContainer:y,openKeys:V,onOpenChange:U,items:qR({filters:o.filters||[],filterSearch:h,prefixCls:r,filteredKeys:Z(),filterMultiple:l,searchValue:Y})})),v.createElement("div",{className:r+"-dropdown-btns"},v.createElement(Jg,{type:"link",size:"small",disabled:C?kh()((S||[]).map((function(e){return String(e)})),ae):0===ae.length,onClick:function(){return te()}},g.filterReset),v.createElement(Jg,{type:"primary",size:"small",onClick:ee},g.filterConfirm)))}o.filterDropdown&&(X=v.createElement(aC,{selectable:void 0},X)),Q="function"===typeof o.filterIcon?o.filterIcon(L):o.filterIcon?o.filterIcon:v.createElement(TL,null);var se=v.useContext(wa).direction;return v.createElement("div",{className:r+"-column"},v.createElement("span",{className:i+"-column-title"},m),v.createElement(zC,{dropdownRender:function(){return v.createElement(KR,{className:r+"-dropdown"},X)},trigger:["click"],open:R,onOpenChange:function(e){e&&void 0!==A&&F(A||[]),O(e),e||o.filterDropdown||ee()},getPopupContainer:y,placement:"rtl"===se?"bottomLeft":"bottomRight"},v.createElement("span",{role:"button",tabIndex:-1,className:Ja()(r+"-trigger",{active:L}),onClick:function(e){e.stopPropagation()}},Q)))};function XR(e,t,n){var i=[];return(e||[]).forEach((function(e,r){var o,a=wL(r,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){var s=e.filteredValue;"filterDropdown"in e||(s=null!==(o=null===s||void 0===s?void 0:s.map(String))&&void 0!==o?o:s),i.push({column:e,key:SL(e,a),filteredKeys:s,forceFiltered:e.filtered})}else i.push({column:e,key:SL(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(i=[].concat((0,_.Z)(i),(0,_.Z)(XR(e.children,t,a))))})),i}function QR(e,t,n,i,r,o,a,s){return n.map((function(n,l){var c=wL(l,s),u=n.filterMultiple,d=void 0===u||u,h=n.filterMode,f=n.filterSearch,p=n;if(p.filters||p.filterDropdown){var g=SL(p,c),m=i.find((function(e){var t=e.key;return g===t}));p=Zt(Zt({},p),{title:function(i){return v.createElement($R,{tablePrefixCls:e,prefixCls:e+"-filter",dropdownPrefixCls:t,column:p,columnKey:g,filterState:m,filterMultiple:d,filterMode:h,filterSearch:f,triggerFilter:r,locale:a,getPopupContainer:o},kL(n.title,i))}})}return"children"in p&&(p=Zt(Zt({},p),{children:QR(e,t,p.children,i,r,o,a,c)})),p}))}function JR(e){var t=[];return(e||[]).forEach((function(e){var n=e.value,i=e.children;t.push(n),i&&(t=[].concat((0,_.Z)(t),(0,_.Z)(JR(i))))})),t}function eA(e){var t={};return e.forEach((function(e){var n=e.key,i=e.filteredKeys,r=e.column,o=r.filters;if(r.filterDropdown)t[n]=i||null;else if(Array.isArray(i)){var a=JR(o);t[n]=a.filter((function(e){return i.includes(String(e))}))}else t[n]=null})),t}function tA(e,t){return t.reduce((function(e,t){var n=t.column,i=n.onFilter,r=n.filters,o=t.filteredKeys;return i&&o&&o.length?e.filter((function(e){return o.some((function(t){var n=JR(r),o=n.findIndex((function(e){return String(e)===String(t)})),a=-1!==o?n[o]:t;return i(a,e)}))})):e}),e)}var nA=function(e){var t=e.prefixCls,n=e.dropdownPrefixCls,i=e.mergedColumns,r=e.onFilterChange,o=e.getPopupContainer,a=e.locale,s=v.useState((function(){return XR(i,!0)})),l=(0,k.Z)(s,2),c=l[0],u=l[1],d=v.useMemo((function(){var e=XR(i,!1),t=!0;return e.forEach((function(e){void 0!==e.filteredKeys?t=!1:!1})),t?c:e}),[i,c]),h=v.useMemo((function(){return eA(d)}),[d]),f=function(e){var t=d.filter((function(t){return t.key!==e.key}));t.push(e),u(t),r(eA(t),t)};return[function(e){return QR(t,n,e,d,f,o,a)},d,h]};var iA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function rA(e,t,n){var i=t&&"object"===(0,Bt.Z)(t)?t:{},r=i.total,o=void 0===r?0:r,a=iA(i,["total"]),s=(0,v.useState)((function(){return{current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:10}})),l=(0,k.Z)(s,2),c=l[0],u=l[1],d=function(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var i=t[n];void 0!==i&&(e[n]=i)}))})),e}(c,a,{total:o>0?o:e}),h=Math.ceil((o||e)/d.pageSize);d.current>h&&(d.current=h||1);var f=function(e,t){u({current:null!==e&&void 0!==e?e:1,pageSize:t||d.pageSize})};return!1===t?[{},function(){}]:[Zt(Zt({},d),{onChange:function(e,i){var r;t&&(null===(r=t.onChange)||void 0===r||r.call(t,e,i)),f(e,i),n(e,i||(null===d||void 0===d?void 0:d.pageSize))}}),f]}var oA={},aA="SELECT_ALL",sA="SELECT_INVERT",lA="SELECT_NONE",cA=[];function uA(e,t){var n=[];return(e||[]).forEach((function(e){n.push(e),e&&"object"===(0,Bt.Z)(e)&&t in e&&(n=[].concat((0,_.Z)(n),(0,_.Z)(uA(e[t],t))))})),n}function dA(e,t){var n=e||{},i=n.preserveSelectedRowKeys,r=n.selectedRowKeys,o=n.defaultSelectedRowKeys,a=n.getCheckboxProps,s=n.onChange,l=n.onSelect,c=n.onSelectAll,u=n.onSelectInvert,d=n.onSelectNone,h=n.onSelectMultiple,f=n.columnWidth,p=n.type,g=n.selections,m=n.fixed,y=n.renderCell,b=n.hideSelectAll,C=n.checkStrictly,S=void 0===C||C,w=t.prefixCls,x=t.data,E=t.pageData,T=t.getRecordByKey,I=t.getRowKey,D=t.expandType,L=t.childrenColumnName,O=t.locale,R=t.getPopupContainer,A=Sf(r||o||cA,{value:r}),M=(0,k.Z)(A,2),P=M[0],Z=M[1],F=v.useRef(new Map),B=(0,v.useCallback)((function(e){if(i){var t=new Map;e.forEach((function(e){var n=T(e);!n&&F.current.has(e)&&(n=F.current.get(e)),t.set(e,n)})),F.current=t}}),[T,i]);v.useEffect((function(){B(P)}),[P]);var H=(0,v.useMemo)((function(){return S?{keyEntities:null}:_O(x,{externalGetKey:I,childrenPropName:L})}),[x,I,S,L]).keyEntities,z=(0,v.useMemo)((function(){return uA(E,L)}),[E,L]),j=(0,v.useMemo)((function(){var e=new Map;return z.forEach((function(t,n){var i=I(t,n),r=(a?a(t):null)||{};e.set(i,r)})),e}),[z,I,a]),V=(0,v.useCallback)((function(e){var t;return!!(null===(t=j.get(I(e)))||void 0===t?void 0:t.disabled)}),[j,I]),W=(0,v.useMemo)((function(){if(S)return[P||[],[]];var e=tR(P,!0,H,V);return[e.checkedKeys||[],e.halfCheckedKeys]}),[P,S,H,V]),U=(0,k.Z)(W,2),G=U[0],K=U[1],Y=(0,v.useMemo)((function(){var e="radio"===p?G.slice(0,1):G;return new Set(e)}),[G,p]),q=(0,v.useMemo)((function(){return"radio"===p?new Set:new Set(K)}),[K,p]),$=(0,v.useState)(null),X=(0,k.Z)($,2),Q=X[0],J=X[1];v.useEffect((function(){e||Z(cA)}),[!!e]);var ee=(0,v.useCallback)((function(e,t){var n,r;B(e),i?(n=e,r=e.map((function(e){return F.current.get(e)}))):(n=[],r=[],e.forEach((function(e){var t=T(e);void 0!==t&&(n.push(e),r.push(t))}))),Z(n),null===s||void 0===s||s(n,r,{type:t})}),[Z,T,s,i]),te=(0,v.useCallback)((function(e,t,n,i){if(l){var r=n.map((function(e){return T(e)}));l(T(e),t,r,i)}ee(n,"single")}),[l,T,ee]),ne=(0,v.useMemo)((function(){return!g||b?null:(!0===g?[aA,sA,lA]:g).map((function(e){return e===aA?{key:"all",text:O.selectionAll,onSelect:function(){ee(x.map((function(e,t){return I(e,t)})).filter((function(e){var t=j.get(e);return!(null===t||void 0===t?void 0:t.disabled)||Y.has(e)})),"all")}}:e===sA?{key:"invert",text:O.selectInvert,onSelect:function(){var e=new Set(Y);E.forEach((function(t,n){var i=I(t,n),r=j.get(i);(null===r||void 0===r?void 0:r.disabled)||(e.has(i)?e.delete(i):e.add(i))}));var t=Array.from(e);u&&u(t),ee(t,"invert")}}:e===lA?{key:"none",text:O.selectNone,onSelect:function(){null===d||void 0===d||d(),ee(Array.from(Y).filter((function(e){var t=j.get(e);return null===t||void 0===t?void 0:t.disabled})),"none")}}:e})).map((function(e){return Zt(Zt({},e),{onSelect:function(){for(var t,n,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(r)),J(null)}})}))}),[g,Y,E,I,u,ee]),ie=(0,v.useCallback)((function(t){var n;if(!e)return t.filter((function(e){return e!==oA}));var i,r,o=(0,_.Z)(t),a=new Set(Y),s=z.map(I).filter((function(e){return!j.get(e).disabled})),l=s.every((function(e){return a.has(e)})),u=s.some((function(e){return a.has(e)}));if("radio"!==p){var d;if(ne){var g={getPopupContainer:R,items:ne.map((function(e,t){var n=e.key,i=e.text,r=e.onSelect;return{key:n||t,onClick:function(){null===r||void 0===r||r(s)},label:i}}))};d=v.createElement("div",{className:w+"-selection-extra"},v.createElement(zC,{menu:g,getPopupContainer:R},v.createElement("span",null,v.createElement(uI,null))))}var C=z.map((function(e,t){var n=I(e,t),i=j.get(n)||{};return Zt({checked:a.has(n)},i)})).filter((function(e){return e.disabled})),k=!!C.length&&C.length===z.length,x=k&&C.every((function(e){return e.checked})),E=k&&C.some((function(e){return e.checked}));i=!b&&v.createElement("div",{className:w+"-selection"},v.createElement(VL,{checked:k?x:!!z.length&&l,indeterminate:k?!x&&E:!l&&u,onChange:function(){var e=[];l?s.forEach((function(t){a.delete(t),e.push(t)})):s.forEach((function(t){a.has(t)||(a.add(t),e.push(t))}));var t=Array.from(a);null===c||void 0===c||c(!l,t.map((function(e){return T(e)})),e.map((function(e){return T(e)}))),ee(t,"all"),J(null)},disabled:0===z.length||k,"aria-label":d?"Custom selection":"Select all",skipGroup:!0}),d)}r="radio"===p?function(e,t,n){var i=I(t,n),r=a.has(i);return{node:v.createElement(cO,Zt({},j.get(i),{checked:r,onClick:function(e){return e.stopPropagation()},onChange:function(e){a.has(i)||te(i,!0,[i],e.nativeEvent)}})),checked:r}}:function(e,t,n){var i,r,o=I(t,n),l=a.has(o),c=q.has(o),u=j.get(o);return r="nest"===D?c:null!==(i=null===u||void 0===u?void 0:u.indeterminate)&&void 0!==i?i:c,{node:v.createElement(VL,Zt({},u,{indeterminate:r,checked:l,skipGroup:!0,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=e.nativeEvent,n=t.shiftKey,i=-1,r=-1;if(n&&S){var c=new Set([Q,o]);s.some((function(e,t){if(c.has(e)){if(-1!==i)return r=t,!0;i=t}return!1}))}if(-1!==r&&i!==r&&S){var u=s.slice(i,r+1),d=[];l?u.forEach((function(e){a.has(e)&&(d.push(e),a.delete(e))})):u.forEach((function(e){a.has(e)||(d.push(e),a.add(e))}));var f=Array.from(a);null===h||void 0===h||h(!l,f.map((function(e){return T(e)})),d.map((function(e){return T(e)}))),ee(f,"multiple")}else{var p=G;if(S){var g=l?NO(p,o):IO(p,o);te(o,!l,g,t)}else{var v=tR([].concat((0,_.Z)(p),[o]),!0,H,V),m=v.checkedKeys,y=v.halfCheckedKeys,b=m;if(l){var C=new Set(m);C.delete(o),b=tR(Array.from(C),{checked:!1,halfCheckedKeys:y},H,V).checkedKeys}te(o,!l,b,t)}}J(l?null:o)}})),checked:l}};if(!o.includes(oA))if(0===o.findIndex((function(e){var t;return"EXPAND_COLUMN"===(null===(t=e[dD])||void 0===t?void 0:t.columnType)}))){var L=o,O=(0,mr.Z)(L),A=O[0],M=O.slice(1);o=[A,oA].concat((0,_.Z)(M))}else o=[oA].concat((0,_.Z)(o));var P=o.indexOf(oA);o=o.filter((function(e,t){return e!==oA||t===P}));var Z=o[P-1],F=o[P+1],B=m;void 0===B&&(void 0!==(null===F||void 0===F?void 0:F.fixed)?B=F.fixed:void 0!==(null===Z||void 0===Z?void 0:Z.fixed)&&(B=Z.fixed)),B&&Z&&"EXPAND_COLUMN"===(null===(n=Z[dD])||void 0===n?void 0:n.columnType)&&void 0===Z.fixed&&(Z.fixed=B);var W=(0,N.Z)({fixed:B,width:f,className:w+"-selection-column",title:e.columnTitle||i,render:function(e,t,n){var i=r(e,t,n),o=i.node,a=i.checked;return y?y(a,t,n,o):o}},dD,{className:w+"-selection-col"});return o.map((function(e){return e===oA?W:e}))}),[I,z,e,G,Y,q,f,ne,D,Q,j,h,te,V]);return[ie,Y]}var hA={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},fA=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:hA}))};fA.displayName="CaretDownOutlined";var pA=v.forwardRef(fA),gA={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},vA=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:gA}))};vA.displayName="CaretUpOutlined";var mA=v.forwardRef(vA),yA="ascend",_A="descend";function bA(e){return"object"===(0,Bt.Z)(e.sorter)&&"number"===typeof e.sorter.multiple&&e.sorter.multiple}function CA(e){return"function"===typeof e?e:!(!e||"object"!==(0,Bt.Z)(e)||!e.compare)&&e.compare}function SA(e,t,n){var i=[];function r(e,t){i.push({column:e,key:SL(e,t),multiplePriority:bA(e),sortOrder:e.sortOrder})}return(e||[]).forEach((function(e,o){var a=wL(o,n);e.children?("sortOrder"in e&&r(e,a),i=[].concat((0,_.Z)(i),(0,_.Z)(SA(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&i.push({column:e,key:SL(e,a),multiplePriority:bA(e),sortOrder:e.defaultSortOrder}))})),i}function wA(e,t,n,i,r,o,a,s){return(t||[]).map((function(t,l){var c=wL(l,s),u=t;if(u.sorter){var d=u.sortDirections||r,h=void 0===u.showSorterTooltip?a:u.showSorterTooltip,f=SL(u,c),p=n.find((function(e){return e.key===f})),g=p?p.sortOrder:null,m=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(d,g),y=d.includes(yA)&&v.createElement(mA,{className:Ja()(e+"-column-sorter-up",{active:g===yA}),role:"presentation"}),_=d.includes(_A)&&v.createElement(pA,{className:Ja()(e+"-column-sorter-down",{active:g===_A}),role:"presentation"}),b=o||{},C=b.cancelSort,S=b.triggerAsc,w=b.triggerDesc,k=C;m===_A?k=w:m===yA&&(k=S);var x="object"===(0,Bt.Z)(h)?h:{title:k};u=Zt(Zt({},u),{className:Ja()(u.className,(0,N.Z)({},e+"-column-sort",g)),title:function(n){var i=v.createElement("div",{className:e+"-column-sorters"},v.createElement("span",{className:e+"-column-title"},kL(t.title,n)),v.createElement("span",{className:Ja()(e+"-column-sorter",(0,N.Z)({},e+"-column-sorter-full",!(!y||!_)))},v.createElement("span",{className:e+"-column-sorter-inner"},y,_)));return h?v.createElement(Vf,Zt({},x),i):i},onHeaderCell:function(n){var r=t.onHeaderCell&&t.onHeaderCell(n)||{},o=r.onClick,a=r.onKeyDown;r.onClick=function(e){i({column:t,key:f,sortOrder:m,multiplePriority:bA(t)}),null===o||void 0===o||o(e)},r.onKeyDown=function(e){e.keyCode===vv.ENTER&&(i({column:t,key:f,sortOrder:m,multiplePriority:bA(t)}),null===a||void 0===a||a(e))};var s=function(e,t){var n=kL(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(t.title,{}),l=null===s||void 0===s?void 0:s.toString();return g?r["aria-sort"]="ascend"===g?"ascending":"descending":r["aria-label"]=(l?"this column's title is "+l+",":"")+"this column is sortable",r.className=Ja()(r.className,e+"-column-has-sorters"),r.tabIndex=0,t.ellipsis&&(r.title=(null!==s&&void 0!==s?s:"").toString()),r}})}return"children"in u&&(u=Zt(Zt({},u),{children:wA(e,u.children,n,i,r,o,a,c)})),u}))}function kA(e){var t=e.column;return{column:t,order:e.sortOrder,field:t.dataIndex,columnKey:t.key}}function xA(e){var t=e.filter((function(e){return e.sortOrder})).map(kA);return 0===t.length&&e.length?Zt(Zt({},kA(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function EA(e,t,n){var i=t.slice().sort((function(e,t){return t.multiplePriority-e.multiplePriority})),r=e.slice(),o=i.filter((function(e){var t=e.column.sorter,n=e.sortOrder;return CA(t)&&n}));return o.length?r.sort((function(e,t){for(var n=0;n<o.length;n+=1){var i=o[n],r=i.column.sorter,a=i.sortOrder,s=CA(r);if(s&&a){var l=s(e,t,a);if(0!==l)return a===yA?l:-l}}return 0})).map((function(e){var i=e[n];return i?Zt(Zt({},e),(0,N.Z)({},n,EA(i,t,n))):e})):r}function TA(e,t){return e.map((function(e){var n=Zt({},e);return n.title=kL(e.title,t),"children"in n&&(n.children=TA(n.children,t)),n}))}function NA(e){return[v.useCallback((function(t){return TA(t,e)}),[e])]}var IA=function(e){var t,n,i,r,o,a=e.componentCls,s=e.lineWidth+"px "+e.lineType+" "+e.tableBorderColor,l=function(t,n,i){return(0,N.Z)({},"&"+a+"-"+t,(0,N.Z)({},"> "+a+"-container",(0,N.Z)({},"> "+a+"-content, > "+a+"-body",{"> table > tbody > tr > td":(0,N.Z)({},"> "+a+"-expanded-row-fixed",{margin:"-"+n+"px -"+(i+e.lineWidth)+"px"})})))};return(0,N.Z)({},a+"-wrapper",(o={},(0,N.Z)(o,""+a+a+"-bordered",Zt(Zt(Zt((i={},(0,N.Z)(i,"> "+a+"-title",{border:s,borderBottom:0}),(0,N.Z)(i,"> "+a+"-container",(n={borderInlineStart:s},(0,N.Z)(n,"\n > "+a+"-content,\n > "+a+"-header,\n > "+a+"-body,\n > "+a+"-summary\n ",{"> table":(t={},(0,N.Z)(t,"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ",{borderInlineEnd:s}),(0,N.Z)(t,"> thead",{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}}),(0,N.Z)(t,"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ",(0,N.Z)({},"> "+a+"-cell-fix-right-first::after",{borderInlineEnd:s})),(0,N.Z)(t,"> table > tbody > tr > td",(0,N.Z)({},"> "+a+"-expanded-row-fixed",{margin:"-"+e.tablePaddingVertical+"px -"+(e.tablePaddingHorizontal+e.lineWidth)+"px","&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:s,content:'""'}})),t)}),(0,N.Z)(n,"\n > "+a+"-content,\n > "+a+"-header\n ",{"> table":{borderTop:s}}),n)),(0,N.Z)(i,"&"+a+"-scroll-horizontal",(0,N.Z)({},"> "+a+"-container > "+a+"-body",{"> table > tbody":(0,N.Z)({},"\n > tr"+a+"-expanded-row,\n > tr"+a+"-placeholder\n ",{"> td":{borderInlineEnd:0}})})),i),l("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),l("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),(0,N.Z)({},"> "+a+"-footer",{border:s,borderTop:0}))),(0,N.Z)(o,a+"-cell",(r={},(0,N.Z)(r,a+"-container:first-child",{borderTop:0}),(0,N.Z)(r,"&-scrollbar:not([rowspan])",{boxShadow:"0 "+e.lineWidth+"px 0 "+e.lineWidth+"px "+e.tableHeaderBg}),r)),o))},DA=function(e){var t,n=e.componentCls;return(0,N.Z)({},n+"-wrapper",(0,N.Z)({},n+"-cell-ellipsis",Zt(Zt({},Za),(t={wordBreak:"keep-all"},(0,N.Z)(t,"\n &"+n+"-cell-fix-left-last,\n &"+n+"-cell-fix-right-first\n ",(0,N.Z)({overflow:"visible"},n+"-cell-content",{display:"block",overflow:"hidden",textOverflow:"ellipsis"})),(0,N.Z)(t,n+"-column-title",{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}),t))))},LA=function(e){var t=e.componentCls;return(0,N.Z)({},t+"-wrapper",(0,N.Z)({},t+"-tbody > tr"+t+"-placeholder",{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}))},OA=function(e){var t,n,i=e.componentCls,r=e.antCls,o=e.controlInteractiveSize,a=e.motionDurationSlow,s=e.lineWidth,l=e.paddingXS,c=e.lineType,u=e.tableBorderColor,d=e.tableExpandIconBg,h=e.tableExpandColumnWidth,f=e.borderRadius,p=e.fontSize,g=e.fontSizeSM,v=e.lineHeight,m=e.tablePaddingVertical,y=e.tablePaddingHorizontal,_=e.tableExpandedRowBg,b=o/2-s,C=2*b+3*s,S=s+"px "+c+" "+u,w=e.paddingXXS-s;return(0,N.Z)({},i+"-wrapper",(n={},(0,N.Z)(n,i+"-expand-icon-col",{width:h}),(0,N.Z)(n,i+"-row-expand-icon-cell",(0,N.Z)({textAlign:"center"},i+"-row-expand-icon",{display:"inline-flex",float:"none",verticalAlign:"sub"})),(0,N.Z)(n,i+"-row-indent",{height:1}),(0,N.Z)(n,i+"-row-expand-icon",Zt(Zt({},Lx(e)),(t={position:"relative",float:"left",boxSizing:"border-box",width:C,height:C,padding:0,color:"inherit",lineHeight:C+"px",background:d,border:S,borderRadius:f,transform:"scale("+o/C+")",transition:"all "+a,userSelect:"none"},(0,N.Z)(t,"&:focus, &:hover, &:active",{borderColor:"currentcolor"}),(0,N.Z)(t,"&::before, &::after",{position:"absolute",background:"currentcolor",transition:"transform "+a+" ease-out",content:'""'}),(0,N.Z)(t,"&::before",{top:b,insetInlineEnd:w,insetInlineStart:w,height:s}),(0,N.Z)(t,"&::after",{top:w,bottom:w,insetInlineStart:b,width:s,transform:"rotate(90deg)"}),(0,N.Z)(t,"&-collapsed::before",{transform:"rotate(-180deg)"}),(0,N.Z)(t,"&-collapsed::after",{transform:"rotate(0deg)"}),(0,N.Z)(t,"&-spaced",{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}),t))),(0,N.Z)(n,i+"-row-indent + "+i+"-row-expand-icon",{marginTop:(p*v-3*s)/2-Math.ceil((1.4*g-3*s)/2),marginInlineEnd:l}),(0,N.Z)(n,"tr"+i+"-expanded-row",(0,N.Z)({"&, &:hover":{"> td":{background:_}}},r+"-descriptions-view",{display:"flex",table:{flex:"auto",width:"auto"}})),(0,N.Z)(n,i+"-expanded-row-fixed",{position:"relative",margin:"-"+m+"px -"+y+"px",padding:m+"px "+y+"px"}),n))},RA=function(e){var t,n,i,r,o=e.componentCls,a=e.antCls,s=e.iconCls,l=e.tableFilterDropdownWidth,c=e.tableFilterDropdownSearchWidth,u=e.paddingXXS,d=e.paddingXS,h=e.colorText,f=e.lineWidth,p=e.lineType,g=e.tableBorderColor,v=e.tableHeaderIconColor,m=e.fontSizeSM,y=e.tablePaddingHorizontal,_=e.borderRadius,b=e.motionDurationSlow,C=e.colorTextDescription,S=e.colorPrimary,w=e.colorPrimaryActive,k=e.tableHeaderFilterActiveBg,x=e.colorTextDisabled,E=e.tableFilterDropdownBg,T=e.tableFilterDropdownHeight,I=e.controlItemBgHover,D=e.boxShadow,L=a+"-dropdown",O=o+"-filter-dropdown",R=a+"-tree",A=f+"px "+p+" "+g;return[(0,N.Z)({},o+"-wrapper",(t={},(0,N.Z)(t,o+"-filter-column",{display:"flex",justifyContent:"space-between"}),(0,N.Z)(t,o+"-filter-trigger",{position:"relative",display:"flex",alignItems:"center",marginBlock:-u,marginInline:u+"px "+-y/2+"px",padding:"0 "+u+"px",color:v,fontSize:m,borderRadius:_,cursor:"pointer",transition:"all "+b,"&:hover":{color:C,background:k},"&.active":{color:S}}),t)),(0,N.Z)({},a+"-dropdown",(0,N.Z)({},O,Zt(Zt({},Fa(e)),(i={minWidth:l,backgroundColor:E,borderRadius:_,boxShadow:D},(0,N.Z)(i,L+"-menu",{maxHeight:T,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:d+"px 0",color:x,fontSize:m,textAlign:"center",content:'"Not Found"'}}),(0,N.Z)(i,O+"-tree",(n={paddingBlock:d+"px 0",paddingInline:d},(0,N.Z)(n,R,{padding:0}),(0,N.Z)(n,R+"-treenode "+R+"-node-content-wrapper:hover",{backgroundColor:I}),(0,N.Z)(n,R+"-treenode-checkbox-checked "+R+"-node-content-wrapper",{"&, &:hover":{backgroundColor:w}}),n)),(0,N.Z)(i,O+"-search",{padding:d,borderBottom:A,"&-input":(0,N.Z)({input:{minWidth:c}},s,{color:x})}),(0,N.Z)(i,O+"-checkall",{width:"100%",marginBottom:u,marginInlineStart:u}),(0,N.Z)(i,O+"-btns",{display:"flex",justifyContent:"space-between",padding:d-f+"px "+d+"px",overflow:"hidden",backgroundColor:"inherit",borderTop:A}),i)))),(0,N.Z)({},a+"-dropdown "+O+", "+O+"-submenu",(r={},(0,N.Z)(r,a+"-checkbox-wrapper + span",{paddingInlineStart:d,color:h}),(0,N.Z)(r,"> ul",{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}),r))]},AA=function(e){var t,n,i,r=e.componentCls,o=e.lineWidth,a=e.colorSplit,s=e.motionDurationSlow,l=e.zIndexTableFixed,c=e.tableBg,u=a;return(0,N.Z)({},r+"-wrapper",(i={},(0,N.Z)(i,"\n "+r+"-cell-fix-left,\n "+r+"-cell-fix-right\n ",{position:"sticky !important",zIndex:l,background:c}),(0,N.Z)(i,"\n "+r+"-cell-fix-left-first::after,\n "+r+"-cell-fix-left-last::after\n ",{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-o,width:30,transform:"translateX(100%)",transition:"box-shadow "+s,content:'""',pointerEvents:"none"}),(0,N.Z)(i,r+"-cell-fix-left-all::after",{display:"none"}),(0,N.Z)(i,"\n "+r+"-cell-fix-right-first::after,\n "+r+"-cell-fix-right-last::after\n ",{position:"absolute",top:0,bottom:-o,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:"box-shadow "+s,content:'""',pointerEvents:"none"}),(0,N.Z)(i,r+"-container",{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l,width:30,transition:"box-shadow "+s,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}}),(0,N.Z)(i,r+"-ping-left",(t={},(0,N.Z)(t,"&:not("+r+"-has-fix-left) "+r+"-container",{position:"relative","&::before":{boxShadow:"inset 10px 0 8px -8px "+u}}),(0,N.Z)(t,"\n "+r+"-cell-fix-left-first::after,\n "+r+"-cell-fix-left-last::after\n ",{boxShadow:"inset 10px 0 8px -8px "+u}),(0,N.Z)(t,r+"-cell-fix-left-last::before",{backgroundColor:"transparent !important"}),t)),(0,N.Z)(i,r+"-ping-right",(n={},(0,N.Z)(n,"&:not("+r+"-has-fix-right) "+r+"-container",{position:"relative","&::after":{boxShadow:"inset -10px 0 8px -8px "+u}}),(0,N.Z)(n,"\n "+r+"-cell-fix-right-first::after,\n "+r+"-cell-fix-right-last::after\n ",{boxShadow:"inset -10px 0 8px -8px "+u}),n)),i))},MA=function(e){var t,n=e.componentCls,i=e.antCls;return(0,N.Z)({},n+"-wrapper",(t={},(0,N.Z)(t,n+"-pagination"+i+"-pagination",{margin:e.margin+"px 0"}),(0,N.Z)(t,n+"-pagination",{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}),t))},PA=function(e){var t,n=e.componentCls,i=e.tableRadius;return(0,N.Z)({},n+"-wrapper",(0,N.Z)({},n,(t={},(0,N.Z)(t,n+"-title",{borderRadius:i+"px "+i+"px 0 0"}),(0,N.Z)(t,n+"-title + "+n+"-container",{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}}),(0,N.Z)(t,"&-container",{borderStartStartRadius:i,borderStartEndRadius:i,"table > thead > tr:first-child":{"th:first-child":{borderStartStartRadius:i},"th:last-child":{borderStartEndRadius:i}}}),(0,N.Z)(t,"&-footer",{borderRadius:"0 0 "+i+"px "+i+"px"}),t)))},ZA=function(e){var t,n=e.componentCls;return(0,N.Z)({},n+"-wrapper-rtl",(t={direction:"rtl",table:{direction:"rtl"}},(0,N.Z)(t,n+"-pagination-left",{justifyContent:"flex-end"}),(0,N.Z)(t,n+"-pagination-right",{justifyContent:"flex-start"}),(0,N.Z)(t,n+"-row-expand-icon",{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}),t))},FA=function(e){var t,n=e.componentCls,i=e.antCls,r=e.iconCls,o=e.fontSizeIcon,a=e.paddingXS,s=e.tableHeaderIconColor,l=e.tableHeaderIconColorHover;return(0,N.Z)({},n+"-wrapper",(t={},(0,N.Z)(t,n+"-selection-col",{width:e.tableSelectionColumnWidth}),(0,N.Z)(t,n+"-bordered "+n+"-selection-col",{width:e.tableSelectionColumnWidth+2*a}),(0,N.Z)(t,"\n table tr th"+n+"-selection-column,\n table tr td"+n+"-selection-column\n ",(0,N.Z)({paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center"},i+"-radio-wrapper",{marginInlineEnd:0})),(0,N.Z)(t,"table tr th"+n+"-selection-column"+n+"-cell-fix-left",{zIndex:e.zIndexTableFixed}),(0,N.Z)(t,"table tr th"+n+"-selection-column::after",{backgroundColor:"transparent !important"}),(0,N.Z)(t,n+"-selection",{position:"relative",display:"inline-flex",flexDirection:"column"}),(0,N.Z)(t,n+"-selection-extra",(0,N.Z)({position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:"all "+e.motionDurationSlow,marginInlineStart:"100%",paddingInlineStart:e.tablePaddingHorizontal/4+"px"},r,{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:l}})),t))},BA=function(e){var t=e.componentCls,n=function(n,i,r,o){var a;return(0,N.Z)({},""+t+t+"-"+n,(a={fontSize:o},(0,N.Z)(a,"\n "+t+"-title,\n "+t+"-footer,\n "+t+"-thead > tr > th,\n "+t+"-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n ",{padding:i+"px "+r+"px"}),(0,N.Z)(a,t+"-filter-trigger",{marginInlineEnd:"-"+r/2+"px"}),(0,N.Z)(a,t+"-expanded-row-fixed",{margin:"-"+i+"px -"+r+"px"}),(0,N.Z)(a,t+"-tbody",(0,N.Z)({},t+"-wrapper:only-child "+t,{marginBlock:"-"+i+"px",marginInline:e.tableExpandColumnWidth-r+"px -"+r+"px"})),(0,N.Z)(a,t+"-selection-column",{paddingInlineStart:r/4+"px"}),a))};return(0,N.Z)({},t+"-wrapper",Zt(Zt({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)))},HA=function(e){var t,n=e.componentCls,i=e.marginXXS,r=e.fontSizeIcon,o=e.tableHeaderIconColor,a=e.tableHeaderIconColorHover;return(0,N.Z)({},n+"-wrapper",(t={},(0,N.Z)(t,n+"-thead th"+n+"-column-has-sorters",(0,N.Z)({outline:"none",cursor:"pointer",transition:"all "+e.motionDurationSlow,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary}},"\n &"+n+"-cell-fix-left:hover,\n &"+n+"-cell-fix-right:hover\n ",{background:e.tableFixedHeaderSortActiveBg})),(0,N.Z)(t,n+"-thead th"+n+"-column-sort",{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}}),(0,N.Z)(t,"td"+n+"-column-sort",{background:e.tableBodySortBg}),(0,N.Z)(t,n+"-column-title",{position:"relative",zIndex:1,flex:1}),(0,N.Z)(t,n+"-column-sorters",{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}}),(0,N.Z)(t,n+"-column-sorter",(0,N.Z)({marginInlineStart:i,color:o,fontSize:0,transition:"color "+e.motionDurationSlow,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}}},n+"-column-sorter-up + "+n+"-column-sorter-down",{marginTop:"-0.3em"})),(0,N.Z)(t,n+"-column-sorters:hover "+n+"-column-sorter",{color:a}),t))},zA=function(e){var t=e.componentCls,n=e.opacityLoading,i=e.tableScrollThumbBg,r=e.tableScrollThumbBgHover,o=e.tableScrollThumbSize,a=e.tableScrollBg,s=e.zIndexTableSticky,l=e.lineWidth+"px "+e.lineType+" "+e.tableBorderColor;return(0,N.Z)({},t+"-wrapper",(0,N.Z)({},t+"-sticky",{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:o+"px !important",zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:l,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:i,borderRadius:100,transition:"all "+e.motionDurationSlow+", transform none",position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}))},jA=function(e){var t,n=e.componentCls,i=e.lineWidth,r=e.tableBorderColor,o=i+"px "+e.lineType+" "+r;return(0,N.Z)({},n+"-wrapper",(t={},(0,N.Z)(t,n+"-summary",{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}}),(0,N.Z)(t,"div"+n+"-summary",{boxShadow:"0 -"+i+"px 0 "+r}),t))},VA=function(e){var t,n,i,r=e.componentCls,o=e.fontWeightStrong,a=e.tablePaddingVertical,s=e.tablePaddingHorizontal,l=e.lineWidth,c=e.lineType,u=e.tableBorderColor,d=e.tableFontSize,h=e.tableBg,f=e.tableRadius,p=e.tableHeaderTextColor,g=e.motionDurationSlow,v=e.tableHeaderBg,m=e.tableHeaderCellSplitColor,y=e.tableRowHoverBg,_=e.tableSelectedRowBg,b=e.tableSelectedRowHoverBg,C=e.tableFooterTextColor,S=e.tableFooterBg,w=e.paddingContentVerticalLG,k=e.wireframe,x=l+"px "+c+" "+u;return(0,N.Z)({},r+"-wrapper",Zt(Zt({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),(i={},(0,N.Z)(i,r,Zt(Zt({},Fa(e)),{fontSize:d,background:h,borderRadius:f})),(0,N.Z)(i,"table",{width:"100%",textAlign:"start",borderRadius:f+"px "+f+"px 0 0",borderCollapse:"separate",borderSpacing:0}),(0,N.Z)(i,"\n "+r+"-thead > tr > th,\n "+r+"-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n ",{position:"relative",padding:w+"px "+s+"px",overflowWrap:"break-word"}),(0,N.Z)(i,r+"-title",{padding:a+"px "+s+"px"}),(0,N.Z)(i,r+"-thead",{"> tr > th":(0,N.Z)({position:"relative",color:p,fontWeight:o,textAlign:"start",background:v,borderBottom:x,transition:"background "+g+" ease","&[colspan]:not([colspan='1'])":{textAlign:"center"}},"&:not(:last-child):not("+r+"-selection-column):not("+r+"-row-expand-icon-cell):not([colspan])::before",{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:"background-color "+g,content:'""'}),"> tr:not(:last-child) > th[colspan]":{borderBottom:0}}),(0,N.Z)(i,r+"-tbody",{"> tr":(t={"> td":(0,N.Z)({borderTop:x,transition:"background "+g},"\n > "+r+"-wrapper:only-child,\n > "+r+"-expanded-row-fixed > "+r+"-wrapper:only-child\n ",(0,N.Z)({},r,(0,N.Z)({marginBlock:"-"+a+"px",marginInline:e.tableExpandColumnWidth-s+"px -"+s+"px"},r+"-tbody > tr:last-child > td",{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}))),"&:last-child > td":{borderBottom:x}},(0,N.Z)(t,"&:first-child > td,\n &"+r+"-measure-row + tr > td",{borderTop:"none"}),(0,N.Z)(t,"\n &"+r+"-row:hover > td,\n > td"+r+"-cell-row-hover\n ",{background:y}),(0,N.Z)(t,"&"+r+"-row-selected",{"> td":{background:_},"&:hover > td":{background:b}}),t)}),(0,N.Z)(i,r+":not("+r+"-bordered) "+r+"-tbody > tr",k?void 0:(n={},(0,N.Z)(n,"&"+r+"-row:hover, &"+r+"-row"+r+"-row-selected",(0,N.Z)({},"+ tr"+r+"-row > td",{borderTopColor:"transparent"})),(0,N.Z)(n,"&"+r+"-row:last-child:hover > td,\n &"+r+"-row"+r+"-row-selected:last-child > td",{borderBottomColor:"transparent"}),(0,N.Z)(n,"\n &"+r+"-row:hover > td,\n > td"+r+"-cell-row-hover,\n &"+r+"-row"+r+"-row-selected > td\n ",{borderTopColor:"transparent","&:first-child":{borderStartStartRadius:f,borderEndStartRadius:f},"&:last-child":{borderStartEndRadius:f,borderEndEndRadius:f}}),n)),(0,N.Z)(i,r+"-footer",{padding:a+"px "+s+"px",color:C,background:S}),i)))},WA=hs("Table",(function(e){var t=e.controlItemBgActive,n=e.controlItemBgActiveHover,i=e.colorTextPlaceholder,r=e.colorTextHeading,o=e.colorSplit,a=e.fontSize,s=e.padding,l=e.paddingXS,c=e.paddingSM,u=e.controlHeight,d=e.colorFillAlter,h=e.colorIcon,f=e.colorIconHover,p=e.opacityLoading,g=e.colorBgContainer,v=e.colorFillSecondary,m=e.borderRadiusLG,y=e.colorFillContent,_=e.controlInteractiveSize,b=new oa(h),C=new oa(f),S=t,w=new oa(d).onBackground(g).toHexString(),k=cs(e,{tableFontSize:a,tableBg:g,tableRadius:m,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:c,tablePaddingHorizontalMiddle:l,tablePaddingVerticalSmall:l,tablePaddingHorizontalSmall:l,tableBorderColor:o,tableHeaderTextColor:r,tableHeaderBg:w,tableFooterTextColor:r,tableFooterBg:w,tableHeaderCellSplitColor:o,tableHeaderSortBg:v,tableHeaderSortHoverBg:y,tableHeaderIconColor:b.clone().setAlpha(b.getAlpha()*p).toRgbString(),tableHeaderIconColorHover:C.clone().setAlpha(C.getAlpha()*p).toRgbString(),tableBodySortBg:d,tableFixedHeaderSortActiveBg:v,tableHeaderFilterActiveBg:y,tableFilterDropdownBg:g,tableRowHoverBg:w,tableSelectedRowBg:S,tableSelectedRowHoverBg:n,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:a,tableFontSizeSmall:a,tableSelectionColumnWidth:u,tableExpandIconBg:g,tableExpandColumnWidth:_+2*e.padding,tableExpandedRowBg:d,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:i,tableScrollThumbBgHover:r,tableScrollBg:o});return[VA(k),MA(k),jA(k),HA(k),RA(k),IA(k),PA(k),OA(k),jA(k),LA(k),FA(k),AA(k),zA(k),DA(k),BA(k),ZA(k)]})),UA=[];function GA(e,t){var n,i=e.prefixCls,r=e.className,o=e.style,a=e.size,s=e.bordered,l=e.dropdownPrefixCls,c=e.dataSource,u=e.pagination,d=e.rowSelection,h=e.rowKey,f=void 0===h?"key":h,p=e.rowClassName,g=e.columns,m=e.children,y=e.childrenColumnName,b=e.onChange,C=e.getPopupContainer,S=e.loading,w=e.expandIcon,x=e.expandable,E=e.expandedRowRender,T=e.expandIconColumnIndex,I=e.indentSize,D=e.scroll,L=e.sortDirections,O=e.locale,R=e.showSorterTooltip,A=void 0===R||R;var M=v.useMemo((function(){return g||gD(m)}),[g,m]),P=v.useMemo((function(){return M.some((function(e){return e.responsive}))}),[M]),Z=VC(P),F=v.useMemo((function(){var e=new Set(Object.keys(Z).filter((function(e){return Z[e]})));return M.filter((function(t){return!t.responsive||t.responsive.some((function(t){return e.has(t)}))}))}),[M,Z]),B=ns(e,["className","style","columns"]),H=v.useContext(Pa),z=v.useContext(wa),j=z.locale,V=void 0===j?vo:j,W=z.renderEmpty,U=z.direction,G=a||H,K=Zt(Zt({},V.Table),O),Y=c||UA,q=v.useContext(wa).getPrefixCls,$=q("table",i),X=q("dropdown",l),Q=Zt({childrenColumnName:y,expandIconColumnIndex:T},x),J=Q.childrenColumnName,ee=void 0===J?"children":J,te=v.useMemo((function(){return Y.some((function(e){return null===e||void 0===e?void 0:e[ee]}))?"nest":E||x&&x.expandedRowRender?"row":null}),[Y]),ne={body:v.useRef()},ie=v.useMemo((function(){return"function"===typeof f?f:function(e){return null===e||void 0===e?void 0:e[f]}}),[f]),re=function(e,t,n){var i=v.useRef({});return[function(r){if(!i.current||i.current.data!==e||i.current.childrenColumnName!==t||i.current.getRowKey!==n){var o=new Map;!function e(i){i.forEach((function(i,r){var a=n(i,r);o.set(a,i),i&&"object"===(0,Bt.Z)(i)&&t in i&&e(i[t]||[])}))}(e),i.current={data:e,childrenColumnName:t,kvMap:o,getRowKey:n}}return i.current.kvMap.get(r)}]}(Y,ee,ie),oe=(0,k.Z)(re,1)[0],ae={},se=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Zt(Zt({},ae),e);n&&(ae.resetPagination(),i.pagination.current&&(i.pagination.current=1),u&&u.onChange&&u.onChange(1,i.pagination.pageSize)),D&&!1!==D.scrollToFirstRowOnChange&&ne.body.current&&yL(0,{getContainer:function(){return ne.body.current}}),null===b||void 0===b||b(i.pagination,i.filters,i.sorter,{currentDataSource:tA(EA(Y,i.sorterStates,ee),i.filterStates),action:t})},le=function(e){var t=e.prefixCls,n=e.mergedColumns,i=e.onSorterChange,r=e.sortDirections,o=e.tableLocale,a=e.showSorterTooltip,s=v.useState(SA(n,!0)),l=(0,k.Z)(s,2),c=l[0],u=l[1],d=v.useMemo((function(){var e=!0,t=SA(n,!1);if(!t.length)return c;var i=[];function r(t){e?i.push(t):i.push(Zt(Zt({},t),{sortOrder:null}))}var o=null;return t.forEach((function(t){null===o?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:o=!0)):(o&&!1!==t.multiplePriority||(e=!1),r(t))})),i}),[n,c]),h=v.useMemo((function(){var e=d.map((function(e){return{column:e.column,order:e.sortOrder}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[d]);function f(e){var t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat((0,_.Z)(d.filter((function(t){return t.key!==e.key}))),[e]):[e],u(t),i(xA(t),t)}return[function(e){return wA(t,e,d,f,r,o,a)},d,h,function(){return xA(d)}]}({prefixCls:$,mergedColumns:F,onSorterChange:function(e,t){se({sorter:e,sorterStates:t},"sort",!1)},sortDirections:L||["ascend","descend"],tableLocale:K,showSorterTooltip:A}),ce=(0,k.Z)(le,4),ue=ce[0],de=ce[1],he=ce[2],fe=ce[3],pe=v.useMemo((function(){return EA(Y,de,ee)}),[Y,de]);ae.sorter=fe(),ae.sorterStates=de;var ge=nA({prefixCls:$,locale:K,dropdownPrefixCls:X,mergedColumns:F,onFilterChange:function(e,t){se({filters:e,filterStates:t},"filter",!0)},getPopupContainer:C}),ve=(0,k.Z)(ge,3),me=ve[0],ye=ve[1],_e=ve[2],be=tA(pe,ye);ae.filters=_e,ae.filterStates=ye;var Ce=NA(v.useMemo((function(){var e={};return Object.keys(_e).forEach((function(t){null!==_e[t]&&(e[t]=_e[t])})),Zt(Zt({},he),{filters:e})}),[he,_e])),Se=(0,k.Z)(Ce,1)[0],we=rA(be.length,u,(function(e,t){se({pagination:Zt(Zt({},ae.pagination),{current:e,pageSize:t})},"paginate")})),ke=(0,k.Z)(we,2),xe=ke[0],Ee=ke[1];ae.pagination=!1===u?{}:function(e,t){var n={current:t.current,pageSize:t.pageSize},i=e&&"object"===(0,Bt.Z)(e)?e:{};return Object.keys(i).forEach((function(e){var i=t[e];"function"!==typeof i&&(n[e]=i)})),n}(u,xe),ae.resetPagination=Ee;var Te=v.useMemo((function(){if(!1===u||!xe.pageSize)return be;var e=xe.current,t=void 0===e?1:e,n=xe.total,i=xe.pageSize,r=void 0===i?10:i;return be.length<n?be.length>r?be.slice((t-1)*r,t*r):be:be.slice((t-1)*r,t*r)}),[!!u,be,xe&&xe.current,xe&&xe.pageSize,xe&&xe.total]),Ne=dA(d,{prefixCls:$,data:be,pageData:Te,getRowKey:ie,getRecordByKey:oe,expandType:te,childrenColumnName:ee,locale:K,getPopupContainer:C}),Ie=(0,k.Z)(Ne,2),De=Ie[0],Le=Ie[1];Q.__PARENT_RENDER_ICON__=Q.expandIcon,Q.expandIcon=Q.expandIcon||w||CL(K),"nest"===te&&void 0===Q.expandIconColumnIndex?Q.expandIconColumnIndex=d?1:0:Q.expandIconColumnIndex>0&&d&&(Q.expandIconColumnIndex-=1),"number"!==typeof Q.indentSize&&(Q.indentSize="number"===typeof I?I:15);var Oe,Re,Ae,Me=v.useCallback((function(e){return Se(De(me(ue(e))))}),[ue,me,De]);if(!1!==u&&(null===xe||void 0===xe?void 0:xe.total)){var Pe;Pe=xe.size?xe.size:"small"===G||"middle"===G?"small":void 0;var Ze=function(e){return v.createElement(pL,Zt({},xe,{className:Ja()($+"-pagination "+$+"-pagination-"+e,xe.className),size:Pe}))},Fe="rtl"===U?"left":"right",Be=xe.position;if(null!==Be&&Array.isArray(Be)){var He=Be.find((function(e){return e.includes("top")})),ze=Be.find((function(e){return e.includes("bottom")})),je=Be.every((function(e){return""+e==="none"}));He||ze||je||(Re=Ze(Fe)),He&&(Oe=Ze(He.toLowerCase().replace("top",""))),ze&&(Re=Ze(ze.toLowerCase().replace("bottom","")))}else Re=Ze(Fe)}"boolean"===typeof S?Ae={spinning:S}:"object"===(0,Bt.Z)(S)&&(Ae=Zt({spinning:!0},S));var Ve=WA($),We=(0,k.Z)(Ve,2),Ue=We[0],Ge=We[1],Ke=Ja()($+"-wrapper",(0,N.Z)({},$+"-wrapper-rtl","rtl"===U),r,Ge);return Ue(v.createElement("div",{ref:t,className:Ke,style:o},v.createElement(Cs,Zt({spinning:!1},Ae),Oe,v.createElement(jD,Zt({},B,{columns:F,direction:U,expandable:Q,prefixCls:$,className:Ja()((n={},(0,N.Z)(n,$+"-middle","middle"===G),(0,N.Z)(n,$+"-small","small"===G),(0,N.Z)(n,$+"-bordered",s),(0,N.Z)(n,$+"-empty",0===Y.length),n)),data:Te,rowKey:ie,rowClassName:function(e,t,n){var i;return i="function"===typeof p?Ja()(p(e,t,n)):Ja()(p),Ja()((0,N.Z)({},$+"-row-selected",Le.has(ie(e,t))),i)},emptyText:O&&O.emptyText||(W||sI)("Table"),internalHooks:BD,internalRefs:ne,transformColumns:Me})),Re)))}var KA=v.forwardRef(GA);KA.SELECTION_COLUMN=oA,KA.EXPAND_COLUMN=jD.EXPAND_COLUMN,KA.SELECTION_ALL=aA,KA.SELECTION_INVERT=sA,KA.SELECTION_NONE=lA,KA.Column=_L,KA.ColumnGroup=bL,KA.Summary=ND;var YA=KA,qA=hs("Popconfirm",(function(e){return function(e){var t,n,i=e.componentCls,r=e.iconCls,o=e.zIndexPopup,a=e.colorText,s=e.colorWarning,l=e.marginXS,c=e.fontSize,u=e.lineHeight;return(0,N.Z)({},i,(n={zIndex:o},(0,N.Z)(n,i+"-inner-content",{color:a}),(0,N.Z)(n,i+"-message",(t={position:"relative",marginBottom:l,color:a,fontSize:c,display:"flex",flexWrap:"nowrap",alignItems:"start"},(0,N.Z)(t,"> "+i+"-message-icon "+r,{color:s,fontSize:c,flex:"none",lineHeight:1,paddingTop:(Math.round(c*u)-c)/2}),(0,N.Z)(t,"&-title",{flex:"auto",marginInlineStart:l}),t)),(0,N.Z)(n,i+"-buttons",{textAlign:"end",button:{marginInlineStart:l}}),n))}(e)}),(function(e){return{zIndexPopup:e.zIndexPopupBase+60}})),$A=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},XA=function(e){var t=e.prefixCls,n=e.okButtonProps,i=e.cancelButtonProps,r=e.title,o=e.cancelText,a=e.okText,s=e.okType,l=void 0===s?"primary":s,c=e.icon,u=void 0===c?v.createElement(Au,null):c,d=e.showCancel,h=void 0===d||d,f=e.close,p=e.onConfirm,g=e.onCancel,m=v.useContext(wa).getPrefixCls;return v.createElement(So,{componentName:"Popconfirm",defaultLocale:vo.Popconfirm},(function(e){return v.createElement("div",{className:t+"-inner-content"},v.createElement("div",{className:t+"-message"},u&&v.createElement("span",{className:t+"-message-icon"},u),v.createElement("div",{className:t+"-message-title"},JC(r))),v.createElement("div",{className:t+"-buttons"},h&&v.createElement(Jg,Zt({onClick:g,size:"small"},i),null!==o&&void 0!==o?o:e.cancelText),v.createElement(nv,{buttonProps:Zt(Zt({size:"small"},$g(l)),n),actionFn:p,close:f,prefixCls:m("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},null!==a&&void 0!==a?a:e.okText)))}))};var QA=void 0,JA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},eM=v.forwardRef((function(e,t){var n=v.useContext(wa).getPrefixCls,i=Sf(!1,{value:e.open,defaultValue:e.defaultOpen}),r=(0,k.Z)(i,2),o=r[0],a=r[1],s=function(t,n){var i;a(t,!0),null===(i=e.onOpenChange)||void 0===i||i.call(e,t,n)},l=e.prefixCls,c=e.placement,u=void 0===c?"top":c,d=e.trigger,h=void 0===d?"click":d,f=e.okType,p=void 0===f?"primary":f,g=e.icon,m=void 0===g?v.createElement(Au,null):g,y=e.children,_=e.overlayClassName,b=JA(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName"]),C=n("popconfirm",l),S=Ja()(C,_),w=qA(C);return(0,(0,k.Z)(w,1)[0])(v.createElement(uS,Zt({},b,{trigger:h,placement:u,onOpenChange:function(t){var n=e.disabled;void 0!==n&&n||s(t)},open:o,ref:t,overlayClassName:S,_overlay:v.createElement(XA,Zt({okType:p,icon:m},e,{prefixCls:C,close:function(e){s(!1,e)},onConfirm:function(t){var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(QA,t)},onCancel:function(t){var n;s(!1,t),null===(n=e.onCancel)||void 0===n||n.call(QA,t)}})),"data-popover-inject":!0}),os(y,{onKeyDown:function(e){var t,n;v.isValidElement(y)&&(null===(n=null===y||void 0===y?void 0:(t=y.props).onKeyDown)||void 0===n||n.call(t,e)),function(e){e.keyCode===vv.ESC&&o&&s(!1,e)}(e)}})))}));eM._InternalPanelDoNotUseOrYouWillBeFired=function(e){var t=e.prefixCls,n=e.placement,i=e.className,r=e.style,o=$A(e,["prefixCls","placement","className","style"]),a=(0,v.useContext(wa).getPrefixCls)("popconfirm",t),s=qA(a);return(0,(0,k.Z)(s,1)[0])(v.createElement(aS,{placement:n,className:Ja()(a,i),style:r},v.createElement(XA,Zt({},o,{prefixCls:a}))))};var tM=eM,nM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},iM=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:nM}))};iM.displayName="ReloadOutlined";var rM=v.forwardRef(iM),oM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-circle",theme:"filled"},aM=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:oM}))};aM.displayName="MinusCircleFilled";var sM=v.forwardRef(aM),lM=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},cM=function(e){var t=e.prefixCls,n=e.separator,i=void 0===n?"/":n,r=e.children,o=e.menu,a=e.overlay,s=e.dropdownProps,l=lM(e,["prefixCls","separator","children","menu","overlay","dropdownProps"]),c=(0,v.useContext(wa).getPrefixCls)("breadcrumb",t);var u,d;return u="href"in l?v.createElement("a",Zt({className:c+"-link"},l),r):v.createElement("span",Zt({className:c+"-link"},l),r),d=u,u=o||a?v.createElement(HC,Zt({menu:o,overlay:a,placement:"bottom"},s),v.createElement("span",{className:c+"-overlay-link"},d,v.createElement(uI,null))):d,void 0!==r&&null!==r?v.createElement("li",null,u,i&&v.createElement("span",{className:c+"-separator"},i)):null};cM.__ANT_BREADCRUMB_ITEM=!0;var uM=cM,dM=function(e){var t=e.children,n=(0,v.useContext(wa).getPrefixCls)("breadcrumb");return v.createElement("span",{className:n+"-separator"},t||"/")};dM.__ANT_BREADCRUMB_SEPARATOR=!0;var hM=dM,fM=function(e){var t,n,i=e.componentCls,r=e.iconCls;return(0,N.Z)({},i,Zt(Zt({},Fa(e)),(n={color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize},(0,N.Z)(n,r,{fontSize:e.breadcrumbIconFontSize}),(0,N.Z)(n,"ol",{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"}),(0,N.Z)(n,"a",Zt({color:e.breadcrumbLinkColor,transition:"color "+e.motionDurationMid,padding:"0 "+e.paddingXXS+"px",borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},ja(e))),(0,N.Z)(n,"li:last-child > "+i+"-separator",{display:"none"}),(0,N.Z)(n,i+"-separator",{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor}),(0,N.Z)(n,i+"-link",(0,N.Z)({},"\n > "+r+" + span,\n > "+r+" + a\n ",{marginInlineStart:e.marginXXS})),(0,N.Z)(n,i+"-overlay-link",(t={borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:"0 "+e.paddingXXS+"px",marginInline:-e.marginXXS},(0,N.Z)(t,"> "+r,{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon}),(0,N.Z)(t,"&:hover",{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}}),(0,N.Z)(t,"a",{"&:hover":{backgroundColor:"transparent"}}),t)),(0,N.Z)(n,"&"+e.componentCls+"-rtl",{direction:"rtl"}),n)))},pM=hs("Breadcrumb",(function(e){var t=cs(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[fM(t)]})),gM=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function vM(e,t,n,i){var r=n.indexOf(e)===n.length-1,o=function(e,t){if(!e.breadcrumbName)return null;var n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(":("+n+")","g"),(function(e,n){return t[n]||e}))}(e,t);return r?v.createElement("span",null,o):v.createElement("a",{href:"#/"+i.join("/")},o)}var mM=function(e,t){return e=(e||"").replace(/^\//,""),Object.keys(t).forEach((function(n){e=e.replace(":"+n,t[n])})),e},yM=function(e,t,n){var i=(0,_.Z)(e),r=mM(t||"",n);return r&&i.push(r),i},_M=function(e){var t,n=e.prefixCls,i=e.separator,r=void 0===i?"/":i,o=e.style,a=e.className,s=e.routes,l=e.children,c=e.itemRender,u=void 0===c?vM:c,d=e.params,h=void 0===d?{}:d,f=gM(e,["prefixCls","separator","style","className","routes","children","itemRender","params"]),p=v.useContext(wa),g=p.getPrefixCls,m=p.direction,y=g("breadcrumb",n),_=pM(y),b=(0,k.Z)(_,2),C=b[0],S=b[1];if(s&&s.length>0){var w=[];t=s.map((function(e){var t,n=mM(e.path,h);n&&w.push(n),e.children&&e.children.length&&(t=v.createElement(CC,{items:e.children.map((function(e){return{key:e.path||e.breadcrumbName,label:u(e,h,s,yM(w,e.path,h))}}))}));var i={separator:r};return t&&(i.overlay=t),v.createElement(uM,Zt({},i,{key:n||e.breadcrumbName}),u(e,h,s,w))}))}else l&&(t=Zi(l).map((function(e,t){return e?os(e,{separator:r,key:t}):e})));var x=Ja()(y,(0,N.Z)({},y+"-rtl","rtl"===m),a,S);return C(v.createElement("nav",Zt({className:x,style:o},f),v.createElement("ol",null,t)))};_M.Item=uM,_M.Separator=hM;var bM=_M,CM=sE.Title,SM=sE.Paragraph,wM=sE.Text,kM=function(e){var t=e.title,i=e.describe,r=e.background,o=e.breadcrumb,a=e.hasBack,s=void 0!==a&&a,l=st(),c=lt(),u=(0,v.useMemo)((function(){return"url(".concat(r||n(35378),")")}),[r]),d=(0,v.useMemo)((function(){var e=l.pathname.split("/").filter((function(e){return e}));return e.map((function(t,n){var i="/".concat(e.slice(0,n+1).join("/"));return{to:i,label:NS[i]}})).filter((function(e){return e.label}))}),[l]);return(0,ES.jsxs)("div",{className:"advance-breadcrumb-title",style:{backgroundImage:u},children:[(0,ES.jsxs)(bM,{children:[(0,ES.jsx)(bM.Item,{children:(0,ES.jsx)(Rt,{to:"/",children:"\u9996\u9875"})},"home"),(null!==o&&void 0!==o&&o.length?o:d).map((function(e,t){var n=e.to,i=e.label;return(0,ES.jsx)(bM.Item,{children:(0,ES.jsx)(wM,{onClick:function(){n&&c(n)},children:i})},t)}))]}),(0,ES.jsxs)("div",{className:"flex",children:[s&&(0,ES.jsx)("div",{style:{paddingTop:22,paddingLeft:10},children:(0,ES.jsx)(al,{className:"back-icon",onClick:function(){c(-1)}})}),(0,ES.jsxs)("div",{style:{flex:"1 1 auto"},children:[(0,ES.jsx)(CM,{className:"title",level:4,children:t}),(0,ES.jsx)(SM,{className:"paragraph",children:i})]})]})]})},xM=function(){var e=st().pathname.split("/").filter((function(e){return e}));return(0,ES.jsx)("div",{className:"normal-breadcrumb-title",children:(0,ES.jsxs)(bM,{children:[(0,ES.jsx)(bM.Item,{children:(0,ES.jsx)(Rt,{to:"/",children:"\u9996\u9875"})},"home"),e.map((function(t,n){var i="/".concat(e.slice(0,n+1).join("/"));return NS[i]?(0,ES.jsx)(bM.Item,{children:(0,ES.jsx)(Rt,{to:i,children:NS[i]})},i):null}))]})})},EM=ip.useForm;function TM(e){var t=e.onRequest,n=EM(),i=(0,k.Z)(n,1)[0],r=(0,v.useState)(0),o=(0,k.Z)(r,2),a=o[0],s=o[1],l=(0,v.useState)(!1),c=(0,k.Z)(l,2),u=c[0],d=c[1],h=(0,v.useState)([]),f=(0,k.Z)(h,2),p=f[0],g=f[1],m=(0,v.useState)({current:1,pageSize:10}),y=(0,k.Z)(m,2),_=y[0],b=y[1],C=(0,v.useCallback)((0,T.Z)((0,E.Z)().mark((function e(){var n,r,o,a,l,c,u,h;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof t){e.next=20;break}return e.prev=1,d(!0),e.next=5,i.validateFields();case 5:return n=e.sent,r=_.current,o=_.pageSize,e.next=9,t((0,Ft.Z)((0,Ft.Z)({},n),{},{page:r,pageSize:o}));case 9:a=e.sent,l=a.success,c=a.result,l&&(u=c.list,h=c.total,g(u),s(h),0===u.length&&r&&r>1&&b((0,Ft.Z)((0,Ft.Z)({},_),{},{current:r-1}))),e.next=17;break;case 15:e.prev=15,e.t0=e.catch(1);case 17:return e.prev=17,d(!1),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[1,15,17,20]])}))),[_,i]),S=(0,v.useCallback)((function(){b((0,Ft.Z)((0,Ft.Z)({},_),{},{current:1}))}),[_]),w=(0,v.useCallback)((function(){i.resetFields(),b((0,Ft.Z)((0,Ft.Z)({},_),{},{current:1}))}),[_,i]),x=(0,v.useCallback)((function(){C()}),[C]);return(0,v.useEffect)((function(){C()}),[_]),{form:i,loading:u,dataSource:p,search:S,reset:w,reload:x,pagination:{size:"small",showQuickJumper:!0,showSizeChanger:!0,showTotal:function(e){return"\u5171 ".concat(e," \u6761")},total:a,current:_.current,pageSize:_.pageSize,onChange:function(e,t){b({current:e,pageSize:t})},onShowSizeChange:function(e,t){b({current:e,pageSize:t})}}}}var NM=function(e){var t=e.prefixCls,n=e.className,i=e.style,r=e.children,o=e.containerRef;return v.createElement(v.Fragment,null,v.createElement("div",{className:Ja()("".concat(t,"-content"),n),style:(0,Ft.Z)({},i),"aria-modal":"true",role:"dialog",ref:o},r))},IM=v.createContext(null);function DM(e){return"string"===typeof e&&String(Number(e))===e?(li(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var LM={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function OM(e){var t,n,i,r,o=e.prefixCls,a=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,d=e.autoFocus,h=e.keyboard,f=e.rootClassName,p=e.rootStyle,g=e.zIndex,m=e.className,y=e.style,_=e.motion,b=e.width,C=e.height,S=e.children,w=e.contentWrapperStyle,x=e.mask,E=e.maskClosable,T=e.maskMotion,I=e.maskClassName,D=e.maskStyle,L=e.afterOpenChange,O=e.onClose,R=v.useRef(),A=v.useRef(),M=v.useRef();v.useEffect((function(){var e;a&&d&&(null===(e=R.current)||void 0===e||e.focus({preventScroll:!0}))}),[a,d]);var P=v.useState(!1),Z=(0,k.Z)(P,2),F=Z[0],B=Z[1],H=v.useContext(IM),z=null!==(t=null!==(n=null===(i=!1===c?{distance:0}:!0===c?{}:c||{})||void 0===i?void 0:i.distance)&&void 0!==n?n:null===H||void 0===H?void 0:H.pushDistance)&&void 0!==t?t:180,j=v.useMemo((function(){return{pushDistance:z,push:function(){B(!0)},pull:function(){B(!1)}}}),[z]);v.useEffect((function(){var e,t;a?null===H||void 0===H||null===(e=H.push)||void 0===e||e.call(H):null===H||void 0===H||null===(t=H.pull)||void 0===t||t.call(H)}),[a]),v.useEffect((function(){return function(){var e;null===H||void 0===H||null===(e=H.pull)||void 0===e||e.call(H)}}),[]);var V=x&&v.createElement(xc,Zt({key:"mask"},T,{visible:a}),(function(e,t){var n=e.className,i=e.style;return v.createElement("div",{className:Ja()("".concat(o,"-mask"),n,I),style:(0,Ft.Z)((0,Ft.Z)({},i),D),onClick:E?O:void 0,ref:t})})),W="function"===typeof _?_(s):_,U={};if(F&&z)switch(s){case"top":U.transform="translateY(".concat(z,"px)");break;case"bottom":U.transform="translateY(".concat(-z,"px)");break;case"left":U.transform="translateX(".concat(z,"px)");break;default:U.transform="translateX(".concat(-z,"px)")}"left"===s||"right"===s?U.width=DM(b):U.height=DM(C);var G=v.createElement(xc,Zt({key:"panel"},W,{visible:a,forceRender:u,onVisibleChanged:function(e){null===L||void 0===L||L(e)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),(function(e,t){var n=e.className,i=e.style;return v.createElement("div",{className:Ja()("".concat(o,"-content-wrapper"),n),style:(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},U),i),w)},v.createElement(NM,{containerRef:t,prefixCls:o,className:m,style:y},S))})),K=(0,Ft.Z)({},p);return g&&(K.zIndex=g),v.createElement(IM.Provider,{value:j},v.createElement("div",{className:Ja()(o,"".concat(o,"-").concat(s),f,(r={},(0,N.Z)(r,"".concat(o,"-open"),a),(0,N.Z)(r,"".concat(o,"-inline"),l),r)),style:K,tabIndex:-1,ref:R,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case vv.TAB:var i;if(t===vv.TAB)if(n||document.activeElement!==M.current){if(n&&document.activeElement===A.current){var r;null===(r=M.current)||void 0===r||r.focus({preventScroll:!0})}}else null===(i=A.current)||void 0===i||i.focus({preventScroll:!0});break;case vv.ESC:O&&h&&O(e)}}},V,v.createElement("div",{tabIndex:0,ref:A,style:LM,"aria-hidden":"true","data-sentinel":"start"}),G,v.createElement("div",{tabIndex:0,ref:M,style:LM,"aria-hidden":"true","data-sentinel":"end"})))}var RM=function(e){var t=e.open,n=e.getContainer,i=e.forceRender,r=e.prefixCls,o=e.afterOpenChange,a=e.destroyOnClose,s=v.useState(!1),l=(0,k.Z)(s,2),c=l[0],u=l[1];if(!i&&!c&&!t&&a)return null;var d=(0,Ft.Z)((0,Ft.Z)({},e),{},{prefixCls:r,afterOpenChange:function(e){u(e),null===o||void 0===o||o(e)}});return v.createElement(pv,{open:t||i||c,autoDestroy:!1,getContainer:n,autoLock:t||c},v.createElement(OM,Zt({},d,{inline:!1===n})))};RM.defaultProps={open:!1,prefixCls:"rc-drawer",placement:"right",autoFocus:!0,keyboard:!0,width:378,mask:!0,maskClosable:!0};var AM=RM;function MM(e){var t=e.prefixCls,n=e.title,i=e.footer,r=e.extra,o=e.closable,a=void 0===o||o,s=e.closeIcon,l=void 0===s?v.createElement(Ap,null):s,c=e.onClose,u=e.headerStyle,d=e.drawerStyle,h=e.bodyStyle,f=e.footerStyle,p=e.children,g=a&&v.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:t+"-close"},l);return v.createElement("div",{className:t+"-wrapper-body",style:Zt({},d)},n||a?v.createElement("div",{className:Ja()(t+"-header",(0,N.Z)({},t+"-header-close-only",a&&!n&&!r)),style:u},v.createElement("div",{className:t+"-header-title"},g,n&&v.createElement("div",{className:t+"-title"},n)),r&&v.createElement("div",{className:t+"-extra"},r)):null,v.createElement("div",{className:t+"-body",style:h},p),function(){if(!i)return null;var e=t+"-footer";return v.createElement("div",{className:e,style:f},i)}())}var PM=function(e){var t,n=e.componentCls,i=e.motionDurationSlow,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:"all "+i}}};return(0,N.Z)({},n,(t={},(0,N.Z)(t,n+"-mask-motion",{"&-enter, &-appear, &-leave":{"&-active":{transition:"all "+i}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}}),(0,N.Z)(t,n+"-panel-motion",{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}),t))},ZM=function(e){var t,n,i=e.componentCls,r=e.zIndexPopup,o=e.colorBgMask,a=e.colorBgElevated,s=e.motionDurationSlow,l=e.motionDurationMid,c=e.padding,u=e.paddingLG,d=e.fontSizeLG,h=e.lineHeightLG,f=e.lineWidth,p=e.lineType,g=e.colorSplit,v=e.marginSM,m=e.colorIcon,y=e.colorIconHover,_=e.colorText,b=e.fontWeightStrong,C=e.drawerFooterPaddingVertical,S=e.drawerFooterPaddingHorizontal,w=i+"-content-wrapper";return(0,N.Z)({},i,(n={position:"fixed",inset:0,zIndex:r,pointerEvents:"none","&-pure":(t={position:"relative",background:a},(0,N.Z)(t,"&"+i+"-left",{boxShadow:e.boxShadowDrawerLeft}),(0,N.Z)(t,"&"+i+"-right",{boxShadow:e.boxShadowDrawerRight}),(0,N.Z)(t,"&"+i+"-top",{boxShadow:e.boxShadowDrawerUp}),(0,N.Z)(t,"&"+i+"-bottom",{boxShadow:e.boxShadowDrawerDown}),t),"&-inline":{position:"absolute"}},(0,N.Z)(n,i+"-mask",{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"}),(0,N.Z)(n,w,{position:"absolute",zIndex:r,transition:"all "+s,"&-hidden":{display:"none"}}),(0,N.Z)(n,"&-left > "+w,{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft}),(0,N.Z)(n,"&-right > "+w,{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight}),(0,N.Z)(n,"&-top > "+w,{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp}),(0,N.Z)(n,"&-bottom > "+w,{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown}),(0,N.Z)(n,i+"-content",{width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"}),(0,N.Z)(n,i+"-wrapper-body",{display:"flex",flexDirection:"column",width:"100%",height:"100%"}),(0,N.Z)(n,i+"-header",{display:"flex",flex:0,alignItems:"center",padding:c+"px "+u+"px",fontSize:d,lineHeight:h,borderBottom:f+"px "+p+" "+g,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}}),(0,N.Z)(n,i+"-extra",{flex:"none"}),(0,N.Z)(n,i+"-close",{display:"inline-block",marginInlineEnd:v,color:m,fontWeight:b,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:"color "+l,textRendering:"auto","&:focus, &:hover":{color:y,textDecoration:"none"}}),(0,N.Z)(n,i+"-title",{flex:1,margin:0,color:_,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:h}),(0,N.Z)(n,i+"-body",{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto"}),(0,N.Z)(n,i+"-footer",{flexShrink:0,padding:C+"px "+S+"px",borderTop:f+"px "+p+" "+g}),(0,N.Z)(n,"&-rtl",{direction:"rtl"}),n))},FM=hs("Drawer",(function(e){var t=cs(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[ZM(t),PM(t)]}),(function(e){return{zIndexPopup:e.zIndexPopupBase}})),BM=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},HM=(as("default","large"),{distance:180});function zM(e){var t=e.rootClassName,n=e.width,i=e.height,r=e.size,o=void 0===r?"default":r,a=e.mask,s=void 0===a||a,l=e.push,c=void 0===l?HM:l,u=e.open,d=e.afterOpenChange,h=e.onClose,f=e.prefixCls,p=e.getContainer,g=e.visible,m=e.afterVisibleChange,y=BM(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","visible","afterVisibleChange"]),_=v.useContext(wa),b=_.getPopupContainer,C=_.getPrefixCls,S=_.direction,w=C("drawer",f),x=FM(w),E=(0,k.Z)(x,2),T=E[0],I=E[1],D=void 0===p&&b?function(){return b(document.body)}:p,L=Ja()((0,N.Z)({"no-mask":!s},w+"-rtl","rtl"===S),t,I);var O=v.useMemo((function(){return null!==n&&void 0!==n?n:"large"===o?736:378}),[n,o]),R=v.useMemo((function(){return null!==i&&void 0!==i?i:"large"===o?736:378}),[i,o]),A={motionName:Lc(w,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500};return T(v.createElement(wl,{status:!0,override:!0},v.createElement(AM,Zt({prefixCls:w,onClose:h,maskMotion:A,motion:function(e){return{motionName:Lc(w,"panel-motion-"+e),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}}},y,{open:null!==u&&void 0!==u?u:g,mask:s,push:c,width:O,height:R,rootClassName:L,getContainer:D,afterOpenChange:null!==d&&void 0!==d?d:m}),v.createElement(MM,Zt({prefixCls:w},y,{onClose:h})))))}zM._InternalPanelDoNotUseOrYouWillBeFired=function(e){var t=e.prefixCls,n=e.style,i=e.className,r=e.placement,o=void 0===r?"right":r,a=BM(e,["prefixCls","style","className","placement"]),s=(0,v.useContext(wa).getPrefixCls)("drawer",t),l=FM(s),c=(0,k.Z)(l,2),u=c[0],d=c[1];return u(v.createElement("div",{className:Ja()(s,s+"-pure",s+"-"+o,d,i),style:n},v.createElement(MM,Zt({prefixCls:s},a))))};var jM=zM;var VM=function(e,t,n){var i=function(e){return"string"!==typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}(n);return(0,N.Z)({},e.componentCls+"-"+t,{color:e["color"+n],background:e["color"+i+"Bg"],borderColor:e["color"+i+"Border"]})},WM=function(e){return Nf.reduce((function(t,n){var i,r=e[n+"-1"],o=e[n+"-3"],a=e[n+"-6"],s=e[n+"-7"];return Zt(Zt({},t),(i={},(0,N.Z)(i,e.componentCls+"-"+n,{color:s,background:r,borderColor:o}),(0,N.Z)(i,e.componentCls+"-"+n+"-inverse",{color:e.colorTextLightSolid,background:a,borderColor:a}),i))}),{})},UM=function(e){var t,n=e.paddingXXS,i=e.lineWidth,r=e.tagPaddingHorizontal-i,o=n-i;return(0,N.Z)({},e.componentCls,Zt(Zt({},Fa(e)),(t={display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:r,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight+"px",whiteSpace:"nowrap",background:e.tagDefaultBg,border:e.lineWidth+"px "+e.lineType+" "+e.colorBorder,borderRadius:e.borderRadiusSM,opacity:1,transition:"all "+e.motionDurationMid,textAlign:"start","&&-rtl":{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor}},(0,N.Z)(t,e.componentCls+"-close-icon",{marginInlineStart:o,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:"all "+e.motionDurationMid,"&:hover":{color:e.colorTextHeading}}),(0,N.Z)(t,"&&-has-color",(0,N.Z)({borderColor:"transparent"},"&, a, a:hover, "+e.iconCls+"-close, "+e.iconCls+"-close:hover",{color:e.colorTextLightSolid})),(0,N.Z)(t,"&-checkable",{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer","&:not(&-checked):hover":{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}}),(0,N.Z)(t,"&-hidden",{display:"none"}),(0,N.Z)(t,"> "+e.iconCls+" + span, > span + "+e.iconCls,{marginInlineStart:r}),t)))},GM=hs("Tag",(function(e){var t=e.fontSize,n=e.lineHeight,i=e.lineWidth,r=e.fontSizeIcon,o=Math.round(t*n),a=cs(e,{tagFontSize:e.fontSizeSM,tagLineHeight:o-2*i,tagDefaultBg:e.colorFillAlter,tagDefaultColor:e.colorText,tagIconSize:r-2*i,tagPaddingHorizontal:8});return[UM(a),WM(a),VM(a,"success","Success"),VM(a,"processing","Info"),VM(a,"error","Error"),VM(a,"warning","Warning")]})),KM=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},YM=function(e){var t,n=e.prefixCls,i=e.className,r=e.checked,o=e.onChange,a=e.onClick,s=KM(e,["prefixCls","className","checked","onChange","onClick"]),l=(0,v.useContext(wa).getPrefixCls)("tag",n),c=GM(l),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=Ja()(l,(t={},(0,N.Z)(t,l+"-checkable",!0),(0,N.Z)(t,l+"-checkable-checked",r),t),i,h);return d(v.createElement("span",Zt({},s,{className:f,onClick:function(e){null===o||void 0===o||o(!r),null===a||void 0===a||a(e)}})))},qM=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},$M=new RegExp("^("+Zf.join("|")+")(-inverse)?$"),XM=new RegExp("^("+Pf.join("|")+")$"),QM=function(e,t){var n,i=e.prefixCls,r=e.className,o=e.style,a=e.children,s=e.icon,l=e.color,c=e.onClose,u=e.closeIcon,d=e.closable,h=void 0!==d&&d,f=qM(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),p=v.useContext(wa),g=p.getPrefixCls,m=p.direction,y=v.useState(!0),_=(0,k.Z)(y,2),b=_[0],C=_[1];v.useEffect((function(){"visible"in f&&C(f.visible)}),[f.visible]);var S=function(){return!!l&&($M.test(l)||XM.test(l))},w=Zt({backgroundColor:l&&!S()?l:void 0},o),x=S(),E=g("tag",i),T=GM(E),I=(0,k.Z)(T,2),D=I[0],L=I[1],O=Ja()(E,(n={},(0,N.Z)(n,E+"-"+l,x),(0,N.Z)(n,E+"-has-color",l&&!x),(0,N.Z)(n,E+"-hidden",!b),(0,N.Z)(n,E+"-rtl","rtl"===m),n),r,L),R=function(e){e.stopPropagation(),null===c||void 0===c||c(e),e.defaultPrevented||C(!1)},A="onClick"in f||a&&"a"===a.type,M=s||null,P=M?v.createElement(v.Fragment,null,M,v.createElement("span",null,a)):a,Z=v.createElement("span",Zt({},f,{ref:t,className:O,style:w}),P,h?u?v.createElement("span",{className:E+"-close-icon",onClick:R},u):v.createElement(Ap,{className:E+"-close-icon",onClick:R}):null);return D(A?v.createElement(vg,null,Z):Z)},JM=v.forwardRef(QM);JM.CheckableTag=YM;var eP=JM,tP=(0,v.forwardRef)((function(e,t){var n=(0,v.useState)(!1),i=(0,k.Z)(n,2),r=i[0],o=i[1],a=(0,v.useState)([]),s=(0,k.Z)(a,2),l=s[0],c=s[1];(0,v.useImperativeHandle)(t,(function(){return{open:function(e){var t;o(!0),(t=e,kk({url:"/api/v1/thingmodel-template/"+t})).then((function(e){if(e.success){var t=e.result,n=t.actions,i=t.events,r=t.properties;c([].concat((0,_.Z)((r||[]).map((function(e){return{type:"\u5c5e\u6027",id:e.id,name:e.name,code:e.code,tag:e.tag,type_spec:e.type_spec.type}}))),(0,_.Z)((i||[]).map((function(e){return{type:"\u5c5e\u6027",id:e.id,name:e.name,code:e.code,tag:e.tag,type_spec:"-"}}))),(0,_.Z)((n||[]).map((function(e){return{type:"\u5c5e\u6027",id:e.id,name:e.name,code:e.code,tag:e.tag,type_spec:"-"}})))))}}))}}}),[]);var u=(0,v.useCallback)((function(){o(!1)}),[]);return(0,ES.jsx)(gm,{title:"\u6807\u51c6\u529f\u80fd\u5b9a\u4e49",open:r,onOk:u,onCancel:u,okText:"\u786e\u5b9a",cancelText:"\u5173\u95ed",width:700,children:(0,ES.jsx)(YA,{rowKey:"id",dataSource:l,columns:[{title:"\u529f\u80fd\u7c7b\u578b",key:"type",dataIndex:"type",render:function(e,t){return(0,ES.jsxs)(ES.Fragment,{children:[e,(0,ES.jsx)(eP,{color:"processing",className:"ml10",children:t.tag})]})}},{title:"\u529f\u80fd\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u6807\u8bc6\u7b26",key:"code",dataIndex:"code"},{title:"\u6570\u636e\u7c7b\u578b",key:"type_spec",dataIndex:"type_spec"}]})})}));tP.displayName="StandardFuncModal";var nP=sE.Text,iP=(0,v.forwardRef)((function(e,t){var n=e.onChange,i=(0,v.useRef)(null),r=(0,v.useState)(!1),o=(0,k.Z)(r,2),a=o[0],s=o[1],l=TM({onRequest:Ek}),c=l.loading,u=l.dataSource,d=l.pagination,h=l.form,f=l.reset,p=l.search;(0,v.useImperativeHandle)(t,(function(){return{open:function(){s(!0)}}}),[]);var g=(0,v.useCallback)((function(){s(!1)}),[]);return(0,ES.jsxs)(jM,{title:"\u9009\u62e9\u54c1\u7c7b",placement:"right",open:a,width:550,closable:!1,maskClosable:!1,destroyOnClose:!1,headerStyle:{height:51},onClose:g,extra:(0,ES.jsx)(Ap,{onClick:g}),footer:(0,ES.jsx)(Vy,{children:(0,ES.jsx)(Jg,{onClick:g,children:"\u53d6\u6d88"})}),children:[(0,ES.jsx)(tP,{ref:i}),(0,ES.jsxs)(ip,{layout:"inline",form:h,className:"mb20",children:[(0,ES.jsx)(ip.Item,{name:"category_name",children:(0,ES.jsx)(Zy,{placeholder:"\u8f93\u5165\u54c1\u7c7b\u540d\u79f0"})},"category_name"),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"primary",onClick:p,children:"\u67e5\u8be2"})}),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"default",onClick:f,children:"\u91cd\u7f6e"})})]}),(0,ES.jsx)(YA,{loading:c,dataSource:u,pagination:(0,Ft.Z)((0,Ft.Z)({},d),{},{showSizeChanger:!1,showQuickJumper:!1}),bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u54c1\u7c7b\u540d\u79f0",key:"category_name",dataIndex:"category_name"},{title:"\u6240\u5c5e\u573a\u666f",key:"scene",dataIndex:"scene"},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",render:function(e,t){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(nP,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(sE.Link,{onClick:function(){null===n||void 0===n||n(t),g()},children:"\u9009\u62e9"}),(0,ES.jsx)(sE.Link,{onClick:function(){var e;null===(e=i.current)||void 0===e||e.open(t.category_key)},children:"\u67e5\u770b\u6807\u51c6\u7269\u6a21\u578b"})]})}}]})]})})),rP=function(e){var t=(0,v.useRef)(null),n=(0,v.useState)(),i=(0,k.Z)(n,2),r=i[0],o=i[1],a=(0,v.useState)(),s=(0,k.Z)(a,2),l=s[0],c=s[1];return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(iP,{ref:t,onChange:function(t){var n,i,r=t.id,a=t.category_key,s=t.category_name;o(r),c([{label:s,value:r}]),null===(n=e.onChange)||void 0===n||n.call(e,r,[]),null===(i=e.onCategoryKeyChange)||void 0===i||i.call(e,a)}}),(0,ES.jsx)(NI,(0,Ft.Z)((0,Ft.Z)({},e),{},{open:!1,options:l,value:r,onFocus:function(){var e;null===(e=t.current)||void 0===e||e.open()}}))]})},oP=ip.useForm,aP=Zy.TextArea,sP=(0,v.forwardRef)((function(e,t){var n=e.onFinish,i=oP(),r=(0,k.Z)(i,1)[0],o=(0,v.useState)(!1),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useRef)(null),p=(0,v.useRef)("");(0,v.useImperativeHandle)(t,(function(){return{open:function(){h(!0)}}}),[r]);var g=(0,v.useCallback)((function(){r.resetFields(),h(!1)}),[r]);return(0,ES.jsxs)(jM,{title:"\u521b\u5efa\u4ea7\u54c1",placement:"right",open:d,width:550,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:g}),onClose:g,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:s,disabled:s,onClick:function(){r.validateFields().then((function(e){"category_template_id2"in e&&(e.category_template_id=e.category_template_id2,delete e.category_template_id2),l(!0),function(e){return kk({url:"/api/v1/product",method:"post",data:e})}(e).then((function(e){e.success?(qp.success("\u6dfb\u52a0\u6210\u529f"),g(),n()):qp.error(e.errorMsg)})).finally((function(){l(!1)}))}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:g,children:"\u53d6\u6d88"})]}),children:[(0,ES.jsx)(tP,{ref:f}),(0,ES.jsxs)(ip,{form:r,layout:"vertical",children:[(0,ES.jsx)(ip.Item,{label:"\u4ea7\u54c1\u540d\u79f0",name:"name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4ea7\u54c1\u540d\u79f0"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u4ea7\u54c1\u540d\u79f0"})}),(0,ES.jsx)(ip.Item,{label:"\u6240\u5c5e\u54c1\u7c7b",name:"category_template_id",extra:"\u9009\u62e9\u6807\u51c6\u54c1\u7c7b\u65f6, \u9700\u4ece\u7cfb\u7edf\u751f\u6210\u7684\u54c1\u7c7b\u5217\u8868\u4e2d\u9009\u62e9\u4e00\u4e2a\u54c1\u7c7b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6240\u5c5e\u54c1\u7c7b"}],children:(0,ES.jsxs)(cO.Group,{children:[(0,ES.jsx)(cO,{value:"0",children:"\u6807\u51c6\u54c1\u7c7b"}),(0,ES.jsx)(cO,{value:"1",children:"\u81ea\u5b9a\u4e49\u54c1\u7c7b"})]})}),(0,ES.jsx)(ip.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.category_template_id!==t.category_template_id||e.category_template_id2!==t.category_template_id2},children:function(e){var t=e.getFieldValue,n=t("category_template_id2");return"0"===t("category_template_id")?(0,ES.jsx)(ip.Item,{label:"\u9009\u62e9\u6807\u51c6\u54c1\u7c7b",name:"category_template_id2",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6807\u51c6\u54c1\u7c7b"}],extra:n&&(0,ES.jsx)("div",{className:"mt10",children:(0,ES.jsx)(sE.Link,{onClick:function(){var e;null===(e=f.current)||void 0===e||e.open(p.current)},children:"\u67e5\u770b\u529f\u80fd"})}),children:(0,ES.jsx)(rP,{onCategoryKeyChange:function(e){p.current=e}})}):null}}),(0,ES.jsx)(ip.Item,{label:"\u8282\u70b9\u7c7b\u578b",name:"node_type",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8282\u70b9\u7c7b\u578b"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",options:[{label:"\u76f4\u8fde\u8bbe\u5907",value:"\u76f4\u8fde\u8bbe\u5907"},{label:"\u7f51\u5173\u8bbe\u5907",value:"\u7f51\u5173\u8bbe\u5907"},{label:"\u7f51\u5173\u5b50\u8bbe\u5907",value:"\u7f51\u5173\u5b50\u8bbe\u5907"}]})}),(0,ES.jsx)(ip.Item,{label:"\u63a5\u5165\u7f51\u5173\u534f\u8bae",name:"protocol",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u63a5\u5165\u7f51\u5173\u534f\u8bae"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",options:[{label:"MQTT",value:"MQTT"},{label:"HTTP",value:"HTTP"},{label:"\u5176\u4ed6",value:"\u5176\u4ed6"}]})}),(0,ES.jsx)(ip.Item,{label:"\u6570\u636e\u683c\u5f0f",name:"data_format",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u683c\u5f0f"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",options:[{label:"\u6807\u51c6\u7269\u6a21\u578b",value:"\u6807\u51c6\u7269\u6a21\u578b"}]})}),(0,ES.jsx)(ip.Item,{label:"\u7f51\u7edc\u7c7b\u578b",name:"net_type",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7f51\u7edc\u7c7b\u578b"}],children:(0,ES.jsxs)(cO.Group,{children:[(0,ES.jsx)(cO,{value:"\u4ee5\u592a\u7f51",children:"\u4ee5\u592a\u7f51"}),(0,ES.jsx)(cO,{value:"\u8702\u7a9d",children:"\u8702\u7a9d"}),(0,ES.jsx)(cO,{value:"WIFI",children:"WIFI"}),(0,ES.jsx)(cO,{value:"NB",children:"NB"}),(0,ES.jsx)(cO,{value:"\u5176\u4ed6",children:"\u5176\u4ed6"})]})}),(0,ES.jsx)(ip.Item,{label:"\u5de5\u5382",name:"factory",children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"\u4ea7\u54c1\u63cf\u8ff0",name:"description",children:(0,ES.jsx)(aP,{placeholder:"\u8bf7\u8f93\u5165\u4ea7\u54c1\u63cf\u8ff0",rows:4})})]})]})})),lP=sE.Text,cP=qp.useMessage,uP=function(){var e=Pt(),t=(0,k.Z)(e,1)[0];(0,v.useEffect)((function(){var e;t.has("create")&&(null===(e=r.current)||void 0===e||e.open())}),[]);var i=lt(),r=(0,v.useRef)(null),o=cP(),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=TM({onRequest:Rk}),u=c.loading,d=c.form,h=c.dataSource,f=c.pagination,p=c.reload,g=c.search,m=c.reset,y=Mk().data;return(0,ES.jsxs)(ES.Fragment,{children:[l,(0,ES.jsx)(sP,{ref:r,onFinish:g}),(0,ES.jsx)(kM,{title:"\u4ea7\u54c1\u7ba1\u7406",describe:"\u5728\u7269\u8054\u7f51\u5e73\u53f0\u4e2d\uff0c\u67d0\u4e00\u7c7b\u5177\u6709\u76f8\u540c\u80fd\u529b\u6216\u7279\u5f81\u7684\u8bbe\u5907\u7684\u5408\u96c6\u88ab\u79f0\u4e3a\u4e00\u6b3e\u4ea7\u54c1\u3002\u8d62\u521b\u4e07\u8054\u5df2\u7ecf\u6253\u901a\u4e86\u5e02\u9762\u4e0a\u4e3b\u6d41iot\u4e91\u5e73\u53f0\uff0c\u53ef\u4ee5\u628a\u4e91\u5e73\u53f0\u4ea7\u54c1\u6570\u636e\u540c\u6b65\u5230\u672c\u5730\uff0c\u7b2c\u4e00\u6b21\u4f7f\u7528\u8bf7\u70b9\u51fb\u6570\u636e\u540c\u6b65\u6309\u94ae\u8fdb\u884c\u6570\u636e\u540c\u6b65\u3002",background:n(64669)}),(0,ES.jsx)(AT,{className:"m20",size:"small",children:(0,ES.jsxs)(ip,{layout:"inline",form:d,children:[(0,ES.jsx)(ip.Item,{name:"platform",initialValue:"",children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9\u4e91\u5e73\u53f0",style:{minWidth:180},options:[{label:"\u4e91\u5e73\u53f0 (\u5168\u90e8)",value:""}].concat((0,_.Z)(y.map((function(e){return{label:e,value:e}}))))})},"platform"),(0,ES.jsx)(ip.Item,{name:"name",children:(0,ES.jsx)(Zy,{placeholder:"\u4ea7\u54c1\u540d\u79f0"})},"name"),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"primary",onClick:g,children:"\u67e5\u8be2"})}),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"default",onClick:m,children:"\u91cd\u7f6e"})})]})}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsxs)(Vy,{className:"mb15 justify-space-between",children:[(0,ES.jsxs)(Jg,{type:"primary",onClick:function(){var e;null===(e=r.current)||void 0===e||e.open()},children:[(0,ES.jsx)(RE,{}),"\u521b\u5efa\u4ea7\u54c1"]}),(0,ES.jsxs)("div",{className:"flex-center",children:[(0,ES.jsx)(Vy.Compact,{block:!0}),(0,ES.jsxs)(Jg,{className:"ml10",onClick:function(){p()},children:[(0,ES.jsx)(rM,{}),"\u5237\u65b0"]})]})]}),(0,ES.jsx)(YA,{loading:u,dataSource:h,pagination:f,bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u4ea7\u54c1\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u4ea7\u54c1\u7f16\u53f7",key:"product_id",dataIndex:"product_id",render:function(e){return e?(0,ES.jsx)(lP,{copyable:{tooltips:["\u590d\u5236","\u590d\u5236\u6210\u529f"]},children:e}):null}},{title:"\u7c7b\u578b",key:"node_type",dataIndex:"node_type"},{title:"\u4e91\u5e73\u53f0",key:"platform",dataIndex:"platform"},{title:"\u521b\u5efa\u65f6\u95f4",key:"created_at",dataIndex:"created_at",render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u72b6\u6001",key:"status",dataIndex:"status",render:function(e){return"\u672a\u53d1\u5e03"===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(sM,{style:{color:"#87909d"}}),"\u672a\u53d1\u5e03"]}):"\u5df2\u53d1\u5e03"===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Nu,{style:{color:"#55af70"}}),"\u5df2\u53d1\u5e03"]}):"-"}},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",render:function(e,t){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(lP,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(sE.Link,{onClick:function(){i("/gateway/product/detail/".concat(null===t||void 0===t?void 0:t.id))},children:"\u8be6\u60c5"}),(0,ES.jsx)(sE.Link,{onClick:function(){i("/gateway/device/manage/".concat(null===t||void 0===t?void 0:t.id))},children:"\u7ba1\u7406\u8bbe\u5907"}),(0,ES.jsx)(tM,{title:"\u6b64\u64cd\u4f5c\u5c06\u6c38\u4e45\u5220\u9664\u8be5\u6761\u8bb0\u5f55, \u662f\u5426\u7ee7\u7eed?",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){var e;(e=null===t||void 0===t?void 0:t.id,kk({url:"/api/v1/product/".concat(e),method:"delete",data:{productId:e}})).then((function(e){e.success?(s.open({type:"success",content:"\u5220\u9664\u6210\u529f"}),p()):s.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}]})]})]})},dP=function(e){return e.children};function hP(e){return void 0!==e&&null!==e}var fP=function(e){var t,n=e.itemPrefixCls,i=e.component,r=e.span,o=e.className,a=e.style,s=e.labelStyle,l=e.contentStyle,c=e.bordered,u=e.label,d=e.content,h=e.colon,f=i;return c?v.createElement(f,{className:Ja()((t={},(0,N.Z)(t,n+"-item-label",hP(u)),(0,N.Z)(t,n+"-item-content",hP(d)),t),o),style:a,colSpan:r},hP(u)&&v.createElement("span",{style:s},u),hP(d)&&v.createElement("span",{style:l},d)):v.createElement(f,{className:Ja()(n+"-item",o),style:a,colSpan:r},v.createElement("div",{className:n+"-item-container"},(u||0===u)&&v.createElement("span",{className:Ja()(n+"-item-label",(0,N.Z)({},n+"-item-no-colon",!h)),style:s},u),(d||0===d)&&v.createElement("span",{className:Ja()(n+"-item-content"),style:l},d)))};function pP(e,t,n){var i=t.colon,r=t.prefixCls,o=t.bordered,a=n.component,s=n.type,l=n.showLabel,c=n.showContent,u=n.labelStyle,d=n.contentStyle;return e.map((function(e,t){var n=e.props,h=n.label,f=n.children,p=n.prefixCls,g=void 0===p?r:p,m=n.className,y=n.style,_=n.labelStyle,b=n.contentStyle,C=n.span,S=void 0===C?1:C,w=e.key;return"string"===typeof a?v.createElement(fP,{key:s+"-"+(w||t),className:m,style:y,labelStyle:Zt(Zt({},u),_),contentStyle:Zt(Zt({},d),b),span:S,colon:i,component:a,itemPrefixCls:g,bordered:o,label:l?h:null,content:c?f:null}):[v.createElement(fP,{key:"label-"+(w||t),className:m,style:Zt(Zt(Zt({},u),y),_),span:1,colon:i,component:a[0],itemPrefixCls:g,bordered:o,label:h}),v.createElement(fP,{key:"content-"+(w||t),className:m,style:Zt(Zt(Zt({},d),y),b),span:2*S-1,component:a[1],itemPrefixCls:g,bordered:o,content:f})]}))}var gP=function(e){var t=v.useContext(yP),n=e.prefixCls,i=e.vertical,r=e.row,o=e.index,a=e.bordered;return i?v.createElement(v.Fragment,null,v.createElement("tr",{key:"label-"+o,className:n+"-row"},pP(r,e,Zt({component:"th",type:"label",showLabel:!0},t))),v.createElement("tr",{key:"content-"+o,className:n+"-row"},pP(r,e,Zt({component:"td",type:"content",showContent:!0},t)))):v.createElement("tr",{key:o,className:n+"-row"},pP(r,e,Zt({component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},vP=function(e){var t,n,i=e.componentCls,r=e.descriptionsExtraColor,o=e.descriptionItemPaddingBottom,a=e.descriptionsItemLabelColonMarginRight,s=e.descriptionsItemLabelColonMarginLeft,l=e.descriptionsTitleMarginBottom;return(0,N.Z)({},i,Zt(Zt(Zt({},Fa(e)),function(e){var t,n=e.componentCls,i=e.descriptionsSmallPadding,r=e.descriptionsDefaultPadding,o=e.descriptionsMiddlePadding,a=e.descriptionsBg;return(0,N.Z)({},"&"+n+"-bordered",(t={},(0,N.Z)(t,n+"-view",{border:e.lineWidth+"px "+e.lineType+" "+e.colorSplit,"> table":{tableLayout:"auto",borderCollapse:"collapse"}}),(0,N.Z)(t,n+"-item-label, "+n+"-item-content",{padding:r,borderInlineEnd:e.lineWidth+"px "+e.lineType+" "+e.colorSplit,"&:last-child":{borderInlineEnd:"none"}}),(0,N.Z)(t,n+"-item-label",{backgroundColor:a,"&::after":{display:"none"}}),(0,N.Z)(t,n+"-row",{borderBottom:e.lineWidth+"px "+e.lineType+" "+e.colorSplit,"&:last-child":{borderBottom:"none"}}),(0,N.Z)(t,"&"+n+"-middle",(0,N.Z)({},n+"-item-label, "+n+"-item-content",{padding:o})),(0,N.Z)(t,"&"+n+"-small",(0,N.Z)({},n+"-item-label, "+n+"-item-content",{padding:i})),t))}(e)),(n={},(0,N.Z)(n,"&-rtl",{direction:"rtl"}),(0,N.Z)(n,i+"-header",{display:"flex",alignItems:"center",marginBottom:l}),(0,N.Z)(n,i+"-title",Zt(Zt({},Za),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG})),(0,N.Z)(n,i+"-extra",{marginInlineStart:"auto",color:r,fontSize:e.fontSize}),(0,N.Z)(n,i+"-view",{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}}),(0,N.Z)(n,i+"-row",{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}}),(0,N.Z)(n,i+"-item-label",(0,N.Z)({color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:s+"px "+a+"px"}},"&"+i+"-item-no-colon::after",{content:'""'})),(0,N.Z)(n,i+"-item-no-label",{"&::after":{margin:0,content:'""'}}),(0,N.Z)(n,i+"-item-content",{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"}),(0,N.Z)(n,i+"-item",{paddingBottom:0,verticalAlign:"top","&-container":(t={display:"flex"},(0,N.Z)(t,i+"-item-label",{display:"inline-flex",alignItems:"baseline"}),(0,N.Z)(t,i+"-item-content",{display:"inline-flex",alignItems:"baseline"}),t)}),(0,N.Z)(n,"&-middle",(0,N.Z)({},i+"-row",{"> th, > td":{paddingBottom:e.paddingSM}})),(0,N.Z)(n,"&-small",(0,N.Z)({},i+"-row",{"> th, > td":{paddingBottom:e.paddingXS}})),n)))},mP=hs("Descriptions",(function(e){var t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,i=e.colorText,r=e.paddingXS+"px "+e.padding+"px",o=e.padding+"px "+e.paddingLG+"px",a=e.paddingSM+"px "+e.paddingLG+"px",s=cs(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:i,descriptionItemPaddingBottom:e.padding,descriptionsSmallPadding:r,descriptionsDefaultPadding:o,descriptionsMiddlePadding:a,descriptionsItemLabelColonMarginRight:e.marginXS,descriptionsItemLabelColonMarginLeft:e.marginXXS/2});return[vP(s)]})),yP=v.createContext({}),_P={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function bP(e,t,n){var i=e;return(void 0===t||t>n)&&(i=os(e,{span:n})),i}function CP(e){var t,n=e.prefixCls,i=e.title,r=e.extra,o=e.column,a=void 0===o?_P:o,s=e.colon,l=void 0===s||s,c=e.bordered,u=e.layout,d=e.children,h=e.className,f=e.style,p=e.size,g=e.labelStyle,m=e.contentStyle,y=v.useContext(wa),_=y.getPrefixCls,b=y.direction,C=_("descriptions",n),S=v.useState({}),w=(0,k.Z)(S,2),x=w[0],E=w[1],T=function(e,t){if("number"===typeof e)return e;if("object"===(0,Bt.Z)(e))for(var n=0;n<Uu.length;n++){var i=Uu[n];if(t[i]&&void 0!==e[i])return e[i]||_P[i]}return 3}(a,x),I=mP(C),D=(0,k.Z)(I,2),L=D[0],O=D[1];v.useEffect((function(){var e=Xu.subscribe((function(e){"object"===(0,Bt.Z)(a)&&E(e)}));return function(){Xu.unsubscribe(e)}}),[]);var R=function(e,t){var n=Zi(e).filter((function(e){return e})),i=[],r=[],o=t;return n.forEach((function(e,a){var s,l=null===(s=e.props)||void 0===s?void 0:s.span,c=l||1;if(a===n.length-1)return r.push(bP(e,l,o)),void i.push(r);c<o?(o-=c,r.push(e)):(r.push(bP(e,c,o)),i.push(r),o=t,r=[])})),i}(d,T),A=v.useMemo((function(){return{labelStyle:g,contentStyle:m}}),[g,m]);return L(v.createElement(yP.Provider,{value:A},v.createElement("div",{className:Ja()(C,(t={},(0,N.Z)(t,C+"-"+p,p&&"default"!==p),(0,N.Z)(t,C+"-bordered",!!c),(0,N.Z)(t,C+"-rtl","rtl"===b),t),h,O),style:f},(i||r)&&v.createElement("div",{className:C+"-header"},i&&v.createElement("div",{className:C+"-title"},i),r&&v.createElement("div",{className:C+"-extra"},r)),v.createElement("div",{className:C+"-view"},v.createElement("table",null,v.createElement("tbody",null,R.map((function(e,t){return v.createElement(gP,{key:t,index:t,colon:l,prefixCls:C,vertical:"vertical"===u,bordered:c,row:e})}))))))))}CP.Item=dP;var SP=CP,wP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},kP=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:wP}))};kP.displayName="SyncOutlined";var xP,EP=v.forwardRef(kP),TP={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},NP=new Uint8Array(16);function IP(){if(!xP&&!(xP="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return xP(NP)}for(var DP=[],LP=0;LP<256;++LP)DP.push((LP+256).toString(16).slice(1));function OP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(DP[e[t+0]]+DP[e[t+1]]+DP[e[t+2]]+DP[e[t+3]]+"-"+DP[e[t+4]]+DP[e[t+5]]+"-"+DP[e[t+6]]+DP[e[t+7]]+"-"+DP[e[t+8]]+DP[e[t+9]]+"-"+DP[e[t+10]]+DP[e[t+11]]+DP[e[t+12]]+DP[e[t+13]]+DP[e[t+14]]+DP[e[t+15]]).toLowerCase()}var RP=function(e,t,n){if(TP.randomUUID&&!t&&!e)return TP.randomUUID();var i=(e=e||{}).random||(e.rng||IP)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return OP(i)},AP=n(763),MP=n.n(AP),PP=function(e,t,n){[void 0,null,""].includes(t)?n("\u8bf7\u8f93\u5165 "):/^\d+$/.test(t)?n():n("\u8bf7\u8f93\u5165\u6574\u6570")},ZP=function(e,t,n){[void 0,null,""].includes(t)?n("\u8bf7\u8f93\u5165 "):/^(?![-_])[\u4e00-\u9fa5_\-a-zA-Z0-9]{1,20}$/.test(t)?n():n("1-20\u4f4d, \u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-, \u5fc5\u987b\u4ee5\u4e2d\u6587\u3001\u82f1\u6587\u6216\u6570\u5b57\u5f00\u5934")},FP={int:"int(\u6574\u6570\u578b)",float:"float(\u6d6e\u70b9\u578b)",enum:"enum(\u679a\u4e3e)",bool:"bool(\u5e03\u5c14)",struct:"struct(\u7ed3\u6784\u4f53)",date:"date(\u65f6\u95f4)",array:"array(\u6570\u7ec4)",text:"text(\u5b57\u7b26\u4e32)"};function BP(e){return e.map((function(e){var t,n;return{code:null===e||void 0===e?void 0:e.code,name:null===e||void 0===e?void 0:e.name,type:null===e||void 0===e?void 0:e.struct_type,specs:null===(t=HP({formValue:e,typeKey:"struct_type"}))||void 0===t||null===(n=t.property)||void 0===n?void 0:n.specs}}))}var HP=function e(t){var n,i,r=t.typeKey,o=void 0===r?"type":r,a=t.formValue,s=a[o],l={property:{access_model:null===a||void 0===a?void 0:a.access_model,require:!1,type:s,specs:{}}};if("int"===s||"float"===s)l.property.specs={min:(0,AP.isUndefined)(null===a||void 0===a?void 0:a.min)?void 0:String(null===a||void 0===a?void 0:a.min),max:(0,AP.isUndefined)(null===a||void 0===a?void 0:a.max)?void 0:String(null===a||void 0===a?void 0:a.max),step:(0,AP.isUndefined)(null===a||void 0===a?void 0:a.step)?void 0:String(null===a||void 0===a?void 0:a.step),unit:null===(n=JSON.parse((null===a||void 0===a?void 0:a.unitObj)||"{}"))||void 0===n?void 0:n.symbol,unitName:null===(i=JSON.parse((null===a||void 0===a?void 0:a.unitObj)||"{}"))||void 0===i?void 0:i.unit_name};else if("enum"===s)l.property.specs=a.enumObject.reduce((function(e,t){var n=t.key,i=t.value;return e[n]=i,e}),{});else if("bool"===s)l.property.specs={0:a[0],1:a[1]};else if("text"===s)l.property.specs={length:a.length};else if("date"===s)l.property.specs={};else if("struct"===s)l.property.specs=null===a||void 0===a?void 0:a.structObj.map((function(t){var n,i;return{name:null===t||void 0===t?void 0:t.name,code:null===t||void 0===t?void 0:t.code,typespec:{type:null===t||void 0===t?void 0:t.struct_type,specs:null===(n=e({formValue:t,typeKey:"struct_type"}))||void 0===n||null===(i=n.property)||void 0===i?void 0:i.specs}}}));else if("array"===s){var c,u;l.property.specs={size:null===a||void 0===a?void 0:a.size,type:null===a||void 0===a?void 0:a.array_type,specs:null===(c=e({formValue:a,typeKey:"array_type"}))||void 0===c||null===(u=c.property)||void 0===u?void 0:u.specs}}return l},zP=function(e){var t=e.formValue;return{event:{event_type:null===t||void 0===t?void 0:t.event_type,output_param:BP(t.structObj)}}},jP=function(e){var t=e.formValue;return{action:{call_type:null===t||void 0===t?void 0:t.call_type,input_param:BP(t.structInput),output_param:BP(t.structOutput)}}};function VP(e,t){return"int"===t||"float"===t?{min:null===e||void 0===e?void 0:e.min,max:null===e||void 0===e?void 0:e.max,step:null===e||void 0===e?void 0:e.step,unitObj:null!==e&&void 0!==e&&e.unitName&&null!==e&&void 0!==e&&e.unit?"".concat(null===e||void 0===e?void 0:e.unitName," (").concat(null===e||void 0===e?void 0:e.unit,")"):void 0}:"bool"===t?{0:e[0],1:e[1]}:"text"===t?{length:null===e||void 0===e?void 0:e.length}:"enum"===t?{enumObject:Object.entries(e).map((function(e){var t=(0,k.Z)(e,2),n=t[0],i=t[1];return{id:RP(),keyName:RP(),valueName:RP(),key:Number(n),value:i}}))}:"struct"===t?{structObj:e.map((function(e){var t;return(0,Ft.Z)((0,Ft.Z)({},e),{},{id:RP(),struct_type:null===e||void 0===e||null===(t=e.typespec)||void 0===t?void 0:t.type})}))}:"array"===t?(0,Ft.Z)((0,Ft.Z)({},VP(null===e||void 0===e?void 0:e.specs,null===e||void 0===e?void 0:e.type)),{},{size:null===e||void 0===e?void 0:e.size,array_type:null===e||void 0===e?void 0:e.type}):{}}var WP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},UP=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:WP}))};UP.displayName="UpOutlined";var GP=v.forwardRef(UP);function KP(){return"function"===typeof BigInt}function YP(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var i=t||"0",r=i.split("."),o=r[0]||"0",a=r[1]||"0";"0"===o&&"0"===a&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:i,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(i)}}function qP(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function $P(e){var t=String(e);if(qP(e)){var n=Number(t.slice(t.indexOf("e-")+2)),i=t.match(/\.(\d+)/);return(null===i||void 0===i?void 0:i[1])&&(n+=i[1].length),n}return t.includes(".")&&QP(t)?t.length-t.indexOf(".")-1:0}function XP(e){var t=String(e);if(qP(e)){if(e>Number.MAX_SAFE_INTEGER)return String(KP()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(KP()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed($P(t))}return YP(t).fullStr}function QP(e){return"number"===typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}function JP(e){var t="number"===typeof e?XP(e):YP(e).fullStr;return t.includes(".")?YP(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var eZ=function(){function e(t){(0,b.Z)(this,e),this.origin="",this.number=void 0,this.empty=void 0,(t||0===t)&&String(t).trim()?(this.origin=String(t),this.number=Number(t)):this.empty=!0}return(0,C.Z)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var i=this.number+n;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var r=Math.max($P(this.number),$P(n));return new e(i.toFixed(r))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null===e||void 0===e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":XP(this.number):this.origin}}]),e}(),tZ=function(){function e(t){if((0,b.Z)(this,e),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,(t||0===t)&&String(t).trim())if(this.origin=String(t),"-"!==t){var n=t;if(qP(n)&&(n=Number(n)),QP(n="string"===typeof n?n:XP(n))){var i=YP(n);this.negative=i.negative;var r=i.trimStr.split(".");this.integer=BigInt(r[0]);var o=r[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}else this.nan=!0;else this.empty=!0}return(0,C.Z)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);if(n.isInvalidate())return this;var i=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),r=YP((this.alignDecimal(i)+n.alignDecimal(i)).toString()),o=r.negativeStr,a=r.trimStr,s="".concat(o).concat(a.padStart(i+1,"0"));return new e("".concat(s.slice(0,-i),".").concat(s.slice(-i)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null===e||void 0===e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":YP("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function nZ(e){return KP()?new tZ(e):new eZ(e)}function iZ(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var r=YP(e),o=r.negativeStr,a=r.integerStr,s=r.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!i){var d=nZ(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return iZ(d.toString(),t,n,i)}return 0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return".0"===l?c:"".concat(c).concat(l)}function rZ(e){var t=e.prefixCls,n=e.upNode,i=e.downNode,r=e.upDisabled,o=e.downDisabled,a=e.onStep,s=v.useRef(),l=v.useRef();l.current=a;var c=function(e,t){e.preventDefault(),l.current(t),s.current=setTimeout((function e(){l.current(t),s.current=setTimeout(e,200)}),600)},u=function(){clearTimeout(s.current)};if(v.useEffect((function(){return u}),[]),_d())return null;var d="".concat(t,"-handler"),h=Ja()(d,"".concat(d,"-up"),(0,N.Z)({},"".concat(d,"-up-disabled"),r)),f=Ja()(d,"".concat(d,"-down"),(0,N.Z)({},"".concat(d,"-down-disabled"),o)),p={unselectable:"on",role:"button",onMouseUp:u,onMouseLeave:u};return v.createElement("div",{className:"".concat(d,"-wrap")},v.createElement("span",Zt({},p,{onMouseDown:function(e){c(e,!0)},"aria-label":"Increase Value","aria-disabled":r,className:h}),n||v.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),v.createElement("span",Zt({},p,{onMouseDown:function(e){c(e,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:f}),i||v.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}var oZ=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],aZ=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},sZ=function(e){var t=nZ(e);return t.isInvalidate()?null:t},lZ=v.forwardRef((function(e,t){var n,i=e.prefixCls,r=void 0===i?"rc-input-number":i,o=e.className,a=e.style,s=e.min,l=e.max,c=e.step,u=void 0===c?1:c,d=e.defaultValue,h=e.value,f=e.disabled,p=e.readOnly,g=e.upHandler,m=e.downHandler,y=e.keyboard,_=e.controls,b=void 0===_||_,C=e.stringMode,S=e.parser,w=e.formatter,x=e.precision,E=e.decimalSeparator,T=e.onChange,I=e.onInput,D=e.onPressEnter,L=e.onStep,O=Ai(e,oZ),R="".concat(r,"-input"),A=v.useRef(null),M=v.useState(!1),P=(0,k.Z)(M,2),Z=P[0],F=P[1],B=v.useRef(!1),H=v.useRef(!1),z=v.useRef(!1),j=v.useState((function(){return nZ(null!==h&&void 0!==h?h:d)})),V=(0,k.Z)(j,2),W=V[0],U=V[1];var G=v.useCallback((function(e,t){if(!t)return x>=0?x:Math.max($P(e),$P(u))}),[x,u]),K=v.useCallback((function(e){var t=String(e);if(S)return S(t);var n=t;return E&&(n=n.replace(E,".")),n.replace(/[^\w.-]+/g,"")}),[S,E]),Y=v.useRef(""),q=v.useCallback((function(e,t){if(w)return w(e,{userTyping:t,input:String(Y.current)});var n="number"===typeof e?XP(e):e;if(!t){var i=G(n,t);if(QP(n)&&(E||i>=0))n=iZ(n,E||".",i)}return n}),[w,G,E]),$=v.useState((function(){var e=null!==d&&void 0!==d?d:h;return W.isInvalidate()&&["string","number"].includes((0,Bt.Z)(e))?Number.isNaN(e)?"":e:q(W.toString(),!1)})),X=(0,k.Z)($,2),Q=X[0],J=X[1];function ee(e,t){J(q(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}Y.current=Q;var te=v.useMemo((function(){return sZ(l)}),[l,x]),ne=v.useMemo((function(){return sZ(s)}),[s,x]),ie=v.useMemo((function(){return!(!te||!W||W.isInvalidate())&&te.lessEquals(W)}),[te,W]),re=v.useMemo((function(){return!(!ne||!W||W.isInvalidate())&&W.lessEquals(ne)}),[ne,W]),oe=function(e,t){var n=(0,v.useRef)(null);return[function(){try{var t=e.selectionStart,i=e.selectionEnd,r=e.value,o=r.substring(0,t),a=r.substring(i);n.current={start:t,end:i,value:r,beforeTxt:o,afterTxt:a}}catch(Fc){}},function(){if(e&&n.current&&t)try{var i=e.value,r=n.current,o=r.beforeTxt,a=r.afterTxt,s=r.start,l=i.length;if(i.endsWith(a))l=i.length-n.current.afterTxt.length;else if(i.startsWith(o))l=o.length;else{var c=o[s-1],u=i.indexOf(c,s-1);-1!==u&&(l=u+1)}e.setSelectionRange(l,l)}catch(Fc){li(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Fc.message))}}]}(A.current,Z),ae=(0,k.Z)(oe,2),se=ae[0],le=ae[1],ce=function(e){return te&&!e.lessEquals(te)?te:ne&&!ne.lessEquals(e)?ne:null},ue=function(e){return!ce(e)},de=function(e,t){var n,i=e,r=ue(i)||i.isEmpty();if(i.isEmpty()||t||(i=ce(i)||i,r=!0),!p&&!f&&r){var o=i.toString(),a=G(o,t);return a>=0&&(i=nZ(iZ(o,".",a)),ue(i)||(i=nZ(iZ(o,".",a,!0)))),i.equals(W)||(n=i,void 0===h&&U(n),null===T||void 0===T||T(i.isEmpty()?null:aZ(C,i)),void 0===h&&ee(i,t)),i}return W},he=function(){var e=(0,v.useRef)(0),t=function(){oc.cancel(e.current)};return(0,v.useEffect)((function(){return t}),[]),function(n){t(),e.current=oc((function(){n()}))}}(),fe=function e(t){if(se(),J(t),!H.current){var n=nZ(K(t));n.isNaN()||de(n,!0)}null===I||void 0===I||I(t),he((function(){var n=t;S||(n=t.replace(/\u3002/g,".")),n!==t&&e(n)}))},pe=function(e){var t;if(!(e&&ie||!e&&re)){B.current=!1;var n=nZ(z.current?JP(u):u);e||(n=n.negate());var i=(W||nZ(0)).add(n.toString()),r=de(i,!1);null===L||void 0===L||L(aZ(C,r),{offset:z.current?JP(u):u,type:e?"up":"down"}),null===(t=A.current)||void 0===t||t.focus()}},ge=function(e){var t=nZ(K(Q)),n=t;n=t.isNaN()?W:de(t,e),void 0!==h?ee(W,!1):n.isNaN()||ee(n,!1)};return zu((function(){W.isInvalidate()||ee(W,!1)}),[x]),zu((function(){var e=nZ(h);U(e);var t=nZ(K(Q));e.equals(t)&&B.current&&!w||ee(e,B.current)}),[h]),zu((function(){w&&le()}),[Q]),v.createElement("div",{className:Ja()(r,o,(n={},(0,N.Z)(n,"".concat(r,"-focused"),Z),(0,N.Z)(n,"".concat(r,"-disabled"),f),(0,N.Z)(n,"".concat(r,"-readonly"),p),(0,N.Z)(n,"".concat(r,"-not-a-number"),W.isNaN()),(0,N.Z)(n,"".concat(r,"-out-of-range"),!W.isInvalidate()&&!ue(W)),n)),style:a,onFocus:function(){F(!0)},onBlur:function(){ge(!1),F(!1),B.current=!1},onKeyDown:function(e){var t=e.which,n=e.shiftKey;B.current=!0,z.current=!!n,t===vv.ENTER&&(H.current||(B.current=!1),ge(!1),null===D||void 0===D||D(e)),!1!==y&&!H.current&&[vv.UP,vv.DOWN].includes(t)&&(pe(vv.UP===t),e.preventDefault())},onKeyUp:function(){B.current=!1,z.current=!1},onCompositionStart:function(){H.current=!0},onCompositionEnd:function(){H.current=!1,fe(A.current.value)}},b&&v.createElement(rZ,{prefixCls:r,upNode:g,downNode:m,upDisabled:ie,downDisabled:re,onStep:pe}),v.createElement("div",{className:"".concat(R,"-wrap")},v.createElement("input",Zt({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":W.isInvalidate()?null:W.toString(),step:u},O,{ref:Nl(A,t),className:R,value:Q,onChange:function(e){fe(e.target.value)},disabled:f,readOnly:p}))))}));lZ.displayName="InputNumber";var cZ=lZ,uZ=function(e){var t,n,i=e.componentCls,r=e.lineWidth,o=e.lineType,a=e.colorBorder,s=e.borderRadius,l=e.fontSizeLG,c=e.controlHeightLG,u=e.controlHeightSM,d=e.colorError,h=e.inputPaddingHorizontalSM,f=e.colorTextDescription,p=e.motionDurationMid,g=e.colorPrimary,v=e.controlHeight,m=e.inputPaddingHorizontal,y=e.colorBgContainer,_=e.colorTextDisabled,b=e.borderRadiusSM,C=e.borderRadiusLG,S=e.controlWidth,w=e.handleVisible;return[(0,N.Z)({},i,Zt(Zt(Zt(Zt(Zt(Zt({},Fa(e)),wm(e)),Sm(e)),{display:"inline-block",width:S,margin:0,padding:0,border:r+"px "+o+" "+a,borderRadius:s}),Tg(e,i)),(0,N.Z)({"&-rtl":(0,N.Z)({direction:"rtl"},i+"-input",{direction:"rtl"}),"&-lg":(0,N.Z)({padding:0,fontSize:l,borderRadius:C},"input"+i+"-input",{height:c-2*r}),"&-sm":(0,N.Z)({padding:0,borderRadius:b},"input"+i+"-input",{height:u-2*r,padding:"0 "+h+"px"}),"&:hover":Zt({},mm(e)),"&-focused":Zt({},ym(e)),"&-disabled":Zt(Zt({},_m(e)),(0,N.Z)({},i+"-input",{cursor:"not-allowed"})),"&-out-of-range":{input:{color:d}},"&-group":Zt(Zt(Zt({},Fa(e)),km(e)),{"&-wrapper":(t={display:"inline-block",textAlign:"start",verticalAlign:"top"},(0,N.Z)(t,i+"-affix-wrapper",{width:"100%"}),(0,N.Z)(t,"&-lg",(0,N.Z)({},i+"-group-addon",{borderRadius:C})),(0,N.Z)(t,"&-sm",(0,N.Z)({},i+"-group-addon",{borderRadius:b})),t)})},i,{"&-input":Zt(Zt({width:"100%",height:v-2*r,padding:"0 "+m+"px",textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:s,outline:0,transition:"all "+p+" linear",appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},vm(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}))),(0,N.Z)({},i,(n={},(0,N.Z)(n,"&:hover "+i+"-handler-wrap, &-focused "+i+"-handler-wrap",{opacity:1}),(0,N.Z)(n,i+"-handler-wrap",(0,N.Z)({position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:y,borderStartStartRadius:0,borderStartEndRadius:s,borderEndEndRadius:s,borderEndStartRadius:0,opacity:!0===w?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:"opacity "+p+" linear "+p},i+"-handler",(0,N.Z)({display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%"},"\n "+i+"-handler-up-inner,\n "+i+"-handler-down-inner\n ",{marginInlineEnd:0,fontSize:e.handleFontSize}))),(0,N.Z)(n,i+"-handler",{height:"50%",overflow:"hidden",color:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:r+"px "+o+" "+a,transition:"all "+p+" linear","&:active":{background:e.colorFillAlter},"&:hover":(0,N.Z)({height:"60%"},"\n "+i+"-handler-up-inner,\n "+i+"-handler-down-inner\n ",{color:g}),"&-up-inner, &-down-inner":Zt(Zt({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"},"& &-icon":{display:"block"}}),{color:f,transition:"all "+p+" linear",userSelect:"none"})}),(0,N.Z)(n,i+"-handler-up",{borderStartEndRadius:s}),(0,N.Z)(n,i+"-handler-down",{borderBlockStart:r+"px "+o+" "+a,borderEndEndRadius:s}),(0,N.Z)(n,"&-disabled, &-readonly",(0,N.Z)({},i+"-handler-wrap",{display:"none"})),(0,N.Z)(n,"\n "+i+"-handler-up-disabled,\n "+i+"-handler-down-disabled\n ",{cursor:"not-allowed"}),(0,N.Z)(n,"\n "+i+"-handler-up-disabled:hover &-handler-up-inner,\n "+i+"-handler-down-disabled:hover &-handler-down-inner\n ",{color:_}),n)),(0,N.Z)({},i+"-borderless",(0,N.Z)({borderColor:"transparent",boxShadow:"none"},i+"-handler-down",{borderBlockStartWidth:0}))]},dZ=function(e){var t,n=e.componentCls,i=e.inputPaddingHorizontal,r=e.inputAffixPadding,o=e.controlWidth,a=e.borderRadiusLG,s=e.borderRadiusSM;return(0,N.Z)({},n+"-affix-wrapper",Zt(Zt(Zt({},wm(e)),Sm(e)),(t={position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:i,"&-lg":{borderRadius:a},"&-sm":{borderRadius:s},"&:not(&-disabled):hover":Zt(Zt({},mm(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":(0,N.Z)({},n+"[disabled]",{background:"transparent"})},(0,N.Z)(t,"> div"+n,(0,N.Z)({width:"100%",border:"none",outline:"none"},"&"+n+"-focused",{boxShadow:"none !important"})),(0,N.Z)(t,"input"+n+"-input",{padding:0}),(0,N.Z)(t,"&::before",{width:0,visibility:"hidden",content:'"\\a0"'}),(0,N.Z)(t,n+"-handler-wrap",{zIndex:2}),(0,N.Z)(t,n,{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:i,marginInlineStart:r}}),t)))},hZ=hs("InputNumber",(function(e){var t=Im(e);return[uZ(t),dZ(t)]}),(function(e){return{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto"}})),fZ=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},pZ=v.forwardRef((function(e,t){var n,i=v.useContext(wa),r=i.getPrefixCls,o=i.direction,a=v.useContext(Pa),s=v.useState(!1),l=(0,k.Z)(s,2),c=l[0],u=l[1],d=v.useRef(null);v.useImperativeHandle(t,(function(){return d.current}));var h=e.className,f=e.size,p=e.disabled,g=e.prefixCls,m=e.addonBefore,y=e.addonAfter,_=e.prefix,b=e.bordered,C=void 0===b||b,S=e.readOnly,w=e.status,x=e.controls,E=fZ(e,["className","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),T=r("input-number",g),I=hZ(T),D=(0,k.Z)(I,2),L=D[0],O=D[1],R=tg(T,o),A=R.compactSize,M=R.compactItemClassnames,P=v.createElement(GP,{className:T+"-handler-up-inner"}),Z=v.createElement(uI,{className:T+"-handler-down-inner"}),F="boolean"===typeof x?x:void 0;"object"===(0,Bt.Z)(x)&&(P="undefined"===typeof x.upIcon?P:v.createElement("span",{className:T+"-handler-up-inner"},x.upIcon),Z="undefined"===typeof x.downIcon?Z:v.createElement("span",{className:T+"-handler-down-inner"},x.downIcon));var B=(0,v.useContext)(Sl),H=B.hasFeedback,z=B.status,j=B.isFormItemInput,V=B.feedbackIcon,W=jm(z,w),U=A||f||a,G=v.useContext(Ia),K=null!==p&&void 0!==p?p:G,Y=Ja()((n={},(0,N.Z)(n,T+"-lg","large"===U),(0,N.Z)(n,T+"-sm","small"===U),(0,N.Z)(n,T+"-rtl","rtl"===o),(0,N.Z)(n,T+"-borderless",!C),(0,N.Z)(n,T+"-in-form-item",j),n),zm(T,W),M,O,h),q=v.createElement(cZ,Zt({ref:d,disabled:K,className:Y,upHandler:P,downHandler:Z,prefixCls:T,readOnly:S,controls:F},E));if(null!=_||H){var $,X=Ja()(T+"-affix-wrapper",zm(T+"-affix-wrapper",W,H),($={},(0,N.Z)($,T+"-affix-wrapper-focused",c),(0,N.Z)($,T+"-affix-wrapper-disabled",e.disabled),(0,N.Z)($,T+"-affix-wrapper-sm","small"===U),(0,N.Z)($,T+"-affix-wrapper-lg","large"===U),(0,N.Z)($,T+"-affix-wrapper-rtl","rtl"===o),(0,N.Z)($,T+"-affix-wrapper-readonly",S),(0,N.Z)($,T+"-affix-wrapper-borderless",!C),(0,N.Z)($,""+h,!(m||y)&&h),$),O);q=v.createElement("div",{className:X,style:e.style,onMouseUp:function(){return d.current.focus()}},_&&v.createElement("span",{className:T+"-prefix"},_),os(q,{style:null,value:e.value,onFocus:function(t){var n;u(!0),null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:function(t){var n;u(!1),null===(n=e.onBlur)||void 0===n||n.call(e,t)}}),H&&v.createElement("span",{className:T+"-suffix"},V))}if(null!=m||null!=y){var Q,J=T+"-group",ee=J+"-addon",te=m?v.createElement("div",{className:ee},m):null,ne=y?v.createElement("div",{className:ee},y):null,ie=Ja()(T+"-wrapper",J,O,(0,N.Z)({},J+"-rtl","rtl"===o)),re=Ja()(T+"-group-wrapper",(Q={},(0,N.Z)(Q,T+"-group-wrapper-sm","small"===U),(0,N.Z)(Q,T+"-group-wrapper-lg","large"===U),(0,N.Z)(Q,T+"-group-wrapper-rtl","rtl"===o),Q),zm(T+"-group-wrapper",W,H),O,h);q=v.createElement("div",{className:re,style:e.style},v.createElement("div",{className:ie},te&&v.createElement(wl,{status:!0,override:!0},te),os(q,{style:null,disabled:K}),ne&&v.createElement(wl,{status:!0,override:!0},ne)))}return L(q)})),gZ=pZ;gZ._InternalPanelDoNotUseOrYouWillBeFired=function(e){return v.createElement(Xa,{theme:{components:{InputNumber:{handleVisible:!0}}}},v.createElement(pZ,Zt({},e)))};var vZ=gZ,mZ=sd,yZ=pd,_Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"},bZ=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:_Z}))};bZ.displayName="CloseCircleOutlined";var CZ=v.forwardRef(bZ),SZ=sE.Text,wZ=function(e){var t=(0,v.useContext)(Ia),n=e.value,i=void 0===n?[{id:RP(),keyName:RP(),key:void 0,valueName:RP(),value:void 0}]:n,r=e.onChange,o=(0,v.useState)(i),a=(0,k.Z)(o,2),s=a[0],l=a[1];return(0,v.useEffect)((function(){null===r||void 0===r||r(s)}),[s]),(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsxs)(mZ,{className:"mb15",children:[(0,ES.jsx)(yZ,{span:9,children:(0,ES.jsx)(SZ,{children:"\u53c2\u6570\u503c"})}),(0,ES.jsx)(yZ,{span:14,children:(0,ES.jsx)(SZ,{children:"\u53c2\u6570\u63cf\u8ff0"})})]}),s.map((function(e){return(0,ES.jsxs)(mZ,{gutter:10,children:[(0,ES.jsx)(yZ,{span:t?10:9,children:(0,ES.jsx)(ip.Item,{name:e.keyName,initialValue:e.key,rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u53c2\u6570\u503c"}],children:(0,ES.jsx)(vZ,{style:{width:"100%"},placeholder:"\u6574\u6570",precision:0,min:0,onChange:function(t){var n=s.map((function(n){return n.keyName===e.keyName&&(n.key=t),n}));l(n)}})})}),(0,ES.jsx)(yZ,{span:14,children:(0,ES.jsx)(ip.Item,{name:e.valueName,initialValue:e.value,rules:[{validator:ZP}],children:(0,ES.jsx)(Zy,{placeholder:"1-20\u4f4d, \u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-, \u5fc5\u987b\u4ee5\u4e2d\u6587\u3001\u82f1\u6587\u6216\u6570\u5b57\u5f00\u5934",onChange:function(t){var n=s.map((function(n){return n.valueName===e.valueName&&(n.value=t.target.value),n}));l(n)}})})}),!t&&(0,ES.jsx)(yZ,{span:1,children:(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(CZ,{onClick:function(){if(s.length>1){var t=(0,_.Z)(s),n=t.findIndex((function(t){return t.id===e.id}));t.splice(n,1),l(t)}}})})})]},e.id)})),(0,ES.jsx)(Jg,{type:"link",icon:(0,ES.jsx)(RE,{}),style:{padding:0,marginTop:-50},disabled:t,onClick:function(){l([].concat((0,_.Z)(s),[{id:RP(),keyName:RP(),key:void 0,valueName:RP(),value:void 0}]))},children:"\u6dfb\u52a0\u679a\u4e3e\u9879"})]})},kZ=sE.Text,xZ=function e(t){var n=t.prefix,i=void 0===n?"":n,r=t.type,o=t.options,a=void 0===o?[]:o,s="".concat(i,"type"),l=(0,v.useState)([]),c=(0,k.Z)(l,2),u=c[0],d=c[1];return(0,v.useEffect)((function(){Nk({isAll:!0}).then((function(e){e.success&&Array.isArray(e.result.list)&&d(e.result.list)}))}),[]),(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(ip.Item,{label:"array"===r?"\u5143\u7d20\u7c7b\u578b":"\u6570\u636e\u7c7b\u578b",name:s,rules:[{required:!0,message:"array"===r?"\u8bf7\u9009\u62e9\u5143\u7d20\u7c7b\u578b":"\u8bf7\u9009\u62e9\u6570\u636e\u7c7b\u578b"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",options:a})}),"array"===r&&(0,ES.jsx)(ip.Item,{label:"\u5143\u7d20\u4e2a\u6570",name:"size",required:!0,rules:[{validator:PP}],children:(0,ES.jsx)(vZ,{style:{width:"100%"},placeholder:"\u8bf7\u8f93\u5165\u5143\u7d20\u4e2a\u6570",precision:0,min:0})}),(0,ES.jsx)(ip.Item,{noStyle:!0,shouldUpdate:function(e,t){return e[s]!==t[s]},children:function(n){var i=(0,n.getFieldValue)(s);if("int"===i||"float"===i)return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(ip.Item,{label:"\u5b9a\u4e49\u53d6\u503c\u8303\u56f4",children:(0,ES.jsxs)(Vy.Compact,{block:!0,children:[(0,ES.jsx)(ip.Item,{name:"min",className:"mb0",style:{flex:1},rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6700\u5c0f\u503c"},"int"===i?{pattern:/^-?\d+$/,message:"\u8f93\u5165\u6574\u6570"}:{pattern:/^-?\d+(\.\d{1,2})?$/,message:"\u8f93\u5165\u6570\u5b57\uff0c\u6700\u591a\u4e24\u4f4d\u5c0f\u6570"}],children:(0,ES.jsx)(Zy,{placeholder:"\u6700\u5c0f\u503c"})}),(0,ES.jsx)(Zy,{className:"site-input-split",placeholder:"~",disabled:!0}),(0,ES.jsx)(ip.Item,{name:"max",className:"mb0",style:{flex:1},rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6700\u5927\u503c"},"int"===i?{pattern:/^-?\d+$/,message:"\u8f93\u5165\u6574\u6570"}:{pattern:/^-?\d+(\.\d{1,2})?$/,message:"\u8f93\u5165\u6570\u5b57\uff0c\u6700\u591a\u4e24\u4f4d\u5c0f\u6570"}],children:(0,ES.jsx)(Zy,{placeholder:"\u6700\u5927\u503c"})})]})}),(0,ES.jsx)(ip.Item,{label:"\u6b65\u957f",name:"step",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6b65\u957f"},"int"===i?{pattern:/^-?\d+$/,message:"\u8f93\u5165\u6574\u6570"}:{pattern:/^-?\d+(\.\d{1,2})?$/,message:"\u8f93\u5165\u6570\u5b57\uff0c\u6700\u591a\u4e24\u4f4d\u5c0f\u6570"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u6b65\u957f"})}),(0,ES.jsx)(ip.Item,{label:"\u5355\u4f4d",name:"unitObj",children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",showSearch:!0,options:u.map((function(e){var t=e.id,n=e.unit_name,i=e.symbol;return{value:JSON.stringify({id:t,symbol:i,unit_name:n}),label:"".concat(n," (").concat(i,")")}}))})})]});if("bool"===i)return(0,ES.jsxs)(ip.Item,{label:"\u5e03\u5c14\u503c",className:"m0",children:[(0,ES.jsx)(ip.Item,{label:"true",name:"1",required:!0,rules:[{validator:ZP}],children:(0,ES.jsx)(Zy,{placeholder:"1-20\u4f4d, \u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-, \u5fc5\u987b\u4ee5\u4e2d\u6587\u3001\u82f1\u6587\u6216\u6570\u5b57\u5f00\u5934"})}),(0,ES.jsx)(ip.Item,{label:"false",name:"0",required:!0,rules:[{validator:ZP}],children:(0,ES.jsx)(Zy,{placeholder:"1-20\u4f4d, \u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-, \u5fc5\u987b\u4ee5\u4e2d\u6587\u3001\u82f1\u6587\u6216\u6570\u5b57\u5f00\u5934"})})]});if("text"===i)return(0,ES.jsx)(ip.Item,{label:"\u6570\u636e\u957f\u5ea6",name:"length",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u957f\u5ea6"}],children:(0,ES.jsx)(vZ,{style:{width:"100%"},addonAfter:"\u5b57\u7b26",placeholder:"\u6574\u6570, \u5355\u4f4d: \u5b57\u7b26",precision:0,min:0})});if("date"===i)return(0,ES.jsx)(ip.Item,{label:"\u65f6\u95f4\u683c\u5f0f",children:(0,ES.jsx)(Zy,{placeholder:"\u6574\u6570\u7c7b\u578bInt64\u7684UTC\u65f6\u95f4\u6233(\u6beb\u79d2)",disabled:!0})});if("enum"===i)return(0,ES.jsx)(ip.Item,{required:!0,name:"enumObject",label:(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(kZ,{className:"mr20",children:"\u679a\u4e3e\u9879"}),(0,ES.jsx)(kZ,{type:"secondary",children:"\u6700\u591a100\u9879"})]}),children:(0,ES.jsx)(wZ,{})});if("struct"===i)return(0,ES.jsx)(ip.Item,{required:!0,name:"structObj",rules:[{validator:function(e,t,n){!t||Array.isArray(t)&&!t.length?n("\u8bf7\u81f3\u5c11\u6dfb\u52a0\u4e00\u4e2a\u53c2\u6570"):t.length>20?n("\u6700\u591a\u652f\u630150\u4e2a\u53c2\u6570"):n()}}],label:(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(kZ,{className:"mr20",children:"array"===r?"\u5143\u7d20\u7ed3\u6784":"JSON\u5bf9\u8c61"}),(0,ES.jsx)(kZ,{type:"secondary",children:"\u6700\u591a20\u9879"})]}),children:(0,ES.jsx)(IZ,{showView:t.showView})});if("array"===i){var o=Object.entries(FP).filter((function(e){return"array"!==(0,k.Z)(e,1)[0]})).map((function(e){var t=(0,k.Z)(e,2),n=t[0];return{label:t[1],value:n}}));return(0,ES.jsx)(e,{type:"array",prefix:"array_",options:o})}return null}})]})},EZ=ip.useForm,TZ=Object.entries(FP).filter((function(e){var t=(0,k.Z)(e,1)[0];return"array"!==t&&"struct"!==t})).map((function(e){var t=(0,k.Z)(e,2),n=t[0];return{label:t[1],value:n}})),NZ=(0,v.forwardRef)((function(e,t){var n=e.onAdd,i=EZ(),r=(0,k.Z)(i,1)[0],o=(0,v.useState)(""),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,1)[0],d=(0,v.useState)(!1),h=(0,k.Z)(d,2),f=h[0],p=h[1],g=(0,v.useState)(!1),m=(0,k.Z)(g,2),y=m[0],_=m[1];(0,v.useImperativeHandle)(t,(function(){return{open:function(e,t){if(_(!!t),p(!0),e){var n;console.log("record",e),l(null===e||void 0===e?void 0:e.id);var i=(null===e||void 0===e?void 0:e.type_spec)||(null===e||void 0===e?void 0:e.typespec),o=(null===i||void 0===i?void 0:i.specs)||{};if("string"===typeof o)try{o=JSON.parse(o)}catch(s){console.error(s),o={}}var a=(0,Ft.Z)((0,Ft.Z)({},e),o);"enum"===(null===i||void 0===i?void 0:i.type)&&(a.enumObject=Object.entries(o).map((function(e){var t=(0,k.Z)(e,2),n=t[0],i=t[1];return{id:RP(),keyName:RP(),key:n,valueName:RP(),value:i}}))),console.log("value",a),r.setFieldsValue(a),null===(n=o)||void 0===n||!n.unitName||"int"!==(null===i||void 0===i?void 0:i.type)&&"float"!==(null===i||void 0===i?void 0:i.type)||Nk({isAll:!0}).then((function(e){if(e.success&&Array.isArray(e.result.list)){var t=e.result.list.find((function(e){return e.unit_name===o.unitName}))||{},n=t.id,i=t.symbol,a=t.unit_name,s=JSON.stringify({id:n,symbol:i,unit_name:a});r.setFieldValue("unitObj",s)}}))}else l("")}}}),[]);var b=(0,v.useCallback)((function(){r.resetFields(),p(!1)}),[r]);return(0,ES.jsx)(jM,{title:y?"\u67e5\u770b\u7ed3\u6784\u4f53\u53c2\u6570":"\u6dfb\u52a0\u7ed3\u6784\u4f53\u53c2\u6570",placement:"right",open:f,width:500,closable:!1,maskClosable:!1,destroyOnClose:!1,headerStyle:{height:51},extra:(0,ES.jsx)(Ap,{onClick:b}),onClose:b,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:u,disabled:u,onClick:(0,T.Z)((0,E.Z)().mark((function e(){var t;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.validateFields();case 2:t=e.sent,n((0,Ft.Z)({id:s||RP()},t)),b();case 5:case"end":return e.stop()}}),e)}))),children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:b,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{layout:"vertical",form:r,children:[(0,ES.jsx)(ip.Item,{label:"\u53c2\u6570\u540d\u79f0",name:"name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u53c2\u6570\u540d\u79f0"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u53c2\u6570\u540d\u79f0"})}),(0,ES.jsx)(ip.Item,{label:"\u6807\u8bc6\u7b26",name:"code",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6807\u8bc6\u7b26"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u6807\u8bc6\u7b26"})}),(0,ES.jsx)(xZ,{prefix:"struct_",options:TZ})]})})})),IZ=function(e){var t=e.showView,n=e.disabled,i=e.value,r=void 0===i?[]:i,o=e.onChange,a=(0,v.useRef)(!1),s=(0,v.useRef)(null),l=(0,v.useState)(r),c=(0,k.Z)(l,2),u=c[0],d=c[1];return(0,v.useEffect)((function(){a.current?null===o||void 0===o||o(u):a.current=!0}),[u]),console.log("dataSource",u),(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(NZ,{ref:s,onAdd:function(e){var t=u.findIndex((function(t){return t.id===e.id}));if(t>-1){var n=(0,_.Z)(u);n.splice(t,1,e),d(n)}else d([].concat((0,_.Z)(u),[e]))}}),!!u.length&&(0,ES.jsx)(YA,{size:"small",className:"mb20",rowKey:"id",dataSource:u,pagination:!1,columns:[{dataIndex:"name",title:"\u540d\u79f0"},{dataIndex:"code",title:"\u6807\u8bc6\u7b26"},{dataIndex:"struct_type",title:"\u6570\u636e\u7c7b\u578b"},{dataIndex:"action",title:"\u64cd\u4f5c",width:140,render:function(e,i){return(0,ES.jsxs)(ES.Fragment,{children:[t&&(0,ES.jsx)("span",{style:{color:"#1677ff",cursor:"pointer"},className:"ant-btn ant-btn-link p0 mr10",onClick:function(){var e;null===(e=s.current)||void 0===e||e.open(i,!0)},children:"\u67e5\u770b"}),(0,ES.jsx)(Jg,{type:"link",className:"p0",disabled:n,onClick:function(){var e;null===(e=s.current)||void 0===e||e.open(i)},children:"\u7f16\u8f91"}),(0,ES.jsx)(Jg,{type:"link",className:"p0 ml10",disabled:n,onClick:function(){d(u.filter((function(e){return e.id!==i.id})))},children:"\u5220\u9664"})]})}}]}),(0,ES.jsx)(Jg,{type:"link",icon:(0,ES.jsx)(RE,{}),style:{padding:0,marginTop:-50},onClick:function(){var e;null===(e=s.current)||void 0===e||e.open()},children:"\u6dfb\u52a0\u53c2\u6570"})]})},DZ=sE.Text,LZ=function(e){return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(ip.Item,{label:"\u8c03\u7528\u65b9\u5f0f",name:"call_type",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u4e8b\u4ef6\u7c7b\u578b"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",options:[{label:"\u540c\u6b65",value:"SYNC"},{label:"\u5f02\u6b65",value:"ASYNC"}]})}),(0,ES.jsx)(ip.Item,{required:!0,name:"structInput",rules:[{validator:function(e,t,n){!t||Array.isArray(t)&&!t.length?n("\u8bf7\u81f3\u5c11\u6dfb\u52a0\u4e00\u4e2a\u53c2\u6570"):t.length>50?n("\u6700\u591a\u652f\u630150\u4e2a\u53c2\u6570"):n()}}],label:(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(DZ,{className:"mr20",children:"\u8f93\u5165\u53c2\u6570"}),(0,ES.jsx)(DZ,{type:"secondary",children:"\u6700\u591a\u652f\u630150\u4e2a\u53c2\u6570"})]}),children:(0,ES.jsx)(IZ,{showView:e.showView})}),(0,ES.jsx)(ip.Item,{required:!0,name:"structOutput",rules:[{validator:function(e,t,n){!t||Array.isArray(t)&&!t.length?n("\u8bf7\u81f3\u5c11\u6dfb\u52a0\u4e00\u4e2a\u53c2\u6570"):t.length>50?n("\u6700\u591a\u652f\u630150\u4e2a\u53c2\u6570"):n()}}],label:(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(DZ,{className:"mr20",children:"\u8f93\u51fa\u53c2\u6570"}),(0,ES.jsx)(DZ,{type:"secondary",children:"\u6700\u591a\u652f\u630150\u4e2a\u53c2\u6570"})]}),children:(0,ES.jsx)(IZ,{showView:e.showView})})]})},OZ=sE.Text,RZ=function(e){return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(ip.Item,{label:"\u4e8b\u4ef6\u7c7b\u578b",name:"event_type",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u4e8b\u4ef6\u7c7b\u578b"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",options:[{label:"\u4fe1\u606f",value:"info"},{label:"\u544a\u8b66",value:"alert"},{label:"\u6545\u969c",value:"error"}]})}),(0,ES.jsx)(ip.Item,{required:!0,name:"structObj",rules:[{validator:function(e,t,n){!t||Array.isArray(t)&&!t.length?n("\u8bf7\u81f3\u5c11\u6dfb\u52a0\u4e00\u4e2a\u53c2\u6570"):t.length>50?n("\u6700\u591a\u652f\u630150\u4e2a\u53c2\u6570"):n()}}],label:(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(OZ,{className:"mr20",children:"\u8f93\u51fa\u53c2\u6570"}),(0,ES.jsx)(OZ,{type:"secondary",children:"\u6700\u591a\u652f\u630150\u4e2a\u53c2\u6570"})]}),children:(0,ES.jsx)(IZ,{showView:e.showView})})]})},AZ=ip.useForm,MZ=Zy.TextArea,PZ=(0,v.forwardRef)((function(e,t){var n=e.productInfo,i=e.onSuccess,r=AZ(),o=(0,k.Z)(r,1)[0],a=(0,v.useState)(),s=(0,k.Z)(a,2),l=s[0],c=s[1],u=(0,v.useState)(!1),d=(0,k.Z)(u,2),h=d[0],f=d[1],p=(0,v.useState)(!1),g=(0,k.Z)(p,2),m=g[0],y=g[1];(0,v.useImperativeHandle)(t,(function(){return{open:function(e){y(!0),o.setFieldValue("thing_model_type","property"),_(e),c(e)}}}),[o]);var _=(0,v.useCallback)((function(e){if(e)if(o.setFieldsValue({thing_model_type:null===e||void 0===e?void 0:e.type,name:null===e||void 0===e?void 0:e.name,code:null===e||void 0===e?void 0:e.code,description:null===e||void 0===e?void 0:e.description}),console.log("record,",e),"property"===e.type){var t,n,i;o.setFieldsValue({access_model:null===e||void 0===e?void 0:e.access_mode,type:null===e||void 0===e||null===(t=e.type_spec)||void 0===t?void 0:t.type});var r=null===e||void 0===e||null===(n=e.type_spec)||void 0===n?void 0:n.type,a=JSON.parse((null===e||void 0===e||null===(i=e.type_spec)||void 0===i?void 0:i.specs)||"{}");o.setFieldsValue(VP(a,r))}else if("event"===e.type){var s;o.setFieldsValue({event_type:null===e||void 0===e?void 0:e.event_type,structObj:null===e||void 0===e||null===(s=e.output_params)||void 0===s?void 0:s.map((function(e){var t;return(0,Ft.Z)((0,Ft.Z)({},e),{},{id:RP(),struct_type:null===e||void 0===e||null===(t=e.type_spec)||void 0===t?void 0:t.type})}))})}else{var l,c;o.setFieldsValue({call_type:null===e||void 0===e?void 0:e.call_type,structInput:null===e||void 0===e||null===(l=e.input_params)||void 0===l?void 0:l.map((function(e){var t;return(0,Ft.Z)((0,Ft.Z)({},e),{},{id:RP(),struct_type:null===e||void 0===e||null===(t=e.type_spec)||void 0===t?void 0:t.type})})),structOutput:null===e||void 0===e||null===(c=e.output_params)||void 0===c?void 0:c.map((function(e){var t;return(0,Ft.Z)((0,Ft.Z)({},e),{},{id:RP(),struct_type:null===e||void 0===e||null===(t=e.type_spec)||void 0===t?void 0:t.type})}))})}}),[]),b=(0,v.useCallback)((function(){y(!1),o.resetFields()}),[]);return(0,ES.jsx)(jM,{title:l?"\u67e5\u770b":"\u6dfb\u52a0\u81ea\u5b9a\u4e49\u529f\u80fd\u70b9",placement:"right",open:m,width:550,closable:!1,maskClosable:!1,destroyOnClose:!1,headerStyle:{height:51},onClose:b,extra:(0,ES.jsx)(Ap,{onClick:b}),footer:(0,ES.jsx)(Vy,{children:l?(0,ES.jsx)(Jg,{onClick:b,children:"\u5173\u95ed"}):(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:h,disabled:h,onClick:(0,T.Z)((0,E.Z)().mark((function e(){var t,r,a;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.validateFields();case 2:t=e.sent,r=null===t||void 0===t?void 0:t.thing_model_type,console.log(t),a={thing_model_type:r,product_id:null===n||void 0===n?void 0:n.id,name:null===t||void 0===t?void 0:t.name,code:null===t||void 0===t?void 0:t.code,description:null===t||void 0===t?void 0:t.description,tag:"\u81ea\u5b9a\u4e49"},"property"===r?a.property=HP({formValue:t,typeKey:"type"}).property:"event"===r?a.event=zP({formValue:t}).event:"action"===r&&(a.action=jP({formValue:t}).action),console.log(a),f(!0),Tk(a).then((function(e){e.success?(qp.success("\u7269\u6a21\u578b\u6dfb\u52a0\u6210\u529f"),b(),"function"===typeof i&&i()):qp.error(null===e||void 0===e?void 0:e.errorMsg)})).finally((function(){f(!1)}));case 10:case"end":return e.stop()}}),e)}))),children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:b,children:"\u53d6\u6d88"})]})}),children:(0,ES.jsxs)(ip,{form:o,layout:"vertical",disabled:!!l,children:[(0,ES.jsx)(ip.Item,{label:"\u529f\u80fd\u7c7b\u578b",name:"thing_model_type",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u529f\u80fd\u7c7b\u578b"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9\u529f\u80fd\u7c7b\u578b",options:[{value:"property",label:"\u5c5e\u6027\u7c7b\u578b"},{value:"event",label:"\u4e8b\u4ef6\u7c7b\u578b"},{value:"action",label:"\u670d\u52a1\u7c7b\u578b"}],onChange:function(){o.setFieldValue("name",void 0)}})}),(0,ES.jsx)(ip.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.thing_model_type!==t.thing_model_type},children:function(){return(0,ES.jsx)(ip.Item,{label:"\u529f\u80fd\u540d\u79f0",name:"name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u529f\u80fd\u540d\u79f0"}],shouldUpdate:function(e,t){return e.thing_model_type!==t.thing_model_type},children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u529f\u80fd\u540d\u79f0"})})}}),(0,ES.jsx)(ip.Item,{label:"\u6807\u8bc6\u7b26",name:"code",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6807\u8bc6\u7b26"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u6807\u8bc6\u7b26"})}),(0,ES.jsx)(ip.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.thing_model_type!==t.thing_model_type},children:function(e){var t,n=(0,e.getFieldValue)("thing_model_type");return"property"===n?(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(xZ,{options:null===(t=Object.entries(FP))||void 0===t?void 0:t.map((function(e){var t=(0,k.Z)(e,2),n=t[0];return{label:t[1],value:n}})),showView:!!l}),(0,ES.jsx)(ip.Item,{label:"\u8bfb\u5199\u7c7b\u578b",name:"access_model",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8bfb\u5199\u7c7b\u578b"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9\u8bfb\u5199\u7c7b\u578b",options:[{label:"\u8bfb",value:"R"},{label:"\u8bfb\u5199",value:"RW"}]})})]}):"event"===n?(0,ES.jsx)(RZ,{showView:!!l}):"action"===n?(0,ES.jsx)(LZ,{showView:!!l}):null}}),(0,ES.jsx)(ip.Item,{label:"\u63cf\u8ff0",name:"description",children:(0,ES.jsx)(MZ,{placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0",rows:4})})]})})})),ZZ=sE.Text,FZ=sE.Link,BZ=ip.useForm,HZ=ip.useWatch,zZ=qp.useMessage,jZ={action:"\u670d\u52a1\u7c7b\u578b",event:"\u4e8b\u4ef6\u7c7b\u578b",property:"\u5c5e\u6027\u7c7b\u578b"},VZ=function(){var e=ut(),t=(0,v.useRef)(null),i=zZ(),r=(0,k.Z)(i,2),o=r[0],a=r[1],s=BZ(),l=(0,k.Z)(s,1)[0],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useState)(),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=(0,v.useMemo)((function(){return null===g||void 0===g?void 0:g.cloud_instance_id}),[g]),b=HZ("name",l),C=HZ("type",l),S=(0,v.useCallback)((function(){Ok(e.id).then((function(e){e.success&&m(e.result)})).catch((function(e){console.log(e)}))}),[e]);(0,v.useEffect)((function(){S()}),[e,S]);var w=(0,v.useMemo)((function(){if(!g)return[];var e=g.actions,t=g.events,n=g.properties;return[].concat((0,_.Z)(e.map((function(e){return(0,Ft.Z)((0,Ft.Z)({},e),{},{type:"action"})}))||[]),(0,_.Z)(t.map((function(e){return(0,Ft.Z)((0,Ft.Z)({},e),{},{type:"event"})}))||[]),(0,_.Z)(n.map((function(e){return(0,Ft.Z)((0,Ft.Z)({},e),{},{type:"property"})}))||[])).filter((function(e){var t=e.type,n=e.name;return t.includes(C)&&n.includes(b)}))}),[g,b,C]);return(0,ES.jsxs)(ES.Fragment,{children:[a,(0,ES.jsx)(PZ,{ref:t,productInfo:g,onSuccess:function(){S()}}),(0,ES.jsx)(kM,{hasBack:!0,title:"\u4ea7\u54c1\u7ba1\u7406",describe:"\u4ea7\u54c1\u7269\u6a21\u578b\u662f\u5bf9\u540c\u4e00\u7c7b\u8bbe\u5907\u7684\u6570\u5b57\u5316\u62bd\u8c61\u63cf\u8ff0\uff0c\u63cf\u8ff0\u8be5\u7c7b\u8bbe\u5907\u662f\u4ec0\u4e48\uff0c\u80fd\u505a\u4ec0\u4e48\uff0c\u80fd\u5bf9\u5916\u63d0\u4f9b\u54ea\u4e9b\u670d\u52a1\uff0c\u5b83\u5305\u62ec\u5c5e\u6027\u3001\u4e8b\u4ef6\u3001\u670d\u52a1\u4e09\u79cd\u529f\u80fd\u7c7b\u578b\u3002",background:n(64669)}),(0,ES.jsx)(AT,{className:"product-info",children:(0,ES.jsxs)("div",{className:"product-info__body",children:[(0,ES.jsx)("img",{src:n(50228),alt:""}),(0,ES.jsx)("div",{children:(0,ES.jsxs)(SP,{className:"product-info__descriptions",title:(0,ES.jsxs)(ES.Fragment,{children:[null===g||void 0===g?void 0:g.name,(0,ES.jsx)(tM,{title:"\u5df2\u53d1\u5e03"===(null===g||void 0===g?void 0:g.status)?"\u662f\u5426\u786e\u8ba4\u53d6\u6d88\u53d1\u5e03\uff1f":"\u662f\u5426\u786e\u8ba4\u53d1\u5e03\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onConfirm:function(){var e;"\u5df2\u53d1\u5e03"===(null===g||void 0===g?void 0:g.status)?(e=(null===g||void 0===g?void 0:g.id)||"",kk({url:"/api/v1/product-unrelease/".concat(e),method:"post"})).then((function(e){e.success?(o.open({type:"success",content:"\u53d6\u6d88\u53d1\u5e03\u6210\u529f"}),S()):o.open({type:"error",content:e.errorMsg})})):function(e){return kk({url:"/api/v1/product-release/".concat(e),method:"post"})}((null===g||void 0===g?void 0:g.id)||"").then((function(e){e.success?(o.open({type:"success",content:"\u53d1\u5e03\u6210\u529f"}),S()):o.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsxs)(Jg,{className:"ml20",size:"small",children:["\u5df2\u53d1\u5e03"===(null===g||void 0===g?void 0:g.status)&&(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Nu,{style:{color:"#55af70"}}),"\u5df2\u53d1\u5e03"]}),"\u672a\u53d1\u5e03"===(null===g||void 0===g?void 0:g.status)&&(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(sM,{style:{color:"#87909d"}}),"\u672a\u53d1\u5e03"]})]})})]}),column:2,extra:y&&(0,ES.jsx)(Jg,{type:"link",size:"small",loading:d,disabled:d,icon:(0,ES.jsx)(EP,{}),style:{fontSize:12},onClick:function(){h(!0),function(e){return kk({url:"/api/v1/product-sync/".concat(e.product_id),method:"post",data:e})}({product_id:e.id}).then((function(e){e.success?(qp.success("\u540c\u6b65\u6210\u529f"),S()):qp.error(e.errorMsg)})).catch((function(e){console.log(e)})).finally((function(){h(!1)}))},children:"\u540c\u6b65\u4ea7\u54c1"}),labelStyle:{fontSize:12,color:"#8a949c"},contentStyle:{fontSize:12},children:[(0,ES.jsx)(SP.Item,{label:"\u4ea7\u54c1ID",children:(0,ES.jsx)(ZZ,{copyable:!0,children:null===g||void 0===g?void 0:g.id})}),y&&(0,ES.jsx)(SP.Item,{label:"\u4e91\u7aef\u4ea7\u54c1\u6807\u8bc6",children:(0,ES.jsx)(ZZ,{copyable:!0,children:null===g||void 0===g?void 0:g.cloud_product_id})}),(0,ES.jsx)(SP.Item,{label:"\u8282\u70b9\u7c7b\u578b",children:null===g||void 0===g?void 0:g.node_type}),(0,ES.jsx)(SP.Item,{label:"\u6570\u636e\u6765\u6e90",children:null===g||void 0===g?void 0:g.platform}),(0,ES.jsx)(SP.Item,{label:"\u6570\u636e\u683c\u5f0f",children:null===g||void 0===g?void 0:g.data_format}),(0,ES.jsx)(SP.Item,{label:"\u534f\u8bae\u7c7b\u578b",children:null===g||void 0===g?void 0:g.protocol}),(0,ES.jsx)(SP.Item,{label:"\u521b\u5efa\u65f6\u95f4",children:ux()(null===g||void 0===g?void 0:g.created_at).format("YYYY-MM-DD HH:mm:ss")}),(0,ES.jsx)(SP.Item,{label:"\u5382\u5546\u540d\u79f0",children:null===g||void 0===g?void 0:g.factory}),y&&(0,ES.jsx)(SP.Item,{label:"\u6700\u540e\u4e00\u6b21\u540c\u6b65\u65f6\u95f4",children:ux()(null===g||void 0===g?void 0:g.last_sync_time).format("YYYY-MM-DD HH:mm:ss")}),(0,ES.jsx)(SP.Item,{label:"\u63cf\u8ff0",children:null===g||void 0===g?void 0:g.description})]})})]})}),(0,ES.jsxs)(AT,{className:"m20",children:[(0,ES.jsxs)(Vy,{className:"mb15 align-center justify-space-between",children:[(0,ES.jsxs)(ip,{layout:"inline",form:l,initialValues:{type:"",name:""},children:[(0,ES.jsx)(ip.Item,{name:"type",children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9\u4e91\u5e73\u53f0",style:{minWidth:180},options:[{label:"\u529f\u80fd\u7c7b\u578b (\u5168\u90e8)",value:""},{label:"\u5c5e\u6027",value:"property"},{label:"\u4e8b\u4ef6",value:"event"},{label:"\u670d\u52a1",value:"action"}]})},"type"),(0,ES.jsx)(ip.Item,{name:"name",children:(0,ES.jsx)(Zy,{allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u4ea7\u54c1\u540d\u79f0\u641c\u7d22"})},"name")]}),g&&!y&&(0,ES.jsxs)(Jg,{type:"primary",onClick:function(){var e;null===(e=t.current)||void 0===e||e.open()},children:[(0,ES.jsx)(RE,{}),"\u6dfb\u52a0\u7269\u6a21\u578b"]})]}),(0,ES.jsx)(YA,{dataSource:w,bordered:!0,rowKey:"id",size:"small",pagination:{size:"small",showSizeChanger:!0,showQuickJumper:!0,showTotal:function(e){return"\u5171 ".concat(e," \u6761")},total:w.length},columns:[{title:"\u529f\u80fd\u7c7b\u578b",key:"type",dataIndex:"type",render:function(e,t){return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)("span",{children:jZ[e]}),(null===t||void 0===t?void 0:t.tag)&&(0,ES.jsx)(eP,{color:"default",className:"ml10",children:null===t||void 0===t?void 0:t.tag})]})}},{title:"\u529f\u80fd\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u6807\u8bc6\u7b26",key:"code",dataIndex:"code"},{title:"\u6570\u636e\u7c7b\u578b",key:"type_spec_type",dataIndex:"type_spec_type",render:function(e,t){var n=(0,AP.get)(t,"type_spec.type","");return FP[n]||"-"}},{title:"\u6570\u636e\u5b9a\u4e49",key:"type_spec_specs",dataIndex:"type_spec_specs",render:function(e,t){var n,i,r=(0,AP.get)(t,"type_spec.type",""),o=(0,AP.get)(t,"type_spec.specs","{}");if("array"===r)return"\u6570\u7ec4\u4e2a\u6570: "+(null===(n=JSON.parse(o))||void 0===n?void 0:n.size);if("text"===r)return"\u6570\u636e\u957f\u5ea6: "+(null===(i=JSON.parse(o))||void 0===i?void 0:i.length);if("date"===r)return"\u6574\u6570\u7c7b\u578bInt64\u7684UTC\u65f6\u95f4\u6233 (\u6beb\u79d2)";if("bool"===r||"enum"===r)return Object.entries(JSON.parse(o)).map((function(e){var t=(0,k.Z)(e,2),n=t[0],i=t[1];return"".concat(n,"-").concat(i)})).map((function(e,t){return(0,ES.jsx)(eP,{color:"processing",children:e},t)}));if("int"===r||"float"===r){var a=JSON.parse(o);return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsxs)("div",{children:["\u53d6\u503c\u8303\u56f4: ",null===a||void 0===a?void 0:a.min,"-",null===a||void 0===a?void 0:a.max]}),(0,ES.jsxs)("div",{children:["\u6b65\u957f: ",null===a||void 0===a?void 0:a.step]}),(0,ES.jsxs)("div",{children:["\u5355\u4f4d: ",null===a||void 0===a?void 0:a.unit," (",null===a||void 0===a?void 0:a.unitName,")"]})]})}return"-"}},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",render:function(e,n){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(ZZ,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(FZ,{onClick:function(){var e;null===(e=t.current)||void 0===e||e.open(n)},children:"\u67e5\u770b"}),(0,ES.jsx)(tM,{title:"\u6b64\u64cd\u4f5c\u5c06\u6c38\u4e45\u5220\u9664\u8be5\u8bb0\u5f55, \u662f\u5426\u7ee7\u7eed?",okText:"\u5220\u9664",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){(function(e){return kk({url:"/api/v1/thingmodel",method:"delete",data:e})})({thing_model_id:null===n||void 0===n?void 0:n.id,thing_model_type:null===n||void 0===n?void 0:n.type}).then((function(e){e.success?(qp.success("\u5220\u9664\u6210\u529f"),S()):qp.error(null===e||void 0===e?void 0:e.errorMsg)}))},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}]})]})]})},WZ=new Ti("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),UZ=new Ti("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),GZ=new Ti("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),KZ=new Ti("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),YZ=new Ti("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),qZ=new Ti("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),$Z=function(e){var t,n,i,r,o,a,s,l=e.componentCls,c=e.iconCls,u=e.antCls,d=e.badgeFontHeight,h=e.badgeShadowSize,f=e.badgeHeightSm,p=e.motionDurationSlow,g=e.badgeStatusSize,v=e.marginXS,m=e.badgeRibbonOffset,y=u+"-scroll-number",_=u+"-ribbon",b=u+"-ribbon-wrapper",C=Nf.reduce((function(t,n){var i=e[n+"-6"];return Zt(Zt({},t),(0,N.Z)({},l+"-status-"+n,{background:i}))}),{}),S=Nf.reduce((function(t,n){var i=e[n+"-6"];return Zt(Zt({},t),(0,N.Z)({},"&"+_+"-color-"+n,{background:i,color:i}))}),{});return s={},(0,N.Z)(s,l,Zt(Zt({},Fa(e)),(r={position:"relative",display:"inline-block",lineHeight:1},(0,N.Z)(r,l+"-count",{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:e.badgeHeight+"px",whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:"0 0 0 "+h+"px "+e.badgeShadowColor,transition:"background "+e.motionDurationMid,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}}),(0,N.Z)(r,l+"-count-sm",{minWidth:f,height:f,fontSize:e.badgeFontSizeSm,lineHeight:f+"px",borderRadius:f/2}),(0,N.Z)(r,l+"-multiple-words",{padding:"0 "+e.paddingXS+"px"}),(0,N.Z)(r,l+"-dot",{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:"0 0 0 "+h+"px "+e.badgeShadowColor}),(0,N.Z)(r,l+"-dot"+y,{transition:"background "+p}),(0,N.Z)(r,l+"-count, "+l+"-dot, "+y+"-custom-component",(0,N.Z)({position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%"},c+"-spin",{animationName:qZ,animationDuration:e.motionDurationMid,animationIterationCount:"infinite",animationTimingFunction:"linear"})),(0,N.Z)(r,"&"+l+"-status",Zt(Zt((t={lineHeight:"inherit",verticalAlign:"baseline"},(0,N.Z)(t,l+"-status-dot",{position:"relative",top:-1,display:"inline-block",width:g,height:g,verticalAlign:"middle",borderRadius:"50%"}),(0,N.Z)(t,l+"-status-success",{backgroundColor:e.colorSuccess}),(0,N.Z)(t,l+"-status-processing",{position:"relative",backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",border:h+"px solid "+e.colorPrimary,borderRadius:"50%",animationName:WZ,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}}),(0,N.Z)(t,l+"-status-default",{backgroundColor:e.colorTextPlaceholder}),(0,N.Z)(t,l+"-status-error",{backgroundColor:e.colorError}),(0,N.Z)(t,l+"-status-warning",{backgroundColor:e.colorWarning}),t),C),(0,N.Z)({},l+"-status-text",{marginInlineStart:v,color:e.colorText,fontSize:e.fontSize}))),(0,N.Z)(r,l+"-zoom-appear, "+l+"-zoom-enter",{animationName:UZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"}),(0,N.Z)(r,l+"-zoom-leave",{animationName:GZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"}),(0,N.Z)(r,"&"+l+"-not-a-wrapper",(n={},(0,N.Z)(n,l+"-zoom-appear, "+l+"-zoom-enter",{animationName:KZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack}),(0,N.Z)(n,l+"-zoom-leave",{animationName:YZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack}),(0,N.Z)(n,"&:not("+l+"-status)",{verticalAlign:"middle"}),(0,N.Z)(n,y+"-custom-component, "+l+"-count",{transform:"none"}),(0,N.Z)(n,y+"-custom-component, "+y,{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}),n)),(0,N.Z)(r,""+y,(i={overflow:"hidden",direction:"ltr"},(0,N.Z)(i,y+"-only",(0,N.Z)({position:"relative",display:"inline-block",height:e.badgeHeight,transition:"all "+e.motionDurationSlow+" "+e.motionEaseOutBack,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"},"> p"+y+"-only-unit",{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"})),(0,N.Z)(i,y+"-symbol",{verticalAlign:"top"}),i)),r))),(0,N.Z)(s,""+b,{position:"relative"}),(0,N.Z)(s,""+_,Zt(Zt(Zt(Zt({},Fa(e)),(o={position:"absolute",top:v,height:d,padding:"0 "+e.paddingXS+"px",color:e.colorPrimary,lineHeight:d+"px",whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM},(0,N.Z)(o,_+"-text",{color:e.colorTextLightSolid}),(0,N.Z)(o,_+"-corner",{position:"absolute",top:"100%",width:m,height:m,color:"currentcolor",border:m/2+"px solid",transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}),o)),S),(a={},(0,N.Z)(a,"&"+_+"-placement-end",(0,N.Z)({insetInlineEnd:-m,borderEndEndRadius:0},_+"-corner",{insetInlineEnd:0,borderColor:"currentcolor transparent transparent currentcolor"})),(0,N.Z)(a,"&"+_+"-placement-start",(0,N.Z)({insetInlineStart:-m,borderEndStartRadius:0},_+"-corner",{insetInlineStart:0,borderColor:"currentcolor currentcolor transparent transparent"})),a))),s},XZ=hs("Badge",(function(e){var t=e.fontSize,n=e.lineHeight,i=e.fontSizeSM,r=e.lineWidth,o=e.marginXS,a=e.colorBorderBg,s=Math.round(t*n),l=cs(e,{badgeFontHeight:s,badgeShadowSize:r,badgeZIndex:"auto",badgeHeight:s-2*r,badgeTextColor:e.colorBgContainer,badgeFontWeight:"normal",badgeFontSize:i,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:a,badgeHeightSm:t,badgeDotSize:i/2,badgeFontSizeSm:i,badgeStatusSize:i/2,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[$Z(l)]}));function QZ(e){return Zf.includes(e)}var JZ=function(e){var t,n=e.className,i=e.prefixCls,r=e.style,o=e.color,a=e.children,s=e.text,l=e.placement,c=void 0===l?"end":l,u=v.useContext(wa),d=u.getPrefixCls,h=u.direction,f=d("ribbon",i),p=QZ(o),g=Ja()(f,f+"-placement-"+c,(t={},(0,N.Z)(t,f+"-rtl","rtl"===h),(0,N.Z)(t,f+"-color-"+o,p),t),n),m=XZ(f),y=(0,k.Z)(m,2),_=y[0],b=y[1],C={},S={};return o&&!p&&(C.background=o,S.color=o),_(v.createElement("div",{className:Ja()(f+"-wrapper",b)},a,v.createElement("div",{className:Ja()(g,b),style:Zt(Zt({},C),r)},v.createElement("span",{className:f+"-text"},s),v.createElement("div",{className:f+"-corner",style:S}))))};function eF(e){var t,n=e.prefixCls,i=e.value,r=e.current,o=e.offset,a=void 0===o?0:o;return a&&(t={position:"absolute",top:a+"00%",left:0}),v.createElement("span",{style:t,className:Ja()(n+"-only-unit",{current:r})},i)}function tF(e,t,n){for(var i=e,r=0;(i+10)%10!==t;)i+=n,r+=n;return r}function nF(e){var t,n,i=e.prefixCls,r=e.count,o=e.value,a=Number(o),s=Math.abs(r),l=v.useState(a),c=(0,k.Z)(l,2),u=c[0],d=c[1],h=v.useState(s),f=(0,k.Z)(h,2),p=f[0],g=f[1],m=function(){d(a),g(s)};if(v.useEffect((function(){var e=setTimeout((function(){m()}),1e3);return function(){clearTimeout(e)}}),[a]),u===a||Number.isNaN(a)||Number.isNaN(u))t=[v.createElement(eF,Zt({},e,{key:a,current:!0}))],n={transition:"none"};else{t=[];for(var y=a+10,_=[],b=a;b<=y;b+=1)_.push(b);var C=_.findIndex((function(e){return e%10===u}));t=_.map((function(t,n){var i=t%10;return v.createElement(eF,Zt({},e,{key:t,value:i,offset:n-C,current:n===C}))})),n={transform:"translateY("+-tF(u,a,p<s?1:-1)+"00%)"}}return v.createElement("span",{className:i+"-only",style:n,onTransitionEnd:m},t)}var iF=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},rF=function(e){var t=e.prefixCls,n=e.count,i=e.className,r=e.motionClassName,o=e.style,a=e.title,s=e.show,l=e.component,c=void 0===l?"sup":l,u=e.children,d=iF(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),h=(0,v.useContext(wa).getPrefixCls)("scroll-number",t),f=Zt(Zt({},d),{"data-show":s,style:o,className:Ja()(h,i,r),title:a}),p=n;if(n&&Number(n)%1===0){var g=String(n).split("");p=g.map((function(e,t){return v.createElement(nF,{prefixCls:h,count:Number(n),value:e,key:g.length-t})}))}return o&&o.borderColor&&(f.style=Zt(Zt({},o),{boxShadow:"0 0 0 1px "+o.borderColor+" inset"})),u?os(u,(function(e){return{className:Ja()(h+"-custom-component",null===e||void 0===e?void 0:e.className,r)}})):v.createElement(c,f,p)},oF=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},aF=function(e){var t,n,i=e.prefixCls,r=e.scrollNumberPrefixCls,o=e.children,a=e.status,s=e.text,l=e.color,c=e.count,u=void 0===c?null:c,d=e.overflowCount,h=void 0===d?99:d,f=e.dot,p=void 0!==f&&f,g=e.size,m=void 0===g?"default":g,y=e.title,_=e.offset,b=e.style,C=e.className,S=e.showZero,w=void 0!==S&&S,x=oF(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),E=v.useContext(wa),T=E.getPrefixCls,I=E.direction,D=T("badge",i),L=XZ(D),O=(0,k.Z)(L,2),R=O[0],A=O[1],M=u>h?h+"+":u,P="0"===M||0===M,Z=(null!==a&&void 0!==a||null!==l&&void 0!==l)&&(null===u||P),F=p&&!P,B=F?"":M,H=(0,v.useMemo)((function(){return(null===B||void 0===B||""===B||P&&!w)&&!F}),[B,P,w,F]),z=(0,v.useRef)(u);H||(z.current=u);var j=z.current,V=(0,v.useRef)(B);H||(V.current=B);var W=V.current,U=(0,v.useRef)(F);H||(U.current=F);var G=(0,v.useMemo)((function(){if(!_)return Zt({},b);var e={marginTop:_[1]};return"rtl"===I?e.left=parseInt(_[0],10):e.right=-parseInt(_[0],10),Zt(Zt({},e),b)}),[I,_,b]),K=null!==y&&void 0!==y?y:"string"===typeof j||"number"===typeof j?j:void 0,Y=H||!s?null:v.createElement("span",{className:D+"-status-text"},s),q=j&&"object"===(0,Bt.Z)(j)?os(j,(function(e){return{style:Zt(Zt({},G),e.style)}})):void 0,$=Ja()((t={},(0,N.Z)(t,D+"-status-dot",Z),(0,N.Z)(t,D+"-status-"+a,!!a),(0,N.Z)(t,D+"-status-"+l,QZ(l)),t)),X={};l&&!QZ(l)&&(X.background=l);var Q=Ja()(D,(n={},(0,N.Z)(n,D+"-status",Z),(0,N.Z)(n,D+"-not-a-wrapper",!o),(0,N.Z)(n,D+"-rtl","rtl"===I),n),C);if(!o&&Z){var J=G.color;return R(v.createElement("span",Zt({},x,{className:Ja()(Q,A),style:G}),v.createElement("span",{className:$,style:X}),s&&v.createElement("span",{style:{color:J},className:D+"-status-text"},s)))}return R(v.createElement("span",Zt({},x,{className:Ja()(Q,A)}),o,v.createElement(xc,{visible:!H,motionName:D+"-zoom",motionAppear:!1,motionDeadline:1e3},(function(e){var t,n=e.className,i=T("scroll-number",r),o=U.current,s=Ja()((t={},(0,N.Z)(t,D+"-dot",o),(0,N.Z)(t,D+"-count",!o),(0,N.Z)(t,D+"-count-sm","small"===m),(0,N.Z)(t,D+"-multiple-words",!o&&W&&W.toString().length>1),(0,N.Z)(t,D+"-status-"+a,!!a),(0,N.Z)(t,D+"-status-"+l,QZ(l)),t)),c=Zt({},G);return l&&!QZ(l)&&((c=c||{}).background=l),v.createElement(rF,{prefixCls:i,show:!H,motionClassName:n,className:s,count:W,title:K,style:c,key:"scrollNumber"},q)})),Y))};aF.Ribbon=JZ;var sF=aF,lF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},cF=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:lF}))};cF.displayName="LockOutlined";var uF=v.forwardRef(cF),dF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"},hF=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:dF}))};hF.displayName="UnlockOutlined";var fF=v.forwardRef(hF),pF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},gF=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:pF}))};gF.displayName="DeleteOutlined";var vF=v.forwardRef(gF);function mF(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(Fc){return t}}function yF(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var i=e.data[t];Array.isArray(i)?i.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,i)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),i=new Error(n);return i.status=t.status,i.method=e.method,i.url=e.action,i}(e,t),mF(t)):e.onSuccess(mF(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var i=e.headers||{};return null!==i["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(i).forEach((function(e){null!==i[e]&&t.setRequestHeader(e,i[e])})),t.send(n),{abort:function(){t.abort()}}}var _F=+new Date,bF=0;function CF(){return"rc-upload-".concat(_F,"-").concat(++bF)}var SF=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),i=e.name||"",r=e.type||"",o=r.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=i.toLowerCase(),a=t.toLowerCase(),s=[a];return".jpg"!==a&&".jpeg"!==a||(s=[".jpg",".jpeg"]),s.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?o===t.replace(/\/.*$/,""):r===t||!!/^\w+$/.test(t)&&(li(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};var wF=function(e,t,n){var i=function e(i,r){i.path=r||"",i.isFile?i.file((function(e){n(e)&&(i.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=i.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):i.isDirectory&&function(e,t){var n=e.createReader(),i=[];!function e(){n.readEntries((function(n){var r=Array.prototype.slice.apply(n);i=i.concat(r),r.length?e():t(i)}))}()}(i,(function(t){t.forEach((function(t){e(t,"".concat(r).concat(i.name,"/"))}))}))};e.forEach((function(e){i(e.webkitGetAsEntry())}))},kF=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],xF=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){var e;(0,b.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={uid:CF()},e.reqs={},e.fileInput=void 0,e._isMounted=void 0,e.onChange=function(t){var n=e.props,i=n.accept,r=n.directory,o=t.target.files,a=(0,_.Z)(o).filter((function(e){return!r||SF(e,i)}));e.uploadFiles(a),e.reset()},e.onClick=function(t){var n=e.fileInput;if(n){var i=e.props,r=i.children,o=i.onClick;if(r&&"button"===r.type){var a=n.parentNode;a.focus(),a.querySelector("button").blur()}n.click(),o&&o(t)}},e.onKeyDown=function(t){"Enter"===t.key&&e.onClick(t)},e.onFileDrop=function(t){var n=e.props.multiple;if(t.preventDefault(),"dragover"!==t.type)if(e.props.directory)wF(Array.prototype.slice.call(t.dataTransfer.items),e.uploadFiles,(function(t){return SF(t,e.props.accept)}));else{var i=(0,_.Z)(t.dataTransfer.files).filter((function(t){return SF(t,e.props.accept)}));!1===n&&(i=i.slice(0,1)),e.uploadFiles(i)}},e.uploadFiles=function(t){var n=(0,_.Z)(t),i=n.map((function(t){return t.uid=CF(),e.processFile(t,n)}));Promise.all(i).then((function(t){var n=e.props.onBatchStart;null===n||void 0===n||n(t.map((function(e){return{file:e.origin,parsedFile:e.parsedFile}}))),t.filter((function(e){return null!==e.parsedFile})).forEach((function(t){e.post(t)}))}))},e.processFile=function(){var t=(0,T.Z)((0,E.Z)().mark((function t(n,i){var r,o,a,s,l,c,u,d,h;return(0,E.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.props.beforeUpload,o=n,!r){t.next=14;break}return t.prev=3,t.next=6,r(n,i);case 6:o=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),o=!1;case 12:if(!1!==o){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!==typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:s=t.sent,t.next=22;break;case 21:s=a;case 22:if("function"!==typeof(l=e.props.data)){t.next=29;break}return t.next=26,l(n);case 26:c=t.sent,t.next=30;break;case 29:c=l;case 30:return u="object"!==(0,Bt.Z)(o)&&"string"!==typeof o||!o?n:o,d=u instanceof File?u:new File([u],n.name,{type:n.type}),(h=d).uid=n.uid,t.abrupt("return",{origin:n,data:c,parsedFile:h,action:s});case 35:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e,n){return t.apply(this,arguments)}}(),e.saveFileInput=function(t){e.fileInput=t},e}return(0,C.Z)(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(e){var t=this,n=e.data,i=e.origin,r=e.action,o=e.parsedFile;if(this._isMounted){var a=this.props,s=a.onStart,l=a.customRequest,c=a.name,u=a.headers,d=a.withCredentials,h=a.method,f=i.uid,p=l||yF,g={action:r,filename:c,data:n,file:o,headers:u,withCredentials:d,method:h||"post",onProgress:function(e){var n=t.props.onProgress;null===n||void 0===n||n(e,o)},onSuccess:function(e,n){var i=t.props.onSuccess;null===i||void 0===i||i(e,o,n),delete t.reqs[f]},onError:function(e,n){var i=t.props.onError;null===i||void 0===i||i(e,n,o),delete t.reqs[f]}};s(i),this.reqs[f]=p(g)}}},{key:"reset",value:function(){this.setState({uid:CF()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e,t=this.props,n=t.component,i=t.prefixCls,r=t.className,o=t.disabled,a=t.id,s=t.style,l=t.multiple,c=t.accept,u=t.capture,d=t.children,h=t.directory,f=t.openFileDialogOnClick,p=t.onMouseEnter,g=t.onMouseLeave,m=Ai(t,kF),y=Ja()((e={},(0,N.Z)(e,i,!0),(0,N.Z)(e,"".concat(i,"-disabled"),o),(0,N.Z)(e,r,r),e)),_=h?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},b=o?{}:{onClick:f?this.onClick:function(){},onKeyDown:f?this.onKeyDown:function(){},onMouseEnter:p,onMouseLeave:g,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return v.createElement(n,Zt({},b,{className:y,role:"button",style:s}),v.createElement("input",Zt({},wv(m,{aria:!0,data:!0}),{id:a,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:c},_,{multiple:l,onChange:this.onChange},null!=u?{capture:u}:{})),d)}}]),n}(v.Component),EF=xF;function TF(){}var NF=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){var e;(0,b.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).uploader=void 0,e.saveUploader=function(t){e.uploader=t},e}return(0,C.Z)(n,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return v.createElement(EF,Zt({},this.props,{ref:this.saveUploader}))}}]),n}(v.Component);NF.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:TF,onError:TF,onSuccess:TF,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var IF=NF,DF={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},LF=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:DF}))};LF.displayName="FileTwoTone";var OF=v.forwardRef(LF),RF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},AF=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:RF}))};AF.displayName="PaperClipOutlined";var MF=v.forwardRef(AF),PF={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},ZF=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:PF}))};ZF.displayName="PictureTwoTone";var FF=v.forwardRef(ZF);function BF(e){return Zt(Zt({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function HF(e,t){var n=(0,_.Z)(t),i=n.findIndex((function(t){return t.uid===e.uid}));return-1===i?n.push(e):n[i]=e,n}function zF(e,t){var n=void 0!==e.uid?"uid":"name";return t.filter((function(t){return t[n]===e[n]}))[0]}var jF=function(e){return 0===e.indexOf("image/")},VF=function(e){if(e.type&&!e.thumbUrl)return jF(e.type);var t=e.thumbUrl||e.url||"",n=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},WF=200;function UF(e){return new Promise((function(t){if(e.type&&jF(e.type)){var n=document.createElement("canvas");n.width=WF,n.height=WF,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);var i=n.getContext("2d"),r=new Image;if(r.onload=function(){var e=r.width,o=r.height,a=WF,s=WF,l=0,c=0;e>o?c=-((s=o*(WF/e))-a)/2:l=-((a=e*(WF/o))-s)/2,i.drawImage(r,l,c,a,s);var u=n.toDataURL();document.body.removeChild(n),t(u)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){var o=new FileReader;o.addEventListener("load",(function(){o.result&&(r.src=o.result)})),o.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)}else t("")}))}var GF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},KF=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:GF}))};KF.displayName="DownloadOutlined";var YF=v.forwardRef(KF),qF={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},$F=function(){var e=(0,v.useRef)([]),t=(0,v.useRef)(null);return(0,v.useEffect)((function(){var n=Date.now(),i=!1;e.current.forEach((function(e){if(e){i=!0;var r=e.style;r.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(r.transitionDuration="0s, 0s")}})),i&&(t.current=Date.now())})),e.current},XF=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],QF=function(e){var t=e.className,n=e.percent,i=e.prefixCls,r=e.strokeColor,o=e.strokeLinecap,a=e.strokeWidth,s=e.style,l=e.trailColor,c=e.trailWidth,u=e.transition,d=Ai(e,XF);delete d.gapPosition;var h=Array.isArray(n)?n:[n],f=Array.isArray(r)?r:[r],p=$F(),g=a/2,m=100-a/2,y="M ".concat("round"===o?g:0,",").concat(g,"\n L ").concat("round"===o?m:100,",").concat(g),_="0 0 100 ".concat(a),b=0;return v.createElement("svg",Zt({className:Ja()("".concat(i,"-line"),t),viewBox:_,preserveAspectRatio:"none",style:s},d),v.createElement("path",{className:"".concat(i,"-line-trail"),d:y,strokeLinecap:o,stroke:l,strokeWidth:c||a,fillOpacity:"0"}),h.map((function(e,t){var n=1;switch(o){case"round":n=1-a/100;break;case"square":n=1-a/2/100;break;default:n=1}var r={strokeDasharray:"".concat(e*n,"px, 100px"),strokeDashoffset:"-".concat(b,"px"),transition:u||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},s=f[t]||f[f.length-1];return b+=e,v.createElement("path",{key:t,className:"".concat(i,"-line-path"),d:y,strokeLinecap:o,stroke:s,strokeWidth:a,fillOpacity:"0",ref:function(e){p[t]=e},style:r})})))};QF.defaultProps=qF,QF.displayName="Line";var JF=0,eB=Ht();var tB=function(e){var t=v.useState(),n=(0,k.Z)(t,2),i=n[0],r=n[1];return v.useEffect((function(){r("rc_progress_".concat(function(){var e;return eB?(e=JF,JF+=1):e="TEST_OR_SSR",e}()))}),[]),e||i},nB=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function iB(e){return+e.replace("%","")}function rB(e){var t=null!==e&&void 0!==e?e:[];return Array.isArray(t)?t:[t]}var oB=100,aB=function(e,t,n,i,r,o,a,s,l,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-o)/360),h=0===o?0:{bottom:0,top:180,left:90,right:-90}[a],f=(100-i)/100*t;return"round"===l&&100!==i&&(f+=c/2)>=t&&(f=t-.01),{stroke:"string"===typeof s?s:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:f+u,transform:"rotate(".concat(r+d+h,"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},sB=function(e){var t=e.id,n=e.prefixCls,i=e.steps,r=e.strokeWidth,o=e.trailWidth,a=e.gapDegree,s=void 0===a?0:a,l=e.gapPosition,c=e.trailColor,u=e.strokeLinecap,d=e.style,h=e.className,f=e.strokeColor,p=e.percent,g=Ai(e,nB),m=tB(t),y="".concat(m,"-gradient"),_=50-r/2,b=2*Math.PI*_,C=s>0?90+s/2:-90,S=b*((360-s)/360),w="object"===(0,Bt.Z)(i)?i:{count:i,space:2},k=w.count,x=w.space,E=aB(b,S,0,100,C,s,l,c,u,r),T=rB(p),N=rB(f),I=N.find((function(e){return e&&"object"===(0,Bt.Z)(e)})),D=$F();return v.createElement("svg",Zt({className:Ja()("".concat(n,"-circle"),h),viewBox:"".concat(-50," ").concat(-50," ").concat(oB," ").concat(oB),style:d,id:t,role:"presentation"},g),I&&v.createElement("defs",null,v.createElement("linearGradient",{id:y,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(I).sort((function(e,t){return iB(e)-iB(t)})).map((function(e,t){return v.createElement("stop",{key:t,offset:e,stopColor:I[e]})})))),!k&&v.createElement("circle",{className:"".concat(n,"-circle-trail"),r:_,cx:0,cy:0,stroke:c,strokeLinecap:u,strokeWidth:o||r,style:E}),k?function(){var e=Math.round(k*(T[0]/100)),t=100/k,i=0;return new Array(k).fill(null).map((function(o,a){var u=a<=e-1?N[0]:c,d=u&&"object"===(0,Bt.Z)(u)?"url(#".concat(y,")"):void 0,h=aB(b,S,i,t,C,s,l,u,"butt",r,x);return i+=100*(S-h.strokeDashoffset+x)/S,v.createElement("circle",{key:a,className:"".concat(n,"-circle-path"),r:_,cx:0,cy:0,stroke:d,strokeWidth:r,opacity:1,style:h,ref:function(e){D[a]=e}})}))}():function(){var e=0;return T.map((function(t,i){var o=N[i]||N[N.length-1],a=o&&"object"===(0,Bt.Z)(o)?"url(#".concat(y,")"):void 0,c=aB(b,S,e,t,C,s,l,o,u,r);return e+=t,v.createElement("circle",{key:i,className:"".concat(n,"-circle-path"),r:_,cx:0,cy:0,stroke:a,strokeLinecap:u,strokeWidth:r,opacity:0===t?0:1,style:c,ref:function(e){D[i]=e}})})).reverse()}())};sB.defaultProps=qF,sB.displayName="Circle";var lB=sB;function cB(e){return!e||e<0?0:e>100?100:e}function uB(e){var t=e.success,n=e.successPercent;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}var dB=function(e){var t=e.percent,n=cB(uB({success:e.success,successPercent:e.successPercent}));return[n,cB(cB(t)-n)]},hB=function(e){var t=e.prefixCls,n=e.width,i=e.strokeWidth,r=e.trailColor,o=void 0===r?null:r,a=e.strokeLinecap,s=void 0===a?"round":a,l=e.gapPosition,c=e.gapDegree,u=e.type,d=e.children,h=e.success,f=n||120,p={width:f,height:f,fontSize:.15*f+6},g=v.useMemo((function(){return i||Math.max(function(e){return 3/e*100}(f),6)}),[f,i]),m=v.useMemo((function(){return c||0===c?c:"dashboard"===u?75:void 0}),[c,u]),y=l||"dashboard"===u&&"bottom"||void 0,_="[object Object]"===Object.prototype.toString.call(e.strokeColor),b=function(e){var t=e.success,n=void 0===t?{}:t,i=e.strokeColor;return[n.strokeColor||Qo.green,i||null]}({success:h,strokeColor:e.strokeColor}),C=Ja()(t+"-inner",(0,N.Z)({},t+"-circle-gradient",_)),S=v.createElement(lB,{percent:dB(e),strokeWidth:g,trailWidth:g,strokeColor:b,strokeLinecap:s,trailColor:o,prefixCls:t,gapDegree:m,gapPosition:y});return v.createElement("div",{className:C,style:p},f<=20?v.createElement(Vf,{title:d},S):v.createElement(v.Fragment,null,S,d))},fB=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},pB=function(e,t){var n=e.from,i=void 0===n?Qo.blue:n,r=e.to,o=void 0===r?Qo.blue:r,a=e.direction,s=void 0===a?"rtl"===t?"to left":"to right":a,l=fB(e,["from","to","direction"]);if(0!==Object.keys(l).length){var c=function(e){var t=[];return Object.keys(e).forEach((function(n){var i=parseFloat(n.replace(/%/g,""));isNaN(i)||t.push({key:i,value:e[n]})})),(t=t.sort((function(e,t){return e.key-t.key}))).map((function(e){var t=e.key;return e.value+" "+t+"%"})).join(", ")}(l);return{backgroundImage:"linear-gradient("+s+", "+c+")"}}return{backgroundImage:"linear-gradient("+s+", "+i+", "+o+")"}},gB=function(e){var t=e.prefixCls,n=e.direction,i=e.percent,r=e.strokeWidth,o=e.size,a=e.strokeColor,s=e.strokeLinecap,l=void 0===s?"round":s,c=e.children,u=e.trailColor,d=void 0===u?null:u,h=e.success,f=a&&"string"!==typeof a?pB(a,n):{backgroundColor:a},p="square"===l||"butt"===l?0:void 0,g={backgroundColor:d||void 0,borderRadius:p},m=Zt({width:cB(i)+"%",height:r||("small"===o?6:8),borderRadius:p},f),y=uB(e),_={width:cB(y)+"%",height:r||("small"===o?6:8),borderRadius:p,backgroundColor:null===h||void 0===h?void 0:h.strokeColor};return v.createElement(v.Fragment,null,v.createElement("div",{className:t+"-outer"},v.createElement("div",{className:t+"-inner",style:g},v.createElement("div",{className:t+"-bg",style:m}),void 0!==y?v.createElement("div",{className:t+"-success-bg",style:_}):null)),c)},vB=function(e){for(var t=e.size,n=e.steps,i=e.percent,r=void 0===i?0:i,o=e.strokeWidth,a=void 0===o?8:o,s=e.strokeColor,l=e.trailColor,c=void 0===l?null:l,u=e.prefixCls,d=e.children,h=Math.round(n*(r/100)),f="small"===t?2:14,p=new Array(n),g=0;g<n;g++){var m=Array.isArray(s)?s[g]:s;p[g]=v.createElement("div",{key:g,className:Ja()(u+"-steps-item",(0,N.Z)({},u+"-steps-item-active",g<=h-1)),style:{backgroundColor:g<=h-1?m:c,width:f,height:a}})}return v.createElement("div",{className:u+"-steps-outer"},p,d)},mB=new Ti("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),yB=function(e){var t,n,i,r=e.componentCls,o=e.iconCls;return(0,N.Z)({},r,Zt(Zt({},Fa(e)),(i={display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS}},(0,N.Z)(i,r+"-outer",{display:"inline-block",width:"100%"}),(0,N.Z)(i,"&"+r+"-show-info",(0,N.Z)({},r+"-outer",{marginInlineEnd:"calc(-2em - "+e.marginXS+"px)",paddingInlineEnd:"calc(2em + "+e.paddingXS+"px)"})),(0,N.Z)(i,r+"-inner",{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius}),(0,N.Z)(i,r+"-inner:not("+r+"-circle-gradient)",(0,N.Z)({},r+"-circle-path",{stroke:e.colorInfo})),(0,N.Z)(i,"&"+r+"-success-bg, "+r+"-bg",{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:"all "+e.motionDurationSlow+" "+e.motionEaseInOutCirc}),(0,N.Z)(i,r+"-success-bg",{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess}),(0,N.Z)(i,r+"-text",(0,N.Z)({display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal"},o,{fontSize:e.fontSize})),(0,N.Z)(i,"&"+r+"-status-active",(0,N.Z)({},r+"-bg::before",{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:mB,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'})),(0,N.Z)(i,"&"+r+"-status-exception",(t={},(0,N.Z)(t,r+"-bg",{backgroundColor:e.colorError}),(0,N.Z)(t,r+"-text",{color:e.colorError}),t)),(0,N.Z)(i,"&"+r+"-status-exception "+r+"-inner:not("+r+"-circle-gradient)",(0,N.Z)({},r+"-circle-path",{stroke:e.colorError})),(0,N.Z)(i,"&"+r+"-status-success",(n={},(0,N.Z)(n,r+"-bg",{backgroundColor:e.colorSuccess}),(0,N.Z)(n,r+"-text",{color:e.colorSuccess}),n)),(0,N.Z)(i,"&"+r+"-status-success "+r+"-inner:not("+r+"-circle-gradient)",(0,N.Z)({},r+"-circle-path",{stroke:e.colorSuccess})),i)))},_B=function(e){var t,n,i=e.componentCls,r=e.iconCls;return n={},(0,N.Z)(n,i,(t={},(0,N.Z)(t,i+"-circle-trail",{stroke:e.progressRemainingColor}),(0,N.Z)(t,"&"+i+"-circle "+i+"-inner",{position:"relative",lineHeight:1,backgroundColor:"transparent"}),(0,N.Z)(t,"&"+i+"-circle "+i+"-text",(0,N.Z)({position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translate(-50%, -50%)"},r,{fontSize:e.fontSize/e.fontSizeSM+"em"})),(0,N.Z)(t,i+"-circle&-status-exception",(0,N.Z)({},i+"-text",{color:e.colorError})),(0,N.Z)(t,i+"-circle&-status-success",(0,N.Z)({},i+"-text",{color:e.colorSuccess})),t)),(0,N.Z)(n,i+"-inline-circle",(0,N.Z)({lineHeight:1},i+"-inner",{verticalAlign:"bottom"})),n},bB=function(e){var t=e.componentCls;return(0,N.Z)({},t,(0,N.Z)({},t+"-steps",{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:"all "+e.motionDurationSlow,"&-active":{backgroundColor:e.colorInfo}}}))},CB=function(e){var t=e.componentCls,n=e.iconCls;return(0,N.Z)({},t,(0,N.Z)({},t+"-small&-line, "+t+"-small&-line "+t+"-text "+n,{fontSize:e.fontSizeSM}))},SB=hs("Progress",(function(e){var t=e.marginXXS/2,n=cs(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[yB(n),_B(n),bB(n),CB(n)]})),wB=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},kB=(as("line","circle","dashboard"),as("normal","exception","active","success")),xB=function(e){var t,n,i=e.prefixCls,r=e.className,o=e.steps,a=e.strokeColor,s=e.percent,l=void 0===s?0:s,c=e.size,u=void 0===c?"default":c,d=e.showInfo,h=void 0===d||d,f=e.type,p=void 0===f?"line":f,g=e.status,m=e.format,y=wB(e,["prefixCls","className","steps","strokeColor","percent","size","showInfo","type","status","format"]),_=v.useMemo((function(){var t=uB(e);return parseInt(void 0!==t?t.toString():l.toString(),10)}),[l,e.success,e.successPercent]),b=v.useMemo((function(){return!kB.includes(g)&&_>=100?"success":g||"normal"}),[g,_]),C=v.useContext(wa),S=C.getPrefixCls,w=C.direction,x=S("progress",i),E=SB(x),T=(0,k.Z)(E,2),I=T[0],D=T[1],L=v.useMemo((function(){if(!h)return null;var t,n=uB(e),i=m||function(e){return e+"%"},r="line"===p;return m||"exception"!==b&&"success"!==b?t=i(cB(l),cB(n)):"exception"===b?t=r?v.createElement(Lu,null):v.createElement(Ap,null):"success"===b&&(t=r?v.createElement(Nu,null):v.createElement(fx,null)),v.createElement("span",{className:x+"-text",title:"string"===typeof t?t:void 0},t)}),[h,_,b,p,x,m]),O=Array.isArray(a)?a[0]:a,R="string"===typeof a||Array.isArray(a)?a:void 0;"line"===p?n=o?v.createElement(vB,Zt({},e,{strokeColor:R,prefixCls:x,steps:o}),L):v.createElement(gB,Zt({},e,{strokeColor:O,prefixCls:x,direction:w}),L):"circle"!==p&&"dashboard"!==p||(n=v.createElement(hB,Zt({},e,{strokeColor:O,prefixCls:x,progressStatus:b}),L));var A=Ja()(x,(t={},(0,N.Z)(t,x+"-inline-circle","circle"===p&&e.width<=20),(0,N.Z)(t,x+"-"+(("dashboard"===p?"circle":o&&"steps")||p),!0),(0,N.Z)(t,x+"-status-"+b,!0),(0,N.Z)(t,x+"-show-info",h),(0,N.Z)(t,x+"-"+u,u),(0,N.Z)(t,x+"-rtl","rtl"===w),t),r,D);return I(v.createElement("div",Zt({className:A,role:"progressbar"},ns(y,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),n))},EB=xB,TB=v.forwardRef((function(e,t){var n,i,r=e.prefixCls,o=e.className,a=e.style,s=e.locale,l=e.listType,c=e.file,u=e.items,d=e.progress,h=e.iconRender,f=e.actionIconRender,p=e.itemRender,g=e.isImgUrl,m=e.showPreviewIcon,y=e.showRemoveIcon,_=e.showDownloadIcon,b=e.previewIcon,C=e.removeIcon,S=e.downloadIcon,w=e.onPreview,x=e.onDownload,E=e.onClose,T=c.status,I=v.useState(T),D=(0,k.Z)(I,2),L=D[0],O=D[1];v.useEffect((function(){"removed"!==T&&O(T)}),[T]);var R=v.useState(!1),A=(0,k.Z)(R,2),M=A[0],P=A[1],Z=v.useRef(null);v.useEffect((function(){return Z.current=setTimeout((function(){P(!0)}),300),function(){Z.current&&clearTimeout(Z.current)}}),[]);var F=h(c),B=v.createElement("div",{className:r+"-icon"},F);if("picture"===l||"picture-card"===l)if("uploading"===L||!c.thumbUrl&&!c.url){var H,z=Ja()((H={},(0,N.Z)(H,r+"-list-item-thumbnail",!0),(0,N.Z)(H,r+"-list-item-file","uploading"!==L),H));B=v.createElement("div",{className:z},F)}else{var j,V=(null===g||void 0===g?void 0:g(c))?v.createElement("img",{src:c.thumbUrl||c.url,alt:c.name,className:r+"-list-item-image",crossOrigin:c.crossOrigin}):F,W=Ja()((j={},(0,N.Z)(j,r+"-list-item-thumbnail",!0),(0,N.Z)(j,r+"-list-item-file",g&&!g(c)),j));B=v.createElement("a",{className:W,onClick:function(e){return w(c,e)},href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer"},V)}var U=Ja()(r+"-list-item",r+"-list-item-"+L),G="string"===typeof c.linkProps?JSON.parse(c.linkProps):c.linkProps,K=y?f(("function"===typeof C?C(c):C)||v.createElement(vF,null),(function(){return E(c)}),r,s.removeFile):null,Y=_&&"done"===L?f(("function"===typeof S?S(c):S)||v.createElement(YF,null),(function(){return x(c)}),r,s.downloadFile):null,q="picture-card"!==l&&v.createElement("span",{key:"download-delete",className:Ja()(r+"-list-item-actions",{picture:"picture"===l})},Y,K),$=Ja()(r+"-list-item-name"),X=c.url?[v.createElement("a",Zt({key:"view",target:"_blank",rel:"noopener noreferrer",className:$,title:c.name},G,{href:c.url,onClick:function(e){return w(c,e)}}),c.name),q]:[v.createElement("span",{key:"view",className:$,onClick:function(e){return w(c,e)},title:c.name},c.name),q],Q=m?v.createElement("a",{href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:c.url||c.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(e){return w(c,e)},title:s.previewFile},"function"===typeof b?b(c):b||v.createElement(Jm,null)):null,J="picture-card"===l&&"uploading"!==L&&v.createElement("span",{className:r+"-list-item-actions"},Q,"done"===L&&Y,K),ee=(0,v.useContext(wa).getPrefixCls)(),te=v.createElement("div",{className:U},B,X,J,M&&v.createElement(xc,{motionName:ee+"-fade",visible:"uploading"===L,motionDeadline:2e3},(function(e){var t=e.className,n="percent"in c?v.createElement(EB,Zt({},d,{type:"line",percent:c.percent})):null;return v.createElement("div",{className:Ja()(r+"-list-item-progress",t)},n)}))),ne=c.response&&"string"===typeof c.response?c.response:(null===(n=c.error)||void 0===n?void 0:n.statusText)||(null===(i=c.error)||void 0===i?void 0:i.message)||s.uploadError,ie="error"===L?v.createElement(Vf,{title:ne,getPopupContainer:function(e){return e.parentNode}},te):te;return v.createElement("div",{className:Ja()(r+"-list-item-container",o),style:a,ref:t},p?p(ie,c,u,{download:x.bind(null,c),preview:w.bind(null,c),remove:E.bind(null,c)}):ie)})),NB=TB,IB=function(e,t){var n,i=e.listType,r=void 0===i?"text":i,o=e.previewFile,a=void 0===o?UF:o,s=e.onPreview,l=e.onDownload,c=e.onRemove,u=e.locale,d=e.iconRender,h=e.isImageUrl,f=void 0===h?VF:h,p=e.prefixCls,g=e.items,m=void 0===g?[]:g,y=e.showPreviewIcon,b=void 0===y||y,C=e.showRemoveIcon,S=void 0===C||C,w=e.showDownloadIcon,x=void 0!==w&&w,E=e.removeIcon,T=e.previewIcon,I=e.downloadIcon,D=e.progress,L=void 0===D?{strokeWidth:2,showInfo:!1}:D,O=e.appendAction,R=e.appendActionVisible,A=void 0===R||R,M=e.itemRender,P=jC(),Z=v.useState(!1),F=(0,k.Z)(Z,2),B=F[0],H=F[1];v.useEffect((function(){"picture"!==r&&"picture-card"!==r||(m||[]).forEach((function(e){"undefined"!==typeof document&&"undefined"!==typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",a&&a(e.originFileObj).then((function(t){e.thumbUrl=t||"",P()})))}))}),[r,m,a]),v.useEffect((function(){H(!0)}),[]);var z=function(e,t){if(s)return null===t||void 0===t||t.preventDefault(),s(e)},j=function(e){"function"===typeof l?l(e):e.url&&window.open(e.url)},V=function(e){null===c||void 0===c||c(e)},W=function(e){if(d)return d(e,r);var t="uploading"===e.status,n=f&&f(e)?v.createElement(FF,null):v.createElement(OF,null),i=t?v.createElement(Fu,null):v.createElement(MF,null);return"picture"===r?i=t?v.createElement(Fu,null):n:"picture-card"===r&&(i=t?u.uploading:n),i},U=function(e,t,n,i){var r={type:"text",size:"small",title:i,onClick:function(n){t(),is(e)&&e.props.onClick&&e.props.onClick(n)},className:n+"-list-item-action"};if(is(e)){var o=os(e,Zt(Zt({},e.props),{onClick:function(){}}));return v.createElement(Jg,Zt({},r,{icon:o}))}return v.createElement(Jg,Zt({},r),v.createElement("span",null,e))};v.useImperativeHandle(t,(function(){return{handlePreview:z,handleDownload:j}}));var G=v.useContext(wa).getPrefixCls,K=G("upload",p),Y=G(),q=Ja()((n={},(0,N.Z)(n,K+"-list",!0),(0,N.Z)(n,K+"-list-"+r,!0),n)),$=(0,_.Z)(m.map((function(e){return{key:e.uid,file:e}}))),X={motionDeadline:2e3,motionName:K+"-"+("picture-card"===r?"animate-inline":"animate"),keys:$,motionAppear:B},Q=(0,v.useMemo)((function(){var e=Zt({},Oc(Y));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e}),[Y]);return"picture-card"!==r&&(X=Zt(Zt({},Q),X)),v.createElement("div",{className:q},v.createElement(kc,Zt({},X,{component:!1}),(function(e){var t=e.key,n=e.file,i=e.className,o=e.style;return v.createElement(NB,{key:t,locale:u,prefixCls:K,className:i,style:o,file:n,items:m,progress:L,listType:r,isImgUrl:f,showPreviewIcon:b,showRemoveIcon:S,showDownloadIcon:x,removeIcon:E,previewIcon:T,downloadIcon:I,iconRender:W,actionIconRender:U,itemRender:M,onPreview:z,onDownload:j,onClose:V})})),O&&v.createElement(xc,Zt({},X,{visible:A,forceRender:!0}),(function(e){var t=e.className,n=e.style;return os(O,(function(e){return{className:Ja()(e.className,t),style:Zt(Zt(Zt({},n),{pointerEvents:t?"none":void 0}),e.style)}}))})))};var DB=v.forwardRef(IB),LB=function(e){var t,n=e.componentCls,i=e.iconCls;return(0,N.Z)({},n+"-wrapper",(0,N.Z)({},n+"-drag",(t={position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:e.lineWidth+"px dashed "+e.colorBorder,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color "+e.motionDurationSlow},(0,N.Z)(t,n,{padding:e.padding+"px 0"}),(0,N.Z)(t,n+"-btn",{display:"table",width:"100%",height:"100%",outline:"none"}),(0,N.Z)(t,n+"-drag-container",{display:"table-cell",verticalAlign:"middle"}),(0,N.Z)(t,"&:not("+n+"-disabled):hover",{borderColor:e.colorPrimaryHover}),(0,N.Z)(t,"p"+n+"-drag-icon",(0,N.Z)({marginBottom:e.margin},i,{color:e.colorPrimary,fontSize:e.uploadThumbnailSize})),(0,N.Z)(t,"p"+n+"-text",{margin:"0 0 "+e.marginXXS+"px",color:e.colorTextHeading,fontSize:e.fontSizeLG}),(0,N.Z)(t,"p"+n+"-hint",{color:e.colorTextDescription,fontSize:e.fontSize}),(0,N.Z)(t,"&"+n+"-disabled",(0,N.Z)({cursor:"not-allowed"},"p"+n+"-drag-icon "+i+",\n p"+n+"-text,\n p"+n+"-hint\n ",{color:e.colorTextDisabled})),t)))},OB=function(e){var t,n,i,r,o,a=e.componentCls,s=e.antCls,l=e.iconCls,c=e.fontSize,u=e.lineHeight,d=a+"-list-item",h=d+"-actions",f=d+"-action",p=Math.round(c*u);return(0,N.Z)({},a+"-wrapper",(0,N.Z)({},a+"-list",Zt(Zt({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),(o={lineHeight:e.lineHeight},(0,N.Z)(o,d,(n={position:"relative",height:e.lineHeight*c,marginTop:e.marginXS,fontSize:c,display:"flex",alignItems:"center",transition:"background-color "+e.motionDurationSlow,"&:hover":{backgroundColor:e.controlItemBgHover}},(0,N.Z)(n,d+"-name",Zt(Zt({},Za),{padding:"0 "+e.paddingXS+"px",lineHeight:u,flex:"auto",transition:"all "+e.motionDurationSlow})),(0,N.Z)(n,h,(t={},(0,N.Z)(t,f,{opacity:0}),(0,N.Z)(t,""+f+s+"-btn-sm",{height:p,border:0,lineHeight:1,"> span":{transform:"scale(1)"}}),(0,N.Z)(t,"\n "+f+":focus,\n &.picture "+f+"\n ",{opacity:1}),(0,N.Z)(t,l,{color:e.colorTextDescription,transition:"all "+e.motionDurationSlow}),(0,N.Z)(t,"&:hover "+l,{color:e.colorText}),t)),(0,N.Z)(n,a+"-icon "+l,{color:e.colorTextDescription,fontSize:c}),(0,N.Z)(n,d+"-progress",{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:c+e.paddingXS,fontSize:c,lineHeight:0,pointerEvents:"none","> div":{margin:0}}),n)),(0,N.Z)(o,d+":hover "+f,{opacity:1,color:e.colorText}),(0,N.Z)(o,d+"-error",(r={color:e.colorError},(0,N.Z)(r,d+"-name, "+a+"-icon "+l,{color:e.colorError}),(0,N.Z)(r,h,(i={},(0,N.Z)(i,l+", "+l+":hover",{color:e.colorError}),(0,N.Z)(i,f,{opacity:1}),i)),r)),(0,N.Z)(o,a+"-list-item-container",{transition:"opacity "+e.motionDurationSlow+", height "+e.motionDurationSlow,"&::before":{display:"table",width:0,height:0,content:'""'}}),o))))},RB=new Ti("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),AB=new Ti("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),MB=function(e){var t,n=e.componentCls,i=n+"-animate-inline";return[(0,N.Z)({},n+"-wrapper",(t={},(0,N.Z)(t,i+"-appear, "+i+"-enter, "+i+"-leave",{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"}),(0,N.Z)(t,i+"-appear, "+i+"-enter",{animationName:RB}),(0,N.Z)(t,i+"-leave",{animationName:AB}),t)),RB,AB]},PB=function(e){var t,n,i,r,o=e.componentCls,a=e.iconCls,s=e.uploadThumbnailSize,l=e.uploadProgressOffset,c=o+"-list",u=c+"-item";return(0,N.Z)({},o+"-wrapper",(0,N.Z)({},""+c+c+"-picture, "+c+c+"-picture-card",(r={},(0,N.Z)(r,u,(n={position:"relative",height:s+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:e.lineWidth+"px "+e.lineType+" "+e.colorBorder,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"}},(0,N.Z)(n,u+"-thumbnail",Zt(Zt({},Za),(t={width:s,height:s,lineHeight:s+e.paddingSM+"px",textAlign:"center",flex:"none"},(0,N.Z)(t,a,{fontSize:e.fontSizeHeading2}),(0,N.Z)(t,"img",{display:"block",width:"100%",height:"100%",overflow:"hidden"}),t))),(0,N.Z)(n,u+"-progress",{bottom:l,width:"calc(100% - "+2*e.paddingSM+"px)",marginTop:0,paddingInlineStart:s+e.paddingXS}),n)),(0,N.Z)(r,u+"-error",(0,N.Z)({borderColor:e.colorError},u+"-thumbnail "+a,(i={},(0,N.Z)(i,"svg path[fill='#e6f7ff']",{fill:e.colorErrorBg}),(0,N.Z)(i,"svg path[fill='#1890ff']",{fill:e.colorError}),i))),(0,N.Z)(r,u+"-uploading",(0,N.Z)({borderStyle:"dashed"},u+"-name",{marginBottom:l})),r)))},ZB=function(e){var t,n,i,r,o=e.componentCls,a=e.iconCls,s=e.fontSizeLG,l=e.colorTextLightSolid,c=o+"-list",u=c+"-item",d=e.uploadPicCardSize;return(0,N.Z)({},o+"-wrapper"+o+"-picture-card-wrapper",Zt(Zt({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),(r={display:"inline-block",width:"100%"},(0,N.Z)(r,""+o+o+"-select",(t={width:d,height:d,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:e.lineWidth+"px dashed "+e.colorBorder,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color "+e.motionDurationSlow},(0,N.Z)(t,"> "+o,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"}),(0,N.Z)(t,"&:not("+o+"-disabled):hover",{borderColor:e.colorPrimary}),t)),(0,N.Z)(r,""+c+c+"-picture-card",(i={},(0,N.Z)(i,c+"-item-container",{display:"inline-block",width:d,height:d,marginBlock:"0 "+e.marginXS+"px",marginInline:"0 "+e.marginXS+"px",verticalAlign:"top"}),(0,N.Z)(i,"&::after",{display:"none"}),(0,N.Z)(i,u,{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:"calc(100% - "+2*e.paddingXS+"px)",height:"calc(100% - "+2*e.paddingXS+"px)",backgroundColor:e.colorBgMask,opacity:0,transition:"all "+e.motionDurationSlow,content:'" "'}}),(0,N.Z)(i,u+":hover",(0,N.Z)({},"&::before, "+u+"-actions",{opacity:1})),(0,N.Z)(i,u+"-actions",(0,N.Z)({position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:"all "+e.motionDurationSlow},a+"-eye, "+a+"-download, "+a+"-delete",{zIndex:10,width:s,margin:"0 "+e.marginXXS+"px",fontSize:s,cursor:"pointer",transition:"all "+e.motionDurationSlow})),(0,N.Z)(i,u+"-actions, "+u+"-actions:hover",(0,N.Z)({},a+"-eye, "+a+"-download, "+a+"-delete",{color:new oa(l).setAlpha(.65).toRgbString(),"&:hover":{color:l}})),(0,N.Z)(i,u+"-thumbnail, "+u+"-thumbnail img",{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"}),(0,N.Z)(i,u+"-name",{display:"none",textAlign:"center"}),(0,N.Z)(i,u+"-file + "+u+"-name",{position:"absolute",bottom:e.margin,display:"block",width:"calc(100% - "+2*e.paddingXS+"px)"}),(0,N.Z)(i,u+"-uploading",(n={},(0,N.Z)(n,"&"+u,{backgroundColor:e.colorFillAlter}),(0,N.Z)(n,"&::before, "+a+"-eye, "+a+"-download, "+a+"-delete",{display:"none"}),n)),(0,N.Z)(i,u+"-progress",{bottom:e.marginXL,width:"calc(100% - "+2*e.paddingXS+"px)",paddingInlineStart:0}),i)),r)))},FB=function(e){var t=e.componentCls;return(0,N.Z)({},t+"-rtl",{direction:"rtl"})},BB=function(e){var t,n=e.componentCls,i=e.colorTextDisabled;return(0,N.Z)({},n+"-wrapper",Zt(Zt({},Fa(e)),(t={},(0,N.Z)(t,n,{outline:0,"input[type='file']":{cursor:"pointer"}}),(0,N.Z)(t,n+"-select",{display:"inline-block"}),(0,N.Z)(t,n+"-disabled",{color:i,cursor:"not-allowed"}),t)))},HB=hs("Upload",(function(e){var t=e.fontSizeHeading3,n=e.fontSize,i=e.lineHeight,r=e.lineWidth,o=e.controlHeightLG,a=cs(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(n*i)/2+r,uploadPicCardSize:2.55*o});return[BB(a),LB(a),PB(a),ZB(a),OB(a),MB(a),FB(a),hu(a)]})),zB=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(Fc){o(Fc)}}function s(e){try{l(i.throw(e))}catch(Fc){o(Fc)}}function l(e){e.done?r(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))},jB="__LIST_IGNORE_"+Date.now()+"__",VB=function(e,t){var n=e.fileList,i=e.defaultFileList,r=e.onRemove,o=e.showUploadList,a=void 0===o||o,s=e.listType,l=void 0===s?"text":s,c=e.onPreview,u=e.onDownload,d=e.onChange,h=e.onDrop,f=e.previewFile,p=e.disabled,g=e.locale,m=e.iconRender,y=e.isImageUrl,b=e.progress,C=e.prefixCls,S=e.className,w=e.type,x=void 0===w?"select":w,T=e.children,I=e.style,D=e.itemRender,L=e.maxCount,O=e.data,R=void 0===O?{}:O,A=e.multiple,M=void 0!==A&&A,P=e.action,Z=void 0===P?"":P,F=e.accept,B=void 0===F?"":F,H=e.supportServerRender,z=void 0===H||H,j=v.useContext(Ia),V=null!==p&&void 0!==p?p:j,W=Sf(i||[],{value:n,postState:function(e){return null!==e&&void 0!==e?e:[]}}),U=(0,k.Z)(W,2),G=U[0],K=U[1],Y=v.useState("drop"),q=(0,k.Z)(Y,2),$=q[0],X=q[1],Q=v.useRef(null);v.useMemo((function(){var e=Date.now();(n||[]).forEach((function(t,n){t.uid||Object.isFrozen(t)||(t.uid="__AUTO__"+e+"_"+n+"__")}))}),[n]);var J=function(e,t,n){var i=(0,_.Z)(t);1===L?i=i.slice(-1):L&&(i=i.slice(0,L)),(0,kl.flushSync)((function(){K(i)}));var r={file:e,fileList:i};n&&(r.event=n),null===d||void 0===d||d(r)},ee=function(e){var t=e.filter((function(e){return!e.file[jB]}));if(t.length){var n=t.map((function(e){return BF(e.file)})),i=(0,_.Z)(G);n.forEach((function(e){i=HF(e,i)})),n.forEach((function(e,n){var r=e;if(t[n].parsedFile)e.status="uploading";else{var o,a=e.originFileObj;try{o=new File([a],a.name,{type:a.type})}catch(Fc){(o=new Blob([a],{type:a.type})).name=a.name,o.lastModifiedDate=new Date,o.lastModified=(new Date).getTime()}o.uid=e.uid,r=o}J(r,i)}))}},te=function(e,t,n){try{"string"===typeof e&&(e=JSON.parse(e))}catch(Fc){}if(zF(t,G)){var i=BF(t);i.status="done",i.percent=100,i.response=e,i.xhr=n;var r=HF(i,G);J(i,r)}},ne=function(e,t){if(zF(t,G)){var n=BF(t);n.status="uploading",n.percent=e.percent;var i=HF(n,G);J(n,i,e)}},ie=function(e,t,n){if(zF(n,G)){var i=BF(n);i.error=e,i.response=t,i.status="error";var r=HF(i,G);J(i,r)}},re=function(e){var t;Promise.resolve("function"===typeof r?r(e):r).then((function(n){var i;if(!1!==n){var r=function(e,t){var n=void 0!==e.uid?"uid":"name",i=t.filter((function(t){return t[n]!==e[n]}));return i.length===t.length?null:i}(e,G);r&&(t=Zt(Zt({},e),{status:"removed"}),null===G||void 0===G||G.forEach((function(e){var n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(i=Q.current)||void 0===i||i.abort(t),J(t,r))}}))},oe=function(e){X(e.type),"drop"===e.type&&(null===h||void 0===h||h(e))};v.useImperativeHandle(t,(function(){return{onBatchStart:ee,onSuccess:te,onProgress:ne,onError:ie,fileList:G,upload:Q.current}}));var ae=v.useContext(wa),se=ae.getPrefixCls,le=ae.direction,ce=se("upload",C),ue=Zt(Zt({onBatchStart:ee,onError:ie,onProgress:ne,onSuccess:te},e),{data:R,multiple:M,action:Z,accept:B,supportServerRender:z,prefixCls:ce,disabled:V,beforeUpload:function(t,n){return zB(void 0,void 0,void 0,(0,E.Z)().mark((function i(){var r,o,a,s;return(0,E.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(r=e.beforeUpload,o=e.transformFile,a=t,!r){i.next=13;break}return i.next=5,r(t,n);case 5:if(!1!==(s=i.sent)){i.next=8;break}return i.abrupt("return",!1);case 8:if(delete t[jB],s!==jB){i.next=12;break}return Object.defineProperty(t,jB,{value:!0,configurable:!0}),i.abrupt("return",!1);case 12:"object"===(0,Bt.Z)(s)&&s&&(a=s);case 13:if(!o){i.next=17;break}return i.next=16,o(a);case 16:a=i.sent;case 17:return i.abrupt("return",a);case 18:case"end":return i.stop()}}),i)})))},onChange:void 0});delete ue.className,delete ue.style,T&&!V||delete ue.id;var de=HB(ce),he=(0,k.Z)(de,2),fe=he[0],pe=he[1],ge=function(e,t){return a?v.createElement(So,{componentName:"Upload",defaultLocale:vo.Upload},(function(n){var i="boolean"===typeof a?{}:a,r=i.showRemoveIcon,o=i.showPreviewIcon,s=i.showDownloadIcon,d=i.removeIcon,h=i.previewIcon,p=i.downloadIcon;return v.createElement(DB,{prefixCls:ce,listType:l,items:G,previewFile:f,onPreview:c,onDownload:u,onRemove:re,showRemoveIcon:!V&&r,showPreviewIcon:o,showDownloadIcon:s,removeIcon:d,previewIcon:h,downloadIcon:p,iconRender:m,locale:Zt(Zt({},n),g),isImageUrl:y,progress:b,appendAction:e,appendActionVisible:t,itemRender:D})})):e},ve=(0,N.Z)({},ce+"-rtl","rtl"===le);if("drag"===x){var me,ye=Ja()(ce,(me={},(0,N.Z)(me,ce+"-drag",!0),(0,N.Z)(me,ce+"-drag-uploading",G.some((function(e){return"uploading"===e.status}))),(0,N.Z)(me,ce+"-drag-hover","dragover"===$),(0,N.Z)(me,ce+"-disabled",V),(0,N.Z)(me,ce+"-rtl","rtl"===le),me),pe);return fe(v.createElement("span",{className:Ja()(ce+"-wrapper",ve,S,pe)},v.createElement("div",{className:ye,onDrop:oe,onDragOver:oe,onDragLeave:oe,style:I},v.createElement(IF,Zt({},ue,{ref:Q,className:ce+"-btn"}),v.createElement("div",{className:ce+"-drag-container"},T))),ge()))}var _e,be=Ja()(ce,ce+"-select",(0,N.Z)({},ce+"-disabled",V)),Ce=(_e=T?void 0:{display:"none"},v.createElement("div",{className:be,style:_e},v.createElement(IF,Zt({},ue,{ref:Q}))));return fe("picture-card"===l?v.createElement("span",{className:Ja()(ce+"-wrapper",ce+"-picture-card-wrapper",ve,S,pe)},ge(Ce,!!T)):v.createElement("span",{className:Ja()(ce+"-wrapper",ve,S,pe)},Ce,ge()))};var WB=v.forwardRef(VB),UB=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},GB=v.forwardRef((function(e,t){var n=e.style,i=e.height,r=UB(e,["style","height"]);return v.createElement(WB,Zt({ref:t},r,{type:"drag",style:Zt(Zt({},n),{height:i})}))}));var KB=GB,YB=WB;YB.Dragger=KB,YB.LIST_IGNORE=jB;var qB=YB,$B=ip.useForm,XB=Zy.TextArea,QB=sE.Text,JB=sE.Link,eH=(0,v.forwardRef)((function(e,t){var n=e.deviceServersOptions,i=e.onFinish,r=$B(),o=(0,k.Z)(r,1)[0],a=(0,v.useState)(!1),s=(0,k.Z)(a,2),l=s[0],c=s[1],u=(0,v.useState)(!1),d=(0,k.Z)(u,2),h=d[0],f=d[1],p=Zk({isAll:!0,platform:"\u672c\u5730"}).data;(0,v.useImperativeHandle)(t,(function(){return{open:function(){f(!0)}}}),[o]);var g=(0,v.useCallback)((function(){o.resetFields(),f(!1)}),[o]),m={name:"file",accept:".xlsx",action:"/api/v1/device/upload-validated",headers:{"x-token":DS()}};return(0,ES.jsx)(jM,{title:"\u521b\u5efa\u8bbe\u5907",placement:"right",open:h,width:550,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:g}),onClose:g,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:l,disabled:l,onClick:function(){o.validateFields().then((function(e){if("1"===e.type)c(!0),function(e){return kk({url:"/api/v1/device",method:"post",data:e})}({name:e.name,product_id:e.product_id,driver_instance_id:e.driver_instance_id,description:e.description}).then((function(e){e.success?(qp.success("\u6dfb\u52a0\u6210\u529f"),g(),i()):qp.error(e.errorMsg)})).finally((function(){c(!1)}));else{var t=new FormData,n=e.file;t.append("file",n.file.originFileObj),console.log("values",e),c(!0),function(e,t){var n=t.product_id,i=t.driver_instance_id,r=[];return n&&r.push("product_id=".concat(n)),i&&r.push("driver_instance_id=".concat(i)),kk({url:"/api/v1/devices/import?".concat(r.join("&")),method:"post",data:e})}(t,{product_id:e.product_id,driver_instance_id:e.driver_instance_id}).then((function(e){e.success?(qp.success("\u6279\u91cf\u6dfb\u52a0\u6210\u529f"),g(),i()):qp.error(e.errorMsg)})).finally((function(){c(!1)}))}}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:g,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{form:o,layout:"vertical",children:[(0,ES.jsx)(ip.Item,{label:"\u6dfb\u52a0\u8bbe\u5907\u65b9\u5f0f",name:"type",initialValue:"1",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6dfb\u52a0\u8bbe\u5907\u65b9\u5f0f"}],children:(0,ES.jsx)(cO.Group,{optionType:"button",buttonStyle:"solid",options:[{label:"\u5355\u4e2a\u8bbe\u5907",value:"1"},{label:"\u6279\u91cf\u6dfb\u52a0",value:"2"}]})}),(0,ES.jsx)(ip.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.type!==t.type},children:function(e){return"1"===(0,e.getFieldValue)("type")?(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(ip.Item,{label:"\u8bbe\u5907\u540d\u79f0",name:"name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8bbe\u5907\u540d\u79f0"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u8bbe\u5907\u540d\u79f0"})}),(0,ES.jsx)(ip.Item,{label:"\u6240\u5c5e\u4ea7\u54c1",name:"product_id",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6240\u5c5e\u4ea7\u54c1"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9\u6240\u5c5e\u4ea7\u54c1",options:p.map((function(e){return{label:e.name,value:e.id}}))})}),(0,ES.jsx)(ip.Item,{label:"\u5173\u8054\u9a71\u52a8",name:"driver_instance_id",children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9\u5173\u8054\u9a71\u52a8",options:n.map((function(e){return{label:e.name,value:e.id}}))})}),(0,ES.jsx)(ip.Item,{label:"\u8bbe\u5907\u63cf\u8ff0",name:"description",children:(0,ES.jsx)(XB,{placeholder:"\u8bf7\u8f93\u5165\u4ea7\u54c1\u63cf\u8ff0",rows:4})})]}):(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsxs)(ip.Item,{children:[(0,ES.jsx)(QB,{type:"secondary",children:"\u6279\u91cf\u6dfb\u52a0\u8bbe\u5907\u53ef\u5728\u6279\u6b21\u5217\u8868\u4e2d\u67e5\u8be2\u76f8\u5173\u8bb0\u5f55"}),(0,ES.jsxs)("div",{children:[(0,ES.jsx)(QB,{type:"secondary",className:"mr5",children:"\u683c\u5f0f.xlsx \u6700\u59272M\uff0c\u5355\u6b21500\u4e2a\u8bbe\u5907"}),(0,ES.jsx)(JB,{onClick:function(){qp.loading({content:"\u4e0b\u8f7d\u4e2d, \u8bf7\u7a0d\u540e"}),wk({url:"/api/v1/devices/import-template",responseType:"blob"}).then((function(e){var t,n=window.decodeURI((null===(t=e.headers["content-disposition"])||void 0===t?void 0:t.split("=")[1])||"");!function(e,t){var n=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),i=URL.createObjectURL(n),r=document.createElement("a");r.href=i,r.download=t||"\u6a21\u677f\u6587\u4ef6",r.style.display="none",r.click(),URL.revokeObjectURL(i)}(e.data,n)}))},children:"\u6a21\u677f\u4e0b\u8f7d"})]})]}),(0,ES.jsx)(ip.Item,{label:"\u4e0a\u4f20\u8bbe\u5907\u8868",name:"file",rules:[{required:!0,message:"\u8bf7\u4e0a\u4f20\u6587\u4ef6"}],children:(0,ES.jsx)(qB,(0,Ft.Z)((0,Ft.Z)({},m),{},{onChange:function(e){var t,n;(console.log(e),"done"===e.file.status)?null!==(t=e.file.response)&&void 0!==t&&t.success?qp.success("\u6587\u4ef6\u4e0a\u4f20\u6210\u529f"):(o.resetFields(["file"]),qp.error("".concat((null===(n=e.file.response)||void 0===n?void 0:n.errorMsg)||"\u7cfb\u7edf\u9519\u8bef",", \u8bf7\u91cd\u65b0\u4e0a\u4f20"))):"error"===e.file.status&&qp.error("\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25")},children:(0,ES.jsx)(JB,{children:"\u4e0a\u4f20\u6587\u4ef6"})}))}),(0,ES.jsx)(ip.Item,{label:"\u6240\u5c5e\u4ea7\u54c1",name:"product_id",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6240\u5c5e\u4ea7\u54c1"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9\u6240\u5c5e\u4ea7\u54c1",options:p.map((function(e){return{label:e.name,value:e.id}}))})}),(0,ES.jsx)(ip.Item,{label:"\u5173\u8054\u9a71\u52a8",name:"driver_instance_id",children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9\u5173\u8054\u9a71\u52a8",options:n.map((function(e){return{label:e.name,value:e.id}}))})})]})}})]})})})),tH=ip.useForm,nH=Zy.TextArea,iH=(0,v.forwardRef)((function(e,t){var n=e.onFinish,i=tH(),r=(0,k.Z)(i,1)[0],o=(0,v.useState)(),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useState)(!1),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=(0,v.useCallback)((function(){r.resetFields(),m(!1)}),[r]);return(0,v.useImperativeHandle)(t,(function(){return{open:function(e){l(e),m(!0),e&&r.setFieldsValue(e)}}}),[r]),(0,ES.jsx)(jM,{title:"\u7f16\u8f91\u8bbe\u5907",placement:"right",open:g,width:550,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:y}),onClose:y,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:d,disabled:d,onClick:function(){r.validateFields().then((function(e){h(!0),function(e){return kk({url:"/api/v1/device/".concat(e.id),method:"put",data:e})}({id:null===s||void 0===s?void 0:s.id,description:null===e||void 0===e?void 0:e.description}).then((function(e){e.success?(qp.success("\u7f16\u8f91\u6210\u529f"),y(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:y,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{form:r,layout:"vertical",children:[(0,ES.jsx)(ip.Item,{label:"\u8bbe\u5907\u540d\u79f0",name:"name",children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u9a71\u52a8\u540d\u79f0",disabled:!0})}),(0,ES.jsx)(ip.Item,{label:"\u8bbe\u5907\u72b6\u6001",name:"status",children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u5bb9\u5668\u540d\u79f0",disabled:!0})}),(0,ES.jsx)(ip.Item,{label:"\u5e73\u53f0",name:"platform",children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u534f\u8bae",disabled:!0})}),(0,ES.jsx)(ip.Item,{label:"\u5173\u8054\u9a71\u52a8",name:"driver_service_name",children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u9a71\u52a8\u6807\u8bc6",disabled:!0})}),(0,ES.jsx)(ip.Item,{label:"\u63cf\u8ff0",name:"description",children:(0,ES.jsx)(nH,{placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0",rows:4})})]})})})),rH=ip.useForm,oH=(0,v.forwardRef)((function(e,t){var n=e.device_ids,i=e.onFinish,r=rH(),o=(0,k.Z)(r,1)[0],a=(0,v.useState)(!1),s=(0,k.Z)(a,2),l=s[0],c=s[1],u=Pk({}).data,d=(0,v.useCallback)((function(){o.resetFields(),c(!1)}),[o]);return(0,v.useImperativeHandle)(t,(function(){return{open:function(){c(!0)}}}),[]),(0,ES.jsx)(gm,{title:"\u6279\u91cf\u7ed1\u5b9a",maskClosable:!1,open:l,destroyOnClose:!0,cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a",onOk:function(){o.validateFields().then((function(e){(function(e){return kk({url:"/api/v1/devices/bind-driver",method:"put",data:e})})({device_ids:n,driver_instance_id:e.driver_instance_id}).then((function(e){e.success?(qp.success("\u6279\u91cf\u7ed1\u5b9a\u6210\u529f"),d(),null===i||void 0===i||i()):qp.error(e.errorMsg)}))}))},onCancel:function(){d()},children:(0,ES.jsx)(ip,{form:o,layout:"vertical",children:(0,ES.jsx)(ip.Item,{label:"\u5173\u8054\u9a71\u52a8",name:"driver_instance_id",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5173\u8054\u9a71\u52a8"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9\u5173\u8054\u9a71\u52a8",options:u.map((function(e){return{label:e.name,value:e.id}}))})})})})})),aH=sE.Text,sH=qp.useMessage,lH=function(){var e=Pt(),t=(0,k.Z)(e,1)[0];(0,v.useEffect)((function(){var e;t.has("create")&&(null===(e=o.current)||void 0===e||e.open())}),[]);var i=lt(),r=ut();console.log(null===r||void 0===r?void 0:r.id);var o=(0,v.useRef)(null),a=(0,v.useRef)(null),s=(0,v.useRef)(null),l=sH(),c=(0,k.Z)(l,2),u=c[0],d=c[1],h=(0,v.useState)([]),f=(0,k.Z)(h,2),p=f[0],g=f[1],m=TM({onRequest:function(e){return Dk((0,Ft.Z)((0,Ft.Z)({},e),{},{product_id:e.product_id||r.id}))}}),y=m.loading,b=m.form,C=m.dataSource,S=m.pagination,w=m.reload,x=m.search,E=m.reset,T=Pk({platform:"\u672c\u5730"}).data,N=Ak().data,I=Mk().data,D=Zk({isAll:!0}).data;return(0,ES.jsxs)(ES.Fragment,{children:[d,(0,ES.jsx)(eH,{ref:o,deviceServersOptions:T,onFinish:w}),(0,ES.jsx)(iH,{ref:a,onFinish:w}),(0,ES.jsx)(oH,{ref:s,device_ids:p,onFinish:function(){g([]),w()}}),(0,ES.jsx)(kM,{title:"\u8bbe\u5907\u7ba1\u7406",describe:"\u7269\u7406\u8bbe\u5907\u8981\u8fde\u63a5\u5230\u5e73\u53f0\uff0c\u9700\u8981\u5148\u5728\u5e73\u53f0\u521b\u5efa\u8bbe\u5907(\u652f\u6301\u5355\u4e2a\u6216\u6279\u91cf\u5bfc\u5165\u521b\u5efa)\u3002\u8bbe\u5907\u5217\u8868\u5305\u542b\u81ea\u4e3b\u521b\u5efa\u7684\u8bbe\u5907\u548c\u4e91\u5e73\u53f0\u540c\u6b65\u7684\u8bbe\u5907\uff0c\u540c\u65f6\u652f\u6301\u7075\u6d3b\u7684\u641c\u7d22\u3002",background:n(64669)}),(0,ES.jsx)(AT,{className:"m20",size:"small",children:(0,ES.jsxs)(ip,{layout:"inline",form:b,initialValues:{product_id:(null===r||void 0===r?void 0:r.id)||"",platform:"",drive_instance_id:"",status:"",name:""},children:[(0,ES.jsx)(ip.Item,{name:"product_id",children:(0,ES.jsx)(NI,{style:{width:180},placeholder:"\u4ea7\u54c1\u8303\u56f4",options:[{label:"\u4ea7\u54c1\u8303\u56f4 (\u5168\u90e8)",value:""}].concat((0,_.Z)(D.map((function(e){return{label:e.name,value:e.id}}))))})},"product_id"),(0,ES.jsx)(ip.Item,{name:"platform",children:(0,ES.jsx)(NI,{style:{width:180},placeholder:"\u5e73\u53f0",options:[{label:"\u5e73\u53f0 (\u5168\u90e8)",value:""}].concat((0,_.Z)(I.map((function(e){return{label:e,value:e}}))))})},"platform"),(0,ES.jsx)(ip.Item,{name:"drive_instance_id",children:(0,ES.jsx)(NI,{style:{width:180},placeholder:"\u9a71\u52a8",options:[{label:"\u9a71\u52a8 (\u5168\u90e8)",value:""}].concat((0,_.Z)(T.map((function(e){return{label:e.name,value:e.id}}))))})},"drive_instance_id"),(0,ES.jsx)(ip.Item,{name:"status",children:(0,ES.jsx)(NI,{style:{width:180},placeholder:"\u72b6\u6001",options:[{label:"\u72b6\u6001 (\u5168\u90e8)",value:""}].concat((0,_.Z)(N.map((function(e){return{label:e,value:e}}))))})},"status"),(0,ES.jsx)(ip.Item,{name:"name",children:(0,ES.jsx)(Zy,{placeholder:"\u8bbe\u5907\u540d\u79f0"})},"name"),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"primary",onClick:x,children:"\u67e5\u8be2"})}),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"default",onClick:E,children:"\u91cd\u7f6e"})})]})}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsxs)(Vy,{className:"mb15 justify-space-between",children:[(0,ES.jsx)("div",{children:(0,ES.jsxs)(Jg,{type:"primary",onClick:function(){var e;null===(e=o.current)||void 0===e||e.open()},children:[(0,ES.jsx)(RE,{}),"\u6dfb\u52a0\u8bbe\u5907"]})}),(0,ES.jsxs)("div",{children:[(0,ES.jsxs)(Jg,{className:"ml10",disabled:!(null!==p&&void 0!==p&&p.length),onClick:function(){var e;null===(e=s.current)||void 0===e||e.open()},children:[(0,ES.jsx)(uF,{}),"\u6279\u91cf\u9a71\u52a8\u7ed1\u5b9a"]}),(0,ES.jsx)(tM,{title:"\u786e\u5b9a\u89e3\u7ed1\u5f53\u524d\u52fe\u9009\u7684\u8bbe\u5907\u5417?",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",disabled:!(null!==p&&void 0!==p&&p.length),onConfirm:function(){(function(e){return kk({url:"/api/v1/devices/unbind-driver",method:"put",data:e})})({device_ids:p}).then((function(e){e.success?(u.open({type:"success",content:"\u6279\u91cf\u89e3\u7ed1\u6210\u529f"}),g([]),w()):u.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsxs)(Jg,{className:"ml10",disabled:!(null!==p&&void 0!==p&&p.length),children:[(0,ES.jsx)(fF,{}),"\u6279\u91cf\u9a71\u52a8\u89e3\u7ed1"]})}),(0,ES.jsx)(tM,{title:"\u786e\u5b9a\u5220\u9664\u5f53\u524d\u52fe\u9009\u7684\u8bbe\u5907\u5417?",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",disabled:!(null!==p&&void 0!==p&&p.length),onConfirm:function(){(function(e){return kk({url:"/api/v1/devices",method:"delete",data:e})})({device_ids:p}).then((function(e){e.success?(u.open({type:"success",content:"\u6279\u91cf\u5220\u9664\u6210\u529f"}),g([]),w()):u.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsxs)(Jg,{className:"ml10",disabled:!(null!==p&&void 0!==p&&p.length),children:[(0,ES.jsx)(vF,{}),"\u6279\u91cf\u5220\u9664"]})}),(0,ES.jsxs)(Jg,{className:"ml10",onClick:function(){w()},children:[(0,ES.jsx)(rM,{}),"\u5237\u65b0"]})]})]}),(0,ES.jsx)(YA,{loading:y,dataSource:C,pagination:S,bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u8bbe\u5907ID",key:"id",dataIndex:"id"},{title:"\u8bbe\u5907\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u6240\u5c5e\u4ea7\u54c1",key:"product_name",dataIndex:"product_name"},{title:"\u8bbe\u5907\u72b6\u6001",key:"status",dataIndex:"status",render:function(e,t){return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(sF,{color:{"\u5728\u7ebf":"green","\u79bb\u7ebf":"gray","\u7981\u7528":"red","\u672a\u6fc0\u6d3b":"orange"}[t.status]||"gray"}),(0,ES.jsx)(aH,{className:"ml5",children:e||"\u672a\u77e5"})]})}},{title:"\u5e73\u53f0",key:"platform",dataIndex:"platform"},{title:"\u5173\u8054\u9a71\u52a8",key:"driver_service_name",dataIndex:"driver_service_name"},{title:"\u521b\u5efa\u65f6\u95f4",key:"created",dataIndex:"created",render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u6700\u8fd1\u5728\u7ebf\u65f6\u95f4",key:"last_online_time",dataIndex:"last_online_time",render:function(e){return 0===e?"-":ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",render:function(e,t){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(aH,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(sE.Link,{onClick:function(){i("/gateway/device/detail/".concat(null===t||void 0===t?void 0:t.id))},children:"\u8be6\u60c5"}),(0,ES.jsx)(sE.Link,{onClick:function(){var e;null===(e=a.current)||void 0===e||e.open(t)},children:"\u7f16\u8f91"}),(0,ES.jsx)(tM,{title:"\u6b64\u64cd\u4f5c\u5c06\u6c38\u4e45\u5220\u9664\u8be5\u6761\u8bb0\u5f55, \u662f\u5426\u7ee7\u7eed?",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){(function(e){return kk({url:"/api/v1/device/".concat(e),method:"delete"})})(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(u.open({type:"success",content:"\u5220\u9664\u6210\u529f"}),w()):u.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}],rowSelection:{type:"checkbox",onChange:function(e){g(e)}}})]})]})},cH=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],uH=v.forwardRef((function(e,t){var n,i=e.prefixCls,r=void 0===i?"rc-switch":i,o=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,h=e.onClick,f=e.onChange,p=e.onKeyDown,g=Ai(e,cH),m=Sf(!1,{value:a,defaultValue:s}),y=(0,k.Z)(m,2),_=y[0],b=y[1];function C(e,t){var n=_;return l||(b(n=e),null===f||void 0===f||f(n,t)),n}var S=Ja()(r,o,(n={},(0,N.Z)(n,"".concat(r,"-checked"),_),(0,N.Z)(n,"".concat(r,"-disabled"),l),n));return v.createElement("button",Zt({},g,{type:"button",role:"switch","aria-checked":_,disabled:l,className:S,ref:t,onKeyDown:function(e){e.which===vv.LEFT?C(!1,e):e.which===vv.RIGHT&&C(!0,e),null===p||void 0===p||p(e)},onClick:function(e){var t=C(!_,e);null===h||void 0===h||h(t,e)}}),c,v.createElement("span",{className:"".concat(r,"-inner")},v.createElement("span",{className:"".concat(r,"-inner-checked")},u),v.createElement("span",{className:"".concat(r,"-inner-unchecked")},d)))}));uH.displayName="Switch";var dH=uH,hH=function(e){var t,n,i,r,o,a=e.componentCls,s=a+"-inner";return(0,N.Z)({},a,(0,N.Z)({},"&"+a+"-small",(o={minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:e.switchHeightSM+"px"},(0,N.Z)(o,a+"-inner",(t={},(0,N.Z)(t,s+"-checked",{marginInlineStart:"calc("+e.switchInnerMarginMinSM+"px - 100% + "+(e.switchPinSizeSM+2*e.switchPadding)+"px)",marginInlineEnd:"calc("+e.switchInnerMarginMaxSM+"px + 100% - "+(e.switchPinSizeSM+2*e.switchPadding)+"px)"}),(0,N.Z)(t,s+"-unchecked",{marginTop:-e.switchHeightSM,marginInlineStart:e.switchInnerMarginMaxSM,marginInlineEnd:e.switchInnerMarginMinSM}),t)),(0,N.Z)(o,a+"-handle",{width:e.switchPinSizeSM,height:e.switchPinSizeSM}),(0,N.Z)(o,a+"-loading-icon",{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize}),(0,N.Z)(o,"&"+a+"-checked",(i={},(0,N.Z)(i,a+"-inner",(n={},(0,N.Z)(n,s+"-checked",{marginInlineStart:e.switchInnerMarginMinSM,marginInlineEnd:e.switchInnerMarginMaxSM}),(0,N.Z)(n,s+"-unchecked",{marginInlineStart:"calc("+e.switchInnerMarginMaxSM+"px + 100% - "+(e.switchPinSizeSM+2*e.switchPadding)+"px)",marginInlineEnd:"calc("+e.switchInnerMarginMinSM+"px - 100% + "+(e.switchPinSizeSM+2*e.switchPadding)+"px)"}),n)),(0,N.Z)(i,a+"-handle",{insetInlineStart:"calc(100% - "+(e.switchPinSizeSM+e.switchPadding)+"px)"}),i)),(0,N.Z)(o,"&:not("+a+"-disabled):active",(r={},(0,N.Z)(r,"&:not("+a+"-checked) "+s,(0,N.Z)({},s+"-unchecked",{marginInlineStart:e.switchInnerMarginMaxSM+e.marginXXS/2,marginInlineEnd:e.switchInnerMarginMinSM-e.marginXXS/2})),(0,N.Z)(r,"&"+a+"-checked "+s,(0,N.Z)({},s+"-checked",{marginInlineStart:e.switchInnerMarginMinSM-e.marginXXS/2,marginInlineEnd:e.switchInnerMarginMaxSM+e.marginXXS/2})),r)),o)))},fH=function(e){var t,n=e.componentCls;return(0,N.Z)({},n,(t={},(0,N.Z)(t,n+"-loading-icon"+e.iconCls,{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"}),(0,N.Z)(t,"&"+n+"-checked "+n+"-loading-icon",{color:e.switchColor}),t))},pH=function(e){var t,n,i=e.componentCls,r=i+"-handle";return(0,N.Z)({},i,(n={},(0,N.Z)(n,r,{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:"all "+e.switchDuration+" ease-in-out","&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:"all "+e.switchDuration+" ease-in-out",content:'""'}}),(0,N.Z)(n,"&"+i+"-checked "+r,{insetInlineStart:"calc(100% - "+(e.switchPinSize+e.switchPadding)+"px)"}),(0,N.Z)(n,"&:not("+i+"-disabled):active",(t={},(0,N.Z)(t,r+"::before",{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0}),(0,N.Z)(t,"&"+i+"-checked "+r+"::before",{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}),t)),n))},gH=function(e){var t,n,i,r,o=e.componentCls,a=o+"-inner";return(0,N.Z)({},o,(r={},(0,N.Z)(r,a,(t={display:"block",overflow:"hidden",borderRadius:100},(0,N.Z)(t,a+"-checked, "+a+"-unchecked",{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:"margin-inline-start "+e.switchDuration+" ease-in-out, margin-inline-end "+e.switchDuration+" ease-in-out",pointerEvents:"none"}),(0,N.Z)(t,a+"-checked",{marginInlineStart:"calc("+e.switchInnerMarginMin+"px - 100% + "+(e.switchPinSize+2*e.switchPadding)+"px)",marginInlineEnd:"calc("+e.switchInnerMarginMax+"px + 100% - "+(e.switchPinSize+2*e.switchPadding)+"px)"}),(0,N.Z)(t,a+"-unchecked",{marginTop:-e.switchHeight,marginInlineStart:e.switchInnerMarginMax,marginInlineEnd:e.switchInnerMarginMin}),t)),(0,N.Z)(r,"&"+o+"-checked "+a,(n={},(0,N.Z)(n,a+"-checked",{marginInlineStart:e.switchInnerMarginMin,marginInlineEnd:e.switchInnerMarginMax}),(0,N.Z)(n,a+"-unchecked",{marginInlineStart:"calc("+e.switchInnerMarginMax+"px + 100% - "+(e.switchPinSize+2*e.switchPadding)+"px)",marginInlineEnd:"calc("+e.switchInnerMarginMin+"px - 100% + "+(e.switchPinSize+2*e.switchPadding)+"px)"}),n)),(0,N.Z)(r,"&:not("+o+"-disabled):active",(i={},(0,N.Z)(i,"&:not("+o+"-checked) "+a,(0,N.Z)({},a+"-unchecked",{marginInlineStart:e.switchInnerMarginMax+2*e.switchPadding,marginInlineEnd:e.switchInnerMarginMin-2*e.switchPadding})),(0,N.Z)(i,"&"+o+"-checked "+a,(0,N.Z)({},a+"-checked",{marginInlineStart:e.switchInnerMarginMin-2*e.switchPadding,marginInlineEnd:e.switchInnerMarginMax+2*e.switchPadding})),i)),r))},vH=function(e){var t,n=e.componentCls;return(0,N.Z)({},n,Zt(Zt(Zt(Zt({},Fa(e)),(0,N.Z)({position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:e.switchHeight+"px",verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:"all "+e.motionDurationMid,userSelect:"none"},"&:hover:not("+n+"-disabled)",{background:e.colorTextTertiary})),ja(e)),(t={},(0,N.Z)(t,"&"+n+"-checked",(0,N.Z)({background:e.switchColor},"&:hover:not("+n+"-disabled)",{background:e.colorPrimaryHover})),(0,N.Z)(t,"&"+n+"-loading, &"+n+"-disabled",{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}}),(0,N.Z)(t,"&"+n+"-rtl",{direction:"rtl"}),t)))},mH=hs("Switch",(function(e){var t=e.fontSize*e.lineHeight,n=e.controlHeight/2,i=t-4,r=n-4,o=cs(e,{switchMinWidth:2*i+8,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:i/2,switchInnerMarginMax:i+2+4,switchPadding:2,switchPinSize:i,switchBg:e.colorBgContainer,switchMinWidthSM:2*r+4,switchHeightSM:n,switchInnerMarginMinSM:r/2,switchInnerMarginMaxSM:r+2+4,switchPinSizeSM:r,switchHandleShadow:"0 2px 4px 0 "+new oa("#00230b").setAlpha(.2).toRgbString(),switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:"rgba(0, 0, 0, "+e.opacityLoading+")",switchHandleActiveInset:"-30%"});return[vH(o),gH(o),pH(o),fH(o),hH(o)]})),yH=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},_H=v.forwardRef((function(e,t){var n,i=e.prefixCls,r=e.size,o=e.disabled,a=e.loading,s=e.className,l=void 0===s?"":s,c=yH(e,["prefixCls","size","disabled","loading","className"]),u=v.useContext(wa),d=u.getPrefixCls,h=u.direction,f=v.useContext(Pa),p=v.useContext(Ia),g=(null!==o&&void 0!==o?o:p)||a,m=d("switch",i),y=v.createElement("div",{className:m+"-handle"},a&&v.createElement(Fu,{className:m+"-loading-icon"})),_=mH(m),b=(0,k.Z)(_,2),C=b[0],S=b[1],w=Ja()((n={},(0,N.Z)(n,m+"-small","small"===(r||f)),(0,N.Z)(n,m+"-loading",a),(0,N.Z)(n,m+"-rtl","rtl"===h),n),l,S);return C(v.createElement(vg,{insertExtraNode:!0},v.createElement(dH,Zt({},c,{prefixCls:m,className:w,disabled:g,ref:t,loadingIcon:y}))))}));_H.__ANT_SWITCH=!0;var bH=_H,CH=function(e){var t,n=e.componentCls,i=e.sizePaddingEdgeHorizontal,r=e.colorSplit,o=e.lineWidth;return(0,N.Z)({},n,Zt(Zt({},Fa(e)),(t={borderBlockStart:o+"px solid "+r,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:"0 "+e.dividerVerticalGutterMargin+"px",verticalAlign:"middle",borderTop:0,borderInlineStart:o+"px solid "+r},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:e.dividerHorizontalGutterMargin+"px 0"},"&-horizontal&-with-text":{display:"flex",margin:e.dividerHorizontalWithTextGutterMargin+"px 0",color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:"0 "+r,"&::before, &::after":{position:"relative",top:"50%",width:"50%",borderBlockStart:o+"px solid transparent",borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},"&-horizontal&-with-text-left":{"&::before":{top:"50%",width:"5%"},"&::after":{top:"50%",width:"95%"}},"&-horizontal&-with-text-right":{"&::before":{top:"50%",width:"95%"},"&::after":{top:"50%",width:"5%"}}},(0,N.Z)(t,n+"-inner-text",{display:"inline-block",padding:"0 1em"}),(0,N.Z)(t,"&-dashed",{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:o+"px 0 0"}),(0,N.Z)(t,"&-horizontal&-with-text&-dashed",{"&::before, &::after":{borderStyle:"dashed none none"}}),(0,N.Z)(t,"&-vertical&-dashed",{borderInlineStart:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0}),(0,N.Z)(t,"&-plain&-with-text",{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize}),(0,N.Z)(t,"&-horizontal&-with-text-left&-no-default-orientation-margin-left",(0,N.Z)({"&::before":{width:0},"&::after":{width:"100%"}},n+"-inner-text",{paddingInlineStart:i})),(0,N.Z)(t,"&-horizontal&-with-text-right&-no-default-orientation-margin-right",(0,N.Z)({"&::before":{width:"100%"},"&::after":{width:0}},n+"-inner-text",{paddingInlineEnd:i})),t)))},SH=hs("Divider",(function(e){var t=cs(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[CH(t)]}),{sizePaddingEdgeHorizontal:0}),wH=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},kH=function(e){var t,n=v.useContext(wa),i=n.getPrefixCls,r=n.direction,o=e.prefixCls,a=e.type,s=void 0===a?"horizontal":a,l=e.orientation,c=void 0===l?"center":l,u=e.orientationMargin,d=e.className,h=e.children,f=e.dashed,p=e.plain,g=wH(e,["prefixCls","type","orientation","orientationMargin","className","children","dashed","plain"]),m=i("divider",o),y=SH(m),_=(0,k.Z)(y,2),b=_[0],C=_[1],S=c.length>0?"-"+c:c,w=!!h,x="left"===c&&null!=u,E="right"===c&&null!=u,T=Ja()(m,C,m+"-"+s,(t={},(0,N.Z)(t,m+"-with-text",w),(0,N.Z)(t,m+"-with-text"+S,w),(0,N.Z)(t,m+"-dashed",!!f),(0,N.Z)(t,m+"-plain",!!p),(0,N.Z)(t,m+"-rtl","rtl"===r),(0,N.Z)(t,m+"-no-default-orientation-margin-left",x),(0,N.Z)(t,m+"-no-default-orientation-margin-right",E),t),d),I=Zt(Zt({},x&&{marginLeft:u}),E&&{marginRight:u});return b(v.createElement("div",Zt({className:T},g,{role:"separator"}),h&&"vertical"!==s&&v.createElement("span",{className:m+"-inner-text",style:I},h)))},xH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},EH=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:xH}))};EH.displayName="HistoryOutlined";var TH=v.forwardRef(EH),NH=n(54334),IH=n.n(NH),DH=n(14036),LH=n.n(DH),OH=n(39216),RH=n.n(OH),AH=n(34834),MH=n.n(AH),PH=n(70776),ZH=n.n(PH),FH=n(18808),BH=n.n(FH);ux().extend(BH()),ux().extend(ZH()),ux().extend(IH()),ux().extend(LH()),ux().extend(RH()),ux().extend(MH()),ux().extend((function(e,t){var n=t.prototype,i=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return i.bind(this)(t)}}));var HH={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},zH=function(e){return HH[e]||e.split("_")[0]},jH=function(){si(!1,"Not match any format. Please help to fire a issue about this.")},VH={getNow:function(){return ux()()},getFixedDate:function(e){return ux()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return ux()().locale(zH(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(zH(e)).weekday(0)},getWeek:function(e,t){return t.locale(zH(e)).week()},getShortWeekDays:function(e){return ux()().locale(zH(e)).localeData().weekdaysMin()},getShortMonths:function(e){return ux()().locale(zH(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(zH(e)).format(n)},parse:function(e,t,n){for(var i=zH(e),r=0;r<n.length;r+=1){var o=n[r],a=t;if(o.includes("wo")||o.includes("Wo")){for(var s=a.split("-")[0],l=a.split("-")[1],c=ux()(s,"YYYY").startOf("year").locale(i),u=0;u<=52;u+=1){var d=c.add(u,"week");if(d.format("Wo")===l)return d}return jH(),null}var h=ux()(a,o).locale(i);if(h.isValid())return h}return t&&jH(),null}}},WH=VH;var UH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},GH=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:UH}))};GH.displayName="CalendarOutlined";var KH=v.forwardRef(GH),YH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},qH=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:YH}))};qH.displayName="ClockCircleOutlined";var $H=v.forwardRef(qH),XH={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},QH=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:XH}))};QH.displayName="SwapRightOutlined";var JH=v.forwardRef(QH),ez=v.createContext({}),tz={visibility:"hidden"};var nz=function(e){var t=e.prefixCls,n=e.prevIcon,i=void 0===n?"\u2039":n,r=e.nextIcon,o=void 0===r?"\u203a":r,a=e.superPrevIcon,s=void 0===a?"\xab":a,l=e.superNextIcon,c=void 0===l?"\xbb":l,u=e.onSuperPrev,d=e.onSuperNext,h=e.onPrev,f=e.onNext,p=e.children,g=v.useContext(ez),m=g.hideNextBtn,y=g.hidePrevBtn;return v.createElement("div",{className:t},u&&v.createElement("button",{type:"button",onClick:u,tabIndex:-1,className:"".concat(t,"-super-prev-btn"),style:y?tz:{}},s),h&&v.createElement("button",{type:"button",onClick:h,tabIndex:-1,className:"".concat(t,"-prev-btn"),style:y?tz:{}},i),v.createElement("div",{className:"".concat(t,"-view")},p),f&&v.createElement("button",{type:"button",onClick:f,tabIndex:-1,className:"".concat(t,"-next-btn"),style:m?tz:{}},o),d&&v.createElement("button",{type:"button",onClick:d,tabIndex:-1,className:"".concat(t,"-super-next-btn"),style:m?tz:{}},c))};var iz=function(e){var t=e.prefixCls,n=e.generateConfig,i=e.viewDate,r=e.onPrevDecades,o=e.onNextDecades;if(v.useContext(ez).hideHeader)return null;var a="".concat(t,"-header"),s=n.getYear(i),l=Math.floor(s/_z)*_z,c=l+_z-1;return v.createElement(nz,Zt({},e,{prefixCls:a,onSuperPrev:r,onSuperNext:o}),l,"-",c)};function rz(e,t,n,i,r){var o=e.setHour(t,n);return o=e.setMinute(o,i),o=e.setSecond(o,r)}function oz(e,t,n){if(!n)return t;var i=t;return i=e.setHour(i,e.getHour(n)),i=e.setMinute(i,e.getMinute(n)),i=e.setSecond(i,e.getSecond(n))}function az(e,t){var n=e.getYear(t),i=e.getMonth(t)+1,r=e.getEndDate(e.getFixedDate("".concat(n,"-").concat(i,"-01"))),o=e.getDate(r),a=i<10?"0".concat(i):"".concat(i);return"".concat(n,"-").concat(a,"-").concat(o)}function sz(e){for(var t=e.prefixCls,n=e.disabledDate,i=e.onSelect,r=e.picker,o=e.rowNum,a=e.colNum,s=e.prefixColumn,l=e.rowClassName,c=e.baseDate,u=e.getCellClassName,d=e.getCellText,h=e.getCellNode,f=e.getCellDate,p=e.generateConfig,g=e.titleCell,m=e.headerCells,y=v.useContext(ez),_=y.onDateMouseEnter,b=y.onDateMouseLeave,C=y.mode,S="".concat(t,"-cell"),w=[],k=0;k<o;k+=1){for(var x=[],E=void 0,T=function(e){var t,o=f(c,k*a+e),l=Rz({cellDate:o,mode:C,disabledDate:n,generateConfig:p});0===e&&(E=o,s&&x.push(s(E)));var m=g&&g(o);x.push(v.createElement("td",{key:e,title:m,className:Ja()(S,(0,Ft.Z)((t={},(0,N.Z)(t,"".concat(S,"-disabled"),l),(0,N.Z)(t,"".concat(S,"-start"),1===d(o)||"year"===r&&Number(m)%10===0),(0,N.Z)(t,"".concat(S,"-end"),m===az(p,o)||"year"===r&&Number(m)%10===9),t),u(o))),onClick:function(){l||i(o)},onMouseEnter:function(){!l&&_&&_(o)},onMouseLeave:function(){!l&&b&&b(o)}},h?h(o):v.createElement("div",{className:"".concat(S,"-inner")},d(o))))},I=0;I<a;I+=1)T(I);w.push(v.createElement("tr",{key:k,className:l&&l(E)},x))}return v.createElement("div",{className:"".concat(t,"-body")},v.createElement("table",{className:"".concat(t,"-content")},m&&v.createElement("thead",null,v.createElement("tr",null,m)),v.createElement("tbody",null,w)))}var lz=function(e){var t=yz-1,n=e.prefixCls,i=e.viewDate,r=e.generateConfig,o="".concat(n,"-cell"),a=r.getYear(i),s=Math.floor(a/yz)*yz,l=Math.floor(a/_z)*_z,c=l+_z-1,u=r.setYear(i,l-Math.ceil((12*yz-_z)/2));return v.createElement(sz,Zt({},e,{rowNum:4,colNum:3,baseDate:u,getCellText:function(e){var n=r.getYear(e);return"".concat(n,"-").concat(n+t)},getCellClassName:function(e){var n,i=r.getYear(e),a=i+t;return n={},(0,N.Z)(n,"".concat(o,"-in-view"),l<=i&&a<=c),(0,N.Z)(n,"".concat(o,"-selected"),i===s),n},getCellDate:function(e,t){return r.addYear(e,t*yz)}}))},cz=new Map;function uz(e,t,n){if(cz.get(e)&&cancelAnimationFrame(cz.get(e)),n<=0)cz.set(e,requestAnimationFrame((function(){e.scrollTop=t})));else{var i=(t-e.scrollTop)/n*10;cz.set(e,requestAnimationFrame((function(){e.scrollTop+=i,e.scrollTop!==t&&uz(e,t,n-10)})))}}function dz(e,t){var n=t.onLeftRight,i=t.onCtrlLeftRight,r=t.onUpDown,o=t.onPageUpDown,a=t.onEnter,s=e.which,l=e.ctrlKey,c=e.metaKey;switch(s){case vv.LEFT:if(l||c){if(i)return i(-1),!0}else if(n)return n(-1),!0;break;case vv.RIGHT:if(l||c){if(i)return i(1),!0}else if(n)return n(1),!0;break;case vv.UP:if(r)return r(-1),!0;break;case vv.DOWN:if(r)return r(1),!0;break;case vv.PAGE_UP:if(o)return o(-1),!0;break;case vv.PAGE_DOWN:if(o)return o(1),!0;break;case vv.ENTER:if(a)return a(),!0}return!1}function hz(e,t,n,i){var r=e;if(!r)switch(t){case"time":r=i?"hh:mm:ss a":"HH:mm:ss";break;case"week":r="gggg-wo";break;case"month":r="YYYY-MM";break;case"quarter":r="YYYY-[Q]Q";break;case"year":r="YYYY";break;default:r=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return r}function fz(e,t,n){var i="time"===e?8:10,r="function"===typeof t?t(n.getNow()).length:t.length;return Math.max(i,r)+2}var pz=null,gz=new Set;var vz={year:function(e){return"month"===e||"date"===e?"year":e},month:function(e){return"date"===e?"month":e},quarter:function(e){return"month"===e||"date"===e?"quarter":e},week:function(e){return"date"===e?"week":e},time:null,date:null};function mz(e,t){return e.some((function(e){return e&&e.contains(t)}))}var yz=10,_z=10*yz;var bz=function(e){var t=e.prefixCls,n=e.onViewDateChange,i=e.generateConfig,r=e.viewDate,o=e.operationRef,a=e.onSelect,s=e.onPanelChange,l="".concat(t,"-decade-panel");o.current={onKeyDown:function(e){return dz(e,{onLeftRight:function(e){a(i.addYear(r,e*yz),"key")},onCtrlLeftRight:function(e){a(i.addYear(r,e*_z),"key")},onUpDown:function(e){a(i.addYear(r,e*yz*3),"key")},onEnter:function(){s("year",r)}})}};var c=function(e){var t=i.addYear(r,e*_z);n(t),s(null,t)};return v.createElement("div",{className:l},v.createElement(iz,Zt({},e,{prefixCls:t,onPrevDecades:function(){c(-1)},onNextDecades:function(){c(1)}})),v.createElement(lz,Zt({},e,{prefixCls:t,onSelect:function(e){a(e,"mouse"),s("year",e)}})))};function Cz(e,t){return!e&&!t||!(!e||!t)&&void 0}function Sz(e,t,n){var i=Cz(t,n);return"boolean"===typeof i?i:e.getYear(t)===e.getYear(n)}function wz(e,t){return Math.floor(e.getMonth(t)/3)+1}function kz(e,t,n){var i=Cz(t,n);return"boolean"===typeof i?i:Sz(e,t,n)&&wz(e,t)===wz(e,n)}function xz(e,t,n){var i=Cz(t,n);return"boolean"===typeof i?i:Sz(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function Ez(e,t,n){var i=Cz(t,n);return"boolean"===typeof i?i:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function Tz(e,t,n,i){var r=Cz(n,i);return"boolean"===typeof r?r:e.locale.getWeek(t,n)===e.locale.getWeek(t,i)}function Nz(e,t,n){return Ez(e,t,n)&&function(e,t,n){var i=Cz(t,n);return"boolean"===typeof i?i:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}(e,t,n)}function Iz(e,t,n,i){return!!(t&&n&&i)&&(!Ez(e,t,i)&&!Ez(e,n,i)&&e.isAfter(i,t)&&e.isAfter(n,i))}function Dz(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*i);case"quarter":case"month":return n.addYear(e,i);default:return n.addMonth(e,i)}}function Lz(e,t){var n=t.generateConfig,i=t.locale,r=t.format;return"function"===typeof r?r(e):n.locale.format(i.locale,e,r)}function Oz(e,t){var n=t.generateConfig,i=t.locale,r=t.formatList;return e&&"function"!==typeof r[0]?n.locale.parse(i.locale,e,r):null}function Rz(e){var t=e.cellDate,n=e.mode,i=e.disabledDate,r=e.generateConfig;if(!i)return!1;var o=function(e,n,o){for(var a=n;a<=o;){var s=void 0;switch(e){case"date":if(s=r.setDate(t,a),!i(s))return!1;break;case"month":if(!Rz({cellDate:s=r.setMonth(t,a),mode:"month",generateConfig:r,disabledDate:i}))return!1;break;case"year":if(!Rz({cellDate:s=r.setYear(t,a),mode:"year",generateConfig:r,disabledDate:i}))return!1}a+=1}return!0};switch(n){case"date":case"week":return i(t);case"month":return o("date",1,r.getDate(r.getEndDate(t)));case"quarter":var a=3*Math.floor(r.getMonth(t)/3);return o("month",a,a+2);case"year":return o("month",0,11);case"decade":var s=r.getYear(t),l=Math.floor(s/yz)*yz;return o("year",l,l+yz-1)}}var Az=function(e){if(v.useContext(ez).hideHeader)return null;var t=e.prefixCls,n=e.generateConfig,i=e.locale,r=e.value,o=e.format,a="".concat(t,"-header");return v.createElement(nz,{prefixCls:a},r?Lz(r,{locale:i,format:o,generateConfig:n}):"\xa0")};var Mz=function(e){var t=e.prefixCls,n=e.units,i=e.onSelect,r=e.value,o=e.active,a=e.hideDisabledOptions,s="".concat(t,"-cell"),l=v.useContext(ez).open,c=(0,v.useRef)(null),u=(0,v.useRef)(new Map),d=(0,v.useRef)();return(0,v.useLayoutEffect)((function(){var e=u.current.get(r);e&&!1!==l&&uz(c.current,e.offsetTop,120)}),[r]),(0,v.useLayoutEffect)((function(){if(l){var e=u.current.get(r);e&&(d.current=function(e,t){var n;return function i(){wd(e)?t():n=oc((function(){i()}))}(),function(){oc.cancel(n)}}(e,(function(){uz(c.current,e.offsetTop,0)})))}return function(){var e;null===(e=d.current)||void 0===e||e.call(d)}}),[l]),v.createElement("ul",{className:Ja()("".concat(t,"-column"),(0,N.Z)({},"".concat(t,"-column-active"),o)),ref:c,style:{position:"relative"}},n.map((function(e){var t;return a&&e.disabled?null:v.createElement("li",{key:e.value,ref:function(t){u.current.set(e.value,t)},className:Ja()(s,(t={},(0,N.Z)(t,"".concat(s,"-disabled"),e.disabled),(0,N.Z)(t,"".concat(s,"-selected"),r===e.value),t)),onClick:function(){e.disabled||i(e.value)}},v.createElement("div",{className:"".concat(s,"-inner")},e.label))})))};function Pz(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",i=String(e);i.length<t;)i="".concat(n).concat(e);return i}function Zz(e){return null===e||void 0===e?[]:Array.isArray(e)?e:[e]}function Fz(e){var t={};return Object.keys(e).forEach((function(n){"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n&&"name"!==n||"data-__"===n.substr(0,7)||(t[n]=e[n])})),t}function Bz(e,t){return e?e[t]:null}function Hz(e,t,n){var i=[Bz(e,0),Bz(e,1)];return i[n]="function"===typeof t?t(i[n]):t,i[0]||i[1]?i:null}function zz(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n+=1)if(e[n].disabled!==t[n].disabled)return!0;return!1}function jz(e,t,n,i){for(var r=[],o=e;o<=t;o+=n)r.push({label:Pz(o,2),value:o,disabled:(i||[]).includes(o)});return r}var Vz=function(e){var t,n=e.generateConfig,i=e.prefixCls,r=e.operationRef,o=e.activeColumnIndex,a=e.value,s=e.showHour,l=e.showMinute,c=e.showSecond,u=e.use12Hours,d=e.hourStep,h=void 0===d?1:d,f=e.minuteStep,p=void 0===f?1:f,g=e.secondStep,m=void 0===g?1:g,y=e.disabledHours,_=e.disabledMinutes,b=e.disabledSeconds,C=e.disabledTime,S=e.hideDisabledOptions,w=e.onSelect,x=[],E="".concat(i,"-content"),T="".concat(i,"-time-panel"),N=a?n.getHour(a):-1,I=N,D=a?n.getMinute(a):-1,L=a?n.getSecond(a):-1,O=n.getNow(),R=v.useMemo((function(){if(C){var e=C(O);return[e.disabledHours,e.disabledMinutes,e.disabledSeconds]}return[y,_,b]}),[y,_,b,C,O]),A=(0,k.Z)(R,3),M=A[0],P=A[1],Z=A[2],F=function(e,t,i,r){var o=a||n.getNow(),s=Math.max(0,t),l=Math.max(0,i),c=Math.max(0,r);return o=rz(n,o,u&&e?s+12:s,l,c)},B=jz(0,23,h,M&&M()),H=uo((function(){return B}),B,zz);u&&(t=I>=12,I%=12);var z=v.useMemo((function(){if(!u)return[!1,!1];var e=[!0,!0];return H.forEach((function(t){var n=t.disabled,i=t.value;n||(i>=12?e[1]=!1:e[0]=!1)})),e}),[u,H]),j=(0,k.Z)(z,2),V=j[0],W=j[1],U=v.useMemo((function(){return u?H.filter(t?function(e){return e.value>=12}:function(e){return e.value<12}).map((function(e){var t=e.value%12,n=0===t?"12":Pz(t,2);return(0,Ft.Z)((0,Ft.Z)({},e),{},{label:n,value:t})})):H}),[u,t,H]),G=jz(0,59,p,P&&P(N)),K=jz(0,59,m,Z&&Z(N,D));function Y(e,t,n,i,r){!1!==e&&x.push({node:v.cloneElement(t,{prefixCls:T,value:n,active:o===x.length,onSelect:r,units:i,hideDisabledOptions:S}),onSelect:r,value:n,units:i})}r.current={onUpDown:function(e){var t=x[o];if(t)for(var n=t.units.findIndex((function(e){return e.value===t.value})),i=t.units.length,r=1;r<i;r+=1){var a=t.units[(n+e*r+i)%i];if(!0!==a.disabled){t.onSelect(a.value);break}}}},Y(s,v.createElement(Mz,{key:"hour"}),I,U,(function(e){w(F(t,e,D,L),"mouse")})),Y(l,v.createElement(Mz,{key:"minute"}),D,G,(function(e){w(F(t,I,e,L),"mouse")})),Y(c,v.createElement(Mz,{key:"second"}),L,K,(function(e){w(F(t,I,D,e),"mouse")}));var q=-1;return"boolean"===typeof t&&(q=t?1:0),Y(!0===u,v.createElement(Mz,{key:"12hours"}),q,[{label:"AM",value:0,disabled:V},{label:"PM",value:1,disabled:W}],(function(e){w(F(!!e,I,D,L),"mouse")})),v.createElement("div",{className:E},x.map((function(e){return e.node})))};var Wz=function(e){var t=e.generateConfig,n=e.format,i=void 0===n?"HH:mm:ss":n,r=e.prefixCls,o=e.active,a=e.operationRef,s=e.showHour,l=e.showMinute,c=e.showSecond,u=e.use12Hours,d=void 0!==u&&u,h=e.onSelect,f=e.value,p="".concat(r,"-time-panel"),g=v.useRef(),m=v.useState(-1),y=(0,k.Z)(m,2),_=y[0],b=y[1],C=[s,l,c,d].filter((function(e){return!1!==e})).length;return a.current={onKeyDown:function(e){return dz(e,{onLeftRight:function(e){b((_+e+C)%C)},onUpDown:function(e){-1===_?b(0):g.current&&g.current.onUpDown(e)},onEnter:function(){h(f||t.getNow(),"key"),b(-1)}})},onBlur:function(){b(-1)}},v.createElement("div",{className:Ja()(p,(0,N.Z)({},"".concat(p,"-active"),o))},v.createElement(Az,Zt({},e,{format:i,prefixCls:r})),v.createElement(Vz,Zt({},e,{prefixCls:r,activeColumnIndex:_,operationRef:g})))},Uz=v.createContext({});function Gz(e){var t=e.cellPrefixCls,n=e.generateConfig,i=e.rangedValue,r=e.hoverRangedValue,o=e.isInView,a=e.isSameCell,s=e.offsetCell,l=e.today,c=e.value;return function(e){var u,d=s(e,-1),h=s(e,1),f=Bz(i,0),p=Bz(i,1),g=Bz(r,0),v=Bz(r,1),m=Iz(n,g,v,e);function y(e){return a(f,e)}function _(e){return a(p,e)}var b=a(g,e),C=a(v,e),S=(m||C)&&(!o(d)||_(d)),w=(m||b)&&(!o(h)||y(h));return u={},(0,N.Z)(u,"".concat(t,"-in-view"),o(e)),(0,N.Z)(u,"".concat(t,"-in-range"),Iz(n,f,p,e)),(0,N.Z)(u,"".concat(t,"-range-start"),y(e)),(0,N.Z)(u,"".concat(t,"-range-end"),_(e)),(0,N.Z)(u,"".concat(t,"-range-start-single"),y(e)&&!p),(0,N.Z)(u,"".concat(t,"-range-end-single"),_(e)&&!f),(0,N.Z)(u,"".concat(t,"-range-start-near-hover"),y(e)&&(a(d,g)||Iz(n,g,v,d))),(0,N.Z)(u,"".concat(t,"-range-end-near-hover"),_(e)&&(a(h,v)||Iz(n,g,v,h))),(0,N.Z)(u,"".concat(t,"-range-hover"),m),(0,N.Z)(u,"".concat(t,"-range-hover-start"),b),(0,N.Z)(u,"".concat(t,"-range-hover-end"),C),(0,N.Z)(u,"".concat(t,"-range-hover-edge-start"),S),(0,N.Z)(u,"".concat(t,"-range-hover-edge-end"),w),(0,N.Z)(u,"".concat(t,"-range-hover-edge-start-near-range"),S&&a(d,p)),(0,N.Z)(u,"".concat(t,"-range-hover-edge-end-near-range"),w&&a(h,f)),(0,N.Z)(u,"".concat(t,"-today"),a(l,e)),(0,N.Z)(u,"".concat(t,"-selected"),a(c,e)),u}}var Kz=function(e){var t=e.prefixCls,n=e.generateConfig,i=e.prefixColumn,r=e.locale,o=e.rowCount,a=e.viewDate,s=e.value,l=e.dateRender,c=v.useContext(Uz),u=c.rangedValue,d=c.hoverRangedValue,h=function(e,t,n){var i=t.locale.getWeekFirstDay(e),r=t.setDate(n,1),o=t.getWeekDay(r),a=t.addDate(r,i-o);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(r.locale,n,a),f="".concat(t,"-cell"),p=n.locale.getWeekFirstDay(r.locale),g=n.getNow(),m=[],y=r.shortWeekDays||(n.locale.getShortWeekDays?n.locale.getShortWeekDays(r.locale):[]);i&&m.push(v.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var _=0;_<7;_+=1)m.push(v.createElement("th",{key:_},y[(_+p)%7]));var b=Gz({cellPrefixCls:f,today:g,value:s,generateConfig:n,rangedValue:i?null:u,hoverRangedValue:i?null:d,isSameCell:function(e,t){return Ez(n,e,t)},isInView:function(e){return xz(n,e,a)},offsetCell:function(e,t){return n.addDate(e,t)}}),C=l?function(e){return l(e,g)}:void 0;return v.createElement(sz,Zt({},e,{rowNum:o,colNum:7,baseDate:h,getCellNode:C,getCellText:n.getDate,getCellClassName:b,getCellDate:n.addDate,titleCell:function(e){return Lz(e,{locale:r,format:"YYYY-MM-DD",generateConfig:n})},headerCells:m}))};var Yz=function(e){var t=e.prefixCls,n=e.generateConfig,i=e.locale,r=e.viewDate,o=e.onNextMonth,a=e.onPrevMonth,s=e.onNextYear,l=e.onPrevYear,c=e.onYearClick,u=e.onMonthClick;if(v.useContext(ez).hideHeader)return null;var d="".concat(t,"-header"),h=i.shortMonths||(n.locale.getShortMonths?n.locale.getShortMonths(i.locale):[]),f=n.getMonth(r),p=v.createElement("button",{type:"button",key:"year",onClick:c,tabIndex:-1,className:"".concat(t,"-year-btn")},Lz(r,{locale:i,format:i.yearFormat,generateConfig:n})),g=v.createElement("button",{type:"button",key:"month",onClick:u,tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?Lz(r,{locale:i,format:i.monthFormat,generateConfig:n}):h[f]),m=i.monthBeforeYear?[g,p]:[p,g];return v.createElement(nz,Zt({},e,{prefixCls:d,onSuperPrev:l,onPrev:a,onNext:o,onSuperNext:s}),m)};var qz=function(e){var t=e.prefixCls,n=e.panelName,i=void 0===n?"date":n,r=e.keyboardConfig,o=e.active,a=e.operationRef,s=e.generateConfig,l=e.value,c=e.viewDate,u=e.onViewDateChange,d=e.onPanelChange,h=e.onSelect,f="".concat(t,"-").concat(i,"-panel");a.current={onKeyDown:function(e){return dz(e,(0,Ft.Z)({onLeftRight:function(e){h(s.addDate(l||c,e),"key")},onCtrlLeftRight:function(e){h(s.addYear(l||c,e),"key")},onUpDown:function(e){h(s.addDate(l||c,7*e),"key")},onPageUpDown:function(e){h(s.addMonth(l||c,e),"key")}},r))}};var p=function(e){var t=s.addYear(c,e);u(t),d(null,t)},g=function(e){var t=s.addMonth(c,e);u(t),d(null,t)};return v.createElement("div",{className:Ja()(f,(0,N.Z)({},"".concat(f,"-active"),o))},v.createElement(Yz,Zt({},e,{prefixCls:t,value:l,viewDate:c,onPrevYear:function(){p(-1)},onNextYear:function(){p(1)},onPrevMonth:function(){g(-1)},onNextMonth:function(){g(1)},onMonthClick:function(){d("month",c)},onYearClick:function(){d("year",c)}})),v.createElement(Kz,Zt({},e,{onSelect:function(e){return h(e,"mouse")},prefixCls:t,value:l,viewDate:c,rowCount:6})))},$z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}("date","time");var Xz=function(e){var t=e.prefixCls,n=e.operationRef,i=e.generateConfig,r=e.value,o=e.defaultValue,a=e.disabledTime,s=e.showTime,l=e.onSelect,c="".concat(t,"-datetime-panel"),u=v.useState(null),d=(0,k.Z)(u,2),h=d[0],f=d[1],p=v.useRef({}),g=v.useRef({}),m="object"===(0,Bt.Z)(s)?(0,Ft.Z)({},s):{},y=function(e){g.current.onBlur&&g.current.onBlur(e),f(null)};n.current={onKeyDown:function(e){if(e.which===vv.TAB){var t=function(e){var t=$z.indexOf(h)+e;return $z[t]||null}(e.shiftKey?-1:1);return f(t),t&&e.preventDefault(),!0}if(h){var n="date"===h?p:g;return n.current&&n.current.onKeyDown&&n.current.onKeyDown(e),!0}return!![vv.LEFT,vv.RIGHT,vv.UP,vv.DOWN].includes(e.which)&&(f("date"),!0)},onBlur:y,onClose:y};var _=function(e,t){var n=e;"date"===t&&!r&&m.defaultValue?(n=i.setHour(n,i.getHour(m.defaultValue)),n=i.setMinute(n,i.getMinute(m.defaultValue)),n=i.setSecond(n,i.getSecond(m.defaultValue))):"time"===t&&!r&&o&&(n=i.setYear(n,i.getYear(o)),n=i.setMonth(n,i.getMonth(o)),n=i.setDate(n,i.getDate(o))),l&&l(n,"mouse")},b=a?a(r||null):{};return v.createElement("div",{className:Ja()(c,(0,N.Z)({},"".concat(c,"-active"),h))},v.createElement(qz,Zt({},e,{operationRef:p,active:"date"===h,onSelect:function(e){_(oz(i,e,r||"object"!==(0,Bt.Z)(s)?null:s.defaultValue),"date")}})),v.createElement(Wz,Zt({},e,{format:void 0},m,b,{disabledTime:null,defaultValue:void 0,operationRef:g,active:"time"===h,onSelect:function(e){_(e,"time")}})))};var Qz=function(e){var t=e.prefixCls,n=e.generateConfig,i=e.locale,r=e.value,o="".concat(t,"-cell"),a="".concat(t,"-week-panel-row");return v.createElement(qz,Zt({},e,{panelName:"week",prefixColumn:function(e){return v.createElement("td",{key:"week",className:Ja()(o,"".concat(o,"-week"))},n.locale.getWeek(i.locale,e))},rowClassName:function(e){return Ja()(a,(0,N.Z)({},"".concat(a,"-selected"),Tz(n,i.locale,r,e)))},keyboardConfig:{onLeftRight:null}}))};var Jz=function(e){var t=e.prefixCls,n=e.generateConfig,i=e.locale,r=e.viewDate,o=e.onNextYear,a=e.onPrevYear,s=e.onYearClick;if(v.useContext(ez).hideHeader)return null;var l="".concat(t,"-header");return v.createElement(nz,Zt({},e,{prefixCls:l,onSuperPrev:a,onSuperNext:o}),v.createElement("button",{type:"button",onClick:s,className:"".concat(t,"-year-btn")},Lz(r,{locale:i,format:i.yearFormat,generateConfig:n})))};var ej=function(e){var t=e.prefixCls,n=e.locale,i=e.value,r=e.viewDate,o=e.generateConfig,a=e.monthCellRender,s=v.useContext(Uz),l=s.rangedValue,c=s.hoverRangedValue,u=Gz({cellPrefixCls:"".concat(t,"-cell"),value:i,generateConfig:o,rangedValue:l,hoverRangedValue:c,isSameCell:function(e,t){return xz(o,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return o.addMonth(e,t)}}),d=n.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(n.locale):[]),h=o.setMonth(r,0),f=a?function(e){return a(e,n)}:void 0;return v.createElement(sz,Zt({},e,{rowNum:4,colNum:3,baseDate:h,getCellNode:f,getCellText:function(e){return n.monthFormat?Lz(e,{locale:n,format:n.monthFormat,generateConfig:o}):d[o.getMonth(e)]},getCellClassName:u,getCellDate:o.addMonth,titleCell:function(e){return Lz(e,{locale:n,format:"YYYY-MM",generateConfig:o})}}))};var tj=function(e){var t=e.prefixCls,n=e.operationRef,i=e.onViewDateChange,r=e.generateConfig,o=e.value,a=e.viewDate,s=e.onPanelChange,l=e.onSelect,c="".concat(t,"-month-panel");n.current={onKeyDown:function(e){return dz(e,{onLeftRight:function(e){l(r.addMonth(o||a,e),"key")},onCtrlLeftRight:function(e){l(r.addYear(o||a,e),"key")},onUpDown:function(e){l(r.addMonth(o||a,3*e),"key")},onEnter:function(){s("date",o||a)}})}};var u=function(e){var t=r.addYear(a,e);i(t),s(null,t)};return v.createElement("div",{className:c},v.createElement(Jz,Zt({},e,{prefixCls:t,onPrevYear:function(){u(-1)},onNextYear:function(){u(1)},onYearClick:function(){s("year",a)}})),v.createElement(ej,Zt({},e,{prefixCls:t,onSelect:function(e){l(e,"mouse"),s("date",e)}})))};var nj=function(e){var t=e.prefixCls,n=e.generateConfig,i=e.locale,r=e.viewDate,o=e.onNextYear,a=e.onPrevYear,s=e.onYearClick;if(v.useContext(ez).hideHeader)return null;var l="".concat(t,"-header");return v.createElement(nz,Zt({},e,{prefixCls:l,onSuperPrev:a,onSuperNext:o}),v.createElement("button",{type:"button",onClick:s,className:"".concat(t,"-year-btn")},Lz(r,{locale:i,format:i.yearFormat,generateConfig:n})))};var ij=function(e){var t=e.prefixCls,n=e.locale,i=e.value,r=e.viewDate,o=e.generateConfig,a=v.useContext(Uz),s=a.rangedValue,l=a.hoverRangedValue,c=Gz({cellPrefixCls:"".concat(t,"-cell"),value:i,generateConfig:o,rangedValue:s,hoverRangedValue:l,isSameCell:function(e,t){return kz(o,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return o.addMonth(e,3*t)}}),u=o.setDate(o.setMonth(r,0),1);return v.createElement(sz,Zt({},e,{rowNum:1,colNum:4,baseDate:u,getCellText:function(e){return Lz(e,{locale:n,format:n.quarterFormat||"[Q]Q",generateConfig:o})},getCellClassName:c,getCellDate:function(e,t){return o.addMonth(e,3*t)},titleCell:function(e){return Lz(e,{locale:n,format:"YYYY-[Q]Q",generateConfig:o})}}))};var rj=function(e){var t=e.prefixCls,n=e.operationRef,i=e.onViewDateChange,r=e.generateConfig,o=e.value,a=e.viewDate,s=e.onPanelChange,l=e.onSelect,c="".concat(t,"-quarter-panel");n.current={onKeyDown:function(e){return dz(e,{onLeftRight:function(e){l(r.addMonth(o||a,3*e),"key")},onCtrlLeftRight:function(e){l(r.addYear(o||a,e),"key")},onUpDown:function(e){l(r.addYear(o||a,e),"key")}})}};var u=function(e){var t=r.addYear(a,e);i(t),s(null,t)};return v.createElement("div",{className:c},v.createElement(nj,Zt({},e,{prefixCls:t,onPrevYear:function(){u(-1)},onNextYear:function(){u(1)},onYearClick:function(){s("year",a)}})),v.createElement(ij,Zt({},e,{prefixCls:t,onSelect:function(e){l(e,"mouse")}})))};var oj=function(e){var t=e.prefixCls,n=e.generateConfig,i=e.viewDate,r=e.onPrevDecade,o=e.onNextDecade,a=e.onDecadeClick;if(v.useContext(ez).hideHeader)return null;var s="".concat(t,"-header"),l=n.getYear(i),c=Math.floor(l/sj)*sj,u=c+sj-1;return v.createElement(nz,Zt({},e,{prefixCls:s,onSuperPrev:r,onSuperNext:o}),v.createElement("button",{type:"button",onClick:a,className:"".concat(t,"-decade-btn")},c,"-",u))};var aj=function(e){var t=e.prefixCls,n=e.value,i=e.viewDate,r=e.locale,o=e.generateConfig,a=v.useContext(Uz),s=a.rangedValue,l=a.hoverRangedValue,c="".concat(t,"-cell"),u=o.getYear(i),d=Math.floor(u/sj)*sj,h=d+sj-1,f=o.setYear(i,d-Math.ceil((12-sj)/2)),p=Gz({cellPrefixCls:c,value:n,generateConfig:o,rangedValue:s,hoverRangedValue:l,isSameCell:function(e,t){return Sz(o,e,t)},isInView:function(e){var t=o.getYear(e);return d<=t&&t<=h},offsetCell:function(e,t){return o.addYear(e,t)}});return v.createElement(sz,Zt({},e,{rowNum:4,colNum:3,baseDate:f,getCellText:o.getYear,getCellClassName:p,getCellDate:o.addYear,titleCell:function(e){return Lz(e,{locale:r,format:"YYYY",generateConfig:o})}}))},sj=10;var lj=function(e){var t=e.prefixCls,n=e.operationRef,i=e.onViewDateChange,r=e.generateConfig,o=e.value,a=e.viewDate,s=e.sourceMode,l=e.onSelect,c=e.onPanelChange,u="".concat(t,"-year-panel");n.current={onKeyDown:function(e){return dz(e,{onLeftRight:function(e){l(r.addYear(o||a,e),"key")},onCtrlLeftRight:function(e){l(r.addYear(o||a,e*sj),"key")},onUpDown:function(e){l(r.addYear(o||a,3*e),"key")},onEnter:function(){c("date"===s?"date":"month",o||a)}})}};var d=function(e){var t=r.addYear(a,10*e);i(t),c(null,t)};return v.createElement("div",{className:u},v.createElement(oj,Zt({},e,{prefixCls:t,onPrevDecade:function(){d(-1)},onNextDecade:function(){d(1)},onDecadeClick:function(){c("decade",a)}})),v.createElement(aj,Zt({},e,{prefixCls:t,onSelect:function(e){c("date"===s?"date":"month",e),l(e,"mouse")}})))};function cj(e,t,n){return n?v.createElement("div",{className:"".concat(e,"-footer-extra")},n(t)):null}function uj(e){var t,n,i=e.prefixCls,r=e.components,o=void 0===r?{}:r,a=e.needConfirmButton,s=e.onNow,l=e.onOk,c=e.okDisabled,u=e.showNow,d=e.locale;if(a){var h=o.button||"button";s&&!1!==u&&(t=v.createElement("li",{className:"".concat(i,"-now")},v.createElement("a",{className:"".concat(i,"-now-btn"),onClick:s},d.now))),n=a&&v.createElement("li",{className:"".concat(i,"-ok")},v.createElement(h,{disabled:c,onClick:l},d.ok))}return t||n?v.createElement("ul",{className:"".concat(i,"-ranges")},t,n):null}var dj=function(e){var t,n=e,i=n.prefixCls,r=void 0===i?"rc-picker":i,o=n.className,a=n.style,s=n.locale,l=n.generateConfig,c=n.value,u=n.defaultValue,d=n.pickerValue,h=n.defaultPickerValue,f=n.disabledDate,p=n.mode,g=n.picker,m=void 0===g?"date":g,y=n.tabIndex,_=void 0===y?0:y,b=n.showNow,C=n.showTime,S=n.showToday,w=n.renderExtraFooter,x=n.hideHeader,E=n.onSelect,T=n.onChange,I=n.onPanelChange,D=n.onMouseDown,L=n.onPickerValueChange,O=n.onOk,R=n.components,A=n.direction,M=n.hourStep,P=void 0===M?1:M,Z=n.minuteStep,F=void 0===Z?1:Z,B=n.secondStep,H=void 0===B?1:B,z="date"===m&&!!C||"time"===m,j=24%P===0,V=60%F===0,W=60%H===0,U=v.useContext(ez),G=U.operationRef,K=U.onSelect,Y=U.hideRanges,q=U.defaultOpenValue,$=v.useContext(Uz),X=$.inRange,Q=$.panelPosition,J=$.rangedValue,ee=$.hoverRangedValue,te=v.useRef({}),ne=v.useRef(!0),ie=Sf(null,{value:c,defaultValue:u,postState:function(e){return!e&&q&&"time"===m?q:e}}),re=(0,k.Z)(ie,2),oe=re[0],ae=re[1],se=Sf(null,{value:d,defaultValue:h||oe,postState:function(e){var t=l.getNow();if(!e)return t;if(!oe&&C){var n="object"===(0,Bt.Z)(C)?C.defaultValue:u;return oz(l,Array.isArray(e)?e[0]:e,n||t)}return Array.isArray(e)?e[0]:e}}),le=(0,k.Z)(se,2),ce=le[0],ue=le[1],de=function(e){ue(e),L&&L(e)},he=function(e){var t=vz[m];return t?t(e):e},fe=Sf((function(){return"time"===m?"time":he("date")}),{value:p}),pe=(0,k.Z)(fe,2),ge=pe[0],ve=pe[1];v.useEffect((function(){ve(m)}),[m]);var me,ye=v.useState((function(){return ge})),_e=(0,k.Z)(ye,2),be=_e[0],Ce=_e[1],Se=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(ge===m||n)&&(ae(e),E&&E(e),K&&K(e,t),!T||Nz(l,e,oe)||null!==f&&void 0!==f&&f(e)||T(e))},we=function(e){return te.current&&te.current.onKeyDown?([vv.LEFT,vv.RIGHT,vv.UP,vv.DOWN,vv.PAGE_UP,vv.PAGE_DOWN,vv.ENTER].includes(e.which)&&e.preventDefault(),te.current.onKeyDown(e)):(li(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)};G&&"right"!==Q&&(G.current={onKeyDown:we,onClose:function(){te.current&&te.current.onClose&&te.current.onClose()}}),v.useEffect((function(){c&&!ne.current&&ue(c)}),[c]),v.useEffect((function(){ne.current=!1}),[]);var ke,xe,Ee,Te=(0,Ft.Z)((0,Ft.Z)({},e),{},{operationRef:te,prefixCls:r,viewDate:ce,value:oe,onViewDateChange:de,sourceMode:be,onPanelChange:function(e,t){var n=he(e||ge);Ce(ge),ve(n),I&&(ge!==n||Nz(l,ce,ce))&&I(t,n)},disabledDate:f});switch(delete Te.onChange,delete Te.onSelect,ge){case"decade":me=v.createElement(bz,Zt({},Te,{onSelect:function(e,t){de(e),Se(e,t)}}));break;case"year":me=v.createElement(lj,Zt({},Te,{onSelect:function(e,t){de(e),Se(e,t)}}));break;case"month":me=v.createElement(tj,Zt({},Te,{onSelect:function(e,t){de(e),Se(e,t)}}));break;case"quarter":me=v.createElement(rj,Zt({},Te,{onSelect:function(e,t){de(e),Se(e,t)}}));break;case"week":me=v.createElement(Qz,Zt({},Te,{onSelect:function(e,t){de(e),Se(e,t)}}));break;case"time":delete Te.showTime,me=v.createElement(Wz,Zt({},Te,"object"===(0,Bt.Z)(C)?C:null,{onSelect:function(e,t){de(e),Se(e,t)}}));break;default:me=C?v.createElement(Xz,Zt({},Te,{onSelect:function(e,t){de(e),Se(e,t)}})):v.createElement(qz,Zt({},Te,{onSelect:function(e,t){de(e),Se(e,t)}}))}if(Y||(ke=cj(r,ge,w),xe=uj({prefixCls:r,components:R,needConfirmButton:z,okDisabled:!oe||f&&f(oe),locale:s,showNow:b,onNow:z&&function(){var e=l.getNow(),t=function(e,t,n,i,r,o){var a=Math.floor(e/i)*i;if(a<e)return[a,60-r,60-o];var s=Math.floor(t/r)*r;return s<t?[a,s,60-o]:[a,s,Math.floor(n/o)*o]}(l.getHour(e),l.getMinute(e),l.getSecond(e),j?P:1,V?F:1,W?H:1),n=rz(l,e,t[0],t[1],t[2]);Se(n,"submit")},onOk:function(){oe&&(Se(oe,"submit",!0),O&&O(oe))}})),S&&"date"===ge&&"date"===m&&!C){var Ne=l.getNow(),Ie="".concat(r,"-today-btn"),De=f&&f(Ne);Ee=v.createElement("a",{className:Ja()(Ie,De&&"".concat(Ie,"-disabled")),"aria-disabled":De,onClick:function(){De||Se(Ne,"mouse",!0)}},s.today)}return v.createElement(ez.Provider,{value:(0,Ft.Z)((0,Ft.Z)({},U),{},{mode:ge,hideHeader:"hideHeader"in e?x:U.hideHeader,hidePrevBtn:X&&"right"===Q,hideNextBtn:X&&"left"===Q})},v.createElement("div",{tabIndex:_,className:Ja()("".concat(r,"-panel"),o,(t={},(0,N.Z)(t,"".concat(r,"-panel-has-range"),J&&J[0]&&J[1]),(0,N.Z)(t,"".concat(r,"-panel-has-range-hover"),ee&&ee[0]&&ee[1]),(0,N.Z)(t,"".concat(r,"-panel-rtl"),"rtl"===A),t)),style:a,onKeyDown:we,onBlur:function(e){te.current&&te.current.onBlur&&te.current.onBlur(e)},onMouseDown:D},me,ke||xe||Ee?v.createElement("div",{className:"".concat(r,"-footer")},ke,xe,Ee):null))},hj={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};var fj=function(e){var t,n=e.prefixCls,i=e.popupElement,r=e.popupStyle,o=e.visible,a=e.dropdownClassName,s=e.dropdownAlign,l=e.transitionName,c=e.getPopupContainer,u=e.children,d=e.range,h=e.popupPlacement,f=e.direction,p="".concat(n,"-dropdown");return v.createElement(ff,{showAction:[],hideAction:[],popupPlacement:void 0!==h?h:"rtl"===f?"bottomRight":"bottomLeft",builtinPlacements:hj,prefixCls:p,popupTransitionName:l,popup:i,popupAlign:s,popupVisible:o,popupClassName:Ja()(a,(t={},(0,N.Z)(t,"".concat(p,"-range"),d),(0,N.Z)(t,"".concat(p,"-rtl"),"rtl"===f),t)),popupStyle:r,getPopupContainer:c},u)};function pj(e){var t=e.open,n=e.value,i=e.isClickOutside,r=e.triggerOpen,o=e.forwardKeyDown,a=e.onKeyDown,s=e.blurToCancel,l=e.onSubmit,c=e.onCancel,u=e.onFocus,d=e.onBlur,h=(0,v.useState)(!1),f=(0,k.Z)(h,2),p=f[0],g=f[1],m=(0,v.useState)(!1),y=(0,k.Z)(m,2),b=y[0],C=y[1],S=(0,v.useRef)(!1),w=(0,v.useRef)(!1),x=(0,v.useRef)(!1),E={onMouseDown:function(){g(!0),r(!0)},onKeyDown:function(e){if(a(e,(function(){x.current=!0})),!x.current){switch(e.which){case vv.ENTER:return t?!1!==l()&&g(!0):r(!0),void e.preventDefault();case vv.TAB:return void(p&&t&&!e.shiftKey?(g(!1),e.preventDefault()):!p&&t&&!o(e)&&e.shiftKey&&(g(!0),e.preventDefault()));case vv.ESC:return g(!0),void c()}t||[vv.SHIFT].includes(e.which)?p||o(e):r(!0)}},onFocus:function(e){g(!0),C(!0),u&&u(e)},onBlur:function(e){!S.current&&i(document.activeElement)?(s?setTimeout((function(){for(var e=document.activeElement;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;i(e)&&c()}),0):t&&(r(!1),w.current&&l()),C(!1),d&&d(e)):S.current=!1}};return(0,v.useEffect)((function(){w.current=!1}),[t]),(0,v.useEffect)((function(){w.current=!0}),[n]),(0,v.useEffect)((function(){return e=function(e){var n=function(e){var t,n=e.target;return e.composed&&n.shadowRoot&&(null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])||n}(e);if(t){var o=i(n);o?b&&!o||r(!1):(S.current=!0,requestAnimationFrame((function(){S.current=!1})))}},!pz&&"undefined"!==typeof window&&window.addEventListener&&(pz=function(e){(0,_.Z)(gz).forEach((function(t){t(e)}))},window.addEventListener("mousedown",pz)),gz.add(e),function(){gz.delete(e),0===gz.size&&(window.removeEventListener("mousedown",pz),pz=null)};var e})),[E,{focused:b,typing:p}]}function gj(e){var t=e.valueTexts,n=e.onTextChange,i=v.useState(""),r=(0,k.Z)(i,2),o=r[0],a=r[1],s=v.useRef([]);function l(){a(s.current[0])}return s.current=t,v.useEffect((function(){t.every((function(e){return e!==o}))&&l()}),[t.join("||")]),[o,function(e){a(e),n(e)},l]}function vj(e,t){var n=t.formatList,i=t.generateConfig,r=t.locale;return uo((function(){if(!e)return[[""],""];for(var t="",o=[],a=0;a<n.length;a+=1){var s=n[a],l=Lz(e,{generateConfig:i,locale:r,format:s});o.push(l),0===a&&(t=l)}return[o,t]}),[e,n],(function(e,t){return e[0]!==t[0]||!La()(e[1],t[1])}))}function mj(e,t){var n=t.formatList,i=t.generateConfig,r=t.locale,o=(0,v.useState)(null),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useRef)(null);function u(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];cancelAnimationFrame(c.current),t?l(e):c.current=requestAnimationFrame((function(){l(e)}))}var d=vj(s,{formatList:n,generateConfig:i,locale:r}),h=(0,k.Z)(d,2)[1];function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u(null,e)}return(0,v.useEffect)((function(){f(!0)}),[e]),(0,v.useEffect)((function(){return function(){return cancelAnimationFrame(c.current)}}),[]),[h,function(e){u(e)},f]}function yj(e,t){return v.useMemo((function(){return e||(t?(li(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t).map((function(e){var n=t[e];return{label:e,value:"function"===typeof n?n():n}}))):[])}),[e,t])}function _j(e){var t=e.prefixCls,n=e.presets,i=e.onClick,r=e.onHover;return n.length?v.createElement("div",{className:"".concat(t,"-presets")},v.createElement("ul",null,n.map((function(e,t){var n=e.label,o=e.value;return v.createElement("li",{key:t,onClick:function(){i(o)},onMouseEnter:function(){null===r||void 0===r||r(o)},onMouseLeave:function(){null===r||void 0===r||r(null)}},n)})))):null}function bj(e){var t,n=e,i=n.prefixCls,r=void 0===i?"rc-picker":i,o=n.id,a=n.tabIndex,s=n.style,l=n.className,c=n.dropdownClassName,u=n.dropdownAlign,d=n.popupStyle,h=n.transitionName,f=n.generateConfig,p=n.locale,g=n.inputReadOnly,m=n.allowClear,y=n.autoFocus,_=n.showTime,b=n.picker,C=void 0===b?"date":b,S=n.format,w=n.use12Hours,x=n.value,E=n.defaultValue,T=n.presets,I=n.open,D=n.defaultOpen,L=n.defaultOpenValue,O=n.suffixIcon,R=n.clearIcon,A=n.disabled,M=n.disabledDate,P=n.placeholder,Z=n.getPopupContainer,F=n.pickerRef,B=n.panelRender,H=n.onChange,z=n.onOpenChange,j=n.onFocus,V=n.onBlur,W=n.onMouseDown,U=n.onMouseUp,G=n.onMouseEnter,K=n.onMouseLeave,Y=n.onContextMenu,q=n.onClick,$=n.onKeyDown,X=n.onSelect,Q=n.direction,J=n.autoComplete,ee=void 0===J?"off":J,te=n.inputRender,ne=v.useRef(null),ie="date"===C&&!!_||"time"===C,re=yj(T);var oe=Zz(hz(S,C,_,w)),ae=v.useRef(null),se=v.useRef(null),le=v.useRef(null),ce=Sf(null,{value:x,defaultValue:E}),ue=(0,k.Z)(ce,2),de=ue[0],he=ue[1],fe=v.useState(de),pe=(0,k.Z)(fe,2),ge=pe[0],ve=pe[1],me=v.useRef(null),ye=Sf(!1,{value:I,defaultValue:D,postState:function(e){return!A&&e},onChange:function(e){z&&z(e),!e&&me.current&&me.current.onClose&&me.current.onClose()}}),_e=(0,k.Z)(ye,2),be=_e[0],Ce=_e[1],Se=vj(ge,{formatList:oe,generateConfig:f,locale:p}),we=(0,k.Z)(Se,2),ke=we[0],xe=we[1],Ee=gj({valueTexts:ke,onTextChange:function(e){var t=Oz(e,{locale:p,formatList:oe,generateConfig:f});!t||M&&M(t)||ve(t)}}),Te=(0,k.Z)(Ee,3),Ne=Te[0],Ie=Te[1],De=Te[2],Le=function(e){ve(e),he(e),H&&!Nz(f,de,e)&&H(e,e?Lz(e,{generateConfig:f,locale:p,format:oe[0]}):"")},Oe=function(e){A&&e||Ce(e)},Re=pj({blurToCancel:ie,open:be,value:Ne,triggerOpen:Oe,forwardKeyDown:function(e){return be&&me.current&&me.current.onKeyDown?me.current.onKeyDown(e):(li(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},isClickOutside:function(e){return!mz([ae.current,se.current,le.current],e)},onSubmit:function(){return!(!ge||M&&M(ge))&&(Le(ge),Oe(!1),De(),!0)},onCancel:function(){Oe(!1),ve(de),De()},onKeyDown:function(e,t){null===$||void 0===$||$(e,t)},onFocus:j,onBlur:V}),Ae=(0,k.Z)(Re,2),Me=Ae[0],Pe=Ae[1],Ze=Pe.focused,Fe=Pe.typing;v.useEffect((function(){be||(ve(de),ke.length&&""!==ke[0]?xe!==Ne&&De():Ie(""))}),[be,ke]),v.useEffect((function(){be||De()}),[C]),v.useEffect((function(){ve(de)}),[de]),F&&(F.current={focus:function(){ne.current&&ne.current.focus()},blur:function(){ne.current&&ne.current.blur()}});var Be=mj(Ne,{formatList:oe,generateConfig:f,locale:p}),He=(0,k.Z)(Be,3),ze=He[0],je=He[1],Ve=He[2],We=(0,Ft.Z)((0,Ft.Z)({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Ue=v.createElement("div",{className:"".concat(r,"-panel-layout")},v.createElement(_j,{prefixCls:r,presets:re,onClick:function(e){Le(e),Oe(!1)}}),v.createElement(dj,Zt({},We,{generateConfig:f,className:Ja()((0,N.Z)({},"".concat(r,"-panel-focused"),!Fe)),value:ge,locale:p,tabIndex:-1,onSelect:function(e){null===X||void 0===X||X(e),ve(e)},direction:Q,onPanelChange:function(t,n){var i=e.onPanelChange;Ve(!0),null===i||void 0===i||i(t,n)}})));B&&(Ue=B(Ue));var Ge,Ke,Ye=v.createElement("div",{className:"".concat(r,"-panel-container"),ref:ae,onMouseDown:function(e){e.preventDefault()}},Ue);O&&(Ge=v.createElement("span",{className:"".concat(r,"-suffix")},O)),m&&de&&!A&&(Ke=v.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation(),Le(null),Oe(!1)},className:"".concat(r,"-clear"),role:"button"},R||v.createElement("span",{className:"".concat(r,"-clear-btn")})));var qe=(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({id:o,tabIndex:a,disabled:A,readOnly:g||"function"===typeof oe[0]||!Fe,value:ze||Ne,onChange:function(e){Ie(e.target.value)},autoFocus:y,placeholder:P,ref:ne,title:Ne},Me),{},{size:fz(C,oe[0],f)},Fz(e)),{},{autoComplete:ee}),$e=te?te(qe):v.createElement("input",qe);var Xe="rtl"===Q?"bottomRight":"bottomLeft";return v.createElement(ez.Provider,{value:{operationRef:me,hideHeader:"time"===C,onSelect:function(e,t){("submit"===t||"key"!==t&&!ie)&&(Le(e),Oe(!1))},open:be,defaultOpenValue:L,onDateMouseEnter:je,onDateMouseLeave:Ve}},v.createElement(fj,{visible:be,popupElement:Ye,popupStyle:d,prefixCls:r,dropdownClassName:c,dropdownAlign:u,getPopupContainer:Z,transitionName:h,popupPlacement:Xe,direction:Q},v.createElement("div",{ref:le,className:Ja()(r,l,(t={},(0,N.Z)(t,"".concat(r,"-disabled"),A),(0,N.Z)(t,"".concat(r,"-focused"),Ze),(0,N.Z)(t,"".concat(r,"-rtl"),"rtl"===Q),t)),style:s,onMouseDown:W,onMouseUp:U,onMouseEnter:G,onMouseLeave:K,onContextMenu:Y,onClick:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null===q||void 0===q||q.apply(void 0,t),ne.current&&(ne.current.focus(),Oe(!0))}},v.createElement("div",{className:Ja()("".concat(r,"-input"),(0,N.Z)({},"".concat(r,"-input-placeholder"),!!ze)),ref:se},$e,Ge,Ke))))}var Cj=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){var e;(0,b.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return e=t.call.apply(t,[this].concat(r)),(0,N.Z)((0,Mi.Z)(e),"pickerRef",v.createRef()),(0,N.Z)((0,Mi.Z)(e),"focus",(function(){e.pickerRef.current&&e.pickerRef.current.focus()})),(0,N.Z)((0,Mi.Z)(e),"blur",(function(){e.pickerRef.current&&e.pickerRef.current.blur()})),e}return(0,C.Z)(n,[{key:"render",value:function(){return v.createElement(bj,Zt({},this.props,{pickerRef:this.pickerRef}))}}]),n}(v.Component),Sj=Cj;function wj(e,t,n,i){var r=Dz(e,n,i,1);function o(n){return n(e,t)?"same":n(r,t)?"closing":"far"}switch(n){case"year":return o((function(e,t){return function(e,t,n){var i=Cz(t,n);return"boolean"===typeof i?i:Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}(i,e,t)}));case"quarter":case"month":return o((function(e,t){return Sz(i,e,t)}));default:return o((function(e,t){return xz(i,e,t)}))}}function kj(e){var t=e.values,n=e.picker,i=e.defaultDates,r=e.generateConfig,o=v.useState((function(){return[Bz(i,0),Bz(i,1)]})),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=v.useState(null),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=Bz(t,0),p=Bz(t,1);return[function(e){return s[e]?s[e]:Bz(d,e)||function(e,t,n,i){var r=Bz(e,0),o=Bz(e,1);if(0===t)return r;if(r&&o)switch(wj(r,o,n,i)){case"same":case"closing":return r;default:return Dz(o,n,i,-1)}return r}(t,e,n,r)||f||p||r.getNow()},function(e,n){if(e){var i=Hz(d,e,n);l(Hz(s,null,n)||[null,null]);var r=(n+1)%2;Bz(t,r)||(i=Hz(i,e,r)),h(i)}else(f||p)&&h(null)}]}function xj(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function Ej(e,t,n,i){return!!e||(!(!i||!i[t])||!!n[(t+1)%2])}function Tj(e){var t,n,i,r=e,o=r.prefixCls,a=void 0===o?"rc-picker":o,s=r.id,l=r.style,c=r.className,u=r.popupStyle,d=r.dropdownClassName,h=r.transitionName,f=r.dropdownAlign,p=r.getPopupContainer,g=r.generateConfig,m=r.locale,y=r.placeholder,_=r.autoFocus,b=r.disabled,C=r.format,S=r.picker,w=void 0===S?"date":S,x=r.showTime,E=r.use12Hours,T=r.separator,I=void 0===T?"~":T,D=r.value,L=r.defaultValue,O=r.defaultPickerValue,R=r.open,A=r.defaultOpen,M=r.disabledDate,P=r.disabledTime,Z=r.dateRender,F=r.panelRender,B=r.presets,H=r.ranges,z=r.allowEmpty,j=r.allowClear,V=r.suffixIcon,W=r.clearIcon,U=r.pickerRef,G=r.inputReadOnly,K=r.mode,Y=r.renderExtraFooter,q=r.onChange,$=r.onOpenChange,X=r.onPanelChange,Q=r.onCalendarChange,J=r.onFocus,ee=r.onBlur,te=r.onMouseDown,ne=r.onMouseUp,ie=r.onMouseEnter,re=r.onMouseLeave,oe=r.onClick,ae=r.onOk,se=r.onKeyDown,le=r.components,ce=r.order,ue=r.direction,de=r.activePickerIndex,he=r.autoComplete,fe=void 0===he?"off":he,pe="date"===w&&!!x||"time"===w,ge=(0,v.useRef)({}),ve=(0,v.useRef)(null),me=(0,v.useRef)(null),ye=(0,v.useRef)(null),_e=(0,v.useRef)(null),be=(0,v.useRef)(null),Ce=(0,v.useRef)(null),Se=(0,v.useRef)(null),we=(0,v.useRef)(null);var ke=Zz(hz(C,w,x,E)),xe=Sf(0,{value:de}),Ee=(0,k.Z)(xe,2),Te=Ee[0],Ne=Ee[1],Ie=(0,v.useRef)(null),De=v.useMemo((function(){return Array.isArray(b)?b:[b||!1,b||!1]}),[b]),Le=Sf(null,{value:D,defaultValue:L,postState:function(e){return"time"!==w||ce?xj(e,g):e}}),Oe=(0,k.Z)(Le,2),Re=Oe[0],Ae=Oe[1],Me=kj({values:Re,picker:w,defaultDates:O,generateConfig:g}),Pe=(0,k.Z)(Me,2),Ze=Pe[0],Fe=Pe[1],Be=Sf(Re,{postState:function(e){var t=e;if(De[0]&&De[1])return t;for(var n=0;n<2;n+=1)!De[n]||Bz(t,n)||Bz(z,n)||(t=Hz(t,g.getNow(),n));return t}}),He=(0,k.Z)(Be,2),ze=He[0],je=He[1],Ve=Sf([w,w],{value:K}),We=(0,k.Z)(Ve,2),Ue=We[0],Ge=We[1];(0,v.useEffect)((function(){Ge([w,w])}),[w]);var Ke=function(e,t){Ge(e),X&&X(t,e)},Ye=function(e,t,n){var i=e.picker,r=e.locale,o=e.selectedValue,a=e.disabledDate,s=e.disabled,l=e.generateConfig,c=Bz(o,0),u=Bz(o,1);function d(e){return l.locale.getWeekFirstDate(r.locale,e)}function h(e){return 100*l.getYear(e)+l.getMonth(e)}function f(e){return 10*l.getYear(e)+wz(l,e)}var p=v.useCallback((function(e){if(a&&a(e))return!0;if(s[1]&&u)return!Ez(l,e,u)&&l.isAfter(e,u);if(t&&u)switch(i){case"quarter":return f(e)>f(u);case"month":return h(e)>h(u);case"week":return d(e)>d(u);default:return!Ez(l,e,u)&&l.isAfter(e,u)}return!1}),[a,s[1],u,t]),g=v.useCallback((function(e){if(a&&a(e))return!0;if(s[0]&&c)return!Ez(l,e,u)&&l.isAfter(c,e);if(n&&c)switch(i){case"quarter":return f(e)<f(c);case"month":return h(e)<h(c);case"week":return d(e)<d(c);default:return!Ez(l,e,c)&&l.isAfter(c,e)}return!1}),[a,s[0],c,n]);return[p,g]}({picker:w,selectedValue:ze,locale:m,disabled:De,disabledDate:M,generateConfig:g},ge.current[1],ge.current[0]),qe=(0,k.Z)(Ye,2),$e=qe[0],Xe=qe[1],Qe=Sf(!1,{value:R,defaultValue:A,postState:function(e){return!De[Te]&&e},onChange:function(e){$&&$(e),!e&&Ie.current&&Ie.current.onClose&&Ie.current.onClose()}}),Je=(0,k.Z)(Qe,2),et=Je[0],tt=Je[1],nt=et&&0===Te,it=et&&1===Te,rt=(0,v.useState)(0),ot=(0,k.Z)(rt,2),at=ot[0],st=ot[1];(0,v.useEffect)((function(){!et&&ve.current&&st(ve.current.offsetWidth)}),[et]);var lt=v.useRef();function ct(e,t){if(e)clearTimeout(lt.current),ge.current[t]=!0,Ne(t),tt(e),et||Fe(null,t);else if(Te===t){tt(e);var n=ge.current;lt.current=setTimeout((function(){n===ge.current&&(ge.current={})}))}}function ut(e){ct(!0,e),setTimeout((function(){var t=[Ce,Se][e];t.current&&t.current.focus()}),0)}function dt(e,t){var n=e,i=Bz(n,0),r=Bz(n,1);i&&r&&g.isAfter(i,r)&&("week"===w&&!Tz(g,m.locale,i,r)||"quarter"===w&&!kz(g,i,r)||"week"!==w&&"quarter"!==w&&"time"!==w&&!Ez(g,i,r)?(0===t?(n=[i,null],r=null):(i=null,n=[null,r]),ge.current=(0,N.Z)({},t,!0)):"time"===w&&!1===ce||(n=xj(n,g))),je(n);var o=n&&n[0]?Lz(n[0],{generateConfig:g,locale:m,format:ke[0]}):"",a=n&&n[1]?Lz(n[1],{generateConfig:g,locale:m,format:ke[0]}):"";Q&&Q(n,[o,a],{range:0===t?"start":"end"});var s=Ej(i,0,De,z),l=Ej(r,1,De,z);(null===n||s&&l)&&(Ae(n),!q||Nz(g,Bz(Re,0),i)&&Nz(g,Bz(Re,1),r)||q(n,[o,a]));var c=null;0!==t||De[1]?1!==t||De[0]||(c=0):c=1,null===c||c===Te||ge.current[c]&&Bz(n,c)||!Bz(n,t)?ct(!1,t):ut(c)}var ht=function(e){return et&&Ie.current&&Ie.current.onKeyDown?Ie.current.onKeyDown(e):(li(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ft={formatList:ke,generateConfig:g,locale:m},pt=vj(Bz(ze,0),ft),gt=(0,k.Z)(pt,2),vt=gt[0],mt=gt[1],yt=vj(Bz(ze,1),ft),_t=(0,k.Z)(yt,2),bt=_t[0],Ct=_t[1],St=function(e,t){var n=Oz(e,{locale:m,formatList:ke,generateConfig:g});n&&!(0===t?$e:Xe)(n)&&(je(Hz(ze,n,t)),Fe(n,t))},wt=gj({valueTexts:vt,onTextChange:function(e){return St(e,0)}}),kt=(0,k.Z)(wt,3),xt=kt[0],Et=kt[1],Tt=kt[2],Nt=gj({valueTexts:bt,onTextChange:function(e){return St(e,1)}}),It=(0,k.Z)(Nt,3),Dt=It[0],Lt=It[1],Ot=It[2],Rt=(0,v.useState)(null),At=(0,k.Z)(Rt,2),Mt=At[0],Pt=At[1],Ht=(0,v.useState)(null),zt=(0,k.Z)(Ht,2),jt=zt[0],Vt=zt[1],Wt=mj(xt,{formatList:ke,generateConfig:g,locale:m}),Ut=(0,k.Z)(Wt,3),Gt=Ut[0],Kt=Ut[1],Yt=Ut[2],qt=mj(Dt,{formatList:ke,generateConfig:g,locale:m}),$t=(0,k.Z)(qt,3),Xt=$t[0],Qt=$t[1],Jt=$t[2],en=function(e,t){return{blurToCancel:pe,forwardKeyDown:ht,onBlur:ee,isClickOutside:function(e){return!mz([me.current,ye.current,_e.current,ve.current],e)},onFocus:function(t){Ne(e),J&&J(t)},triggerOpen:function(t){ct(t,e)},onSubmit:function(){if(!ze||M&&M(ze[e]))return!1;dt(ze,e),t()},onCancel:function(){ct(!1,e),je(Re),t()}}},tn=pj((0,Ft.Z)((0,Ft.Z)({},en(0,Tt)),{},{open:nt,value:xt,onKeyDown:function(e,t){null===se||void 0===se||se(e,t)}})),nn=(0,k.Z)(tn,2),rn=nn[0],on=nn[1],an=on.focused,sn=on.typing,ln=pj((0,Ft.Z)((0,Ft.Z)({},en(1,Ot)),{},{open:it,value:Dt,onKeyDown:function(e,t){null===se||void 0===se||se(e,t)}})),cn=(0,k.Z)(ln,2),un=cn[0],dn=cn[1],hn=dn.focused,fn=dn.typing,pn=Re&&Re[0]?Lz(Re[0],{locale:m,format:"YYYYMMDDHHmmss",generateConfig:g}):"",gn=Re&&Re[1]?Lz(Re[1],{locale:m,format:"YYYYMMDDHHmmss",generateConfig:g}):"";(0,v.useEffect)((function(){et||(je(Re),vt.length&&""!==vt[0]?mt!==xt&&Tt():Et(""),bt.length&&""!==bt[0]?Ct!==Dt&&Ot():Lt(""))}),[et,vt,bt]),(0,v.useEffect)((function(){je(Re)}),[pn,gn]),U&&(U.current={focus:function(){Ce.current&&Ce.current.focus()},blur:function(){Ce.current&&Ce.current.blur(),Se.current&&Se.current.blur()}});var vn=yj(B,H);function mn(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;et&&jt&&jt[0]&&jt[1]&&g.isAfter(jt[1],jt[0])&&(i=jt);var r=x;if(x&&"object"===(0,Bt.Z)(x)&&x.defaultValue){var o=x.defaultValue;r=(0,Ft.Z)((0,Ft.Z)({},x),{},{defaultValue:Bz(o,Te)||void 0})}var s=null;return Z&&(s=function(e,t){return Z(e,t,{range:Te?"end":"start"})}),v.createElement(Uz.Provider,{value:{inRange:!0,panelPosition:t,rangedValue:Mt||ze,hoverRangedValue:i}},v.createElement(dj,Zt({},e,n,{dateRender:s,showTime:r,mode:Ue[Te],generateConfig:g,style:void 0,direction:ue,disabledDate:0===Te?$e:Xe,disabledTime:function(e){return!!P&&P(e,0===Te?"start":"end")},className:Ja()((0,N.Z)({},"".concat(a,"-panel-focused"),0===Te?!sn:!fn)),value:Bz(ze,Te),locale:m,tabIndex:-1,onPanelChange:function(e,n){0===Te&&Yt(!0),1===Te&&Jt(!0),Ke(Hz(Ue,n,Te),Hz(ze,e,Te));var i=e;"right"===t&&Ue[Te]===n&&(i=Dz(i,n,g,-1)),Fe(i,Te)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Bz(ze,0===Te?1:0)})))}var yn=0,_n=0;if(Te&&ye.current&&be.current&&me.current){yn=ye.current.offsetWidth+be.current.offsetWidth;var bn=we.current.offsetLeft>yn?we.current.offsetLeft-yn:we.current.offsetLeft;me.current.offsetWidth&&we.current.offsetWidth&&yn>me.current.offsetWidth-we.current.offsetWidth-("rtl"===ue?0:bn)&&(_n=yn)}var Cn="rtl"===ue?{right:yn}:{left:yn};var Sn,wn,kn=v.createElement("div",{className:Ja()("".concat(a,"-range-wrapper"),"".concat(a,"-").concat(w,"-range-wrapper")),style:{minWidth:at}},v.createElement("div",{ref:we,className:"".concat(a,"-range-arrow"),style:Cn}),function(){var e,t=cj(a,Ue[Te],Y),n=uj({prefixCls:a,components:le,needConfirmButton:pe,okDisabled:!Bz(ze,Te)||M&&M(ze[Te]),locale:m,onOk:function(){Bz(ze,Te)&&(dt(ze,Te),ae&&ae(ze))}});if("time"===w||x)e=mn();else{var i=Ze(Te),r=Dz(i,w,g),o=Ue[Te]===w,s=mn(!!o&&"left",{pickerValue:i,onPickerValueChange:function(e){Fe(e,Te)}}),l=mn("right",{pickerValue:r,onPickerValueChange:function(e){Fe(Dz(e,w,g,-1),Te)}});e="rtl"===ue?v.createElement(v.Fragment,null,l,o&&s):v.createElement(v.Fragment,null,s,o&&l)}var c=v.createElement("div",{className:"".concat(a,"-panel-layout")},v.createElement(_j,{prefixCls:a,presets:vn,onClick:function(e){dt(e,null),ct(!1,Te)},onHover:function(e){Pt(e)}}),v.createElement("div",null,v.createElement("div",{className:"".concat(a,"-panels")},e),(t||n)&&v.createElement("div",{className:"".concat(a,"-footer")},t,n)));return F&&(c=F(c)),v.createElement("div",{className:"".concat(a,"-panel-container"),style:{marginLeft:_n},ref:me,onMouseDown:function(e){e.preventDefault()}},c)}());V&&(Sn=v.createElement("span",{className:"".concat(a,"-suffix")},V)),j&&(Bz(Re,0)&&!De[0]||Bz(Re,1)&&!De[1])&&(wn=v.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation();var t=Re;De[0]||(t=Hz(t,null,0)),De[1]||(t=Hz(t,null,1)),dt(t,null),ct(!1,Te)},className:"".concat(a,"-clear")},W||v.createElement("span",{className:"".concat(a,"-clear-btn")})));var xn={size:fz(w,ke[0],g)},En=0,Tn=0;ye.current&&_e.current&&be.current&&(0===Te?Tn=ye.current.offsetWidth:(En=yn,Tn=_e.current.offsetWidth));var Nn="rtl"===ue?{right:En}:{left:En};return v.createElement(ez.Provider,{value:{operationRef:Ie,hideHeader:"time"===w,onDateMouseEnter:function(e){Vt(Hz(ze,e,Te)),0===Te?Kt(e):Qt(e)},onDateMouseLeave:function(){Vt(Hz(ze,null,Te)),0===Te?Yt():Jt()},hideRanges:!0,onSelect:function(e,t){var n=Hz(ze,e,Te);"submit"===t||"key"!==t&&!pe?(dt(n,Te),0===Te?Yt():Jt()):je(n)},open:et}},v.createElement(fj,{visible:et,popupElement:kn,popupStyle:u,prefixCls:a,dropdownClassName:d,dropdownAlign:f,getPopupContainer:p,transitionName:h,range:!0,direction:ue},v.createElement("div",Zt({ref:ve,className:Ja()(a,"".concat(a,"-range"),c,(t={},(0,N.Z)(t,"".concat(a,"-disabled"),De[0]&&De[1]),(0,N.Z)(t,"".concat(a,"-focused"),0===Te?an:hn),(0,N.Z)(t,"".concat(a,"-rtl"),"rtl"===ue),t)),style:l,onClick:function(e){oe&&oe(e),et||Ce.current.contains(e.target)||Se.current.contains(e.target)||(De[0]?De[1]||ut(1):ut(0))},onMouseEnter:ie,onMouseLeave:re,onMouseDown:function(e){te&&te(e),!et||!an&&!hn||Ce.current.contains(e.target)||Se.current.contains(e.target)||e.preventDefault()},onMouseUp:ne},Fz(e)),v.createElement("div",{className:Ja()("".concat(a,"-input"),(n={},(0,N.Z)(n,"".concat(a,"-input-active"),0===Te),(0,N.Z)(n,"".concat(a,"-input-placeholder"),!!Gt),n)),ref:ye},v.createElement("input",Zt({id:s,disabled:De[0],readOnly:G||"function"===typeof ke[0]||!sn,value:Gt||xt,onChange:function(e){Et(e.target.value)},autoFocus:_,placeholder:Bz(y,0)||"",ref:Ce},rn,xn,{autoComplete:fe}))),v.createElement("div",{className:"".concat(a,"-range-separator"),ref:be},I),v.createElement("div",{className:Ja()("".concat(a,"-input"),(i={},(0,N.Z)(i,"".concat(a,"-input-active"),1===Te),(0,N.Z)(i,"".concat(a,"-input-placeholder"),!!Xt),i)),ref:_e},v.createElement("input",Zt({disabled:De[1],readOnly:G||"function"===typeof ke[0]||!fn,value:Xt||Dt,onChange:function(e){Lt(e.target.value)},placeholder:Bz(y,1)||"",ref:Se},un,xn,{autoComplete:fe}))),v.createElement("div",{className:"".concat(a,"-active-bar"),style:(0,Ft.Z)((0,Ft.Z)({},Nn),{},{width:Tn,position:"absolute"})}),Sn,wn)))}var Nj=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){var e;(0,b.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return e=t.call.apply(t,[this].concat(r)),(0,N.Z)((0,Mi.Z)(e),"pickerRef",v.createRef()),(0,N.Z)((0,Mi.Z)(e),"focus",(function(){e.pickerRef.current&&e.pickerRef.current.focus()})),(0,N.Z)((0,Mi.Z)(e),"blur",(function(){e.pickerRef.current&&e.pickerRef.current.blur()})),e}return(0,C.Z)(n,[{key:"render",value:function(){return v.createElement(Tj,Zt({},this.props,{pickerRef:this.pickerRef}))}}]),n}(v.Component),Ij=Nj,Dj=Sj;function Lj(e,t,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.yearPlaceholder:"quarter"===e&&t.lang.quarterPlaceholder?t.lang.quarterPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.monthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.weekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.placeholder:t.lang.placeholder}function Oj(e,t,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.rangeYearPlaceholder:"quarter"===e&&t.lang.quarterPlaceholder?t.lang.rangeQuarterPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.rangeMonthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.rangeWeekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.rangePlaceholder:t.lang.rangePlaceholder}function Rj(e,t){var n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}var Aj=function(e,t,n,i){var r=e.lineHeight,o=Math.floor(n*r)+2,a=Math.max((t-o)/2,0);return{padding:a+"px "+i+"px "+Math.max(t-o-a,0)+"px"}},Mj=function(e){var t,n,i,r,o,a,s,l,c,u,d,h=e.componentCls,f=e.pickerCellInnerCls,p=e.pickerYearMonthCellWidth,g=e.pickerControlIconSize,v=e.pickerPanelCellWidth,m=e.paddingSM,y=e.paddingXS,_=e.colorBgContainer,b=e.lineWidth,C=e.lineType,S=e.borderRadiusLG,w=e.colorPrimary,k=e.colorTextHeading,x=e.colorSplit,E=e.pickerControlIconBorderWidth,T=e.colorIcon,I=e.pickerTextHeight,D=e.motionDurationMid,L=e.colorIconHover,O=e.fontWeightStrong,R=e.pickerPanelCellHeight,A=e.pickerCellPaddingVertical,M=e.colorTextDisabled,P=e.colorText,Z=e.fontSize,F=e.pickerBasicCellHoverWithRangeColor,B=e.motionDurationSlow,H=e.pickerPanelWithoutTimeCellHeight,z=e.pickerQuarterPanelContentHeight,j=e.colorLink,V=e.colorLinkActive,W=e.colorLinkHover,U=e.pickerDateHoverRangeBorderColor,G=e.borderRadiusSM,K=e.colorTextLightSolid,Y=e.borderRadius,q=e.controlItemBgHover,$=e.pickerTimePanelColumnHeight,X=e.pickerTimePanelColumnWidth,Q=e.pickerTimePanelCellHeight,J=e.controlItemBgActive,ee=e.marginXXS,te=7*v+2*m+4,ne=(te-2*y)/3-p/2;return(0,N.Z)({},h,(d={"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:_,border:b+"px "+C+" "+x,borderRadius:S,outline:"none","&-focused":{borderColor:w},"&-rtl":(t={direction:"rtl"},(0,N.Z)(t,h+"-prev-icon,\n "+h+"-super-prev-icon",{transform:"rotate(135deg)"}),(0,N.Z)(t,h+"-next-icon,\n "+h+"-super-next-icon",{transform:"rotate(-45deg)"}),t)}},(0,N.Z)(d,"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel",{display:"flex",flexDirection:"column",width:te}),(0,N.Z)(d,"&-header",{display:"flex",padding:"0 "+y+"px",color:k,borderBottom:b+"px "+C+" "+x,"> *":{flex:"none"},button:{padding:0,color:T,lineHeight:I+"px",background:"transparent",border:0,cursor:"pointer",transition:"color "+D},"> button":{minWidth:"1.6em",fontSize:Z,"&:hover":{color:L}},"&-view":{flex:"auto",fontWeight:O,lineHeight:I+"px",button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:y},"&:hover":{color:w}}}}),(0,N.Z)(d,"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon",{position:"relative",display:"inline-block",width:g,height:g,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:g,height:g,border:"0 solid currentcolor",borderBlockStartWidth:E,borderBlockEndWidth:0,borderInlineStartWidth:E,borderInlineEndWidth:0,content:'""'}}),(0,N.Z)(d,"&-super-prev-icon,\n &-super-next-icon",{"&::after":{position:"absolute",top:Math.ceil(g/2),insetInlineStart:Math.ceil(g/2),display:"inline-block",width:g,height:g,border:"0 solid currentcolor",borderBlockStartWidth:E,borderBlockEndWidth:0,borderInlineStartWidth:E,borderInlineEndWidth:0,content:'""'}}),(0,N.Z)(d,"&-prev-icon,\n &-super-prev-icon",{transform:"rotate(-45deg)"}),(0,N.Z)(d,"&-next-icon,\n &-super-next-icon",{transform:"rotate(135deg)"}),(0,N.Z)(d,"&-content",{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:R,fontWeight:"normal"},th:{height:R+2*A,color:P,verticalAlign:"middle"}}),(0,N.Z)(d,"&-cell",Zt({padding:A+"px 0",color:M,cursor:"pointer","&-in-view":{color:P}},function(e){var t,n,i=e.componentCls,r=e.pickerCellInnerCls,o=e.pickerPanelCellHeight,a=e.motionDurationSlow,s=e.borderRadiusSM,l=e.motionDurationMid,c=e.controlItemBgHover,u=e.lineWidth,d=e.lineType,h=e.colorPrimary,f=e.controlItemBgActive,p=e.colorTextLightSolid,g=e.controlHeightSM,v=e.pickerDateHoverRangeBorderColor,m=e.pickerCellBorderGap,y=e.pickerBasicCellHoverWithRangeColor,_=e.pickerPanelCellWidth,b=e.colorTextDisabled,C=e.colorBgContainerDisabled;return n={"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:o,transform:"translateY(-50%)",transition:"all "+a,content:'""'}},(0,N.Z)(n,r,{position:"relative",zIndex:2,display:"inline-block",minWidth:o,height:o,lineHeight:o+"px",borderRadius:s,transition:"background "+l+", border "+l}),(0,N.Z)(n,"&:hover:not(&-in-view),\n &:hover:not(&-selected):not(&-range-start):not(&-range-end):not(&-range-hover-start):not(&-range-hover-end)",(0,N.Z)({},r,{background:c})),(0,N.Z)(n,"&-in-view:is(&-today) "+r,{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:u+"px "+d+" "+h,borderRadius:s,content:'""'}}),(0,N.Z)(n,"&-in-view:is(&-in-range)",{position:"relative","&::before":{background:f}}),(0,N.Z)(n,"&-in-view:is(&-selected) "+r+",\n &-in-view:is(&-range-start) "+r+",\n &-in-view:is(&-range-end) "+r,{color:p,background:h}),(0,N.Z)(n,"&-in-view:is(&-range-start):not(&-range-start-single),\n &-in-view:is(&-range-end):not(&-range-end-single)",{"&::before":{background:f}}),(0,N.Z)(n,"&-in-view:is(&-range-start)::before",{insetInlineStart:"50%"}),(0,N.Z)(n,"&-in-view:is(&-range-end)::before",{insetInlineEnd:"50%"}),(0,N.Z)(n,"&-in-view:is(&-range-hover-start):not(&-in-range):not(&-range-start):not(&-range-end),\n &-in-view:is(&-range-hover-end):not(&-in-range):not(&-range-start):not(&-range-end),\n &-in-view:is(&-range-hover-start):is(&-range-start-single),\n &-in-view:is(&-range-hover-start):is(&-range-start):is(&-range-end):is(&-range-end-near-hover),\n &-in-view:is(&-range-hover-end):is(&-range-start):is(&-range-end):is(&-range-start-near-hover),\n &-in-view:is(&-range-hover-end):is(&-range-end-single),\n &-in-view:is(&-range-hover):not(&-in-range)",{"&::after":{position:"absolute",top:"50%",zIndex:0,height:g,borderTop:u+"px dashed "+v,borderBottom:u+"px dashed "+v,transform:"translateY(-50%)",transition:"all "+a,content:'""'}}),(0,N.Z)(n,"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after",{insetInlineEnd:0,insetInlineStart:m}),(0,N.Z)(n,"&-in-view:is(&-in-range):is(&-range-hover)::before,\n &-in-view:is(&-range-start):is(&-range-hover)::before,\n &-in-view:is(&-range-end):is(&-range-hover)::before,\n &-in-view:is(&-range-start):not(&-range-start-single):is(&-range-hover-start)::before,\n &-in-view:is(&-range-end):not(&-range-end-single):is(&-range-hover-end)::before,\n "+i+"-panel\n > :not("+i+"-date-panel)\n &-in-view:is(&-in-range):is(&-range-hover-start)::before,\n "+i+"-panel\n > :not("+i+"-date-panel)\n &-in-view:is(&-in-range):is(&-range-hover-end)::before",{background:y}),(0,N.Z)(n,"&-in-view:is(&-range-start):not(&-range-start-single):not(&-range-end) "+r,{borderStartStartRadius:s,borderEndStartRadius:s,borderStartEndRadius:0,borderEndEndRadius:0}),(0,N.Z)(n,"&-in-view:is(&-range-end):not(&-range-end-single):not(&-range-start) "+r,{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:s,borderEndEndRadius:s}),(0,N.Z)(n,"&-range-hover:is(&-range-end)::after",{insetInlineStart:"50%"}),(0,N.Z)(n,"tr > &-in-view:is(&-range-hover):first-child::after,\n tr > &-in-view:is(&-range-hover-end):first-child::after,\n &-in-view:is(&-start):is(&-range-hover-edge-start):is(&-range-hover-edge-start-near-range)::after,\n &-in-view:is(&-range-hover-edge-start):not(&-range-hover-edge-start-near-range)::after,\n &-in-view:is(&-range-hover-start)::after",{insetInlineStart:(_-o)/2,borderInlineStart:u+"px dashed "+v,borderStartStartRadius:u,borderEndStartRadius:u}),(0,N.Z)(n,"tr > &-in-view:is(&-range-hover):last-child::after,\n tr > &-in-view:is(&-range-hover-start):last-child::after,\n &-in-view:is(&-end):is(&-range-hover-edge-end):is(&-range-hover-edge-end-near-range)::after,\n &-in-view:is(&-range-hover-edge-end):not(&-range-hover-edge-end-near-range)::after,\n &-in-view:is(&-range-hover-end)::after",{insetInlineEnd:(_-o)/2,borderInlineEnd:u+"px dashed "+v,borderStartEndRadius:u,borderEndEndRadius:u}),(0,N.Z)(n,"&-disabled",(t={color:b,pointerEvents:"none"},(0,N.Z)(t,r,{background:"transparent"}),(0,N.Z)(t,"&::before",{background:C}),t)),(0,N.Z)(n,"&-disabled:is(&-today) "+r+"::before",{borderColor:b}),n}(e))),(0,N.Z)(d,"&-date-panel "+h+"-cell-in-view"+h+"-cell-in-range"+h+"-cell-range-hover-start "+f+",\n &-date-panel "+h+"-cell-in-view"+h+"-cell-in-range"+h+"-cell-range-hover-end "+f,{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:F,transition:"all "+B,content:'""'}}),(0,N.Z)(d,"&-date-panel\n "+h+"-cell-in-view"+h+"-cell-in-range"+h+"-cell-range-hover-start\n "+f+"::after",{insetInlineEnd:(v-R)/2,insetInlineStart:0}),(0,N.Z)(d,"&-date-panel "+h+"-cell-in-view"+h+"-cell-in-range"+h+"-cell-range-hover-end "+f+"::after",{insetInlineEnd:0,insetInlineStart:(v-R)/2}),(0,N.Z)(d,"&-range-hover:is(&-range-start)::after",{insetInlineEnd:"50%"}),(0,N.Z)(d,"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel",(n={},(0,N.Z)(n,h+"-content",{height:4*H}),(0,N.Z)(n,f,{padding:"0 "+y+"px"}),n)),(0,N.Z)(d,"&-quarter-panel",(0,N.Z)({},h+"-content",{height:z})),(0,N.Z)(d,"&-panel "+h+"-footer",{borderTop:b+"px "+C+" "+x}),(0,N.Z)(d,"&-footer",{width:"min-content",minWidth:"100%",lineHeight:I-2*b+"px",textAlign:"center","&-extra":{padding:"0 "+m,lineHeight:I-2*b+"px",textAlign:"start","&:not(:last-child)":{borderBottom:b+"px "+C+" "+x}}}),(0,N.Z)(d,"&-now",{textAlign:"start"}),(0,N.Z)(d,"&-today-btn",{color:j,"&:hover":{color:W},"&:active":{color:V},"&:is(&-disabled)":{color:M,cursor:"not-allowed"}}),(0,N.Z)(d,"&-decade-panel",(i={},(0,N.Z)(i,f,{padding:"0 "+y/2+"px"}),(0,N.Z)(i,h+"-cell::before",{display:"none"}),i)),(0,N.Z)(d,"&-year-panel,\n &-quarter-panel,\n &-month-panel",(r={},(0,N.Z)(r,h+"-body",{padding:"0 "+y+"px"}),(0,N.Z)(r,f,{width:p}),(0,N.Z)(r,h+"-cell-range-hover-start::after",(0,N.Z)({insetInlineStart:ne,borderInlineStart:b+"px dashed "+U,borderStartStartRadius:G,borderBottomStartRadius:G,borderStartEndRadius:0,borderBottomEndRadius:0},h+"-panel-rtl &",{insetInlineEnd:ne,borderInlineEnd:b+"px dashed "+U,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:G,borderBottomEndRadius:G})),(0,N.Z)(r,h+"-cell-range-hover-end::after",(0,N.Z)({insetInlineEnd:ne,borderInlineEnd:b+"px dashed "+U,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:Y,borderBottomEndRadius:Y},h+"-panel-rtl &",{insetInlineStart:ne,borderInlineStart:b+"px dashed "+U,borderStartStartRadius:Y,borderBottomStartRadius:Y,borderStartEndRadius:0,borderBottomEndRadius:0})),r)),(0,N.Z)(d,"&-week-panel",(a={},(0,N.Z)(a,h+"-body",{padding:y+"px "+m+"px"}),(0,N.Z)(a,h+"-cell",(0,N.Z)({},"&:hover "+f+",\n &-selected "+f+",\n "+f,{background:"transparent !important"})),(0,N.Z)(a,"&-row",(0,N.Z)({td:{transition:"background "+D,"&:first-child":{borderStartStartRadius:G,borderEndStartRadius:G},"&:last-child":{borderStartEndRadius:G,borderEndEndRadius:G}},"&:hover td":{background:q}},"&-selected td,\n &-selected:hover td",(o={background:w},(0,N.Z)(o,"&"+h+"-cell-week",{color:new oa(K).setAlpha(.5).toHexString()}),(0,N.Z)(o,"&"+h+"-cell-today "+f+"::before",{borderColor:K}),(0,N.Z)(o,f,{color:K}),o))),a)),(0,N.Z)(d,"&-date-panel",(s={},(0,N.Z)(s,h+"-body",{padding:y+"px "+m+"px"}),(0,N.Z)(s,h+"-content",{width:7*v,th:{width:v}}),s)),(0,N.Z)(d,"&-datetime-panel",(l={display:"flex"},(0,N.Z)(l,h+"-time-panel",{borderInlineStart:b+"px "+C+" "+x}),(0,N.Z)(l,h+"-date-panel,\n "+h+"-time-panel",{transition:"opacity "+B}),(0,N.Z)(l,"&-active",(0,N.Z)({},h+"-date-panel,\n "+h+"-time-panel",{opacity:.3,"&-active":{opacity:1}})),l)),(0,N.Z)(d,"&-time-panel",(u={width:"auto",minWidth:"auto",direction:"ltr"},(0,N.Z)(u,h+"-content",{display:"flex",flex:"auto",height:$}),(0,N.Z)(u,"&-column",{flex:"1 0 auto",width:X,margin:0,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:"background "+D,overflowX:"hidden","&::after":(0,N.Z)({display:"block",height:$-Q,content:'""'},h+"-datetime-panel &",{height:$-H+2*b}),"&:not(:first-child)":{borderInlineStart:b+"px "+C+" "+x},"&-active":{background:new oa(J).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":(0,N.Z)({margin:0,padding:0},"&"+h+"-time-panel-cell",(c={marginInline:ee},(0,N.Z)(c,h+"-time-panel-cell-inner",{display:"block",width:X-2*ee,height:Q,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(X-Q)/2,color:P,lineHeight:Q+"px",borderRadius:G,cursor:"pointer",transition:"background "+D,"&:hover":{background:q}}),(0,N.Z)(c,"&-selected",(0,N.Z)({},h+"-time-panel-cell-inner",{background:J})),(0,N.Z)(c,"&-disabled",(0,N.Z)({},h+"-time-panel-cell-inner",{color:M,background:"transparent",cursor:"not-allowed"})),c))}),u)),d))},Pj=function(e){var t=e.componentCls,n=e.colorBgContainer,i=e.colorError,r=e.colorErrorOutline,o=e.colorWarning,a=e.colorWarningOutline;return(0,N.Z)({},t,{"&-status-error&":(0,N.Z)({"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:i},"&-focused, &:focus":Zt({},ym(cs(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:r})))},t+"-active-bar",{background:i}),"&-status-warning&":(0,N.Z)({"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:o},"&-focused, &:focus":Zt({},ym(cs(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a})))},t+"-active-bar",{background:o})})},Zj=function(e){var t,n,i,r,o,a,s,l,c,u,d=e.componentCls,h=e.antCls,f=e.boxShadowPopoverArrow,p=e.controlHeight,g=e.fontSize,v=e.inputPaddingHorizontal,m=e.colorBgContainer,y=e.lineWidth,_=e.lineType,b=e.colorBorder,C=e.borderRadius,S=e.motionDurationMid,w=e.colorBgContainerDisabled,k=e.colorTextDisabled,x=e.colorTextPlaceholder,E=e.controlHeightLG,T=e.fontSizeLG,I=e.controlHeightSM,D=e.inputPaddingHorizontalSM,L=e.paddingXS,O=e.marginXS,R=e.colorTextDescription,A=e.lineWidthBold,M=e.lineHeight,P=e.colorPrimary,Z=e.motionDurationSlow,F=e.zIndexPopup,B=e.paddingXXS,H=e.paddingSM,z=e.pickerTextHeight,j=e.controlItemBgActive,V=e.colorPrimaryBorder,W=e.sizePopupArrow,U=e.borderRadiusXS,G=e.borderRadiusOuter,K=e.colorBgElevated,Y=e.borderRadiusLG,q=e.boxShadowSecondary,$=e.borderRadiusSM,X=e.colorSplit,Q=e.controlItemBgHover,J=e.presetsWidth,ee=e.presetsMaxWidth;return[(0,N.Z)({},d,Zt(Zt(Zt(Zt(Zt({},Fa(e)),Aj(e,p,g,v)),{position:"relative",display:"inline-flex",alignItems:"center",background:m,border:y+"px "+_+" "+b,borderRadius:C,transition:"border "+S+", box-shadow "+S}),Tg(e,d,"",d+"-focused")),(u={"&:hover, &-focused":Zt({},mm(e)),"&-focused":Zt({},ym(e)),"&&-disabled":(0,N.Z)({background:w,borderColor:b,cursor:"not-allowed"},d+"-suffix",{color:k}),"&&-borderless":{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"}},(0,N.Z)(u,d+"-input",{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Zt(Zt({},wm(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":(0,N.Z)({},d+"-clear",{opacity:1}),"&-placeholder":{"> input":{color:x}}}),(0,N.Z)(u,"&-large",Zt(Zt({},Aj(e,E,T,v)),(0,N.Z)({},d+"-input > input",{fontSize:T}))),(0,N.Z)(u,"&-small",Zt({},Aj(e,I,g,D))),(0,N.Z)(u,d+"-suffix",{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:L/2,color:k,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:O}}}),(0,N.Z)(u,d+"-clear",{position:"absolute",top:"50%",insetInlineEnd:0,color:k,lineHeight:1,background:m,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:"opacity "+S+", color "+S,"> *":{verticalAlign:"top"},"&:hover":{color:R}}),(0,N.Z)(u,d+"-separator",(t={position:"relative",display:"inline-block",width:"1em",height:T,color:k,fontSize:T,verticalAlign:"top",cursor:"default"},(0,N.Z)(t,d+"-focused &",{color:R}),(0,N.Z)(t,d+"-range-separator &",(0,N.Z)({},d+"-disabled &",{cursor:"not-allowed"})),t)),(0,N.Z)(u,"&-range",(i={position:"relative",display:"inline-flex"},(0,N.Z)(i,d+"-clear",{insetInlineEnd:v}),(0,N.Z)(i,"&:hover",(0,N.Z)({},d+"-clear",{opacity:1})),(0,N.Z)(i,d+"-active-bar",{bottom:-y,height:A,marginInlineStart:v,background:P,opacity:0,transition:"all "+Z+" ease-out",pointerEvents:"none"}),(0,N.Z)(i,"&"+d+"-focused",(0,N.Z)({},d+"-active-bar",{opacity:1})),(0,N.Z)(i,d+"-range-separator",{alignItems:"center",padding:"0 "+L+"px",lineHeight:1}),(0,N.Z)(i,"&"+d+"-small",(n={},(0,N.Z)(n,d+"-clear",{insetInlineEnd:D}),(0,N.Z)(n,d+"-active-bar",{marginInlineStart:D}),n)),i)),(0,N.Z)(u,"&-dropdown",Zt(Zt(Zt({},Fa(e)),Mj(e)),(l={position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:F,"&&-hidden":{display:"none"},"&&-placement-bottomLeft":(0,N.Z)({},d+"-range-arrow",{top:0,display:"block",transform:"translateY(-100%)"}),"&&-placement-topLeft":(0,N.Z)({},d+"-range-arrow",{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"})},(0,N.Z)(l,"&"+h+"-slide-up-enter"+h+"-slide-up-enter-active&-placement-topLeft,\n &"+h+"-slide-up-enter"+h+"-slide-up-enter-active&-placement-topRight,\n &"+h+"-slide-up-appear"+h+"-slide-up-appear-active&-placement-topLeft,\n &"+h+"-slide-up-appear"+h+"-slide-up-appear-active&-placement-topRight",{animationName:jb}),(0,N.Z)(l,"&"+h+"-slide-up-enter"+h+"-slide-up-enter-active&-placement-bottomLeft,\n &"+h+"-slide-up-enter"+h+"-slide-up-enter-active&-placement-bottomRight,\n &"+h+"-slide-up-appear"+h+"-slide-up-appear-active&-placement-bottomLeft,\n &"+h+"-slide-up-appear"+h+"-slide-up-appear-active&-placement-bottomRight",{animationName:Hb}),(0,N.Z)(l,"&"+h+"-slide-up-leave"+h+"-slide-up-leave-active&-placement-topLeft,\n &"+h+"-slide-up-leave"+h+"-slide-up-leave-active&-placement-topRight",{animationName:Vb}),(0,N.Z)(l,"&"+h+"-slide-up-leave"+h+"-slide-up-leave-active&-placement-bottomLeft,\n &"+h+"-slide-up-leave"+h+"-slide-up-leave-active&-placement-bottomRight",{animationName:zb}),(0,N.Z)(l,d+"-panel > "+d+"-time-panel",{paddingTop:B}),(0,N.Z)(l,d+"-ranges",(r={marginBottom:0,padding:B+"px "+H+"px",overflow:"hidden",lineHeight:z-2*y-L/2+"px",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"}},(0,N.Z)(r,d+"-preset > "+h+"-tag-blue",{color:P,background:j,borderColor:V,cursor:"pointer"}),(0,N.Z)(r,d+"-ok",{marginInlineStart:"auto"}),r)),(0,N.Z)(l,d+"-range-wrapper",{display:"flex",position:"relative"}),(0,N.Z)(l,d+"-range-arrow",Zt({position:"absolute",zIndex:1,display:"none",marginInlineStart:1.5*v,transition:"left "+Z+" ease-out"},If(W,U,G,K,f))),(0,N.Z)(l,d+"-panel-container",(s={overflow:"hidden",verticalAlign:"top",background:K,borderRadius:Y,boxShadow:q,transition:"margin "+Z},(0,N.Z)(s,d+"-panel-layout",{display:"flex",flexWrap:"nowrap",alignItems:"stretch"}),(0,N.Z)(s,d+"-presets",{display:"flex",flexDirection:"column",minWidth:J,maxWidth:ee,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:L,borderInlineEnd:y+"px "+_+" "+X,li:Zt(Zt({},Za),{borderRadius:$,paddingInline:L,paddingBlock:(I-Math.round(g*M))/2,cursor:"pointer",transition:"all "+Z,"+ li":{marginTop:O},"&:hover":{background:Q}})}}),(0,N.Z)(s,d+"-panels",(o={display:"inline-flex",flexWrap:"nowrap",direction:"ltr"},(0,N.Z)(o,d+"-panel",{borderWidth:"0 0 "+y+"px"}),(0,N.Z)(o,"&:last-child",(0,N.Z)({},d+"-panel",{borderWidth:0})),o)),(0,N.Z)(s,d+"-panel",(a={verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0},(0,N.Z)(a,d+"-content,\n table",{textAlign:"center"}),(0,N.Z)(a,"&-focused",{borderColor:b}),a)),s)),l))),(0,N.Z)(u,"&-dropdown-range",{padding:2*W/3+"px 0","&-hidden":{display:"none"}}),(0,N.Z)(u,"&-rtl",(c={direction:"rtl"},(0,N.Z)(c,d+"-separator",{transform:"rotate(180deg)"}),(0,N.Z)(c,d+"-footer",{"&-extra":{direction:"rtl"}}),c)),u))),qb(e,"slide-up"),qb(e,"slide-down"),DC(e,"move-up"),DC(e,"move-down")]},Fj=hs("DatePicker",(function(e){var t=cs(Im(e),function(e){var t=e.componentCls,n=e.controlHeightLG,i=e.controlHeightSM,r=e.colorPrimary,o=e.paddingXXS;return{pickerCellInnerCls:t+"-cell-inner",pickerTextHeight:n,pickerPanelCellWidth:1.5*i,pickerPanelCellHeight:i,pickerDateHoverRangeBorderColor:new oa(r).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new oa(r).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:1.65*n,pickerYearMonthCellWidth:1.5*n,pickerTimePanelColumnHeight:224,pickerTimePanelColumnWidth:1.4*n,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:1.4*n,pickerCellPaddingVertical:o,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}}(e));return[Zj(t),Pj(t)]}),(function(e){return{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}})),Bj=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};var Hj=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};var zj={button:function(e){return v.createElement(Jg,Zt({size:"small",type:"primary"},e))}};function jj(e){var t=e.format,n=e.picker,i=e.showHour,r=e.showMinute,o=e.showSecond,a=e.use12Hours,s=function(e){return e?Array.isArray(e)?e:[e]:[]}(t)[0],l=Zt({},e);return s&&"string"===typeof s&&(s.includes("s")||void 0!==o||(l.showSecond=!1),s.includes("m")||void 0!==r||(l.showMinute=!1),s.includes("H")||s.includes("h")||void 0!==i||(l.showHour=!1),(s.includes("a")||s.includes("A"))&&void 0===a&&(l.use12Hours=!0)),"time"===n?l:("function"===typeof s&&delete l.format,{showTime:l})}as("bottomLeft","bottomRight","topLeft","topRight");var Vj=function(e){var t=function(e){function t(t,n){var i=(0,v.forwardRef)((function(n,i){var r=n.prefixCls,o=n.getPopupContainer,a=n.className,s=n.size,l=n.bordered,c=void 0===l||l,u=n.placement,d=n.placeholder,h=n.popupClassName,f=n.dropdownClassName,p=n.disabled,g=n.status,m=Hj(n,["prefixCls","getPopupContainer","className","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status"]),y=(0,v.useContext)(wa),_=y.getPrefixCls,b=y.direction,C=y.getPopupContainer,S=_("picker",r),w=tg(S,b),x=w.compactSize,E=w.compactItemClassnames,T=v.useRef(null),I=n.format,D=n.showTime,L=Fj(S),O=(0,k.Z)(L,2),R=O[0],A=O[1];(0,v.useImperativeHandle)(i,(function(){return{focus:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.blur()}}}));var M={showToday:!0},P={};t&&(P.picker=t);var Z=t||n.picker;P=Zt(Zt(Zt({},P),D?jj(Zt({format:I,picker:Z},D)):{}),"time"===Z?jj(Zt(Zt({format:I},n),{picker:Z})):{});var F=_(),B=v.useContext(Pa),H=x||s||B,z=v.useContext(Ia),j=null!==p&&void 0!==p?p:z,V=(0,v.useContext)(Sl),W=V.hasFeedback,U=V.status,G=V.feedbackIcon,K=v.createElement(v.Fragment,null,"time"===Z?v.createElement($H,null):v.createElement(KH,null),W&&G);return R(v.createElement(So,{componentName:"DatePicker",defaultLocale:po},(function(t){var i,r=Zt(Zt({},t),n.locale);return v.createElement(Dj,Zt({ref:T,placeholder:Lj(Z,r,d),suffixIcon:K,dropdownAlign:Rj(b,u),clearIcon:v.createElement(Lu,null),prevIcon:v.createElement("span",{className:S+"-prev-icon"}),nextIcon:v.createElement("span",{className:S+"-next-icon"}),superPrevIcon:v.createElement("span",{className:S+"-super-prev-icon"}),superNextIcon:v.createElement("span",{className:S+"-super-next-icon"}),allowClear:!0,transitionName:F+"-slide-up"},M,m,P,{locale:r.lang,className:Ja()((i={},(0,N.Z)(i,S+"-"+H,H),(0,N.Z)(i,S+"-borderless",!c),i),zm(S,jm(U,g),W),A,E,a),prefixCls:S,getPopupContainer:o||C,generateConfig:e,components:zj,direction:b,disabled:j,dropdownClassName:Ja()(A,h||f)}))})))}));return n&&(i.displayName=n),i}return{DatePicker:t(),WeekPicker:t("week","WeekPicker"),MonthPicker:t("month","MonthPicker"),YearPicker:t("year","YearPicker"),TimePicker:t("time","TimePicker"),QuarterPicker:t("quarter","QuarterPicker")}}(e),n=t.DatePicker,i=t.WeekPicker,r=t.MonthPicker,o=t.YearPicker,a=t.TimePicker,s=t.QuarterPicker,l=function(e){var t=(0,v.forwardRef)((function(t,n){var i=t.prefixCls,r=t.getPopupContainer,o=t.className,a=t.placement,s=t.size,l=t.disabled,c=t.bordered,u=void 0===c||c,d=t.placeholder,h=t.popupClassName,f=t.dropdownClassName,p=t.status,g=Bj(t,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status"]),m=v.useRef(null),y=(0,v.useContext)(wa),_=y.getPrefixCls,b=y.direction,C=y.getPopupContainer,S=_("picker",i),w=tg(S,b),x=w.compactSize,E=w.compactItemClassnames,T=t.format,I=t.showTime,D=t.picker,L=_(),O=Fj(S),R=(0,k.Z)(O,2),A=R[0],M=R[1],P={};P=Zt(Zt(Zt({},P),I?jj(Zt({format:T,picker:D},I)):{}),"time"===D?jj(Zt(Zt({format:T},t),{picker:D})):{});var Z=v.useContext(Pa),F=x||s||Z,B=v.useContext(Ia),H=null!==l&&void 0!==l?l:B,z=(0,v.useContext)(Sl),j=z.hasFeedback,V=z.status,W=z.feedbackIcon,U=v.createElement(v.Fragment,null,"time"===D?v.createElement($H,null):v.createElement(KH,null),j&&W);return(0,v.useImperativeHandle)(n,(function(){return{focus:function(){var e;return null===(e=m.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=m.current)||void 0===e?void 0:e.blur()}}})),A(v.createElement(So,{componentName:"DatePicker",defaultLocale:po},(function(n){var i,s=Zt(Zt({},n),t.locale);return v.createElement(Ij,Zt({separator:v.createElement("span",{"aria-label":"to",className:S+"-separator"},v.createElement(JH,null)),disabled:H,ref:m,dropdownAlign:Rj(b,a),placeholder:Oj(D,s,d),suffixIcon:U,clearIcon:v.createElement(Lu,null),prevIcon:v.createElement("span",{className:S+"-prev-icon"}),nextIcon:v.createElement("span",{className:S+"-next-icon"}),superPrevIcon:v.createElement("span",{className:S+"-super-prev-icon"}),superNextIcon:v.createElement("span",{className:S+"-super-next-icon"}),allowClear:!0,transitionName:L+"-slide-up"},g,P,{className:Ja()((i={},(0,N.Z)(i,S+"-"+F,F),(0,N.Z)(i,S+"-borderless",!u),i),zm(S,jm(V,p),j),M,E,o),locale:s.lang,prefixCls:S,getPopupContainer:r||C,generateConfig:e,components:zj,direction:b,dropdownClassName:Ja()(M,h||f)}))})))}));return t}(e),c=n;return c.WeekPicker=i,c.MonthPicker=r,c.YearPicker=o,c.RangePicker=l,c.TimePicker=a,c.QuarterPicker=s,c},Wj=Vj(WH),Uj=SC(Wj,"picker");Wj._InternalPanelDoNotUseOrYouWillBeFired=Uj;var Gj=Wj,Kj=Gj.RangePicker,Yj=ip.useForm,qj=(0,v.forwardRef)((function(e,t){var n=Pt(),i=(0,k.Z)(n,1)[0],r=ut(),o=Yj(),a=(0,k.Z)(o,1)[0],s=(0,v.useState)(),l=(0,k.Z)(s,2),c=l[0],u=l[1],d=(0,v.useState)(!1),h=(0,k.Z)(d,2),f=h[0],p=h[1],g=TM({onRequest:function(e){console.log("param",e);var t=a.getFieldValue("range")||[],n=(0,k.Z)(t,2),i=n[0],o=n[1];return function(e,t){return kk({url:"/api/v1/device/".concat(e,"/thing-model/history-property?code=").concat(t.code,"&range=").concat(t.start,"&range=").concat(t.end,"&page=").concat(t.page,"&pageSize=").concat(t.pageSize)})}(r.id,(0,Ft.Z)((0,Ft.Z)({},e),{},{code:null===c||void 0===c?void 0:c.code,start:null===i||void 0===i?void 0:i.valueOf(),end:null===o||void 0===o?void 0:o.valueOf()}))}}),m=g.loading,y=g.dataSource,_=g.pagination,b=g.search;return(0,v.useImperativeHandle)(t,(function(){return{open:function(e){u(e),p(!0),b()}}}),[r]),(0,v.useEffect)((function(){var e=Number(i.get("start_at")),t=Number(i.get("end_at"));e&&t&&a.setFieldValue("range",[ux()(e),ux()(t)])}),[]),(0,ES.jsxs)(gm,{title:"\u529f\u80fd\u5386\u53f2\u6570\u636e",open:f,footer:null,width:1e3,onCancel:function(){p(!1)},children:[(0,ES.jsxs)(ip,{layout:"inline",className:"mb5",children:[(0,ES.jsx)(ip.Item,{label:"\u529f\u80fd\u540d\u79f0",children:null===c||void 0===c?void 0:c.name}),(0,ES.jsx)(ip.Item,{label:"\u6807\u8bc6\u7b26",children:null===c||void 0===c?void 0:c.code}),(0,ES.jsx)(ip.Item,{label:"\u6570\u636e\u7c7b\u578b",children:null===c||void 0===c?void 0:c.data_type})]}),(0,ES.jsxs)(ip,{layout:"inline",className:"mb10",form:a,children:[(0,ES.jsx)(ip.Item,{name:"range",initialValue:[ux()().add(-1,"hours"),ux()()],children:(0,ES.jsx)(Kj,{format:"YYYY-MM-DD HH:mm:ss",placeholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],onOpenChange:function(e){e&&a.setFieldValue("range",[])},showTime:{hideDisabledOptions:!0,defaultValue:[ux()(ux()().format("YYYY-MM-DD")),ux()(ux()().format("YYYY-MM-DD"))]},presets:[{label:"\u6700\u8fd11\u5c0f\u65f6",value:[ux()().add(-1,"hours"),ux()()]},{label:"\u6700\u8fd13\u5c0f\u65f6",value:[ux()().add(-3,"hours"),ux()()]},{label:"\u6700\u8fd124\u5c0f\u65f6",value:[ux()().add(-24,"hours"),ux()()]}]})}),(0,ES.jsxs)(ip.Item,{children:[(0,ES.jsx)(Jg,{type:"primary",onClick:function(){b()},children:"\u67e5\u8be2"}),(0,ES.jsx)(Jg,{className:"ml10",onClick:function(){a.resetFields()},children:"\u91cd\u7f6e"})]})]}),(0,ES.jsx)(YA,{bordered:!0,size:"small",scroll:{y:400},loading:m,dataSource:y,pagination:_,rowKey:"time",columns:[{title:"\u65f6\u95f4",key:"time",dataIndex:"time",width:500,render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u539f\u59cb\u503c",key:"value",dataIndex:"value"}]})]})})),$j=sE.Text,Xj=sE.Title,Qj=function(){var e=ut(),t=Pt(),n=(0,k.Z)(t,1)[0],i=(0,v.useRef)(),r=(0,v.useRef)(null),o=(0,v.useState)([]),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useCallback)((function(){(function(e){return kk({url:"/api/v1/device/".concat(e,"/thing-model/property?last=true")})})(e.id).then((function(e){if(e.success){l(e.result);var t=n.get("code");if(console.log("code",t),t){var i,o=e.result.find((function(e){return e.code===t}));console.log("item",o,null===(i=r.current)||void 0===i?void 0:i.open),o&&setTimeout((function(){var e;return null===(e=r.current)||void 0===e?void 0:e.open(o)}),0)}}}))}),[e]);return(0,v.useEffect)((function(){return d?i.current=setInterval((function(){f()}),3e3):clearInterval(i.current),function(){clearInterval(i.current)}}),[d]),(0,v.useEffect)((function(){f()}),[]),s.length?(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(qj,{ref:r}),(0,ES.jsx)("div",{className:"mb10",style:{display:"flex",justifyContent:"flex-end"},children:(0,ES.jsx)(ip,{layout:"inline",children:(0,ES.jsx)(ip.Item,{label:"\u5b9e\u65f6\u5237\u65b0",children:(0,ES.jsx)(bH,{checked:d,onChange:h})})})}),(0,ES.jsx)(mZ,{gutter:[6,6],children:s.map((function(e,t){return(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsxs)(AT,{hoverable:!0,size:"small",children:[(0,ES.jsxs)("div",{className:"justify-space-between",children:[(0,ES.jsx)("div",{children:(0,ES.jsx)($j,{style:{color:"#87909d",fontSize:13},children:e.name})}),(0,ES.jsx)("div",{children:(0,ES.jsxs)($j,{className:"on-hover",style:{fontSize:12},onClick:function(){var t;null===(t=r.current)||void 0===t||t.open(e)},children:[(0,ES.jsx)(TH,{className:"mr5"}),"\u5386\u53f2\u6570\u636e"]})})]}),(0,ES.jsx)("div",{className:"mt10 mb20",children:(0,ES.jsxs)(Xj,{level:5,ellipsis:{tooltip:(0,AP.isNull)(e.value)?"-":String(e.value)},children:[(0,AP.isNull)(e.value)?"-":String(e.value),e.unit&&(0,ES.jsxs)(ES.Fragment,{children:[" (",e.unit,")"]})]})}),(0,ES.jsx)("div",{className:"mt20",children:(0,ES.jsxs)($j,{type:"secondary",style:{fontSize:12},children:[ux()(e.time).format("YYYY-MM-DD HH:mm:ss"),(0,ES.jsx)(kH,{type:"vertical"}),e.data_type,(0,ES.jsx)(kH,{type:"vertical"}),"R"===e.access_mode&&"\u53ea\u8bfb","RW"===e.access_mode&&"\u8bfb\u5199"]})})]})},t)}))})]}):(0,ES.jsx)(aI,{})},Jj=Gj.RangePicker,eV=ip.useForm,tV=function(e){var t=e.events,n=ut(),i=Pt(),r=(0,k.Z)(i,1)[0],o=eV(),a=(0,k.Z)(o,1)[0];console.log("events",t);var s=TM({onRequest:function(e){console.log("param",e);var t=a.getFieldValue("range")||[],i=(0,k.Z)(t,2),r=i[0],o=i[1],s=a.getFieldValue("eventCode");return function(e){var t=e.id,n=e.eventCode,i=e.start,r=e.end,o=e.page,a=e.pageSize;return kk({url:"/api/v1/device/".concat(t,"/thing-model/event?eventCode=").concat(n,"&range=").concat(i,"&range=").concat(r,"&page=").concat(o,"&pageSize=").concat(a)})}((0,Ft.Z)((0,Ft.Z)({},e),{},{id:(null===n||void 0===n?void 0:n.id)||"",start:null===r||void 0===r?void 0:r.valueOf(),end:null===o||void 0===o?void 0:o.valueOf(),eventCode:s||""}))}}),l=s.loading,c=s.dataSource,u=s.pagination,d=s.search;return(0,v.useEffect)((function(){var e=r.get("code");e&&a.setFieldValue("eventCode",e);var t=Number(r.get("start_at")),n=Number(r.get("end_at"));t&&n&&a.setFieldValue("range",[ux()(t),ux()(n)])}),[]),(0,ES.jsxs)("div",{children:[(0,ES.jsxs)(ip,{layout:"inline",form:a,initialValues:{range:[ux()().add(-1,"hours"),ux()()],eventCode:void 0},children:[(0,ES.jsx)(ip.Item,{name:"eventCode",children:(0,ES.jsx)(NI,{style:{width:150},placeholder:"\u8bf7\u9009\u62e9\u6807\u8bc6\u7b26",options:t.map((function(e){var t=e.code;return{value:t,label:t}}))})}),(0,ES.jsx)(ip.Item,{name:"range",children:(0,ES.jsx)(Jj,{format:"YYYY-MM-DD HH:mm:ss",placeholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],onOpenChange:function(e){e&&a.setFieldValue("range",[])},showTime:{hideDisabledOptions:!0,defaultValue:[ux()(ux()().format("YYYY-MM-DD")),ux()(ux()().format("YYYY-MM-DD"))]},presets:[{label:"\u6700\u8fd11\u5c0f\u65f6",value:[ux()().add(-1,"hours"),ux()()]},{label:"\u6700\u8fd13\u5c0f\u65f6",value:[ux()().add(-3,"hours"),ux()()]},{label:"\u6700\u8fd124\u5c0f\u65f6",value:[ux()().add(-24,"hours"),ux()()]}]})}),(0,ES.jsxs)(ip.Item,{children:[(0,ES.jsx)(Jg,{type:"primary",onClick:function(){d()},children:"\u67e5\u8be2"}),(0,ES.jsx)(Jg,{className:"ml10",onClick:function(){a.resetFields()},children:"\u91cd\u7f6e"})]})]}),(0,ES.jsx)(YA,{className:"mt10",bordered:!0,size:"small",rowKey:"id",loading:l,pagination:u,dataSource:null===c||void 0===c?void 0:c.map((function(e,t){return(0,Ft.Z)({id:t},e)})),columns:[{title:"\u65f6\u95f4",key:"report_time",dataIndex:"report_time",render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u6807\u8bc6\u7b26",key:"event_code",dataIndex:"event_code"},{title:"\u4e8b\u4ef6\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u4e8b\u4ef6\u7c7b\u578b",key:"event_type",dataIndex:"event_type"},{title:"\u8f93\u51fa\u53c2\u6570",key:"output_data",dataIndex:"output_data",render:function(e){return JSON.stringify(e)}}]})]})},nV=Gj.RangePicker,iV=ip.useForm,rV=function(e){var t=e.actions,n=ut(),i=iV(),r=(0,k.Z)(i,1)[0];console.log("actions",t);var o=TM({onRequest:function(e){var t=r.getFieldValue("range")||[],i=(0,k.Z)(t,2),o=i[0],a=i[1],s=r.getFieldValue("code");return function(e){var t=e.id,n=e.code,i=e.start,r=e.end,o=e.page,a=e.pageSize;return kk({url:"/api/v1/device/".concat(t,"/thing-model/service?code=").concat(n,"&range=").concat(i,"&range=").concat(r,"&page=").concat(o,"&pageSize=").concat(a)})}((0,Ft.Z)((0,Ft.Z)({},e),{},{id:(null===n||void 0===n?void 0:n.id)||"",start:null===o||void 0===o?void 0:o.valueOf(),end:null===a||void 0===a?void 0:a.valueOf(),code:s||""}))}}),a=o.loading,s=o.dataSource,l=o.pagination,c=o.search;return(0,v.useEffect)((function(){}),[]),(0,ES.jsxs)("div",{children:[(0,ES.jsxs)(ip,{layout:"inline",form:r,initialValues:{range:[ux()().add(-1,"hours"),ux()()],code:void 0},children:[(0,ES.jsx)(ip.Item,{name:"code",children:(0,ES.jsx)(NI,{style:{width:150},placeholder:"\u8bf7\u9009\u62e9\u6807\u8bc6\u7b26",options:t.map((function(e){var t=e.code;return{value:t,label:t}}))})}),(0,ES.jsx)(ip.Item,{name:"range",children:(0,ES.jsx)(nV,{format:"YYYY-MM-DD HH:mm:ss",placeholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],onOpenChange:function(e){e&&r.setFieldValue("range",[])},showTime:{hideDisabledOptions:!0,defaultValue:[ux()(ux()().format("YYYY-MM-DD")),ux()(ux()().format("YYYY-MM-DD"))]},presets:[{label:"\u6700\u8fd11\u5c0f\u65f6",value:[ux()().add(-1,"hours"),ux()()]},{label:"\u6700\u8fd13\u5c0f\u65f6",value:[ux()().add(-3,"hours"),ux()()]},{label:"\u6700\u8fd124\u5c0f\u65f6",value:[ux()().add(-24,"hours"),ux()()]}]})}),(0,ES.jsxs)(ip.Item,{children:[(0,ES.jsx)(Jg,{type:"primary",onClick:function(){c()},children:"\u67e5\u8be2"}),(0,ES.jsx)(Jg,{className:"ml10",onClick:function(){r.resetFields()},children:"\u91cd\u7f6e"})]})]}),(0,ES.jsx)(YA,{className:"mt10",bordered:!0,size:"small",rowKey:"id",loading:a,pagination:l,dataSource:null===s||void 0===s?void 0:s.map((function(e,t){return(0,Ft.Z)({id:t},e)})),columns:[{title:"\u65f6\u95f4",key:"report_time",dataIndex:"report_time",render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u6807\u8bc6\u7b26",key:"code",dataIndex:"code"},{title:"\u670d\u52a1\u540d\u79f0",key:"service_name",dataIndex:"service_name"},{title:"\u8f93\u5165\u53c2\u6570",key:"input_data",dataIndex:"input_data",render:function(e){return JSON.stringify(e)}},{title:"\u8f93\u51fa\u53c2\u6570",key:"output_data",dataIndex:"output_data",render:function(e){return JSON.stringify(e)}}]})]})},oV=sE.Text,aV=sE.Link,sV=function(){var e=Pt(),t=(0,k.Z)(e,1)[0],i=ut(),r=lt(),o=(0,v.useState)("1"),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useState)(!1),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=(0,v.useState)(!1),_=(0,k.Z)(y,2),b=_[0],C=_[1],S=(0,v.useMemo)((function(){return null===d||void 0===d?void 0:d.cloud_device_id}),[d]);(0,v.useEffect)((function(){var e=decodeURIComponent(t.get("trigger")||""),n={"\u8bbe\u5907\u6570\u636e\u89e6\u53d1":"1","\u8bbe\u5907\u4e8b\u4ef6\u89e6\u53d1":"2"};e&&n[e]&&l(n[e])}),[]);var w=(0,v.useCallback)((function(){(function(e){return kk({url:"/api/v1/device/".concat(e)})})(i.id).then((function(e){e.success&&(h(e.result),I(e.result))}))}),[i]);(0,v.useEffect)((function(){w()}),[]);var x=(0,v.useState)(),E=(0,k.Z)(x,2),T=E[0],N=E[1],I=(0,v.useCallback)((function(e){Ok(null===e||void 0===e?void 0:e.product_id).then((function(e){e.success&&N(e.result)})).catch((function(e){console.log(e)}))}),[i]);return console.log("productInfo",T),(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(kM,{hasBack:!0,title:(0,ES.jsx)("div",{className:"flex-center",children:(0,ES.jsx)(oV,{style:{fontSize:17},copyable:!0,children:(null===d||void 0===d?void 0:d.name)||"\u8bbe\u5907\u8be6\u60c5"})}),describe:"\u8bbe\u5907\u8be6\u60c5\u63d0\u4f9b\u8bbe\u5907\u57fa\u7840\u4fe1\u606f\u53ca\u7269\u6a21\u578b\u76f8\u5173\u6570\u636e\uff08\u5305\u62ec\u8bbe\u5907\u5c5e\u6027\u529f\u80fd\u8bb0\u5f55\u3001\u4e8b\u4ef6\u8bb0\u5f55\u53ca\u670d\u52a1\u8c03\u7528\u8bb0\u5f55\uff09\u67e5\u8be2\u3002",background:n(64669),breadcrumb:[{label:"\u8bbe\u5907\u7ba1\u7406",to:"/gateway/device/manage"},{label:"\u8bbe\u5907\u8be6\u60c5 [ ".concat((null===d||void 0===d?void 0:d.name)||""," ]"),to:""}]}),(0,ES.jsx)(AT,{className:"product-info",children:(0,ES.jsxs)(SP,{className:"product-info__descriptions",title:"\u8bbe\u5907\u4fe1\u606f",column:3,labelStyle:{fontSize:12,color:"#8a949c"},contentStyle:{fontSize:12},extra:S&&(0,ES.jsx)(Jg,{type:"link",size:"small",loading:b,disabled:b,icon:(0,ES.jsx)(EP,{}),style:{fontSize:12},onClick:function(){C(!0),function(e){return kk({url:"/api/v1/device-sync/".concat(e.device_id),method:"post",data:e})}({device_id:i.id}).then((function(e){e.success?(qp.success("\u540c\u6b65\u6210\u529f"),w()):qp.error(e.errorMsg)})).catch((function(e){console.log(e)})).finally((function(){C(!1)}))},children:"\u540c\u6b65\u8bbe\u5907"}),children:[(0,ES.jsx)(SP.Item,{label:"\u8bbe\u5907\u6240\u5c5e\u4ea7\u54c1",children:(0,ES.jsx)(aV,{style:{fontSize:12},onClick:function(){r("/gateway/product/detail/".concat(null===d||void 0===d?void 0:d.product_id))},children:null===d||void 0===d?void 0:d.product_name})}),(0,ES.jsxs)(SP.Item,{label:"\u8bbe\u5907\u72b6\u6001",span:2,children:[(0,ES.jsx)(sF,{color:{"\u5728\u7ebf":"green","\u79bb\u7ebf":"gray","\u7981\u7528":"red","\u672a\u6fc0\u6d3b":"orange"}[null===d||void 0===d?void 0:d.status]||"gray"}),(0,ES.jsx)(oV,{className:"ml5",style:{fontSize:12},children:(null===d||void 0===d?void 0:d.status)||"\u672a\u77e5"})]}),(0,ES.jsx)(SP.Item,{label:"\u8bbe\u5907\u540d\u79f0",children:null===d||void 0===d?void 0:d.name}),(0,ES.jsx)(SP.Item,{label:"\u8bbe\u5907ID",span:2,children:(0,ES.jsx)(oV,{style:{fontSize:12},copyable:!0,children:null===d||void 0===d?void 0:d.id})}),(0,ES.jsx)(SP.Item,{label:"\u5e73\u53f0",children:null===d||void 0===d?void 0:d.platform}),(0,ES.jsx)(SP.Item,{label:"\u8bbe\u5907\u5bc6\u94a5",span:2,children:(null===d||void 0===d?void 0:d.secret)&&(0,ES.jsx)(ES.Fragment,{children:g?(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(oV,{style:{fontSize:12},className:"mr10",copyable:!0,children:null===d||void 0===d?void 0:d.secret}),(0,ES.jsx)($m,{onClick:function(){return m(!g)}})]}):(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)("span",{className:"mr10",children:new Array(null===d||void 0===d?void 0:d.secret.length).fill(null).map((function(){return"*"}))}),(0,ES.jsx)(Jm,{onClick:function(){return m(!g)}})]})})}),(0,ES.jsx)(SP.Item,{label:"\u5173\u8054\u9a71\u52a8\u540d\u79f0",children:null===d||void 0===d?void 0:d.device_service_name}),S&&(0,ES.jsx)(SP.Item,{label:"\u4e91\u7aef\u8bbe\u5907\u6807\u8bc6",span:2,children:(0,ES.jsx)(oV,{style:{fontSize:12},copyable:!0,children:null===d||void 0===d?void 0:d.cloud_device_id})}),(0,ES.jsx)(SP.Item,{label:"\u6700\u8fd1\u5728\u7ebf\u65f6\u95f4",children:null!==d&&void 0!==d&&d.last_online_time?ux()(null===d||void 0===d?void 0:d.last_online_time).format("YYYY-MM-DD HH:mm:ss"):"-"}),S&&(0,ES.jsx)(SP.Item,{label:"\u6700\u540e\u4e00\u6b21\u540c\u6b65\u65f6\u95f4",children:null!==d&&void 0!==d&&d.last_sync_time?ux()(null===d||void 0===d?void 0:d.last_sync_time).format("YYYY-MM-DD HH:mm:ss"):"-"}),(0,ES.jsx)(SP.Item,{label:"\u63cf\u8ff0",children:null===d||void 0===d?void 0:d.description})]})}),(0,ES.jsx)(wT,{className:"device-property mt20",type:"card",destroyInactiveTabPane:!0,activeKey:s,onChange:function(e){return l(e)},items:[{key:"1",label:"\u5c5e\u6027",children:(0,ES.jsx)(Qj,{})},{key:"2",label:"\u4e8b\u4ef6\u8bb0\u5f55",children:(0,ES.jsx)(tV,{events:(null===T||void 0===T?void 0:T.events)||[]})},{key:"3",label:"\u670d\u52a1\u8bb0\u5f55",children:(0,ES.jsx)(rV,{actions:(null===T||void 0===T?void 0:T.actions)||[]})}]})]})},lV=n(32808),cV=n.n(lV),uV=function(){function e(t){(0,b.Z)(this,e),this.options=t,this.websocket=void 0,this.lockReconnect=!1,this.reconnectionAttempts=0,this.callbackMap=new Map,this.timer=void 0,this.defaults={url:"https:"===location.protocol?"wss://".concat(location.host):"ws://".concat(location.host),reconnection:!0,reconnectionDelay:1e3,reconnectionDelayMax:5e3,reconnectionAttempts:1/0},this.options=Object.assign({},this.defaults,this.options),this.websocket=new WebSocket(this.wsurl),this.bindEvents()}return(0,C.Z)(e,[{key:"wsurl",get:function(){var e=this.options,t=e.url,n=e.path,i=e.query;return"".concat(t).concat(n,"?").concat(cV().stringify(i))}},{key:"bindEvents",value:function(){this.websocket.addEventListener("open",this.onopen.bind(this)),this.websocket.addEventListener("error",this.onerror.bind(this)),this.websocket.addEventListener("close",this.onclose.bind(this)),this.websocket.addEventListener("message",this.onmessage.bind(this))}},{key:"unbindEvents",value:function(){this.websocket.removeEventListener("open",this.onopen.bind(this)),this.websocket.removeEventListener("error",this.onerror.bind(this)),this.websocket.removeEventListener("close",this.onclose.bind(this)),this.websocket.removeEventListener("message",this.onmessage.bind(this))}},{key:"reconnect",value:function(){var e=this;console.log("reconnect",this.lockReconnect),this.lockReconnect||setTimeout((function(){e.lockReconnect=!1,e.reconnectionAttempts++,e.unbindEvents(),e.websocket=new WebSocket(e.wsurl),e.bindEvents()}),this.options.reconnectionDelay)}},{key:"onopen",value:function(){console.log("[ws] onopen"),this.timer&&clearInterval(this.timer)}},{key:"onerror",value:function(){var e=this;console.log("[ws] onerror",this);var t=this.options,n=t.reconnection,i=t.reconnectionAttempts,r=t.reconnectionDelay;n&&i&&this.reconnectionAttempts<i&&setTimeout((function(){e.reconnect()}),r)}},{key:"onclose",value:function(){console.log("[ws] onclose")}},{key:"onmessage",value:function(e){console.log("[ws] onmessage"),this.lockReconnect=!0;try{var t,n=JSON.parse(e.data),i=this.callbackMap.get(null===n||void 0===n?void 0:n.code)||{},r=i.resolveMap,o=void 0===r?[]:r,a=i.successCallback;null===(t=o.pop())||void 0===t||t(n),"function"===typeof a&&(null===a||void 0===a||a(n))}catch(s){console.log("[ws] onmessage error",s)}}},{key:"send",value:function(e){var t=this;return new Promise((function(n){var i="string"===typeof e?e:JSON.stringify(e),r=t.callbackMap.get(null===e||void 0===e?void 0:e.code)||{},o=r.resolveMap||[];r.resolveMap=[].concat((0,_.Z)(o),[n]),t.callbackMap.set(null===e||void 0===e?void 0:e.code,r),t.websocket.send(i)}))}},{key:"sendSync",value:function(e){var t="string"===typeof e?e:JSON.stringify(e),n=this.callbackMap.get(null===e||void 0===e?void 0:e.code)||{};n.successCallback=e.success,this.callbackMap.set(null===e||void 0===e?void 0:e.code,n),this.websocket.send(t)}},{key:"close",value:function(){this.unbindEvents(),this.websocket.close(1e3,"CLOSE_NORMAL")}}]),e}(),dV=("https:"===location.protocol?"wss://".concat(location.host):"ws://".concat(location.host),DS()),hV=(0,v.createContext)({ws:void 0}),fV=function(e){var t=e.children,n=(0,v.useState)(),i=(0,k.Z)(n,2),r=i[0],o=i[1];return(0,v.useEffect)((function(){var e=new uV({timeout:2e3,reconnection:!0,reconnectionDelay:1e3,reconnectionDelayMax:1e3,reconnectionAttempts:60,path:"/api/v1/ws/",query:{"x-token":dV}});return o(e),function(){null===e||void 0===e||e.close()}}),[]),(0,ES.jsx)(hV.Provider,{value:{ws:r},children:t})},pV=fV,gV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},vV=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:gV}))};vV.displayName="PauseCircleOutlined";var mV=v.forwardRef(vV),yV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},_V=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:yV}))};_V.displayName="PlayCircleOutlined";var bV=v.forwardRef(_V),CV=n(32699),SV=(0,v.forwardRef)((function(e,t){var n=(0,v.useState)(""),i=(0,k.Z)(n,2),r=i[0],o=i[1],a=(0,v.useState)([]),s=(0,k.Z)(a,2),l=s[0],c=s[1],u=(0,v.useState)(!1),d=(0,k.Z)(u,2),h=d[0],f=d[1],p=(0,v.useState)(!1),g=(0,k.Z)(p,2),m=g[0],y=g[1],b=(0,v.useContext)(hV).ws,C=(0,v.useCallback)((function(e){null===b||void 0===b||b.sendSync({code:10004,data:{id:e,operate:1},success:function(e){e.data.success&&(f(!0),c((function(t){return[].concat((0,_.Z)(t),[e.data.result])})),x.current&&x.current.write(e.data.result+"\r\n\x1b[33m$\x1b[0m "))}})}),[b]),S=(0,v.useMemo)((function(){return l.map((function(e){return e+"\n"}))}),[l]),w=(0,v.useRef)(null),x=(0,v.useRef)(null);(0,v.useEffect)((function(){m?setTimeout((function(){console.log("Terminal",w.current,CV.Terminal),m&&w.current&&(x.current=new CV.Terminal({cols:150,rows:35,fontSize:13}),x.current.open(w.current))}),0):x.current=null}),[m]);var E=(0,v.useCallback)((function(){null===b||void 0===b||b.send({code:10004,data:{id:r,operate:2}}).then((function(e){e.data.success&&(console.log("\u65e5\u5fd7\u5df2\u505c\u6b62"),f(!1))}))}),[r]);return(0,v.useImperativeHandle)(t,(function(){return{open:function(e){o(e),y(!0),C(e)}}}),[C]),(0,ES.jsx)(gm,{title:"\u4e91\u670d\u52a1\u65e5\u5fd7",width:1250,maskClosable:!1,open:m,destroyOnClose:!0,footer:(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(Jg,{type:"default",onClick:function(){var e=S.reduce((function(e,t){return e+="".concat(t)})),t=document.createElement("a");t.href="data:text/plain;charset=utf-8,"+e,t.download="txt",document.body.appendChild(t),t.click(),document.body.removeChild(t)},children:"\u4e0b\u8f7d\u65e5\u5fd7"}),(0,ES.jsx)(Jg,{type:"primary",icon:h?(0,ES.jsx)(mV,{}):(0,ES.jsx)(bV,{}),onClick:function(){h?E():C(r)},children:h?"\u505c\u6b62":"\u5f00\u59cb"})]}),onCancel:function(){E(),c((function(){return[]})),y(!1)},children:(0,ES.jsx)("div",{ref:w})})})),wV=SV,kV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},xV=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:kV}))};xV.displayName="CheckCircleOutlined";var EV=v.forwardRef(xV),TV={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z",fill:t}},{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z",fill:e}}]}},name:"check-circle",theme:"twotone"},NV=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:TV}))};NV.displayName="CheckCircleTwoTone";var IV={installing:{text:"\u4e0b\u8f7d\u4e2d",status:"processing",color:"processing",icon:(0,ES.jsx)(EP,{spin:!0})},default:{text:"\u672a\u4e0b\u8f7d",status:"default",color:"default",icon:(0,ES.jsx)($H,{})},installed:{text:"\u5df2\u4e0b\u8f7d",status:"success",color:"processing",icon:(0,ES.jsx)(EV,{})},uninstall:{text:"\u5df2\u5378\u8f7d",status:"warning",color:"default",icon:(0,ES.jsx)($H,{})}},DV={1:{text:"\u8fd0\u884c\u4e2d",status:"success"},2:{text:"\u505c\u6b62",status:"default"},3:{text:"\u542f\u52a8\u4e2d",status:"processing"},4:{text:"\u505c\u6b62\u4e2d",status:"default"},5:{text:"\u5f02\u5e38",status:"error"}},LV=n(16599);function OV(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function RV(){}var AV=function(){return AV=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},AV.apply(this,arguments)};function MV(e){var t=e.width,n=e.height,i=e.value,r=e.defaultValue,o=e.language,a=e.theme,s=e.options,l=e.overrideServices,c=e.editorWillMount,u=e.editorDidMount,d=e.editorWillUnmount,h=e.onChange,f=e.className,p=e.original,g=(0,v.useRef)(null),m=(0,v.useRef)(null),y=(0,v.useRef)(null),_=(0,v.useRef)(null),b=OV(t),C=OV(n),S=(0,v.useMemo)((function(){return{width:b,height:C}}),[b,C]);return(0,v.useEffect)((function(){g.current&&(c(LV),m.current=LV.editor.createDiffEditor(g.current,AV(AV(AV({},f?{extraEditorClassName:f}:{}),s),a?{theme:a}:{}),l),function(){var e=null!=i?i:r,t=LV.editor.createModel(p,o),n=LV.editor.createModel(e,o);m.current.setModel({original:t,modified:n})}(),function(){u(m.current,LV);var e=m.current.getModel().modified;y.current=e.onDidChangeContent((function(t){_.current||h(e.getValue(),t)}))}())}),[]),(0,v.useEffect)((function(){m.current&&m.current.updateOptions(AV(AV({},f?{extraEditorClassName:f}:{}),s))}),[f,s]),(0,v.useEffect)((function(){m.current&&m.current.layout()}),[t,n]),(0,v.useEffect)((function(){if(m.current){var e=m.current.getModel(),t=e.original,n=e.modified;LV.editor.setModelLanguage(t,o),LV.editor.setModelLanguage(n,o)}}),[o]),(0,v.useEffect)((function(){if(m.current){var e=m.current.getModel().modified;_.current=!0,m.current.getModifiedEditor().pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:i}]),m.current.getModifiedEditor().pushUndoStop(),_.current=!1}}),[i]),(0,v.useEffect)((function(){LV.editor.setTheme(a)}),[a]),(0,v.useEffect)((function(){if(m.current){var e=m.current.getModel().original;p!==e.getValue()&&e.setValue(p)}}),[p]),(0,v.useEffect)((function(){return function(){if(m.current){d(m.current,LV),m.current.dispose();var e=m.current.getModel(),t=e.original,n=e.modified;t&&t.dispose(),n&&n.dispose()}y.current&&y.current.dispose()}}),[]),v.createElement("div",{ref:g,style:S,className:"react-monaco-editor-container"})}MV.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:RV,editorDidMount:RV,editorWillUnmount:RV,onChange:RV,className:null};var PV=function(){return PV=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},PV.apply(this,arguments)},ZV=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function FV(e){var t=e.width,n=e.height,i=e.value,r=e.defaultValue,o=e.language,a=e.theme,s=e.options,l=e.overrideServices,c=e.editorWillMount,u=e.editorDidMount,d=e.editorWillUnmount,h=e.onChange,f=e.className,p=(0,v.useRef)(null),g=(0,v.useRef)(null),m=(0,v.useRef)(null),y=(0,v.useRef)(null),_=OV(t),b=OV(n),C=(0,v.useMemo)((function(){return{width:_,height:b}}),[_,b]);return(0,v.useEffect)((function(){var e=null!==i?i:r;if(p.current){var t=PV(PV({},s),c(LV)||{});g.current=LV.editor.create(p.current,PV(PV(PV({value:e,language:o},f?{extraEditorClassName:f}:{}),t),a?{theme:a}:{}),l),u(g.current,LV),m.current=g.current.onDidChangeModelContent((function(e){y.current||h(g.current.getValue(),e)}))}}),[]),(0,v.useEffect)((function(){if(g.current){var e=g.current.getModel();y.current=!0,g.current.pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:i}],void 0),g.current.pushUndoStop(),y.current=!1}}),[i]),(0,v.useEffect)((function(){if(g.current){var e=g.current.getModel();LV.editor.setModelLanguage(e,o)}}),[o]),(0,v.useEffect)((function(){if(g.current){s.model;var e=ZV(s,["model"]);g.current.updateOptions(PV(PV({},f?{extraEditorClassName:f}:{}),e))}}),[f,s]),(0,v.useEffect)((function(){g.current&&g.current.layout()}),[t,n]),(0,v.useEffect)((function(){LV.editor.setTheme(a)}),[a]),(0,v.useEffect)((function(){return function(){if(g.current){d(g.current,LV),g.current.dispose();var e=g.current.getModel();e&&e.dispose()}m.current&&m.current.dispose()}}),[]),v.createElement("div",{ref:p,style:C,className:"react-monaco-editor-container"})}FV.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:RV,editorDidMount:RV,editorWillUnmount:RV,onChange:RV,className:null};var BV=FV,HV=ip.useForm,zV=Zy.TextArea,jV=(0,v.forwardRef)((function(e,t){var n,i,r=e.onSuccess,o=HV(),a=(0,k.Z)(o,1)[0],s=(0,v.useState)(),l=(0,k.Z)(s,2),c=l[0],u=l[1],d=(0,v.useState)(!1),h=(0,k.Z)(d,2),f=h[0],p=h[1],g=(0,v.useState)(!1),m=(0,k.Z)(g,2),y=m[0],_=m[1];(0,v.useImperativeHandle)(t,(function(){return{open:function(e){u(e),_(!0),a.setFieldsValue({instance_name:e.name,id:e.deviceLibrary.id,image_name:e.deviceLibrary.name,protocol:e.deviceLibrary.protocol,version:e.deviceLibrary.version,operate_status:e.deviceLibrary.operate_status,docker_params_switch:e.dockerParamsSwitch,docker_params:e.dockerParams,expertMode:e.expertMode,expertModeContent:e.expertModeContent})}}}),[]);var b=(0,v.useCallback)((function(){a.resetFields(),_(!1)}),[a]);return(0,ES.jsx)(jM,{title:"\u7f16\u8f91\u5b9e\u4f8b",placement:"right",open:y,width:550,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:b}),onClose:b,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:f,disabled:f,onClick:function(){a.getFieldError("expertModeContent").length||a.validateFields().then((function(e){var t=e.docker_params,n=e.docker_params_switch,i=e.expertMode,o=e.expertModeContent;p(!0),null!==c&&void 0!==c&&c.id&&function(e){return kk({url:"/api/v1/device-server/".concat(e.id),method:"put",data:e})}({id:c.id,docker_params:t||"",docker_params_switch:n,expertMode:i,expertModeContent:o||""}).then((function(e){null!==e&&void 0!==e&&e.success&&(b(),null===r||void 0===r||r(),qp.success({content:"\u7f16\u8f91\u6210\u529f"}))})).finally((function(){p(!1)})),console.log(e)}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:b,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{form:a,layout:"vertical",children:[(0,ES.jsx)(ip.Item,{label:"\u9a71\u52a8\u540d\u79f0",name:"instance_name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5b9e\u4f8b\u540d\u79f0"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u5b9e\u4f8b\u540d\u79f0",disabled:!0})}),(0,ES.jsx)(ip.Item,{label:"\u955c\u50cf\u540d\u79f0",name:"image_name",validateFirst:!0,rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u955c\u50cf\u540d\u79f0"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u955c\u50cf\u540d\u79f0",disabled:!0})}),(0,ES.jsx)(ip.Item,{label:"\u955c\u50cf\u7f16\u53f7",name:"id",children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u955c\u50cf\u7f16\u53f7",disabled:!0})}),(0,ES.jsx)(ip.Item,{label:"\u534f\u8bae",name:"protocol",children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u534f\u8bae",disabled:!0})}),(0,ES.jsx)(ip.Item,{label:"\u7248\u672c",name:"version",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7248\u672c"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",disabled:!0})}),(0,ES.jsx)(ip.Item,{label:"\u72b6\u6001",name:"operate_status",children:(0,ES.jsx)(sF,{status:null===(n=DV[null===c||void 0===c?void 0:c.runStatus])||void 0===n?void 0:n.status,text:null===(i=DV[null===c||void 0===c?void 0:c.runStatus])||void 0===i?void 0:i.text})}),(0,ES.jsx)(ip.Item,{label:"Docker\u542f\u52a8\u53c2\u6570",name:"docker_params_switch",valuePropName:"checked",children:(0,ES.jsx)(bH,{})}),(0,ES.jsx)(ip.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.docker_params_switch!==t.docker_params_switch},children:function(e){return(0,e.getFieldValue)("docker_params_switch")?(0,ES.jsx)(ip.Item,{name:"docker_params",rules:[{required:!0,message:"\u8bf7\u8f93\u5165Docker\u542f\u52a8\u53c2\u6570"}],children:(0,ES.jsx)(zV,{placeholder:"\u8bf7\u8f93\u5165Docker\u542f\u52a8\u53c2\u6570"})}):null}}),(0,ES.jsx)(ip.Item,{label:"\u81ea\u5b9a\u4e49\u53c2\u6570",name:"expertMode",valuePropName:"checked",children:(0,ES.jsx)(bH,{})}),(0,ES.jsx)(ip.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.expertMode!==t.expertMode},children:function(e){return(0,e.getFieldValue)("expertMode")?(0,ES.jsx)(ip.Item,{name:"expertModeContent",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u53c2\u6570"}],children:(0,ES.jsx)(BV,{height:"500",language:"json",theme:"vs-dark",editorWillMount:function(e){e.editor.onDidChangeMarkers((function(t){var n=(0,k.Z)(t,1)[0];e.editor.getModelMarkers({resource:n}).length&&a.setFields([{name:"expertModeContent",errors:["\u8bf7\u8f93\u5165\u6b63\u786e\u7684 json \u683c\u5f0f"],validating:!0}])})),e.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,allowComments:!0})}})}):null}})]})})})),VV=sE.Text,WV=function(){var e=(0,v.useContext)(hV).ws,t=(0,v.useRef)(null),n=(0,v.useRef)(null),i=TM({onRequest:xk}),r=i.form,o=i.dataSource,a=i.loading,s=i.pagination,l=i.reload,c=i.search,u=i.reset,d=(0,v.useState)(!1),h=(0,k.Z)(d,2),f=h[0],p=h[1],g=(0,v.useCallback)((function(t){return p(!0),null===e||void 0===e?void 0:e.send(t).then((function(e){console.log(e),e.data.success?(qp.success(e.data.successMsg),l()):qp.error(e.data.errorMsg)})).finally((function(){p(!1)}))}),[e,l]);return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(xM,{}),(0,ES.jsx)(wV,{ref:t}),(0,ES.jsx)(jV,{ref:n,onSuccess:l}),(0,ES.jsx)(AT,{className:"m20",size:"small",children:(0,ES.jsxs)(ip,{layout:"inline",form:r,children:[(0,ES.jsx)(ip.Item,{name:"name",children:(0,ES.jsx)(Zy,{placeholder:"\u9a71\u52a8\u540d\u79f0"})},"name"),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"primary",onClick:c,children:"\u67e5\u8be2"})}),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"default",onClick:u,children:"\u91cd\u7f6e"})})]})}),(0,ES.jsx)(AT,{className:"m20",children:(0,ES.jsx)(YA,{dataSource:o,rowKey:"id",loading:a||f,bordered:!0,size:"small",pagination:s,columns:[{title:"\u9a71\u52a8\u7f16\u53f7",dataIndex:"id",key:"id"},{title:"\u9a71\u52a8\u540d\u79f0",dataIndex:"name",key:"name"},{title:"\u7248\u672c",dataIndex:"version",key:"version",render:function(e,t){var n;return null===t||void 0===t||null===(n=t.deviceLibrary)||void 0===n?void 0:n.version}},{title:"\u9a71\u52a8\u7c7b\u578b",dataIndex:"run_status",key:"run_status",render:function(e,t){var n;return null!==t&&void 0!==t&&null!==(n=t.deviceLibrary)&&void 0!==n&&n.is_internal?(0,ES.jsx)(eP,{color:"green",children:"\u5b98\u65b9"}):(0,ES.jsx)(eP,{color:"blue",children:"\u81ea\u5b9a\u4e49"})}},{title:"\u5173\u8054\u5e73\u53f0",dataIndex:"platform",key:"platform"},{title:"\u72b6\u6001",dataIndex:"runStatus",key:"runStatus",render:function(e){var t=DV[e],n=t.status,i=t.text;return(0,ES.jsx)(sF,{status:n,text:i})}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"created",key:"created",render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",render:function(e,i){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(VV,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(zC,{trigger:["click"],menu:{items:[{label:"\u542f\u52a8",key:"start"},{label:"\u505c\u6b62",key:"stop"},{label:"\u7f16\u8f91",key:"edit"}],onClick:function(e){var t,r=e.key;(["start","stop"].includes(r)&&g({code:10002,data:{id:i.id,run_status:{start:1,stop:2}[r]}}),"edit"===r)&&(null===(t=n.current)||void 0===t||t.open(i))}},children:(0,ES.jsxs)(sE.Link,{children:["\u64cd\u4f5c",(0,ES.jsx)(uI,{className:"ml5",style:{fontSize:9}})]})}),(0,ES.jsx)(sE.Link,{onClick:function(){var e;null===(e=t.current)||void 0===e||e.open(i.id)},children:"\u65e5\u5fd7"}),(0,ES.jsx)(tM,{title:"\u6b64\u64cd\u4f5c\u5c06\u6c38\u4e45\u5220\u9664\u5173\u8054\u7684\u4ea7\u54c1\u4ee5\u53ca\u8bbe\u5907, \u662f\u5426\u7ee7\u7eed?",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){g({code:10003,data:{id:i.id}})},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}]})})]})},UV=function(){return(0,ES.jsx)(fV,{children:(0,ES.jsx)(WV,{})})},GV=ip.useForm,KV=(0,v.forwardRef)((function(e,t){var n=e.onFinish,i=GV(),r=(0,k.Z)(i,1)[0],o=(0,v.useState)(),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useState)(!1),p=(0,k.Z)(f,2),g=p[0],m=p[1];(0,v.useImperativeHandle)(t,(function(){return{open:function(e){l(e),m(!0),e&&r.setFieldsValue(e)}}}),[r]);var y=(0,v.useCallback)((function(){r.resetFields(),m(!1)}),[r]);return(0,ES.jsx)(jM,{title:s?"\u955c\u50cf\u4ed3\u5e93\u7f16\u8f91":"\u65b0\u589e\u955c\u50cf\u4ed3\u5e93",placement:"right",open:g,width:550,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:y}),onClose:y,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:d,disabled:d,onClick:function(){r.validateFields().then((function(e){h(!0),null!==s&&void 0!==s&&s.id?function(e,t){return kk({url:"/api/v1/docker-configs/".concat(e),method:"put",data:t})}(s.id,(0,Ft.Z)({id:s.id},e)).then((function(e){e.success?(qp.success("\u7f16\u8f91\u6210\u529f"),y(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)})):function(e){return kk({url:"/api/v1/docker-configs",method:"post",data:e})}(e).then((function(e){e.success?(qp.success("\u6dfb\u52a0\u6210\u529f"),y(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:y,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{form:r,layout:"vertical",children:[(0,ES.jsx)(ip.Item,{label:"\u955c\u50cf\u5730\u5740",name:"address",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u955c\u50cf\u5730\u5740"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u955c\u50cf\u5730\u5740"})}),(0,ES.jsx)(ip.Item,{label:"\u8d26\u53f7",name:"account",children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u8d26\u53f7"})}),(0,ES.jsx)(ip.Item,{label:"\u5bc6\u7801",name:"password",children:(0,ES.jsx)(Zy.Password,{placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801"})})]})})})),YV=sE.Text,qV=sE.Link,$V=(0,v.forwardRef)((function(e,t){var n=e.value,i=e.disabled,r=e.onChange,o=(0,v.useState)([n]),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useRef)(null),p=TM({onRequest:Ik}),g=p.loading,m=p.dataSource,y=p.pagination,_=p.reload,b=(0,v.useMemo)((function(){var e;return null===(e=m.find((function(e){return e.id===s[0]})))||void 0===e?void 0:e.address}),[m,s]);return(0,v.useImperativeHandle)(t,(function(){return{open:function(){h(!0)}}}),[]),(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsxs)(jM,{title:"\u955c\u50cf\u4ed3\u5e93\u7ba1\u7406",placement:"right",open:d,width:600,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:function(){h(!1)}}),footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",onClick:function(){null===r||void 0===r||r(s[0]),h(!1)},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:function(){h(!1)},children:"\u53d6\u6d88"})]}),onClose:function(){h(!1)},children:[(0,ES.jsx)(KV,{ref:f,onFinish:_}),(0,ES.jsxs)(Jg,{className:"mb15",type:"primary",onClick:function(){var e;null===(e=f.current)||void 0===e||e.open()},children:[(0,ES.jsx)(RE,{}),"\u65b0\u589e"]}),(0,ES.jsx)(YA,{loading:g,dataSource:m,pagination:y,bordered:!0,rowKey:"id",size:"small",scroll:{x:"max-content"},rowSelection:{type:"radio",fixed:!0,selectedRowKeys:s,onChange:function(e){l(e)}},columns:[{title:"\u7f16\u53f7",key:"id",dataIndex:"id"},{title:"\u955c\u50cf\u5730\u5740",key:"address",dataIndex:"address"},{title:"\u8d26\u53f7",key:"account",dataIndex:"account"},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",width:100,fixed:"right",render:function(e,t){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(YV,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(sE.Link,{onClick:function(){var e;null===(e=f.current)||void 0===e||e.open(t)},children:"\u7f16\u8f91"}),(0,ES.jsx)(tM,{title:"\u6b64\u64cd\u4f5c\u5c06\u6c38\u4e45\u5220\u9664\u8be5\u6761\u8bb0\u5f55, \u662f\u5426\u7ee7\u7eed?",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){(function(e){return kk({url:"/api/v1/docker-configs/".concat(e),method:"delete"})})(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(qp.success("\u5220\u9664\u6210\u529f"),_()):qp.error(e.errorMsg)}))},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}]})]}),i?(0,ES.jsx)(YV,{disabled:!0,children:b}):(0,ES.jsx)(qV,{onClick:function(){h(!0)},children:b?(0,ES.jsxs)(ES.Fragment,{children:[b,(0,ES.jsx)(_x,{className:"ml10"})]}):"\u8bf7\u9009\u62e9\u4ed3\u5e93\u955c\u50cf"})]})})),XV=ip.useForm,QV=Zy.TextArea,JV=(0,v.forwardRef)((function(e,t){var n=e.onFinish,i=XV(),r=(0,k.Z)(i,1)[0],o=(0,v.useState)(),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useState)(!1),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=(0,v.useRef)(null),_=(0,v.useCallback)((function(){r.resetFields(),m(!1)}),[r]);return(0,v.useImperativeHandle)(t,(function(){return{open:function(e){l(e),m(!0),e&&r.setFieldsValue(e)}}}),[r]),(0,ES.jsx)(jM,{title:s?"\u7f16\u8f91\u955c\u50cf":"\u65b0\u589e\u955c\u50cf",placement:"right",open:g,width:550,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:_}),onClose:_,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:d,disabled:d,onClick:function(){r.validateFields().then((function(e){h(!0),null!==s&&void 0!==s&&s.id?function(e,t){return kk({url:"/api/v1/device-libraries/".concat(e),method:"put",data:t})}(s.id,{name:e.name,description:e.description,protocol:e.protocol,docker_config_id:e.docker_config_id}).then((function(e){e.success?(qp.success("\u7f16\u8f91\u6210\u529f"),_(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)})):function(e){return kk({url:"/api/v1/device-libraries",method:"post",data:e})}(e).then((function(e){e.success?(qp.success("\u6dfb\u52a0\u6210\u529f"),_(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:_,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{form:r,layout:"vertical",children:[(0,ES.jsx)(ip.Item,{label:"\u9a71\u52a8\u540d\u79f0",name:"name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u9a71\u52a8\u540d\u79f0"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u9a71\u52a8\u540d\u79f0"})}),(0,ES.jsx)(ip.Item,{label:"\u5bb9\u5668\u540d\u79f0",name:"container_name",validateFirst:!0,rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bb9\u5668\u540d\u79f0"},{validator:function(e,t,n){/^[a-z]{1,23}$/.test(t)?n():n("\u5fc5\u987b\u4e3a\u2f29\u5199\u5b57\u2e9f\uff0c\u2ed3\u5ea6\u2f29\u4e8e12")}}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u5bb9\u5668\u540d\u79f0",disabled:!!s})}),(0,ES.jsx)(ip.Item,{label:"\u534f\u8bae",name:"protocol",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u534f\u8bae"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u534f\u8bae"})}),(0,ES.jsx)(ip.Item,{label:"\u955c\u50cf\u4ed3\u5e93\u5730\u5740",name:"docker_config_id",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u4ed3\u5e93\u955c\u50cf"}],children:(0,ES.jsx)($V,{ref:y})}),(0,ES.jsx)(ip.Item,{label:"\u9a71\u52a8\u6807\u8bc6",name:"docker_repo_name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u9a71\u52a8\u6807\u8bc6"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u9a71\u52a8\u6807\u8bc6",disabled:!!s})}),(0,ES.jsx)(ip.Item,{label:"\u7248\u672c",name:"version",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7248\u672c"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u7248\u672c",disabled:!!s})}),(0,ES.jsx)(ip.Item,{label:"\u63cf\u8ff0",name:"description",children:(0,ES.jsx)(QV,{placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0",rows:4})})]})})})),eW=ip.useForm,tW=function(e){var t=e.record,n=e.selectedRowKeys,i=e.onFinish,r=e.onChange,o=eW(),a=(0,k.Z)(o,1)[0],s=(0,v.useState)(!1),l=(0,k.Z)(s,2),c=l[0],u=l[1],d=(0,v.useState)(!1),h=(0,k.Z)(d,2),f=h[0],p=h[1],g=(0,v.useContext)(hV).ws;(0,v.useEffect)((function(){null!==n&&void 0!==n&&n.includes(t.id)||m()}),[n,t]);var m=(0,v.useCallback)((function(){a.resetFields(),u(!1)}),[a]);return(0,ES.jsx)(tM,{icon:null,open:c,okButtonProps:{disabled:f,loading:f},title:(0,ES.jsx)(ip,{form:a,layout:"vertical",children:(0,ES.jsx)(ip.Item,{label:"\u955c\u50cf\u7248\u672c",name:"version",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u955c\u50cf\u7248\u672c"}],children:(0,ES.jsx)(NI,{style:{width:200},placeholder:"\u8bf7\u8f93\u5165\u955c\u50cf\u7248\u672c",mode:"tags",options:t.support_versions.map((function(e){return{label:e.version,value:e.version}})),onChange:function(e){var t=e[e.length-1];a.setFieldValue("version",t?[t]:[])}})})}),onConfirm:function(){a.validateFields().then((function(e){console.log(e),p(!0),null===g||void 0===g||g.send({code:10001,data:{id:t.id,version:e.version[0]}}).then((function(e){console.log(e),e.data.success?(qp.success(e.data.successMsg),m(),i()):qp.error(e.data.errorMsg)})).catch((function(e){console.log(e)})).finally((function(){p(!1)}))}))},onCancel:m,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",children:(0,ES.jsx)(sE.Link,{onClick:function(){null===r||void 0===r||r(t.id),u(!0)},children:"installed"===t.operate_status?"\u66f4\u65b0":"\u4e0b\u8f7d"})})},nW=sE.Text,iW=qp.useMessage,rW=function(){var e=iW(),t=(0,k.Z)(e,2),n=t[0],i=t[1],r=(0,v.useState)([]),o=(0,k.Z)(r,2),a=o[0],s=o[1],l=(0,v.useRef)(null),c=TM({onRequest:function(e){return Lk((0,Ft.Z)((0,Ft.Z)({},e),{},{is_internal:!1}))}}),u=c.loading,d=c.dataSource,h=c.pagination,f=c.form,p=c.reload,g=c.search,m=c.reset;return(0,ES.jsxs)(ES.Fragment,{children:[i,(0,ES.jsx)(JV,{ref:l,onFinish:p}),(0,ES.jsxs)(ip,{layout:"inline",className:"ml20",form:f,children:[(0,ES.jsx)(ip.Item,{name:"name",children:(0,ES.jsx)(Zy,{placeholder:"\u9a71\u52a8\u955c\u50cf\u540d\u79f0"})},"name"),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"primary",onClick:g,children:"\u67e5\u8be2"})}),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"default",onClick:m,children:"\u91cd\u7f6e"})})]}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsx)(Vy,{className:"mb15 justify-space-between",children:(0,ES.jsxs)(Jg,{type:"primary",onClick:function(){var e;null===(e=l.current)||void 0===e||e.open()},children:[(0,ES.jsx)(RE,{}),"\u65b0\u589e"]})}),(0,ES.jsx)(YA,{loading:u,dataSource:d,pagination:h,bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u955c\u50cf\u7f16\u53f7",key:"id",dataIndex:"id"},{title:"\u955c\u50cf\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u7c7b\u578b",key:"support_versions",dataIndex:"support_versions",render:function(e,t){var n;return null!==(n=t.support_versions[0])&&void 0!==n&&n.is_default?(0,ES.jsx)(eP,{color:"green",children:"\u5b98\u65b9"}):(0,ES.jsx)(eP,{color:"blue",children:"\u81ea\u5b9a\u4e49"})}},{title:"\u7248\u672c",key:"version",dataIndex:"version"},{title:"\u534f\u8bae",key:"protocol",dataIndex:"protocol"},{title:"\u72b6\u6001",key:"operate_status",dataIndex:"operate_status",render:function(e,t){var n=t.operate_status,i=IV[n],r=i.status,o=i.text;return(0,ES.jsx)(sF,{status:r,text:o})}},{title:"\u521b\u5efa\u65f6\u95f4",key:"created",dataIndex:"created",width:170,render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",width:170,render:function(e,t){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(nW,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(tW,{record:t,selectedRowKeys:a,onFinish:p,onChange:function(e){s([e])}}),(0,ES.jsx)(sE.Link,{onClick:function(){var e;null===(e=l.current)||void 0===e||e.open(t)},children:"\u7f16\u8f91"}),(0,ES.jsx)(tM,{title:"\u6b64\u64cd\u4f5c\u5c06\u6c38\u4e45\u5220\u9664\u8be5\u6761\u8bb0\u5f55, \u662f\u5426\u7ee7\u7eed?",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){(function(e){return kk({url:"/api/v1/device-libraries/".concat(e),method:"delete"})})(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(n.open({type:"success",content:"\u5220\u9664\u6210\u529f"}),p()):n.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}]})]})]})},oW=function(){return(0,ES.jsx)(fV,{children:(0,ES.jsx)(rW,{})})},aW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 000 76.4L474.6 944a54.14 54.14 0 0076.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 00-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 10212.6 0 106.3 106.2 0 10-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 000 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 000 68.6 48.7 48.7 0 0068.7 0l121.8-121.7a53.93 53.93 0 00-.1-76.4z"}}]},name:"ant-design",theme:"outlined"},sW=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:aW}))};sW.displayName="AntDesignOutlined";var lW,cW,uW,dW=v.forwardRef(sW),hW=AT.Meta,fW=sE.Text,pW=function(){var e=TM({onRequest:function(e){return Lk((0,Ft.Z)((0,Ft.Z)({},e),{},{is_internal:!0}))}}),t=e.dataSource,n=e.pagination,i=e.form;return(0,ES.jsxs)("div",{className:"drive-market p20 pt0",children:[(0,ES.jsx)(ip,{form:i}),t.length?(0,ES.jsx)("div",{className:"responsive-layout",children:t.map((function(e){return(0,ES.jsx)(AT,{className:"card-item",actions:[(0,ES.jsx)(fW,{onClick:function(){window.open(e.manual)},children:"\u8be6\u60c5"})],children:(0,ES.jsx)(hW,{avatar:(0,ES.jsx)(fS,{icon:(0,ES.jsx)(dW,{})}),title:e.name,description:e.description||"\u6682\u65e0\u63cf\u8ff0"})},e.id)}))}):(0,ES.jsx)(aI,{description:"\u6682\u65e0\u6570\u636e"}),(0,ES.jsx)("div",{className:"justify-flex-end mt20",children:(0,ES.jsx)(pL,(0,Ft.Z)({},n))})]})},gW=function(){return(0,ES.jsx)(pV,{children:(0,ES.jsx)(pW,{})})},vW=function(){return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(kM,{title:"\u9a71\u52a8\u955c\u50cf",describe:"\u9a71\u52a8\u955c\u50cf\u662f\u7528\u6237\u7f16\u5199\u7a0b\u5e8f\u6700\u7ec8\u6253\u5305\u6210\u53ef\u4e0b\u8f7d\u7684docker\u955c\u50cf\uff0c\u5b83\u662f\u5b9e\u4f53\u8bbe\u5907\u4e0e\u7269\u8054\u7f51\u5e73\u53f0\u901a\u8baf\u7684\u6865\u6881\uff0c\u6240\u6709\u7684\u8bbe\u5907\u6570\u636e\u7531\u9a71\u52a8\u4e0a\u62a5\u5230\u7269\u8054\u7f51\u5e73\u53f0\uff0c\u6240\u6709\u7684\u8bbe\u5907\u63a7\u5236\u6307\u4ee4\u7531\u7269\u8054\u7f51\u5e73\u53f0\u4e0b\u53d1\u7ed9\u9a71\u52a8\u3002",background:n(64669)}),(0,ES.jsx)(AT,{bodyStyle:{padding:0},children:(0,ES.jsx)(wT,{className:"drive-image mt20",type:"card",items:[{key:"1",label:"\u81ea\u5b9a\u4e49",children:(0,ES.jsx)(oW,{})},{key:"2",label:"\u9a71\u52a8\u5e02\u573a",children:(0,ES.jsx)(gW,{})}]})})]})},mW=sE.Text,yW=sE.Title,_W={width:"25%"},bW=function(e){return(0,ES.jsxs)("div",{className:"overview-item flex flex-vertical justify-space-between",style:{marginTop:"-20px"},children:[(0,ES.jsxs)("div",{children:[(0,ES.jsx)("div",{className:"overview-item__title",children:e.title}),(0,ES.jsx)("div",{className:"overview-item__count",children:e.count})]}),(0,ES.jsx)("div",{children:(e.infoList||[]).map((function(e){var t=e.title,n=e.value;return(0,ES.jsxs)(mW,{className:"overview-item__info flex flex-horizontal justify-space-between",children:[(0,ES.jsx)("span",{children:t}),(0,ES.jsx)("span",{children:n})]},t)}))})]})},CW=function(e){var t=e.pageInfo;return(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsxs)(AT,{title:(0,ES.jsx)(yW,{level:3,children:"\u5e73\u53f0\u6982\u8ff0"}),className:"overview",children:[(0,ES.jsx)(AT.Grid,{style:_W,hoverable:!1,children:(0,ES.jsx)(bW,{title:"\u4ea7\u54c1\u6570",count:null===t||void 0===t?void 0:t.product.total,infoList:[{title:"\u672c\u5730\u4ea7\u54c1",value:"".concat(null===t||void 0===t?void 0:t.product.self,"\u4e2a")},{title:"\u7b2c\u4e09\u65b9\u4ea7\u54c1",value:"".concat(null===t||void 0===t?void 0:t.product.other,"\u4e2a")}]})}),(0,ES.jsx)(AT.Grid,{style:_W,hoverable:!1,children:(0,ES.jsx)(bW,{title:"\u8bbe\u5907\u6570",count:null===t||void 0===t?void 0:t.device.total,infoList:[{title:"\u672c\u5730\u8bbe\u5907",value:"".concat(null===t||void 0===t?void 0:t.device.self,"\u4e2a")},{title:"\u7b2c\u4e09\u65b9\u8bbe\u5907",value:"".concat(null===t||void 0===t?void 0:t.device.other,"\u4e2a")}]})}),(0,ES.jsx)(AT.Grid,{style:_W,hoverable:!1,children:(0,ES.jsx)(bW,{title:"\u4e91\u63d2\u4ef6",count:null===t||void 0===t?void 0:t.cloudInstance.count,infoList:[{title:"\u8fd0\u884c\u4e2d",value:"".concat(null===t||void 0===t?void 0:t.cloudInstance.run_count,"\u4e2a")},{title:"\u5df2\u505c\u6b62",value:"".concat(null===t||void 0===t?void 0:t.cloudInstance.stop_count,"\u4e2a")}]})}),(0,ES.jsx)(AT.Grid,{style:_W,hoverable:!1,children:(0,ES.jsx)(bW,{title:"\u544a\u8b66\u6570",count:null===t||void 0===t?void 0:t.alert.total,infoList:[{title:"\u6570\u636e\u7edf\u8ba1\u622a\u6b62\u6628\u65e524\u65f6",value:" "}]})})]})})},SW=n(29388),wW=n(53415);!function(e){e.FORE="fore",e.MID="mid",e.BG="bg"}(lW||(lW={})),function(e){e.TOP="top",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e.RIGHT="right",e.RIGHT_TOP="right-top",e.RIGHT_BOTTOM="right-bottom",e.LEFT="left",e.LEFT_TOP="left-top",e.LEFT_BOTTOM="left-bottom",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.RADIUS="radius",e.CIRCLE="circle",e.NONE="none"}(cW||(cW={})),function(e){e.AXIS="axis",e.GRID="grid",e.LEGEND="legend",e.TOOLTIP="tooltip",e.ANNOTATION="annotation",e.SLIDER="slider",e.SCROLLBAR="scrollbar",e.OTHER="other"}(uW||(uW={}));var kW,xW,EW,TW,NW=3,IW=2,DW=1;!function(e){e.BEFORE_RENDER="beforerender",e.AFTER_RENDER="afterrender",e.BEFORE_PAINT="beforepaint",e.AFTER_PAINT="afterpaint",e.BEFORE_CHANGE_DATA="beforechangedata",e.AFTER_CHANGE_DATA="afterchangedata",e.BEFORE_CLEAR="beforeclear",e.AFTER_CLEAR="afterclear",e.BEFORE_DESTROY="beforedestroy",e.BEFORE_CHANGE_SIZE="beforechangesize",e.AFTER_CHANGE_SIZE="afterchangesize"}(kW||(kW={})),function(e){e.BEFORE_DRAW_ANIMATE="beforeanimate",e.AFTER_DRAW_ANIMATE="afteranimate",e.BEFORE_RENDER_LABEL="beforerenderlabel",e.AFTER_RENDER_LABEL="afterrenderlabel"}(xW||(xW={})),function(e){e.MOUSE_ENTER="plot:mouseenter",e.MOUSE_DOWN="plot:mousedown",e.MOUSE_MOVE="plot:mousemove",e.MOUSE_UP="plot:mouseup",e.MOUSE_LEAVE="plot:mouseleave",e.TOUCH_START="plot:touchstart",e.TOUCH_MOVE="plot:touchmove",e.TOUCH_END="plot:touchend",e.TOUCH_CANCEL="plot:touchcancel",e.CLICK="plot:click",e.DBLCLICK="plot:dblclick",e.CONTEXTMENU="plot:contextmenu",e.LEAVE="plot:leave",e.ENTER="plot:enter"}(EW||(EW={})),function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.SELECTED="selected",e.DEFAULT="default"}(TW||(TW={}));var LW,OW,RW,AW,MW=["color","shape","size"],PW="_origin",ZW={};function FW(e,t){ZW[e]=t}function BW(e){LW||(LW=document.createElement("table"),OW=document.createElement("tr"),RW=/^\s*<(\w+|!)[^>]*>/,AW={tr:document.createElement("tbody"),tbody:LW,thead:LW,tfoot:LW,td:OW,th:OW,"*":document.createElement("div")});var t=RW.test(e)&&RegExp.$1;t&&t in AW||(t="*");var n=AW[t];e="string"===typeof e?e.replace(/(^\s*)|(\s*$)/g,""):e,n.innerHTML=""+e;var i=n.childNodes[0];return i&&n.contains(i)&&n.removeChild(i),i}function HW(e,t){if(e)for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);return e}function zW(e){return"number"===typeof e&&!isNaN(e)}function jW(e,t,n,i){var r=n,o=i;if(t){var a=function(e){var t=getComputedStyle(e);return{width:(e.clientWidth||parseInt(t.width,10))-parseInt(t.paddingLeft,10)-parseInt(t.paddingRight,10),height:(e.clientHeight||parseInt(t.height,10))-parseInt(t.paddingTop,10)-parseInt(t.paddingBottom,10)}}(e);r=a.width?a.width:r,o=a.height?a.height:o}return{width:Math.max(zW(r)?r:1,1),height:Math.max(zW(o)?o:1,1)}}var VW=n(82469),WW=function(e){function t(t){var n=e.call(this)||this;n.destroyed=!1;var i=t.visible,r=void 0===i||i;return n.visible=r,n}return(0,SW.ZT)(t,e),t.prototype.show=function(){this.visible||this.changeVisible(!0)},t.prototype.hide=function(){this.visible&&this.changeVisible(!1)},t.prototype.destroy=function(){this.off(),this.destroyed=!0},t.prototype.changeVisible=function(e){this.visible!==e&&(this.visible=e)},t}(VW.Z),UW=WW,GW=n(34494),KW=function(){function e(e){var t=e.xField,n=e.yField,i=e.adjustNames,r=void 0===i?["x","y"]:i,o=e.dimValuesMap;this.adjustNames=r,this.xField=t,this.yField=n,this.dimValuesMap=o}return e.prototype.isAdjust=function(e){return this.adjustNames.indexOf(e)>=0},e.prototype.getAdjustRange=function(e,t,n){var i,r,o=this.yField,a=n.indexOf(t),s=n.length;return!o&&this.isAdjust("y")?(i=0,r=1):s>1?(i=n[0===a?0:a-1],r=n[a===s-1?s-1:a+1],0!==a?i+=(t-i)/2:i-=(r-t)/2,a!==s-1?r-=(r-t)/2:r+=(t-n[s-2])/2):(i=0===t?0:t-.5,r=0===t?1:t+.5),{pre:i,next:r}},e.prototype.adjustData=function(e,t){var n=this,i=this.getDimValues(t);wW.S6(e,(function(e,t){wW.S6(i,(function(i,r){n.adjustDim(r,i,e,t)}))}))},e.prototype.groupData=function(e,t){return wW.S6(e,(function(e){void 0===e[t]&&(e[t]=0)})),wW.vM(e,t)},e.prototype.adjustDim=function(e,t,n,i){},e.prototype.getDimValues=function(e){var t=this.xField,n=this.yField,i=wW.f0({},this.dimValuesMap),r=[];if(t&&this.isAdjust("x")&&r.push(t),n&&this.isAdjust("y")&&r.push(n),r.forEach((function(t){i&&i[t]||(i[t]=wW.I(e,t).sort((function(e,t){return e-t})))})),!n&&this.isAdjust("y")){i.y=[0,1]}return i},e}(),YW=KW,qW={},$W=function(e){return qW[e.toLowerCase()]},XW=function(e,t){if($W(e))throw new Error("Adjust type '"+e+"' existed.");qW[e.toLowerCase()]=t},QW=function(e,t){return QW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},QW(e,t)};function JW(e,t){function n(){this.constructor=e}QW(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var eU=function(){return eU=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},eU.apply(this,arguments)};var tU=function(e){function t(t){var n=e.call(this,t)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var i=t.marginRatio,r=void 0===i?.5:i,o=t.dodgeRatio,a=void 0===o?.5:o,s=t.dodgeBy,l=t.intervalPadding,c=t.dodgePadding,u=t.xDimensionLength,d=t.groupNum,h=t.defaultSize,f=t.maxColumnWidth,p=t.minColumnWidth,g=t.columnWidthRatio,v=t.customOffset;return n.marginRatio=r,n.dodgeRatio=a,n.dodgeBy=s,n.intervalPadding=l,n.dodgePadding=c,n.xDimensionLegenth=u,n.groupNum=d,n.defaultSize=h,n.maxColumnWidth=f,n.minColumnWidth=p,n.columnWidthRatio=g,n.customOffset=v,n}return JW(t,e),t.prototype.process=function(e){var t=wW.d9(e),n=wW.xH(t),i=this.dodgeBy,r=i?wW.ru(n,i):t;return this.cacheMap={},this.adjustDataArray=r,this.mergeData=n,this.adjustData(r,n),this.adjustDataArray=[],this.mergeData=[],t},t.prototype.adjustDim=function(e,t,n,i){var r=this,o=this.customOffset,a=this.getDistribution(e),s=this.groupData(n,e);return wW.S6(s,(function(n,s){var l;l=1===t.length?{pre:t[0]-1,next:t[0]+1}:r.getAdjustRange(e,parseFloat(s),t),wW.S6(n,(function(t){var n=t[e],s=a[n],c=s.indexOf(i);if(wW.UM(o))t[e]=r.getDodgeOffset(l,c,s.length);else{var u=l.pre,d=l.next;t[e]=wW.mf(o)?o(t,l):(u+d)/2+o}}))})),[]},t.prototype.getDodgeOffset=function(e,t,n){var i,r=this,o=r.dodgeRatio,a=r.marginRatio,s=r.intervalPadding,l=r.dodgePadding,c=e.pre,u=e.next,d=u-c;if(!wW.UM(s)&&wW.UM(l)&&s>=0)i=c+this.getIntervalOnlyOffset(n,t);else if(!wW.UM(l)&&wW.UM(s)&&l>=0){i=c+this.getDodgeOnlyOffset(n,t)}else if(!wW.UM(s)&&!wW.UM(l)&&s>=0&&l>=0){i=c+this.getIntervalAndDodgeOffset(n,t)}else{var h=d*o/n,f=a*h;i=(c+u)/2+(.5*(d-n*h-(n-1)*f)+((t+1)*h+t*f)-.5*h-.5*d)}return i},t.prototype.getIntervalOnlyOffset=function(e,t){var n=this,i=n.defaultSize,r=n.intervalPadding,o=n.xDimensionLegenth,a=n.groupNum,s=n.dodgeRatio,l=n.maxColumnWidth,c=n.minColumnWidth,u=n.columnWidthRatio,d=r/o,h=(1-(a-1)*d)/a*s/(e-1),f=((1-d*(a-1))/a-h*(e-1))/e;if(f=wW.UM(u)?f:1/a/e*u,!wW.UM(l)){var p=l/o;f=Math.min(f,p)}if(!wW.UM(c)){var g=c/o;f=Math.max(f,g)}return((.5+t)*(f=i?i/o:f)+t*(h=((1-(a-1)*d)/a-e*f)/(e-1))+.5*d)*a-d/2},t.prototype.getDodgeOnlyOffset=function(e,t){var n=this,i=n.defaultSize,r=n.dodgePadding,o=n.xDimensionLegenth,a=n.groupNum,s=n.marginRatio,l=n.maxColumnWidth,c=n.minColumnWidth,u=n.columnWidthRatio,d=r/o,h=1*s/(a-1),f=((1-h*(a-1))/a-d*(e-1))/e;if(f=u?1/a/e*u:f,!wW.UM(l)){var p=l/o;f=Math.min(f,p)}if(!wW.UM(c)){var g=c/o;f=Math.max(f,g)}return((.5+t)*(f=i?i/o:f)+t*d+.5*(h=(1-(f*e+d*(e-1))*a)/(a-1)))*a-h/2},t.prototype.getIntervalAndDodgeOffset=function(e,t){var n=this,i=n.intervalPadding,r=n.dodgePadding,o=n.xDimensionLegenth,a=n.groupNum,s=i/o,l=r/o;return((.5+t)*(((1-s*(a-1))/a-l*(e-1))/e)+t*l+.5*s)*a-s/2},t.prototype.getDistribution=function(e){var t=this.adjustDataArray,n=this.cacheMap,i=n[e];return i||(i={},wW.S6(t,(function(t,n){var r=wW.I(t,e);r.length||r.push(0),wW.S6(r,(function(e){i[e]||(i[e]=[]),i[e].push(n)}))})),n[e]=i),i},t}(YW),nU=tU;var iU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return JW(t,e),t.prototype.process=function(e){var t=wW.d9(e),n=wW.xH(t);return this.adjustData(t,n),t},t.prototype.adjustDim=function(e,t,n){var i=this,r=this.groupData(n,e);return wW.S6(r,(function(n,r){return i.adjustGroup(n,e,parseFloat(r),t)}))},t.prototype.getAdjustOffset=function(e){var t=e.pre,n=e.next,i=.05*(n-t);return function(e,t){return(t-e)*Math.random()+e}(t+i,n-i)},t.prototype.adjustGroup=function(e,t,n,i){var r=this,o=this.getAdjustRange(t,n,i);return wW.S6(e,(function(e){e[t]=r.getAdjustOffset(o)})),e},t}(YW),rU=iU,oU=wW.Ct,aU=function(e){function t(t){var n=e.call(this,t)||this,i=t.adjustNames,r=void 0===i?["y"]:i,o=t.height,a=void 0===o?NaN:o,s=t.size,l=void 0===s?10:s,c=t.reverseOrder,u=void 0!==c&&c;return n.adjustNames=r,n.height=a,n.size=l,n.reverseOrder=u,n}return JW(t,e),t.prototype.process=function(e){var t=this.yField,n=this.reverseOrder,i=t?this.processStack(e):this.processOneDimStack(e);return n?this.reverse(i):i},t.prototype.reverse=function(e){return e.slice(0).reverse()},t.prototype.processStack=function(e){var t=this,n=t.xField,i=t.yField,r=t.reverseOrder?this.reverse(e):e,o=new oU,a=new oU;return r.map((function(e){return e.map((function(e){var t,r=wW.U2(e,n,0),s=wW.U2(e,[i]),l=r.toString();if(s=wW.kJ(s)?s[1]:s,!wW.UM(s)){var c=s>=0?o:a;c.has(l)||c.set(l,0);var u=c.get(l),d=s+u;return c.set(l,d),eU(eU({},e),((t={})[i]=[u,d],t))}return e}))}))},t.prototype.processOneDimStack=function(e){var t=this,n=this,i=n.xField,r=n.height,o=n.reverseOrder,a=o?this.reverse(e):e,s=new oU;return a.map((function(e){return e.map((function(e){var n,o=t.size,a=e[i],l=2*o/r;s.has(a)||s.set(a,l/2);var c=s.get(a);return s.set(a,c+l),eU(eU({},e),((n={}).y=c,n))}))}))},t}(YW),sU=aU,lU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return JW(t,e),t.prototype.process=function(e){var t=wW.xH(e),n=this.xField,i=this.yField,r=this.getXValuesMaxMap(t),o=Math.max.apply(Math,Object.keys(r).map((function(e){return r[e]})));return wW.UI(e,(function(e){return wW.UI(e,(function(e){var t,a,s=e[i],l=e[n];if(wW.kJ(s)){var c=(o-r[l])/2;return eU(eU({},e),((t={})[i]=wW.UI(s,(function(e){return c+e})),t))}var u=(o-s)/2;return eU(eU({},e),((a={})[i]=[u,s+u],a))}))}))},t.prototype.getXValuesMaxMap=function(e){var t=this,n=this.xField,i=this.yField,r=wW.vM(e,(function(e){return e[n]}));return wW.Q8(r,(function(e){return t.getDimMaxValue(e,i)}))},t.prototype.getDimMaxValue=function(e,t){var n=wW.UI(e,(function(e){return wW.U2(e,t,[])})),i=wW.xH(n);return Math.max.apply(Math,i)},t}(YW),cU=lU;XW("Dodge",nU),XW("Jitter",rU),XW("Stack",sU),XW("Symmetric",cU);var uU=function(e,t){return(0,wW.HD)(t)?t:e.invert(e.scale(t))},dU=function(){function e(e){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(e)}return e.prototype.mapping=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t.map((function(t,n){return e._toOriginParam(t,e.scales[n])}));return this.callback.apply(this,i)},e.prototype.getLinearValue=function(e){var t=this.values.length-1,n=Math.floor(t*e),i=t*e-n,r=this.values[n];return r+((n===t?r:this.values[n+1])-r)*i},e.prototype.getNames=function(){for(var e=this.scales,t=this.names,n=Math.min(e.length,t.length),i=[],r=0;r<n;r+=1)i.push(t[r]);return i},e.prototype.getFields=function(){return this.scales.map((function(e){return e.field}))},e.prototype.getScale=function(e){return this.scales[this.names.indexOf(e)]},e.prototype.defaultCallback=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 0===t.length?this.values:t.map((function(t,n){var i=e.scales[n];return"identity"===i.type?i.values[0]:e._getAttributeValue(i,t)}))},e.prototype._parseCfg=function(e){var t=this,n=e.type,i=void 0===n?"base":n,r=e.names,o=void 0===r?[]:r,a=e.scales,s=void 0===a?[]:a,l=e.values,c=void 0===l?[]:l,u=e.callback;this.type=i,this.scales=s,this.values=c,this.names=o,this.callback=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(u){var i=u.apply(void 0,e);if(!(0,wW.UM)(i))return[i]}return t.defaultCallback.apply(t,e)}},e.prototype._getAttributeValue=function(e,t){if(e.isCategory&&!this.linear){var n=e.translate(t);return this.values[n%this.values.length]}var i=e.scale(t);return this.getLinearValue(i)},e.prototype._toOriginParam=function(e,t){return t.isLinear?e:(0,wW.kJ)(e)?e.map((function(e){return uU(t,e)})):uU(t,e)},e}(),hU=dU,fU=/rgba?\(([\s.,0-9]+)\)/,pU=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,gU=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,vU=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,mU=function(e,t,n,i){return e[i]+(t[i]-e[i])*n};function yU(e){return"#"+CU(e[0])+CU(e[1])+CU(e[2])}var _U,bU=function(e){return[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)]},CU=function(e){var t=Math.round(e).toString(16);return 1===t.length?"0"+t:t},SU=function(e){if("#"===e[0]&&7===e.length)return e;_U||(_U=function(){var e=document.createElement("i");return e.title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),e}()),_U.style.color=e;var t=document.defaultView.getComputedStyle(_U,"").getPropertyValue("color");return t=yU(fU.exec(t)[1].split(/\s*,\s*/).map((function(e){return Number(e)})))},wU={rgb2arr:bU,gradient:function(e){var t=(0,wW.HD)(e)?e.split("-"):e,n=(0,wW.UI)(t,(function(e){return bU(-1===e.indexOf("#")?SU(e):e)}));return function(e){return function(e,t){var n=isNaN(Number(t))||t<0?0:t>1?1:Number(t),i=e.length-1,r=Math.floor(i*n),o=i*n-r,a=e[r],s=r===i?a:e[r+1];return yU([mU(a,s,o,0),mU(a,s,o,1),mU(a,s,o,2)])}(n,e)}},toRGB:(0,wW.HP)(SU),toCSSGradient:function(e){if(/^[r,R,L,l]{1}[\s]*\(/.test(e)){var t,n=void 0;if("l"===e[0]){var i=+(r=pU.exec(e))[1]+90;n=r[2],t="linear-gradient("+i+"deg, "}else if("r"===e[0]){var r;t="radial-gradient(",n=(r=gU.exec(e))[4]}var o=n.match(vU);return(0,wW.S6)(o,(function(e,n){var i=e.split(":");t+=i[1]+" "+100*i[0]+"%",n!==o.length-1&&(t+=", ")})),t+=")"}return e}},kU=function(e){function t(t){var n=e.call(this,t)||this;return n.type="color",n.names=["color"],(0,wW.HD)(n.values)&&(n.linear=!0),n.gradient=wU.gradient(n.values),n}return(0,SW.ZT)(t,e),t.prototype.getLinearValue=function(e){return this.gradient(e)},t}(hU),xU=kU,EU=function(e){function t(t){var n=e.call(this,t)||this;return n.type="opacity",n.names=["opacity"],n}return(0,SW.ZT)(t,e),t}(hU),TU=EU,NU=function(e){function t(t){var n=e.call(this,t)||this;return n.names=["x","y"],n.type="position",n}return(0,SW.ZT)(t,e),t.prototype.mapping=function(e,t){var n=this.scales,i=n[0],r=n[1];return(0,wW.UM)(e)||(0,wW.UM)(t)?[]:[(0,wW.kJ)(e)?e.map((function(e){return i.scale(e)})):i.scale(e),(0,wW.kJ)(t)?t.map((function(e){return r.scale(e)})):r.scale(t)]},t}(hU),IU=NU,DU=function(e){function t(t){var n=e.call(this,t)||this;return n.type="shape",n.names=["shape"],n}return(0,SW.ZT)(t,e),t.prototype.getLinearValue=function(e){var t=Math.round((this.values.length-1)*e);return this.values[t]},t}(hU),LU=DU,OU=function(e){function t(t){var n=e.call(this,t)||this;return n.type="size",n.names=["size"],n}return(0,SW.ZT)(t,e),t}(hU),RU=OU,AU={};function MU(e,t){AU[e]=t}var PU=function(){function e(e){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=e,this.initCfg(),this.init()}return e.prototype.translate=function(e){return e},e.prototype.change=function(e){(0,wW.f0)(this.__cfg__,e),this.init()},e.prototype.clone=function(){return this.constructor(this.__cfg__)},e.prototype.getTicks=function(){var e=this;return(0,wW.UI)(this.ticks,(function(t,n){return(0,wW.Kn)(t)?t:{text:e.getText(t,n),tickValue:t,value:e.scale(t)}}))},e.prototype.getText=function(e,t){var n=this.formatter,i=n?n(e,t):e;return(0,wW.UM)(i)||!(0,wW.mf)(i.toString)?"":i.toString()},e.prototype.getConfig=function(e){return this.__cfg__[e]},e.prototype.init=function(){(0,wW.f0)(this,this.__cfg__),this.setDomain(),(0,wW.xb)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},e.prototype.initCfg=function(){},e.prototype.setDomain=function(){},e.prototype.calculateTicks=function(){var e=this.tickMethod,t=[];if((0,wW.HD)(e)){var n=AU[e];if(!n)throw new Error("There is no method to to calculate ticks!");t=n(this)}else(0,wW.mf)(e)&&(t=e(this));return t},e.prototype.rangeMin=function(){return this.range[0]},e.prototype.rangeMax=function(){return this.range[1]},e.prototype.calcPercent=function(e,t,n){return(0,wW.hj)(e)?(e-t)/(n-t):NaN},e.prototype.calcValue=function(e,t,n){return t+e*(n-t)},e}(),ZU=PU,FU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cat",t.isCategory=!0,t}return(0,SW.ZT)(t,e),t.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var e=0;e<this.values.length;e++)this.translateIndexMap.set(this.values[e],e)}},t.prototype.translate=function(e){this.buildIndexMap();var t=this.translateIndexMap.get(e);return void 0===t&&(t=(0,wW.hj)(e)?e:NaN),t},t.prototype.scale=function(e){var t=this.translate(e),n=this.calcPercent(t,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},t.prototype.invert=function(e){var t=this.max-this.min,n=this.calcPercent(e,this.rangeMin(),this.rangeMax()),i=Math.round(t*n)+this.min;return i<this.min||i>this.max?NaN:this.values[i]},t.prototype.getText=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=t;return(0,wW.hj)(t)&&!this.values.includes(t)&&(r=this.values[r]),e.prototype.getText.apply(this,(0,SW.pr)([r],n))},t.prototype.initCfg=function(){this.tickMethod="cat"},t.prototype.setDomain=function(){if((0,wW.UM)(this.getConfig("min"))&&(this.min=0),(0,wW.UM)(this.getConfig("max"))){var e=this.values.length;this.max=e>1?e-1:e}this.translateIndexMap&&(this.translateIndexMap=void 0)},t}(ZU),BU=FU,HU=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,zU="\\d\\d?",jU="\\d\\d",VU="[^\\s]+",WU=/\[([^]*?)\]/gm;function UU(e,t){for(var n=[],i=0,r=e.length;i<r;i++)n.push(e[i].substr(0,t));return n}var GU=function(e){return function(t,n){var i=n[e].map((function(e){return e.toLowerCase()})),r=i.indexOf(t.toLowerCase());return r>-1?r:null}};function KU(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0,r=t;i<r.length;i++){var o=r[i];for(var a in o)e[a]=o[a]}return e}var YU=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],qU=["January","February","March","April","May","June","July","August","September","October","November","December"],$U=UU(qU,3),XU={dayNamesShort:UU(YU,3),dayNames:YU,monthNamesShort:$U,monthNames:qU,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10?1:0)*e%10]}},QU=KU({},XU),JU=function(e){return QU=KU(QU,e)},eG=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},tG=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},nG={D:function(e){return String(e.getDate())},DD:function(e){return tG(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return tG(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return tG(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return tG(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return tG(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return tG(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return tG(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return tG(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return tG(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return tG(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return tG(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+tG(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+tG(Math.floor(Math.abs(t)/60),2)+":"+tG(Math.abs(t)%60,2)}},iG=function(e){return+e-1},rG=[null,zU],oG=[null,VU],aG=["isPm",VU,function(e,t){var n=e.toLowerCase();return n===t.amPm[0]?0:n===t.amPm[1]?1:null}],sG=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var n=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?n:-n}return 0}],lG={D:["day",zU],DD:["day",jU],Do:["day","\\d\\d?[^\\s]+",function(e){return parseInt(e,10)}],M:["month",zU,iG],MM:["month",jU,iG],YY:["year",jU,function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour",zU,void 0,"isPm"],hh:["hour",jU,void 0,"isPm"],H:["hour",zU],HH:["hour",jU],m:["minute",zU],mm:["minute",jU],s:["second",zU],ss:["second",jU],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond",jU,function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:rG,dd:rG,ddd:oG,dddd:oG,MMM:["month",VU,GU("monthNamesShort")],MMMM:["month",VU,GU("monthNames")],a:aG,A:aG,ZZ:sG,Z:sG},cG={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},uG=function(e){return KU(cG,e)},dG=function(e,t,n){if(void 0===t&&(t=cG.default),void 0===n&&(n={}),"number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var i=[];t=(t=cG[t]||t).replace(WU,(function(e,t){return i.push(t),"@@@"}));var r=KU(KU({},QU),n);return(t=t.replace(HU,(function(t){return nG[t](e,r)}))).replace(/@@@/g,(function(){return i.shift()}))};function hG(e,t,n){if(void 0===n&&(n={}),"string"!==typeof t)throw new Error("Invalid format in fecha parse");if(t=cG[t]||t,e.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},r=[],o=[],a=t.replace(WU,(function(e,t){return o.push(eG(t)),"@@@"})),s={},l={};a=eG(a).replace(HU,(function(e){var t=lG[e],n=t[0],i=t[1],o=t[3];if(s[n])throw new Error("Invalid format. "+n+" specified twice in format");return s[n]=!0,o&&(l[o]=!0),r.push(t),"("+i+")"})),Object.keys(l).forEach((function(e){if(!s[e])throw new Error("Invalid format. "+e+" is required in specified format")})),a=a.replace(/@@@/g,(function(){return o.shift()}));var c=e.match(new RegExp(a,"i"));if(!c)return null;for(var u,d=KU(KU({},QU),n),h=1;h<c.length;h++){var f=r[h-1],p=f[0],g=f[2],v=g?g(c[h],d):+c[h];if(null==v)return null;i[p]=v}if(1===i.isPm&&null!=i.hour&&12!==+i.hour?i.hour=+i.hour+12:0===i.isPm&&12===+i.hour&&(i.hour=0),null==i.timezoneOffset){u=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var m=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],y=(h=0,m.length);h<y;h++)if(s[m[h][0]]&&i[m[h][0]]!==u[m[h][1]]())return null}else if(u=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return u}var fG={format:dG,parse:hG,defaultI18n:XU,setGlobalDateI18n:JU,setGlobalDateMasks:uG};function pG(t,n){return(e.format||fG.format)(t,n)}function gG(e){return(0,wW.HD)(e)&&(e=e.indexOf("T")>0?new Date(e).getTime():new Date(e.replace(/-/gi,"/")).getTime()),(0,wW.J_)(e)&&(e=e.getTime()),e}var vG=1e3,mG=6e4,yG=36e5,_G=24*yG,bG=31*_G,CG=365*_G,SG=[["HH:mm:ss",vG],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",mG],["HH:mm",6e5],["HH:mm",18e5],["HH",yG],["HH",6*yG],["HH",12*yG],["YYYY-MM-DD",_G],["YYYY-MM-DD",4*_G],["YYYY-WW",7*_G],["YYYY-MM",bG],["YYYY-MM",4*bG],["YYYY-MM",6*bG],["YYYY",380*_G]];function wG(e,t,n){var i,r=(i=function(e){return e[1]},function(e,t,n,r){for(var o=(0,wW.UM)(n)?0:n,a=(0,wW.UM)(r)?e.length:r;o<a;){var s=o+a>>>1;i(e[s])>t?a=s:o=s+1}return o})(SG,(t-e)/n)-1,o=SG[r];return r<0?o=SG[0]:r>=SG.length&&(o=(0,wW.Z$)(SG)),o}var kG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="timeCat",t}return(0,SW.ZT)(t,e),t.prototype.translate=function(e){e=gG(e);var t=this.values.indexOf(e);return-1===t&&(t=(0,wW.hj)(e)&&e<this.values.length?e:NaN),t},t.prototype.getText=function(e,t){var n=this.translate(e);if(n>-1){var i=this.values[n],r=this.formatter;return i=r?r(i,t):pG(i,this.mask)}return e},t.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},t.prototype.setDomain=function(){var t=this.values;(0,wW.S6)(t,(function(e,n){t[n]=gG(e)})),t.sort((function(e,t){return e-t})),e.prototype.setDomain.call(this)},t}(BU),xG=kG,EG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isContinuous=!0,t}return(0,SW.ZT)(t,e),t.prototype.scale=function(e){if((0,wW.UM)(e))return NaN;var t=this.rangeMin(),n=this.rangeMax();return this.max===this.min?t:t+this.getScalePercent(e)*(n-t)},t.prototype.init=function(){e.prototype.init.call(this);var t=this.ticks,n=(0,wW.YM)(t),i=(0,wW.Z$)(t);n<this.min&&(this.min=n),i>this.max&&(this.max=i),(0,wW.UM)(this.minLimit)||(this.min=n),(0,wW.UM)(this.maxLimit)||(this.max=i)},t.prototype.setDomain=function(){var e=(0,wW.rx)(this.values),t=e.min,n=e.max;(0,wW.UM)(this.min)&&(this.min=t),(0,wW.UM)(this.max)&&(this.max=n),this.min>this.max&&(this.min=t,this.max=n)},t.prototype.calculateTicks=function(){var t=this,n=e.prototype.calculateTicks.call(this);return this.nice||(n=(0,wW.hX)(n,(function(e){return e>=t.min&&e<=t.max}))),n},t.prototype.getScalePercent=function(e){var t=this.max,n=this.min;return(e-n)/(t-n)},t.prototype.getInvertPercent=function(e){return(e-this.rangeMin())/(this.rangeMax()-this.rangeMin())},t}(ZU),TG=EG,NG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return(0,SW.ZT)(t,e),t.prototype.invert=function(e){var t=this.getInvertPercent(e);return this.min+t*(this.max-this.min)},t.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},t}(TG),IG=NG;function DG(e,t){var n=Math.E;return t>=0?Math.pow(n,Math.log(t)/e):-1*Math.pow(n,Math.log(-t)/e)}function LG(e,t){return 1===e?1:Math.log(t)/Math.log(e)}function OG(e,t,n){(0,wW.UM)(n)&&(n=Math.max.apply(null,e));var i=n;return(0,wW.S6)(e,(function(e){e>0&&e<i&&(i=e)})),i===n&&(i=n/t),i>1&&(i=1),i}var RG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t}return(0,SW.ZT)(t,e),t.prototype.invert=function(e){var t,n=this.base,i=LG(n,this.max),r=this.rangeMin(),o=this.rangeMax()-r,a=this.positiveMin;if(a){if(0===e)return 0;var s=1/(i-(t=LG(n,a/n)))*o;if(e<s)return e/s*a}else t=LG(n,this.min);var l=(e-r)/o*(i-t)+t;return Math.pow(n,l)},t.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},t.prototype.setDomain=function(){e.prototype.setDomain.call(this);var t=this.min;if(t<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===t&&(this.positiveMin=OG(this.values,this.base,this.max))},t.prototype.getScalePercent=function(e){var t=this.max,n=this.min;if(t===n)return 0;if(e<=0)return 0;var i=this.base,r=this.positiveMin;return r&&(n=1*r/i),e<r?e/r/(LG(i,t)-LG(i,n)):(LG(i,e)-LG(i,n))/(LG(i,t)-LG(i,n))},t}(TG),AG=RG,MG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="pow",t}return(0,SW.ZT)(t,e),t.prototype.invert=function(e){var t=this.getInvertPercent(e),n=this.exponent,i=DG(n,this.max),r=DG(n,this.min),o=t*(i-r)+r,a=o>=0?1:-1;return Math.pow(o,n)*a},t.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},t.prototype.getScalePercent=function(e){var t=this.max,n=this.min;if(t===n)return 0;var i=this.exponent;return(DG(i,e)-DG(i,n))/(DG(i,t)-DG(i,n))},t}(TG),PG=MG,ZG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="time",t}return(0,SW.ZT)(t,e),t.prototype.getText=function(e,t){var n=this.translate(e),i=this.formatter;return i?i(n,t):pG(n,this.mask)},t.prototype.scale=function(t){var n=t;return((0,wW.HD)(n)||(0,wW.J_)(n))&&(n=this.translate(n)),e.prototype.scale.call(this,n)},t.prototype.translate=function(e){return gG(e)},t.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},t.prototype.setDomain=function(){var e=this.values,t=this.getConfig("min"),n=this.getConfig("max");if((0,wW.UM)(t)&&(0,wW.hj)(t)||(this.min=this.translate(this.min)),(0,wW.UM)(n)&&(0,wW.hj)(n)||(this.max=this.translate(this.max)),e&&e.length){var i=[],r=1/0,o=r,a=0;(0,wW.S6)(e,(function(e){var t=gG(e);if(isNaN(t))throw new TypeError("Invalid Time: "+e+" in time scale!");r>t?(o=r,r=t):o>t&&(o=t),a<t&&(a=t),i.push(t)})),e.length>1&&(this.minTickInterval=o-r),(0,wW.UM)(t)&&(this.min=r),(0,wW.UM)(n)&&(this.max=a)}},t}(IG),FG=ZG,BG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantize",t}return(0,SW.ZT)(t,e),t.prototype.invert=function(e){var t=this.ticks,n=t.length,i=this.getInvertPercent(e),r=Math.floor(i*(n-1));if(r>=n-1)return(0,wW.Z$)(t);if(r<0)return(0,wW.YM)(t);var o=t[r],a=r/(n-1);return o+(i-a)/((r+1)/(n-1)-a)*(t[r+1]-o)},t.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},t.prototype.calculateTicks=function(){var t=e.prototype.calculateTicks.call(this);return this.nice||((0,wW.Z$)(t)!==this.max&&t.push(this.max),(0,wW.YM)(t)!==this.min&&t.unshift(this.min)),t},t.prototype.getScalePercent=function(e){var t=this.ticks;if(e<(0,wW.YM)(t))return 0;if(e>(0,wW.Z$)(t))return 1;var n=0;return(0,wW.S6)(t,(function(t,i){if(!(e>=t))return!1;n=i})),n/(t.length-1)},t}(TG),HG=BG,zG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantile",t}return(0,SW.ZT)(t,e),t.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},t}(HG),jG=zG,VG={};function WG(e){return VG[e]}function UG(e,t){if(WG(e))throw new Error("type '"+e+"' existed.");VG[e]=t}var GG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return(0,SW.ZT)(t,e),t.prototype.calculateTicks=function(){return this.values},t.prototype.scale=function(e){return this.values[0]!==e&&(0,wW.hj)(e)?e:this.range[0]},t.prototype.invert=function(e){var t=this.range;return e<t[0]||e>t[1]?NaN:this.values[0]},t}(ZU),KG=GG;function YG(e){var t=e.values,n=e.tickInterval,i=e.tickCount,r=e.showLast;if((0,wW.hj)(n)){var o=(0,wW.hX)(t,(function(e,t){return t%n===0})),a=(0,wW.Z$)(t);return r&&(0,wW.Z$)(o)!==a&&o.push(a),o}var s=t.length,l=e.min,c=e.max;if((0,wW.UM)(l)&&(l=0),(0,wW.UM)(c)&&(c=t.length-1),!(0,wW.hj)(i)||i>=s)return t.slice(l,c+1);if(i<=0||c<=0)return[];for(var u=1===i?s:Math.floor(s/(i-1)),d=[],h=l,f=0;f<i&&!(h>=c);f++)h=Math.min(l+f*u,c),f===i-1&&r?d.push(t[c]):d.push(t[h]);return d}var qG=Math.sqrt(50),$G=Math.sqrt(10),XG=Math.sqrt(2),QG=function(){function e(){this._domain=[0,1]}return e.prototype.domain=function(e){return e?(this._domain=Array.from(e,Number),this):this._domain.slice()},e.prototype.nice=function(e){var t,n;void 0===e&&(e=5);var i,r=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],l=this._domain[a];return l<s&&(s=(t=[l,s])[0],l=t[1],o=(n=[a,o])[0],a=n[1]),(i=JG(s,l,e))>0?i=JG(s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i,e):i<0&&(i=JG(s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i,e)),i>0?(r[o]=Math.floor(s/i)*i,r[a]=Math.ceil(l/i)*i,this.domain(r)):i<0&&(r[o]=Math.ceil(s*i)/i,r[a]=Math.floor(l*i)/i,this.domain(r)),this},e.prototype.ticks=function(e){return void 0===e&&(e=5),function(e,t,n){var i,r,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];(i=t<e)&&(r=e,e=t,t=r);if(0===(a=JG(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(r=Math.ceil(t-e+1));++s<r;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(r=Math.ceil(e-t+1));++s<r;)o[s]=(e-s)/a;i&&o.reverse();return o}(this._domain[0],this._domain[this._domain.length-1],e||5)},e}();function JG(e,t,n){var i=(t-e)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=qG?10:o>=$G?5:o>=XG?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=qG?10:o>=$G?5:o>=XG?2:1)}function eK(e,t,n){return("ceil"===n?Math.ceil(e/t):"floor"===n?Math.floor(e/t):Math.round(e/t))*t}function tK(e,t,n){var i=eK(e,n,"floor"),r=eK(t,n,"ceil");i=(0,wW.ri)(i,n),r=(0,wW.ri)(r,n);for(var o=[],a=Math.max((r-i)/(Math.pow(2,12)-1),n),s=i;s<=r;s+=a){var l=(0,wW.ri)(s,a);o.push(l)}return{min:i,max:r,ticks:o}}function nK(e,t,n){var i,r=e.minLimit,o=e.maxLimit,a=e.min,s=e.max,l=e.tickCount,c=void 0===l?5:l,u=(0,wW.UM)(r)?(0,wW.UM)(t)?a:t:r,d=(0,wW.UM)(o)?(0,wW.UM)(n)?s:n:o;if(u>d&&(d=(i=[u,d])[0],u=i[1]),c<=2)return[u,d];for(var h=(d-u)/(c-1),f=[],p=0;p<c;p++)f.push(u+h*p);return f}function iK(e){return Math.abs(e)<1e-15?e:parseFloat(e.toFixed(15))}var rK=[1,5,2,2.5,4,3],oK=100*Number.EPSILON;function aK(e,t,n,i,r,o){var a=(0,wW.dp)(t),s=(0,wW.cq)(t,e),l=0,c=function(e,t){return(e%t+t)%t}(i,o);return(c<oK||o-c<oK)&&i<=0&&r>=0&&(l=1),1-s/(a-1)-n+l}function sK(e,t,n){var i=(0,wW.dp)(t);return 1-(0,wW.cq)(t,e)/(i-1)-n+1}function lK(e,t,n,i,r,o){var a=(e-1)/(o-r),s=(t-1)/(Math.max(o,i)-Math.min(n,r));return 2-Math.max(a/s,s/a)}function cK(e,t){return e>=t?2-(e-1)/(t-1):1}function uK(e,t,n,i){var r=t-e;return 1-.5*(Math.pow(t-i,2)+Math.pow(e-n,2))/Math.pow(.1*r,2)}function dK(e,t,n){var i=t-e;if(n>i){var r=(n-i)/2;return 1-Math.pow(r,2)/Math.pow(.1*i,2)}return 1}function hK(e,t,n,i,r,o){void 0===n&&(n=5),void 0===i&&(i=!0),void 0===r&&(r=rK),void 0===o&&(o=[.25,.2,.5,.05]);var a=n<0?0:Math.round(n);if(Number.isNaN(e)||Number.isNaN(t)||"number"!==typeof e||"number"!==typeof t||!a)return{min:0,max:0,ticks:[]};if(t-e<1e-15||1===a)return{min:e,max:t,ticks:[e]};if(t-e>1e148){var s=(t-e)/(C=n||5);return{min:e,max:t,ticks:Array(C).fill(null).map((function(t,n){return iK(e+s*n)}))}}for(var l={score:-2,lmin:0,lmax:0,lstep:0},c=1;c<1/0;){for(var u=0;u<r.length;u+=1){var d=r[u],h=sK(d,r,c);if(o[0]*h+o[1]+o[2]+o[3]<l.score){c=1/0;break}for(var f=2;f<1/0;){var p=cK(f,a);if(o[0]*h+o[1]+o[2]*p+o[3]<l.score)break;for(var g=(t-e)/(f+1)/c/d,v=Math.ceil(Math.log10(g));v<1/0;){var m=c*d*Math.pow(10,v),y=dK(e,t,m*(f-1));if(o[0]*h+o[1]*y+o[2]*p+o[3]<l.score)break;var _=Math.floor(t/m)*c-(f-1)*c,b=Math.ceil(e/m)*c;if(_<=b)for(var C=b-_,S=0;S<=C;S+=1){var w=(_+S)*(m/c),k=w+m*(f-1),x=m,E=aK(d,r,c,w,k,x),T=uK(e,t,w,k),N=lK(f,a,e,t,w,k),I=o[0]*E+o[1]*T+o[2]*N+1*o[3];I>l.score&&(!i||w<=e&&k>=t)&&(l.lmin=w,l.lmax=k,l.lstep=x,l.score=I)}v+=1}f+=1}}c+=1}var D=iK(l.lmax),L=iK(l.lmin),O=iK(l.lstep),R=Math.floor(function(e){return Math.round(1e12*e)/1e12}((D-L)/O))+1,A=new Array(R);A[0]=iK(L);for(u=1;u<R;u++)A[u]=iK(A[u-1]+O);return{min:Math.min(e,(0,wW.YM)(A)),max:Math.max(t,(0,wW.Z$)(A)),ticks:A}}function fK(e,t,n){if(void 0===n&&(n=5),e===t)return{max:t,min:e,ticks:[e]};var i=n<0?0:Math.round(n);if(0===i)return{max:t,min:e,ticks:[]};var r=(t-e)/i,o=Math.pow(10,Math.floor(Math.log10(r))),a=o;2*o-r<1.5*(r-a)&&5*o-r<2.75*(r-(a=2*o))&&10*o-r<1.5*(r-(a=5*o))&&(a=10*o);for(var s=Math.ceil(t/a),l=Math.floor(e/a),c=Math.max(s*a,t),u=Math.min(l*a,e),d=Math.floor((c-u)/a)+1,h=new Array(d),f=0;f<d;f++)h[f]=iK(u+f*a);return{min:u,max:c,ticks:h}}function pK(e,t){var n=e.length*t;return 1===t?e[e.length-1]:0===t?e[0]:n%1!==0?e[Math.ceil(n)-1]:e.length%2===0?(e[n-1]+e[n])/2:e[n]}function gK(e){return new Date(e).getFullYear()}function vK(e){return new Date(e,0,1).getTime()}function mK(e){return new Date(e).getMonth()}function yK(e,t){return new Date(e,t,1).getTime()}MU("cat",YG),MU("time-cat",(function(e){return YG((0,SW.pi)({showLast:!0},e))})),MU("wilkinson-extended",(function(e){var t=e.min,n=e.max,i=e.tickCount,r=e.nice,o=e.tickInterval,a=e.minLimit,s=e.maxLimit,l=hK(t,n,i,r).ticks;return(0,wW.UM)(a)&&(0,wW.UM)(s)?o?tK(t,n,o).ticks:l:nK(e,(0,wW.YM)(l),(0,wW.Z$)(l))})),MU("r-pretty",(function(e){var t=e.min,n=e.max,i=e.tickCount,r=e.tickInterval,o=e.minLimit,a=e.maxLimit,s=fK(t,n,i).ticks;return(0,wW.UM)(o)&&(0,wW.UM)(a)?r?tK(t,n,r).ticks:s:nK(e,(0,wW.YM)(s),(0,wW.Z$)(s))})),MU("time",(function(e){var t=e.min,n=e.max,i=e.minTickInterval,r=e.tickInterval,o=e.tickCount;if(r)o=Math.ceil((n-t)/r);else{var a=(n-t)/(r=wG(t,n,o)[1])/o;a>1&&(r*=Math.ceil(a)),i&&r<i&&(r=i)}r=Math.max(Math.floor((n-t)/(Math.pow(2,12)-1)),r);for(var s=[],l=t;l<n+r;l+=r)s.push(l);return s})),MU("time-pretty",(function(e){var t=e.min,n=e.max,i=e.minTickInterval,r=e.tickCount,o=e.tickInterval,a=[];o||(o=(n-t)/r,i&&o<i&&(o=i)),o=Math.max(Math.floor((n-t)/(Math.pow(2,12)-1)),o);var s=gK(t);if(o>CG)for(var l=gK(n),c=Math.ceil(o/CG),u=s;u<=l+c;u+=c)a.push(vK(u));else if(o>bG){var d=Math.ceil(o/bG),h=mK(t),f=function(e,t){var n=gK(e),i=gK(t),r=mK(e);return 12*(i-n)+(mK(t)-r)%12}(t,n);for(u=0;u<=f+d;u+=d)a.push(yK(s,u+h))}else if(o>_G){var p=(_=new Date(t)).getFullYear(),g=_.getMonth(),v=_.getDate(),m=Math.ceil(o/_G),y=function(e,t){return Math.ceil((t-e)/_G)}(t,n);for(u=0;u<y+m;u+=m)a.push(new Date(p,g,v+u).getTime())}else if(o>yG){p=(_=new Date(t)).getFullYear(),g=_.getMonth(),m=_.getDate();var _,b=_.getHours(),C=Math.ceil(o/yG),S=function(e,t){return Math.ceil((t-e)/yG)}(t,n);for(u=0;u<=S+C;u+=C)a.push(new Date(p,g,m,b+u).getTime())}else if(o>mG){var w=function(e,t){return Math.ceil((t-e)/6e4)}(t,n),k=Math.ceil(o/mG);for(u=0;u<=w+k;u+=k)a.push(t+u*mG)}else{var x=o;x<vG&&(x=vG);var E=Math.floor(t/vG)*vG,T=Math.ceil((n-t)/vG),N=Math.ceil(x/vG);for(u=0;u<T+N;u+=N)a.push(E+u*vG)}return a.length>=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a})),MU("log",(function(e){var t,n=e.base,i=e.tickCount,r=e.min,o=e.max,a=e.values,s=LG(n,o);if(r>0)t=Math.floor(LG(n,r));else{var l=OG(a,n,o);t=Math.floor(LG(n,l))}for(var c=s-t,u=Math.ceil(c/i),d=[],h=t;h<s+u;h+=u)d.push(Math.pow(n,h));return r<=0&&d.unshift(0),d})),MU("pow",(function(e){var t=e.exponent,n=e.tickCount,i=Math.ceil(DG(t,e.max));return fK(Math.floor(DG(t,e.min)),i,n).ticks.map((function(e){var n=e>=0?1:-1;return Math.pow(e,t)*n}))})),MU("quantile",(function(e){var t=e.tickCount,n=e.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(e,t){return e-t})),r=[],o=0;o<t;o++){var a=o/(t-1);r.push(pK(i,a))}return r})),MU("d3-linear",(function(e){var t=e.min,n=e.max,i=e.tickInterval,r=e.minLimit,o=e.maxLimit,a=function(e){var t=e.min,n=e.max,i=e.nice,r=e.tickCount,o=new QG;return o.domain([t,n]),i&&o.nice(r),o.ticks(r)}(e);return(0,wW.UM)(r)&&(0,wW.UM)(o)?i?tK(t,n,i).ticks:a:nK(e,(0,wW.YM)(a),(0,wW.Z$)(a))})),UG("cat",BU),UG("category",BU),UG("identity",KG),UG("linear",IG),UG("log",AG),UG("pow",PG),UG("time",FG),UG("timeCat",xG),UG("quantize",HG),UG("quantile",jG);var _K={},bK=function(e){return _K[e.toLowerCase()]},CK=function(e,t){if(bK(e))throw new Error("Attribute type '".concat(e,"' existed."));_K[e.toLowerCase()]=t};CK("Color",xU),CK("Opacity",TU),CK("Position",IU),CK("Shape",LU),CK("Size",RU);var SK=n(50907);function wK(e,t,n){var i=t[0],r=t[1],o=t[2];return e[0]=i*n[0]+r*n[3]+o*n[6],e[1]=i*n[1]+r*n[4]+o*n[7],e[2]=i*n[2]+r*n[5]+o*n[8],e}!function(){var e=function(){var e=new SK.WT(3);return SK.WT!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}()}();var kK=n(5742),xK=n(36403),EK=function(){function e(e){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=e.start,n=e.end,i=e.matrix,r=void 0===i?[1,0,0,0,1,0,0,0,1]:i,o=e.isTransposed,a=void 0!==o&&o;this.start=t,this.end=n,this.matrix=r,this.originalMatrix=(0,SW.ev)([],r),this.isTransposed=a}return e.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},e.prototype.update=function(e){(0,wW.f0)(this,e),this.initial()},e.prototype.convertDim=function(e,t){var n,i=this[t],r=i.start,o=i.end;return this.isReflect(t)&&(r=(n=[o,r])[0],o=n[1]),r+e*(o-r)},e.prototype.invertDim=function(e,t){var n,i=this[t],r=i.start,o=i.end;return this.isReflect(t)&&(r=(n=[o,r])[0],o=n[1]),(e-r)/(o-r)},e.prototype.applyMatrix=function(e,t,n){void 0===n&&(n=0);var i=[e,t,n];return wK(i,i,this.matrix),i},e.prototype.invertMatrix=function(e,t,n){void 0===n&&(n=0);var i=this.matrix,r=kK.U_([0,0,0,0,0,0,0,0,0],i),o=[e,t,n];return r&&wK(o,o,r),o},e.prototype.convert=function(e){var t=this.convertPoint(e),n=t.x,i=t.y,r=this.applyMatrix(n,i,1);return{x:r[0],y:r[1]}},e.prototype.invert=function(e){var t=this.invertMatrix(e.x,e.y,1);return this.invertPoint({x:t[0],y:t[1]})},e.prototype.rotate=function(e){var t=this.matrix,n=this.center;return xK.m$(t,t,[-n.x,-n.y]),xK.zu(t,t,e),xK.m$(t,t,[n.x,n.y]),this},e.prototype.reflect=function(e){return"x"===e?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},e.prototype.scale=function(e,t){var n=this.matrix,i=this.center;return xK.m$(n,n,[-i.x,-i.y]),xK.lh(n,n,[e,t]),xK.m$(n,n,[i.x,i.y]),this},e.prototype.translate=function(e,t){var n=this.matrix;return xK.m$(n,n,[e,t]),this},e.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},e.prototype.getCenter=function(){return this.center},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRadius=function(){return this.radius},e.prototype.isReflect=function(e){return"x"===e?this.isReflectX:this.isReflectY},e.prototype.resetMatrix=function(e){this.matrix=e||(0,SW.ev)([],this.originalMatrix)},e}(),TK=EK,NK=function(e){function t(t){var n=e.call(this,t)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return(0,SW.ZT)(t,e),t.prototype.initial=function(){e.prototype.initial.call(this);var t=this.start,n=this.end;this.x={start:t.x,end:n.x},this.y={start:t.y,end:n.y}},t.prototype.convertPoint=function(e){var t,n=e.x,i=e.y;return this.isTransposed&&(n=(t=[i,n])[0],i=t[1]),{x:this.convertDim(n,"x"),y:this.convertDim(i,"y")}},t.prototype.invertPoint=function(e){var t,n=this.invertDim(e.x,"x"),i=this.invertDim(e.y,"y");return this.isTransposed&&(n=(t=[i,n])[0],i=t[1]),{x:n,y:i}},t}(TK),IK=NK,DK=n(99874),LK=function(e){function t(t){var n=e.call(this,t)||this;n.isHelix=!0,n.type="helix";var i=t.startAngle,r=void 0===i?1.25*Math.PI:i,o=t.endAngle,a=void 0===o?7.25*Math.PI:o,s=t.innerRadius,l=void 0===s?0:s,c=t.radius;return n.startAngle=r,n.endAngle=a,n.innerRadius=l,n.radius=c,n.initial(),n}return(0,SW.ZT)(t,e),t.prototype.initial=function(){e.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/t),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},t.prototype.convertPoint=function(e){var t,n=e.x,i=e.y;this.isTransposed&&(n=(t=[i,n])[0],i=t[1]);var r=this.convertDim(n,"x"),o=this.a*r,a=this.convertDim(i,"y");return{x:this.center.x+Math.cos(r)*(o+a),y:this.center.y+Math.sin(r)*(o+a)}},t.prototype.invertPoint=function(e){var t,n=this.d+this.y.start,i=DK.$X([0,0],[e.x,e.y],[this.center.x,this.center.y]),r=xK.Dg(i,[1,0],!0),o=r*this.a;DK.kE(i)<o&&(o=DK.kE(i)),r=2*Math.floor((DK.kE(i)-o)/n)*Math.PI+r;var a=this.a*r,s=DK.kE(i)-a;s=(0,wW.vQ)(s,0)?0:s;var l=this.invertDim(r,"x"),c=this.invertDim(s,"y");return l=(0,wW.vQ)(l,0)?0:l,c=(0,wW.vQ)(c,0)?0:c,this.isTransposed&&(l=(t=[c,l])[0],c=t[1]),{x:l,y:c}},t}(TK),OK=LK,RK=function(e){function t(t){var n=e.call(this,t)||this;n.isPolar=!0,n.type="polar";var i=t.startAngle,r=void 0===i?-Math.PI/2:i,o=t.endAngle,a=void 0===o?3*Math.PI/2:o,s=t.innerRadius,l=void 0===s?0:s,c=t.radius;return n.startAngle=r,n.endAngle=a,n.innerRadius=l,n.radius=c,n.initial(),n}return(0,SW.ZT)(t,e),t.prototype.initial=function(){for(e.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var t,n=this.getOneBox(),i=n.maxX-n.minX,r=n.maxY-n.minY,o=Math.abs(n.minX)/i,a=Math.abs(n.minY)/r;this.height/r>this.width/i?(t=this.width/i,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*t*r}):(t=this.height/r,this.circleCenter={x:this.center.x-(.5-o)*t*i,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=t*this.radius:(this.radius<=0||this.radius>t)&&(this.polarRadius=t):this.polarRadius=t,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},t.prototype.getRadius=function(){return this.polarRadius},t.prototype.convertPoint=function(e){var t,n=this.getCenter(),i=e.x,r=e.y;return this.isTransposed&&(i=(t=[r,i])[0],r=t[1]),i=this.convertDim(i,"x"),r=this.convertDim(r,"y"),{x:n.x+Math.cos(i)*r,y:n.y+Math.sin(i)*r}},t.prototype.invertPoint=function(e){var t,n=this.getCenter(),i=[e.x-n.x,e.y-n.y],r=this.startAngle,o=this.endAngle;this.isReflect("x")&&(r=(t=[o,r])[0],o=t[1]);var a=[1,0,0,0,1,0,0,0,1];xK.zu(a,a,r);var s=[1,0,0];wK(s,s,a);var l=[s[0],s[1]],c=xK.Dg(l,i,o<r);(0,wW.vQ)(c,2*Math.PI)&&(c=0);var u=DK.kE(i),d=c/(o-r);d=o-r>0?d:-d;var h=this.invertDim(u,"y"),f={x:0,y:0};return f.x=this.isTransposed?h:d,f.y=this.isTransposed?d:h,f},t.prototype.getCenter=function(){return this.circleCenter},t.prototype.getOneBox=function(){var e=this.startAngle,t=this.endAngle;if(Math.abs(t-e)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(e),Math.cos(t)],i=[0,Math.sin(e),Math.sin(t)],r=Math.min(e,t);r<Math.max(e,t);r+=Math.PI/18)n.push(Math.cos(r)),i.push(Math.sin(r));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,i),maxY:Math.max.apply(Math,i)}},t}(TK),AK=RK,MK={},PK=function(e,t){MK[e.toLowerCase()]=t};function ZK(e,t,n){var i=new GW.Event(t,n);i.target=e,i.propagationPath.push(e),e.emitDelegation(t,i);for(var r=e.getParent();r;)r.emitDelegation(t,i),i.propagationPath.push(r),r=r.getParent()}PK("rect",IK),PK("cartesian",IK),PK("polar",AK),PK("helix",OK);var FK=[1,0,0,0,1,0,0,0,1];function BK(e,t,n){return void 0===n&&(n=FK),t?xK.vs(n,[["t",-e.x,-e.y],["r",t],["t",e.x,e.y]]):null}function HK(e,t){return e.x||e.y?xK.vs(t||FK,[["t",e.x,e.y]]):null}function zK(e,t){var n=[0,0];return DK.kK(n,t,e),n}function jK(e,t,n,i){if(t){var r=BK({x:n,y:i},t,e.getMatrix());e.setMatrix(r)}}function VK(e,t,n){var i=HK({x:t,y:n});e.attr("matrix",i)}function WK(e){var t=0,n=0,i=0,r=0;return(0,wW.hj)(e)?t=n=i=r=e:(0,wW.kJ)(e)&&(t=e[0],i=(0,wW.UM)(e[1])?e[0]:e[1],r=(0,wW.UM)(e[2])?e[0]:e[2],n=(0,wW.UM)(e[3])?i:e[3]),[t,i,r,n]}function UK(e){for(var t=e.childNodes,n=t.length-1;n>=0;n--)e.removeChild(t[n])}function GK(e){var t=e.start,n=e.end,i=Math.min(t.x,n.x),r=Math.min(t.y,n.y),o=Math.max(t.x,n.x),a=Math.max(t.y,n.y);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-r}}function KK(e,t,n,i){var r=e+n,o=t+i;return{x:e,y:t,width:n,height:i,minX:e,minY:t,maxX:isNaN(r)?0:r,maxY:isNaN(o)?0:o}}function YK(e,t,n){return(1-n)*e+t*n}function qK(e,t,n){return{x:e.x+Math.cos(n)*t,y:e.y+Math.sin(n)*t}}var $K=function(e,t,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[e,t].includes(1/0)?Math.abs(e)===Math.abs(t):Math.abs(e-t)<n};function XK(e){var t,n=e.getClip(),i=n&&n.getBBox();if(e.isGroup()){var r=1/0,o=-1/0,a=1/0,s=-1/0,l=e.getChildren();l.length>0?(0,wW.S6)(l,(function(e){if(e.get("visible")){if(e.isGroup()&&0===e.get("children").length)return!0;var t=XK(e),n=e.applyToMatrix([t.minX,t.minY,1]),i=e.applyToMatrix([t.minX,t.maxY,1]),l=e.applyToMatrix([t.maxX,t.minY,1]),c=e.applyToMatrix([t.maxX,t.maxY,1]),u=Math.min(n[0],i[0],l[0],c[0]),d=Math.max(n[0],i[0],l[0],c[0]),h=Math.min(n[1],i[1],l[1],c[1]),f=Math.max(n[1],i[1],l[1],c[1]);u<r&&(r=u),d>o&&(o=d),h<a&&(a=h),f>s&&(s=f)}})):(r=0,o=0,a=0,s=0),t=KK(r,a,o-r,s-a)}else t=e.getBBox();return i?function(e,t){var n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY);return KK(n,i,Math.min(e.maxX,t.maxX)-n,Math.min(e.maxY,t.maxY)-i)}(t,i):t}function QK(e){return e+"px"}function JK(e,t,n,i){var r=i/function(e,t){var n=t.x-e.x,i=t.y-e.y;return Math.sqrt(n*n+i*i)}(e,t),o=0;return"start"===n?o=0-r:"end"===n&&(o=1+r),{x:YK(e.x,t.x,o),y:YK(e.y,t.y,o)}}var eY={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},tY=function(e){function t(t){var n=e.call(this,t)||this;return n.initCfg(),n}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},t.prototype.clear=function(){},t.prototype.update=function(e){var t=this,n=this.get("defaultCfg")||{};(0,wW.S6)(e,(function(e,i){var r=e;t.get(i)!==e&&((0,wW.Kn)(e)&&n[i]&&(r=(0,wW.b$)({},n[i],e)),t.set(i,r))})),this.updateInner(e),this.afterUpdate(e)},t.prototype.updateInner=function(e){},t.prototype.afterUpdate=function(e){(0,wW.wH)(e,"visible")&&(e.visible?this.show():this.hide()),(0,wW.wH)(e,"capture")&&this.setCapture(e.capture)},t.prototype.getLayoutBBox=function(){return this.getBBox()},t.prototype.getLocationType=function(){return this.get("locationType")},t.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},t.prototype.setOffset=function(e,t){this.update({offsetX:e,offsetY:t})},t.prototype.setLocation=function(e){var t=(0,SW.pi)({},e);this.update(t)},t.prototype.getLocation=function(){var e=this,t={},n=this.get("locationType"),i=eY[n];return(0,wW.S6)(i,(function(n){t[n]=e.get(n)})),t},t.prototype.isList=function(){return!1},t.prototype.isSlider=function(){return!1},t.prototype.init=function(){},t.prototype.initCfg=function(){var e=this,t=this.get("defaultCfg");(0,wW.S6)(t,(function(t,n){var i=e.get(n);if((0,wW.Kn)(i)){var r=(0,wW.b$)({},t,i);e.set(n,r)}}))},t}(GW.Base),nY=tY,iY="update_status",rY=["visible","tip","delegateObject"],oY=["container","group","shapesMap","isRegister","isUpdating","destroyed"],aY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},t.prototype.remove=function(){this.clear(),this.get("group").remove()},t.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},t.prototype.getChildComponentById=function(e){var t=this.getElementById(e);return t&&t.get("component")},t.prototype.getElementById=function(e){return this.get("shapesMap")[e]},t.prototype.getElementByLocalId=function(e){var t=this.getElementId(e);return this.getElementById(t)},t.prototype.getElementsByName=function(e){var t=[];return(0,wW.S6)(this.get("shapesMap"),(function(n){n.get("name")===e&&t.push(n)})),t},t.prototype.getContainer=function(){return this.get("container")},t.prototype.updateInner=function(e){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},t.prototype.render=function(){var e=this.get("offScreenGroup");e||(e=this.offScreenRender());var t=this.get("group");this.updateElements(e,t),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},t.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},t.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},t.prototype.setCapture=function(e){this.get("group").set("capture",e),this.set("capture",e)},t.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},t.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},t.prototype.getLayoutBBox=function(){var e=this.get("group"),t=this.getInnerLayoutBBox(),n=e.getTotalMatrix();return n&&(t=function(e,t){var n=zK(e,[t.minX,t.minY]),i=zK(e,[t.maxX,t.minY]),r=zK(e,[t.minX,t.maxY]),o=zK(e,[t.maxX,t.maxY]),a=Math.min(n[0],i[0],r[0],o[0]),s=Math.max(n[0],i[0],r[0],o[0]),l=Math.min(n[1],i[1],r[1],o[1]),c=Math.max(n[1],i[1],r[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:s,maxY:c,width:s-a,height:c-l}}(n,t)),t},t.prototype.on=function(e,t,n){return this.get("group").on(e,t,n),this},t.prototype.off=function(e,t){var n=this.get("group");return n&&n.off(e,t),this},t.prototype.emit=function(e,t){this.get("group").emit(e,t)},t.prototype.init=function(){e.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},t.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},t.prototype.delegateEmit=function(e,t){var n=this.get("group");t.target=n,n.emit(e,t),ZK(n,e,t)},t.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},t.prototype.applyOffset=function(){var e=this.get("offsetX"),t=this.get("offsetY");this.moveElementTo(this.get("group"),{x:e,y:t})},t.prototype.initGroup=function(){var e=this.get("container");this.set("group",e.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},t.prototype.offScreenRender=function(){this.clearOffScreenCache();var e=this.createOffScreenGroup();return this.renderInner(e),this.set("offScreenGroup",e),this.set("offScreenBBox",XK(e)),e},t.prototype.addGroup=function(e,t){this.appendDelegateObject(e,t);var n=e.addGroup(t);return this.get("isRegister")&&this.registerElement(n),n},t.prototype.addShape=function(e,t){this.appendDelegateObject(e,t);var n=e.addShape(t);return this.get("isRegister")&&this.registerElement(n),n},t.prototype.addComponent=function(e,t){var n=t.id,i=t.component,r=(0,SW._T)(t,["id","component"]),o=new i((0,SW.pi)((0,SW.pi)({},r),{id:n,container:e,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},t.prototype.initEvent=function(){},t.prototype.removeEvent=function(){this.get("group").off()},t.prototype.getElementId=function(e){return this.get("id")+"-"+this.get("name")+"-"+e},t.prototype.registerElement=function(e){var t=e.get("id");this.get("shapesMap")[t]=e},t.prototype.unregisterElement=function(e){var t=e.get("id");delete this.get("shapesMap")[t]},t.prototype.moveElementTo=function(e,t){var n=HK(t);e.attr("matrix",n)},t.prototype.addAnimation=function(e,t,n){var i=t.attr("opacity");(0,wW.UM)(i)&&(i=1),t.attr("opacity",0),t.animate({opacity:i},n)},t.prototype.removeAnimation=function(e,t,n){t.animate({opacity:0},n)},t.prototype.updateAnimation=function(e,t,n,i){t.animate(n,i)},t.prototype.updateElements=function(e,t){var n,i=this,r=this.get("animate"),o=this.get("animateOption"),a=e.getChildren().slice(0);(0,wW.S6)(a,(function(e){var a=e.get("id"),s=i.getElementById(a),l=e.get("name");if(s)if(e.get("isComponent")){var c=e.get("component"),u=s.get("component"),d=(0,wW.ei)(c.cfg,(0,wW.e5)((0,wW.XP)(c.cfg),oY));u.update(d),s.set(iY,"update")}else{var h=i.getReplaceAttrs(s,e);r&&o.update?i.updateAnimation(l,s,h,o.update):s.attr(h),e.isGroup()&&i.updateElements(e,s),(0,wW.S6)(rY,(function(t){s.set(t,e.get(t))})),function(e,t){if(e.getClip()||t.getClip()){var n=t.getClip();if(n){var i={type:n.get("type"),attrs:n.attr()};e.setClip(i)}else e.setClip(null)}}(s,e),n=s,s.set(iY,"update")}else{t.add(e);var f=t.getChildren();if(f.splice(f.length-1,1),n){var p=f.indexOf(n);f.splice(p+1,0,e)}else f.unshift(e);if(i.registerElement(e),e.set(iY,"add"),e.get("isComponent"))(c=e.get("component")).set("container",t);else e.isGroup()&&i.registerNewGroup(e);if(n=e,r){var g=i.get("isInit")?o.appear:o.enter;g&&i.addAnimation(l,e,g)}}}))},t.prototype.clearUpdateStatus=function(e){var t=e.getChildren();(0,wW.S6)(t,(function(e){e.set(iY,null)}))},t.prototype.clearOffScreenCache=function(){var e=this.get("offScreenGroup");e&&e.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},t.prototype.getDelegateObject=function(){var e;return(e={})[this.get("name")]=this,e.component=this,e},t.prototype.appendDelegateObject=function(e,t){var n=e.get("delegateObject");t.delegateObject||(t.delegateObject={}),(0,wW.CD)(t.delegateObject,n)},t.prototype.getReplaceAttrs=function(e,t){var n=e.attr(),i=t.attr();return(0,wW.S6)(n,(function(e,t){void 0===i[t]&&(i[t]=void 0)})),i},t.prototype.registerNewGroup=function(e){var t=this,n=e.getChildren();(0,wW.S6)(n,(function(e){t.registerElement(e),e.set(iY,"add"),e.isGroup()&&t.registerNewGroup(e)}))},t.prototype.deleteElements=function(){var e=this,t=this.get("shapesMap"),n=[];(0,wW.S6)(t,(function(e,t){!e.get(iY)||e.destroyed?n.push([t,e]):e.set(iY,null)}));var i=this.get("animate"),r=this.get("animateOption");(0,wW.S6)(n,(function(n){var o=n[0],a=n[1];if(!a.destroyed){var s=a.get("name");if(i&&r.leave){var l=(0,wW.CD)({callback:function(){e.removeElement(a)}},r.leave);e.removeAnimation(s,a,l)}else e.removeElement(a)}delete t[o]}))},t.prototype.removeElement=function(e){if(e.get("isGroup")){var t=e.get("component");t&&t.destroy()}e.remove()},t}(nY),sY=aY;function lY(e,t){return e.charCodeAt(t)>0&&e.charCodeAt(t)<128?1:2}function cY(e){if(e.length>400)return function(e){for(var t=e.map((function(e){var t=e.attr("text");return(0,wW.UM)(t)?"":""+t})),n=0,i=0,r=0;r<t.length;r+=1){for(var o=0,a=0;a<=t[r].length;a+=1){var s=t[r].charCodeAt(a);o+=s>=19968&&s<=40869?2:1}o>n&&(n=o,i=r)}return e[i].getBBox().width}(e);var t=0;return(0,wW.S6)(e,(function(e){var n=e.getBBox().width;t<n&&(t=n)})),t}function uY(e,t,n,i){var r;void 0===i&&(i="tail");var o=null!==(r=t.attr("text"))&&void 0!==r?r:"";if("tail"===i){var a=(0,wW.ei)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),s=(0,wW.Lo)(o,n,a,"\u2026");return o!==s?(t.attr("text",s),t.set("tip",o),!0):(t.set("tip",null),!1)}var l=function(e,t){var n=t.getCanvasBBox();return e?n.width:n.height}(e,t),c=function(e){for(var t=0,n=0;n<e.length;n++)t+=lY(e,n);return t}(o),u=!1;if(n<l){var d=Math.floor(n/l*c)-2,h=void 0;h=d>=0?function(e,t,n){void 0===n&&(n="tail");var i=e.length,r="";if("tail"===n){for(var o=0,a=0;o<t&&o+lY(e,a)<=t;)r+=e[a],o+=lY(e,a),a++;r+="\u2026"}else if("head"===n){for(o=0,a=i-1;o<t&&o+lY(e,a)<=t;)r+=e[a],o+=lY(e,a),a--;r="\u2026"+r}else{for(var s="",l="",c=(o=0,0),u=i-1;o<t;){var d=lY(e,c),h=!1;d+o<=t&&(s+=e[c],c++,o+=d,h=!0);var f=lY(e,u);if(f+o<=t&&(l=e[u]+l,o+=f,u--,h=!0),!h)break}r=s+"\u2026"+l}return r}(o,d,i):"\u2026",h&&(t.attr("text",h),u=!0)}return u?t.set("tip",o):t.set("tip",null),u}function dY(e,t){var n=t.x,i=t.y,r=t.content,o=t.style,a=t.id,s=t.name,l=t.rotate,c=t.maxLength,u=t.autoEllipsis,d=t.isVertical,h=t.ellipsisPosition,f=t.background,p=e.addGroup({id:a+"-group",name:s+"-group",attrs:{x:n,y:i}}),g=p.addShape({type:"text",id:a,name:s,attrs:(0,SW.pi)({x:0,y:0,text:r},o)}),v=WK((0,wW.U2)(f,"padding",0));c&&u&&uY(!d,g,c-(v[1]+v[3]),h);if(f){var m=(0,wW.U2)(f,"style",{}),y=g.getCanvasBBox(),_=y.minX,b=y.minY,C=y.width,S=y.height;p.addShape("rect",{id:a+"-bg",name:a+"-bg",attrs:(0,SW.pi)({x:_-v[3],y:b-v[0],width:C+v[1]+v[3],height:S+v[0]+v[2]},m)}).toBack()}VK(p,n,i),jK(p,l,n,i)}var hY={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"},fY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:hY.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:hY.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:hY.lineColor,lineWidth:1}}}})},t.prototype.renderInner=function(e){this.renderLine(e),this.get("text")&&this.renderLabel(e)},t.prototype.renderLine=function(e){var t=this.get("start"),n=this.get("end"),i=this.get("style");this.addShape(e,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,SW.pi)({x1:t.x,y1:t.y,x2:n.x,y2:n.y},i)})},t.prototype.getLabelPoint=function(e,t,n){var i;return((i="start"===n?0:"center"===n?.5:(0,wW.HD)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:(0,wW.hj)(n)?n:1)>1||i<0)&&(i=1),{x:YK(e.x,t.x,i),y:YK(e.y,t.y,i)}},t.prototype.renderLabel=function(e){var t=this.get("text"),n=this.get("start"),i=this.get("end"),r=t.position,o=t.content,a=t.style,s=t.offsetX,l=t.offsetY,c=t.autoRotate,u=t.maxLength,d=t.autoEllipsis,h=t.ellipsisPosition,f=t.background,p=t.isVertical,g=void 0!==p&&p,v=this.getLabelPoint(n,i,r),m=v.x+s,y=v.y+l,_={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:y,content:o,style:a,maxLength:u,autoEllipsis:d,ellipsisPosition:h,background:f,isVertical:g};if(c){var b=[i.x-n.x,i.y-n.y];_.rotate=Math.atan2(b[1],b[0])}dY(e,_)},t}(sY),pY=fY,gY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:hY.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:hY.fontFamily}}})},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetLocation()},t.prototype.renderInner=function(e){var t=this.getLocation(),n=t.x,i=t.y,r=this.get("content"),o=this.get("style");dY(e,{id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:i,content:r,style:o,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},t.prototype.resetLocation=function(){var e=this.getElementByLocalId("text-group");if(e){var t=this.getLocation(),n=t.x,i=t.y,r=this.get("rotate");VK(e,n,i),jK(e,r,n,i)}},t}(sY),vY=gY,mY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},t.prototype.renderInner=function(e){this.renderArc(e)},t.prototype.getArcPath=function(){var e=this.getLocation(),t=e.center,n=e.radius,i=e.startAngle,r=e.endAngle,o=qK(t,n,i),a=qK(t,n,r),s=r-i>Math.PI?1:0,l=[["M",o.x,o.y]];if(r-i===2*Math.PI){var c=qK(t,n,i+Math.PI);l.push(["A",n,n,0,s,1,c.x,c.y]),l.push(["A",n,n,0,s,1,a.x,a.y])}else l.push(["A",n,n,0,s,1,a.x,a.y]);return l},t.prototype.renderArc=function(e){var t=this.getArcPath(),n=this.get("style");this.addShape(e,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,SW.pi)({path:t},n)})},t}(sY),yY=mY,_Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:hY.regionColor,opacity:.4}}})},t.prototype.renderInner=function(e){this.renderRegion(e)},t.prototype.renderRegion=function(e){var t=this.get("start"),n=this.get("end"),i=this.get("style"),r=GK({start:t,end:n});this.addShape(e,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,SW.pi)({x:r.x,y:r.y,width:r.width,height:r.height},i)})},t}(sY),bY=_Y,CY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},t.prototype.renderInner=function(e){this.renderImage(e)},t.prototype.getImageAttrs=function(){var e=this.get("start"),t=this.get("end"),n=this.get("style"),i=GK({start:e,end:t}),r=this.get("src");return(0,SW.pi)({x:i.x,y:i.y,img:r,width:i.width,height:i.height},n)},t.prototype.renderImage=function(e){this.addShape(e,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},t}(sY),SY=CY,wY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:hY.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:hY.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:hY.fontFamily}}}})},t.prototype.renderInner=function(e){(0,wW.U2)(this.get("line"),"display")&&this.renderLine(e),(0,wW.U2)(this.get("text"),"display")&&this.renderText(e),(0,wW.U2)(this.get("point"),"display")&&this.renderPoint(e),this.get("autoAdjust")&&this.autoAdjust(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},t.prototype.renderPoint=function(e){var t=this.getShapeAttrs().point;this.addShape(e,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:t})},t.prototype.renderLine=function(e){var t=this.getShapeAttrs().line;this.addShape(e,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:t})},t.prototype.renderText=function(e){var t=this.getShapeAttrs().text,n=t.x,i=t.y,r=t.text,o=(0,SW._T)(t,["x","y","text"]),a=this.get("text"),s=a.background,l=a.maxLength,c=a.autoEllipsis,u=a.isVertival,d=a.ellipsisPosition;dY(e,{x:n,y:i,id:this.getElementId("text"),name:"annotation-text",content:r,style:o,background:s,maxLength:l,autoEllipsis:c,isVertival:u,ellipsisPosition:d})},t.prototype.autoAdjust=function(e){var t=this.get("direction"),n=this.get("x"),i=this.get("y"),r=(0,wW.U2)(this.get("line"),"length",0),o=this.get("coordinateBBox"),a=e.getBBox(),s=a.minX,l=a.maxX,c=a.minY,u=a.maxY,d=e.findById(this.getElementId("text-group")),h=e.findById(this.getElementId("text")),f=e.findById(this.getElementId("line"));if(o&&d){var p=d.attr("x"),g=d.attr("y"),v=void 0,m=void 0,y=0,_=0;if(n+s<=o.minX)if("leftward"===t)m="start",y=1;else{var b=o.minX-(n+s);p=d.attr("x")+b}else if(n+l>=o.maxX)if("rightward"===t)m="end",y=-1;else{b=n+l-o.maxX;p=d.attr("x")-b}if(y&&m&&(h.attr("textAlign",m),f&&f.attr("path",[["M",0,0],["L",r*y,0]]),p=(r+2)*y),i+c<=o.minY)if("upward"===t)v="top",_=1;else{b=o.minY-(i+c);g=d.attr("y")+b}else if(i+u>=o.maxY)if("downward"===t)v="bottom",_=-1;else{b=i+u-o.maxY;g=d.attr("y")-b}_&&v&&(h.attr("textBaseline",v),f&&f.attr("path",[["M",0,0],["L",0,r*_]]),g=(r+2)*_),p===d.attr("x")&&g===d.attr("y")||VK(d,p,g)}},t.prototype.getShapeAttrs=function(){var e=(0,wW.U2)(this.get("line"),"display"),t=(0,wW.U2)(this.get("point"),"style",{}),n=(0,wW.U2)(this.get("line"),"style",{}),i=(0,wW.U2)(this.get("text"),"style",{}),r=this.get("direction"),o=e?(0,wW.U2)(this.get("line"),"length",0):0,a=0,s=0,l="top",c="start";switch(r){case"upward":s=-1,l="bottom";break;case"downward":s=1,l="top";break;case"leftward":a=-1,c="end";break;case"rightward":a=1,c="start"}return{point:(0,SW.pi)({x:0,y:0},t),line:(0,SW.pi)({path:[["M",0,0],["L",0,o*a,o*s]]},n),text:(0,SW.pi)({x:(o+2)*a,y:(o+2)*s,text:(0,wW.U2)(this.get("text"),"content",""),textBaseline:l,textAlign:c},i)}},t}(sY),kY=wY,xY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:hY.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:hY.textColor,fontFamily:hY.fontFamily}}}})},t.prototype.renderInner=function(e){var t=(0,wW.U2)(this.get("region"),"style",{}),n=((0,wW.U2)(this.get("text"),"style",{}),this.get("lineLength")||0),i=this.get("points");if(i.length){var r=function(e){var t=e.map((function(e){return e.x})),n=e.map((function(e){return e.y})),i=Math.min.apply(Math,t),r=Math.min.apply(Math,n),o=Math.max.apply(Math,t),a=Math.max.apply(Math,n);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-r}}(i),o=[];o.push(["M",i[0].x,r.minY-n]),i.forEach((function(e){o.push(["L",e.x,e.y])})),o.push(["L",i[i.length-1].x,i[i.length-1].y-n]),this.addShape(e,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,SW.pi)({path:o},t)}),dY(e,(0,SW.pi)({id:this.getElementId("text"),name:"annotation-text",x:(r.minX+r.maxX)/2,y:r.minY-n},this.get("text")))}},t}(sY),EY=xY,TY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},t.prototype.renderInner=function(e){var t=this,n=this.get("start"),i=this.get("end"),r=this.addGroup(e,{id:this.getElementId("region-filter"),capture:!1});(0,wW.S6)(this.get("shapes"),(function(e,n){var i=e.get("type"),o=(0,wW.d9)(e.attr());t.adjustShapeAttrs(o),t.addShape(r,{id:t.getElementId("shape-"+i+"-"+n),capture:!1,type:i,attrs:o})}));var o=GK({start:n,end:i});r.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},t.prototype.adjustShapeAttrs=function(e){var t=this.get("color");e.fill&&(e.fill=e.fillStyle=t),e.stroke=e.strokeStyle=t},t}(sY),NY=TY,IY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"annotation",type:"shape",draw:wW.ZT})},t.prototype.renderInner=function(e){var t=this.get("render");(0,wW.mf)(t)&&t(e)},t}(sY),DY=IY;function LY(e,t,n){var i;try{i=window.getComputedStyle?window.getComputedStyle(e,null)[t]:e.style[t]}catch(Fc){}finally{i=void 0===i?n:i}return i}function OY(e,t){var n=function(e,t){var n=LY(e,"width",t);return"auto"===n&&(n=e.offsetWidth),parseFloat(n)}(e,t),i=parseFloat(LY(e,"borderLeftWidth"))||0,r=parseFloat(LY(e,"paddingLeft"))||0,o=parseFloat(LY(e,"paddingRight"))||0,a=parseFloat(LY(e,"borderRightWidth"))||0,s=parseFloat(LY(e,"marginRight"))||0;return n+i+a+r+o+(parseFloat(LY(e,"marginLeft"))||0)+s}function RY(e,t){var n=function(e,t){var n=LY(e,"height",t);return"auto"===n&&(n=e.offsetHeight),parseFloat(n)}(e,t),i=parseFloat(LY(e,"borderTopWidth"))||0,r=parseFloat(LY(e,"paddingTop"))||0,o=parseFloat(LY(e,"paddingBottom"))||0;return n+i+(parseFloat(LY(e,"borderBottomWidth"))||0)+r+o+(parseFloat(LY(e,"marginTop"))||0)+(parseFloat(LY(e,"marginBottom"))||0)}var AY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},t.prototype.getContainer=function(){return this.get("container")},t.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},t.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},t.prototype.setCapture=function(e){var t=e?"auto":"none";this.getContainer().style.pointerEvents=t,this.set("capture",e)},t.prototype.getBBox=function(){var e=this.getContainer();return KK(parseFloat(e.style.left)||0,parseFloat(e.style.top)||0,e.clientWidth,e.clientHeight)},t.prototype.clear=function(){UK(this.get("container"))},t.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},t.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},t.prototype.initCapture=function(){this.setCapture(this.get("capture"))},t.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},t.prototype.initDom=function(){},t.prototype.initContainer=function(){var e=this.get("container");if((0,wW.UM)(e)){e=this.createDom();var t=this.get("parent");(0,wW.HD)(t)&&(t=document.getElementById(t),this.set("parent",t)),t.appendChild(e),this.get("containerId")&&e.setAttribute("id",this.get("containerId")),this.set("container",e)}else(0,wW.HD)(e)&&(e=document.getElementById(e),this.set("container",e));this.get("parent")||this.set("parent",e.parentNode)},t.prototype.resetStyles=function(){var e=this.get("domStyles"),t=this.get("defaultStyles");e=e?(0,wW.b$)({},t,e):t,this.set("domStyles",e)},t.prototype.applyStyles=function(){var e=this.get("domStyles");if(e){var t=this.getContainer();this.applyChildrenStyles(t,e);var n,i=this.get("containerClassName");if(i&&(n=i,t.className.match(new RegExp("(\\s|^)"+n+"(\\s|$)"))))HW(t,e[i])}},t.prototype.applyChildrenStyles=function(e,t){(0,wW.S6)(t,(function(t,n){var i=e.getElementsByClassName(n);(0,wW.S6)(i,(function(e){HW(e,t)}))}))},t.prototype.applyStyle=function(e,t){HW(t,this.get("domStyles")[e])},t.prototype.createDom=function(){return BW(this.get("containerTpl"))},t.prototype.initEvent=function(){},t.prototype.removeDom=function(){var e=this.get("container");e&&e.parentNode&&e.parentNode.removeChild(e)},t.prototype.removeEvent=function(){},t.prototype.updateInner=function(e){(0,wW.wH)(e,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},t.prototype.resetPosition=function(){},t}(nY),MY=AY,PY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation" style="position:absolute"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},t.prototype.render=function(){var e=this.getContainer(),t=this.get("html");UK(e);var n=(0,wW.mf)(t)?t(e):t;if((0,wW.kK)(n))e.appendChild(n);else if((0,wW.HD)(n)||(0,wW.hj)(n)){var i=BW(""+n);i&&e.appendChild(i)}this.resetPosition()},t.prototype.resetPosition=function(){var e=this.getContainer(),t=this.getLocation(),n=t.x,i=t.y,r=this.get("alignX"),o=this.get("alignY"),a=this.get("offsetX"),s=this.get("offsetY"),l=OY(e),c=RY(e),u={x:n,y:i};"middle"===r?u.x-=Math.round(l/2):"right"===r&&(u.x-=Math.round(l)),"middle"===o?u.y-=Math.round(c/2):"bottom"===o&&(u.y-=Math.round(c)),a&&(u.x+=a),s&&(u.y+=s),HW(e,{position:"absolute",left:u.x+"px",top:u.y+"px",zIndex:this.get("zIndex")})},t}(MY),ZY=PY;function FY(e,t,n){var i=t+"Style",r=null;return(0,wW.S6)(n,(function(t,n){e[n]&&t[i]&&(r||(r={}),(0,wW.CD)(r,t[i]))})),r}var BY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:hY.lineColor}},tickLine:{style:{lineWidth:1,stroke:hY.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:hY.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:hY.textColor,fontFamily:hY.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:hY.textColor,textBaseline:"middle",fontFamily:hY.fontFamily,textAlign:"center"},iconStyle:{fill:hY.descriptionIconFill,stroke:hY.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:hY.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},t.prototype.renderInner=function(e){this.get("line")&&this.drawLine(e),this.drawTicks(e),this.get("title")&&this.drawTitle(e)},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get("ticks")},t.prototype.setItems=function(e){this.update({ticks:e})},t.prototype.updateItem=function(e,t){(0,wW.CD)(e,t),this.clear(),this.render()},t.prototype.clearItems=function(){var e=this.getElementByLocalId("label-group");e&&e.clear()},t.prototype.setItemState=function(e,t,n){e[t]=n,this.updateTickStates(e)},t.prototype.hasState=function(e,t){return!!e[t]},t.prototype.getItemStates=function(e){var t=this.get("tickStates"),n=[];return(0,wW.S6)(t,(function(t,i){e[i]&&n.push(i)})),n},t.prototype.clearItemsState=function(e){var t=this,n=this.getItemsByState(e);(0,wW.S6)(n,(function(n){t.setItemState(n,e,!1)}))},t.prototype.getItemsByState=function(e){var t=this,n=this.getItems();return(0,wW.hX)(n,(function(n){return t.hasState(n,e)}))},t.prototype.getSidePoint=function(e,t){var n=this.getSideVector(t,e);return{x:e.x+n[0],y:e.y+n[1]}},t.prototype.getTextAnchor=function(e){var t;return(0,wW.vQ)(e[0],0)?t="center":e[0]>0?t="start":e[0]<0&&(t="end"),t},t.prototype.getTextBaseline=function(e){var t;return(0,wW.vQ)(e[1],0)?t="middle":e[1]>0?t="top":e[1]<0&&(t="bottom"),t},t.prototype.processOverlap=function(e){},t.prototype.drawLine=function(e){var t=this.getLinePath(),n=this.get("line");this.addShape(e,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,wW.CD)({path:t},n.style)})},t.prototype.getTickLineItems=function(e){var t=this,n=[],i=this.get("tickLine"),r=i.alignTick,o=i.length,a=1;return e.length>=2&&(a=e[1].value-e[0].value),(0,wW.S6)(e,(function(e){var i=e.point;r||(i=t.getTickPoint(e.value-a/2));var s=t.getSidePoint(i,o);n.push({startPoint:i,tickValue:e.value,endPoint:s,tickId:e.id,id:"tickline-"+e.id})})),n},t.prototype.getSubTickLineItems=function(e){var t=[],n=this.get("subTickLine"),i=n.count,r=e.length;if(r>=2)for(var o=0;o<r-1;o++)for(var a=e[o],s=e[o+1],l=0;l<i;l++){var c=(l+1)/(i+1),u=(1-c)*a.tickValue+c*s.tickValue,d=this.getTickPoint(u),h=this.getSidePoint(d,n.length);t.push({startPoint:d,endPoint:h,tickValue:u,id:"sub-"+a.id+"-"+l})}return t},t.prototype.getTickLineAttrs=function(e,t,n,i){var r=this.get(t).style,o={points:[e.startPoint,e.endPoint]},a=(0,wW.U2)(this.get("theme"),["tickLine","style"],{});r=(0,wW.mf)(r)?(0,wW.CD)({},a,r(o,n,i)):r;var s=e.startPoint,l=e.endPoint;return(0,SW.pi)({x1:s.x,y1:s.y,x2:l.x,y2:l.y},r)},t.prototype.drawTick=function(e,t,n,i,r){this.addShape(t,{type:"line",id:this.getElementId(e.id),name:"axis-"+n,attrs:this.getTickLineAttrs(e,n,i,r)})},t.prototype.drawTickLines=function(e){var t=this,n=this.get("ticks"),i=this.get("subTickLine"),r=this.getTickLineItems(n),o=this.addGroup(e,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),a=this.get("tickLine");if((0,wW.S6)(r,(function(n,i){if(a.displayWithLabel){var s=t.getElementId("label-"+n.tickId);e.findById(s)&&t.drawTick(n,o,"tickLine",i,r)}else t.drawTick(n,o,"tickLine",i,r)})),i){var s=this.getSubTickLineItems(r);(0,wW.S6)(s,(function(e,n){t.drawTick(e,o,"subTickLine",n,s)}))}},t.prototype.processTicks=function(){var e=this,t=this.get("ticks");(0,wW.S6)(t,(function(t){t.point=e.getTickPoint(t.value),(0,wW.UM)(t.id)&&(t.id=t.name)}))},t.prototype.drawTicks=function(e){var t=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(e),this.get("tickLine")&&this.drawTickLines(e);var n=this.get("ticks");(0,wW.S6)(n,(function(n){t.applyTickStates(n,e)}))},t.prototype.optimizeTicks=function(){var e=this.get("optimize"),t=this.get("ticks");if(e&&e.enable&&e.threshold>0){var n=(0,wW.dp)(t);if(n>e.threshold){var i=Math.ceil(n/e.threshold),r=t.filter((function(e,t){return t%i===0}));this.set("ticks",r),this.set("originalTicks",t)}}},t.prototype.getLabelAttrs=function(e,t,n){var i=this.get("label"),r=i.offset,o=i.offsetX,a=i.offsetY,s=i.rotate,l=i.formatter,c=this.getSidePoint(e.point,r),u=this.getSideVector(r,c),d=l?l(e.name,e,t):e.name,h=i.style;h=(0,wW.mf)(h)?(0,wW.U2)(this.get("theme"),["label","style"],{}):h;var f=(0,wW.CD)({x:c.x+o,y:c.y+a,text:d,textAlign:this.getTextAnchor(u),textBaseline:this.getTextBaseline(u)},h);return s&&(f.matrix=BK(c,s)),f},t.prototype.drawLabels=function(e){var t=this,n=this.get("ticks"),i=this.addGroup(e,{name:"axis-label-group",id:this.getElementId("label-group")});(0,wW.S6)(n,(function(e,r){t.addShape(i,{type:"text",name:"axis-label",id:t.getElementId("label-"+e.id),attrs:t.getLabelAttrs(e,r,n),delegateObject:{tick:e,item:e,index:r}})})),this.processOverlap(i);var r=i.getChildren(),o=(0,wW.U2)(this.get("theme"),["label","style"],{}),a=this.get("label"),s=a.style,l=a.formatter;if((0,wW.mf)(s)){var c=r.map((function(e){return(0,wW.U2)(e.get("delegateObject"),"tick")}));(0,wW.S6)(r,(function(e,t){var n=e.get("delegateObject").tick,i=l?l(n.name,n,t):n.name,r=(0,wW.CD)({},o,s(i,t,c));e.attr(r)}))}},t.prototype.getTitleAttrs=function(){var e=this.get("title"),t=e.style,n=e.position,i=e.offset,r=e.spacing,o=void 0===r?0:r,a=e.autoRotate,s=t.fontSize,l=.5;"start"===n?l=0:"end"===n&&(l=1);var c=this.getTickPoint(l),u=this.getSidePoint(c,i||o+s/2),d=(0,wW.CD)({x:u.x,y:u.y,text:e.text},t),h=e.rotate,f=h;if((0,wW.UM)(h)&&a){var p=this.getAxisVector(c);f=xK.Dg(p,[1,0],!0)}if(f){var g=BK(u,f);d.matrix=g}return d},t.prototype.drawTitle=function(e){var t,n=this.getTitleAttrs(),i=this.addShape(e,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(t=this.get("title"))||void 0===t?void 0:t.description)&&this.drawDescriptionIcon(e,i,n.matrix)},t.prototype.drawDescriptionIcon=function(e,t,n){var i=this.addGroup(e,{name:"axis-description",id:this.getElementById("description")}),r=t.getBBox(),o=r.maxX,a=r.maxY,s=r.height,l=this.get("title").iconStyle,c=s/2,u=c/6,d=o+4,h=a-s/2,f=[d+c,h-c],p=f[0],g=f[1],v=[p+c,g+c],m=v[0],y=v[1],_=[p,y+c],b=_[0],C=_[1],S=[d,g+c],w=S[0],k=S[1],x=[d+c,h-s/4],E=x[0],T=x[1],N=[E,T+u],I=N[0],D=N[1],L=[I,D+u],O=L[0],R=L[1],A=[O,R+3*c/4],M=A[0],P=A[1];this.addShape(i,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,SW.pi)({path:[["M",p,g],["A",c,c,0,0,1,m,y],["A",c,c,0,0,1,b,C],["A",c,c,0,0,1,w,k],["A",c,c,0,0,1,p,g],["M",E,T],["L",I,D],["M",O,R],["L",M,P]],lineWidth:u,matrix:n},l)}),this.addShape(i,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:d,y:h-s/2,width:s,height:s,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},t.prototype.applyTickStates=function(e,t){if(this.getItemStates(e).length){var n=this.get("tickStates"),i=this.getElementId("label-"+e.id),r=t.findById(i);if(r){var o=FY(e,"label",n);o&&r.attr(o)}var a=this.getElementId("tickline-"+e.id),s=t.findById(a);if(s){var l=FY(e,"tickLine",n);l&&s.attr(l)}}},t.prototype.updateTickStates=function(e){var t=this.getItemStates(e),n=this.get("tickStates"),i=this.get("label"),r=this.getElementByLocalId("label-"+e.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+e.id);if(t.length){if(r){var s=FY(e,"label",n);s&&r.attr(s)}if(a){var l=FY(e,"tickLine",n);l&&a.attr(l)}}else r&&r.attr(i.style),a&&a.attr(o.style)},t}(sY),HY=BY;function zY(e,t,n,i){var r=t.getChildren(),o=!1;return(0,wW.S6)(r,(function(t){var r=uY(e,t,n,i);o=o||r})),o}function jY(){return WY}function VY(e,t,n){return zY(e,t,n,"head")}function WY(e,t,n){return zY(e,t,n,"tail")}function UY(e,t,n){return zY(e,t,n,"middle")}function GY(e){var t=function(e){var t=e.attr("matrix");return t&&1!==t[0]}(e)?function(e){var t=[0,0,0];return wK(t,[1,0,0],e),Math.atan2(t[1],t[0])}(e.attr("matrix")):0;return t%360}function KY(e,t,n,i){var r=!1,o=GY(t),a=e?Math.abs(n.attr("y")-t.attr("y")):Math.abs(n.attr("x")-t.attr("x")),s=(e?n.attr("y")>t.attr("y"):n.attr("x")>t.attr("x"))?t.getBBox():n.getBBox();if(e){var l=Math.abs(Math.cos(o));r=$K(l,0,Math.PI/180)?s.width+i>a:s.height/l+i>a}else{l=Math.abs(Math.sin(o));r=$K(l,0,Math.PI/180)?s.width+i>a:s.height/l+i>a}return r}function YY(e,t,n,i){var r=(null===i||void 0===i?void 0:i.minGap)||0,o=t.getChildren().slice().filter((function(e){return e.get("visible")}));if(!o.length)return!1;var a=!1;n&&o.reverse();for(var s=o.length,l=o[0],c=1;c<s;c++){var u=o[c];u.getBBox();KY(e,l,u,r)?(u.hide(),a=!0):l=u}return a}function qY(e,t,n){var i=(null===n||void 0===n?void 0:n.minGap)||0,r=t.getChildren().slice();if(r.length<2)return!1;var o=!1,a=r[0],s=a.getBBox(),l=r[1],c=r.length,u=GY(a),d=e?Math.abs(l.attr("y")-a.attr("y")):Math.abs(l.attr("x")-a.attr("x")),h=0;if(e){var f=Math.abs(Math.cos(u));if($K(f,0,Math.PI/180))h=(cY(r)+i)/d;else h=(s.height/f+i)/d}else{f=Math.abs(Math.sin(u));if($K(f,0,Math.PI/180))h=(cY(r)+i)/d;else h=(s.height/f+i)/d}if(h>1){h=Math.ceil(h);for(var p=0;p<c;p++)p%h!==0&&(r[p].hide(),o=!0)}return o}function $Y(){return eq}function XY(e,t,n,i){return YY(e,t,!1,i)}function QY(e,t,n,i){return YY(e,t,!0,i)}function JY(e,t,n,i){var r=(null===i||void 0===i?void 0:i.minGap)||0,o=t.getChildren().slice();if(o.length<=2)return!1;for(var a=!1,s=o.length,l=o[0],c=o[s-1],u=l,d=1;d<s-1;d++){var h=o[d];h.getBBox();KY(e,u,h,r)?(h.hide(),a=!0):u=h}return KY(e,u,c,r)&&(u.hide(),a=!0),a}function eq(e,t,n,i){var r=qY(e,t,i);return YY(e,t,!1)&&(r=!0),r}function tq(e,t,n,i){var r=t.getChildren().slice(),o=qY(e,t,i);if(r.length>2){var a=r[0],s=r[r.length-1];a.get("visible")||(a.show(),YY(e,t,!1,i)&&(o=!0)),s.get("visible")||(s.show(),YY(e,t,!0,i)&&(o=!0))}return o}function nq(e,t,n,i){var r=t.getChildren();if(!r.length)return!1;if(!e&&r.length<2)return!1;var o=cY(r),a=!1;e?a=!!n&&o>n:a=o>Math.abs(r[1].attr("x")-r[0].attr("x"));a&&function(e,t){(0,wW.S6)(e,(function(e){var n=BK({x:e.attr("x"),y:e.attr("y")},t);e.attr("matrix",n)}))}(r,i(n,o));return a}function iq(){return rq}function rq(e,t,n,i){return nq(e,t,n,(function(){return(0,wW.hj)(i)?i:e?hY.verticalAxisRotate:hY.horizontalAxisRotate}))}function oq(e,t,n){return nq(e,t,n,(function(t,n){if(!t)return e?hY.verticalAxisRotate:hY.horizontalAxisRotate;if(e)return-Math.acos(t/n);var i=0;return(t>n||(i=Math.asin(t/n))>Math.PI/4)&&(i=Math.PI/4),i}))}var aq,sq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getLinePath=function(){var e=this.get("start"),t=this.get("end"),n=[];return n.push(["M",e.x,e.y]),n.push(["L",t.x,t.y]),n},t.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),n=this.get("end"),i=e.prototype.getInnerLayoutBBox.call(this),r=Math.min(t.x,n.x,i.x),o=Math.min(t.y,n.y,i.y),a=Math.max(t.x,n.x,i.maxX),s=Math.max(t.y,n.y,i.maxY);return{x:r,y:o,minX:r,minY:o,maxX:a,maxY:s,width:a-r,height:s-o}},t.prototype.isVertical=function(){var e=this.get("start"),t=this.get("end");return(0,wW.vQ)(e.x,t.x)},t.prototype.isHorizontal=function(){var e=this.get("start"),t=this.get("end");return(0,wW.vQ)(e.y,t.y)},t.prototype.getTickPoint=function(e){var t=this.get("start"),n=this.get("end"),i=n.x-t.x,r=n.y-t.y;return{x:t.x+i*e,y:t.y+r*e}},t.prototype.getSideVector=function(e){var t=this.getAxisVector(),n=DK.Fv([0,0],t),i=this.get("verticalFactor"),r=[n[1],-1*n[0]];return DK.bA([0,0],r,e*i)},t.prototype.getAxisVector=function(){var e=this.get("start"),t=this.get("end");return[t.x-e.x,t.y-e.y]},t.prototype.processOverlap=function(e){var t=this,n=this.isVertical(),i=this.isHorizontal();if(n||i){var r=this.get("label"),o=this.get("title"),a=this.get("verticalLimitLength"),s=r.offset,l=a,c=0,u=0;o&&(c=o.style.fontSize,u=o.spacing),l&&(l=l-s-u-c);var d=this.get("overlapOrder");if((0,wW.S6)(d,(function(n){r[n]&&t.canProcessOverlap(n)&&t.autoProcessOverlap(n,r[n],e,l)})),o&&(0,wW.UM)(o.offset)){var h=e.getCanvasBBox(),f=n?h.width:h.height;o.offset=s+f+u+c/2}}},t.prototype.canProcessOverlap=function(e){var t=this.get("label");return"autoRotate"!==e||(0,wW.UM)(t.rotate)},t.prototype.autoProcessOverlap=function(e,t,n,i){var r=this,o=this.isVertical(),s=!1,l=a[e];if(!0===t){this.get("label");s=l.getDefault()(o,n,i)}else if((0,wW.mf)(t))s=t(o,n,i);else if((0,wW.Kn)(t)){var c=t;l[c.type]&&(s=l[c.type](o,n,i,c.cfg))}else l[t]&&(s=l[t](o,n,i));if("autoRotate"===e){if(s){var u=n.getChildren(),d=this.get("verticalFactor");(0,wW.S6)(u,(function(e){if("center"===e.attr("textAlign")){var t=d>0?"end":"start";e.attr("textAlign",t)}}))}}else if("autoHide"===e){var h=n.getChildren().slice(0);(0,wW.S6)(h,(function(e){e.get("visible")||(r.get("isRegister")&&r.unregisterElement(e),e.remove())}))}},t}(HY),lq=sq,cq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},t.prototype.getLinePath=function(){var e=this.get("center"),t=e.x,n=e.y,i=this.get("radius"),r=i,o=this.get("startAngle"),a=this.get("endAngle"),s=[];if(Math.abs(a-o)===2*Math.PI)s=[["M",t,n-r],["A",i,r,0,1,1,t,n+r],["A",i,r,0,1,1,t,n-r],["Z"]];else{var l=this.getCirclePoint(o),c=this.getCirclePoint(a),u=Math.abs(a-o)>Math.PI?1:0,d=o>a?0:1;s=[["M",t,n],["L",l.x,l.y],["A",i,r,0,u,d,c.x,c.y],["L",t,n]]}return s},t.prototype.getTickPoint=function(e){var t=this.get("startAngle"),n=t+(this.get("endAngle")-t)*e;return this.getCirclePoint(n)},t.prototype.getSideVector=function(e,t){var n=this.get("center"),i=[t.x-n.x,t.y-n.y],r=this.get("verticalFactor"),o=DK.kE(i);return DK.bA(i,i,r*e/o),i},t.prototype.getAxisVector=function(e){var t=this.get("center"),n=[e.x-t.x,e.y-t.y];return[n[1],-1*n[0]]},t.prototype.getCirclePoint=function(e,t){var n=this.get("center");return t=t||this.get("radius"),{x:n.x+Math.cos(e)*t,y:n.y+Math.sin(e)*t}},t.prototype.canProcessOverlap=function(e){var t=this.get("label");return"autoRotate"!==e||(0,wW.UM)(t.rotate)},t.prototype.processOverlap=function(e){var t=this,n=this.get("label"),i=this.get("title"),r=this.get("verticalLimitLength"),o=n.offset,a=r,s=0,l=0;i&&(s=i.style.fontSize,l=i.spacing),a&&(a=a-o-l-s);var c=this.get("overlapOrder");if((0,wW.S6)(c,(function(i){n[i]&&t.canProcessOverlap(i)&&t.autoProcessOverlap(i,n[i],e,a)})),i&&(0,wW.UM)(i.offset)){var u=e.getCanvasBBox().height;i.offset=o+u+l+s/2}},t.prototype.autoProcessOverlap=function(e,t,n,i){var r=this,o=!1,s=a[e];if(i>0)if(!0===t)o=s.getDefault()(!1,n,i);else if((0,wW.mf)(t))o=t(!1,n,i);else if((0,wW.Kn)(t)){var l=t;s[l.type]&&(o=s[l.type](!1,n,i,l.cfg))}else s[t]&&(o=s[t](!1,n,i));if("autoRotate"===e){if(o){var c=n.getChildren(),u=this.get("verticalFactor");(0,wW.S6)(c,(function(e){if("center"===e.attr("textAlign")){var t=u>0?"end":"start";e.attr("textAlign",t)}}))}}else if("autoHide"===e){var d=n.getChildren().slice(0);(0,wW.S6)(d,(function(e){e.get("visible")||(r.get("isRegister")&&r.unregisterElement(e),e.remove())}))}},t}(HY),uq=cq,dq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:hY.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:hY.textColor,textAlign:"center",textBaseline:"middle",fontFamily:hY.fontFamily}},textBackground:{padding:5,style:{stroke:hY.lineColor}}}})},t.prototype.renderInner=function(e){this.get("line")&&this.renderLine(e),this.get("text")&&(this.renderText(e),this.renderBackground(e))},t.prototype.renderText=function(e){var t=this.get("text"),n=t.style,i=t.autoRotate,r=t.content;if(!(0,wW.UM)(r)){var o=this.getTextPoint(),a=null;if(i)a=BK(o,this.getRotateAngle());this.addShape(e,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,SW.pi)((0,SW.pi)((0,SW.pi)({},o),{text:r,matrix:a}),n)})}},t.prototype.renderLine=function(e){var t=this.getLinePath(),n=this.get("line").style;this.addShape(e,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,SW.pi)({path:t},n)})},t.prototype.renderBackground=function(e){var t=this.getElementId("text"),n=e.findById(t),i=this.get("textBackground");if(i&&n){var r=n.getBBox(),o=WK(i.padding),a=i.style;this.addShape(e,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,SW.pi)({x:r.x-o[3],y:r.y-o[0],width:r.width+o[1]+o[3],height:r.height+o[0]+o[2],matrix:n.attr("matrix")},a)}).toBack()}},t}(sY),hq=dq,fq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.start,n=e.end,i=this.get("text").position,r=Math.atan2(n.y-t.y,n.x-t.x);return"start"===i?r-Math.PI/2:r+Math.PI/2},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,n=e.end,i=this.get("text");return JK(t,n,i.position,i.offset)},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.start,n=e.end;return[["M",t.x,t.y],["L",n.x,n.y]]},t}(hq),pq=fq,gq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.startAngle,n=e.endAngle;return"start"===this.get("text").position?t+Math.PI/2:n-Math.PI/2},t.prototype.getTextPoint=function(){var e=this.get("text"),t=e.position,n=e.offset,i=this.getLocation(),r=i.center,o=i.radius,a=i.startAngle,s=i.endAngle,l="start"===t?a:s,c=this.getRotateAngle()-Math.PI,u=qK(r,o,l),d=Math.cos(c)*n,h=Math.sin(c)*n;return{x:u.x+d,y:u.y+h}},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.center,n=e.radius,i=e.startAngle,r=e.endAngle,o=null;if(r-i===2*Math.PI){var a=t.x,s=t.y;o=[["M",a,s-n],["A",n,n,0,1,1,a,s+n],["A",n,n,0,1,1,a,s-n],["Z"]]}else{var l=qK(t,n,i),c=qK(t,n,r),u=Math.abs(r-i)>Math.PI?1:0,d=i>r?0:1;o=[["M",l.x,l.y],["A",n,n,0,u,d,c.x,c.y]]}return o},t}(hq),vq=gq,mq="g2-crosshair",yq="g2-crosshair-line",_q="g2-crosshair-text",bq=((aq={})["g2-crosshair"]={position:"relative"},aq[""+yq]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},aq[""+_q]={position:"absolute",color:hY.textColor,fontFamily:hY.fontFamily},aq),Cq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="g2-crosshair"></div>',crosshairTpl:'<div class="g2-crosshair-line"></div>',textTpl:'<span class="g2-crosshair-text">{content}</span>',domStyles:null,containerClassName:mq,defaultStyles:bq,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},t.prototype.render=function(){this.resetText(),this.resetPosition()},t.prototype.initCrossHair=function(){var e=this.getContainer(),t=BW(this.get("crosshairTpl"));e.appendChild(t),this.applyStyle(yq,t),this.set("crosshairEl",t)},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,n=e.end,i=this.get("text");return JK(t,n,i.position,i.offset)},t.prototype.resetText=function(){var e=this.get("text"),t=this.get("textEl");if(e){var n=e.content;if(!t){var i=this.getContainer();t=BW((0,wW.ng)(this.get("textTpl"),e)),i.appendChild(t),this.applyStyle(_q,t),this.set("textEl",t)}t.innerHTML=n}else t&&t.remove()},t.prototype.isVertical=function(e,t){return e.x===t.x},t.prototype.resetPosition=function(){var e=this.get("crosshairEl");e||(this.initCrossHair(),e=this.get("crosshairEl"));var t=this.get("start"),n=this.get("end"),i=Math.min(t.x,n.x),r=Math.min(t.y,n.y);this.isVertical(t,n)?HW(e,{width:"1px",height:QK(Math.abs(n.y-t.y))}):HW(e,{height:"1px",width:QK(Math.abs(n.x-t.x))}),HW(e,{top:QK(r),left:QK(i)}),this.alignText()},t.prototype.alignText=function(){var e=this.get("textEl");if(e){var t=this.get("text").align,n=e.clientWidth,i=this.getTextPoint();switch(t){case"center":i.x=i.x-n/2;break;case"right":i.x=i.x-n}HW(e,{top:QK(i.y),left:QK(i.x)})}},t.prototype.updateInner=function(t){(0,wW.wH)(t,"text")&&this.resetText(),e.prototype.updateInner.call(this,t)},t}(MY),Sq=Cq,wq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:hY.lineColor}}}})},t.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},t.prototype.renderInner=function(e){this.drawGrid(e)},t.prototype.getAlternatePath=function(e,t){var n=this.getGridPath(e),i=t.slice(0).reverse(),r=this.getGridPath(i,!0);return this.get("closed")?n=n.concat(r):(r[0][0]="L",(n=n.concat(r)).push(["Z"])),n},t.prototype.getPathStyle=function(){return this.get("line").style},t.prototype.drawGrid=function(e){var t=this,n=this.get("line"),i=this.get("items"),r=this.get("alternateColor"),o=null;(0,wW.S6)(i,(function(a,s){var l=a.id||s;if(n){var c=t.getPathStyle();c=(0,wW.mf)(c)?c(a,s,i):c;var u=t.getElementId("line-"+l),d=t.getGridPath(a.points);t.addShape(e,{type:"path",name:"grid-line",id:u,attrs:(0,wW.CD)({path:d},c)})}if(r&&s>0){var h=t.getElementId("region-"+l),f=s%2===0;if((0,wW.HD)(r))f&&t.drawAlternateRegion(h,e,o.points,a.points,r);else{var p=f?r[1]:r[0];t.drawAlternateRegion(h,e,o.points,a.points,p)}}o=a}))},t.prototype.drawAlternateRegion=function(e,t,n,i,r){var o=this.getAlternatePath(n,i);this.addShape(t,{type:"path",id:e,name:"grid-region",attrs:{path:o,fill:r}})},t}(sY),kq=wq;var xq,Eq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{type:"circle",center:null,closed:!0})},t.prototype.getGridPath=function(e,t){var n=this.getLineType(),i=this.get("closed"),r=[];if(e.length)if("circle"===n){var o=this.get("center"),a=e[0],s=function(e,t,n,i){var r=n-e,o=i-t;return Math.sqrt(r*r+o*o)}(o.x,o.y,a.x,a.y),l=t?0:1;i?(r.push(["M",o.x,o.y-s]),r.push(["A",s,s,0,0,l,o.x,o.y+s]),r.push(["A",s,s,0,0,l,o.x,o.y-s]),r.push(["Z"])):(0,wW.S6)(e,(function(e,t){0===t?r.push(["M",e.x,e.y]):r.push(["A",s,s,0,0,l,e.x,e.y])}))}else(0,wW.S6)(e,(function(e,t){0===t?r.push(["M",e.x,e.y]):r.push(["L",e.x,e.y])})),i&&r.push(["Z"]);return r},t}(kq),Tq=Eq,Nq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{type:"line"})},t.prototype.getGridPath=function(e){var t=[];return(0,wW.S6)(e,(function(e,n){0===n?t.push(["M",e.x,e.y]):t.push(["L",e.x,e.y])})),t},t}(kq),Iq=Nq,Dq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},t.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),i=this.get("maxHeight"),r=t.width,o=t.height;return n&&(r=Math.min(r,n)),i&&(o=Math.min(o,i)),KK(t.minX,t.minY,r,o)},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetLocation()},t.prototype.resetLocation=function(){var e=this.get("x"),t=this.get("y"),n=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:e+n,y:t+i})},t.prototype.applyOffset=function(){this.resetLocation()},t.prototype.getDrawPoint=function(){return this.get("currentPoint")},t.prototype.setDrawPoint=function(e){return this.set("currentPoint",e)},t.prototype.renderInner=function(e){this.resetDraw(),this.get("title")&&this.drawTitle(e),this.drawLegendContent(e),this.get("background")&&this.drawBackground(e)},t.prototype.drawBackground=function(e){var t=this.get("background"),n=e.getBBox(),i=WK(t.padding),r=(0,SW.pi)({x:0,y:0,width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},t.style);this.addShape(e,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:r}).toBack()},t.prototype.drawTitle=function(e){var t=this.get("currentPoint"),n=this.get("title"),i=n.spacing,r=n.style,o=n.text,a=this.addShape(e,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,SW.pi)({text:o,x:t.x,y:t.y},r)}).getBBox();this.set("currentPoint",{x:t.x,y:a.maxY+i})},t.prototype.resetDraw=function(){var e=this.get("background"),t={x:0,y:0};if(e){var n=WK(e.padding);t.x=n[3],t.y=n[0]}this.set("currentPoint",t)},t}(sY),Lq=Dq,Oq={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},Rq={fill:hY.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:hY.fontFamily,fontWeight:"normal",lineHeight:12},Aq="navigation-arrow-right",Mq="navigation-arrow-left",Pq={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},Zq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var e=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get("animate")?e.animate({matrix:n},100):e.attr({matrix:n})}},t.onNavigationAfter=function(){var e=t.getElementByLocalId("item-group");if(t.currentPageIndex<t.totalPagesCnt){t.currentPageIndex+=1,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get("animate")?e.animate({matrix:n},100):e.attr({matrix:n})}},t}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:hY.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:hY.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:Oq,itemName:{spacing:16,style:Rq},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:Rq,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:hY.uncheckedColor},markerStyle:{fill:hY.uncheckedColor,stroke:hY.uncheckedColor}},inactive:{nameStyle:{fill:hY.uncheckedColor},markerStyle:{opacity:.2}}}}})},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get("items")},t.prototype.setItems=function(e){this.update({items:e})},t.prototype.updateItem=function(e,t){(0,wW.CD)(e,t),this.clear(),this.render()},t.prototype.clearItems=function(){var e=this.getElementByLocalId("item-group");e&&e.clear()},t.prototype.setItemState=function(e,t,n){e[t]=n;var i=this.getElementByLocalId("item-"+e.id);if(i){var r=this.getItems().indexOf(e),o=this.createOffScreenGroup(),a=this.drawItem(e,r,this.getItemHeight(),o);this.updateElements(a,i),this.clearUpdateStatus(i)}},t.prototype.hasState=function(e,t){return!!e[t]},t.prototype.getItemStates=function(e){var t=this.get("itemStates"),n=[];return(0,wW.S6)(t,(function(t,i){e[i]&&n.push(i)})),n},t.prototype.clearItemsState=function(e){var t=this,n=this.getItemsByState(e);(0,wW.S6)(n,(function(n){t.setItemState(n,e,!1)}))},t.prototype.getItemsByState=function(e){var t=this,n=this.getItems();return(0,wW.hX)(n,(function(n){return t.hasState(n,e)}))},t.prototype.drawLegendContent=function(e){this.processItems(),this.drawItems(e)},t.prototype.processItems=function(){var e=this.get("items");(0,wW.S6)(e,(function(e){e.id||(e.id=e.name)}))},t.prototype.drawItems=function(e){var t=this,n=this.addGroup(e,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),i=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),r=this.getItemHeight(),o=this.get("itemWidth"),a=this.get("itemSpacing"),s=this.get("itemMarginBottom"),l=this.get("currentPoint"),c=l.x,u=l.y,d=this.get("layout"),h=this.get("items"),f=!1,p=0,g=this.get("maxWidth"),v=this.get("maxHeight");(0,wW.S6)(h,(function(e,n){var h=t.drawItem(e,n,r,i),m=h.getBBox(),y=o||m.width;y>p&&(p=y),"horizontal"===d?(g&&g<l.x+y-c&&(f=!0,l.x=c,l.y+=r+s),t.moveElementTo(h,l),l.x+=y+a):(v&&v<l.y+r+s-u&&(f=!0,l.x+=p+a,l.y=u,p=0),t.moveElementTo(h,l),l.y+=r+s)})),f&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=c,this.startY=u,this.adjustNavigation(e,i))},t.prototype.getItemHeight=function(){var e=this.get("itemHeight");if(!e){var t=(this.get("itemName")||{}).style;if((0,wW.mf)(t)){var n=this.getItems();n.forEach((function(i,r){var o=(0,SW.pi)((0,SW.pi)({},Rq),t(i,r,n)).fontSize;e<o&&(e=o)}))}else t&&(e=t.fontSize)}return e},t.prototype.drawMarker=function(e,t,n,i){var r=(0,SW.pi)((0,SW.pi)((0,SW.pi)({x:0,y:i/2},t.style),{symbol:(0,wW.U2)(n.marker,"symbol","circle")}),(0,wW.U2)(n.marker,"style",{})),o=this.addShape(e,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:r}),a=o.getBBox();o.attr("x",a.width/2);var s=o.attr(),l=s.stroke,c=s.fill;return l&&o.set("isStroke",!0),c&&o.set("isFill",!0),o},t.prototype.drawItemText=function(e,t,n,i,r,o,a){var s=n.formatter,l=n.style,c=(0,SW.pi)((0,SW.pi)({x:o,y:r/2,text:s?s(i[t],i,a):i[t]},Rq),(0,wW.mf)(l)?l(i,a,this.getItems()):l);return this.addShape(e,{type:"text",id:this.getElementId("item-"+i.id+"-"+t),name:"legend-item-"+t,attrs:c})},t.prototype.drawRadio=function(e,t,n,i,r){var o,a,s=t.style||{},l=null!==(o=s.r)&&void 0!==o?o:i/2,c=3.6*l/8,u=[r+l,i/2-l],d=u[0],h=u[1],f=[d+l,h+l],p=f[0],g=f[1],v=[d,g+l],m=v[0],y=v[1],_=[r,h+l],b=_[0],C=_[1],S=n.showRadio,w=(0,SW.pi)((0,SW.pi)({path:[["M",d,h],["A",l,l,0,0,1,p,g],["L",p-c,g],["L",p,g],["A",l,l,0,0,1,m,y],["L",m,y-c],["L",m,y],["A",l,l,0,0,1,b,C],["L",b+c,C],["L",b,C],["A",l,l,0,0,1,d,h],["L",d,h+c]],stroke:"#000000",fill:"#ffffff"},s),{opacity:S?null!==(a=null===s||void 0===s?void 0:s.opacity)&&void 0!==a?a:.45:0}),k=this.addShape(e,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:w});return k.set("tip",t.tip),k},t.prototype.drawItem=function(e,t,n,i){var r="item-"+e.id,o=this.addGroup(i,{name:"legend-item-container",id:this.getElementId("item-container-"+r),delegateObject:{item:e,index:t}}),a=this.addGroup(o,{name:"legend-item",id:this.getElementId(r),delegateObject:{item:e,index:t}}),s=this.get("marker"),l=this.get("itemName"),c=this.get("itemValue"),u=this.get("itemBackground"),d=this.get("radio"),h=this.getLimitItemWidth(),f=0;if(s){var p=this.drawMarker(a,s,e,n),g=s.spacing,v=(0,wW.U2)(e,["marker","spacing"]);(0,wW.hj)(v)&&(g=v),f=p.getBBox().maxX+g}if(l){var m=this.drawItemText(a,"name",l,e,n,f,t);h&&uY(!0,m,(0,wW.uZ)(h-f,0,h)),f=m.getBBox().maxX+l.spacing}if(c){var y=this.drawItemText(a,"value",c,e,n,f,t);h&&(c.alignRight?(y.attr({textAlign:"right",x:h}),uY(!0,y,(0,wW.uZ)(h-f,0,h),"head")):uY(!0,y,(0,wW.uZ)(h-f,0,h))),f=y.getBBox().maxX+c.spacing}if(d&&this.drawRadio(a,d,e,n,f),u){var _=a.getBBox();this.addShape(a,{type:"rect",name:"legend-item-background",id:this.getElementId(r+"-background"),attrs:(0,SW.pi)({x:0,y:0,width:_.width,height:n},u.style)}).toBack()}return this.applyItemStates(e,a),a},t.prototype.adjustNavigation=function(e,t){var n=this,i=this.startX,r=this.startY,o=this.get("layout"),a=t.findAll((function(e){return"legend-item"===e.get("name")})),s=this.get("maxWidth"),l=this.get("maxHeight"),c=this.get("itemWidth"),u=this.get("itemSpacing"),d=this.getItemHeight(),h=(0,wW.b$)({},Oq,this.get("pageNavigator")),f=this.drawNavigation(e,o,"00/00",h),p=f.getBBox(),g={x:i,y:r},v=1,m=0,y=0,_=0,b=this.get("itemMarginBottom");if("horizontal"===o){var C=this.get("maxRow")||1,S=d+(1===C?0:b),w=s-u-p.width-p.minX;this.pageHeight=S*C,this.pageWidth=w,(0,wW.S6)(a,(function(e){var t=e.getBBox(),r=c||t.width;(m&&m<g.x+r+u||function(e,t){var n=e.getBBox(),i=c||n.width;return t.x+i+u+p.width>s}(e,g))&&(1===v&&(m=g.x+u,n.moveElementTo(f,{x:w,y:g.y+d/2-p.height/2-p.minY})),v+=1,g.x=i,g.y+=S),n.moveElementTo(e,g),e.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:r+u,height:d}}),g.x+=r+u}))}else{(0,wW.S6)(a,(function(e){var t=e.getBBox();t.width>y&&(y=t.width)})),_=y,y+=u,s&&(y=Math.min(s,y),_=Math.min(s,_)),this.pageWidth=y,this.pageHeight=l-Math.max(p.height,d+b);var k=Math.floor(this.pageHeight/(d+b));(0,wW.S6)(a,(function(e,t){0!==t&&t%k===0&&(v+=1,g.x+=y,g.y=r),n.moveElementTo(e,g),e.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:y,height:d}}),g.y+=d+b})),this.totalPagesCnt=v,this.moveElementTo(f,{x:i+_/2-p.width/2-p.minX,y:l-p.height-p.minY})}this.pageHeight&&this.pageWidth&&t.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(v/this.get("maxRow")):this.totalPagesCnt=v,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(f),t.attr("matrix",this.getCurrentNavigationMatrix())},t.prototype.drawNavigation=function(e,t,n,i){var r={x:0,y:0},o=this.addGroup(e,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),a=(0,wW.U2)(i.marker,"style",{}),s=a.size,l=void 0===s?12:s,c=(0,SW._T)(a,["size"]),u=this.drawArrow(o,r,Mq,"horizontal"===t?"up":"left",l,c);u.on("click",this.onNavigationBack);var d=u.getBBox();r.x+=d.width+2;var h=this.addShape(o,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,SW.pi)({x:r.x,y:r.y+l/2,text:n,textBaseline:"middle"},(0,wW.U2)(i.text,"style"))}).getBBox();return r.x+=h.width+2,this.drawArrow(o,r,Aq,"horizontal"===t?"down":"right",l,c).on("click",this.onNavigationAfter),o},t.prototype.updateNavigation=function(e){var t=(0,wW.b$)({},Oq,this.get("pageNavigator")).marker.style,n=t.fill,i=t.opacity,r=t.inactiveFill,o=t.inactiveOpacity,a=this.currentPageIndex+"/"+this.totalPagesCnt,s=e?e.getChildren()[1]:this.getElementByLocalId("navigation-text"),l=e?e.findById(this.getElementId(Mq)):this.getElementByLocalId(Mq),c=e?e.findById(this.getElementId(Aq)):this.getElementByLocalId(Aq);s.attr("text",a),l.attr("opacity",1===this.currentPageIndex?o:i),l.attr("fill",1===this.currentPageIndex?r:n),l.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),c.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:i),c.attr("fill",this.currentPageIndex===this.totalPagesCnt?r:n),c.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var u=l.getBBox().maxX+2;s.attr("x",u),u+=s.getBBox().width+2,this.updateArrowPath(c,{x:u,y:0})},t.prototype.drawArrow=function(e,t,n,i,r,o){var a=t.x,s=t.y,l=this.addShape(e,{type:"path",id:this.getElementId(n),name:n,attrs:(0,SW.pi)({size:r,direction:i,path:[["M",a+r/2,s],["L",a,s+r],["L",a+r,s+r],["Z"]],cursor:"pointer"},o)});return l.attr("matrix",BK({x:a+r/2,y:s+r/2},Pq[i])),l},t.prototype.updateArrowPath=function(e,t){var n=t.x,i=t.y,r=e.attr(),o=r.size,a=r.direction,s=BK({x:n+o/2,y:i+o/2},Pq[a]);e.attr("path",[["M",n+o/2,i],["L",n,i+o],["L",n+o,i+o],["Z"]]),e.attr("matrix",s)},t.prototype.getCurrentNavigationMatrix=function(){var e=this,t=e.currentPageIndex,n=e.pageWidth,i=e.pageHeight;return HK("horizontal"===this.get("layout")?{x:0,y:i*(1-t)}:{x:n*(1-t),y:0})},t.prototype.applyItemStates=function(e,t){if(this.getItemStates(e).length>0){var n=t.getChildren(),i=this.get("itemStates");(0,wW.S6)(n,(function(t){var n=t.get("name").split("-")[2],r=FY(e,n,i);r&&(t.attr(r),"marker"!==n||t.get("isStroke")&&t.get("isFill")||(t.get("isStroke")&&t.attr("fill",null),t.get("isFill")&&t.attr("stroke",null)))}))}},t.prototype.getLimitItemWidth=function(){var e=this.get("itemWidth"),t=this.get("maxItemWidth");return t?e&&(t=e<=t?e:t):e&&(t=e),t},t}(Lq),Fq=Zq,Bq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:hY.textColor,textBaseline:"middle",fontFamily:hY.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:hY.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},t.prototype.isSlider=function(){return!0},t.prototype.getValue=function(){return this.getCurrentValue()},t.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},t.prototype.setRange=function(e,t){this.update({min:e,max:t})},t.prototype.setValue=function(e){var t=this.getValue();this.set("value",e);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:t,value:e})},t.prototype.initEvent=function(){var e=this.get("group");this.bindSliderEvent(e),this.bindRailEvent(e),this.bindTrackEvent(e)},t.prototype.drawLegendContent=function(e){this.drawRail(e),this.drawLabels(e),this.fixedElements(e),this.resetTrack(e),this.resetTrackClip(e),this.get("slidable")&&this.resetHandlers(e)},t.prototype.bindSliderEvent=function(e){this.bindHandlersEvent(e)},t.prototype.bindHandlersEvent=function(e){var t=this;e.on("legend-handler-min:drag",(function(e){var n=t.getValueByCanvasPoint(e.x,e.y),i=t.getCurrentValue()[1];i<n&&(i=n),t.setValue([n,i])})),e.on("legend-handler-max:drag",(function(e){var n=t.getValueByCanvasPoint(e.x,e.y),i=t.getCurrentValue()[0];i>n&&(i=n),t.setValue([i,n])}))},t.prototype.bindRailEvent=function(e){},t.prototype.bindTrackEvent=function(e){var t=this,n=null;e.on("legend-track:dragstart",(function(e){n={x:e.x,y:e.y}})),e.on("legend-track:drag",(function(e){if(n){var i=t.getValueByCanvasPoint(n.x,n.y),r=t.getValueByCanvasPoint(e.x,e.y),o=t.getCurrentValue(),a=o[1]-o[0],s=t.getRange(),l=r-i;l<0?o[0]+l>s.min?t.setValue([o[0]+l,o[1]+l]):t.setValue([s.min,s.min+a]):l>0&&(l>0&&o[1]+l<s.max?t.setValue([o[0]+l,o[1]+l]):t.setValue([s.max-a,s.max])),n={x:e.x,y:e.y}}})),e.on("legend-track:dragend",(function(e){n=null}))},t.prototype.drawLabels=function(e){this.drawLabel("min",e),this.drawLabel("max",e)},t.prototype.drawLabel=function(e,t){var n=this.get("label"),i=n.style,r=n.align,o=n.formatter,a=this.get(e),s=this.getLabelAlignAttrs(e,r),l="label-"+e;this.addShape(t,{type:"text",id:this.getElementId(l),name:"legend-label-"+e,attrs:(0,SW.pi)((0,SW.pi)({x:0,y:0,text:(0,wW.mf)(o)?o(a):a},i),s)})},t.prototype.getLabelAlignAttrs=function(e,t){var n="center",i="middle";return this.isVertical()?(n="start",i="rail"!==t?"min"===e?"top":"bottom":"top"):"rail"!==t?(i="top",n="min"===e?"start":"end"):(n="start",i="middle"),{textAlign:n,textBaseline:i}},t.prototype.getRailPath=function(e,t,n,i){var r=this.get("rail"),o=r.size,a=r.defaultLength,s=r.type,l=this.isVertical(),c=n,u=i;c||(c=l?o:a),u||(u=l?a:o);var d=[];return"color"===s?(d.push(["M",e,t]),d.push(["L",e+c,t]),d.push(["L",e+c,t+u]),d.push(["L",e,t+u]),d.push(["Z"])):(d.push(["M",e+c,t]),d.push(["L",e+c,t+u]),d.push(["L",e,t+u]),d.push(["Z"])),d},t.prototype.drawRail=function(e){var t=this.get("rail").style;this.addShape(e,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:(0,SW.pi)({path:this.getRailPath(0,0)},t)})},t.prototype.getTrackColor=function(e){var t,n=e.length;if(!n)return null;if(1===n)return e[0];t=this.isVertical()?"l(90)":"l(0)";for(var i=0;i<n;i++){t+=" "+i/(n-1)+":"+e[i]}return t},t.prototype.getTrackPath=function(e){var t=this.getRailShape(e).attr("path");return(0,wW.d9)(t)},t.prototype.getClipTrackAttrs=function(e){var t,n,i,r,o=this.getCurrentValue(),a=o[0],s=o[1],l=this.getRailBBox(e),c=this.getPointByValue(a,e),u=this.getPointByValue(s,e);return this.isVertical()?(t=l.minX,n=c.y,i=l.width,r=u.y-c.y):(t=c.x,n=l.minY,i=u.x-c.x,r=l.height),{x:t,y:n,width:i,height:r}},t.prototype.getTrackAttrs=function(e){var t=this.get("track"),n=this.get("colors"),i=this.getTrackPath(e);return(0,wW.CD)({path:i,fill:this.getTrackColor(n)},t.style)},t.prototype.resetTrackClip=function(e){var t=e||this.get("group"),n=this.getElementId("track"),i=t.findById(n),r=i.getClip(),o=this.getClipTrackAttrs(e);r?r.attr(o):i.setClip({type:"rect",attrs:o})},t.prototype.resetTrack=function(e){var t=this.getElementId("track"),n=e.findById(t),i=this.getTrackAttrs(e);n?n.attr(i):this.addShape(e,{type:"path",id:t,draggable:this.get("slidable"),name:"legend-track",attrs:i})},t.prototype.getPointByValue=function(e,t){var n=this.getRange(),i=n.min,r=(e-i)/(n.max-i),o=this.getRailBBox(t),a={x:0,y:0};return this.isVertical()?(a.x=o.minX+o.width/2,a.y=YK(o.minY,o.maxY,r)):(a.x=YK(o.minX,o.maxX,r),a.y=o.minY+o.height/2),a},t.prototype.getRailShape=function(e){return(e||this.get("group")).findById(this.getElementId("rail"))},t.prototype.getRailBBox=function(e){return this.getRailShape(e).getBBox()},t.prototype.getRailCanvasBBox=function(){return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},t.prototype.isVertical=function(){return"vertical"===this.get("layout")},t.prototype.getValueByCanvasPoint=function(e,t){var n=this.getRange(),i=n.min,r=n.max,o=this.getRailCanvasBBox(),a=this.isVertical(),s=this.get("step"),l=YK(i,r,a?(t-o.minY)/o.height:(e-o.minX)/o.width);s&&(l=i+Math.round((l-i)/s)*s);return l>r&&(l=r),l<i&&(l=i),l},t.prototype.getCurrentValue=function(){var e=this.get("value");if(!e){var t=this.get("values");return t?[Math.max(Math.min.apply(Math,(0,SW.pr)(t,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,(0,SW.pr)(t,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return e},t.prototype.resetHandlers=function(e){var t=this.getCurrentValue(),n=t[0],i=t[1];this.resetHandler(e,"min",n),this.resetHandler(e,"max",i)},t.prototype.getHandlerPath=function(e,t){var n=this.isVertical(),i=[],r=e.size,o=t.x,a=t.y,s=1.4*r,l=r/2,c=r/6;if(n){var u=o+.4*s;i.push(["M",o,a]),i.push(["L",u,a+l]),i.push(["L",o+s,a+l]),i.push(["L",o+s,a-l]),i.push(["L",u,a-l]),i.push(["Z"]),i.push(["M",u,a+c]),i.push(["L",o+s-2,a+c]),i.push(["M",u,a-c]),i.push(["L",o+s-2,a-c])}else{var d=a+.4*s;i.push(["M",o,a]),i.push(["L",o-l,d]),i.push(["L",o-l,a+s]),i.push(["L",o+l,a+s]),i.push(["L",o+l,d]),i.push(["Z"]),i.push(["M",o-c,d]),i.push(["L",o-c,a+s-2]),i.push(["M",o+c,d]),i.push(["L",o+c,a+s-2])}return i},t.prototype.resetHandler=function(e,t,n){var i=this.getPointByValue(n,e),r=this.get("handler"),o=this.getHandlerPath(r,i),a=this.getElementId("handler-"+t),s=e.findById(a),l=this.isVertical();s?s.attr("path",o):this.addShape(e,{type:"path",name:"legend-handler-"+t,draggable:!0,id:a,attrs:(0,SW.pi)((0,SW.pi)({path:o},r.style),{cursor:l?"ns-resize":"ew-resize"})})},t.prototype.fixedElements=function(e){var t=e.findById(this.getElementId("rail")),n=e.findById(this.getElementId("label-min")),i=e.findById(this.getElementId("label-max")),r=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,i,t,r):this.fixedHorizontal(n,i,t,r)},t.prototype.fitRailLength=function(e,t,n,i){var r=this.isVertical()?"height":"width",o=this.get("label"),a=o.align,s=o.spacing,l=this.get("max"+(0,wW.jC)(r));if(l){var c=("rail"===a?n[r]+e[r]+t[r]+2*s:n[r])-l;c>0&&this.changeRailLength(i,r,n[r]-c)}},t.prototype.changeRailLength=function(e,t,n){var i,r=e.getBBox();i="height"===t?this.getRailPath(r.x,r.y,r.width,n):this.getRailPath(r.x,r.y,n,r.height),e.attr("path",i)},t.prototype.changeRailPosition=function(e,t,n){var i=e.getBBox(),r=this.getRailPath(t,n,i.width,i.height);e.attr("path",r)},t.prototype.fixedHorizontal=function(e,t,n,i){var r=this.get("label"),o=r.align,a=r.spacing,s=n.getBBox(),l=e.getBBox(),c=t.getBBox(),u=s.height;this.fitRailLength(l,c,s,n),s=n.getBBox(),"rail"===o?(e.attr({x:i.x,y:i.y+u/2}),this.changeRailPosition(n,i.x+l.width+a,i.y),t.attr({x:i.x+l.width+s.width+2*a,y:i.y+u/2})):"top"===o?(e.attr({x:i.x,y:i.y}),t.attr({x:i.x+s.width,y:i.y}),this.changeRailPosition(n,i.x,i.y+l.height+a)):(this.changeRailPosition(n,i.x,i.y),e.attr({x:i.x,y:i.y+s.height+a}),t.attr({x:i.x+s.width,y:i.y+s.height+a}))},t.prototype.fixedVertail=function(e,t,n,i){var r=this.get("label"),o=r.align,a=r.spacing,s=n.getBBox(),l=e.getBBox(),c=t.getBBox();if(this.fitRailLength(l,c,s,n),s=n.getBBox(),"rail"===o)e.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x,i.y+l.height+a),t.attr({x:i.x,y:i.y+l.height+s.height+2*a});else if("right"===o)e.attr({x:i.x+s.width+a,y:i.y}),this.changeRailPosition(n,i.x,i.y),t.attr({x:i.x+s.width+a,y:i.y+s.height});else{var u=Math.max(l.width,c.width);e.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x+u+a,i.y),t.attr({x:i.x,y:i.y+s.height})}},t}(Lq),Hq=Bq,zq="g2-tooltip",jq="g2-tooltip-title",Vq="g2-tooltip-list",Wq="g2-tooltip-list-item",Uq="g2-tooltip-marker",Gq="g2-tooltip-value",Kq="g2-tooltip-name",Yq="g2-tooltip-crosshair-x",qq="g2-tooltip-crosshair-y",$q=((xq={})[""+zq]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:hY.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},xq[""+jq]={marginBottom:"4px"},xq[""+Vq]={margin:"0px",listStyleType:"none",padding:"0px"},xq[""+Wq]={listStyleType:"none",marginBottom:"4px"},xq[""+Uq]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},xq[""+Gq]={display:"inline-block",float:"right",marginLeft:"30px"},xq[""+Yq]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},xq[""+qq]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},xq);var Xq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+zq+'"><div class="'+jq+'"></div><ul class="'+Vq+'"></ul></div>',itemTpl:'<li class="'+Wq+'" data-index={index}>\n <span class="'+Uq+'" style="background:{color}"></span>\n <span class="'+Kq+'">{name}</span>:\n <span class="'+Gq+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+Yq+'"></div>',yCrosshairTpl:'<div class="'+qq+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:zq,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:$q})},t.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},t.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},t.prototype.show=function(){var e=this.getContainer();e&&!this.destroyed&&(this.set("visible",!0),HW(e,{visibility:"visible"}),this.setCrossHairsVisible(!0))},t.prototype.hide=function(){var e=this.getContainer();e&&!this.destroyed&&(this.set("visible",!1),HW(e,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},t.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetPosition()},t.prototype.setCrossHairsVisible=function(e){var t=e?"":"none",n=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");n&&HW(n,{display:t}),i&&HW(i,{display:t})},t.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},t.prototype.updateInner=function(t){this.get("customContent")?this.renderCustomContent():(function(e,t){var n=!1;return(0,wW.S6)(t,(function(t){if((0,wW.wH)(e,t))return n=!0,!1})),n}(t,["title","showTitle"])&&this.resetTitle(),(0,wW.wH)(t,"items")&&this.renderItems()),e.prototype.updateInner.call(this,t)},t.prototype.initDom=function(){this.cacheDoms()},t.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},t.prototype.resetPosition=function(){var e,t=this.get("x"),n=this.get("y"),i=this.get("offset"),r=this.getOffset(),o=r.offsetX,a=r.offsetY,s=this.get("position"),l=this.get("region"),c=this.getContainer(),u=this.getBBox(),d=u.width,h=u.height;l&&(e=GK(l));var f=function(e,t,n,i,r,o,a){var s=function(e,t,n,i,r,o){var a=e,s=t;switch(o){case"left":a=e-i-n,s=t-r/2;break;case"right":a=e+n,s=t-r/2;break;case"top":a=e-i/2,s=t-r-n;break;case"bottom":a=e-i/2,s=t+n;break;default:a=e+n,s=t-r-n}return{x:a,y:s}}(e,t,n,i,r,o);if(a){var l=function(e,t,n,i,r){return{left:e<r.x,right:e+n>r.x+r.width,top:t<r.y,bottom:t+i>r.y+r.height}}(s.x,s.y,i,r,a);"auto"===o?(l.right&&(s.x=Math.max(0,e-i-n)),l.top&&(s.y=Math.max(0,t-r-n))):"top"===o||"bottom"===o?(l.left&&(s.x=a.x),l.right&&(s.x=a.x+a.width-i),"top"===o&&l.top&&(s.y=t+n),"bottom"===o&&l.bottom&&(s.y=t-r-n)):(l.top&&(s.y=a.y),l.bottom&&(s.y=a.y+a.height-r),"left"===o&&l.left&&(s.x=e+n),"right"===o&&l.right&&(s.x=e-i-n))}return s}(t,n,i,d,h,s,e);HW(c,{left:QK(f.x+o),top:QK(f.y+a)}),this.resetCrosshairs()},t.prototype.renderCustomContent=function(){var e=this.getHtmlContentNode(),t=this.get("parent"),n=this.get("container");n&&n.parentNode===t?t.replaceChild(e,n):t.appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()},t.prototype.getHtmlContentNode=function(){var e,t=this.get("customContent");if(t){var n=t(this.get("title"),this.get("items"));e=(0,wW.kK)(n)?n:BW(n)}return e},t.prototype.cacheDoms=function(){var e=this.getContainer(),t=e.getElementsByClassName(jq)[0],n=e.getElementsByClassName(Vq)[0];this.set("titleDom",t),this.set("listDom",n)},t.prototype.resetTitle=function(){var e=this.get("title");this.get("showTitle")&&e?this.setTitle(e):this.setTitle("")},t.prototype.setTitle=function(e){var t=this.get("titleDom");t&&(t.innerText=e)},t.prototype.resetCrosshairs=function(){var e=this.get("crosshairsRegion"),t=this.get("crosshairs");if(e&&t){var n=GK(e),i=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");"x"===t?(this.resetCrosshair("x",n),r&&(r.remove(),this.set("yCrosshairDom",null))):"y"===t?(this.resetCrosshair("y",n),i&&(i.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},t.prototype.resetCrosshair=function(e,t){var n=this.checkCrosshair(e),i=this.get(e);HW(n,"x"===e?{left:QK(i),top:QK(t.y),height:QK(t.height)}:{top:QK(i),left:QK(t.x),width:QK(t.width)})},t.prototype.checkCrosshair=function(e){var t=e+"CrosshairDom",n=e+"CrosshairTpl",i="CROSSHAIR_"+e.toUpperCase(),r=l[i],o=this.get(t),a=this.get("parent");return o||(o=BW(this.get(n)),this.applyStyle(r,o),a.appendChild(o),this.set(t,o)),o},t.prototype.renderItems=function(){this.clearItemDoms();var e=this.get("items"),t=this.get("itemTpl"),n=this.get("listDom");n&&((0,wW.S6)(e,(function(e){var i=wU.toCSSGradient(e.color),r=(0,SW.pi)((0,SW.pi)({},e),{color:i}),o=BW((0,wW.ng)(t,r));n.appendChild(o)})),this.applyChildrenStyles(n,this.get("domStyles")))},t.prototype.clearItemDoms=function(){this.get("listDom")&&UK(this.get("listDom"))},t.prototype.clearCrosshairs=function(){var e=this.get("xCrosshairDom"),t=this.get("yCrosshairDom");e&&e.remove(),t&&t.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},t}(MY),Qq=Xq,Jq={opacity:0},e$={stroke:"#C5C5C5",strokeOpacity:.85},t$={fill:"#CACED4",opacity:.85};var n$=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i=!!t,r=[],o=0,a=e.length;o<a;o+=2)r.push([e[o],e[o+1]]);var s,l,c,u=function(e,t,n,i){var r,o,a,s,l,c,u,d=[],h=!!i;if(h){a=i[0],s=i[1];for(var f=0,p=e.length;f<p;f+=1){var g=e[f];a=DK.VV([0,0],a,g),s=DK.Fp([0,0],s,g)}}f=0;for(var v=e.length;f<v;f+=1)if(g=e[f],0!==f||n)if(f!==v-1||n){r=e[[f?f-1:v-1,f-1][n?0:1]],o=e[n?(f+1)%v:f+1];var m=[0,0];m=DK.lu(m,o,r),m=DK.bA(m,m,t);var y=DK.TE(g,r),_=DK.TE(g,o),b=y+_;0!==b&&(y/=b,_/=b);var C=DK.bA([0,0],m,-y),S=DK.bA([0,0],m,_);c=DK.IH([0,0],g,C),l=DK.IH([0,0],g,S),l=DK.VV([0,0],l,DK.Fp([0,0],o,g)),l=DK.Fp([0,0],l,DK.VV([0,0],o,g)),C=DK.lu([0,0],l,g),C=DK.bA([0,0],C,-y/_),c=DK.IH([0,0],g,C),c=DK.VV([0,0],c,DK.Fp([0,0],r,g)),c=DK.Fp([0,0],c,DK.VV([0,0],r,g)),S=DK.lu([0,0],g,c),S=DK.bA([0,0],S,_/y),l=DK.IH([0,0],g,S),h&&(c=DK.Fp([0,0],c,a),c=DK.VV([0,0],c,s),l=DK.Fp([0,0],l,a),l=DK.VV([0,0],l,s)),d.push(u),d.push(c),u=l}else c=g,d.push(u),d.push(c);else u=g;return n&&d.push(d.shift()),d}(r,.4,i,n),d=r.length,h=[];for(o=0;o<d-1;o+=1)s=u[2*o],l=u[2*o+1],c=r[o+1],h.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]]);return i&&(s=u[d],l=u[d+1],c=r[0],h.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]])),h};var i$="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029";new RegExp("([a-z])["+i$+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i$+"]*,?["+i$+"]*)+)","ig"),new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i$+"]*,?["+i$+"]*","ig");Math.PI;function r$(e){return function(e){return(0,wW.UI)(e,(function(e,t){return[0===t?"M":"L",e[0],e[1]]}))}(e)}function o$(e,t,n,i){void 0===i&&(i=!0);var r=new IG({values:e}),o=new BU({values:(0,wW.UI)(e,(function(e,t){return t}))}),a=(0,wW.UI)(e,(function(e,i){return[o.scale(i)*t,n-r.scale(e)*n]}));return i?function(e){if(e.length<=2)return r$(e);var t=[];(0,wW.S6)(e,(function(e){(0,wW.Xy)(e,t.slice(t.length-2))||t.push(e[0],e[1])}));var n=n$(t,!1),i=(0,wW.YM)(e),r=i[0],o=i[1];return n.unshift(["M",r,o]),n}(a):r$(a)}function a$(e,t,n,i){var r=(0,SW.pr)(e),o=function(e,t){var n=new IG({values:e}),i=n.max<0?n.max:Math.max(0,n.min);return t-n.scale(i)*t}(i,n);return r.push(["L",t,o]),r.push(["L",0,o]),r.push(["Z"]),r}var s$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:Jq,lineStyle:e$,areaStyle:t$})},t.prototype.renderInner=function(e){var t=this.cfg,n=t.width,i=t.height,r=t.data,o=t.smooth,a=t.isArea,s=t.backgroundStyle,l=t.lineStyle,c=t.areaStyle;this.addShape(e,{id:this.getElementId("background"),type:"rect",attrs:(0,SW.pi)({x:0,y:0,width:n,height:i},s)});var u=o$(r,n,i,o);if(this.addShape(e,{id:this.getElementId("line"),type:"path",attrs:(0,SW.pi)({path:u},l)}),a){var d=a$(u,n,i,r);this.addShape(e,{id:this.getElementId("area"),type:"path",attrs:(0,SW.pi)({path:d},c)})}},t.prototype.applyOffset=function(){var e=this.cfg,t=e.x,n=e.y;this.moveElementTo(this.get("group"),{x:t,y:n})},t}(sY),l$={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},c$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"handler",x:0,y:0,width:10,height:24,style:l$})},t.prototype.renderInner=function(e){var t=this.cfg,n=t.width,i=t.height,r=t.style,o=r.fill,a=r.stroke,s=r.radius,l=r.opacity,c=r.cursor;this.addShape(e,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:i,fill:o,stroke:a,radius:s,opacity:l,cursor:c}});var u=1/3*n,d=2/3*n,h=1/4*i,f=3/4*i;this.addShape(e,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:h,x2:u,y2:f,stroke:a,cursor:c}}),this.addShape(e,{id:this.getElementId("line-right"),type:"line",attrs:{x1:d,y1:h,x2:d,y2:f,stroke:a,cursor:c}})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.bindEvents=function(){var e=this;this.get("group").on("mouseenter",(function(){var t=e.get("style").highLightFill;e.getElementByLocalId("background").attr("fill",t),e.draw()})),this.get("group").on("mouseleave",(function(){var t=e.get("style").fill;e.getElementByLocalId("background").attr("fill",t),e.draw()}))},t.prototype.draw=function(){var e=this.get("container").get("canvas");e&&e.draw()},t}(sY),u$={fill:"#416180",opacity:.05},d$={fill:"#5B8FF9",opacity:.15,cursor:"move"},h$={width:10,height:24},f$={textBaseline:"middle",fill:"#000",opacity:.45},p$="sliderchange",g$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return function(n){t.currentTarget=e;var i=n.originalEvent;i.stopPropagation(),i.preventDefault(),t.prevX=(0,wW.U2)(i,"touches.0.pageX",i.pageX),t.prevY=(0,wW.U2)(i,"touches.0.pageY",i.pageY);var r=t.getContainerDOM();r.addEventListener("mousemove",t.onMouseMove),r.addEventListener("mouseup",t.onMouseUp),r.addEventListener("mouseleave",t.onMouseUp),r.addEventListener("touchmove",t.onMouseMove),r.addEventListener("touchend",t.onMouseUp),r.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(e){var n=t.cfg.width,i=[t.get("start"),t.get("end")];e.stopPropagation(),e.preventDefault();var r=(0,wW.U2)(e,"touches.0.pageX",e.pageX),o=(0,wW.U2)(e,"touches.0.pageY",e.pageY),a=r-t.prevX,s=t.adjustOffsetRange(a/n);t.updateStartEnd(s),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=r,t.prevY=o,t.draw(),t.emit(p$,[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:i,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var e=t.getContainerDOM();e&&(e.removeEventListener("mousemove",t.onMouseMove),e.removeEventListener("mouseup",t.onMouseUp),e.removeEventListener("mouseleave",t.onMouseUp),e.removeEventListener("touchmove",t.onMouseMove),e.removeEventListener("touchend",t.onMouseUp),e.removeEventListener("touchcancel",t.onMouseUp))},t}return(0,SW.ZT)(t,e),t.prototype.setRange=function(e,t){this.set("minLimit",e),this.set("maxLimit",t);var n=this.get("start"),i=this.get("end"),r=(0,wW.uZ)(n,e,t),o=(0,wW.uZ)(i,e,t);this.get("isInit")||n===r&&i===o||this.setValue([r,o])},t.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},t.prototype.setValue=function(e){var t=this.getRange();if((0,wW.kJ)(e)&&2===e.length){var n=[this.get("start"),this.get("end")];this.update({start:(0,wW.uZ)(e[0],t.min,t.max),end:(0,wW.uZ)(e[1],t.min,t.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:e})}},t.prototype.getValue=function(){return[this.get("start"),this.get("end")]},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:u$,foregroundStyle:d$,handlerStyle:h$,textStyle:f$}})},t.prototype.update=function(t){var n=t.start,i=t.end,r=(0,SW.pi)({},t);(0,wW.UM)(n)||(r.start=(0,wW.uZ)(n,0,1)),(0,wW.UM)(i)||(r.end=(0,wW.uZ)(i,0,1)),e.prototype.update.call(this,r),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},t.prototype.init=function(){this.set("start",(0,wW.uZ)(this.get("start"),0,1)),this.set("end",(0,wW.uZ)(this.get("end"),0,1)),e.prototype.init.call(this)},t.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},t.prototype.renderInner=function(e){var t=this.cfg,n=(t.start,t.end,t.width),i=t.height,r=t.trendCfg,o=void 0===r?{}:r,a=t.minText,s=t.maxText,l=t.backgroundStyle,c=void 0===l?{}:l,u=t.foregroundStyle,d=void 0===u?{}:u,h=t.textStyle,f=void 0===h?{}:h,p=(0,wW.b$)({},l$,this.cfg.handlerStyle);(0,wW.dp)((0,wW.U2)(o,"data"))&&(this.trend=this.addComponent(e,(0,SW.pi)({component:s$,id:this.getElementId("trend"),x:0,y:0,width:n,height:i},o))),this.addShape(e,{id:this.getElementId("background"),type:"rect",attrs:(0,SW.pi)({x:0,y:0,width:n,height:i},c)});this.addShape(e,{id:this.getElementId("minText"),type:"text",attrs:(0,SW.pi)({y:i/2,textAlign:"right",text:a,silent:!1},f)}),this.addShape(e,{id:this.getElementId("maxText"),type:"text",attrs:(0,SW.pi)({y:i/2,textAlign:"left",text:s,silent:!1},f)}),this.addShape(e,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,SW.pi)({y:0,height:i},d)});var g=(0,wW.U2)(p,"width",10),v=(0,wW.U2)(p,"height",24);this.minHandler=this.addComponent(e,{component:c$,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(i-v)/2,width:g,height:v,cursor:"ew-resize",style:p}),this.maxHandler=this.addComponent(e,{component:c$,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(i-v)/2,width:g,height:v,cursor:"ew-resize",style:p})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.updateUI=function(e,t,n){var i=this.cfg,r=i.start,o=i.end,a=i.width,s=i.minText,l=i.maxText,c=i.handlerStyle,u=i.height,d=r*a,h=o*a;this.trend&&(this.trend.update({width:a,height:u}),this.get("updateAutoRender")||this.trend.render()),e.attr("x",d),e.attr("width",h-d);var f=(0,wW.U2)(c,"width",10);t.attr("text",s),n.attr("text",l);var p=this._dodgeText([d,h],t,n),g=p[0],v=p[1];this.minHandler&&(this.minHandler.update({x:d-f/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,wW.S6)(g,(function(e,n){return t.attr(n,e)})),this.maxHandler&&(this.maxHandler.update({x:h-f/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,wW.S6)(v,(function(e,t){return n.attr(t,e)}))},t.prototype.bindEvents=function(){var e=this.get("group");e.on("handler-min:mousedown",this.onMouseDown("minHandler")),e.on("handler-min:touchstart",this.onMouseDown("minHandler")),e.on("handler-max:mousedown",this.onMouseDown("maxHandler")),e.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var t=e.findById(this.getElementId("foreground"));t.on("mousedown",this.onMouseDown("foreground")),t.on("touchstart",this.onMouseDown("foreground"))},t.prototype.adjustOffsetRange=function(e){var t=this.cfg,n=t.start,i=t.end;switch(this.currentTarget){case"minHandler":var r=0-n,o=1-n;return Math.min(o,Math.max(r,e));case"maxHandler":r=0-i,o=1-i;return Math.min(o,Math.max(r,e));case"foreground":r=0-n,o=1-i;return Math.min(o,Math.max(r,e))}},t.prototype.updateStartEnd=function(e){var t=this.cfg,n=t.start,i=t.end;switch(this.currentTarget){case"minHandler":n+=e;break;case"maxHandler":i+=e;break;case"foreground":n+=e,i+=e}this.set("start",n),this.set("end",i)},t.prototype._dodgeText=function(e,t,n){var i,r,o=this.cfg,a=o.handlerStyle,s=o.width,l=(0,wW.U2)(a,"width",10),c=e[0],u=e[1],d=!1;c>u&&(c=(i=[u,c])[0],u=i[1],t=(r=[n,t])[0],n=r[1],d=!0);var h=t.getBBox(),f=n.getBBox(),p=h.width>c-2?{x:c+l/2+2,textAlign:"left"}:{x:c-l/2-2,textAlign:"right"},g=f.width>s-u-2?{x:u-l/2-2,textAlign:"right"}:{x:u+l/2+2,textAlign:"left"};return d?[g,p]:[p,g]},t.prototype.draw=function(){var e=this.get("container"),t=e&&e.get("canvas");t&&t.draw()},t.prototype.getContainerDOM=function(){var e=this.get("container"),t=e&&e.get("canvas");return t&&t.get("container")},t}(sY);function v$(e,t,n){if(e){if("function"===typeof e.addEventListener)return e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}};if("function"===typeof e.attachEvent)return e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}}}var m$={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},y$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.clearEvents=wW.ZT,t.onStartEvent=function(e){return function(n){t.isMobile=e,n.originalEvent.preventDefault();var i=e?(0,wW.U2)(n.originalEvent,"touches.0.clientX"):n.clientX,r=e?(0,wW.U2)(n.originalEvent,"touches.0.clientY"):n.clientY;t.startPos=t.cfg.isHorizontal?i:r,t.bindLaterEvent()}},t.bindLaterEvent=function(){var e=t.getContainerDOM(),n=[];n=t.isMobile?[v$(e,"touchmove",t.onMouseMove),v$(e,"touchend",t.onMouseUp),v$(e,"touchcancel",t.onMouseUp)]:[v$(e,"mousemove",t.onMouseMove),v$(e,"mouseup",t.onMouseUp),v$(e,"mouseleave",t.onMouseUp)],t.clearEvents=function(){n.forEach((function(e){e.remove()}))}},t.onMouseMove=function(e){var n=t.cfg,i=n.isHorizontal,r=n.thumbOffset;e.preventDefault();var o=t.isMobile?(0,wW.U2)(e,"touches.0.clientX"):e.clientX,a=t.isMobile?(0,wW.U2)(e,"touches.0.clientY"):e.clientY,s=i?o:a,l=s-t.startPos;t.startPos=s,t.updateThumbOffset(r+l)},t.onMouseUp=function(e){e.preventDefault(),t.clearEvents()},t.onTrackClick=function(e){var n=t.cfg,i=n.isHorizontal,r=n.x,o=n.y,a=n.thumbLen,s=t.getContainerDOM().getBoundingClientRect(),l=e.clientX,c=e.clientY,u=i?l-s.left-r-a/2:c-s.top-o-a/2,d=t.validateRange(u);t.updateThumbOffset(d)},t.onThumbMouseOver=function(){var e=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",e),t.draw()},t.onThumbMouseOut=function(){var e=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",e),t.draw()},t}return(0,SW.ZT)(t,e),t.prototype.setRange=function(e,t){this.set("minLimit",e),this.set("maxLimit",t);var n=this.getValue(),i=(0,wW.uZ)(n,e,t);n===i||this.get("isInit")||this.setValue(i)},t.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},t.prototype.setValue=function(e){var t=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,wW.uZ)(e,t.min,t.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},t.prototype.getValue=function(){return(0,wW.uZ)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,SW.pi)((0,SW.pi)({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:m$})},t.prototype.renderInner=function(e){this.renderTrackShape(e),this.renderThumbShape(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.renderTrackShape=function(e){var t=this.cfg,n=t.trackLen,i=t.theme,r=void 0===i?{default:{}}:i,o=(0,wW.b$)({},m$,r).default,a=o.lineCap,s=o.trackColor,l=o.size,c=(0,wW.U2)(this.cfg,"size",l),u=this.get("isHorizontal")?{x1:0+c/2,y1:c/2,x2:n-c/2,y2:c/2,lineWidth:c,stroke:s,lineCap:a}:{x1:c/2,y1:0+c/2,x2:c/2,y2:n-c/2,lineWidth:c,stroke:s,lineCap:a};return this.addShape(e,{id:this.getElementId("track"),name:"track",type:"line",attrs:u})},t.prototype.renderThumbShape=function(e){var t=this.cfg,n=t.thumbOffset,i=t.thumbLen,r=t.theme,o=(0,wW.b$)({},m$,r).default,a=o.size,s=o.lineCap,l=o.thumbColor,c=(0,wW.U2)(this.cfg,"size",a),u=this.get("isHorizontal")?{x1:n+c/2,y1:c/2,x2:n+i-c/2,y2:c/2,lineWidth:c,stroke:l,lineCap:s,cursor:"default"}:{x1:c/2,y1:n+c/2,x2:c/2,y2:n+i-c/2,lineWidth:c,stroke:l,lineCap:s,cursor:"default"};return this.addShape(e,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:u})},t.prototype.bindEvents=function(){var e=this.get("group");e.on("mousedown",this.onStartEvent(!1)),e.on("mouseup",this.onMouseUp),e.on("touchstart",this.onStartEvent(!0)),e.on("touchend",this.onMouseUp),e.findById(this.getElementId("track")).on("click",this.onTrackClick);var t=e.findById(this.getElementId("thumb"));t.on("mouseover",this.onThumbMouseOver),t.on("mouseout",this.onThumbMouseOut)},t.prototype.getContainerDOM=function(){var e=this.get("container"),t=e&&e.get("canvas");return t&&t.get("container")},t.prototype.validateRange=function(e){var t=this.cfg,n=t.thumbLen,i=t.trackLen,r=e;return e+n>i?r=i-n:e+n<n&&(r=0),r},t.prototype.draw=function(){var e=this.get("container"),t=e&&e.get("canvas");t&&t.draw()},t.prototype.updateThumbOffset=function(e){var t=this.cfg,n=t.thumbOffset,i=t.isHorizontal,r=t.thumbLen,o=t.size,a=this.validateRange(e);if(a!==n){var s=this.getElementByLocalId("thumb");i?s.attr({x1:a+o/2,x2:a+r-o/2}):s.attr({y1:a+o/2,y2:a+r-o/2}),this.emitOffsetChange(a)}},t.prototype.emitOffsetChange=function(e){var t=this.cfg,n=t.thumbOffset,i=t.trackLen,r=t.thumbLen;this.cfg.thumbOffset=e,this.emit("scrollchange",{thumbOffset:e,ratio:(0,wW.uZ)(e/(i-r),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:e})},t}(sY),_$=lq,b$=uq,C$=Iq,S$=Tq,w$=Fq,k$=Hq,x$=Qq;function E$(e){return 1===Array.from(new Set(e)).length}function T$(e){return((0,wW.VV)(e)+(0,wW.Fp)(e))/2}function N$(e,t,n,i){return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}}function I$(e,t,n,i,r,o){void 0===o&&(o=0);var a=N$(e,t,n,i),s=N$(e,t,n,r),l=N$(e,t,o,i),c=N$(e,t,o,r);if(r-i===2*Math.PI){var u=N$(e,t,n,i+Math.PI),d=N$(e,t,o,i+Math.PI),h=[["M",a.x,a.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,s.x,s.y],["M",l.x,l.y]];return o&&(h.push(["A",o,o,0,1,0,d.x,d.y]),h.push(["A",o,o,0,1,0,c.x,c.y])),h.push(["M",a.x,a.y]),h.push(["Z"]),h}var f=r-i<=Math.PI?0:1,p=[["M",a.x,a.y],["A",n,n,0,f,1,s.x,s.y],["L",c.x,c.y]];return o&&p.push(["A",o,o,0,f,0,l.x,l.y]),p.push(["L",a.x,a.y]),p.push(["Z"]),p}function D$(e,t,n,i,r){var o=N$(e,t,n,i),a=N$(e,t,n,r);if((0,wW.vQ)(r-i,2*Math.PI)){var s=N$(e,t,n,i+Math.PI);return[["M",o.x,o.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,1,o.x,o.y],["A",n,n,0,1,0,s.x,s.y],["A",n,n,0,1,0,o.x,o.y],["Z"]]}var l=r-i<=Math.PI?0:1;return[["M",o.x,o.y],["A",n,n,0,l,1,a.x,a.y]]}function L$(e,t){var n,i,r=function(e){if((0,wW.xb)(e))return null;var t=e[0].x,n=e[0].x,i=e[0].y,r=e[0].y;return(0,wW.S6)(e,(function(e){t=t>e.x?e.x:t,n=n<e.x?e.x:n,i=i>e.y?e.y:i,r=r<e.y?e.y:r})),{minX:t,maxX:n,minY:i,maxY:r,centerX:(t+n)/2,centerY:(i+r)/2}}(e.points),o=t.startAngle,a=t.endAngle-o;return t.isTransposed?(n=r.maxY*a,i=r.minY*a):(n=r.maxX*a,i=r.minX*a),{startAngle:i+=o,endAngle:n+=o}}function O$(e,t){var n=e.attr(),i=t.attr();return(0,wW.S6)(n,(function(e,t){void 0===i[t]&&(i[t]=void 0)})),i}function R$(e,t,n){var i=Math.min(t,n),r=Math.max(t,n);return e>=i&&e<=r}function A$(e,t){return"object"===typeof e&&t.forEach((function(t){delete e[t]})),e}function M$(e,t,n){var i,r;void 0===t&&(t=[]),void 0===n&&(n=new Map);try{for(var o=(0,SW.XA)(e),a=o.next();!a.done;a=o.next()){var s=a.value;n.has(s)||(t.push(s),n.set(s,!0))}}catch(l){i={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return t}var P$=function(){function e(e,t,n,i){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),this.x=e,this.y=t,this.height=i,this.width=n}return e.fromRange=function(t,n,i,r){return new e(t,n,i-t,r-n)},e.fromObject=function(t){return new e(t.minX,t.minY,t.width,t.height)},Object.defineProperty(e.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height},e.prototype.contains=function(e){return e.minX>=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.clone();return(0,wW.S6)(e,(function(e){n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.width=Math.max(e.maxX,n.maxX)-n.x,n.height=Math.max(e.maxY,n.maxY)-n.y})),n},e.prototype.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.clone();return(0,wW.S6)(e,(function(e){n.x=Math.max(e.x,n.x),n.y=Math.max(e.y,n.y),n.width=Math.min(e.maxX,n.maxX)-n.x,n.height=Math.min(e.maxY,n.maxY)-n.y})),n},e.prototype.cut=function(t,n){var i=t.width,r=t.height;switch(n){case cW.TOP:case cW.TOP_LEFT:case cW.TOP_RIGHT:return e.fromRange(this.minX,this.minY+r,this.maxX,this.maxY);case cW.RIGHT:case cW.RIGHT_TOP:case cW.RIGHT_BOTTOM:return e.fromRange(this.minX,this.minY,this.maxX-i,this.maxY);case cW.BOTTOM:case cW.BOTTOM_LEFT:case cW.BOTTOM_RIGHT:return e.fromRange(this.minX,this.minY,this.maxX,this.maxY-r);case cW.LEFT:case cW.LEFT_TOP:case cW.LEFT_BOTTOM:return e.fromRange(this.minX+i,this.minY,this.maxX,this.maxY);default:return this}},e.prototype.shrink=function(t){var n=(0,SW.CR)(t,4),i=n[0],r=n[1],o=n[2],a=n[3];return new e(this.x+a,this.y+i,this.width-a-r,this.height-i-o)},e.prototype.expand=function(t){var n=(0,SW.CR)(t,4),i=n[0],r=n[1],o=n[2],a=n[3];return new e(this.x-a,this.y-i,this.width+a+r,this.height+i+o)},e.prototype.exceed=function(e){return[Math.max(-this.minY+e.minY,0),Math.max(this.maxX-e.maxX,0),Math.max(this.maxY-e.maxY,0),Math.max(-this.minX+e.minX,0)]},e.prototype.collide=function(e){return this.minX<e.maxX&&this.maxX>e.minX&&this.minY<e.maxY&&this.maxY>e.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY},e}();function Z$(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var t=e.convert({x:0,y:0}),n=e.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))}function F$(e,t){var n=e.getCenter();return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function B$(e,t){var n=e.getCenter();return Math.atan2(t.y-n.y,t.x-n.x)}function H$(e,t){void 0===t&&(t=0);var n,i=e.start,r=e.end,o=e.getWidth(),a=e.getHeight();if(e.isPolar){var s=e.startAngle,l=e.endAngle,c=e.getCenter(),u=e.getRadius();return{type:"path",startState:{path:I$(c.x,c.y,u+t,s,s)},endState:function(e){var n=(l-s)*e+s;return{path:I$(c.x,c.y,u+t,s,n)}},attrs:{path:I$(c.x,c.y,u+t,s,l)}}}return n=e.isTransposed?{height:a+2*t}:{width:o+2*t},{type:"rect",startState:{x:i.x-t,y:r.y-t,width:e.isTransposed?o+2*t:0,height:e.isTransposed?0:a+2*t},endState:n,attrs:{x:i.x-t,y:r.y-t,width:o+2*t,height:a+2*t}}}var z$=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function j$(e,t,n,i){return void 0===t&&(t={}),t.type?t.type:"identity"!==e.type&&MW.includes(n)&&["interval"].includes(i)||e.isCategory?"cat":e.type}function V$(e,t,n){var i=t||[];if((0,wW.hj)(e)||(0,wW.UM)((0,wW.Wx)(i,e))&&(0,wW.xb)(n))return new(WG("identity"))({field:e.toString(),values:[e]});var r=(0,wW.I)(i,e),o=(0,wW.U2)(n,"type",function(e){var t="linear";return z$.test(e)?t="timeCat":(0,wW.HD)(e)&&(t="cat"),t}(r[0]));return new(WG(o))((0,SW.pi)({field:e,values:r},n))}function W$(e){return e.alias||e.field}function U$(e,t,n){var i,r=e.values.length;if(1===r)i=[.5,1];else{var o=0;i=function(e){if(e.isPolar){var t=e.startAngle;return e.endAngle-t===2*Math.PI}return!1}(t)?t.isTransposed?[(o=1/r*(0,wW.U2)(n,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/r]:[o=1/r/2,1-o]}return i}function G$(e){var t=e.values.filter((function(e){return!(0,wW.UM)(e)&&!isNaN(e)}));return Math.max.apply(Math,(0,SW.ev)((0,SW.ev)([],(0,SW.CR)(t),!1),[(0,wW.UM)(e.max)?-1/0:e.max],!1))}function K$(e,t){var n={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?n=function(e){var t,n;switch(e){case cW.TOP:t={x:0,y:1},n={x:1,y:1};break;case cW.RIGHT:t={x:1,y:0},n={x:1,y:1};break;case cW.BOTTOM:t={x:0,y:0},n={x:1,y:0};break;case cW.LEFT:t={x:0,y:0},n={x:0,y:1};break;default:t=n={x:0,y:0}}return{start:t,end:n}}(t):e.isPolar&&(n=function(e){var t,n;return e.isTransposed?(t={x:0,y:0},n={x:1,y:0}):(t={x:0,y:0},n={x:0,y:1}),{start:t,end:n}}(e));var i=n.start,r=n.end;return{start:e.convert(i),end:e.convert(r)}}function Y$(e){var t=e.start,n=e.end;return t.x===n.x}function q$(e,t){var n=e.start,i=e.end;return Y$(e)?(n.y-i.y)*(t.x-n.x)>0?1:-1:(i.x-n.x)*(n.y-t.y)>0?-1:1}function $$(e,t){var n=(0,wW.U2)(e,["components","axis"],{});return(0,wW.b$)({},(0,wW.U2)(n,["common"],{}),(0,wW.b$)({},(0,wW.U2)(n,[t],{})))}function X$(e,t,n){var i=(0,wW.U2)(e,["components","axis"],{});return(0,wW.b$)({},(0,wW.U2)(i,["common","title"],{}),(0,wW.b$)({},(0,wW.U2)(i,[t,"title"],{})),n)}function Q$(e){var t=e.x,n=e.y,i=e.circleCenter,r=n.start>n.end,o=e.isTransposed?e.convert({x:r?0:1,y:0}):e.convert({x:0,y:r?0:1}),a=[o.x-i.x,o.y-i.y],s=[1,0],l=o.y>i.y?DK.EU(a,s):-1*DK.EU(a,s),c=l+(t.end-t.start);return{center:i,radius:Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),startAngle:l,endAngle:c}}function J$(e,t){return(0,wW.jn)(e)?!1!==e&&{}:(0,wW.U2)(e,[t])}function eX(e,t){return(0,wW.U2)(e,"position",t)}function tX(e,t){return(0,wW.U2)(t,["title","text"],W$(e))}var nX=function(){function e(e,t){this.destroyed=!1,this.facets=[],this.view=e,this.cfg=(0,wW.b$)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||(this.container=this.createContainer());var e=this.view.getData();this.facets=this.generateFacets(e)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(e){var t=e.region,n=e.data,i=e.padding,r=void 0===i?this.cfg.padding:i,o=this.view.createView({region:t,padding:r});o.data(n||[]),e.view=o,this.beforeEachView(o,e);var a=this.cfg.eachView;return a&&a(o,e),this.afterEachView(o,e),o},e.prototype.createContainer=function(){return this.view.getLayer(lW.FORE).addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var e=this;return this.facets.map((function(t){return e.facetToView(t)}))},e.prototype.clearFacetViews=function(){var e=this;(0,wW.S6)(this.facets,(function(t){t.view&&(e.view.removeView(t.view),t.view=void 0)}))},e.prototype.parseSpacing=function(){var e=this.view.viewBBox,t=e.width,n=e.height;return this.cfg.spacing.map((function(e,i){return(0,wW.hj)(e)?e/(0===i?t:n):parseFloat(e)/100}))},e.prototype.getFieldValues=function(e,t){var n=[],i={};return(0,wW.S6)(e,(function(e){var r=e[t];(0,wW.UM)(r)||i[r]||(n.push(r),i[r]=!0)})),n},e.prototype.getRegion=function(e,t,n,i){var r=(0,SW.CR)(this.parseSpacing(),2),o=r[0],a=r[1],s=(1+o)/(0===t?1:t)-o,l=(1+a)/(0===e?1:e)-a,c={x:(s+o)*n,y:(l+a)*i};return{start:c,end:{x:c.x+s,y:c.y+l}}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},e.prototype.processAxis=function(e,t){var n=e.getOptions(),i=n.coordinate,r=e.geometries;if("rect"===(0,wW.U2)(i,"type","rect")&&r.length){(0,wW.UM)(n.axes)&&(n.axes={});var o=n.axes,a=(0,SW.CR)(r[0].getXYFields(),2),s=a[0],l=a[1],c=J$(o,s),u=J$(o,l);!1!==c&&(n.axes[s]=this.getXAxisOption(s,o,c,t)),!1!==u&&(n.axes[l]=this.getYAxisOption(l,o,u,t))}},e.prototype.getFacetDataFilter=function(e){return function(t){return(0,wW.yW)(e,(function(e){var n=e.field,i=e.value;return!(!(0,wW.UM)(i)&&n)||t[n]===i}))}},e}(),iX={},rX=function(e,t){iX[(0,wW.vl)(e)]=t},oX=function(){function e(e,t){this.context=e,this.cfg=t,e.addAction(this)}return e.prototype.applyCfg=function(e){(0,wW.f0)(this,e)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}(),aX=oX,sX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.execute=function(){this.callback&&this.callback(this.context)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},t}(aX),lX=sX,cX={};function uX(e){var t=cX[e];return(0,wW.U2)(t,"ActionClass")}function dX(e,t,n){cX[e]={ActionClass:t,cfg:n}}function hX(e,t){var n=new lX(t);return n.callback=e,n.name="callback",n}function fX(e,t){for(var n=[e[0]],i=1,r=e.length;i<r;i+=2){var o=t.convert({x:e[i],y:e[i+1]});n.push(o.x,o.y)}return n}function pX(e,t){var n=t.isTransposed,i=e[1],r=e[6],o=e[7],a=t.convert({x:r,y:o});return["A",i,i,0,0,n?0:1,a.x,a.y]}function gX(e,t,n){for(var i=!!t,r=[],o=0,a=e.length;o<a;o+=2)r.push([e[o],e[o+1]]);var s,l,c,u=function(e,t,n,i){var r,o,a,s,l,c,u,d,h=[],f=!!i;if(f){s=(r=(0,SW.CR)(i,2))[0],l=r[1];for(var p=0,g=e.length;p<g;p++){var v=e[p];s=DK.VV([0,0],s,v),l=DK.Fp([0,0],l,v)}}p=0;for(var m=e.length;p<m;p++)if(v=e[p],0!==p||n)if(p!==m-1||n){o=e[n?p?p-1:m-1:p-1],a=e[n?(p+1)%m:p+1];var y=[0,0];y=DK.lu(y,a,o),y=DK.bA(y,y,t);var _=DK.TE(v,o),b=DK.TE(v,a),C=_+b;0!==C&&(_/=C,b/=C);var S=DK.bA([0,0],y,-_),w=DK.bA([0,0],y,b);u=DK.IH([0,0],v,S),c=DK.IH([0,0],v,w),c=DK.VV([0,0],c,DK.Fp([0,0],a,v)),c=DK.Fp([0,0],c,DK.VV([0,0],a,v)),S=DK.lu([0,0],c,v),S=DK.bA([0,0],S,-_/b),u=DK.IH([0,0],v,S),u=DK.VV([0,0],u,DK.Fp([0,0],o,v)),u=DK.Fp([0,0],u,DK.VV([0,0],o,v)),w=DK.lu([0,0],v,u),w=DK.bA([0,0],w,b/_),c=DK.IH([0,0],v,w),f&&(u=DK.Fp([0,0],u,s),u=DK.VV([0,0],u,l),c=DK.Fp([0,0],c,s),c=DK.VV([0,0],c,l)),h.push(d),h.push(u),d=c}else u=v,h.push(d),h.push(u);else d=v;return n&&h.push(h.shift()),h}(r,.4,i,n),d=r.length,h=[];for(o=0;o<d-1;o++)s=u[2*o],l=u[2*o+1],c=r[o+1],h.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]]);return i&&(s=u[d],l=u[d+1],c=r[0],h.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]])),h}function vX(e,t){return function(e,t){var n=[];if(e.length){n.push(["M",e[0].x,e[0].y]);for(var i=1,r=e.length;i<r;i+=1){var o=e[i];n.push(["L",o.x,o.y])}t&&n.push(["Z"])}return n}(e,t)}function mX(e,t,n){var i=[],r=e[0],o=null;if(e.length<=2)return vX(e,t);for(var a=0,s=e.length;a<s;a++){var l=e[a];o&&o.x===l.x&&o.y===l.y||(i.push(l.x),i.push(l.y),o=l)}var c=gX(i,t,n||[[0,0],[1,1]]);return c.unshift(["M",r.x,r.y]),c}function yX(e,t){var n,i,r,o=[];return(0,wW.S6)(t,(function(a,s){switch(a[0].toLowerCase()){case"m":case"c":case"q":o.push(fX(a,e));break;case"l":n=t[s-1],i=a,r=e.isTransposed,(r?n[n.length-2]===i[1]:n[n.length-1]===i[2])?o=o.concat(function(e,t,n){var i=n.isTransposed,r=n.startAngle,o=n.endAngle,a="a"===e[0].toLowerCase()?{x:e[6],y:e[7]}:{x:e[1],y:e[2]},s={x:t[1],y:t[2]},l=[],c=i?"y":"x",u=Math.abs(s[c]-a[c])*(o-r),d=s[c]>=a[c]?1:0,h=u>Math.PI?1:0,f=n.convert(s),p=F$(n,f);if(p>=.5)if(u===2*Math.PI){var g={x:(s.x+a.x)/2,y:(s.y+a.y)/2},v=n.convert(g);l.push(["A",p,p,0,h,d,v.x,v.y]),l.push(["A",p,p,0,h,d,f.x,f.y])}else l.push(["A",p,p,0,h,d,f.x,f.y]);return l}(n,i,e)):o.push(fX(a,e));break;case"a":o.push(pX(a,e));break;default:o.push(a)}})),function(e){(0,wW.S6)(e,(function(t,n){if("a"===t[0].toLowerCase()){var i=e[n-1],r=e[n+1];r&&"a"===r[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&r&&"l"===r[0].toLowerCase()&&(r[0]="M")}}))}(o),o}var _X=new RegExp("([a-z])[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)","ig"),bX=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*","ig");Math.PI;function CX(e){return Math.abs(e)<1e-6?0:e<0?-1:1}function SX(e,t,n){return(n[0]-e[0])*(t[1]-e[1])===(t[0]-e[0])*(n[1]-e[1])&&Math.min(e[0],t[0])<=n[0]&&n[0]<=Math.max(e[0],t[0])&&Math.min(e[1],t[1])<=n[1]&&n[1]<=Math.max(e[1],t[1])}function wX(e,t,n){var i=!1,r=e.length;if(r<=2)return!1;for(var o=0;o<r;o++){var a=e[o],s=e[(o+1)%r];if(SX(a,s,[t,n]))return!0;CX(a[1]-n)>0!==CX(s[1]-n)>0&&CX(t-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(i=!i)}return i}var kX=function(e,t,n){return e>=t&&e<=n};function xX(e){for(var t=[],n=e.length,i=0;i<n-1;i++){var r=e[i],o=e[i+1];t.push({from:{x:r[0],y:r[1]},to:{x:o[0],y:o[1]}})}if(t.length>1){var a=e[0],s=e[n-1];t.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return t}function EX(e,t){var n=!1;return(0,wW.S6)(e,(function(e){if(function(e,t,n,i){var r=n.x-e.x,o=n.y-e.y,a=t.x-e.x,s=t.y-e.y,l=i.x-n.x,c=i.y-n.y,u=a*c-s*l,d=null;if(u*u>.001*(a*a+s*s)*(l*l+c*c)){var h=(r*c-o*l)/u,f=(r*s-o*a)/u;kX(h,0,1)&&kX(f,0,1)&&(d={x:e.x+h*a,y:e.y+h*s})}return d}(e.from,e.to,t.from,t.to))return n=!0,!1})),n}function TX(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]}));return{minX:Math.min.apply(null,t),maxX:Math.max.apply(null,t),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function NX(e,t){return DX(e.event.target,t)}function IX(e,t){var n=e.getCanvasBBox(),i=n.width,r=n.height;return i>0&&r>0&&(i>=t||r>=t)}function DX(e,t){var n=e.getCanvasBBox();return IX(e,t)?n:null}function LX(e,t){return e.event.maskShapes.map((function(e){return DX(e,t)})).filter((function(e){return!!e}))}function OX(e,t){return IX(e,t)?e.attr("path"):null}function RX(e){var t,n=e.event.target;return n&&(t=n.get("element")),t}function AX(e){var t,n=e.event.target;return n&&(t=n.get("delegateObject")),t}function MX(e){var t=e.event.gEvent;return!(t&&t.fromShape&&t.toShape&&t.fromShape.get("element")===t.toShape.get("element"))}function PX(e){return e&&e.component&&e.component.isList()}function ZX(e){return e&&e.component&&e.component.isSlider()}function FX(e){var t=e.event.target;return t&&"mask"===(null===t||void 0===t?void 0:t.get("name"))||BX(e)}function BX(e){var t;return"multi-mask"===(null===(t=e.event.target)||void 0===t?void 0:t.get("name"))}function HX(e,t){var n=e.event.target;if(BX(e))return function(e,t){if("path"===e.event.target.get("type")){var n=function(e,t){return e.event.maskShapes.map((function(e){return OX(e,t)}))}(e,t);return n.length>0?n.flatMap((function(t){return YX(e.view,t)})):null}var i=LX(e,t);if(i.length>0)return i.flatMap((function(t){return GX(e.view,t)}));return null}(e,t);if("path"===n.get("type")){var i=function(e,t){return OX(e.event.target,t)}(e,t);if(!i)return;return YX(e.view,i)}var r=NX(e,t);return r?GX(e.view,r):null}function zX(e,t,n){if(BX(e))return function(e,t,n){var i=LX(e,n);if(i.length>0)return i.flatMap((function(n){return jX(n,e,t)}));return null}(e,t,n);var i=NX(e,n);return i?jX(i,e,t):null}function jX(e,t,n){var i=t.view,r=JX(i,n,{x:e.x,y:e.y}),o=JX(i,n,{x:e.maxX,y:e.maxY});return GX(n,{minX:r.x,minY:r.y,maxX:o.x,maxY:o.y})}function VX(e){var t=e.geometries,n=[];return(0,wW.S6)(t,(function(e){var t=e.elements;n=n.concat(t)})),e.views&&e.views.length&&(0,wW.S6)(e.views,(function(e){n=n.concat(VX(e))})),n}function WX(e,t){var n=e.geometries,i=[];return(0,wW.S6)(n,(function(e){var n=e.getElementsBy((function(e){return e.hasState(t)}));i=i.concat(n)})),i}function UX(e,t){var n=e.getModel().data;return(0,wW.kJ)(n)?n[0][t]:n[t]}function GX(e,t){var n=VX(e),i=[];return(0,wW.S6)(n,(function(e){var n,r,o=e.shape.getCanvasBBox();n=t,(r=o).minX>n.maxX||r.maxX<n.minX||r.minY>n.maxY||r.maxY<n.minY||i.push(e)})),i}function KX(e){var t=[];return(0,wW.S6)(e,(function(e){if("A"!==e[0])for(var n=1;n<e.length;n+=2)t.push([e[n],e[n+1]]);else{var i=e.length;t.push([e[i-2],e[i-1]])}})),t}function YX(e,t){var n=VX(e),i=KX(t),r=n.filter((function(e){var t,n,r=e.shape;if("path"===r.get("type"))t=KX(r.attr("path"));else{var o=r.getCanvasBBox();t=[[(n=o).minX,n.minY],[n.maxX,n.minY],[n.maxX,n.maxY],[n.minX,n.maxY]]}return function(e,t){if(e.length<2||t.length<2)return!1;var n,i,r=TX(e),o=TX(t);if(n=r,(i=o).minX>n.maxX||i.maxX<n.minX||i.minY>n.maxY||i.maxY<n.minY)return!1;var a=!1;if((0,wW.S6)(t,(function(t){if(wX(e,t[0],t[1]))return a=!0,!1})),a)return!0;if((0,wW.S6)(e,(function(e){if(wX(t,e[0],e[1]))return a=!0,!1})),a)return!0;var s=xX(e),l=xX(t),c=!1;return(0,wW.S6)(l,(function(e){if(EX(s,e))return c=!0,!1})),c}(i,t)}));return r}function qX(e){return e.getComponents().map((function(e){return e.component}))}function $X(e,t){var n=t.x-e.x,i=t.y-e.y;return Math.sqrt(n*n+i*i)}function XX(e,t){return e.x<=t.x&&e.maxX>=t.x&&e.y<=t.y&&e.maxY>t.y}function QX(e){var t=e.parent,n=null;return t&&(n=t.views.filter((function(t){return t!==e}))),n}function JX(e,t,n){var i=function(e,t){return e.getCoordinate().invert(t)}(e,n);return t.getCoordinate().convert(i)}function eQ(e,t,n,i){var r=!1;return(0,wW.S6)(e,(function(e){if(e[n]===t[n]&&e[i]===t[i])return r=!0,!1})),r}function tQ(e,t){var n=e.getScaleByField(t);return!n&&e.views&&(0,wW.S6)(e.views,(function(e){if(n=tQ(e,t))return!1})),n}var nQ=function(){function e(e){this.actions=[],this.event=null,this.cacheMap={},this.view=e}return e.prototype.cache=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length)return this.cacheMap[e[0]];2===e.length&&(this.cacheMap[e[0]]=e[1])},e.prototype.getAction=function(e){return this.actions.find((function(t){return t.name===e}))},e.prototype.addAction=function(e){this.actions.push(e)},e.prototype.removeAction=function(e){var t=this.actions,n=this.actions.indexOf(e);n>=0&&t.splice(n,1)},e.prototype.getCurrentPoint=function(){var e=this.event;return e?e.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(e.clientX,e.clientY):{x:e.x,y:e.y}:null},e.prototype.getCurrentShape=function(){return(0,wW.U2)(this.event,["gEvent","shape"])},e.prototype.isInPlot=function(){var e=this.getCurrentPoint();return!!e&&this.view.isPointInPlot(e)},e.prototype.isInShape=function(e){var t=this.getCurrentShape();return!!t&&t.get("name")===e},e.prototype.isInComponent=function(e){var t=qX(this.view),n=this.getCurrentPoint();return!!n&&!!t.find((function(t){var i=t.getBBox();return e?t.get("name")===e&&XX(i,n):XX(i,n)}))},e.prototype.destroy=function(){(0,wW.S6)(this.actions.slice(),(function(e){e.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}(),iQ=nQ,rQ=function(){function e(e,t){this.view=e,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}();function oQ(e,t,n){var i=e.split(":"),r=i[0],o=t.getAction(r)||function(e,t){var n=cX[e],i=null;return n&&((i=new(0,n.ActionClass)(t,n.cfg)).name=e,i.init()),i}(r,t);if(!o)throw new Error("There is no action named ".concat(r));return{action:o,methodName:i[1],arg:n}}function aQ(e){var t=e.action,n=e.methodName,i=e.arg;if(!t[n])throw new Error("Action(".concat(t.name,") doesn't have a method called ").concat(n));t[n](i)}var sQ="start",lQ="showEnable",cQ="end",uQ="rollback",dQ="processing",hQ=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.callbackCaches={},i.emitCaches={},i.steps=n,i}return(0,SW.ZT)(t,e),t.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},t.prototype.initEvents=function(){var e=this;(0,wW.S6)(this.steps,(function(t,n){(0,wW.S6)(t,(function(t){var i=e.getActionCallback(n,t);i&&e.bindEvent(t.trigger,i)}))}))},t.prototype.clearEvents=function(){var e=this;(0,wW.S6)(this.steps,(function(t,n){(0,wW.S6)(t,(function(t){var i=e.getActionCallback(n,t);i&&e.offEvent(t.trigger,i)}))}))},t.prototype.initContext=function(){var e=this.view,t=new iQ(e);this.context=t;var n=this.steps;(0,wW.S6)(n,(function(e){(0,wW.S6)(e,(function(e){if((0,wW.mf)(e.action))e.actionObject={action:hX(e.action,t),methodName:"execute"};else if((0,wW.HD)(e.action))e.actionObject=oQ(e.action,t,e.arg);else if((0,wW.kJ)(e.action)){var n=e.action,i=(0,wW.kJ)(e.arg)?e.arg:[e.arg];e.actionObject=[],(0,wW.S6)(n,(function(n,r){e.actionObject.push(oQ(n,t,i[r]))}))}}))}))},t.prototype.isAllowStep=function(e){var t=this.currentStepName,n=this.steps;if(t===e)return!0;if(e===lQ)return!0;if(e===dQ)return t===sQ;if(e===sQ)return t!==dQ;if(e===cQ)return t===dQ||t===sQ;if(e===uQ){if(n[cQ])return t===cQ;if(t===sQ)return!0}return!1},t.prototype.isAllowExecute=function(e,t){if(this.isAllowStep(e)){var n=this.getKey(e,t);return(!t.once||!this.emitCaches[n])&&(!t.isEnable||t.isEnable(this.context))}return!1},t.prototype.enterStep=function(e){this.currentStepName=e,this.emitCaches={}},t.prototype.afterExecute=function(e,t){e!==lQ&&this.currentStepName!==e&&this.enterStep(e);var n=this.getKey(e,t);this.emitCaches[n]=!0},t.prototype.getKey=function(e,t){return e+t.trigger+t.action},t.prototype.getActionCallback=function(e,t){var n=this,i=this.context,r=this.callbackCaches,o=t.actionObject;if(t.action&&o){var a=this.getKey(e,t);if(!r[a]){var s=function(r){i.event=r,n.isAllowExecute(e,t)?((0,wW.kJ)(o)?(0,wW.S6)(o,(function(e){i.event=r,aQ(e)})):(i.event=r,aQ(o)),n.afterExecute(e,t),t.callback&&(i.event=r,t.callback(i))):i.event=null};t.debounce?r[a]=(0,wW.Ds)(s,t.debounce.wait,t.debounce.immediate):t.throttle?r[a]=(0,wW.P2)(s,t.throttle.wait,{leading:t.throttle.leading,trailing:t.throttle.trailing}):r[a]=s}return r[a]}return null},t.prototype.bindEvent=function(e,t){var n=e.split(":");"window"===n[0]?window.addEventListener(n[1],t):"document"===n[0]?document.addEventListener(n[1],t):this.view.on(e,t)},t.prototype.offEvent=function(e,t){var n=e.split(":");"window"===n[0]?window.removeEventListener(n[1],t):"document"===n[0]?document.removeEventListener(n[1],t):this.view.off(e,t)},t}(rQ),fQ=hQ,pQ={};function gQ(e,t){pQ[(0,wW.vl)(e)]=t}function vQ(e,t,n){var i=function(e){return pQ[(0,wW.vl)(e)]}(e);if(!i)return null;if((0,wW.PO)(i)){var r=(0,wW.CD)((0,wW.d9)(i),n);return new fQ(t,r)}return new i(t,n)}function mQ(e){var t,n={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},i=function(e){return{title:{autoRotate:!0,position:"center",spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily},iconStyle:{fill:e.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0}}(e),r=function(e){return{title:null,marker:{symbol:"circle",spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding}}(e);return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:"auto",fontFamily:e.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(e){var t=e.geometry.coordinate;if(t.isPolar&&t.isTransposed){var i=L$(e.getModel(),t),r=(i.startAngle+i.endAngle)/2,o=7.5*Math.cos(r),a=7.5*Math.sin(r);return{matrix:xK.vs(null,[["t",o,a]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:(0,SW.pi)((0,SW.pi)({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,SW.pi)((0,SW.pi)({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,SW.pi)((0,SW.pi)({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,SW.pi)((0,SW.pi)({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,SW.pi)((0,SW.pi)({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,SW.pi)((0,SW.pi)({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,SW.pi)((0,SW.pi)({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,SW.pi)((0,SW.pi)({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:i,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,wW.b$)({},i.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,wW.b$)({},i.grid,{line:{type:"circle"}})}},legend:{common:r,right:{layout:"vertical",padding:e.legendVerticalPadding},left:{layout:"vertical",padding:e.legendVerticalPadding},top:{layout:"horizontal",padding:e.legendHorizontalPadding},bottom:{layout:"horizontal",padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:r.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(t={},t["".concat(zq)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:"".concat(e.tooltipContainerBorderRadius,"px"),color:e.tooltipTextFillColor,fontSize:"".concat(e.tooltipTextFontSize,"px"),fontFamily:e.fontFamily,lineHeight:"".concat(e.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},t["".concat(jq)]={marginBottom:"12px",marginTop:"12px"},t["".concat(Vq)]={margin:0,listStyleType:"none",padding:0},t["".concat(Wq)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},t["".concat(Uq)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},t["".concat(Gq)]={display:"inline-block",float:"right",marginLeft:"30px"},t)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:"start",fontFamily:e.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}var yQ="#000",_Q="#595959",bQ="#8C8C8C",CQ="#BFBFBF",SQ="#D9D9D9",wQ="#F0F0F0",kQ="#FFFFFF",xQ="#D9D9D9",EQ=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],TQ=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],NQ=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],IQ=function(e){void 0===e&&(e={});var t=e.paletteQualitative10,n=void 0===t?EQ:t,i=e.paletteQualitative20,r=void 0===i?TQ:i,o=e.brandColor,a=void 0===o?n[0]:o,s={backgroundColor:"transparent",brandColor:a,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:r,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:NQ,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:CQ,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:_Q,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:xQ,axisTickLineBorderColor:CQ,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:SQ,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:bQ,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:SQ,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:bQ,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:a,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:_Q,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:yQ,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:yQ,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:bQ,legendPageNavigatorTextFontSize:12,sliderRailFillColor:SQ,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:bQ,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:wQ,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:CQ,annotationArcBorderColor:SQ,annotationArcBorder:1,annotationLineBorderColor:CQ,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:_Q,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:yQ,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:CQ,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:_Q,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:_Q,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:kQ,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:_Q,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:kQ,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:CQ,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:a,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:kQ,pointBorderOpacity:1,pointActiveBorderColor:yQ,pointSelectedBorder:2,pointSelectedBorderColor:yQ,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:a,hollowPointBorderOpacity:.95,hollowPointFillColor:kQ,hollowPointActiveBorder:1,hollowPointActiveBorderColor:yQ,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:yQ,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:a,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:a,areaFillOpacity:.25,areaActiveFillColor:a,areaActiveFillOpacity:.5,areaSelectedFillColor:a,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:a,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:yQ,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:yQ,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:a,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:yQ,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:yQ,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:a,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:kQ,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:yQ,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:yQ,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return(0,SW.pi)((0,SW.pi)({},s),e)};IQ();function DQ(e){var t=e.styleSheet,n=void 0===t?{}:t,i=(0,SW._T)(e,["styleSheet"]),r=IQ(n);return(0,wW.b$)({},mQ(r),i)}var LQ={default:DQ({})};function OQ(e){return(0,wW.U2)(LQ,(0,wW.vl)(e),LQ.default)}function RQ(e,t,n){var i=n.translate(e),r=n.translate(t);return(0,wW.vQ)(i,r)}function AQ(e,t,n){var i=n.coordinate,r=n.getYScale(),o=r.field,a=i.invert(t),s=r.invert(a.y);return(0,wW.sE)(e,(function(e){var t=e._origin;return t[o][0]<=s&&t[o][1]>=s}))||e[e.length-1]}var MQ=(0,wW.HP)((function(e){if(e.isCategory)return 1;for(var t=e.values,n=t.length,i=e.translate(t[0]),r=i,o=0;o<n;o++){var a=t[o],s=e.translate(a);s<i&&(i=s),s>r&&(r=s)}return(r-i)/(n-1)}));function PQ(e){var t,n,i,r=function(e){var t=(0,wW.VO)(e.attributes);return(0,wW.hX)(t,(function(e){return(0,wW.FX)(MW,e.type)}))}(e);try{for(var o=(0,SW.XA)(r),a=o.next();!a.done;a=o.next()){var s=a.value,l=s.getScale(s.type);if(l&&l.isLinear)if("cat"!==j$(l,(0,wW.U2)(e.scaleDefs,l.field),s.type,e.type)){i=l;break}}}catch(d){t={error:d}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}var c=e.getXScale(),u=e.getYScale();return i||u||c}function ZQ(e,t,n){if(0===t.length)return null;var i=n.type,r=n.getXScale(),o=n.getYScale(),a=r.field,s=o.field,l=null;if("heatmap"===i||"point"===i){for(var c=n.coordinate.invert(e),u=r.invert(c.x),d=o.invert(c.y),h=1/0,f=0;f<t.length;f++){var p=t[f],g=p._origin,v=Math.pow(g[a]-u,2)+Math.pow(g[s]-d,2);v<h&&(h=v,l=p)}return l}var m=t[0],y=t[t.length-1],_=function(e,t){var n=t.coordinate,i=t.getXScale(),r=i.range,o=r[r.length-1],a=r[0],s=n.invert(e).x;return n.isPolar&&s>(1+o)/2&&(s=a),i.translate(i.invert(s))}(e,n),b=m._origin[a],C=m._origin[s],S=y._origin[a],w=o.isLinear&&(0,wW.kJ)(C);if((0,wW.kJ)(b)){for(f=0;f<t.length;f++){g=(I=t[f])._origin;if(r.translate(g[a][0])<=_&&r.translate(g[a][1])>=_){if(!w){l=I;break}(0,wW.kJ)(l)||(l=[]),l.push(I)}}(0,wW.kJ)(l)&&(l=AQ(l,e,n))}else{var k=void 0;if(r.isLinear||"timeCat"===r.type){if((_>r.translate(S)||_<r.translate(b))&&(_>r.max||_<r.min))return null;for(var x=0,E=t.length-1,T=void 0;x<=E;){var N=t[T=Math.floor((x+E)/2)]._origin[a];if(RQ(N,_,r))return t[T];r.translate(N)<=r.translate(_)?(x=T+1,y=t[T],k=t[T+1]):(0===E&&(y=t[0]),E=T-1)}}else{for(f=0;f<t.length;f++){var I;if(RQ((g=(I=t[f])._origin)[a],_,r)){if(!w){l=I;break}(0,wW.kJ)(l)||(l=[]),l.push(I)}else r.translate(g[a])<=_&&(y=I,k=t[f+1])}(0,wW.kJ)(l)&&(l=AQ(l,e,n))}y&&k&&Math.abs(r.translate(y._origin[a])-_)>Math.abs(r.translate(k._origin[a])-_)&&(y=k)}var D=MQ(n.getXScale());return!l&&Math.abs(r.translate(y._origin[a])-_)<=D/2&&(l=y),l}function FQ(e,t,n,i){var r,o;void 0===n&&(n=""),void 0===i&&(i=!1);var a,s,l=e._origin,c=function(e,t,n){var i=t.getAttribute("position").getFields(),r=t.scales,o=(0,wW.mf)(n)||!n?i[0]:n,a=r[o],s=a?a.getText(e[o]):e[o]||o;return(0,wW.mf)(n)?n(s,e):s}(l,t,n),u=t.tooltipOption,d=t.theme.defaultColor,h=[];function f(t,n){if(i||!(0,wW.UM)(n)&&""!==n){var r={title:c,data:l,mappingData:e,name:t,value:n,color:e.color||d,marker:!0};h.push(r)}}if((0,wW.Kn)(u)){var p=u.fields,g=u.callback;if(g){var v=p.map((function(t){return e._origin[t]})),m=g.apply(void 0,(0,SW.ev)([],(0,SW.CR)(v),!1)),y=(0,SW.pi)({data:e._origin,mappingData:e,title:c,color:e.color||d,marker:!0},m);h.push(y)}else{var _=t.scales;try{for(var b=(0,SW.XA)(p),C=b.next();!C.done;C=b.next()){var S=C.value;if(!(0,wW.UM)(l[S])){var w=_[S];f(a=W$(w),s=w.getText(l[S]))}}}catch(x){r={error:x}}finally{try{C&&!C.done&&(o=b.return)&&o.call(b)}finally{if(r)throw r.error}}}}else{var k=PQ(t);s=function(e,t){var n=e[t.field];return(0,wW.kJ)(n)?n.map((function(e){return t.getText(e)})).join("-"):t.getText(n)}(l,k),a=function(e,t){var n,i=t.getGroupScales();if(i.length&&(n=i[0]),n){var r=n.field;return n.getText(e[r])}return W$(PQ(t))}(l,t),f(a,s)}return h}function BQ(e,t,n,i){var r,o,a=i.showNil,s=[],l=e.dataArray;if(!(0,wW.xb)(l)){e.sort(l);try{for(var c=(0,SW.XA)(l),u=c.next();!u.done;u=c.next()){var d=ZQ(t,u.value,e);if(d){var h=e.getElementId(d),f=e.elementsMap[h];if("heatmap"===e.type||f.visible){var p=FQ(d,e,n,a);p.length&&s.push(p)}}}}catch(g){r={error:g}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}}return s}function HQ(e,t,n,i){var r=i.showNil,o=[],a=e.container.getShape(t.x,t.y);if(a&&a.get("visible")&&a.get("origin")){var s=FQ(a.get("origin").mappingData,e,n,r);s.length&&o.push(s)}return o}function zQ(e,t,n){var i,r,o=[],a=e.geometries,s=n.shared,l=n.title,c=n.reversed;try{for(var u=(0,SW.XA)(a),d=u.next();!d.done;d=u.next()){var h=d.value;if(h.visible&&!1!==h.tooltipOption){var f=h.type,p=void 0;(p=["point","edge","polygon"].includes(f)?HQ(h,t,l,n):["area","line","path","heatmap"].includes(f)||!1!==s?BQ(h,t,l,n):HQ(h,t,l,n)).length&&(c&&p.reverse(),o.push(p))}}}catch(g){i={error:g}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}return o}function jQ(e){void 0===e&&(e=0);var t=(0,wW.kJ)(e)?e:[e];switch(t.length){case 0:t=[0,0,0,0];break;case 1:t=new Array(4).fill(t[0]);break;case 2:t=(0,SW.ev)((0,SW.ev)([],(0,SW.CR)(t),!1),(0,SW.CR)(t),!1);break;case 3:t=(0,SW.ev)((0,SW.ev)([],(0,SW.CR)(t),!1),[t[1]],!1);break;default:t=t.slice(0,4)}return t}var VQ={};function WQ(e,t){VQ[e]=t}var UQ=function(){function e(e){this.option=this.wrapperOption(e)}return e.prototype.update=function(e){return this.option=this.wrapperOption(e),this},e.prototype.hasAction=function(e){var t=this.option.actions;return(0,wW.G)(t,(function(t){return t[0]===e}))},e.prototype.create=function(e,t){var n=this.option,i=n.type,r=n.cfg,o="theta"===i,a=(0,SW.pi)({start:e,end:t},r),s=function(e){return MK[e.toLowerCase()]}(o?"polar":i);return this.coordinate=new s(a),this.coordinate.type=i,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},e.prototype.adjust=function(e,t){return this.coordinate.update({start:e,end:t}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},e.prototype.rotate=function(e){return this.option.actions.push(["rotate",e]),this},e.prototype.reflect=function(e){return this.option.actions.push(["reflect",e]),this},e.prototype.scale=function(e,t){return this.option.actions.push(["scale",e,t]),this},e.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},e.prototype.getOption=function(){return this.option},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.wrapperOption=function(e){return(0,SW.pi)({type:"rect",actions:[],cfg:{}},e)},e.prototype.execActions=function(e){var t=this,n=this.option.actions;(0,wW.S6)(n,(function(n){var i,r=(0,SW.CR)(n),o=r[0],a=r.slice(1);(!!(0,wW.UM)(e)||e.includes(o))&&(i=t.coordinate)[o].apply(i,(0,SW.ev)([],(0,SW.CR)(a),!1))}))},e}(),GQ=UQ,KQ=function(){function e(e,t,n){this.view=e,this.gEvent=t,this.data=n,this.type=t.type}return e.fromData=function(t,n,i){return new e(t,new GW.Event(n,{}),i)},Object.defineProperty(e.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},e.prototype.clone=function(){return new e(this.view,this.gEvent,this.data)},e}(),YQ=KQ;function qQ(e){var t=e.getController("axis"),n=e.getController("legend"),i=e.getController("annotation");[t,e.getController("slider"),e.getController("scrollbar"),n,i].forEach((function(e){e&&e.layout()}))}var $Q=function(){function e(){this.scales=new Map,this.syncScales=new Map}return e.prototype.createScale=function(e,t,n,i){var r=n,o=this.getScaleMeta(i);if(0===t.length&&o){var a=o.scale,s={type:a.type};a.isCategory&&(s.values=a.values),r=(0,wW.b$)(s,o.scaleDef,n)}var l=V$(e,t,r);return this.cacheScale(l,n,i),l},e.prototype.sync=function(e,t){var n=this;this.syncScales.forEach((function(i,r){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,s=[];(0,wW.S6)(i,(function(e){var t=n.getScale(e);a=(0,wW.hj)(t.max)?Math.max(a,t.max):a,o=(0,wW.hj)(t.min)?Math.min(o,t.min):o,(0,wW.S6)(t.values,(function(e){s.includes(e)||s.push(e)}))})),(0,wW.S6)(i,(function(i){var r=n.getScale(i);if(r.isContinuous)r.change({min:o,max:a,values:s});else if(r.isCategory){var l=r.range,c=n.getScaleMeta(i);s&&!(0,wW.U2)(c,["scaleDef","range"])&&(l=U$((0,wW.b$)({},r,{values:s}),e,t)),r.change({values:s,range:l})}}))}))},e.prototype.cacheScale=function(e,t,n){var i=this.getScaleMeta(n);i&&i.scale.type===e.type?(!function(e,t){if("identity"!==e.type&&"identity"!==t.type){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);e.change(n)}}(i.scale,e),i.scaleDef=t):(i={key:n,scale:e,scaleDef:t},this.scales.set(n,i));var r=this.getSyncKey(i);if(i.syncKey=r,this.removeFromSyncScales(n),r){var o=this.syncScales.get(r);o||(o=[],this.syncScales.set(r,o)),o.push(n)}},e.prototype.getScale=function(e){var t=this.getScaleMeta(e);if(!t){var n=(0,wW.Z$)(e.split("-")),i=this.syncScales.get(n);i&&i.length&&(t=this.getScaleMeta(i[0]))}return t&&t.scale},e.prototype.deleteScale=function(e){var t=this.getScaleMeta(e);if(t){var n=t.syncKey,i=this.syncScales.get(n);if(i&&i.length){var r=i.indexOf(e);-1!==r&&i.splice(r,1)}}this.scales.delete(e)},e.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},e.prototype.removeFromSyncScales=function(e){var t=this;this.syncScales.forEach((function(n,i){var r=n.indexOf(e);if(-1!==r)return n.splice(r,1),0===n.length&&t.syncScales.delete(i),!1}))},e.prototype.getSyncKey=function(e){var t=e.scale,n=e.scaleDef,i=t.field,r=(0,wW.U2)(n,["sync"]);return!0===r?i:!1===r?void 0:r},e.prototype.getScaleMeta=function(e){return this.scales.get(e)},e}(),XQ=function(){function e(e,t,n,i){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),this.top=e,this.right=t,this.bottom=n,this.left=i}return e.instance=function(t,n,i,r){return void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),new e(t,n,i,r)},e.prototype.max=function(e){var t=(0,SW.CR)(e,4),n=t[0],i=t[1],r=t[2],o=t[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,i),this.bottom=Math.max(this.bottom,r),this.left=Math.max(this.left,o),this},e.prototype.shrink=function(e){var t=(0,SW.CR)(e,4),n=t[0],i=t[1],r=t[2],o=t[3];return this.top+=n,this.right+=i,this.bottom+=r,this.left+=o,this},e.prototype.inc=function(e,t){var n=e.width,i=e.height;switch(t){case cW.TOP:case cW.TOP_LEFT:case cW.TOP_RIGHT:this.top+=i;break;case cW.RIGHT:case cW.RIGHT_TOP:case cW.RIGHT_BOTTOM:this.right+=n;break;case cW.BOTTOM:case cW.BOTTOM_LEFT:case cW.BOTTOM_RIGHT:this.bottom+=i;break;case cW.LEFT:case cW.LEFT_TOP:case cW.LEFT_BOTTOM:this.left+=n}return this},e.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},e.prototype.clone=function(){return new(e.bind.apply(e,(0,SW.ev)([void 0],(0,SW.CR)(this.getPadding()),!1)))},e}();function QQ(e){var t=e.padding;if(!function(e){return!(0,wW.hj)(e)&&!(0,wW.kJ)(e)}(t))return new(XQ.bind.apply(XQ,(0,SW.ev)([void 0],(0,SW.CR)(jQ(t)),!1)));var n=e.viewBBox,i=new XQ,r=[],o=[],a=[];return(0,wW.S6)(e.getComponents(),(function(e){var t=e.type;t===uW.AXIS?r.push(e):[uW.LEGEND,uW.SLIDER,uW.SCROLLBAR].includes(t)?o.push(e):t!==uW.GRID&&t!==uW.TOOLTIP&&a.push(e)})),(0,wW.S6)(r,(function(e){var t=e.component.getLayoutBBox(),r=new P$(t.x,t.y,t.width,t.height).exceed(n);i.max(r)})),(0,wW.S6)(o,(function(e){var t=e.component,n=e.direction,r=t.getLayoutBBox(),o=t.get("padding"),a=new P$(r.x,r.y,r.width,r.height).expand(o);i.inc(a,n)})),(0,wW.S6)(a,(function(e){var t=e.component,n=e.direction,r=t.getLayoutBBox(),o=new P$(r.x,r.y,r.width,r.height);i.inc(o,n)})),i}function JQ(e,t,n){var i=n.instance();t.forEach((function(e){e.autoPadding=i.max(e.autoPadding.getPadding())}))}var eJ=function(e){function t(t){var n=e.call(this,{visible:t.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Object.keys(VQ),n.scalePool=new $Q,n.layoutFunc=qQ,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(e){var t=e.name;if(!t.includes(":")){var i=n.createViewEvent(e);n.doPlotEvent(i),n.emit(t,i)}},n.onDelegateEvents=function(e){var t=e.name;if(t.includes(":")){var i=n.createViewEvent(e);n.emit(t,i)}};var i=t.id,r=void 0===i?(0,wW.EL)("view"):i,o=t.parent,a=t.canvas,s=t.backgroundGroup,l=t.middleGroup,c=t.foregroundGroup,u=t.region,d=void 0===u?{start:{x:0,y:0},end:{x:1,y:1}}:u,h=t.padding,f=t.appendPadding,p=t.theme,g=t.options,v=t.limitInPlot,m=t.syncViewPadding;return n.parent=o,n.canvas=a,n.backgroundGroup=s,n.middleGroup=l,n.foregroundGroup=c,n.region=d,n.padding=h,n.appendPadding=f,n.options=(0,SW.pi)((0,SW.pi)({},n.options),g),n.limitInPlot=v,n.id=r,n.syncViewPadding=m,n.themeObject=(0,wW.Kn)(p)?(0,wW.b$)({},OQ("default"),DQ(p)):OQ(p),n.init(),n}return(0,SW.ZT)(t,e),t.prototype.setLayout=function(e){this.layoutFunc=e},t.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},t.prototype.render=function(e,t){void 0===e&&(e=!1),this.emit(kW.BEFORE_RENDER,YQ.fromData(this,kW.BEFORE_RENDER,t)),this.paint(e),this.emit(kW.AFTER_RENDER,YQ.fromData(this,kW.AFTER_RENDER,t)),!1===this.visible&&this.changeVisible(!1)},t.prototype.clear=function(){var e=this;this.emit(kW.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var t=this.geometries,n=0;n<t.length;n++)t[n].clear(),t[n].container.remove(!0),t[n].labelsContainer.remove(!0);this.geometries=[];var i=this.controllers;for(n=0;n<i.length;n++)"annotation"===i[n].name?i[n].clear(!0):i[n].clear();this.createdScaleKeys.forEach((function(t,n){e.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var r=this.views;for(n=0;n<r.length;n++)r[n].clear();this.emit(kW.AFTER_CLEAR)},t.prototype.destroy=function(){this.emit(kW.BEFORE_DESTROY);var t=this.interactions;(0,wW.S6)(t,(function(e){e&&e.destroy()})),this.clear();for(var n=this.controllers,i=0,r=n.length;i<r;i++){n[i].destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),e.prototype.destroy.call(this)},t.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t);for(var n=this.geometries,i=0,r=n.length;i<r;i++){n[i].changeVisible(t)}var o=this.controllers;for(i=0,r=o.length;i<r;i++){o[i].changeVisible(t)}return this.foregroundGroup.set("visible",t),this.middleGroup.set("visible",t),this.backgroundGroup.set("visible",t),this.getCanvas().draw(),this},t.prototype.data=function(e){return(0,wW.t8)(this.options,"data",e),this.isDataChanged=!0,this},t.prototype.source=function(e){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(e)},t.prototype.filter=function(e,t){return(0,wW.mf)(t)?((0,wW.t8)(this.options,["filters",e],t),this):(!t&&(0,wW.U2)(this.options,["filters",e])&&delete this.options.filters[e],this)},t.prototype.axis=function(e,t){return(0,wW.jn)(e)?(0,wW.t8)(this.options,["axes"],e):(0,wW.t8)(this.options,["axes",e],t),this},t.prototype.legend=function(e,t){return(0,wW.jn)(e)?(0,wW.t8)(this.options,["legends"],e):(0,wW.HD)(e)?((0,wW.t8)(this.options,["legends",e],t),(0,wW.PO)(t)&&(null===t||void 0===t?void 0:t.selected)&&(0,wW.t8)(this.options,["filters",e],(function(e){var n;return null===(n=null===t||void 0===t?void 0:t.selected[e])||void 0===n||n}))):(0,wW.t8)(this.options,["legends"],e),this},t.prototype.scale=function(e,t){var n=this;return(0,wW.HD)(e)?(0,wW.t8)(this.options,["scales",e],t):(0,wW.Kn)(e)&&(0,wW.S6)(e,(function(e,t){(0,wW.t8)(n.options,["scales",t],e)})),this},t.prototype.tooltip=function(e){return(0,wW.t8)(this.options,"tooltip",e),this},t.prototype.annotation=function(){return this.getController("annotation")},t.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},t.prototype.coordinate=function(e,t){return(0,wW.HD)(e)?(0,wW.t8)(this.options,"coordinate",{type:e,cfg:t}):(0,wW.t8)(this.options,"coordinate",e),this.coordinateController.update(this.options.coordinate),this.coordinateController},t.prototype.coord=function(e,t){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(e,t)},t.prototype.facet=function(e,t){this.facetInstance&&this.facetInstance.destroy();var n=function(e){return iX[(0,wW.vl)(e)]}(e);if(!n)throw new Error("facet '".concat(e,"' is not exist!"));return this.facetInstance=new n(this,(0,SW.pi)((0,SW.pi)({},t),{type:e})),this},t.prototype.animate=function(e){return(0,wW.t8)(this.options,"animate",e),this},t.prototype.updateOptions=function(e){return this.clear(),(0,wW.CD)(this.options,e),this.views.forEach((function(e){return e.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},t.prototype.option=function(e,n){if(t.prototype[e])throw new Error("Can't use built in variable name \"".concat(e,'", please change another one.'));return(0,wW.t8)(this.options,e,n),this},t.prototype.theme=function(e){return this.themeObject=(0,wW.Kn)(e)?(0,wW.b$)({},this.themeObject,DQ(e)):OQ(e),this},t.prototype.interaction=function(e,t){var n=this.interactions[e];n&&n.destroy();var i=vQ(e,this,t);return i&&(i.init(),this.interactions[e]=i),this},t.prototype.removeInteraction=function(e){var t=this.interactions[e];t&&(t.destroy(),this.interactions[e]=void 0)},t.prototype.changeData=function(e){this.isDataChanged=!0,this.emit(kW.BEFORE_CHANGE_DATA,YQ.fromData(this,kW.BEFORE_CHANGE_DATA,null)),this.data(e),this.paint(!0);for(var t=this.views,n=0,i=t.length;n<i;n++){t[n].changeData(e)}this.emit(kW.AFTER_CHANGE_DATA,YQ.fromData(this,kW.AFTER_CHANGE_DATA,null))},t.prototype.createView=function(e){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:(0,wW.d9)(this.options.scales),axes:(0,wW.d9)(this.options.axes),coordinate:(0,wW.d9)(this.coordinateController.getOption()),tooltip:(0,wW.d9)(this.options.tooltip),legends:(0,wW.d9)(this.options.legends),animate:this.options.animate,visible:this.visible},i=new t((0,SW.pi)((0,SW.pi)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:DW}),middleGroup:this.middleGroup.addGroup({zIndex:IW}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:NW}),theme:this.themeObject,padding:this.padding},e),{options:(0,SW.pi)((0,SW.pi)({},n),(0,wW.U2)(e,"options",{}))}));return this.views.push(i),i},t.prototype.view=function(e){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(e)},t.prototype.removeView=function(e){var t=(0,wW.Od)(this.views,(function(t){return t===e}))[0];return t&&t.destroy(),t},t.prototype.getCoordinate=function(){return this.coordinateInstance},t.prototype.getTheme=function(){return this.themeObject},t.prototype.getXScale=function(){var e=this.geometries[0];return e?e.getXScale():null},t.prototype.getYScales=function(){var e={},t=[];return this.geometries.forEach((function(n){var i=n.getYScale(),r=i.field;e[r]||(e[r]=!0,t.push(i))})),t},t.prototype.getScalesByDim=function(e){for(var t=this.geometries,n={},i=0,r=t.length;i<r;i++){var o=t[i],a="x"===e?o.getXScale():o.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},t.prototype.getScale=function(e,t){var n=t||this.getScaleKey(e);return this.getRootView().scalePool.getScale(n)},t.prototype.getScaleByField=function(e,t){return this.getScale(e,t)},t.prototype.getOptions=function(){return this.options},t.prototype.getData=function(){return this.filteredData},t.prototype.getOriginalData=function(){return this.options.data},t.prototype.getPadding=function(){return this.autoPadding.getPadding()},t.prototype.getGeometries=function(){return this.geometries},t.prototype.getElements=function(){return(0,wW.u4)(this.geometries,(function(e,t){return e.concat(t.getElements())}),[])},t.prototype.getElementsBy=function(e){return this.getElements().filter((function(t){return e(t)}))},t.prototype.getLayer=function(e){return e===lW.BG?this.backgroundGroup:e===lW.MID?this.middleGroup:(lW.FORE,this.foregroundGroup)},t.prototype.isPointInPlot=function(e){return function(e,t){var n=!1;if(e)if("theta"===e.type){var i=e.start,r=e.end;n=R$(t.x,i.x,r.x)&&R$(t.y,i.y,r.y)}else{var o=e.invert(t);n=R$(o.x,0,1)&&R$(o.y,0,1)}return n}(this.getCoordinate(),e)},t.prototype.getLegendAttributes=function(){return(0,wW.xH)(this.geometries.map((function(e){return e.getGroupAttributes()})))},t.prototype.getGroupScales=function(){var e=this.geometries.map((function(e){return e.getGroupScales()}));return M$((0,wW.xH)(e))},t.prototype.getCanvas=function(){return this.getRootView().canvas},t.prototype.getRootView=function(){for(var e=this;e.parent;)e=e.parent;return e},t.prototype.getXY=function(e){var t,n,i=this.getCoordinate(),r=this.getScalesByDim("x"),o=this.getScalesByDim("y");if((0,wW.S6)(e,(function(e,i){r[i]&&(t=r[i].scale(e)),o[i]&&(n=o[i].scale(e))})),!(0,wW.UM)(t)&&!(0,wW.UM)(n))return i.convert({x:t,y:n})},t.prototype.getController=function(e){return(0,wW.sE)(this.controllers,(function(t){return t.name===e}))},t.prototype.showTooltip=function(e){var t=this.getController("tooltip");return t&&t.showTooltip(e),this},t.prototype.hideTooltip=function(){var e=this.getController("tooltip");return e&&e.hideTooltip(),this},t.prototype.lockTooltip=function(){var e=this.getController("tooltip");return e&&e.lockTooltip(),this},t.prototype.unlockTooltip=function(){var e=this.getController("tooltip");return e&&e.unlockTooltip(),this},t.prototype.isTooltipLocked=function(){var e=this.getController("tooltip");return e&&e.isTooltipLocked()},t.prototype.getTooltipItems=function(e){var t=this.getController("tooltip");return t?t.getTooltipItems(e):[]},t.prototype.getSnapRecords=function(e){for(var t=this.geometries,n=[],i=0,r=t.length;i<r;i++){var o=t[i],a=o.dataArray;o.sort(a);for(var s=void 0,l=0,c=a.length;l<c;l++){(s=ZQ(e,a[l],o))&&n.push(s)}}var u=this.views;for(i=0,r=u.length;i<r;i++){var d=u[i].getSnapRecords(e);n=n.concat(d)}return n},t.prototype.getComponents=function(){for(var e=[],t=this.controllers,n=0,i=t.length;n<i;n++){var r=t[n];e=e.concat(r.getComponents())}return e},t.prototype.filterData=function(e){var t=this.options.filters;return 0===(0,wW.dp)(t)?e:(0,wW.hX)(e,(function(e,n){return Object.keys(t).every((function(i){return(0,t[i])(e[i],e,n)}))}))},t.prototype.filterFieldData=function(e,t){var n=this.options.filters,i=(0,wW.U2)(n,e);return(0,wW.o8)(i)?t:t.filter((function(t,n){return i(t[e],t,n)}))},t.prototype.adjustCoordinate=function(){var e=this.getCoordinate(),t=e.start,n=e.end,i=this.coordinateBBox.bl,r=this.coordinateBBox.tr;(0,wW.Xy)(t,i)&&(0,wW.Xy)(n,r)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(i,r))},t.prototype.paint=function(e){this.renderDataRecursive(e),this.syncScale(),this.emit(kW.BEFORE_PAINT),this.renderPaddingRecursive(e),this.renderLayoutRecursive(e),this.renderBackgroundStyleShape(),this.renderPaintRecursive(e),this.emit(kW.AFTER_PAINT),this.isDataChanged=!1},t.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var e=(0,wW.U2)(this.themeObject,"background");if(e){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var t=this.viewBBox,n=t.x,i=t.y,r=t.width,o=t.height;this.backgroundStyleRectShape.attr({fill:e,x:n,y:i,width:r,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},t.prototype.renderPaddingRecursive=function(e){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(e),this.autoPadding=QQ(this).shrink(jQ(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate(),this.controllers.find((function(e){return"tooltip"===e.name})).update();for(var t=this.views,n=0,i=t.length;n<i;n++){t[n].renderPaddingRecursive(e)}},t.prototype.renderLayoutRecursive=function(e){var t=!0===this.syncViewPadding?JQ:(0,wW.mf)(this.syncViewPadding)?this.syncViewPadding:void 0;t&&(t(this,this.views,XQ),this.views.forEach((function(e){e.coordinateBBox=e.viewBBox.shrink(e.autoPadding.getPadding()),e.adjustCoordinate()}))),this.doLayout();for(var n=this.views,i=0,r=n.length;i<r;i++){n[i].renderLayoutRecursive(e)}},t.prototype.renderPaintRecursive=function(e){var t=this.middleGroup;if(this.limitInPlot){var n=H$(this.coordinateInstance),i=n.type,r=n.attrs;t.setClip({type:i,attrs:r})}else t.setClip(void 0);this.paintGeometries(e),this.renderComponents(e);for(var o=this.views,a=0,s=o.length;a<s;a++){o[a].renderPaintRecursive(e)}},t.prototype.createScale=function(e,t,n,i){var r=(0,wW.U2)(this.options.scales,[e]),o=(0,SW.pi)((0,SW.pi)({},r),n);return this.parent?this.parent.createScale(e,t,o,i):this.scalePool.createScale(e,t,o,i)},t.prototype.renderDataRecursive=function(e){this.doFilterData(),this.createCoordinate(),this.initGeometries(e),this.renderFacet(e);for(var t=this.views,n=0,i=t.length;n<i;n++){t[n].renderDataRecursive(e)}},t.prototype.calculateViewBBox=function(){var e,t,n,i;if(this.parent){var r=this.parent.coordinateBBox;e=r.x,t=r.y,n=r.width,i=r.height}else e=0,t=0,n=this.canvas.get("width"),i=this.canvas.get("height");var o=this.region,a=o.start,s=o.end,l=new P$(e+n*a.x,t+i*a.y,n*(s.x-a.x),i*(s.y-a.y));this.viewBBox&&this.viewBBox.isEqual(l)||(this.viewBBox=new P$(e+n*a.x,t+i*a.y,n*(s.x-a.x),i*(s.y-a.y))),this.coordinateBBox=this.viewBBox},t.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},t.prototype.initComponentController=function(){for(var e=this.usedControllers,t=0,n=e.length;t<n;t++){var i=e[t],r=VQ[i];r&&this.controllers.push(new r(this))}},t.prototype.createViewEvent=function(e){var t=e.shape,n=e.name,i=t?t.get("origin"):null,r=new YQ(this,e,i);return r.type=n,r},t.prototype.doPlotEvent=function(e){var t=e.type,n={x:e.x,y:e.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(t)){var i=this.isPointInPlot(n),r=e.clone();if(i){var o="plot:".concat(t);r.type=o,this.emit(o,r),"mouseleave"!==t&&"touchend"!==t||(this.isPreMouseInPlot=!1)}"mousemove"===t||"touchmove"===t?(this.isPreMouseInPlot&&!i?("mousemove"===t&&(r.type=EW.MOUSE_LEAVE,this.emit(EW.MOUSE_LEAVE,r)),r.type=EW.LEAVE,this.emit(EW.LEAVE,r)):!this.isPreMouseInPlot&&i&&("mousemove"===t&&(r.type=EW.MOUSE_ENTER,this.emit(EW.MOUSE_ENTER,r)),r.type=EW.ENTER,this.emit(EW.ENTER,r)),this.isPreMouseInPlot=i):"mouseleave"!==t&&"touchend"!==t||this.isPreMouseInPlot&&("mouseleave"===t&&(r.type=EW.MOUSE_LEAVE,this.emit(EW.MOUSE_LEAVE,r)),r.type=EW.LEAVE,this.emit(EW.LEAVE,r),this.isPreMouseInPlot=!1)}},t.prototype.doFilterData=function(){var e=this.options.data;this.filteredData=this.filterData(e)},t.prototype.initGeometries=function(e){this.createOrUpdateScales();for(var t=this.getCoordinate(),n=(0,wW.U2)(this.options,"scales",{}),i=this.geometries,r=0,o=i.length;r<o;r++){var a=i[r];a.scales=this.getGeometryScales();var s={coordinate:t,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};e?a.update(s):a.init(s)}this.adjustScales()},t.prototype.createOrUpdateScales=function(){for(var e=this.getScaleFields(),t=this.getGroupedFields(),n=this.getOptions(),i=n.data,r=n.scales,o=void 0===r?{}:r,a=this.filteredData,s=0,l=e.length;s<l;s++){var c=e[s],u=o[c],d=this.getScaleKey(c);this.createScale(c,t.includes(c)?i:a,u,d),this.createdScaleKeys.set(d,!0)}},t.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},t.prototype.getGeometryScales=function(){for(var e=this.getScaleFields(),t={},n=0;n<e.length;n++){var i=e[n];t[i]=this.getScaleByField(i)}return t},t.prototype.getScaleFields=function(){for(var e=[],t=new Map,n=this.geometries,i=0;i<n.length;i++){M$(n[i].getScaleFields(),e,t)}return e},t.prototype.getGroupedFields=function(){for(var e=[],t=new Map,n=this.geometries,i=0;i<n.length;i++){M$(n[i].getGroupFields(),e,t)}return e},t.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},t.prototype.adjustCategoryScaleRange=function(){var e=this,t=(0,SW.ev)([this.getXScale()],(0,SW.CR)(this.getYScales()),!1).filter((function(e){return!!e})),n=this.getCoordinate(),i=this.options.scales;(0,wW.S6)(t,(function(t){var r=t.field,o=t.values,a=t.isCategory,s=t.isIdentity;(a||s)&&o&&!(0,wW.U2)(i,[r,"range"])&&(t.range=U$(t,n,e.theme))}))},t.prototype.initComponents=function(e){for(var t=this.controllers,n=0;n<t.length;n++){var i=t[n];e?i.update():(i.clear(),i.render())}},t.prototype.doLayout=function(){this.layoutFunc(this)},t.prototype.createCoordinate=function(){var e=this.coordinateBBox.bl,t=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(e,t)},t.prototype.paintGeometries=function(e){for(var t=this.options.animate,n=this.getCoordinate(),i={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},r=this.geometries,o=0;o<r.length;o++){var a=r[o];a.coordinate=n,a.canvasRegion=i,t||a.animate(!1),a.paint(e)}},t.prototype.renderComponents=function(e){for(var t=this.getComponents(),n=0;n<t.length;n++){t[n].component.render()}},t.prototype.renderFacet=function(e){this.facetInstance&&(e?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},t.prototype.initOptions=function(){var e=this,t=this.options,n=t.geometries,i=void 0===n?[]:n,r=t.interactions,o=void 0===r?[]:r,a=t.views,s=void 0===a?[]:a,l=t.annotations,c=void 0===l?[]:l,u=t.coordinate,d=t.events,h=t.facets;this.coordinateController?u&&this.coordinateController.update(u):this.coordinateController=new GQ(u);for(var f=0;f<i.length;f++){var p=i[f];this.createGeometry(p)}for(var g=0;g<o.length;g++){var v=o[g],m=v.type,y=v.cfg;this.interaction(m,y)}for(var _=0;_<s.length;_++){var b=s[_];this.createView(b)}for(var C=this.getController("annotation"),S=0;S<c.length;S++){var w=c[S];C.annotation(w)}d&&(0,wW.S6)(d,(function(t,n){e.on(n,t)})),h&&(0,wW.S6)(h,(function(t){var n=t.type,i=(0,SW._T)(t,["type"]);e.facet(n,i)}))},t.prototype.createGeometry=function(e){var t=e.type,n=e.cfg,i=void 0===n?{}:n;if(this[t]){var r=this[t](i);(0,wW.S6)(e,(function(e,t){(0,wW.mf)(r[t])&&r[t](e)}))}},t.prototype.getScaleKey=function(e){return"".concat(this.id,"-").concat(e)},t}(UW);function tJ(e,t){eJ.prototype[e.toLowerCase()]=function(e){void 0===e&&(e={});var n=(0,SW.pi)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},e),i=new t(n);return this.geometries.push(i),i}}var nJ=function(e){function t(t){var n=this,i=t.container,r=t.width,o=t.height,a=t.autoFit,s=void 0!==a&&a,l=t.padding,c=t.appendPadding,u=t.renderer,d=void 0===u?"canvas":u,h=t.pixelRatio,f=t.localRefresh,p=void 0===f||f,g=t.visible,v=void 0===g||g,m=t.supportCSSTransform,y=void 0!==m&&m,_=t.defaultInteractions,b=void 0===_?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:_,C=t.options,S=t.limitInPlot,w=t.theme,k=t.syncViewPadding,x=(0,wW.HD)(i)?document.getElementById(i):i,E=BW('<div style="position:relative;"></div>');x.appendChild(E);var T=jW(x,s,r,o),N=new(function(e){var t=ZW[e];if(!t)throw new Error("G engine '".concat(e,"' is not exist, please register it at first."));return t}(d).Canvas)((0,SW.pi)({container:E,pixelRatio:h,localRefresh:p,supportCSSTransform:y},T));return(n=e.call(this,{parent:null,canvas:N,backgroundGroup:N.addGroup({zIndex:DW}),middleGroup:N.addGroup({zIndex:IW}),foregroundGroup:N.addGroup({zIndex:NW}),padding:l,appendPadding:c,visible:v,options:C,limitInPlot:S,theme:w,syncViewPadding:k})||this).onResize=(0,wW.Ds)((function(){n.forceFit()}),300),n.ele=x,n.canvas=N,n.width=T.width,n.height=T.height,n.autoFit=s,n.localRefresh=p,n.renderer=d,n.wrapperElement=E,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(b),n}return(0,SW.ZT)(t,e),t.prototype.initDefaultInteractions=function(e){var t=this;(0,wW.S6)(e,(function(e){t.interaction(e)}))},t.prototype.aria=function(e){var t="aria-label";!1===e?this.ele.removeAttribute(t):this.ele.setAttribute(t,e.label)},t.prototype.changeSize=function(e,t){return this.width===e&&this.height===t||(this.emit(kW.BEFORE_CHANGE_SIZE),this.width=e,this.height=t,this.canvas.changeSize(e,t),this.render(!0),this.emit(kW.AFTER_CHANGE_SIZE)),this},t.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),function(e){var t=e.parentNode;t&&t.removeChild(e)}(this.wrapperElement),this.wrapperElement=null},t.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},t.prototype.forceFit=function(){if(!this.destroyed){var e=jW(this.ele,!0,this.width,this.height),t=e.width,n=e.height;this.changeSize(t,n)}},t.prototype.updateCanvasStyle=function(){HW(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},t.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},t.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},t}(eJ),iJ=nJ,rJ=function(){function e(e){this.visible=!0,this.components=[],this.view=e}return e.prototype.clear=function(e){(0,wW.S6)(this.components,(function(e){e.component.destroy()})),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(e){this.visible!==e&&(this.components.forEach((function(t){e?t.component.show():t.component.hide()})),this.visible=e)},e}();var oJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isLocked=!1,t}return(0,SW.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},t.prototype.render=function(){},t.prototype.showTooltip=function(e){if(this.point=e,this.isVisible()){var t=this.view,n=this.getTooltipItems(e);if(n.length){var i=this.getTitle(n),r={x:n[0].x,y:n[0].y};t.emit("tooltip:show",YQ.fromData(t,"tooltip:show",(0,SW.pi)({items:n,title:i},e)));var o=this.getTooltipCfg(),a=o.follow,s=o.showMarkers,l=o.showCrosshairs,c=o.showContent,u=o.marker,d=this.items,h=this.title;if((0,wW.Xy)(h,i)&&(0,wW.Xy)(d,n)?(this.tooltip&&a&&(this.tooltip.update(e),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(t.emit("tooltip:change",YQ.fromData(t,"tooltip:change",(0,SW.pi)({items:n,title:i},e))),((0,wW.mf)(c)?c(n):c)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,wW.CD)({},o,{items:this.getItemsAfterProcess(n),title:i},a?e:{})),this.tooltip.show()),s&&this.renderTooltipMarkers(n,u)),this.items=n,this.title=i,l){var f=(0,wW.U2)(o,["crosshairs","follow"],!1);this.renderCrosshairs(f?e:r,o)}}else this.hideTooltip()}},t.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var e=this.tooltipMarkersGroup;e&&e.hide();var t=this.xCrosshair,n=this.yCrosshair;t&&t.hide(),n&&n.hide();var i=this.tooltip;i&&i.hide(),this.view.emit("tooltip:hide",YQ.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},t.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},t.prototype.unlockTooltip=function(){this.isLocked=!1;var e=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(e.capture)},t.prototype.isTooltipLocked=function(){return this.isLocked},t.prototype.clear=function(){var e=this,t=e.tooltip,n=e.xCrosshair,i=e.yCrosshair,r=e.tooltipMarkersGroup;t&&(t.hide(),t.clear()),n&&n.clear(),i&&i.clear(),r&&r.clear(),(null===t||void 0===t?void 0:t.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},t.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},t.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},t.prototype.changeVisible=function(e){if(this.visible!==e){var t=this,n=t.tooltip,i=t.tooltipMarkersGroup,r=t.xCrosshair,o=t.yCrosshair;e?(n&&n.show(),i&&i.show(),r&&r.show(),o&&o.show()):(n&&n.hide(),i&&i.hide(),r&&r.hide(),o&&o.hide()),this.visible=e}},t.prototype.getTooltipItems=function(e){var t,n,i,r,o,a,s=this.findItemsFromView(this.view,e);if(s.length){s=(0,wW.xH)(s);try{for(var l=(0,SW.XA)(s),c=l.next();!c.done;c=l.next()){var u=c.value;try{for(var d=(i=void 0,(0,SW.XA)(u)),h=d.next();!h.done;h=d.next()){var f=h.value,p=f.mappingData,g=p.x,v=p.y;f.x=(0,wW.kJ)(g)?g[g.length-1]:g,f.y=(0,wW.kJ)(v)?v[v.length-1]:v}}catch(w){i={error:w}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}}catch(k){t={error:k}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}if(!1===this.getTooltipCfg().shared&&s.length>1){var m=s[0],y=Math.abs(e.y-m[0].y);try{for(var _=(0,SW.XA)(s),b=_.next();!b.done;b=_.next()){var C=b.value,S=Math.abs(e.y-C[0].y);S<=y&&(m=C,y=S)}}catch(x){o={error:x}}finally{try{b&&!b.done&&(a=_.return)&&a.call(_)}finally{if(o)throw o.error}}s=[m]}return function(e){for(var t=[],n=function(n){var i=e[n];(0,wW.sE)(t,(function(e){return e.color===i.color&&e.name===i.name&&e.value===i.value&&e.title===i.title}))||t.push(i)},i=0;i<e.length;i++)n(i);return t}((0,wW.xH)(s))}return[]},t.prototype.layout=function(){},t.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var e=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}})}},t.prototype.isCursorEntered=function(e){if(this.tooltip){var t=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(t&&n){var i=t.getBoundingClientRect(),r=i.x,o=i.y,a=i.width,s=i.height;return new P$(r,o,a,s).isPointIn(e)}}return!1},t.prototype.getTooltipCfg=function(){var e=this.view,t=e.getOptions().tooltip,n=this.processCustomContent(t),i=e.getTheme(),r=(0,wW.U2)(i,["components","tooltip"],{}),o=(0,wW.U2)(n,"enterable",r.enterable);return(0,wW.b$)({},r,n,{capture:!(!o&&!this.isLocked)})},t.prototype.processCustomContent=function(e){if((0,wW.jn)(e)||!(0,wW.U2)(e,"customContent"))return e;var t=e.customContent;return(0,SW.pi)((0,SW.pi)({},e),{customContent:function(e,n){var i=t(e,n)||"";return(0,wW.HD)(i)?'<div class="g2-tooltip">'+i+"</div>":i}})},t.prototype.getTitle=function(e){var t=e[0].title||e[0].name;return this.title=t,t},t.prototype.renderTooltip=function(){var e=this.view.getCanvas(),t={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},n=this.getTooltipCfg(),i=new x$((0,SW.pi)((0,SW.pi)({parent:e.get("el").parentNode,region:t},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},t.prototype.renderTooltipMarkers=function(e,t){var n,i,r=this.getTooltipMarkersGroup(),o=this.view.getRootView(),a=o.limitInPlot;try{for(var s=(0,SW.XA)(e),l=s.next();!l.done;l=s.next()){var c=l.value,u=c.x,d=c.y;if(a||(null===r||void 0===r?void 0:r.getClip())){var h=H$(o.getCoordinate()),f=h.type,p=h.attrs;null===r||void 0===r||r.setClip({type:f,attrs:p})}else null===r||void 0===r||r.setClip(void 0);var g=this.view.getTheme(),v=(0,wW.U2)(g,["components","tooltip","marker"],{}),m=(0,SW.pi)((0,SW.pi)({fill:c.color,symbol:"circle",shadowColor:c.color},(0,wW.mf)(t)?(0,SW.pi)((0,SW.pi)({},v),t(c)):t),{x:u,y:d});r.addShape("marker",{attrs:m})}}catch(y){n={error:y}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},t.prototype.renderCrosshairs=function(e,t){var n=(0,wW.U2)(t,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(e,t)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(e,t)):"xy"===n&&(this.renderXCrosshairs(e,t),this.renderYCrosshairs(e,t))},t.prototype.renderXCrosshairs=function(e,t){var n,i,r=this.getViewWithGeometry(this.view).getCoordinate();if(r.isRect)r.isTransposed?(n={x:r.start.x,y:e.y},i={x:r.end.x,y:e.y}):(n={x:e.x,y:r.end.y},i={x:e.x,y:r.start.y});else{var o=B$(r,e),a=r.getCenter(),s=r.getRadius();i=N$(a.x,a.y,s,o),n=a}var l=(0,wW.b$)({start:n,end:i,container:this.getTooltipCrosshairsGroup()},(0,wW.U2)(t,"crosshairs",{}),this.getCrosshairsText("x",e,t));delete l.type;var c=this.xCrosshair;c?c.update(l):(c=new pq(l)).init(),c.render(),c.show(),this.xCrosshair=c},t.prototype.renderYCrosshairs=function(e,t){var n,i,r=this.getViewWithGeometry(this.view).getCoordinate();if(r.isRect){var o=void 0,a=void 0;r.isTransposed?(o={x:e.x,y:r.end.y},a={x:e.x,y:r.start.y}):(o={x:r.start.x,y:e.y},a={x:r.end.x,y:e.y}),n={start:o,end:a},i="Line"}else n={center:r.getCenter(),radius:F$(r,e),startAngle:r.startAngle,endAngle:r.endAngle},i="Circle";delete(n=(0,wW.b$)({container:this.getTooltipCrosshairsGroup()},n,(0,wW.U2)(t,"crosshairs",{}),this.getCrosshairsText("y",e,t))).type;var l=this.yCrosshair;l?r.isRect&&"circle"===l.get("type")||!r.isRect&&"line"===l.get("type")?(l=new s[i](n)).init():l.update(n):(l=new s[i](n)).init(),l.render(),l.show(),this.yCrosshair=l},t.prototype.getCrosshairsText=function(e,t,n){var i=(0,wW.U2)(n,["crosshairs","text"]),r=(0,wW.U2)(n,["crosshairs","follow"]),o=this.items;if(i){var a=this.getViewWithGeometry(this.view),s=o[0],l=a.getXScale(),c=a.getYScales()[0],u=void 0,d=void 0;if(r){var h=this.view.getCoordinate().invert(t);u=l.invert(h.x),d=c.invert(h.y)}else u=s.data[l.field],d=s.data[c.field];var f="x"===e?u:d;return(0,wW.mf)(i)?i=i(e,f,o,t):i.content=f,{text:i}}},t.prototype.getGuideGroup=function(){if(!this.guideGroup){var e=this.view.foregroundGroup;this.guideGroup=e.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},t.prototype.getTooltipMarkersGroup=function(){var e=this.tooltipMarkersGroup;return e&&!e.destroyed?(e.clear(),e.show()):((e=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=e),e},t.prototype.getTooltipCrosshairsGroup=function(){var e=this.tooltipCrosshairsGroup;return e||((e=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=e),e},t.prototype.findItemsFromView=function(e,t){var n,i;if(!1===e.getOptions().tooltip)return[];var r=zQ(e,t,this.getTooltipCfg());try{for(var o=(0,SW.XA)(e.views),a=o.next();!a.done;a=o.next()){var s=a.value;r=r.concat(this.findItemsFromView(s,t))}}catch(l){n={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return r},t.prototype.getViewWithGeometry=function(e){var t=this;return e.geometries.length?e:(0,wW.sE)(e.views,(function(e){return t.getViewWithGeometry(e)}))},t.prototype.getItemsAfterProcess=function(e){var t=this.getTooltipCfg().customItems;return(t||function(e){return e})(e)},t}(rJ),aJ=oJ,sJ={};function lJ(e){return sJ[e.toLowerCase()]}function cJ(e,t){sJ[e.toLowerCase()]=t}var uJ={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},dJ={interval:function(e){return{enter:{animation:e.isRect?e.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:e.isPolar&&e.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},hJ={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(e){var t;return e.isRect?t=e.isTransposed?"grow-in-x":"grow-in-y":(t="grow-in-xy",e.isPolar&&e.isTransposed&&(t="wave-in")),{animation:t}},schema:function(e){return{animation:e.isRect?e.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function fJ(e,t,n){var i=dJ[e];return i&&((0,wW.mf)(i)&&(i=i(t)),i=(0,wW.b$)({},uJ,i),n)?i[n]:i}function pJ(e,t,n){var i=(0,wW.U2)(e.get("origin"),"data",PW),r=t.animation,o=function(e,t){return{delay:(0,wW.mf)(e.delay)?e.delay(t):e.delay,easing:(0,wW.mf)(e.easing)?e.easing(t):e.easing,duration:(0,wW.mf)(e.duration)?e.duration(t):e.duration,callback:e.callback,repeat:e.repeat}}(t,i);if(r){var a=lJ(r);a&&a(e,o,n)}else e.animate(n.toAttrs,o)}var gJ="element-background",vJ=function(e){function t(t){var n=e.call(this,t)||this;n.labelShape=[],n.states=[];var i=t.shapeFactory,r=t.container,o=t.offscreenGroup,a=t.elementIndex,s=t.visible,l=void 0===s||s;return n.shapeFactory=i,n.container=r,n.offscreenGroup=o,n.visible=l,n.elementIndex=a,n}return(0,SW.ZT)(t,e),t.prototype.draw=function(e,t){void 0===t&&(t=!1),this.model=e,this.data=e.data,this.shapeType=this.getShapeType(e),this.drawShape(e,t),!1===this.visible&&this.changeVisible(!1)},t.prototype.update=function(e){var t=this.shapeFactory,n=this.shape;if(n){this.model=e,this.data=e.data,this.shapeType=this.getShapeType(e),this.setShapeInfo(n,e);var i=this.getOffscreenGroup(),r=t.drawShape(this.shapeType,e,i);r.cfg.data=this.data,r.cfg.origin=e,r.cfg.element=this,this.syncShapeStyle(n,r,this.getStates(),this.getAnimateCfg("update"))}},t.prototype.destroy=function(){var t=this.shapeFactory,n=this.shape;if(n){var i=this.getAnimateCfg("leave");i?pJ(n,i,{coordinate:t.coordinate,toAttrs:(0,SW.pi)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,e.prototype.destroy.call(this)},t.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(e){e.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(e){e.hide()})))},t.prototype.setState=function(e,t){var n=this,i=n.states,r=n.shapeFactory,o=n.model,a=n.shape,s=n.shapeType,l=i.indexOf(e);if(t){if(l>-1)return;i.push(e),"active"!==e&&"selected"!==e||null===a||void 0===a||a.toFront()}else{if(-1===l)return;if(i.splice(l,1),"active"===e||"selected"===e){var c=this.geometry,u=c.sortZIndex,d=c.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;u?a.setZIndex(d):a.set("zIndex",d)}}var h=r.drawShape(s,o,this.getOffscreenGroup());i.length?this.syncShapeStyle(a,h,i,null):this.syncShapeStyle(a,h,["reset"],null),h.remove(!0);var f={state:e,stateStatus:t,element:this,target:this.container};this.container.emit("statechange",f),ZK(this.shape,"statechange",f)},t.prototype.clearStates=function(){var e=this,t=this.states;(0,wW.S6)(t,(function(t){e.setState(t,!1)})),this.states=[]},t.prototype.hasState=function(e){return this.states.includes(e)},t.prototype.getStates=function(){return this.states},t.prototype.getData=function(){return this.data},t.prototype.getModel=function(){return this.model},t.prototype.getBBox=function(){var e=this.shape,t=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(n=e.getCanvasBBox()),t&&t.forEach((function(e){var t=e.getCanvasBBox();n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.minX=Math.min(t.minX,n.minX),n.minY=Math.min(t.minY,n.minY),n.maxX=Math.max(t.maxX,n.maxX),n.maxY=Math.max(t.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},t.prototype.getStatesStyle=function(){if(!this.statesStyle){var e=this,t=e.shapeType,n=e.geometry,i=e.shapeFactory,r=n.stateOption,o=i.defaultShapeType,a=i.theme[t]||i.theme[o];this.statesStyle=(0,wW.b$)({},a,r)}return this.statesStyle},t.prototype.getStateStyle=function(e,t){var n=this.getStatesStyle(),i=(0,wW.U2)(n,[e,"style"],{}),r=i[t]||i;return(0,wW.mf)(r)?r(this):r},t.prototype.getAnimateCfg=function(e){var t=this,n=this.animate;if(n){var i=n[e];return i?(0,SW.pi)((0,SW.pi)({},i),{callback:function(){var e;(0,wW.mf)(i.callback)&&i.callback(),null===(e=t.geometry)||void 0===e||e.emit(xW.AFTER_DRAW_ANIMATE)}}):i}return null},t.prototype.drawShape=function(e,t){var n;void 0===t&&(t=!1);var i=this,r=i.shapeFactory,o=i.container,a=i.shapeType;if(this.shape=r.drawShape(a,e,o),this.shape){this.setShapeInfo(this.shape,e);var s=this.shape.cfg.name;s?(0,wW.HD)(s)&&(this.shape.cfg.name=["element",s]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var l=t?"enter":"appear",c=this.getAnimateCfg(l);c&&(null===(n=this.geometry)||void 0===n||n.emit(xW.BEFORE_DRAW_ANIMATE),pJ(this.shape,c,{coordinate:r.coordinate,toAttrs:(0,SW.pi)({},this.shape.attr())}))}},t.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var e=this.container.getGroupBase();this.offscreenGroup=new e({})}return this.offscreenGroup},t.prototype.setShapeInfo=function(e,t){var n=this;(e.cfg.origin=t,e.cfg.element=this,e.isGroup())&&e.get("children").forEach((function(e){n.setShapeInfo(e,t)}))},t.prototype.syncShapeStyle=function(e,t,n,i,r){var o,a=this;if(void 0===n&&(n=[]),void 0===r&&(r=0),e&&t){var s=e.get("clipShape"),l=t.get("clipShape");if(this.syncShapeStyle(s,l,n,i),e.isGroup())for(var c=e.get("children"),u=t.get("children"),d=0;d<c.length;d++)this.syncShapeStyle(c[d],u[d],n,i,r+d);else{if(!(0,wW.xb)(n)&&!(0,wW.Xy)(n,["reset"])){var h=e.get("name");(0,wW.kJ)(h)&&(h=h[1]),(0,wW.S6)(n,(function(e){if(t.get("name")!==gJ){var n=a.getStateStyle(e,h||r);t.attr(n)}}))}var f=O$(e,t);this.animate?i?(null===(o=this.geometry)||void 0===o||o.emit(xW.BEFORE_DRAW_ANIMATE),pJ(e,i,{coordinate:this.shapeFactory.coordinate,toAttrs:f,shapeModel:this.model})):(0,wW.xb)(n)?e.attr(f):(e.stopAnimate(),e.animate(f,{duration:300})):e.attr(f)}}},t.prototype.getShapeType=function(e){var t=(0,wW.U2)(e,"shape");return(0,wW.kJ)(t)?t[0]:t},t}(UW),mJ=vJ,yJ={},_J={};function bJ(e,t){yJ[e.toLowerCase()]=t}function CJ(e,t){_J[e.toLowerCase()]=t}var SJ={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(e,t){var n=this.getShape(e);return n.getPoints?n.getPoints(t):this.getDefaultPoints(t)},getShape:function(e){var t=this[e]||this[this.defaultShapeType];return t.coordinate=this.coordinate,t},getDefaultPoints:function(){return[]},getDefaultStyle:function(e){return(0,wW.U2)(e,[this.defaultShapeType,"default","style"],{})},getMarker:function(e,t){var n=this.getShape(e);if(!n.getMarker){var i=this.defaultShapeType;n=this.getShape(i)}var r=this.theme,o=(0,wW.U2)(r,[e,"default"],{}),a=n.getMarker(t);return(0,wW.b$)({},o,a)},drawShape:function(e,t,n){return this.getShape(e).draw(t,n)}},wJ={coordinate:null,parsePath:function(e){var t=this.coordinate,n=function(e){if(!e)return null;if((0,wW.kJ)(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(e).replace(_X,(function(e,i,r){var o=[],a=i.toLowerCase();if(r.replace(bX,(function(e,t){t&&o.push(+t)})),"m"===a&&o.length>2&&(n.push([i].concat(o.splice(0,2))),a="l",i="m"===i?"l":"L"),"o"===a&&1===o.length&&n.push([i,o[0]]),"r"===a)n.push([i].concat(o));else for(;o.length>=t[a]&&(n.push([i].concat(o.splice(0,t[a]))),t[a]););return""})),n}(e);return n=t.isPolar?yX(t,n):function(e,t){var n=[];return(0,wW.S6)(t,(function(t){switch(t[0].toLowerCase()){case"m":case"l":case"c":n.push(fX(t,e));break;case"a":n.push(pX(t,e));break;default:n.push(t)}})),n}(t,n),n},parsePoint:function(e){return this.coordinate.convert(e)},parsePoints:function(e){var t=this.coordinate;return e.map((function(e){return t.convert(e)}))},draw:function(e,t){}},kJ={};function xJ(e,t){var n=(0,wW.jC)(e),i=(0,SW.pi)((0,SW.pi)((0,SW.pi)({},SJ),t),{geometryType:e});return kJ[n]=i,i}function EJ(e,t,n){var i=(0,wW.jC)(e),r=kJ[i],o=(0,SW.pi)((0,SW.pi)({},wJ),n);return r[t]=o,o}function TJ(e){var t=(0,wW.jC)(e);return kJ[t]}function NJ(e,t){return(0,wW.G)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!(0,wW.Xy)(e[n],t[n])}))}function IJ(e){return(0,wW.kJ)(e)?e:e.split("*")}function DJ(e,t){for(var n=[],i=[],r=[],o=new Map,a=0;a<t.length;a++){var s=t[a];e[s]?i.push(s):n.push(s),o.set(s,!0)}return Object.keys(e).forEach((function(e){o.has(e)||r.push(e)})),{added:n,updated:i,removed:r}}var LJ=function(e){function t(t){var n=e.call(this,t)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var i=t.container,r=t.labelsContainer,o=t.coordinate,a=t.data,s=t.sortable,l=void 0!==s&&s,c=t.visible,u=void 0===c||c,d=t.theme,h=t.scales,f=void 0===h?{}:h,p=t.scaleDefs,g=void 0===p?{}:p,v=t.intervalPadding,m=t.dodgePadding,y=t.maxColumnWidth,_=t.minColumnWidth,b=t.columnWidthRatio,C=t.roseWidthRatio,S=t.multiplePieWidthRatio,w=t.zIndexReversed,k=t.sortZIndex,x=t.useDeferredLabel;return n.container=i,n.labelsContainer=r,n.coordinate=o,n.data=a,n.sortable=l,n.visible=u,n.userTheme=d,n.scales=f,n.scaleDefs=g,n.intervalPadding=v,n.dodgePadding=m,n.maxColumnWidth=y,n.minColumnWidth=_,n.columnWidthRatio=b,n.roseWidthRatio=C,n.multiplePieWidthRatio=S,n.zIndexReversed=w,n.sortZIndex=k,n.useDeferredLabel=x?"number"===typeof x?x:1/0:null,n}return(0,SW.ZT)(t,e),t.prototype.position=function(e){var t=e;(0,wW.PO)(e)||(t={fields:IJ(e)});var n=(0,wW.U2)(t,"fields");return 1===n.length&&(n.unshift("1"),(0,wW.t8)(t,"fields",n)),(0,wW.t8)(this.attributeOption,"position",t),this},t.prototype.color=function(e,t){return this.createAttrOption("color",e,t),this},t.prototype.shape=function(e,t){return this.createAttrOption("shape",e,t),this},t.prototype.size=function(e,t){return this.createAttrOption("size",e,t),this},t.prototype.adjust=function(e){var t=e;return((0,wW.HD)(e)||(0,wW.PO)(e))&&(t=[e]),(0,wW.S6)(t,(function(e,n){(0,wW.Kn)(e)||(t[n]={type:e})})),this.adjustOption=t,this},t.prototype.style=function(e,t){if((0,wW.HD)(e)){var n=IJ(e);this.styleOption={fields:n,callback:t}}else{var i=e,r=(n=i.fields,i.callback),o=i.cfg;this.styleOption=n||r||o?e:{cfg:e}}return this},t.prototype.tooltip=function(e,t){if((0,wW.HD)(e)){var n=IJ(e);this.tooltipOption={fields:n,callback:t}}else this.tooltipOption=e;return this},t.prototype.animate=function(e){return this.animateOption=e,this},t.prototype.label=function(e,t,n){if((0,wW.HD)(e)){var i={},r=IJ(e);i.fields=r,(0,wW.mf)(t)?i.callback=t:(0,wW.PO)(t)&&(i.cfg=t),n&&(i.cfg=n),this.labelOption=i}else this.labelOption=e;return this},t.prototype.state=function(e){return this.stateOption=e,this},t.prototype.customInfo=function(e){return this.customOption=e,this},t.prototype.init=function(e){void 0===e&&(e={}),this.setCfg(e),this.initAttributes(),this.processData(this.data),this.adjustScale()},t.prototype.update=function(e){void 0===e&&(e={});var t=e.data,n=e.isDataChanged,i=e.isCoordinateChanged,r=this.attributeOption,o=this.lastAttributeOption;(0,wW.Xy)(r,o)?!t||!n&&(0,wW.Xy)(t,this.data)?this.setCfg(e):(this.setCfg(e),this.initAttributes(),this.processData(t)):this.init(e),this.adjustScale(),this.isCoordinateChanged=i},t.prototype.paint=function(e){var t=this;void 0===e&&(e=!1),this.animateOption&&(this.animateOption=(0,wW.b$)({},fJ(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var n=this.beforeMappingData,i=this.beforeMapping(n);this.dataArray=new Array(i.length);for(var r=0;r<i.length;r++){var o=i[r];this.dataArray[r]=this.mapping(o)}if(this.updateElements(this.dataArray,e),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(e)){var a=this.container,s=this.type,l=this.coordinate,c=(0,wW.U2)(this.animateOption,"appear"),u=this.getYScale(),d=l.convert({x:0,y:u.scale(this.getYMinValue())});!function(e,t,n,i,r){if(hJ[n]){var o=hJ[n](i),a=lJ((0,wW.U2)(o,"animation",""));if(a){var s=(0,SW.pi)((0,SW.pi)((0,SW.pi)({},uJ.appear),o),t);e.stopAnimate(),a(e,s,{coordinate:i,minYPoint:r,toAttrs:null})}}}(a,c,s,l,d)}if(this.labelOption){var h=this.useDeferredLabel,f=function(){return t.renderLabels((0,wW.xH)(t.dataArray),e)}.bind(this);if("number"===typeof h){var p="number"===typeof h&&h!==1/0?h:0;if(window.requestIdleCallback){var g=p&&p!==1/0?{timeout:p}:void 0;window.requestIdleCallback(f,g)}else setTimeout(f,p)}else f()}this.lastAttributeOption=(0,SW.pi)({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},t.prototype.clear=function(){var e=this,t=e.container,n=e.geometryLabel,i=e.offscreenGroup;t&&t.clear(),n&&n.clear(),i&&i.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},t.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,e.prototype.destroy.call(this)},t.prototype.getGroupScales=function(){return this.groupScales},t.prototype.getAttribute=function(e){return this.attributes[e]},t.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},t.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},t.prototype.getGroupAttributes=function(){var e=[];return(0,wW.S6)(this.attributes,(function(t){MW.includes(t.type)&&e.push(t)})),e},t.prototype.getDefaultValue=function(e){var t,n=this.getAttribute(e);return n&&(0,wW.xb)(n.scales)&&(t=n.values[0]),t},t.prototype.getAttributeValues=function(e,t){for(var n=[],i=e.scales,r=0,o=i.length;r<o;r++){var a=i[r],s=a.field;a.isIdentity?n.push(a.values):n.push(t[s])}return e.mapping.apply(e,(0,SW.ev)([],(0,SW.CR)(n),!1))},t.prototype.getAdjust=function(e){return this.adjusts[e]},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.getData=function(){return this.data},t.prototype.getShapeMarker=function(e,t){return this.getShapeFactory().getMarker(e,t)},t.prototype.getElementsBy=function(e){return this.elements.filter((function(t){return e(t)}))},t.prototype.getElements=function(){return this.elements},t.prototype.getElementId=function(e){var t=(e=(0,wW.kJ)(e)?e[0]:e)._origin;if(this.idFields.length){for(var n=t[this.idFields[0]],i=1;i<this.idFields.length;i++)n+="-"+t[this.idFields[i]];return n}var r,o,a=this.type,s=this.getXScale(),l=this.getYScale(),c=s.field||"x",u=t[l.field||"y"];r="identity"===s.type?s.values[0]:t[c],o="interval"===a||"schema"===a?"".concat(r):"line"===a||"area"===a||"path"===a?a:"".concat(r,"-").concat(u);for(var d=this.groupScales,h=(i=0,d.length);i<h;i++){var f=d[i].field;o="".concat(o,"-").concat(t[f])}var p=this.getAdjust("dodge");if(p){var g=p.dodgeBy;g&&(o="".concat(o,"-").concat(t[g]))}return this.getAdjust("jitter")&&(o="".concat(o,"-").concat(e.x,"-").concat(e.y)),o},t.prototype.getScaleFields=function(){var e=[],t=new Map,n=this,i=n.attributeOption,r=n.labelOption,o=n.tooltipOption;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];s.fields?M$(s.fields,e,t):s.values&&M$(s.values,e,t)}return r&&r.fields&&M$(r.fields,e,t),(0,wW.Kn)(o)&&o.fields&&M$(o.fields,e,t),e},t.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t);for(var n=this.elements,i=0,r=n.length;i<r;i++){n[i].changeVisible(t)}t?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},t.prototype.getFields=function(){var e=new Map,t=[];return Object.values(this.attributeOption).forEach((function(n){((null===n||void 0===n?void 0:n.fields)||[]).forEach((function(n){e.has(n)||t.push(n),e.set(n,!0)}))}),[]),t},t.prototype.getGroupFields=function(){for(var e=[],t=new Map,n=0,i=MW.length;n<i;n++){var r=MW[n],o=this.attributeOption[r];o&&o.fields&&M$(o.fields,e,t)}return e},t.prototype.getXYFields=function(){var e=(0,SW.CR)(this.attributeOption.position.fields,2);return[e[0],e[1]]},t.prototype.getXField=function(){return(0,wW.U2)(this.getXYFields(),[0])},t.prototype.getYField=function(){return(0,wW.U2)(this.getXYFields(),[1])},t.prototype.getShapes=function(){return this.elements.map((function(e){return e.shape}))},t.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var e=this.container.getGroupBase();this.offscreenGroup=new e({})}return this.offscreenGroup},t.prototype.sort=function(e){if(!this.hasSorted)for(var t=this.getXScale(),n=t.field,i=0;i<e.length;i++){e[i].sort((function(e,i){return t.translate(e._origin[n])-t.translate(i._origin[n])}))}this.hasSorted=!0},t.prototype.adjustScale=function(){var e=this.getYScale();e&&this.getAdjust("stack")&&this.updateStackRange(e,this.beforeMappingData)},t.prototype.getShapeFactory=function(){var e=this.shapeType;if(TJ(e))return this.shapeFactory||(this.shapeFactory=(0,wW.d9)(TJ(e))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[e]||{},this.shapeFactory},t.prototype.createShapePointsCfg=function(e){var t=this.getXScale(),n=this.getYScale();return{x:this.normalizeValues(e[t.field],t),y:n?this.normalizeValues(e[n.field],n):e.y?e.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},t.prototype.createElement=function(e,t,n){void 0===n&&(n=!1);var i=this.container,r=this.getDrawCfg(e),o=this.getShapeFactory(),a=new mJ({shapeFactory:o,container:i,offscreenGroup:this.getOffscreenGroup(),elementIndex:t});return a.animate=this.animateOption,a.geometry=this,a.draw(r,n),a},t.prototype.getDrawCfg=function(e){var t=e._origin,n={mappingData:e,data:t,x:e.x,y:e.y,color:e.color,size:e.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},i=e.shape;!i&&this.getShapeFactory()&&(i=this.getShapeFactory().defaultShapeType),n.shape=i;var r=this.theme.geometries[this.shapeType];n.defaultStyle=(0,wW.U2)(r,[i,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(r));var o=this.styleOption;return o&&(n.style=this.getStyleCfg(o,t)),this.generatePoints&&(n.points=e.points,n.nextPoints=e.nextPoints),n},t.prototype.updateElements=function(e,t){var n,i,r,o,a,s;void 0===t&&(t=!1);for(var l=new Map,c=[],u=new Map,d=0,h=0;h<e.length;h++)for(var f=e[h],p=0;p<f.length;p++){var g=f[p],v=this.getElementId(g),m=l.has(v)?"".concat(v,"-").concat(h,"-").concat(p):v;c.push(m),l.set(m,g),u.set(m,d),d++}this.elements=new Array(d);var y=DJ(this.lastElementsMap,c),_=y.added,b=y.updated,C=y.removed;try{for(var S=(0,SW.XA)(_),w=S.next();!w.done;w=S.next()){v=w.value,g=l.get(v),h=u.get(v);var k=this.createElement(g,h,t);this.elements[h]=k,this.elementsMap[v]=k,k.shape&&k.shape.set("zIndex",this.zIndexReversed?this.elements.length-h:h)}}catch(L){n={error:L}}finally{try{w&&!w.done&&(i=S.return)&&i.call(S)}finally{if(n)throw n.error}}try{for(var x=(0,SW.XA)(b),E=x.next();!E.done;E=x.next()){v=E.value,k=this.lastElementsMap[v],g=l.get(v);var T=this.getDrawCfg(g),N=k.getModel();h=u.get(v);(this.isCoordinateChanged||NJ(T,N))&&(k.animate=this.animateOption,k.update(T)),this.elements[h]=k,this.elementsMap[v]=k,k.shape&&k.shape.set("zIndex",this.zIndexReversed?this.elements.length-h:h)}}catch(O){r={error:O}}finally{try{E&&!E.done&&(o=x.return)&&o.call(x)}finally{if(r)throw r.error}}this.container&&this.container.sort();try{for(var I=(0,SW.XA)(C),D=I.next();!D.done;D=I.next()){v=D.value;(k=this.lastElementsMap[v]).animate=this.animateOption,k.destroy()}}catch(R){a={error:R}}finally{try{D&&!D.done&&(s=I.return)&&s.call(I)}finally{if(a)throw a.error}}},t.prototype.getLabelType=function(){var e=this,t=e.labelOption,n=e.coordinate,i=e.type,r=n.type,o=n.isTransposed,a=(0,wW.U2)(t,["cfg","type"]);return a||(a="polar"===r?o?"pie":"polar":"theta"===r?"pie":"interval"===i||"polygon"===i?"interval":"base"),a},t.prototype.getYMinValue=function(){var e=this.getYScale(),t=e.min,n=e.max;return t>=0?t:n<=0?n:0},t.prototype.createAttrOption=function(e,t,n){if((0,wW.UM)(t)||(0,wW.Kn)(t))(0,wW.Kn)(t)&&(0,wW.Xy)(Object.keys(t),["values"])?(0,wW.t8)(this.attributeOption,e,{fields:t.values}):(0,wW.t8)(this.attributeOption,e,t);else{var i={};(0,wW.hj)(t)?i.values=[t]:i.fields=IJ(t),n&&((0,wW.mf)(n)?i.callback=n:i.values=n),(0,wW.t8)(this.attributeOption,e,i)}},t.prototype.initAttributes=function(){var e=this,t=this,n=t.attributes,i=t.attributeOption,r=t.theme,o=t.shapeType;this.groupScales=[];var a={},s=function(t){if(i.hasOwnProperty(t)){var s=i[t];if(!s)return{value:void 0};var l=(0,SW.pi)({},s),c=l.callback,u=l.values,d=l.fields,h=(void 0===d?[]:d).map((function(n){var i=e.scales[n];!a[n]&&MW.includes(t)&&("cat"===j$(i,(0,wW.U2)(e.scaleDefs,n),t,e.type)&&(e.groupScales.push(i),a[n]=!0));return i}));l.scales=h,"position"!==t&&1===h.length&&"identity"===h[0].type?l.values=h[0].values:c||u||("size"===t?l.values=r.sizes:"shape"===t?l.values=r.shapes[o]||[]:"color"===t&&(h.length?l.values=h[0].values.length<=10?r.colors10:r.colors20:l.values=r.colors10));var f=bK(t);n[t]=new f(l)}};for(var l in i){var c=s(l);if("object"===typeof c)return c.value}},t.prototype.processData=function(e){var t,n;this.hasSorted=!1;for(var i=this.getAttribute("position").scales.filter((function(e){return e.isCategory})),r=this.groupData(e),o=[],a=0,s=r.length;a<s;a++){for(var l=r[a],c=[],u=0,d=l.length;u<d;u++){var h=l[u],f={};for(var p in h)f[p]=h[p];f._origin=h;try{for(var g=(t=void 0,(0,SW.XA)(i)),v=g.next();!v.done;v=g.next()){var m=v.value,y=m.field;f[y]=m.translate(f[y])}}catch(b){t={error:b}}finally{try{v&&!v.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}c.push(f)}o.push(c)}var _=this.adjustData(o);return this.beforeMappingData=_,_},t.prototype.adjustData=function(e){var t=this.adjustOption,n=this,i=n.intervalPadding,r=n.dodgePadding,o=n.theme,a=this.maxColumnWidth||o.maxColumnWidth,s=this.minColumnWidth||o.minColumnWidth,l=this.columnWidthRatio||o.columnWidthRatio,c=e;if(t){var u=this.getXScale(),d=this.getYScale(),h=u.field,f=d?d.field:null,p=Z$(this.coordinate),g=u.values.length,v=this.getAttribute("size"),m=void 0;v&&(m=v.values[0]);for(var y=0,_=t.length;y<_;y++){var b=t[y],C=(0,SW.pi)({xField:h,yField:f,intervalPadding:i,dodgePadding:r,xDimensionLength:p,groupNum:g,defaultSize:m,maxColumnWidth:a,minColumnWidth:s,columnWidthRatio:l},b),S=b.type;if("dodge"===S){var w=[];if(u.isCategory||"identity"===u.type)w.push("x");else{if(d)throw new Error("dodge is not support linear attribute, please use category attribute!");w.push("y")}C.adjustNames=w,C.dodgeRatio=l}else if("stack"===S){var k=this.coordinate;if(!d){C.height=k.getHeight();var x=this.getDefaultValue("size")||3;C.size=x}!k.isTransposed&&(0,wW.UM)(C.reverseOrder)&&(C.reverseOrder=!0)}var E=$W(S);C.dimValuesMap={},u&&u.values&&(C.dimValuesMap[u.field]=u.values.map((function(e){return u.translate(e)})));var T=new E(C);c=T.process(c),this.adjusts[S]=T}}return c},t.prototype.groupData=function(e){for(var t=this.getGroupScales(),n=this.scaleDefs,i={},r=[],o=0;o<t.length;o++){var a=t[o].field;r.push(a),(0,wW.U2)(n,[a,"values"])&&(i[a]=n[a].values)}return function(e,t,n){var i,r;if(void 0===n&&(n={}),!t)return[e];var o=(0,wW.Ms)(e,t),a=[];if(1===t.length&&n[t[0]]){var s=n[t[0]];try{for(var l=(0,SW.XA)(s),c=l.next();!c.done;c=l.next()){var u=c.value,d=o["_".concat(u)];d&&a.push(d)}}catch(p){i={error:p}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}}else for(var h in o)if(o.hasOwnProperty(h)){var f=o[h];a.push(f)}return a}(e,r,i)},t.prototype.updateStackRange=function(e,t){for(var n=(0,wW.xH)(t),i=e.field,r=e.min,o=e.max,a=0;a<n.length;a++){var s=n[a],l=Math.min.apply(null,s[i]),c=Math.max.apply(null,s[i]);l<r&&(r=l),c>o&&(o=c)}var u=this.scaleDefs,d={};r<e.min&&!(0,wW.U2)(u,[i,"min"])&&(d.min=r),o>e.max&&!(0,wW.U2)(u,[i,"max"])&&(d.max=o),e.change(d)},t.prototype.beforeMapping=function(e){var t=e;if(this.sortable&&this.sort(t),this.generatePoints)for(var n=0,i=t.length;n<i;n++){var r=t[n];this.generateShapePoints(r);var o=t[n+1];o&&(this.generateShapePoints(o),r[0].nextPoints=o[0].points)}return t},t.prototype.generateShapePoints=function(e){for(var t=this.getShapeFactory(),n=this.getAttribute("shape"),i=0;i<e.length;i++){var r=e[i],o=this.createShapePointsCfg(r),a=n?this.getAttributeValues(n,r):null,s=t.getShapePoints(a,o);r.points=s}},t.prototype.normalizeValues=function(e,t){var n=[];if((0,wW.kJ)(e))for(var i=0;i<e.length;i++){var r=e[i];n.push(t.scale(r))}else n=t.scale(e);return n},t.prototype.mapping=function(e){for(var t=this.attributes,n=[],i=0;i<e.length;i++){var r=e[i],o={_origin:r._origin,points:r.points,nextPoints:r.nextPoints};for(var a in t)if(t.hasOwnProperty(a)){var s=t[a],l=s.names,c=this.getAttributeValues(s,r);if(l.length>1)for(var u=0;u<c.length;u+=1){var d=c[u];o[l[u]]=(0,wW.kJ)(d)&&1===d.length?d[0]:d}else o[l[0]]=1===c.length?c[0]:c}this.convertPoint(o),n.push(o)}return n},t.prototype.convertPoint=function(e){var t,n,i,r=e.x,o=e.y,a=this.coordinate;if((0,wW.kJ)(r)&&(0,wW.kJ)(o)){t=[],n=[];for(var s=0,l=0,c=r.length,u=o.length;s<c&&l<u;s+=1,l+=1)i=a.convert({x:r[s],y:o[l]}),t.push(i.x),n.push(i.y)}else if((0,wW.kJ)(o)){n=[];for(var d=0;d<o.length;d++){var h=o[d];i=a.convert({x:r,y:h}),t&&t!==i.x?((0,wW.kJ)(t)||(t=[t]),t.push(i.x)):t=i.x,n.push(i.y)}}else if((0,wW.kJ)(r)){t=[];for(d=0;d<r.length;d++){var f=r[d];i=a.convert({x:f,y:o}),n&&n!==i.y?((0,wW.kJ)(n)||(n=[n]),n.push(i.y)):n=i.y,t.push(i.x)}}else{var p=a.convert({x:r,y:o});t=p.x,n=p.y}e.x=t,e.y=n},t.prototype.getStyleCfg=function(e,t){var n=e.fields,i=void 0===n?[]:n,r=e.callback,o=e.cfg;if(o)return o;var a=i.map((function(e){return t[e]}));return r.apply(void 0,(0,SW.ev)([],(0,SW.CR)(a),!1))},t.prototype.setCfg=function(e){var t=this,n=e.coordinate,i=e.data,r=e.theme,o=e.scaleDefs;n&&(this.coordinate=n),i&&(this.data=i),o&&(this.scaleDefs=o,this.idFields=[],(0,wW.S6)(o,(function(e,n){e&&e.key&&t.idFields.push(n)}))),r&&(this.theme=this.userTheme?(0,wW.b$)({},r,this.userTheme):r)},t.prototype.renderLabels=function(e,t){return void 0===t&&(t=!1),(0,SW.mG)(this,void 0,void 0,(function(){var n,i,r,o,a,s,l,c,u,d,h,f,p=this;return(0,SW.Jh)(this,(function(g){switch(g.label){case 0:return n=this.geometryLabel,this.emit(xW.BEFORE_RENDER_LABEL),n||(i=this.getLabelType(),r=function(e){return yJ[e.toLowerCase()]}(i),n=new r(this),this.geometryLabel=n),[4,n.render(e,t)];case 1:g.sent(),o=n.labelsRenderer.shapesMap,a=new Map,(0,wW.S6)(o,(function(e,t){for(var n=e.getChildren()||[],i=0;i<n.length;i++){var r=n[i],o=p.elementsMap[r.get("elementId")||t.split(" ")[0]];if(o){r.cfg.name=["element","label"],r.cfg.element=o;var s=a.get(o)||new Set;s.add(e),a.set(o,s)}}}));try{for(s=(0,SW.XA)(a.entries()),l=s.next();!l.done;l=s.next())c=(0,SW.CR)(l.value,2),u=c[0],d=c[1],u.labelShape=(0,SW.ev)([],(0,SW.CR)(d),!1)}catch(v){h={error:v}}finally{try{l&&!l.done&&(f=s.return)&&f.call(s)}finally{if(h)throw h.error}}return this.emit(xW.AFTER_RENDER_LABEL),[2]}}))}))},t.prototype.canDoGroupAnimation=function(e){return!e&&this.animateOption&&(void 0===(0,wW.U2)(this.animateOption,"appear")||(0,wW.U2)(this.animateOption,"appear")&&void 0===(0,wW.U2)(this.animateOption,["appear","animation"]))},t}(UW),OJ=LJ,RJ=xK.vs;function AJ(e,t,n){var i=RJ(e.getMatrix(),[["t",t,n]]);e.setMatrix(i)}function MJ(e,t){var n=function(e,t){var n=e.attr(),i=n.x,r=n.y;return RJ(e.getMatrix(),[["t",-i,-r],["r",t],["t",i,r]])}(e,t);e.setMatrix(n)}function PJ(e){return e.find((function(e){return"text"===e.get("type")}))}function ZJ(e,t,n){void 0===n&&(n=[0,0,0,0]);var i=e&&e.getChildren()[0];if(i){var r=i.clone();(null===t||void 0===t?void 0:t.rotate)&&MJ(r,-t.rotate);var o=r.getCanvasBBox(),a=o.x,s=o.y,l=o.width,c=o.height;r.destroy();var u=n;return(0,wW.UM)(u)?u=[2,2,2,2]:(0,wW.hj)(u)&&(u=new Array(4).fill(u)),{x:a-u[3],y:s-u[0],width:l+u[1]+u[3],height:c+u[0]+u[2],rotation:(null===t||void 0===t?void 0:t.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function FJ(e,t){var n=e.getBBox();return(0,wW.G)(t,(function(e){var t,i,r,o=e.getBBox();return t=n,i=o,void 0===(r=2)&&(r=0),Math.max(0,Math.min(t.x+t.width+r,i.x+i.width+r)-Math.max(t.x-r,i.x-r))*Math.max(0,Math.min(t.y+t.height+r,i.y+i.height+r)-Math.max(t.y-r,i.y-r))>0}))}function BJ(e,t,n){var i=n.data,r=n.origin,o=n.animateCfg,a=n.coordinate,s=(0,wW.U2)(o,"update");e.set("data",i),e.set("origin",r),e.set("animateCfg",o),e.set("coordinate",a),e.set("visible",t.get("visible")),(e.getChildren()||[]).forEach((function(l,c){var u=t.getChildByIndex(c);if(u){l.set("data",i),l.set("origin",r),l.set("animateCfg",o),l.set("coordinate",a);var d=O$(l,u);s?pJ(l,s,{toAttrs:d,coordinate:a}):l.attr(d),u.isGroup()&&BJ(l,u,n)}else e.removeChild(l),l.remove(!0)})),(0,wW.S6)(t.getChildren(),(function(t,n){n>=e.getCount()&&(t.destroyed||e.add(t))}))}var HJ=function(){function e(e){this.shapesMap={};var t=e.layout,n=e.container;this.layout=t,this.container=n}return e.prototype.render=function(e,t,n){return void 0===n&&(n=!1),(0,SW.mG)(this,void 0,void 0,(function(){var i,r,o,a,s,l,c,u,d=this;return(0,SW.Jh)(this,(function(h){switch(h.label){case 0:if(i={},r=this.createOffscreenGroup(),!e.length)return[3,2];try{for(o=(0,SW.XA)(e),a=o.next();!a.done;a=o.next())(s=a.value)&&(i[s.id]=this.renderLabel(s,r))}catch(f){c={error:f}}finally{try{a&&!a.done&&(u=o.return)&&u.call(o)}finally{if(c)throw c.error}}return[4,this.doLayout(e,t,i)];case 1:h.sent(),this.renderLabelLine(e,i),this.renderLabelBackground(e,i),this.adjustLabel(e,i),h.label=2;case 2:return l=this.shapesMap,(0,wW.S6)(i,(function(e,t){if(e.destroyed)delete i[t];else{if(l[t]){var r=e.get("data"),o=e.get("origin"),a=e.get("coordinate"),s=e.get("animateCfg"),c=l[t];BJ(c,i[t],{data:r,origin:o,animateCfg:s,coordinate:a}),i[t]=c}else{if(d.container.destroyed)return;d.container.add(e);var u=(0,wW.U2)(e.get("animateCfg"),n?"enter":"appear");u&&pJ(e,u,{toAttrs:(0,SW.pi)({},e.attr()),coordinate:e.get("coordinate")})}delete l[t]}})),(0,wW.S6)(l,(function(e){var t=(0,wW.U2)(e.get("animateCfg"),"leave");t?pJ(e,t,{toAttrs:null,coordinate:e.get("coordinate")}):e.remove(!0)})),this.shapesMap=i,r.destroy(),[2]}}))}))},e.prototype.clear=function(){this.container.clear(),this.shapesMap={}},e.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},e.prototype.renderLabel=function(e,t){var n,i=e.id,r=e.elementId,o=e.data,a=e.mappingData,s=e.coordinate,l=e.animate,c=e.content,u={id:i,elementId:r,capture:e.capture,data:o,origin:(0,SW.pi)((0,SW.pi)({},a),{data:a._origin}),coordinate:s},d=t.addGroup((0,SW.pi)({name:"label",animateCfg:!1!==this.animate&&null!==l&&!1!==l&&(0,wW.b$)({},this.animate,l)},u));if(c.isGroup&&c.isGroup()||c.isShape&&c.isShape()){var h=c.getCanvasBBox(),f=h.width,p=h.height,g=(0,wW.U2)(e,"textAlign","left"),v=e.x;"center"===g?v-=f/2:"right"!==g&&"end"!==g||(v-=f),AJ(c,v,e.y-p/2),n=c,d.add(c)}else{var m=(0,wW.U2)(e,["style","fill"]);n=d.addShape("text",(0,SW.pi)({attrs:(0,SW.pi)((0,SW.pi)({x:e.x,y:e.y,textAlign:e.textAlign,textBaseline:(0,wW.U2)(e,"textBaseline","middle"),text:e.content},e.style),{fill:(0,wW.Ft)(m)?e.color:m})},u))}return e.rotate&&MJ(n,e.rotate),d},e.prototype.doLayout=function(e,t,n){return(0,SW.mG)(this,void 0,void 0,(function(){var i,r=this;return(0,SW.Jh)(this,(function(o){switch(o.label){case 0:return this.layout?(i=(0,wW.kJ)(this.layout)?this.layout:[this.layout],[4,Promise.all(i.map((function(i){var o=function(e){return _J[e.toLowerCase()]}((0,wW.U2)(i,"type",""));if(o){var a=[],s=[];return(0,wW.S6)(n,(function(e,n){a.push(e),s.push(t[e.get("elementId")])})),o(e,a,s,r.region,i.cfg)}})))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},e.prototype.renderLabelLine=function(e,t){(0,wW.S6)(e,(function(e){var n=(0,wW.U2)(e,"coordinate");if(e&&n){var i=n.getCenter(),r=n.getRadius();if(e.labelLine){var o=(0,wW.U2)(e,"labelLine",{}),a=e.id,s=o.path;if(!s){var l=N$(i.x,i.y,r,e.angle);s=[["M",l.x,l.y],["L",e.x,e.y]]}var c=t[a];c.destroyed||c.addShape("path",{capture:!1,attrs:(0,SW.pi)({path:s,stroke:e.color?e.color:(0,wW.U2)(e,["style","fill"],"#000"),fill:null},o.style),id:a,origin:e.mappingData,data:e.data,coordinate:e.coordinate})}}}))},e.prototype.renderLabelBackground=function(e,t){(0,wW.S6)(e,(function(e){var n=(0,wW.U2)(e,"coordinate"),i=(0,wW.U2)(e,"background");if(i&&n){var r=e.id,o=t[r];if(!o.destroyed){var a=o.getChildren()[0];if(a){var s=ZJ(o,e,i.padding),l=s.rotation,c=(0,SW._T)(s,["rotation"]),u=o.addShape("rect",{attrs:(0,SW.pi)((0,SW.pi)({},c),i.style||{}),id:r,origin:e.mappingData,data:e.data,coordinate:e.coordinate});if(u.setZIndex(-1),l){var d=a.getMatrix();u.setMatrix(d)}}}}}))},e.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},e.prototype.adjustLabel=function(e,t){(0,wW.S6)(e,(function(e){if(e){var n=e.id,i=t[n];if(!i.destroyed){var r=i.findAll((function(e){return"path"!==e.get("type")}));(0,wW.S6)(r,(function(t){t&&(e.offsetX&&t.attr("x",t.attr("x")+e.offsetX),e.offsetY&&t.attr("y",t.attr("y")+e.offsetY))}))}}}))},e}(),zJ=HJ;function jJ(e){var t=0;return(0,wW.S6)(e,(function(e){t+=e})),t/e.length}var VJ=function(){function e(e){this.geometry=e}return e.prototype.getLabelItems=function(e){var t=this,n=[],i=this.getLabelCfgs(e);return(0,wW.S6)(e,(function(e,r){var o=i[r];if(!o||(0,wW.UM)(e.x)||(0,wW.UM)(e.y))n.push(null);else{var a=(0,wW.kJ)(o.content)?o.content:[o.content];o.content=a;var s=a.length;(0,wW.S6)(a,(function(i,r){if((0,wW.UM)(i)||""===i)n.push(null);else{var a=(0,SW.pi)((0,SW.pi)({},o),t.getLabelPoint(o,e,r));a.textAlign||(a.textAlign=t.getLabelAlign(a,r,s)),a.offset<=0&&(a.labelLine=null),n.push(a)}}))}})),n},e.prototype.render=function(e,t){return void 0===t&&(t=!1),(0,SW.mG)(this,void 0,void 0,(function(){var n,i,r;return(0,SW.Jh)(this,(function(o){switch(o.label){case 0:return n=this.getLabelItems(e),i=this.getLabelsRenderer(),r=this.getGeometryShapes(),[4,i.render(n,r,t)];case 1:return o.sent(),[2]}}))}))},e.prototype.clear=function(){var e=this.labelsRenderer;e&&e.clear()},e.prototype.destroy=function(){var e=this.labelsRenderer;e&&e.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(e,t){var n=this.geometry,i=n.type,r=n.theme;return"polygon"===i||"interval"===i&&"middle"===t||e<0&&!["line","point","path"].includes(i)?(0,wW.U2)(r,"innerLabels",{}):(0,wW.U2)(r,"labels",{})},e.prototype.getThemedLabelCfg=function(e){var t=this.geometry,n=this.getDefaultLabelCfg(),i=t.type,r=t.theme;return"polygon"===i||e.offset<0&&!["line","point","path"].includes(i)?(0,wW.b$)({},n,r.innerLabels,e):(0,wW.b$)({},n,r.labels,e)},e.prototype.setLabelPosition=function(e,t,n,i){},e.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),n=this.getOffsetVector(e);return t.isTransposed?n[0]:n[1]},e.prototype.getLabelOffsetPoint=function(e,t,n){var i=e.offset,r=this.getCoordinate().isTransposed,o=r?"x":"y",a=r?1:-1,s={x:0,y:0};return s[o]=t>0||1===n?i*a:i*a*-1,s},e.prototype.getLabelPoint=function(e,t,n){var i=this.getCoordinate(),r=e.content.length;function o(t,n,i){void 0===i&&(i=!1);var r=t;return(0,wW.kJ)(r)&&(r=1===e.content.length?i?jJ(r):r.length<=2?r[t.length-1]:jJ(r):r[n]),r}var a={content:e.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},s=(0,wW.kJ)(t.shape)?t.shape[0]:t.shape,l="funnel"===s||"pyramid"===s;if("polygon"===this.geometry.type){var c=function(e,t){if((0,wW.hj)(e)&&(0,wW.hj)(t))return[e,t];if(E$(e)||E$(t))return[T$(e),T$(t)];for(var n,i,r=-1,o=0,a=0,s=e.length-1,l=0;++r<e.length;)n=s,s=r,l+=i=e[n]*t[s]-e[s]*t[n],o+=(e[n]+e[s])*i,a+=(t[n]+t[s])*i;return[o/(l*=3),a/l]}(t.x,t.y);a.x=c[0],a.y=c[1]}else"interval"!==this.geometry.type||l?(a.x=o(t.x,n),a.y=o(t.y,n)):(a.x=o(t.x,n,!0),a.y=o(t.y,n));if(l){var u=(0,wW.U2)(t,"nextPoints"),d=(0,wW.U2)(t,"points");if(u){var h=i.convert(d[1]),f=i.convert(u[1]);a.x=(h.x+f.x)/2,a.y=(h.y+f.y)/2}else if("pyramid"===s){h=i.convert(d[1]),f=i.convert(d[2]);a.x=(h.x+f.x)/2,a.y=(h.y+f.y)/2}}e.position&&this.setLabelPosition(a,t,n,e.position);var p=this.getLabelOffsetPoint(e,n,r);return a.start={x:a.x,y:a.y},a.x+=p.x,a.y+=p.y,a.color=t.color,a},e.prototype.getLabelAlign=function(e,t,n){var i="center";if(this.getCoordinate().isTransposed){var r=e.offset;i=r<0?"right":0===r?"center":"left",n>1&&0===t&&("right"===i?i="left":"left"===i&&(i="right"))}return i},e.prototype.getLabelId=function(e){var t=this.geometry,n=t.type,i=t.getXScale(),r=t.getYScale(),o=e._origin,a=t.getElementId(e);return"line"===n||"area"===n?a+=" ".concat(o[i.field]):"path"===n&&(a+=" ".concat(o[i.field],"-").concat(o[r.field])),a},e.prototype.getLabelsRenderer=function(){var e=this.geometry,t=e.labelsContainer,n=e.labelOption,i=e.canvasRegion,r=e.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new zJ({container:t,layout:(0,wW.U2)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=i,a.animate=!!r&&fJ("label",o),a},e.prototype.getLabelCfgs=function(e){var t=this,n=this.geometry,i=n.labelOption,r=n.scales,o=n.coordinate,a=i,s=a.fields,l=a.callback,c=a.cfg,u=s.map((function(e){return r[e]})),d=[];return(0,wW.S6)(e,(function(e,n){var i,r=e._origin,a=t.getLabelText(r,u);if(l){var h=s.map((function(e){return r[e]}));if(i=l.apply(void 0,(0,SW.ev)([],(0,SW.CR)(h),!1)),(0,wW.UM)(i))return void d.push(null)}var f=(0,SW.pi)((0,SW.pi)({id:t.getLabelId(e),elementId:t.geometry.getElementId(e),data:r,mappingData:e,coordinate:o},c),i);(0,wW.mf)(f.position)&&(f.position=f.position(r,e,n));var p=t.getLabelOffset(f.offset||0),g=t.getDefaultLabelCfg(p,f.position);(f=(0,wW.b$)({},g,f)).offset=t.getLabelOffset(f.offset||0);var v=f.content;(0,wW.mf)(v)?f.content=v(r,e,n):(0,wW.o8)(v)&&(f.content=a[0]),d.push(f)})),d},e.prototype.getLabelText=function(e,t){var n=[];return(0,wW.S6)(t,(function(t){var i=e[t.field];i=(0,wW.kJ)(i)?i.map((function(e){return t.getText(e)})):t.getText(i),(0,wW.UM)(i)||""===i?n.push(null):n.push(i)})),n},e.prototype.getOffsetVector=function(e){void 0===e&&(e=0);var t=this.getCoordinate(),n=0;return(0,wW.hj)(e)&&(n=e),t.isTransposed?t.applyMatrix(n,0):t.applyMatrix(0,n)},e.prototype.getGeometryShapes=function(){var e=this.geometry,t={};return(0,wW.S6)(e.elementsMap,(function(e,n){t[n]=e.shape})),(0,wW.S6)(e.getOffscreenGroup().getChildren(),(function(n){var i=e.getElementId(n.get("origin").mappingData);t[i]=n})),t},e}(),WJ=VJ;function UJ(e,t,n){if(!e)return n;var i;if(e.callback&&e.callback.length>1){var r=Array(e.callback.length-1).fill("");i=e.mapping.apply(e,(0,SW.ev)([t],(0,SW.CR)(r),!1)).join("")}else i=e.mapping(t).join("");return i||n}var GJ={hexagon:function(e,t,n){var i=n/2*Math.sqrt(3);return[["M",e,t-n],["L",e+i,t-n/2],["L",e+i,t+n/2],["L",e,t+n],["L",e-i,t+n/2],["L",e-i,t-n/2],["Z"]]},bowtie:function(e,t,n){var i=n-1.5;return[["M",e-n,t-i],["L",e+n,t+i],["L",e+n,t-i],["L",e-n,t+i],["Z"]]},cross:function(e,t,n){return[["M",e-n,t-n],["L",e+n,t+n],["M",e+n,t-n],["L",e-n,t+n]]},tick:function(e,t,n){return[["M",e-n/2,t-n],["L",e+n/2,t-n],["M",e,t-n],["L",e,t+n],["M",e-n/2,t+n],["L",e+n/2,t+n]]},plus:function(e,t,n){return[["M",e-n,t],["L",e+n,t],["M",e,t-n],["L",e,t+n]]},hyphen:function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},line:function(e,t,n){return[["M",e,t-n],["L",e,t+n]]}},KJ=["line","cross","tick","plus","hyphen"];function YJ(e){var t=e.symbol;(0,wW.HD)(t)&&GJ[t]&&(e.symbol=GJ[t])}function qJ(e){return e.startsWith(cW.LEFT)||e.startsWith(cW.RIGHT)?"vertical":"horizontal"}function $J(e,t,n,i,r){var o=n.getScale(n.type);if(o.isCategory){var a=o.field,s=t.getAttribute("color"),l=t.getAttribute("shape"),c=e.getTheme().defaultColor,u=t.coordinate.isPolar;return o.getTicks().map((function(n,d){var h,f=n.text,p=n.value,g=f,v=o.invert(p),m=0===e.filterFieldData(a,[(h={},h[a]=v,h)]).length;(0,wW.S6)(e.views,(function(e){var t;e.filterFieldData(a,[(t={},t[a]=v,t)]).length||(m=!0)}));var y=UJ(s,v,c),_=UJ(l,v,"point"),b=t.getShapeMarker(_,{color:y,isInPolar:u}),C=r;return(0,wW.mf)(C)&&(C=C(g,d,(0,SW.pi)({name:g,value:v},(0,wW.b$)({},i,b)))),function(e,t){var n=e.symbol;if((0,wW.HD)(n)&&-1!==KJ.indexOf(n)){var i=(0,wW.U2)(e,"style",{}),r=(0,wW.U2)(i,"lineWidth",1),o=i.stroke||i.fill||t;e.style=(0,wW.b$)({},e.style,{lineWidth:r,stroke:o,fill:null})}}(b=(0,wW.b$)({},i,b,A$((0,SW.pi)({},C),["style"])),y),C&&C.style&&(b.style=function(e,t){return(0,wW.mf)(t)?t(e):(0,wW.b$)({},e,t)}(b.style,C.style)),YJ(b),{id:v,name:g,value:v,marker:b,unchecked:m}}))}return[]}function XJ(e,t){var n=(0,wW.U2)(e,["components","legend"],{});return(0,wW.b$)({},(0,wW.U2)(n,["common"],{}),(0,wW.b$)({},(0,wW.U2)(n,[t],{})))}function QJ(e){return!e&&(null===e||void 0===e||isNaN(e))}function JJ(e){if((0,wW.kJ)(e))return QJ(e[1].y);var t=e.y;return(0,wW.kJ)(t)?QJ(t[0]):QJ(t)}function e0(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!0),!e.length||1===e.length&&!n)return[];if(t){for(var i=[],r=0,o=e.length;r<o;r++){JJ(l=e[r])||i.push(l)}return[i]}var a=[],s=[];for(r=0,o=e.length;r<o;r++){var l;JJ(l=e[r])?s.length&&((1!==s.length||n)&&a.push(s),s=[]):s.push(l)}return s.length&&a.push(s),a}function t0(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(i){var r=0===n?"M":"L";t.push([r,i.x,i.y])}}var o=e[0];return o&&(t.push(["L",o.x,o.y]),t.push(["z"])),t}function n0(e){for(var t=e.length/2,n=[],i=[],r=0;r<e.length;r++)r<t?n.push(e[r]):i.push(e[r]);var o=mX(n,!1),a=mX(i,!1);i.length&&o.push(["L",i[0].x,i[0].y]),a.shift();var s=o.concat(a);return n.length&&s.push(["L",n[0].x,n[0].y]),s.push(["z"]),s}function i0(e,t,n,i){void 0===i&&(i="");var r=e.style,o=void 0===r?{}:r,a=e.defaultStyle,s=e.color,l=e.size,c=(0,SW.pi)((0,SW.pi)({},a),o);return s&&(t&&(o.stroke||(c.stroke=s)),n&&(o.fill||(c.fill=s))),i&&(0,wW.UM)(o[i])&&!(0,wW.UM)(l)&&(c[i]=l),c}function r0(e){return(0,wW.b$)({},{fill:"#CCD6EC",fillOpacity:.3},(0,wW.U2)(e,["background","style"]))}function o0(e){var t=e.x;return((0,wW.kJ)(e.y)?e.y:[e.y]).map((function(e,n){return{x:(0,wW.kJ)(t)?t[n]:t,y:e}}))}var a0={line:function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},dot:function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},dash:function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},smooth:function(e,t,n){return[["M",e-n,t],["A",n/2,n/2,0,1,1,e,t],["A",n/2,n/2,0,1,0,e+n,t]]},hv:function(e,t,n){return[["M",e-n-1,t-2.5],["L",e,t-2.5],["L",e,t+2.5],["L",e+n+1,t+2.5]]},vh:function(e,t,n){return[["M",e-n-1,t+2.5],["L",e,t+2.5],["L",e,t-2.5],["L",e+n+1,t-2.5]]},hvh:function(e,t,n){return[["M",e-(n+1),t+2.5],["L",e-n/2,t+2.5],["L",e-n/2,t-2.5],["L",e+n/2,t-2.5],["L",e+n/2,t+2.5],["L",e+n+1,t+2.5]]},vhv:function(e,t){return[["M",e-5,t+2.5],["L",e-5,t],["L",e,t],["L",e,t-3],["L",e,t+3],["L",e+6.5,t+3]]}};function s0(e,t){var n=e.color;return{symbol:a0[t],style:{lineWidth:2,r:6,stroke:n}}}function l0(e,t,n,i,r){return 1===e.length?[["M",e[0].x,e[0].y-r.lineWidth/2],["L",e[0].x,e[0].y],["L",e[0].x,e[0].y+r.lineWidth/2]]:(n?(t&&e.length&&e.push({x:e[0].x,y:e[0].y}),o=mX(e,!1,i)):(o=vX(e,!1),t&&o.push(["Z"])),o);var o}function c0(e,t,n,i,r,o){if(e.length){var a=e[0];return(0,wW.kJ)(a.y)?function(e,t,n,i,r,o){var a=[],s=[];(0,wW.S6)(e,(function(e){var t=o0(e);a.push(t[1]),s.push(t[0])}));var l=l0(a,t,i,r,o),c=l0(s,t,i,r,o);return n?l:l.concat(c)}(e,t,n,i,r,o):l0(e,t,i,r,o)}return[]}xJ("line",{defaultShapeType:"line"});(0,wW.S6)(["line","dot","dash","smooth"],(function(e){EJ("line",e,{draw:function(t,n){var i,r="smooth"===e;if(r){var o=this.coordinate,a=o.start,s=o.end;i=[[a.x,s.y],[s.x,a.y]]}var l=function(e,t,n){for(var i=e.isStack,r=e.connectNulls,o=e.isInCircle,a=e.showSinglePoint,s=i0(e,!0,!1,"lineWidth"),l=e0(e.points,r,a),c=[],u=0,d=l.length;u<d;u++){var h=l[u];c=c.concat(c0(h,o,i,t,n,s))}return s.path=c,s}(t,r,i);return n.addShape({type:"path",attrs:l,name:"line",capture:!r})},getMarker:function(t){return s0(t,e)}})}));var u0={getLegendItems:$J,translate:AJ,rotate:MJ,zoom:function(e,t){var n=e.getBBox(),i=(n.minX+n.maxX)/2,r=(n.minY+n.maxY)/2;e.applyToMatrix([i,r,1]);var o=RJ(e.getMatrix(),[["t",-i,-r],["s",t,t],["t",i,r]]);e.setMatrix(o)},transform:RJ,getAngle:L$,getSectorPath:I$,polarToCartesian:N$,getDelegationObject:AX,getTooltipItems:FQ,getMappingValue:UJ,getPath:c0,getPathPoints:e0},d0="#000",h0="#262626",f0="#BFBFBF",p0="#F0F0F0",g0="#FFFFFF",v0="#A6A6A6",m0="#737373",y0="#404040",_0="#262626",b0=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],C0=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],S0=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],w0=function(e){void 0===e&&(e={});var t=e.paletteQualitative10,n=void 0===t?b0:t,i=e.paletteQualitative20,r=void 0===i?C0:i,o=e.brandColor,a={backgroundColor:"#141414",brandColor:void 0===o?n[0]:o,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:r,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:S0,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:y0,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:v0,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:h0,axisTickLineBorderColor:y0,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:_0,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:m0,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:_0,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:m0,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:b0[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:v0,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:m0,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:m0,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:v0,legendPageNavigatorTextFontSize:12,sliderRailFillColor:_0,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:m0,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:p0,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:f0,annotationArcBorderColor:_0,annotationArcBorder:1,annotationLineBorderColor:y0,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:v0,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:g0,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:y0,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:v0,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:v0,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:d0,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:v0,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:d0,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:y0,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:b0[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:d0,pointBorderOpacity:1,pointActiveBorderColor:g0,pointSelectedBorder:2,pointSelectedBorderColor:g0,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:b0[0],hollowPointBorderOpacity:.95,hollowPointFillColor:d0,hollowPointActiveBorder:1,hollowPointActiveBorderColor:g0,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:g0,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:b0[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:b0[0],areaFillOpacity:.25,areaActiveFillColor:b0[0],areaActiveFillOpacity:.5,areaSelectedFillColor:b0[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:b0[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:g0,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:g0,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:b0[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:g0,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:g0,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:b0[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:d0,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:g0,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:g0,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return(0,SW.pi)((0,SW.pi)({},a),e)}();function k0(e,t,n,i){var r=e-n,o=t-i;return Math.sqrt(r*r+o*o)}function x0(e,t,n,i,r,o){return r>=e&&r<=e+n&&o>=t&&o<=t+i}function E0(e,t){return!(t.minX>e.maxX||t.maxX<e.minX||t.minY>e.maxY||t.maxY<e.minY)}function T0(e,t){return e[0]===t[0]&&e[1]===t[1]}var N0=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,I0=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,D0=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,L0=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function O0(e,t){var n=e.match(L0);(0,wW.S6)(n,(function(e){var n=e.split(":");t.addColorStop(n[0],n[1])}))}function R0(e,t,n){var i=t.getBBox();if(isNaN(i.x)||isNaN(i.y)||isNaN(i.width)||isNaN(i.height))return n;if((0,wW.HD)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return function(e,t,n){var i,r,o=N0.exec(n),a=parseFloat(o[1])%360*(Math.PI/180),s=o[2],l=t.getBBox();a>=0&&a<.5*Math.PI?(i={x:l.minX,y:l.minY},r={x:l.maxX,y:l.maxY}):.5*Math.PI<=a&&a<Math.PI?(i={x:l.maxX,y:l.minY},r={x:l.minX,y:l.maxY}):Math.PI<=a&&a<1.5*Math.PI?(i={x:l.maxX,y:l.maxY},r={x:l.minX,y:l.minY}):(i={x:l.minX,y:l.maxY},r={x:l.maxX,y:l.minY});var c=Math.tan(a),u=c*c,d=(r.x-i.x+c*(r.y-i.y))/(u+1)+i.x,h=c*(r.x-i.x+c*(r.y-i.y))/(u+1)+i.y,f=e.createLinearGradient(i.x,i.y,d,h);return O0(s,f),f}(e,t,n);if("r"===n[0])return function(e,t,n){var i=I0.exec(n),r=parseFloat(i[1]),o=parseFloat(i[2]),a=parseFloat(i[3]),s=i[4];if(0===a){var l=s.match(L0);return l[l.length-1].split(":")[1]}var c=t.getBBox(),u=c.maxX-c.minX,d=c.maxY-c.minY,h=Math.sqrt(u*u+d*d)/2,f=e.createRadialGradient(c.minX+u*r,c.minY+d*o,0,c.minX+u/2,c.minY+d/2,a*h);return O0(s,f),f}(e,t,n);if("p"===n[0])return function(e,t,n){if(t.get("patternSource")&&t.get("patternSource")===n)return t.get("pattern");var i,r,o=D0.exec(n),a=o[1],s=o[2];function l(){i=e.createPattern(r,a),t.set("pattern",i),t.set("patternSource",n)}switch(a){case"a":a="repeat";break;case"x":a="repeat-x";break;case"y":a="repeat-y";break;default:a="no-repeat"}return r=new Image,s.match(/^data:/i)||(r.crossOrigin="Anonymous"),r.src=s,r.complete?l():(r.onload=l,r.src=r.src),i}(e,t,n)}return n}return n instanceof CanvasPattern?n:void 0}function A0(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function M0(e,t){return A0(e)*A0(t)?(e[0]*t[0]+e[1]*t[1])/(A0(e)*A0(t)):1}function P0(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(M0(e,t))}function Z0(e,t){var n=t[1],i=t[2],r=(0,wW.wQ)((0,wW.c$)(t[3]),2*Math.PI),o=t[4],a=t[5],s=e[0],l=e[1],c=t[6],u=t[7],d=Math.cos(r)*(s-c)/2+Math.sin(r)*(l-u)/2,h=-1*Math.sin(r)*(s-c)/2+Math.cos(r)*(l-u)/2,f=d*d/(n*n)+h*h/(i*i);f>1&&(n*=Math.sqrt(f),i*=Math.sqrt(f));var p=n*n*(h*h)+i*i*(d*d),g=p?Math.sqrt((n*n*(i*i)-p)/p):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var v=i?g*n*h/i:0,m=n?g*-i*d/n:0,y=(s+c)/2+Math.cos(r)*v-Math.sin(r)*m,_=(l+u)/2+Math.sin(r)*v+Math.cos(r)*m,b=[(d-v)/n,(h-m)/i],C=[(-1*d-v)/n,(-1*h-m)/i],S=P0([1,0],b),w=P0(b,C);return M0(b,C)<=-1&&(w=Math.PI),M0(b,C)>=1&&(w=0),0===a&&w>0&&(w-=2*Math.PI),1===a&&w<0&&(w+=2*Math.PI),{cx:y,cy:_,rx:T0(e,[c,u])?0:n,ry:T0(e,[c,u])?0:i,startAngle:S,endAngle:S+w,xRotation:r,arcFlag:o,sweepFlag:a}}var F0=Math.sin,B0=Math.cos,H0=Math.atan2,z0=Math.PI;function j0(e,t,n,i,r,o,a){var s=t.stroke,l=t.lineWidth,c=H0(i-o,n-r),u=new G1({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*B0(z0/6)+","+10*F0(z0/6)+" L0,0 L"+10*B0(z0/6)+",-"+10*F0(z0/6),stroke:s,lineWidth:l}});u.translate(r,o),u.rotateAtPoint(r,o,c),e.set(a?"startArrowShape":"endArrowShape",u)}function V0(e,t,n,i,r,o,a){var s=t.startArrow,l=t.endArrow,c=t.stroke,u=t.lineWidth,d=a?s:l,h=d.d,f=d.fill,p=d.stroke,g=d.lineWidth,v=(0,SW._T)(d,["d","fill","stroke","lineWidth"]),m=H0(i-o,n-r);h&&(r-=B0(m)*h,o-=F0(m)*h);var y=new G1({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:(0,SW.pi)((0,SW.pi)({},v),{stroke:p||c,lineWidth:g||u,fill:f})});y.translate(r,o),y.rotateAtPoint(r,o,m),e.set(a?"startArrowShape":"endArrowShape",y)}function W0(e,t,n,i,r){var o=H0(i-t,n-e);return{dx:B0(o)*r,dy:F0(o)*r}}function U0(e,t,n,i,r,o){"object"===typeof t.startArrow?V0(e,t,n,i,r,o,!0):t.startArrow?j0(e,t,n,i,r,o,!0):e.set("startArrowShape",null)}function G0(e,t,n,i,r,o){"object"===typeof t.endArrow?V0(e,t,n,i,r,o,!1):t.endArrow?j0(e,t,n,i,r,o,!1):e.set("startArrowShape",null)}var K0={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function Y0(e,t){var n=t.attr();for(var i in n){var r=n[i],o=K0[i]?K0[i]:i;"matrix"===o&&r?e.transform(r[0],r[1],r[3],r[4],r[6],r[7]):"lineDash"===o&&e.setLineDash?(0,wW.kJ)(r)&&e.setLineDash(r):("strokeStyle"===o||"fillStyle"===o?r=R0(e,t,r):"globalAlpha"===o&&(r*=e.globalAlpha),e[o]=r)}}function q0(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];r.cfg.visible?r.draw(e,n):r.skipDraw()}}function $0(e,t,n){var i=e.get("refreshElements");(0,wW.S6)(i,(function(t){if(t!==e)for(var n=t.cfg.parent;n&&n!==e&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),i[0]===e?J0(t,n):X0(t,n)}function X0(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.cfg.visible)if(i.cfg.hasChanged)i.cfg.refresh=!0,i.isGroup()&&J0(i.cfg.children,t);else if(i.cfg.refresh)i.isGroup()&&X0(i.cfg.children,t);else{var r=e1(i,t);i.cfg.refresh=r,r&&i.isGroup()&&X0(i.cfg.children,t)}}}function Q0(e){for(var t=0;t<e.length;t++){var n=e[t];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&Q0(n.cfg.children)}}function J0(e,t){for(var n=0;n<e.length;n++){var i=e[n];i.cfg.refresh=!0,i.isGroup()&&J0(i.get("children"),t)}}function e1(e,t){var n=e.cfg.cacheCanvasBBox;return e.cfg.isInView&&n&&E0(n,t)}function t1(e,t,n,i){var r=n.path,o=n.startArrow,a=n.endArrow;if(r){var s=[0,0],l=[0,0],c={dx:0,dy:0};t.beginPath();for(var u=0;u<r.length;u++){var d=r[u],h=d[0];if(0===u&&o&&o.d)c=W0((f=e.getStartTangent())[0][0],f[0][1],f[1][0],f[1][1],o.d);else if(u===r.length-2&&"Z"===r[u+1][0]&&a&&a.d){if("Z"===r[u+1][0])c=W0((f=e.getEndTangent())[0][0],f[0][1],f[1][0],f[1][1],a.d)}else if(u===r.length-1&&a&&a.d){var f;if("Z"!==r[0])c=W0((f=e.getEndTangent())[0][0],f[0][1],f[1][0],f[1][1],a.d)}var p=c.dx,g=c.dy;switch(h){case"M":t.moveTo(d[1]-p,d[2]-g),l=[d[1],d[2]];break;case"L":t.lineTo(d[1]-p,d[2]-g);break;case"Q":t.quadraticCurveTo(d[1],d[2],d[3]-p,d[4]-g);break;case"C":t.bezierCurveTo(d[1],d[2],d[3],d[4],d[5]-p,d[6]-g);break;case"A":var v=void 0;i?(v=i[u])||(v=Z0(s,d),i[u]=v):v=Z0(s,d);var m=v.cx,y=v.cy,_=v.rx,b=v.ry,C=v.startAngle,S=v.endAngle,w=v.xRotation,k=v.sweepFlag;if(t.ellipse)t.ellipse(m,y,_,b,w,C,S,1-k);else{var x=_>b?_:b,E=_>b?1:_/b,T=_>b?b/_:1;t.translate(m,y),t.rotate(w),t.scale(E,T),t.arc(0,0,x,C,S,1-k),t.scale(1/E,1/T),t.rotate(-w),t.translate(-m,-y)}break;case"Z":t.closePath()}if("Z"===h)s=l;else{var N=d.length;s=[d[N-2],d[N-1]]}}}}function n1(e,t){var n=e.get("canvas");n&&("remove"===t&&(e._cacheCanvasBBox=e.get("cacheCanvasBBox")),e.get("hasChanged")||(e.set("hasChanged",!0),e.cfg.parent&&e.cfg.parent.get("hasChanged")||(n.refreshElement(e,t,n),n.get("autoDraw")&&n.draw())))}function i1(e){var t,n,i;if(e.destroyed)t=e._cacheCanvasBBox;else{var r=e.get("cacheCanvasBBox"),o=r&&!(!r.width||!r.height),a=e.getCanvasBBox(),s=a&&!(!a.width||!a.height);o&&s?(i=a,t=(n=r)&&i?{minX:Math.min(n.minX,i.minX),minY:Math.min(n.minY,i.minY),maxX:Math.max(n.maxX,i.maxX),maxY:Math.max(n.maxY,i.maxY)}:n||i):o?t=r:s&&(t=a)}return t}var r1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.onCanvasChange=function(e){n1(this,e)},t.prototype.getShapeBase=function(){return c},t.prototype.getGroupBase=function(){return t},t.prototype._applyClip=function(e,t){t&&(e.save(),Y0(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.cacheCanvasBBox=function(){var e=this.cfg.children,t=[],n=[];(0,wW.S6)(e,(function(e){var i=e.cfg.cacheCanvasBBox;i&&e.cfg.isInView&&(t.push(i.minX,i.maxX),n.push(i.minY,i.maxY))}));var i=null;if(t.length){var r=(0,wW.VV)(t),o=(0,wW.Fp)(t),a=(0,wW.VV)(n),s=(0,wW.Fp)(n);i={minX:r,minY:a,x:r,y:a,maxX:o,maxY:s,width:o-r,height:s-a};var l=this.cfg.canvas;if(l){var c=l.getViewRange();this.set("isInView",E0(i,c))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},t.prototype.draw=function(e,t){var n=this.cfg.children,i=!t||this.cfg.refresh;n.length&&i&&(e.save(),Y0(e,this),this._applyClip(e,this.getClip()),q0(e,n,t),e.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},t}(GW.AbstractGroup),o1=r1,a1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.getShapeBase=function(){return c},t.prototype.getGroupBase=function(){return o1},t.prototype.onCanvasChange=function(e){n1(this,e)},t.prototype.calculateBBox=function(){var e=this.get("type"),t=this.getHitLineWidth(),n=(0,GW.getBBoxMethod)(e)(this),i=t/2,r=n.x-i,o=n.y-i,a=n.x+n.width+i,s=n.y+n.height+i;return{x:r,minX:r,y:o,minY:o,width:n.width+t,height:n.height+t,maxX:a,maxY:s}},t.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},t.prototype.isStroke=function(){return!!this.attrs.stroke},t.prototype._applyClip=function(e,t){t&&(e.save(),Y0(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.draw=function(e,t){var n=this.cfg.clipShape;if(t){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);if(!E0(t,this.getCanvasBBox()))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}e.save(),Y0(e,this),this._applyClip(e,n),this.drawPath(e),e.restore(),this._afterDraw()},t.prototype.getCanvasViewBox=function(){var e=this.cfg.canvas;return e?e.getViewRange():null},t.prototype.cacheCanvasBBox=function(){var e=this.getCanvasViewBox();if(e){var t=this.getCanvasBBox(),n=E0(t,e);this.set("isInView",n),n?this.set("cacheCanvasBBox",t):this.set("cacheCanvasBBox",null)}},t.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},t.prototype.drawPath=function(e){this.createPath(e),this.strokeAndFill(e),this.afterDrawPath(e)},t.prototype.fill=function(e){e.fill()},t.prototype.stroke=function(e){e.stroke()},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,i=t.opacity,r=t.strokeOpacity,o=t.fillOpacity;this.isFill()&&((0,wW.UM)(o)||1===o?this.fill(e):(e.globalAlpha=o,this.fill(e),e.globalAlpha=i)),this.isStroke()&&n>0&&((0,wW.UM)(r)||1===r||(e.globalAlpha=r),this.stroke(e)),this.afterDrawPath(e)},t.prototype.createPath=function(e){},t.prototype.afterDrawPath=function(e){},t.prototype.isInShape=function(e,t){var n=this.isStroke(),i=this.isFill(),r=this.getHitLineWidth();return this.isInStrokeOrPath(e,t,n,i,r)},t.prototype.isInStrokeOrPath=function(e,t,n,i,r){return!1},t.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var e=this.attrs;return e.lineWidth+e.lineAppendWidth},t}(GW.AbstractShape),s1=a1,l1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{x:0,y:0,r:0})},t.prototype.isInStrokeOrPath=function(e,t,n,i,r){var o=this.attr(),a=o.x,s=o.y,l=o.r,c=r/2,u=k0(a,s,e,t);return i&&n?u<=l+c:i?u<=l:!!n&&(u>=l-c&&u<=l+c)},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,i=t.y,r=t.r;e.beginPath(),e.arc(n,i,r,0,2*Math.PI,!1),e.closePath()},t}(s1),c1=l1;function u1(e,t,n,i){return e/(n*n)+t/(i*i)}var d1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.isInStrokeOrPath=function(e,t,n,i,r){var o=this.attr(),a=r/2,s=o.x,l=o.y,c=o.rx,u=o.ry,d=(e-s)*(e-s),h=(t-l)*(t-l);return i&&n?u1(d,h,c+a,u+a)<=1:i?u1(d,h,c,u)<=1:!!n&&(u1(d,h,c-a,u-a)>=1&&u1(d,h,c+a,u+a)<=1)},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,i=t.y,r=t.rx,o=t.ry;if(e.beginPath(),e.ellipse)e.ellipse(n,i,r,o,0,0,2*Math.PI,!1);else{var a=r>o?r:o,s=r>o?1:r/o,l=r>o?o/r:1;e.save(),e.translate(n,i),e.scale(s,l),e.arc(0,0,a,0,2*Math.PI),e.restore(),e.closePath()}},t}(s1),h1=d1;function f1(e){return e instanceof HTMLElement&&(0,wW.HD)(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase()}var p1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{x:0,y:0,width:0,height:0})},t.prototype.initAttrs=function(e){this._setImage(e.img)},t.prototype.isStroke=function(){return!1},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var e=this.get("canvas");e?e.draw():this.createPath(this.get("context"))}},t.prototype._setImage=function(e){var t=this,n=this.attrs;if((0,wW.HD)(e)){var i=new Image;i.onload=function(){if(t.destroyed)return!1;t.attr("img",i),t.set("loading",!1),t._afterLoading();var e=t.get("callback");e&&e.call(t)},i.crossOrigin="Anonymous",i.src=e,this.set("loading",!0)}else e instanceof Image?(n.width||(n.width=e.width),n.height||(n.height=e.height)):f1(e)&&(n.width||(n.width=Number(e.getAttribute("width"))),n.height||(n.height,Number(e.getAttribute("height"))))},t.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),"img"===t&&this._setImage(n)},t.prototype.createPath=function(e){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",e);var t=this.attr(),n=t.x,i=t.y,r=t.width,o=t.height,a=t.sx,s=t.sy,l=t.swidth,c=t.sheight,u=t.img;(u instanceof Image||f1(u))&&((0,wW.UM)(a)||(0,wW.UM)(s)||(0,wW.UM)(l)||(0,wW.UM)(c)?e.drawImage(u,n,i,r,o):e.drawImage(u,a,s,l,c,n,i,r,o))},t}(s1),g1=p1,v1=n(41622);function m1(e,t,n,i,r,o,a){var s=Math.min(e,n),l=Math.max(e,n),c=Math.min(t,i),u=Math.max(t,i),d=r/2;return o>=s-d&&o<=l+d&&a>=c-d&&a<=u+d&&v1.x1.pointToLine(e,t,n,i,o,a)<=r/2}var y1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),this.setArrow()},t.prototype.setArrow=function(){var e=this.attr(),t=e.x1,n=e.y1,i=e.x2,r=e.y2,o=e.startArrow,a=e.endArrow;o&&U0(this,e,i,r,t,n),a&&G0(this,e,t,n,i,r)},t.prototype.isInStrokeOrPath=function(e,t,n,i,r){if(!n||!r)return!1;var o=this.attr();return m1(o.x1,o.y1,o.x2,o.y2,r,e,t)},t.prototype.createPath=function(e){var t=this.attr(),n=t.x1,i=t.y1,r=t.x2,o=t.y2,a=t.startArrow,s=t.endArrow,l={dx:0,dy:0},c={dx:0,dy:0};a&&a.d&&(l=W0(n,i,r,o,t.startArrow.d)),s&&s.d&&(c=W0(n,i,r,o,t.endArrow.d)),e.beginPath(),e.moveTo(n+l.dx,i+l.dy),e.lineTo(r-c.dx,o-c.dy)},t.prototype.afterDrawPath=function(e){var t=this.get("startArrowShape"),n=this.get("endArrowShape");t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,n=e.y1,i=e.x2,r=e.y2;return v1.x1.length(t,n,i,r)},t.prototype.getPoint=function(e){var t=this.attr(),n=t.x1,i=t.y1,r=t.x2,o=t.y2;return v1.x1.pointAt(n,i,r,o,e)},t}(s1),_1=y1,b1=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,C1=/[^\s\,]+/gi;var S1=function(e){var t=e||[];return(0,wW.kJ)(t)?t:(0,wW.HD)(t)?(t=t.match(b1),(0,wW.S6)(t,(function(e,n){if((e=e.match(C1))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}(0,wW.S6)(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0};var w1=new RegExp("([a-z])[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)","ig"),k1=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*","ig");var x1=/[a-z]/;function E1(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function T1(e){var t=function(e){if(!e)return null;if((0,wW.kJ)(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(e).replace(w1,(function(e,i,r){var o=[],a=i.toLowerCase();if(r.replace(k1,(function(e,t){t&&o.push(+t)})),"m"===a&&o.length>2&&(n.push([i].concat(o.splice(0,2))),a="l",i="m"===i?"l":"L"),"o"===a&&1===o.length&&n.push([i,o[0]]),"r"===a)n.push([i].concat(o));else for(;o.length>=t[a]&&(n.push([i].concat(o.splice(0,t[a]))),t[a]););return""})),n}(e);if(!t||!t.length)return[["M",0,0]];for(var n=!1,i=0;i<t.length;i++){var r=t[i][0];if(x1.test(r)||["V","H","T","S"].indexOf(r)>=0){n=!0;break}}if(!n)return t;var o=[],a=0,s=0,l=0,c=0,u=0,d=t[0];"M"!==d[0]&&"m"!==d[0]||(l=a=+d[1],c=s=+d[2],u++,o[0]=["M",a,s]);i=u;for(var h=t.length;i<h;i++){var f=t[i],p=o[i-1],g=[],v=(r=f[0]).toUpperCase();if(r!==v)switch(g[0]=v,v){case"A":g[1]=f[1],g[2]=f[2],g[3]=f[3],g[4]=f[4],g[5]=f[5],g[6]=+f[6]+a,g[7]=+f[7]+s;break;case"V":g[1]=+f[1]+s;break;case"H":g[1]=+f[1]+a;break;case"M":l=+f[1]+a,c=+f[2]+s,g[1]=l,g[2]=c;break;default:for(var m=1,y=f.length;m<y;m++)g[m]=+f[m]+(m%2?a:s)}else g=t[i];switch(v){case"Z":a=+l,s=+c;break;case"H":g=["L",a=g[1],s];break;case"V":g=["L",a,s=g[1]];break;case"T":a=g[1],s=g[2];var _=E1([p[1],p[2]],[p[3],p[4]]);g=["Q",_[0],_[1],a,s];break;case"S":a=g[g.length-2],s=g[g.length-1];var b=p.length,C=E1([p[b-4],p[b-3]],[p[b-2],p[b-1]]);g=["C",C[0],C[1],g[1],g[2],a,s];break;case"M":l=g[g.length-2],c=g[g.length-1];break;default:a=g[g.length-2],s=g[g.length-1]}o.push(g)}return o}Math.PI;function N1(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function I1(e,t){return N1(e)*N1(t)?(e[0]*t[0]+e[1]*t[1])/(N1(e)*N1(t)):1}function D1(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(I1(e,t))}function L1(e,t){return e[0]===t[0]&&e[1]===t[1]}function O1(e,t){var n=t[1],i=t[2],r=(0,wW.wQ)((0,wW.c$)(t[3]),2*Math.PI),o=t[4],a=t[5],s=e[0],l=e[1],c=t[6],u=t[7],d=Math.cos(r)*(s-c)/2+Math.sin(r)*(l-u)/2,h=-1*Math.sin(r)*(s-c)/2+Math.cos(r)*(l-u)/2,f=d*d/(n*n)+h*h/(i*i);f>1&&(n*=Math.sqrt(f),i*=Math.sqrt(f));var p=n*n*(h*h)+i*i*(d*d),g=p?Math.sqrt((n*n*(i*i)-p)/p):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var v=i?g*n*h/i:0,m=n?g*-i*d/n:0,y=(s+c)/2+Math.cos(r)*v-Math.sin(r)*m,_=(l+u)/2+Math.sin(r)*v+Math.cos(r)*m,b=[(d-v)/n,(h-m)/i],C=[(-1*d-v)/n,(-1*h-m)/i],S=D1([1,0],b),w=D1(b,C);return I1(b,C)<=-1&&(w=Math.PI),I1(b,C)>=1&&(w=0),0===a&&w>0&&(w-=2*Math.PI),1===a&&w<0&&(w+=2*Math.PI),{cx:y,cy:_,rx:L1(e,[c,u])?0:n,ry:L1(e,[c,u])?0:i,startAngle:S,endAngle:S+w,xRotation:r,arcFlag:o,sweepFlag:a}}function R1(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}var A1={circle:function(e,t,n){return[["M",e-n,t],["A",n,n,0,1,0,e+n,t],["A",n,n,0,1,0,e-n,t]]},square:function(e,t,n){return[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]]},diamond:function(e,t,n){return[["M",e-n,t],["L",e,t-n],["L",e+n,t],["L",e,t+n],["Z"]]},triangle:function(e,t,n){var i=n*Math.sin(1/3*Math.PI);return[["M",e-n,t+i],["L",e,t-i],["L",e+n,t+i],["Z"]]},"triangle-down":function(e,t,n){var i=n*Math.sin(1/3*Math.PI);return[["M",e-n,t-i],["L",e+n,t-i],["L",e,t+i],["Z"]]}},M1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.initAttrs=function(e){this._resetParamsCache()},t.prototype._resetParamsCache=function(){this.set("paramsCache",{})},t.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),-1!==["symbol","x","y","r","radius"].indexOf(t)&&this._resetParamsCache()},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._getR=function(e){return(0,wW.UM)(e.r)?e.radius:e.r},t.prototype._getPath=function(){var e,n,i=this.attr(),r=i.x,o=i.y,a=i.symbol||"circle",s=this._getR(i);if((0,wW.mf)(a))n=T1(n=(e=a)(r,o,s));else{if(!(e=t.Symbols[a]))return console.warn(a+" marker is not supported."),null;n=e(r,o,s)}return n},t.prototype.createPath=function(e){t1(this,e,{path:this._getPath()},this.get("paramsCache"))},t.Symbols=A1,t}(s1),P1=M1;function Z1(e,t,n){var i=(0,GW.getOffScreenContext)();return e.createPath(i),i.isPointInPath(t,n)}function F1(e){return Math.abs(e)<1e-6?0:e<0?-1:1}function B1(e,t,n){return(n[0]-e[0])*(t[1]-e[1])===(t[0]-e[0])*(n[1]-e[1])&&Math.min(e[0],t[0])<=n[0]&&n[0]<=Math.max(e[0],t[0])&&Math.min(e[1],t[1])<=n[1]&&n[1]<=Math.max(e[1],t[1])}function H1(e,t,n){var i=!1,r=e.length;if(r<=2)return!1;for(var o=0;o<r;o++){var a=e[o],s=e[(o+1)%r];if(B1(a,s,[t,n]))return!0;F1(a[1]-n)>0!==F1(s[1]-n)>0&&F1(t-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(i=!i)}return i}function z1(e,t,n,i,r,o,a,s){var l=(Math.atan2(s-t,a-e)+2*Math.PI)%(2*Math.PI);if(l<i||l>r)return!1;var c={x:e+n*Math.cos(l),y:t+n*Math.sin(l)};return k0(c.x,c.y,a,s)<=o/2}var j1=xK.vs;var V1=(0,SW.pi)({hasArc:function(e){for(var t=!1,n=e.length,i=0;i<n;i++){var r=e[i][0];if("C"===r||"A"===r||"Q"===r){t=!0;break}}return t},extractPolygons:function(e){for(var t=e.length,n=[],i=[],r=[],o=0;o<t;o++){var a=e[o],s=a[0];"M"===s?(r.length&&(i.push(r),r=[]),r.push([a[1],a[2]])):"Z"===s?r.length&&(n.push(r),r=[]):r.push([a[1],a[2]])}return r.length>0&&i.push(r),{polygons:n,polylines:i}},isPointInStroke:function(e,t,n,i,r){for(var o=!1,a=t/2,s=0;s<e.length;s++){var l=e[s],c=l.currentPoint,u=l.params,d=l.prePoint,h=l.box;if(!h||x0(h.x-a,h.y-a,h.width+t,h.height+t,n,i)){switch(l.command){case"L":case"Z":o=m1(d[0],d[1],c[0],c[1],t,n,i);break;case"Q":o=v1.lD.pointDistance(d[0],d[1],u[1],u[2],u[3],u[4],n,i)<=t/2;break;case"C":o=v1.Ll.pointDistance(d[0],d[1],u[1],u[2],u[3],u[4],u[5],u[6],n,i,r)<=t/2;break;case"A":var f=l.arcParams,p=f.cx,g=f.cy,v=f.rx,m=f.ry,y=f.startAngle,_=f.endAngle,b=f.xRotation,C=[n,i,1],S=v>m?v:m;wK(C,C,j1(null,[["t",-p,-g],["r",-b],["s",1/(v>m?1:v/m),1/(v>m?m/v:1)]])),o=z1(0,0,S,y,_,t,C[0],C[1])}if(o)break}}return o}},GW.PathUtil);function W1(e,t,n){for(var i=!1,r=0;r<e.length;r++){if(i=H1(e[r],t,n))break}return i}var U1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this._setPathArr(e.path),this.setArrow()},t.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),"path"===t&&this._setPathArr(n),this.setArrow()},t.prototype._setPathArr=function(e){this.attrs.path=T1(e);var t=V1.hasArc(e);this.set("hasArc",t),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},t.prototype.getSegments=function(){var e=this.get("segements");return e||(e=function(e){for(var t=[],n=null,i=null,r=null,o=0,a=(e=S1(e)).length,s=0;s<a;s++){var l=e[s];i=e[s+1];var c=l[0],u={command:c,prePoint:n,params:l,startTangent:null,endTangent:null};switch(c){case"M":r=[l[1],l[2]],o=s;break;case"A":var d=O1(n,l);u.arcParams=d}if("Z"===c)n=r,i=e[o+1];else{var h=l.length;n=[l[h-2],l[h-1]]}i&&"Z"===i[0]&&(i=e[o],t[o]&&(t[o].prePoint=n)),u.currentPoint=n,t[o]&&L1(n,t[o].currentPoint)&&(t[o].prePoint=u.prePoint);var f=i?[i[i.length-2],i[i.length-1]]:null;u.nextPoint=f;var p=u.prePoint;if(["L","H","V"].includes(c))u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]];else if("Q"===c){var g=[l[1],l[2]];u.startTangent=[p[0]-g[0],p[1]-g[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]]}else if("T"===c)g=R1((y=t[s-1]).currentPoint,p),"Q"===y.command?(u.command="Q",u.startTangent=[p[0]-g[0],p[1]-g[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]]):(u.command="TL",u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]]);else if("C"===c){var v=[l[1],l[2]],m=[l[3],l[4]];u.startTangent=[p[0]-v[0],p[1]-v[1]],u.endTangent=[n[0]-m[0],n[1]-m[1]],0===u.startTangent[0]&&0===u.startTangent[1]&&(u.startTangent=[v[0]-m[0],v[1]-m[1]]),0===u.endTangent[0]&&0===u.endTangent[1]&&(u.endTangent=[m[0]-v[0],m[1]-v[1]])}else if("S"===c){var y;v=R1((y=t[s-1]).currentPoint,p),m=[l[1],l[2]],"C"===y.command?(u.command="C",u.startTangent=[p[0]-v[0],p[1]-v[1]],u.endTangent=[n[0]-m[0],n[1]-m[1]]):(u.command="SQ",u.startTangent=[p[0]-m[0],p[1]-m[1]],u.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("A"===c){var _=.001,b=u.arcParams||{},C=b.cx,S=void 0===C?0:C,w=b.cy,k=void 0===w?0:w,x=b.rx,E=void 0===x?0:x,T=b.ry,N=void 0===T?0:T,I=b.sweepFlag,D=void 0===I?0:I,L=b.startAngle,O=void 0===L?0:L,R=b.endAngle,A=void 0===R?0:R;0===D&&(_*=-1);var M=E*Math.cos(O-_)+S,P=N*Math.sin(O-_)+k;u.startTangent=[M-r[0],P-r[1]];var Z=E*Math.cos(O+A+_)+S,F=N*Math.sin(O+A-_)+k;u.endTangent=[p[0]-Z,p[1]-F]}t.push(u)}return t}(this.attr("path")),this.set("segments",e)),e},t.prototype.setArrow=function(){var e,t=this.attr(),n=t.startArrow,i=t.endArrow;n&&U0(this,t,(e=this.getStartTangent())[0][0],e[0][1],e[1][0],e[1][1]);i&&G0(this,t,(e=this.getEndTangent())[0][0],e[0][1],e[1][0],e[1][1])},t.prototype.isInStrokeOrPath=function(e,t,n,i,r){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var l=this.getTotalLength();s=V1.isPointInStroke(o,r,e,t,l)}if(!s&&i)if(a)s=Z1(this,e,t);else{var c=this.attr("path"),u=V1.extractPolygons(c);s=W1(u.polygons,e,t)||W1(u.polylines,e,t)}return s},t.prototype.createPath=function(e){t1(this,e,this.attr(),this.get("paramsCache"))},t.prototype.afterDrawPath=function(e){var t=this.get("startArrowShape"),n=this.get("endArrowShape");t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.get("totalLength");return(0,wW.UM)(e)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):e},t.prototype.getPoint=function(e){var t,n,i=this.get("tCache");i||(this._calculateCurve(),this._setTcache(),i=this.get("tCache"));var r=this.get("curve");if(!i||0===i.length)return r?{x:r[0][1],y:r[0][2]}:null;(0,wW.S6)(i,(function(i,r){e>=i[0]&&e<=i[1]&&(t=(e-i[0])/(i[1]-i[0]),n=r)}));var o=r[n];if((0,wW.UM)(o)||(0,wW.UM)(n))return null;var a=o.length,s=r[n+1];return v1.Ll.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],t)},t.prototype._calculateCurve=function(){var e=this.attr().path;this.set("curve",V1.pathToCurve(e))},t.prototype._setTcache=function(){var e,t,n,i,r=0,o=0,a=[],s=this.get("curve");s&&((0,wW.S6)(s,(function(e,t){n=s[t+1],i=e.length,n&&(r+=v1.Ll.length(e[i-2],e[i-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",r),0!==r?((0,wW.S6)(s,(function(l,c){n=s[c+1],i=l.length,n&&((e=[])[0]=o/r,t=v1.Ll.length(l[i-2],l[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=t||0,e[1]=o/r,a.push(e))})),this.set("tCache",a)):this.set("tCache",[]))},t.prototype.getStartTangent=function(){var e,t=this.getSegments();if(t.length>1){var n=t[0].currentPoint,i=t[1].currentPoint,r=t[1].startTangent;e=[],r?(e.push([n[0]-r[0],n[1]-r[1]]),e.push([n[0],n[1]])):(e.push([i[0],i[1]]),e.push([n[0],n[1]]))}return e},t.prototype.getEndTangent=function(){var e,t=this.getSegments(),n=t.length;if(n>1){var i=t[n-2].currentPoint,r=t[n-1].currentPoint,o=t[n-1].endTangent;e=[],o?(e.push([r[0]-o[0],r[1]-o[1]]),e.push([r[0],r[1]])):(e.push([i[0],i[1]]),e.push([r[0],r[1]]))}return e},t}(s1),G1=U1;function K1(e,t,n,i,r){var o=e.length;if(o<2)return!1;for(var a=0;a<o-1;a++){if(m1(e[a][0],e[a][1],e[a+1][0],e[a+1][1],t,n,i))return!0}if(r){var s=e[0],l=e[o-1];if(m1(s[0],s[1],l[0],l[1],t,n,i))return!0}return!1}var Y1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.isInStrokeOrPath=function(e,t,n,i,r){var o=this.attr().points,a=!1;return n&&(a=K1(o,r,e,t,!0)),!a&&i&&(a=H1(o,e,t)),a},t.prototype.createPath=function(e){var t=this.attr().points;if(!(t.length<2)){e.beginPath();for(var n=0;n<t.length;n++){var i=t[n];0===n?e.moveTo(i[0],i[1]):e.lineTo(i[0],i[1])}e.closePath()}},t}(s1),q1=Y1,$1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),this.setArrow(),-1!==["points"].indexOf(t)&&this._resetCache()},t.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},t.prototype.setArrow=function(){var e=this.attr(),t=this.attrs,n=t.points,i=t.startArrow,r=t.endArrow,o=n.length,a=n[0][0],s=n[0][1],l=n[o-1][0],c=n[o-1][1];i&&U0(this,e,n[1][0],n[1][1],a,s),r&&G0(this,e,n[o-2][0],n[o-2][1],l,c)},t.prototype.isFill=function(){return!1},t.prototype.isInStrokeOrPath=function(e,t,n,i,r){return!(!n||!r)&&K1(this.attr().points,r,e,t,!1)},t.prototype.isStroke=function(){return!0},t.prototype.createPath=function(e){var t=this.attr(),n=t.points,i=t.startArrow,r=t.endArrow,o=n.length;if(!(n.length<2)){var a,s=n[0][0],l=n[0][1],c=n[o-1][0],u=n[o-1][1];if(i&&i.d)s+=(a=W0(s,l,n[1][0],n[1][1],i.d)).dx,l+=a.dy;if(r&&r.d)c-=(a=W0(n[o-2][0],n[o-2][1],c,u,r.d)).dx,u-=a.dy;e.beginPath(),e.moveTo(s,l);for(var d=0;d<o-1;d++){var h=n[d];e.lineTo(h[0],h[1])}e.lineTo(c,u)}},t.prototype.afterDrawPath=function(e){var t=this.get("startArrowShape"),n=this.get("endArrowShape");t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.attr().points,t=this.get("totalLength");return(0,wW.UM)(t)?(this.set("totalLength",v1.aH.length(e)),this.get("totalLength")):t},t.prototype.getPoint=function(e){var t,n,i=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),(0,wW.S6)(r,(function(i,r){e>=i[0]&&e<=i[1]&&(t=(e-i[0])/(i[1]-i[0]),n=r)})),v1.x1.pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],t)},t.prototype._setTcache=function(){var e=this.attr().points;if(e&&0!==e.length){var t=this.getTotalLength();if(!(t<=0)){var n,i,r=0,o=[];(0,wW.S6)(e,(function(a,s){e[s+1]&&((n=[])[0]=r/t,i=v1.x1.length(a[0],a[1],e[s+1][0],e[s+1][1]),r+=i,n[1]=r/t,o.push(n))})),this.set("tCache",o)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},t}(s1),X1=$1;var Q1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.isInStrokeOrPath=function(e,t,n,i,r){var o=this.attr(),a=o.x,s=o.y,l=o.width,c=o.height,u=o.radius;if(u){var d=!1;return n&&(d=function(e,t,n,i,r,o,a,s){return m1(e+r,t,e+n-r,t,o,a,s)||m1(e+n,t+r,e+n,t+i-r,o,a,s)||m1(e+n-r,t+i,e+r,t+i,o,a,s)||m1(e,t+i-r,e,t+r,o,a,s)||z1(e+n-r,t+r,r,1.5*Math.PI,2*Math.PI,o,a,s)||z1(e+n-r,t+i-r,r,0,.5*Math.PI,o,a,s)||z1(e+r,t+i-r,r,.5*Math.PI,Math.PI,o,a,s)||z1(e+r,t+r,r,Math.PI,1.5*Math.PI,o,a,s)}(a,s,l,c,u,r,e,t)),!d&&i&&(d=Z1(this,e,t)),d}var h=r/2;return i&&n?x0(a-h,s-h,l+h,c+h,e,t):i?x0(a,s,l,c,e,t):n?function(e,t,n,i,r,o,a){var s=r/2;return x0(e-s,t-s,n,r,o,a)||x0(e+n-s,t-s,r,i,o,a)||x0(e+s,t+i-s,n,r,o,a)||x0(e-s,t+s,r,i,o,a)}(a,s,l,c,r,e,t):void 0},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,i=t.y,r=t.width,o=t.height,a=t.radius;if(e.beginPath(),0===a)e.rect(n,i,r,o);else{var s=function(e){var t=0,n=0,i=0,r=0;return(0,wW.kJ)(e)?1===e.length?t=n=i=r=e[0]:2===e.length?(t=i=e[0],n=r=e[1]):3===e.length?(t=e[0],n=r=e[1],i=e[2]):(t=e[0],n=e[1],i=e[2],r=e[3]):t=n=i=r=e,[t,n,i,r]}(a),l=s[0],c=s[1],u=s[2],d=s[3];e.moveTo(n+l,i),e.lineTo(n+r-c,i),0!==c&&e.arc(n+r-c,i+c,c,-Math.PI/2,0),e.lineTo(n+r,i+o-u),0!==u&&e.arc(n+r-u,i+o-u,u,0,Math.PI/2),e.lineTo(n+d,i+o),0!==d&&e.arc(n+d,i+o-d,d,Math.PI/2,Math.PI),e.lineTo(n,i+l),0!==l&&e.arc(n+l,i+l,l,Math.PI,1.5*Math.PI),e.closePath()}},t}(s1),J1=Q1,e2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.isOnlyHitBox=function(){return!0},t.prototype.initAttrs=function(e){this._assembleFont(),e.text&&this._setText(e.text)},t.prototype._assembleFont=function(){var e=this.attrs;e.font=(0,GW.assembleFont)(e)},t.prototype._setText=function(e){var t=null;(0,wW.HD)(e)&&-1!==e.indexOf("\n")&&(t=e.split("\n")),this.set("textArr",t)},t.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),t.startsWith("font")&&this._assembleFont(),"text"===t&&this._setText(n)},t.prototype._getSpaceingY=function(){var e=this.attrs,t=e.lineHeight,n=1*e.fontSize;return t?t-n:.14*n},t.prototype._drawTextArr=function(e,t,n){var i,r=this.attrs,o=r.textBaseline,a=r.x,s=r.y,l=1*r.fontSize,c=this._getSpaceingY(),u=(0,GW.getTextHeight)(r.text,r.fontSize,r.lineHeight);(0,wW.S6)(t,(function(t,r){i=s+r*(c+l)-u+l,"middle"===o&&(i+=u-l-(u-l)/2),"top"===o&&(i+=u-l),(0,wW.UM)(t)||(n?e.fillText(t,a,i):e.strokeText(t,a,i))}))},t.prototype._drawText=function(e,t){var n=this.attr(),i=n.x,r=n.y,o=this.get("textArr");if(o)this._drawTextArr(e,o,t);else{var a=n.text;(0,wW.UM)(a)||(t?e.fillText(a,i,r):e.strokeText(a,i,r))}},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,i=t.opacity,r=t.strokeOpacity,o=t.fillOpacity;this.isStroke()&&n>0&&((0,wW.UM)(r)||1===r||(e.globalAlpha=i),this.stroke(e)),this.isFill()&&((0,wW.UM)(o)||1===o?this.fill(e):(e.globalAlpha=o,this.fill(e),e.globalAlpha=i)),this.afterDrawPath(e)},t.prototype.fill=function(e){this._drawText(e,!0)},t.prototype.stroke=function(e){this._drawText(e,!1)},t}(s1),t2=e2;function n2(e,t,n){var i=e.getTotalMatrix();if(i){var r=function(e,t){if(t){var n=(0,GW.invert)(t);return(0,GW.multiplyVec2)(n,e)}return e}([t,n,1],i);return[r[0],r[1]]}return[t,n]}function i2(e,t,n){if(e.isCanvas&&e.isCanvas())return!0;if(!(0,GW.isAllowCapture)(e)||!1===e.cfg.isInView)return!1;if(e.cfg.clipShape){var i=n2(e,t,n),r=i[0],o=i[1];if(e.isClipped(r,o))return!1}var a=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return t>=a.minX&&t<=a.maxX&&n>=a.minY&&n<=a.maxY}function r2(e,t,n){if(!i2(e,t,n))return null;for(var i=null,r=e.getChildren(),o=r.length-1;o>=0;o--){var a=r[o];if(a.isGroup())i=r2(a,t,n);else if(i2(a,t,n)){var s=a,l=n2(a,t,n),c=l[0],u=l[1];s.isInShape(c,u)&&(i=a)}if(i)break}return i}var o2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},t.prototype.onCanvasChange=function(e){"attr"!==e&&"sort"!==e&&"changeSize"!==e||(this.set("refreshElements",[this]),this.draw())},t.prototype.getShapeBase=function(){return c},t.prototype.getGroupBase=function(){return o1},t.prototype.getPixelRatio=function(){var e=this.get("pixelRatio")||(window?window.devicePixelRatio:1);return e>=1?Math.ceil(e):1},t.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},t.prototype.createDom=function(){var e=document.createElement("canvas"),t=e.getContext("2d");return this.set("context",t),e},t.prototype.setDOMSize=function(t,n){e.prototype.setDOMSize.call(this,t,n);var i=this.get("context"),r=this.get("el"),o=this.getPixelRatio();r.width=o*t,r.height=o*n,o>1&&i.scale(o,o)},t.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),n=this.get("el");t.clearRect(0,0,n.width,n.height)},t.prototype.getShape=function(t,n){return this.get("quickHit")?r2(this,t,n):e.prototype.getShape.call(this,t,n,null)},t.prototype._getRefreshRegion=function(){var e,t=this.get("refreshElements"),n=this.getViewRange();t.length&&t[0]===this?e=n:(e=function(e){if(!e.length)return null;var t=[],n=[],i=[],r=[];return(0,wW.S6)(e,(function(e){var o=i1(e);o&&(t.push(o.minX),n.push(o.minY),i.push(o.maxX),r.push(o.maxY))})),{minX:(0,wW.VV)(t),minY:(0,wW.VV)(n),maxX:(0,wW.Fp)(i),maxY:(0,wW.Fp)(r)}}(t),e&&(e.minX=Math.floor(e.minX),e.minY=Math.floor(e.minY),e.maxX=Math.ceil(e.maxX),e.maxY=Math.ceil(e.maxY),e.maxY+=1,this.get("clipView")&&(e=function(e,t){return e&&t&&E0(e,t)?{minX:Math.max(e.minX,t.minX),minY:Math.max(e.minY,t.minY),maxX:Math.min(e.maxX,t.maxX),maxY:Math.min(e.maxY,t.maxY)}:null}(e,n))));return e},t.prototype.refreshElement=function(e){this.get("refreshElements").push(e)},t.prototype._clearFrame=function(){var e=this.get("drawFrame");e&&((0,wW.VS)(e),this.set("drawFrame",null),this.set("refreshElements",[]))},t.prototype.draw=function(){var e=this.get("drawFrame");this.get("autoDraw")&&e||this._startDraw()},t.prototype._drawAll=function(){var e=this.get("context"),t=this.get("el"),n=this.getChildren();e.clearRect(0,0,t.width,t.height),Y0(e,this),q0(e,n),this.set("refreshElements",[])},t.prototype._drawRegion=function(){var e=this.get("context"),t=this.get("refreshElements"),n=this.getChildren(),i=this._getRefreshRegion();i?(e.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),e.save(),e.beginPath(),e.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),e.clip(),Y0(e,this),$0(this,n,i),q0(e,n,i),e.restore()):t.length&&Q0(t),(0,wW.S6)(t,(function(e){e.get("hasChanged")&&e.set("hasChanged",!1)})),this.set("refreshElements",[])},t.prototype._startDraw=function(){var e=this,t=this.get("drawFrame");t||(t=(0,wW.U7)((function(){e.get("localRefresh")?e._drawRegion():e._drawAll(),e.set("drawFrame",null)})),this.set("drawFrame",t))},t.prototype.skipDraw=function(){},t.prototype.removeDom=function(){var e=this.get("el");e.width=0,e.height=0,e.parentNode.removeChild(e)},t}(GW.AbstractCanvas),a2=o2,s2="0.5.12",l2={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},c2={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function u2(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function d2(e){var t=l2[e.type],n=e.getParent();if(!t)throw new Error("the type "+e.type+" is not supported by svg");var i=u2(t);if(e.get("id")&&(i.id=e.get("id")),e.set("el",i),e.set("attrs",{}),n){var r=n.get("el");r||(r=n.createDom(),n.set("el",r)),r.appendChild(i)}return i}function h2(e,t){var n=e.get("el"),i=(0,wW.qo)(n.children).sort(t),r=document.createDocumentFragment();i.forEach((function(e){r.appendChild(e)})),n.appendChild(r)}function f2(e){var t=e.attr().matrix;if(t){for(var n=e.cfg.el,i=[],r=0;r<9;r+=3)i.push(t[r]+","+t[r+1]);-1===(i=i.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+i+")"):console.warn("invalid matrix:",t)}}function p2(e,t){var n=e.getClip(),i=e.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){d2(n),n.createPath(t);var r=t.addClip(n);i.setAttribute("clip-path","url(#"+r+")")}}else i.removeAttribute("clip-path")}function g2(e,t){t.forEach((function(t){t.draw(e)}))}function v2(e,t){var n=e.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context"),r=e.getParent(),o=r?r.getChildren():[n],a=e.get("el");if("remove"===t)if(e.get("isClipShape")){var s=a&&a.parentNode,l=s&&s.parentNode;s&&l&&l.removeChild(s)}else a&&a.parentNode&&a.parentNode.removeChild(a);else if("show"===t)a.setAttribute("visibility","visible");else if("hide"===t)a.setAttribute("visibility","hidden");else if("zIndex"===t)!function(e,t){var n=e.parentNode,i=Array.from(n.childNodes).filter((function(e){return 1===e.nodeType&&"defs"!==e.nodeName.toLowerCase()})),r=i[t],o=i.indexOf(e);if(r){if(o>t)n.insertBefore(e,r);else if(o<t){var a=i[t+1];a?n.insertBefore(e,a):n.appendChild(e)}}else n.appendChild(e)}(a,o.indexOf(e));else if("sort"===t){var c=e.get("children");c&&c.length&&h2(e,(function(e,t){return c.indexOf(e)-c.indexOf(t)?1:0}))}else"clear"===t?a&&(a.innerHTML=""):"matrix"===t?f2(e):"clip"===t?p2(e,i):"attr"===t||"add"===t&&e.draw(i)}}var m2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.isEntityGroup=function(){return!0},t.prototype.createDom=function(){var e=u2("g");this.set("el",e);var t=this.getParent();if(t){var n=t.get("el");n||(n=t.createDom(),t.set("el",n)),n.appendChild(e)}return e},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.createPath(i,t)}},t.prototype.onCanvasChange=function(e){v2(this,e)},t.prototype.getShapeBase=function(){return d},t.prototype.getGroupBase=function(){return t},t.prototype.draw=function(e){var t=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),p2(this,e),this.createPath(e),t.length&&g2(e,t))},t.prototype.createPath=function(e,t){var n=this.attr(),i=this.get("el");(0,wW.S6)(t||n,(function(e,t){c2[t]&&i.setAttribute(c2[t],e)})),f2(this)},t}(GW.AbstractGroup),y2=m2,_2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="svg",t.canFill=!1,t.canStroke=!1,t}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.draw(i,t)}},t.prototype.getShapeBase=function(){return d},t.prototype.getGroupBase=function(){return y2},t.prototype.onCanvasChange=function(e){v2(this,e)},t.prototype.calculateBBox=function(){var e=this.get("el"),t=null;if(e)t=e.getBBox();else{var n=(0,GW.getBBoxMethod)(this.get("type"));n&&(t=n(this))}if(t){var i=t.x,r=t.y,o=t.width,a=t.height,s=this.getHitLineWidth(),l=s/2,c=i-l,u=r-l;return{x:c,y:u,minX:c,minY:u,maxX:i+o+l,maxY:r+a+l,width:o+s,height:a+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},t.prototype.isFill=function(){var e=this.attr(),t=e.fill,n=e.fillStyle;return(t||n||this.isClipShape())&&this.canFill},t.prototype.isStroke=function(){var e=this.attr(),t=e.stroke,n=e.strokeStyle;return(t||n)&&this.canStroke},t.prototype.draw=function(e,t){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||d2(this),p2(this,e),this.createPath(e,t),this.shadow(e,t),this.strokeAndFill(e,t),this.transform(t))},t.prototype.createPath=function(e,t){},t.prototype.strokeAndFill=function(e,t){var n=t||this.attr(),i=n.fill,r=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,l=n.strokeOpacity,c=n.lineWidth,u=this.get("el");this.canFill&&(t?"fill"in n?this._setColor(e,"fill",i):"fillStyle"in n&&this._setColor(e,"fill",r):this._setColor(e,"fill",i||r),s&&u.setAttribute(c2.fillOpacity,s)),this.canStroke&&c>0&&(t?"stroke"in n?this._setColor(e,"stroke",o):"strokeStyle"in n&&this._setColor(e,"stroke",a):this._setColor(e,"stroke",o||a),l&&u.setAttribute(c2.strokeOpacity,l),c&&u.setAttribute(c2.lineWidth,c))},t.prototype._setColor=function(e,t,n){var i=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(r=e.find("gradient",n))||(r=e.addGradient(n)),i.setAttribute(c2[t],"url(#"+r+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var r;(r=e.find("pattern",n))||(r=e.addPattern(n)),i.setAttribute(c2[t],"url(#"+r+")")}else i.setAttribute(c2[t],n);else i.setAttribute(c2[t],"none")},t.prototype.shadow=function(e,t){var n=this.attr(),i=t||n,r=i.shadowOffsetX,o=i.shadowOffsetY,a=i.shadowBlur,s=i.shadowColor;(r||o||a||s)&&function(e,t){var n=e.cfg.el,i=e.attr(),r={dx:i.shadowOffsetX,dy:i.shadowOffsetY,blur:i.shadowBlur,color:i.shadowColor};if(r.dx||r.dy||r.blur||r.color){var o=t.find("filter",r);o||(o=t.addShadow(r)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}(this,e)},t.prototype.transform=function(e){var t=this.attr();(e||t).matrix&&f2(this)},t.prototype.isInShape=function(e,t){return this.isPointInPath(e,t)},t.prototype.isPointInPath=function(e,t){var n=this.get("el"),i=this.get("canvas").get("el").getBoundingClientRect(),r=e+i.left,o=t+i.top,a=document.elementFromPoint(r,o);return!(!a||!a.isEqualNode(n))},t.prototype.getHitLineWidth=function(){var e=this.attrs,t=e.lineWidth,n=e.lineAppendWidth;return this.isStroke()?t+n:0},t}(GW.AbstractShape),b2=_2,C2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{x:0,y:0,r:0})},t.prototype.createPath=function(e,t){var n=this.attr(),i=this.get("el");(0,wW.S6)(t||n,(function(e,t){"x"===t||"y"===t?i.setAttribute("c"+t,e):c2[t]&&i.setAttribute(c2[t],e)}))},t}(b2),S2=C2,w2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return(0,SW.ZT)(t,e),t.prototype.createPath=function(e,t){var n=this.attr(),i=this.get("el");if((0,wW.S6)(t||n,(function(e,t){c2[t]&&i.setAttribute(c2[t],e)})),"function"===typeof n.html){var r=n.html.call(this,n);if(r instanceof Element||r instanceof HTMLDocument){for(var o=i.childNodes,a=o.length-1;a>=0;a--)i.removeChild(o[a]);i.appendChild(r)}else i.innerHTML=r}else i.innerHTML=n.html},t}(b2),k2=w2,x2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.createPath=function(e,t){var n=this.attr(),i=this.get("el");(0,wW.S6)(t||n,(function(e,t){"x"===t||"y"===t?i.setAttribute("c"+t,e):c2[t]&&i.setAttribute(c2[t],e)}))},t}(b2),E2=x2,T2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{x:0,y:0,width:0,height:0})},t.prototype.createPath=function(e,t){var n=this,i=this.attr(),r=this.get("el");(0,wW.S6)(t||i,(function(e,t){"img"===t?n._setImage(i.img):c2[t]&&r.setAttribute(c2[t],e)}))},t.prototype.setAttr=function(e,t){this.attrs[e]=t,"img"===e&&this._setImage(t)},t.prototype._setImage=function(e){var t=this.attr(),n=this.get("el");if((0,wW.HD)(e))n.setAttribute("href",e);else if(e instanceof window.Image)t.width||(n.setAttribute("width",e.width),this.attr("width",e.width)),t.height||(n.setAttribute("height",e.height),this.attr("height",e.height)),n.setAttribute("href",e.src);else if(e instanceof HTMLElement&&(0,wW.HD)(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())n.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+e.width),i.setAttribute("height",""+e.height),i.getContext("2d").putImageData(e,0,0),t.width||(n.setAttribute("width",""+e.width),this.attr("width",e.width)),t.height||(n.setAttribute("height",""+e.height),this.attr("height",e.height)),n.setAttribute("href",i.toDataURL())}},t}(b2),N2=T2,I2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var n=this.attr(),i=this.get("el");(0,wW.S6)(t||n,(function(t,r){if("startArrow"===r||"endArrow"===r)if(t){var o=(0,wW.Kn)(t)?e.addArrow(n,c2[r]):e.getDefaultArrow(n,c2[r]);i.setAttribute(c2[r],"url(#"+o+")")}else i.removeAttribute(c2[r]);else c2[r]&&i.setAttribute(c2[r],t)}))},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,n=e.y1,i=e.x2,r=e.y2;return v1.x1.length(t,n,i,r)},t.prototype.getPoint=function(e){var t=this.attr(),n=t.x1,i=t.y1,r=t.x2,o=t.y2;return v1.x1.pointAt(n,i,r,o,e)},t}(b2),D2=I2,L2={circle:function(e,t,n){return[["M",e,t],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(e,t,n){return[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]]},diamond:function(e,t,n){return[["M",e-n,t],["L",e,t-n],["L",e+n,t],["L",e,t+n],["Z"]]},triangle:function(e,t,n){var i=n*Math.sin(1/3*Math.PI);return[["M",e-n,t+i],["L",e,t-i],["L",e+n,t+i],["z"]]},triangleDown:function(e,t,n){var i=n*Math.sin(1/3*Math.PI);return[["M",e-n,t-i],["L",e+n,t-i],["L",e,t+i],["Z"]]}},O2={get:function(e){return L2[e]},register:function(e,t){L2[e]=t},remove:function(e){delete L2[e]},getAll:function(){return L2}},R2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return(0,SW.ZT)(t,e),t.prototype.createPath=function(e){this.get("el").setAttribute("d",this._assembleMarker())},t.prototype._assembleMarker=function(){var e=this._getPath();return(0,wW.kJ)(e)?e.map((function(e){return e.join(" ")})).join(""):e},t.prototype._getPath=function(){var e,t=this.attr(),n=t.x,i=t.y,r=t.r||t.radius,o=t.symbol||"circle";return(e=(0,wW.mf)(o)?o:O2.get(o))?e(n,i,r):(console.warn(e+" symbol is not exist."),null)},t.symbolsFactory=O2,t}(b2),A2=R2,M2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var n=this,i=this.attr(),r=this.get("el");(0,wW.S6)(t||i,(function(t,o){if("path"===o&&(0,wW.kJ)(t))r.setAttribute("d",n._formatPath(t));else if("startArrow"===o||"endArrow"===o)if(t){var a=(0,wW.Kn)(t)?e.addArrow(i,c2[o]):e.getDefaultArrow(i,c2[o]);r.setAttribute(c2[o],"url(#"+a+")")}else r.removeAttribute(c2[o]);else c2[o]&&r.setAttribute(c2[o],t)}))},t.prototype._formatPath=function(e){var t=e.map((function(e){return e.join(" ")})).join("");return~t.indexOf("NaN")?"":t},t.prototype.getTotalLength=function(){var e=this.get("el");return e?e.getTotalLength():null},t.prototype.getPoint=function(e){var t=this.get("el"),n=this.getTotalLength();if(0===n)return null;var i=t?t.getPointAtLength(e*n):null;return i?{x:i.x,y:i.y}:null},t}(b2),P2=M2,Z2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return(0,SW.ZT)(t,e),t.prototype.createPath=function(e,t){var n=this.attr(),i=this.get("el");(0,wW.S6)(t||n,(function(e,t){"points"===t&&(0,wW.kJ)(e)&&e.length>=2?i.setAttribute("points",e.map((function(e){return e[0]+","+e[1]})).join(" ")):c2[t]&&i.setAttribute(c2[t],e)}))},t}(b2),F2=Z2,B2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{startArrow:!1,endArrow:!1})},t.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),-1!==["points"].indexOf(t)&&this._resetCache()},t.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},t.prototype.createPath=function(e,t){var n=this.attr(),i=this.get("el");(0,wW.S6)(t||n,(function(e,t){"points"===t&&(0,wW.kJ)(e)&&e.length>=2?i.setAttribute("points",e.map((function(e){return e[0]+","+e[1]})).join(" ")):c2[t]&&i.setAttribute(c2[t],e)}))},t.prototype.getTotalLength=function(){var e=this.attr().points,t=this.get("totalLength");return(0,wW.UM)(t)?(this.set("totalLength",v1.aH.length(e)),this.get("totalLength")):t},t.prototype.getPoint=function(e){var t,n,i=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),(0,wW.S6)(r,(function(i,r){e>=i[0]&&e<=i[1]&&(t=(e-i[0])/(i[1]-i[0]),n=r)})),v1.x1.pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],t)},t.prototype._setTcache=function(){var e=this.attr().points;if(e&&0!==e.length){var t=this.getTotalLength();if(!(t<=0)){var n,i,r=0,o=[];(0,wW.S6)(e,(function(a,s){e[s+1]&&((n=[])[0]=r/t,i=v1.x1.length(a[0],a[1],e[s+1][0],e[s+1][1]),r+=i,n[1]=r/t,o.push(n))})),this.set("tCache",o)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},t}(b2),H2=B2;var z2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.createPath=function(e,t){var n=this,i=this.attr(),r=this.get("el"),o=!1,a=["x","y","width","height","radius"];(0,wW.S6)(t||i,(function(e,t){-1===a.indexOf(t)||o?-1===a.indexOf(t)&&c2[t]&&r.setAttribute(c2[t],e):(r.setAttribute("d",n._assembleRect(i)),o=!0)}))},t.prototype._assembleRect=function(e){var t=e.x,n=e.y,i=e.width,r=e.height,o=e.radius;if(!o)return"M "+t+","+n+" l "+i+",0 l 0,"+r+" l"+-i+" 0 z";var a=function(e){var t=0,n=0,i=0,r=0;return(0,wW.kJ)(e)?1===e.length?t=n=i=r=e[0]:2===e.length?(t=i=e[0],n=r=e[1]):3===e.length?(t=e[0],n=r=e[1],i=e[2]):(t=e[0],n=e[1],i=e[2],r=e[3]):t=n=i=r=e,{r1:t,r2:n,r3:i,r4:r}}(o);return(0,wW.kJ)(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o,[["M "+(t+a.r1)+","+n],["l "+(i-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(r-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-i)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-r)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]].join(" ")},t}(b2),j2=z2,V2=n(59761),W2={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},U2={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},G2={left:"left",start:"left",center:"middle",right:"end",end:"end"},K2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return(0,SW.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,SW.pi)((0,SW.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.createPath=function(e,t){var n=this,i=this.attr(),r=this.get("el");this._setFont(),(0,wW.S6)(t||i,(function(e,t){"text"===t?n._setText(""+e):"matrix"===t&&e?f2(n):c2[t]&&r.setAttribute(c2[t],e)})),r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},t.prototype._setFont=function(){var e=this.get("el"),t=this.attr(),n=t.textBaseline,i=t.textAlign,r=(0,V2.qY)();r&&"firefox"===r.name?e.setAttribute("dominant-baseline",U2[n]||"alphabetic"):e.setAttribute("alignment-baseline",W2[n]||"baseline"),e.setAttribute("text-anchor",G2[i]||"left")},t.prototype._setText=function(e){var t=this.get("el"),n=this.attr(),i=n.x,r=n.textBaseline,o=void 0===r?"bottom":r;if(e)if(~e.indexOf("\n")){var a=e.split("\n"),s=a.length-1,l="";(0,wW.S6)(a,(function(e,t){0===t?"alphabetic"===o?l+='<tspan x="'+i+'" dy="'+-s+'em">'+e+"</tspan>":"top"===o?l+='<tspan x="'+i+'" dy="0.9em">'+e+"</tspan>":"middle"===o?l+='<tspan x="'+i+'" dy="'+-(s-1)/2+'em">'+e+"</tspan>":"bottom"===o?l+='<tspan x="'+i+'" dy="-'+(s+.3)+'em">'+e+"</tspan>":"hanging"===o&&(l+='<tspan x="'+i+'" dy="'+(-(s-1)-.3)+'em">'+e+"</tspan>"):l+='<tspan x="'+i+'" dy="1em">'+e+"</tspan>"})),t.innerHTML=l}else t.innerHTML=e;else t.innerHTML=""},t}(b2),Y2=K2,q2=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,$2=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,X2=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function Q2(e){var t=e.match(X2);if(!t)return"";var n="";return t.sort((function(e,t){return e=e.split(":"),t=t.split(":"),Number(e[0])-Number(t[0])})),(0,wW.S6)(t,(function(e){e=e.split(":"),n+='<stop offset="'+e[0]+'" stop-color="'+e[1]+'"></stop>'})),n}var J2=function(){function e(e){this.cfg={};var t=null,n=(0,wW.EL)("gradient_");return"l"===e.toLowerCase()[0]?function(e,t){var n,i,r=q2.exec(e),o=(0,wW.wQ)((0,wW.c$)(parseFloat(r[1])),2*Math.PI),a=r[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=o&&o<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=o&&o<1.5*Math.PI?(n={x:1,y:1},i={x:0,y:0}):(n={x:0,y:1},i={x:1,y:0});var s=Math.tan(o),l=s*s,c=(i.x-n.x+s*(i.y-n.y))/(l+1)+n.x,u=s*(i.x-n.x+s*(i.y-n.y))/(l+1)+n.y;t.setAttribute("x1",n.x),t.setAttribute("y1",n.y),t.setAttribute("x2",c),t.setAttribute("y2",u),t.innerHTML=Q2(a)}(e,t=u2("linearGradient")):function(e,t){var n=$2.exec(e),i=parseFloat(n[1]),r=parseFloat(n[2]),o=parseFloat(n[3]),a=n[4];t.setAttribute("cx",i),t.setAttribute("cy",r),t.setAttribute("r",o),t.innerHTML=Q2(a)}(e,t=u2("radialGradient")),t.setAttribute("id",n),this.el=t,this.id=n,this.cfg=e,this}return e.prototype.match=function(e,t){return this.cfg===t},e}(),e3=J2,t3={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},n3={x:"-40%",y:"-40%",width:"200%",height:"200%"},i3=function(){function e(e){this.type="filter",this.cfg={},this.type="filter";var t=u2("filter");return(0,wW.S6)(n3,(function(e,n){t.setAttribute(n,e)})),this.el=t,this.id=(0,wW.EL)("filter_"),this.el.id=this.id,this.cfg=e,this._parseShadow(e,t),this}return e.prototype.match=function(e,t){if(this.type!==e)return!1;var n=!0,i=this.cfg;return(0,wW.S6)(Object.keys(i),(function(e){if(i[e]!==t[e])return n=!1,!1})),n},e.prototype.update=function(e,t){var n=this.cfg;return n[t3[e]]=t,this._parseShadow(n,this.el),this},e.prototype._parseShadow=function(e,t){var n='<feDropShadow\n dx="'+(e.dx||0)+'"\n dy="'+(e.dy||0)+'"\n stdDeviation="'+(e.blur?e.blur/10:0)+'"\n flood-color="'+(e.color?e.color:"#000")+'"\n flood-opacity="'+(e.opacity?e.opacity:1)+'"\n />';t.innerHTML=n},e}(),r3=i3,o3=function(){function e(e,t){this.cfg={};var n=u2("marker"),i=(0,wW.EL)("marker_");n.setAttribute("id",i);var r=u2("path");r.setAttribute("stroke",e.stroke||"none"),r.setAttribute("fill",e.fill||"none"),n.appendChild(r),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=r,this.id=i;var o=e["marker-start"===t?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",!0===o?this._setDefaultPath(t,r):(this.cfg=o,this._setMarker(e.lineWidth,r)),this}return e.prototype.match=function(){return!1},e.prototype._setDefaultPath=function(e,t){var n=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},e.prototype._setMarker=function(e,t){var n=this.el,i=this.cfg.path,r=this.cfg.d;(0,wW.kJ)(i)&&(i=i.map((function(e){return e.join(" ")})).join("")),t.setAttribute("d",i),n.appendChild(t),r&&n.setAttribute("refX",""+r/e)},e.prototype.update=function(e){var t=this.child;t.attr?t.attr("fill",e):t.setAttribute("fill",e)},e}(),a3=o3,s3=function(){function e(e){this.type="clip",this.cfg={};var t=u2("clipPath");this.el=t,this.id=(0,wW.EL)("clip_"),t.id=this.id;var n=e.cfg.el;return t.appendChild(n),this.cfg=e,this}return e.prototype.match=function(){return!1},e.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},e}(),l3=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,c3=function(){function e(e){this.cfg={};var t=u2("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var n=u2("image");t.appendChild(n);var i=(0,wW.EL)("pattern_");t.id=i,this.el=t,this.id=i,this.cfg=e;var r=l3.exec(e)[2];n.setAttribute("href",r);var o=new Image;function a(){t.setAttribute("width",""+o.width),t.setAttribute("height",""+o.height)}return r.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=r,o.complete?a():(o.onload=a,o.src=o.src),this}return e.prototype.match=function(e,t){return this.cfg===t},e}(),u3=c3,d3=function(){function e(e){var t=u2("defs"),n=(0,wW.EL)("defs_");t.id=n,e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}return e.prototype.find=function(e,t){for(var n=this.children,i=null,r=0;r<n.length;r++)if(n[r].match(e,t)){i=n[r].id;break}return i},e.prototype.findById=function(e){for(var t=this.children,n=null,i=0;i<t.length;i++)if(t[i].id===e){n=t[i];break}return n},e.prototype.add=function(e){this.children.push(e),e.canvas=this.canvas,e.parent=this},e.prototype.getDefaultArrow=function(e,t){var n=e.stroke||e.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var i=new a3(e,t);return this.defaultArrow[n]=i,this.el.appendChild(i.el),this.add(i),i.id},e.prototype.addGradient=function(e){var t=new e3(e);return this.el.appendChild(t.el),this.add(t),t.id},e.prototype.addArrow=function(e,t){var n=new a3(e,t);return this.el.appendChild(n.el),this.add(n),n.id},e.prototype.addShadow=function(e){var t=new r3(e);return this.el.appendChild(t.el),this.add(t),t.id},e.prototype.addPattern=function(e){var t=new u3(e);return this.el.appendChild(t.el),this.add(t),t.id},e.prototype.addClip=function(e){var t=new s3(e);return this.el.appendChild(t.el),this.add(t),t.id},e}(),h3=d3,f3=function(e){function t(t){return e.call(this,(0,SW.pi)((0,SW.pi)({},t),{autoDraw:!0,renderer:"svg"}))||this}return(0,SW.ZT)(t,e),t.prototype.getShapeBase=function(){return d},t.prototype.getGroupBase=function(){return y2},t.prototype.getShape=function(e,t,n){var i=n.target||n.srcElement;if(!l2[i.tagName]){for(var r=i.parentNode;r&&!l2[r.tagName];)r=r.parentNode;i=r}return this.find((function(e){return e.get("el")===i}))},t.prototype.createDom=function(){var e=u2("svg"),t=new h3(e);return e.setAttribute("width",""+this.get("width")),e.setAttribute("height",""+this.get("height")),this.set("context",t),e},t.prototype.onCanvasChange=function(e){var t=this.get("context"),n=this.get("el");if("sort"===e){var i=this.get("children");i&&i.length&&h2(this,(function(e,t){return i.indexOf(e)-i.indexOf(t)?1:0}))}else if("clear"===e){if(n){n.innerHTML="";var r=t.el;r.innerHTML="",n.appendChild(r)}}else"matrix"===e?f2(this):"clip"===e?p2(this,t):"changeSize"===e&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},t.prototype.draw=function(){var e=this.get("context"),t=this.getChildren();p2(this,e),t.length&&g2(e,t)},t}(GW.AbstractCanvas),p3=f3,g3="0.5.6",v3=function(e){function t(t){var n=e.call(this,t)||this;n.type="path",n.shapeType="line";var i=t.connectNulls,r=void 0!==i&&i,o=t.showSinglePoint,a=void 0===o||o;return n.connectNulls=r,n.showSinglePoint=a,n}return(0,SW.ZT)(t,e),t.prototype.updateElements=function(e,t){var n,i,r,o,a,s;void 0===t&&(t=!1);for(var l=new Map,c=new Map,u=[],d=0,h=0;h<e.length;h++){var f=e[h],p=this.getElementId(f);u.push(p),l.set(p,f),c.set(p,d),d++}this.elements=new Array(d);var g=DJ(this.lastElementsMap,u),v=g.added,m=g.updated,y=g.removed;try{for(var _=(0,SW.XA)(v),b=_.next();!b.done;b=_.next()){p=b.value,f=l.get(p);var C=this.getShapeFactory(),S=this.getShapeInfo(f);h=c.get(p);(x=new mJ({shapeFactory:C,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:h})).geometry=this,x.animate=this.animateOption,x.draw(S,t),this.elementsMap[p]=x,this.elements[h]=x}}catch(I){n={error:I}}finally{try{b&&!b.done&&(i=_.return)&&i.call(_)}finally{if(n)throw n.error}}try{for(var w=(0,SW.XA)(m),k=w.next();!k.done;k=w.next()){p=k.value,f=l.get(p);var x=this.lastElementsMap[p],E=(h=c.get(p),S=this.getShapeInfo(f),x.getModel());(this.isCoordinateChanged||NJ(E,S))&&(x.animate=this.animateOption,x.update(S)),this.elementsMap[p]=x,this.elements[h]=x}}catch(D){r={error:D}}finally{try{k&&!k.done&&(o=w.return)&&o.call(w)}finally{if(r)throw r.error}}try{for(var T=(0,SW.XA)(y),N=T.next();!N.done;N=T.next()){p=N.value;(x=this.lastElementsMap[p]).animate=this.animateOption,x.destroy()}}catch(L){a={error:L}}finally{try{N&&!N.done&&(s=T.return)&&s.call(T)}finally{if(a)throw a.error}}},t.prototype.getPointsAndData=function(e){for(var t=[],n=[],i=0,r=e.length;i<r;i++){var o=e[i];t.push({x:o.x,y:o.y}),n.push(o._origin)}return{points:t,data:n}},t.prototype.getShapeInfo=function(e){var t=this.getDrawCfg(e[0]),n=this.getPointsAndData(e),i=n.points,r=n.data;return t.mappingData=e,t.data=r,t.isStack=!!this.getAdjust("stack"),t.points=i,t.connectNulls=this.connectNulls,t.showSinglePoint=this.showSinglePoint,t},t}(OJ),m3=v3;function y3(e,t,n,i,r){var o=[];if(e.length){for(var a=[],s=[],l=0,c=e.length;l<c;l++){var u=e[l];a.push(u[1]),s.push(u[0])}s=s.reverse(),(0,wW.S6)([a,s],(function(e,l){var c=[],u=i.parsePoints(e),d=u[0];1===a.length&&1===s.length?c=0===l?[["M",d.x-.5,d.y],["L",d.x+.5,d.y]]:[["L",d.x+.5,d.y],["L",d.x-.5,d.y]]:(t&&u.push({x:d.x,y:d.y}),c=n?mX(u,!1,r):vX(u,!1),l>0&&(c[0][0]="L")),o=o.concat(c)})),o.push(["Z"])}return o}function _3(e,t,n,i,r){for(var o=i0(e,t,!t,"lineWidth"),a=e.connectNulls,s=e.isInCircle,l=e0(e.points,a,e.showSinglePoint),c=[],u=0,d=l.length;u<d;u++){var h=l[u];c=c.concat(y3(h,s,n,i,r))}return o.path=c,o}function b3(e){var t=e.start,n=e.end;return[[t.x,n.y],[n.x,t.y]]}xJ("area",{defaultShapeType:"area",getDefaultPoints:function(e){var t=e.x,n=e.y0;return((0,wW.kJ)(e.y)?e.y:[n,e.y]).map((function(e){return{x:t,y:e}}))}});EJ("area","area",{draw:function(e,t){var n=_3(e,!1,!1,this);return t.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(e){return{symbol:function(e,t,n){return void 0===n&&(n=5.5),[["M",e-n,t-4],["L",e+n,t-4],["L",e+n,t+4],["L",e-n,t+4],["Z"]]},style:{r:5,fill:e.color,fillOpacity:1}}}});var C3=function(e){function t(t){var n=e.call(this,t)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var i=t.startOnZero,r=void 0===i||i,o=t.sortable,a=void 0!==o&&o,s=t.showSinglePoint,l=void 0!==s&&s;return n.startOnZero=r,n.sortable=a,n.showSinglePoint=l,n}return(0,SW.ZT)(t,e),t.prototype.getPointsAndData=function(e){for(var t=[],n=[],i=0,r=e.length;i<r;i++){var o=e[i];t.push(o.points),n.push(o._origin)}return{points:t,data:n}},t.prototype.getYMinValue=function(){return this.startOnZero?e.prototype.getYMinValue.call(this):this.getYScale().min},t}(m3),S3=C3;xJ("edge",{defaultShapeType:"line",getDefaultPoints:function(e){return o0(e)}});EJ("edge","line",{draw:function(e,t){var n=i0(e,!0,!1,"lineWidth"),i=vX(this.parsePoints(e.points),this.coordinate.isPolar);return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},n),{path:i})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var w3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="edge",t.shapeType="edge",t.generatePoints=!0,t}return(0,SW.ZT)(t,e),t}(OJ),k3=w3,x3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="heatmap",t.paletteCache={},t}return(0,SW.ZT)(t,e),t.prototype.updateElements=function(e,t){void 0===t&&(t=!1);for(var n=0;n<e.length;n++){var i=e[n],r=this.prepareRange(i),o=this.prepareSize(),a=(0,wW.U2)(this.styleOption,["cfg","shadowBlur"]);(0,wW.hj)(a)||(a=o/2),this.prepareGreyScaleBlurredCircle(o,a),this.drawWithRange(i,r,o,a)}},t.prototype.color=function(e,t){return this.createAttrOption("color",e,"function"!==typeof t?t:""),this},t.prototype.clear=function(){e.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},t.prototype.prepareRange=function(e){var t=this.getAttribute("color").getFields()[0],n=1/0,i=-1/0;return e.forEach((function(e){var r=e._origin[t];r>i&&(i=r),r<n&&(n=r)})),n===i&&(n=i-1),[n,i]},t.prototype.prepareSize=function(){var e=this.getDefaultValue("size");return(0,wW.hj)(e)||(e=this.getDefaultSize()),e},t.prototype.prepareGreyScaleBlurredCircle=function(e,t){var n=this.getGrayScaleBlurredCanvas(),i=e+t,r=n.getContext("2d");n.width=n.height=2*i,r.clearRect(0,0,n.width,n.height),r.shadowOffsetX=r.shadowOffsetY=2*i,r.shadowBlur=t,r.shadowColor="black",r.beginPath(),r.arc(-i,-i,e,0,2*Math.PI,!0),r.closePath(),r.fill()},t.prototype.drawWithRange=function(e,t,n,i){var r,o,a=this.coordinate,s=a.start,l=a.end,c=this.coordinate.getWidth(),u=this.coordinate.getHeight(),d=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var h=this.getShadowCanvasCtx();t&&(e=e.filter((function(e){return e._origin[d]<=t[1]&&e._origin[d]>=t[0]})));var f=this.scales[d];try{for(var p=(0,SW.XA)(e),g=p.next();!g.done;g=p.next()){var v=g.value,m=this.getDrawCfg(v),y=m.x,_=m.y,b=f.scale(v._origin[d]);this.drawGrayScaleBlurredCircle(y-s.x,_-l.y,n+i,b,h)}}catch(w){r={error:w}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}var C=h.getImageData(0,0,c,u);this.clearShadowCanvasCtx(),this.colorize(C),h.putImageData(C,0,0);var S=this.getImageShape();S.attr("x",s.x),S.attr("y",l.y),S.attr("width",c),S.attr("height",u),S.attr("img",h.canvas),S.set("origin",this.getShapeInfo(e))},t.prototype.getDefaultSize=function(){var e=this.getAttribute("position"),t=this.coordinate;return Math.min(t.getWidth()/(4*e.scales[0].ticks.length),t.getHeight()/(4*e.scales[1].ticks.length))},t.prototype.clearShadowCanvasCtx=function(){var e=this.getShadowCanvasCtx();e.clearRect(0,0,e.canvas.width,e.canvas.height)},t.prototype.getShadowCanvasCtx=function(){var e=this.shadowCanvas;return e||(e=document.createElement("canvas"),this.shadowCanvas=e),e.width=this.coordinate.getWidth(),e.height=this.coordinate.getHeight(),e.getContext("2d")},t.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},t.prototype.drawGrayScaleBlurredCircle=function(e,t,n,i,r){var o=this.getGrayScaleBlurredCanvas();r.globalAlpha=i,r.drawImage(o,e-n,t-n)},t.prototype.colorize=function(e){for(var t=this.getAttribute("color"),n=e.data,i=this.paletteCache,r=3;r<n.length;r+=4){var o=n[r];if((0,wW.hj)(o)){var a=i[o]?i[o]:wU.rgb2arr(t.gradient(o/256));n[r-3]=a[0],n[r-2]=a[1],n[r-1]=a[2],n[r]=o}}},t.prototype.getImageShape=function(){var e=this.imageShape;return e||(e=this.container.addShape({type:"image",attrs:{}}),this.imageShape=e,e)},t.prototype.getShapeInfo=function(e){var t=this.getDrawCfg(e[0]),n=e.map((function(e){return e._origin}));return(0,SW.pi)((0,SW.pi)({},t),{mappingData:e,data:n})},t}(OJ),E3=x3;function T3(e){var t,n,i,r,o,a,s=e.x,l=e.y,c=e.y0,u=e.size;(0,wW.kJ)(l)?(i=(t=(0,SW.CR)(l,2))[0],r=t[1]):(i=c,r=l),(0,wW.kJ)(s)?(o=(n=(0,SW.CR)(s,2))[0],a=n[1]):(o=s-u/2,a=s+u/2);var d=[{x:o,y:i},{x:o,y:r}];return d.push({x:a,y:r},{x:a,y:i}),d}function N3(e,t){void 0===t&&(t=!0);var n=[],i=e[0];n.push(["M",i.x,i.y]);for(var r=1,o=e.length;r<o;r++)n.push(["L",e[r].x,e[r].y]);return t&&(n.push(["L",i.x,i.y]),n.push(["z"])),n}function I3(e,t){var n=0,i=0,r=0,o=0;return(0,wW.kJ)(e)?1===e.length?n=i=r=o=e[0]:2===e.length?(n=r=e[0],i=o=e[1]):3===e.length?(n=e[0],i=o=e[1],r=e[2]):(n=e[0],i=e[1],r=e[2],o=e[3]):n=i=r=o=e,n+i>t&&(i=t-(n=n?t/(1+i/n):0)),r+o>t&&(o=t-(r=r?t/(1+o/r):0)),[n||0,i||0,r||0,o||0]}function D3(e,t,n){var i=[];if(n.isRect){var r=n.isTransposed?{x:n.start.x,y:t[0].y}:{x:t[0].x,y:n.start.y},o=n.isTransposed?{x:n.end.x,y:t[2].y}:{x:t[3].x,y:n.end.y},a=(0,wW.U2)(e,["background","style","radius"]);if(a){var s=n.isTransposed?Math.abs(t[0].y-t[2].y):t[2].x-t[1].x,l=n.isTransposed?n.getWidth():n.getHeight(),c=(0,SW.CR)(I3(a,Math.min(s,l)),4),u=c[0],d=c[1],h=c[2],f=c[3],p=n.isTransposed&&n.isReflect("y"),g=p?0:1,v=function(e){return p?-e:e};i.push(["M",r.x,o.y+v(u)]),0!==u&&i.push(["A",u,u,0,0,g,r.x+u,o.y]),i.push(["L",o.x-d,o.y]),0!==d&&i.push(["A",d,d,0,0,g,o.x,o.y+v(d)]),i.push(["L",o.x,r.y-v(h)]),0!==h&&i.push(["A",h,h,0,0,g,o.x-h,r.y]),i.push(["L",r.x+f,r.y]),0!==f&&i.push(["A",f,f,0,0,g,r.x,r.y-v(f)])}else i.push(["M",r.x,r.y]),i.push(["L",o.x,r.y]),i.push(["L",o.x,o.y]),i.push(["L",r.x,o.y]),i.push(["L",r.x,r.y]);i.push(["z"])}if(n.isPolar){var m=n.getCenter(),y=L$(e,n),_=y.startAngle,b=y.endAngle;if("theta"===n.type||n.isTransposed){var C=function(e){return Math.pow(e,2)};u=Math.sqrt(C(m.x-t[0].x)+C(m.y-t[0].y)),d=Math.sqrt(C(m.x-t[2].x)+C(m.y-t[2].y));i=I$(m.x,m.y,u,n.startAngle,n.endAngle,d)}else i=I$(m.x,m.y,n.getRadius(),_,b)}return i}function L3(e,t,n){var i=[];return(0,wW.UM)(t)?n?i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],["Z"]):i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",e[2].x,e[2].y],["L",e[3].x,e[3].y],["Z"]):i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",t[1].x,t[1].y],["L",t[0].x,t[0].y],["Z"]),i}function O3(e,t){return[t,e]}xJ("interval",{defaultShapeType:"rect",getDefaultPoints:function(e){return T3(e)}});EJ("interval","rect",{draw:function(e,t){var n,i=i0(e,!1,!0),r=t,o=null===e||void 0===e?void 0:e.background;if(o){r=t.addGroup({name:"interval-group"});var a=r0(e),s=D3(e,this.parsePoints(e.points),this.coordinate);r.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},a),{path:s}),capture:!1,zIndex:-1,name:gJ})}n=i.radius&&this.coordinate.isRect?function(e,t,n){var i,r,o,a,s,l,c,u=(0,SW.CR)((0,SW.ev)([],(0,SW.CR)(e),!1),4),d=u[0],h=u[1],f=u[2],p=u[3],g=(0,SW.CR)("number"===typeof n?Array(4).fill(n):n,4),v=g[0],m=g[1],y=g[2],_=g[3];t.isTransposed&&(h=(i=(0,SW.CR)(O3(h,p),2))[0],p=i[1]),t.isReflect("y")&&(d=(r=(0,SW.CR)(O3(d,h),2))[0],h=r[1],f=(o=(0,SW.CR)(O3(f,p),2))[0],p=o[1]),t.isReflect("x")&&(d=(a=(0,SW.CR)(O3(d,p),2))[0],p=a[1],h=(s=(0,SW.CR)(O3(h,f),2))[0],f=s[1]);var b=[],C=function(e){return Math.abs(e)};return v=(l=(0,SW.CR)(I3([v,m,y,_],Math.min(C(p.x-d.x),C(h.y-d.y))).map((function(e){return C(e)})),4))[0],m=l[1],y=l[2],_=l[3],t.isTransposed&&(v=(c=(0,SW.CR)([_,v,m,y],4))[0],m=c[1],y=c[2],_=c[3]),d.y<h.y?(b.push(["M",p.x,p.y+y]),0!==y&&b.push(["A",y,y,0,0,0,p.x-y,p.y]),b.push(["L",d.x+_,d.y]),0!==_&&b.push(["A",_,_,0,0,0,d.x,d.y+_]),b.push(["L",h.x,h.y-v]),0!==v&&b.push(["A",v,v,0,0,0,h.x+v,h.y]),b.push(["L",f.x-m,f.y]),0!==m&&b.push(["A",m,m,0,0,0,f.x,f.y-m]),b.push(["L",p.x,p.y+y]),b.push(["z"])):p.x<d.x?(b.push(["M",f.x+m,f.y]),0!==m&&b.push(["A",m,m,0,0,0,f.x,f.y+m]),b.push(["L",p.x,p.y-y]),0!==y&&b.push(["A",y,y,0,0,0,p.x+y,p.y]),b.push(["L",d.x-_,d.y]),0!==_&&b.push(["A",_,_,0,0,0,d.x,d.y-_]),b.push(["L",h.x,h.y+v]),0!==v&&b.push(["A",v,v,0,0,0,h.x-v,h.y]),b.push(["L",f.x+m,f.y]),b.push(["z"])):(b.push(["M",h.x,h.y+v]),0!==v&&b.push(["A",v,v,0,0,1,h.x+v,h.y]),b.push(["L",f.x-m,f.y]),0!==m&&b.push(["A",m,m,0,0,1,f.x,f.y+m]),b.push(["L",p.x,p.y-y]),0!==y&&b.push(["A",y,y,0,0,1,p.x-y,p.y]),b.push(["L",d.x+_,d.y]),0!==_&&b.push(["A",_,_,0,0,1,d.x,d.y-_]),b.push(["L",h.x,h.y+v]),b.push(["z"])),b}(this.parsePoints(e.points),this.coordinate,i.radius):this.parsePath(function(e,t,n){var i=n.getWidth(),r=n.getHeight(),o="rect"===n.type,a=[],s=(e[2].x-e[1].x)/2,l=n.isTransposed?s*r/i:s*i/r;return"round"===t?(o?(a.push(["M",e[0].x,e[0].y+l]),a.push(["L",e[1].x,e[1].y-l]),a.push(["A",s,s,0,0,1,e[2].x,e[2].y-l]),a.push(["L",e[3].x,e[3].y+l]),a.push(["A",s,s,0,0,1,e[0].x,e[0].y+l])):(a.push(["M",e[0].x,e[0].y]),a.push(["L",e[1].x,e[1].y]),a.push(["A",s,s,0,0,1,e[2].x,e[2].y]),a.push(["L",e[3].x,e[3].y]),a.push(["A",s,s,0,0,1,e[0].x,e[0].y])),a.push(["z"])):a=N3(e),a}(e.points,i.lineCap,this.coordinate));var l=r.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},i),{path:n}),name:"interval"});return o?r:l},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:"circle",style:{r:4.5,fill:t}}:{symbol:"square",style:{r:4,fill:t}}}});function R3(e){var t=e.theme,n=e.coordinate,i=e.getXScale(),r=i.values,o=e.beforeMappingData,a=r.length,s=Z$(e.coordinate),l=e.intervalPadding,c=e.dodgePadding,u=e.maxColumnWidth||t.maxColumnWidth,d=e.minColumnWidth||t.minColumnWidth,h=e.columnWidthRatio||t.columnWidthRatio,f=e.multiplePieWidthRatio||t.multiplePieWidthRatio,p=e.roseWidthRatio||t.roseWidthRatio;if(i.isLinear&&r.length>1){r.sort();var g=function(e,t){var n=e.length,i=e;(0,wW.HD)(i[0])&&(i=e.map((function(e){return t.translate(e)})));for(var r=i[1]-i[0],o=2;o<n;o++){var a=i[o]-i[o-1];r>a&&(r=a)}return r}(r,i);a=(i.max-i.min)/g,r.length>a&&(a=r.length)}var v=i.range,m=1/a,y=1;(n.isPolar?y=n.isTransposed&&a>1?f:p:(i.isLinear&&(m*=v[1]-v[0]),y=h),!(0,wW.UM)(l)&&l>=0)?m=(1-(a-1)*(l/s))/a:m*=y;if(e.getAdjust("dodge")){var _=function(e,t){if(t){var n=(0,wW.xH)(e);return(0,wW.I)(n,t).length}return e.length}(o,e.getAdjust("dodge").dodgeBy);if(!(0,wW.UM)(c)&&c>=0)m=(m-c/s*(_-1))/_;else!(0,wW.UM)(l)&&l>=0?(m*=y,m/=_):m/=_;m=m>=0?m:0}if(!(0,wW.UM)(u)&&u>=0){var b=u/s;m>b&&(m=b)}if(!(0,wW.UM)(d)&&d>=0){var C=d/s;m<C&&(m=C)}return m}var A3=function(e){function t(t){var n=e.call(this,t)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var i=t.background;return n.background=i,n}return(0,SW.ZT)(t,e),t.prototype.createShapePointsCfg=function(t){var n,i=e.prototype.createShapePointsCfg.call(this,t),r=this.getAttribute("size");r?(n=this.getAttributeValues(r,t)[0],n/=Z$(this.coordinate)):(this.defaultSize||(this.defaultSize=R3(this)),n=this.defaultSize);return i.size=n,i},t.prototype.adjustScale=function(){e.prototype.adjustScale.call(this);var t=this.getYScale();if("theta"===this.coordinate.type)t.change({nice:!1,min:0,max:G$(t)});else{var n=this.scaleDefs,i=t.field,r=t.min,o=t.max;"time"!==t.type&&(r>0&&!(0,wW.U2)(n,[i,"min"])&&t.change({min:0}),o<=0&&!(0,wW.U2)(n,[i,"max"])&&t.change({max:0}))}},t.prototype.getDrawCfg=function(t){var n=e.prototype.getDrawCfg.call(this,t);return n.background=this.background,n},t}(OJ),M3=A3,P3=function(e){function t(t){var n=e.call(this,t)||this;n.type="line";var i=t.sortable,r=void 0!==i&&i;return n.sortable=r,n}return(0,SW.ZT)(t,e),t}(m3),Z3=P3,F3=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function B3(e,t,n,i,r){var o,a,s=i0(t,r,!r,"r"),l=e.parsePoints(t.points),c=l[0];if(t.isStack)c=l[1];else if(l.length>1){var u=n.addGroup();try{for(var d=(0,SW.XA)(l),h=d.next();!h.done;h=d.next()){var f=h.value;u.addShape({type:"marker",attrs:(0,SW.pi)((0,SW.pi)((0,SW.pi)({},s),{symbol:GJ[i]||i}),f)})}}catch(p){o={error:p}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}return u}return n.addShape({type:"marker",attrs:(0,SW.pi)((0,SW.pi)((0,SW.pi)({},s),{symbol:GJ[i]||i}),c)})}xJ("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(e){return o0(e)}});(0,wW.S6)(F3,(function(e){EJ("point","hollow-".concat(e),{draw:function(t,n){return B3(this,t,n,e,!0)},getMarker:function(t){var n=t.color;return{symbol:GJ[e]||e,style:{r:4.5,stroke:n,fill:null}}}})}));var H3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="point",t.shapeType="point",t.generatePoints=!0,t}return(0,SW.ZT)(t,e),t.prototype.getDrawCfg=function(t){var n=e.prototype.getDrawCfg.call(this,t);return(0,SW.pi)((0,SW.pi)({},n),{isStack:!!this.getAdjust("stack")})},t}(OJ),z3=H3;xJ("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(e){var t=[];return(0,wW.S6)(e.x,(function(n,i){var r=e.y[i];t.push({x:n,y:r})})),t}});EJ("polygon","polygon",{draw:function(e,t){if(!(0,wW.xb)(e.points)){var n=i0(e,!0,!0),i=this.parsePath(function(e){for(var t=e[0],n=1,i=[["M",t.x,t.y]];n<e.length;){var r=e[n];r.x===e[n-1].x&&r.y===e[n-1].y||(i.push(["L",r.x,r.y]),r.x===t.x&&r.y===t.y&&n<e.length-1&&(t=e[n+1],i.push(["Z"]),i.push(["M",t.x,t.y]),n++)),n++}return(0,wW.Xy)((0,wW.Z$)(i),t)||i.push(["L",t.x,t.y]),i.push(["Z"]),i}(e.points));return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},n),{path:i}),name:"polygon"})}},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}});var j3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polygon",t.shapeType="polygon",t.generatePoints=!0,t}return(0,SW.ZT)(t,e),t.prototype.createShapePointsCfg=function(t){var n,i=e.prototype.createShapePointsCfg.call(this,t),r=i.x,o=i.y;if(!(0,wW.kJ)(r)||!(0,wW.kJ)(o)){var a=this.getXScale(),s=this.getYScale(),l=.5/a.values.length,c=.5/s.values.length;a.isCategory&&s.isCategory?(r=[r-l,r-l,r+l,r+l],o=[o-c,o+c,o+c,o-c]):(0,wW.kJ)(r)?(r=[(n=r)[0],n[0],n[1],n[1]],o=[o-c/2,o+c/2,o+c/2,o-c/2]):(0,wW.kJ)(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],r=[r-l/2,r-l/2,r+l/2,r+l/2]),i.x=r,i.y=o}return i},t}(OJ),V3=j3,W3=(xJ("schema",{defaultShapeType:""}),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="schema",t.shapeType="schema",t.generatePoints=!0,t}return(0,SW.ZT)(t,e),t.prototype.createShapePointsCfg=function(t){var n,i=e.prototype.createShapePointsCfg.call(this,t),r=this.getAttribute("size");r?(n=this.getAttributeValues(r,t)[0],n/=Z$(this.coordinate)):(this.defaultSize||(this.defaultSize=R3(this)),n=this.defaultSize);return i.size=n,i},t}(OJ)),U3=W3;xJ("violin",{defaultShapeType:"violin",getDefaultPoints:function(e){var t=e.size/2,n=[],i=function(e){if(!(0,wW.kJ)(e))return[];var t=(0,wW.Fp)(e);return(0,wW.UI)(e,(function(e){return e/t}))}(e._size);return(0,wW.S6)(e.y,(function(r,o){var a=i[o]*t,s=0===o,l=o===e.y.length-1;n.push({isMin:s,isMax:l,x:e.x-a,y:r}),n.unshift({isMin:s,isMax:l,x:e.x+a,y:r})})),n}});EJ("violin","violin",{draw:function(e,t){var n=i0(e,!0,!0),i=this.parsePath(t0(e.points));return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},n),{path:i}),name:"violin"})},getMarker:function(e){return{symbol:"circle",style:{r:4,fill:e.color}}}});var G3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="violin",t.shapeType="violin",t.generatePoints=!0,t}return(0,SW.ZT)(t,e),t.prototype.createShapePointsCfg=function(t){var n,i=e.prototype.createShapePointsCfg.call(this,t),r=this.getAttribute("size");r?(n=this.getAttributeValues(r,t)[0],n/=Z$(this.coordinate)):(this.defaultSize||(this.defaultSize=R3(this)),n=this.defaultSize);return i.size=n,i._size=(0,wW.U2)(t._origin,[this._sizeField]),i},t.prototype.initAttributes=function(){var t=this.attributeOption,n=t.size?t.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete t.size,e.prototype.initAttributes.call(this)},t}(OJ),K3=G3;function Y3(e,t){return["C",1*e.x/2+1*t.x/2,e.y,1*e.x/2+1*t.x/2,t.y,t.x,t.y]}function q3(e,t){var n=[];n.push({x:t.x,y:t.y}),n.push(e);var i=["Q"];return(0,wW.S6)(n,(function(e){i.push(e.x,e.y)})),i}EJ("area","line",{draw:function(e,t){var n=_3(e,!0,!1,this);return t.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(e){return{symbol:function(e,t,n){return void 0===n&&(n=5.5),[["M",e-n,t-4],["L",e+n,t-4],["L",e+n,t+4],["L",e-n,t+4],["Z"]]},style:{r:5,stroke:e.color,fill:null}}}}),EJ("area","smooth",{draw:function(e,t){var n=_3(e,!1,!0,this,b3(this.coordinate));return t.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(e){return{symbol:function(e,t,n){return void 0===n&&(n=5.5),[["M",e-n,t-4],["L",e+n,t-4],["L",e+n,t+4],["L",e-n,t+4],["Z"]]},style:{r:5,fill:e.color,fillOpacity:1}}}}),EJ("area","smooth-line",{draw:function(e,t){var n=_3(e,!0,!0,this,b3(this.coordinate));return t.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(e){return{symbol:function(e,t,n){return void 0===n&&(n=5.5),[["M",e-n,t-4],["L",e+n,t-4],["L",e+n,t+4],["L",e-n,t+4],["Z"]]},style:{r:5,stroke:e.color,fill:null}}}}),EJ("edge","arc",{draw:function(e,t){var n,i=i0(e,!0,!1,"lineWidth"),r=e.points,o=r.length>2?"weight":"normal";if(e.isInCircle){var a={x:0,y:1};return"normal"===o?n=function(e,t,n){var i=q3(t,n),r=[["M",e.x,e.y]];return r.push(i),r}(r[0],r[1],a):(i.fill=i.stroke,n=function(e,t){var n=q3(e[1],t),i=q3(e[3],t),r=[["M",e[0].x,e[0].y]];return r.push(i),r.push(["L",e[3].x,e[3].y]),r.push(["L",e[2].x,e[2].y]),r.push(n),r.push(["L",e[1].x,e[1].y]),r.push(["L",e[0].x,e[0].y]),r.push(["Z"]),r}(r,a)),n=this.parsePath(n),t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},i),{path:n})})}if("normal"===o)return n=D$(((r=this.parsePoints(r))[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},i),{path:n})});var s=Y3(r[1],r[3]),l=Y3(r[2],r[0]);return n=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],s,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],l,["Z"]],n=this.parsePath(n),i.fill=i.stroke,t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},i),{path:n})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),EJ("edge","smooth",{draw:function(e,t){var n=i0(e,!0,!1,"lineWidth"),i=e.points,r=this.parsePath(function(e,t){var n=Y3(e,t),i=[["M",e.x,e.y]];return i.push(n),i}(i[0],i[1]));return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},n),{path:r})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var $3=1/3;EJ("edge","vhv",{draw:function(e,t){var n=i0(e,!0,!1,"lineWidth"),i=e.points,r=this.parsePath(function(e,t){var n=[];n.push({x:e.x,y:e.y*(1-$3)+t.y*$3}),n.push({x:t.x,y:e.y*(1-$3)+t.y*$3}),n.push(t);var i=[["M",e.x,e.y]];return(0,wW.S6)(n,(function(e){i.push(["L",e.x,e.y])})),i}(i[0],i[1]));return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},n),{path:r})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),EJ("interval","funnel",{getPoints:function(e){return e.size=2*e.size,T3(e)},draw:function(e,t){var n=i0(e,!1,!0),i=this.parsePath(L3(e.points,e.nextPoints,!1));return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},n),{path:i}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),EJ("interval","hollow-rect",{draw:function(e,t){var n=i0(e,!0,!1),i=t,r=null===e||void 0===e?void 0:e.background;if(r){i=t.addGroup();var o=r0(e),a=D3(e,this.parsePoints(e.points),this.coordinate);i.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},o),{path:a}),capture:!1,zIndex:-1,name:gJ})}var s=this.parsePath(N3(e.points)),l=i.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},n),{path:s}),name:"interval"});return r?i:l},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:"circle",style:{r:4.5,stroke:t,fill:null}}:{symbol:"square",style:{r:4,stroke:t,fill:null}}}}),EJ("interval","line",{getPoints:function(e){return function(e){var t=e.x,n=e.y,i=e.y0;return(0,wW.kJ)(n)?n.map((function(e,n){return{x:(0,wW.kJ)(t)?t[n]:t,y:e}})):[{x:t,y:i},{x:t,y:n}]}(e)},draw:function(e,t){var n=i0(e,!0,!1,"lineWidth"),i=A$((0,SW.pi)({},n),["fill"]),r=this.parsePath(N3(e.points,!1));return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},i),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:function(e,t,n){return[["M",e,t-n],["L",e,t+n]]},style:{r:5,stroke:e.color}}}}),EJ("interval","pyramid",{getPoints:function(e){return e.size=2*e.size,T3(e)},draw:function(e,t){var n=i0(e,!1,!0),i=this.parsePath(L3(e.points,e.nextPoints,!0));return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},n),{path:i}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),EJ("interval","tick",{getPoints:function(e){return function(e){var t,n,i,r=e.x,o=e.y,a=e.y0,s=e.size;(0,wW.kJ)(o)?(n=(t=(0,SW.CR)(o,2))[0],i=t[1]):(n=a,i=o);var l=r+s/2,c=r-s/2;return[{x:r,y:n},{x:r,y:i},{x:c,y:n},{x:l,y:n},{x:c,y:i},{x:l,y:i}]}(e)},draw:function(e,t){var n,i=i0(e,!0,!1),r=this.parsePath([["M",(n=e.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},i),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:function(e,t,n){return[["M",e-n/2,t-n],["L",e+n/2,t-n],["M",e,t-n],["L",e,t+n],["M",e-n/2,t+n],["L",e+n/2,t+n]]},style:{r:5,stroke:e.color}}}});function X3(e,t){var n=e0(e.points,e.connectNulls,e.showSinglePoint),i=[];return(0,wW.S6)(n,(function(e){var n=function(e,t){var n=[];return(0,wW.S6)(e,(function(i,r){var o=e[r+1];if(n.push(i),o){var a=function(e,t,n){var i,r=e.x,o=e.y,a=t.x,s=t.y;switch(n){case"hv":i=[{x:a,y:o}];break;case"vh":i=[{x:r,y:s}];break;case"hvh":var l=(a+r)/2;i=[{x:l,y:o},{x:l,y:s}];break;case"vhv":var c=(o+s)/2;i=[{x:r,y:c},{x:a,y:c}]}return i}(i,o,t);n=n.concat(a)}})),n}(e,t);i=i.concat(function(e){return e.map((function(e,t){return 0===t?["M",e.x,e.y]:["L",e.x,e.y]}))}(n))})),(0,SW.pi)((0,SW.pi)({},i0(e,!0,!1,"lineWidth")),{path:i})}function Q3(e){var t=(0,wW.kJ)(e)?e:[e],n=t[0],i=t[t.length-1],r=t.length>1?t[1]:n;return{min:n,max:i,min1:r,max1:t.length>3?t[3]:i,median:t.length>2?t[2]:r}}function J3(e,t,n){var i,r=n/2;if((0,wW.kJ)(t)){var o=Q3(t),a=o.min,s=o.max,l=o.median,c=o.min1,u=e-r,d=e+r;i=[[u,s],[d,s],[e,s],[e,h=o.max1],[u,c],[u,h],[d,h],[d,c],[e,c],[e,a],[u,a],[d,a],[u,l],[d,l]]}else{t=(0,wW.UM)(t)?.5:t;var h,f=Q3(e),p=(a=f.min,s=f.max,l=f.median,t-r),g=t+r;i=[[a,p],[a,g],[a,t],[c=f.min1,t],[c,p],[c,g],[h=f.max1,g],[h,p],[h,t],[s,t],[s,p],[s,g],[l,p],[l,g]]}return i.map((function(e){return{x:e[0],y:e[1]}}))}function e4(e){var t=((0,wW.kJ)(e)?e:[e]).sort((function(e,t){return t-e}));return function(e,t,n){if((0,wW.HD)(e))return e.padEnd(t,n);if((0,wW.kJ)(e)){var i=e.length;if(i<t)for(var r=t-i,o=0;o<r;o++)e.push(n)}return e}(t,4,t[t.length-1])}function t4(e,t,n){var i=e4(t);return[{x:e,y:i[0]},{x:e,y:i[1]},{x:e-n/2,y:i[2]},{x:e-n/2,y:i[1]},{x:e+n/2,y:i[1]},{x:e+n/2,y:i[2]},{x:e,y:i[2]},{x:e,y:i[3]}]}function n4(e,t){var n=Math.abs(e[0].x-e[2].x),i=Math.abs(e[0].y-e[2].y),r=Math.min(n,i);return t&&(r=(0,wW.uZ)(t,0,Math.min(n,i))),r/=2,{x:(e[0].x+e[2].x)/2-r,y:(e[0].y+e[2].y)/2-r,width:2*r,height:2*r}}(0,wW.S6)(["hv","vh","hvh","vhv"],(function(e){EJ("line",e,{draw:function(t,n){var i=X3(t,e);return n.addShape({type:"path",attrs:i,name:"line"})},getMarker:function(t){return s0(t,e)}})})),(0,wW.S6)(["cross","tick","plus","hyphen","line"],(function(e){EJ("point",e,{draw:function(t,n){return B3(this,t,n,e,!0)},getMarker:function(t){var n=t.color;return{symbol:GJ[e],style:{r:4.5,stroke:n,fill:null}}}})})),EJ("point","image",{draw:function(e,t){var n,i,r=i0(e,!1,!1,"r").r,o=this.parsePoints(e.points),a=o[0];if(e.isStack)a=o[1];else if(o.length>1){var s=t.addGroup();try{for(var l=(0,SW.XA)(o),c=l.next();!c.done;c=l.next()){var u=c.value;s.addShape("image",{attrs:{x:u.x-r/2,y:u.y-r,width:r,height:r,img:e.shape[1]}})}}catch(d){n={error:d}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return s}return t.addShape("image",{attrs:{x:a.x-r/2,y:a.y-r,width:r,height:r,img:e.shape[1]}})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),(0,wW.S6)(F3,(function(e){EJ("point",e,{draw:function(t,n){return B3(this,t,n,e,!1)},getMarker:function(t){var n=t.color;return{symbol:GJ[e]||e,style:{r:4.5,fill:n}}}})})),EJ("schema","box",{getPoints:function(e){return J3(e.x,e.y,e.size)},draw:function(e,t){var n,i=i0(e,!0,!1),r=this.parsePath([["M",(n=e.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},i),{path:r,name:"schema"})})},getMarker:function(e){return{symbol:function(e,t,n){var i=J3(e,[t-6,t-3,t,t+3,t+6],n);return[["M",i[0].x+1,i[0].y],["L",i[1].x-1,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y],["L",i[6].x,i[6].y],["L",i[7].x,i[7].y],["L",i[4].x,i[4].y],["Z"],["M",i[8].x,i[8].y],["L",i[9].x,i[9].y],["M",i[10].x+1,i[10].y],["L",i[11].x-1,i[11].y],["M",i[12].x,i[12].y],["L",i[13].x,i[13].y]]},style:{r:6,lineWidth:1,stroke:e.color}}}}),EJ("schema","candle",{getPoints:function(e){return t4(e.x,e.y,e.size)},draw:function(e,t){var n,i=i0(e,!0,!0),r=this.parsePath([["M",(n=e.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},i),{path:r,name:"schema"})})},getMarker:function(e){var t=e.color;return{symbol:function(e,t,n){var i=t4(e,[t+7.5,t+3,t-3,t-7.5],n);return[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["L",i[4].x,i[4].y],["L",i[5].x,i[5].y],["Z"],["M",i[6].x,i[6].y],["L",i[7].x,i[7].y]]},style:{lineWidth:1,stroke:t,fill:t,r:6}}}}),EJ("polygon","square",{draw:function(e,t){if(!(0,wW.xb)(e.points)){var n=i0(e,!0,!0),i=this.parsePoints(e.points);return t.addShape("rect",{attrs:(0,SW.pi)((0,SW.pi)({},n),n4(i,e.size)),name:"polygon"})}},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),EJ("violin","smooth",{draw:function(e,t){var n=i0(e,!0,!0),i=this.parsePath(n0(e.points));return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},n),{path:i})})},getMarker:function(e){return{symbol:"circle",style:{stroke:null,r:4,fill:e.color}}}}),EJ("violin","hollow",{draw:function(e,t){var n=i0(e,!0,!1),i=this.parsePath(t0(e.points));return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},n),{path:i})})},getMarker:function(e){return{symbol:"circle",style:{r:4,fill:null,stroke:e.color}}}}),EJ("violin","hollow-smooth",{draw:function(e,t){var n=i0(e,!0,!1),i=this.parsePath(n0(e.points));return t.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},n),{path:i})})},getMarker:function(e){return{symbol:"circle",style:{r:4,fill:null,stroke:e.color}}}});var i4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getLabelValueDir=function(e){var t=e.points;return t[0].y<=t[2].y?1:-1},t.prototype.getLabelOffsetPoint=function(t,n,i,r){var o,a=e.prototype.getLabelOffsetPoint.call(this,t,n,i),s=this.getCoordinate(),l=s.isTransposed?"x":"y",c=this.getLabelValueDir(t.mappingData);return a=(0,SW.pi)((0,SW.pi)({},a),((o={})[l]=a[l]*c,o)),s.isReflect("x")&&(a=(0,SW.pi)((0,SW.pi)({},a),{x:-1*a.x})),s.isReflect("y")&&(a=(0,SW.pi)((0,SW.pi)({},a),{y:-1*a.y})),a},t.prototype.getThemedLabelCfg=function(e){var t=this.geometry,n=this.getDefaultLabelCfg(),i=t.theme;return(0,wW.b$)({},n,i.labels,"middle"===e.position?{offset:0}:{},e)},t.prototype.setLabelPosition=function(e,t,n,i){var r,o,a,s,l=this.getCoordinate(),c=l.isTransposed,u=t.points,d=l.convert(u[0]),h=l.convert(u[2]),f=this.getLabelValueDir(t),p=(0,wW.kJ)(t.shape)?t.shape[0]:t.shape;if("funnel"===p||"pyramid"===p){var g=(0,wW.U2)(t,"nextPoints"),v=(0,wW.U2)(t,"points");if(g){var m=l.convert(v[0]),y=l.convert(v[1]),_=l.convert(g[0]),b=l.convert(g[1]);c?(r=Math.min(_.y,m.y),a=Math.max(_.y,m.y),o=(y.x+b.x)/2,s=(m.x+_.x)/2):(r=Math.min((y.y+b.y)/2,(m.y+_.y)/2),a=Math.max((y.y+b.y)/2,(m.y+_.y)/2),o=b.x,s=m.x)}else r=Math.min(h.y,d.y),a=Math.max(h.y,d.y),o=h.x,s=d.x}else r=Math.min(h.y,d.y),a=Math.max(h.y,d.y),o=h.x,s=d.x;switch(i){case"right":e.x=o,e.y=(r+a)/2,e.textAlign=(0,wW.U2)(e,"textAlign",f>0?"left":"right");break;case"left":e.x=s,e.y=(r+a)/2,e.textAlign=(0,wW.U2)(e,"textAlign",f>0?"left":"right");break;case"bottom":c&&(e.x=(o+s)/2),e.y=a,e.textAlign=(0,wW.U2)(e,"textAlign","center"),e.textBaseline=(0,wW.U2)(e,"textBaseline",f>0?"bottom":"top");break;case"middle":c&&(e.x=(o+s)/2),e.y=(r+a)/2,e.textAlign=(0,wW.U2)(e,"textAlign","center"),e.textBaseline=(0,wW.U2)(e,"textBaseline","middle");break;case"top":c&&(e.x=(o+s)/2),e.y=r,e.textAlign=(0,wW.U2)(e,"textAlign","center"),e.textBaseline=(0,wW.U2)(e,"textBaseline",f>0?"bottom":"top")}},t}(WJ),r4=i4,o4=Math.PI/2,a4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),n=0;if((0,wW.hj)(e))n=e;else if((0,wW.HD)(e)&&-1!==e.indexOf("%")){var i=t.getRadius();t.innerRadius>0&&(i*=1-t.innerRadius),n=.01*parseFloat(e)*i}return n},t.prototype.getLabelItems=function(t){var n=e.prototype.getLabelItems.call(this,t),i=this.geometry.getYScale();return(0,wW.UI)(n,(function(e){if(e&&i){var t=i.scale((0,wW.U2)(e.data,i.field));return(0,SW.pi)((0,SW.pi)({},e),{percent:t})}return e}))},t.prototype.getLabelAlign=function(e){var t,n=this.getCoordinate();if(e.labelEmit)t=e.angle<=Math.PI/2&&e.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var i=n.getCenter(),r=e.offset;t=Math.abs(e.x-i.x)<1?"center":e.angle>Math.PI||e.angle<=0?r>0?"left":"right":r>0?"right":"left"}else t="center";return t},t.prototype.getLabelPoint=function(e,t,n){var i,r=1,o=e.content[n];this.isToMiddle(t)?i=this.getMiddlePoint(t.points):(1===e.content.length&&0===n?n=1:0===n&&(r=-1),i=this.getArcPoint(t,n));var a=e.offset*r,s=this.getPointAngle(i),l=e.labelEmit,c=this.getCirclePoint(s,a,i,l);return 0===c.r?c.content="":(c.content=o,c.angle=s,c.color=t.color),c.rotate=e.autoRotate?this.getLabelRotate(s,a,l):e.rotate,c.start={x:i.x,y:i.y},c},t.prototype.getArcPoint=function(e,t){return void 0===t&&(t=0),(0,wW.kJ)(e.x)||(0,wW.kJ)(e.y)?{x:(0,wW.kJ)(e.x)?e.x[t]:e.x,y:(0,wW.kJ)(e.y)?e.y[t]:e.y}:{x:e.x,y:e.y}},t.prototype.getPointAngle=function(e){return B$(this.getCoordinate(),e)},t.prototype.getCirclePoint=function(e,t,n,i){var r=this.getCoordinate(),o=r.getCenter(),a=F$(r,n);if(0===a)return(0,SW.pi)((0,SW.pi)({},o),{r:a});var s=e;r.isTransposed&&a>t&&!i?s=e+2*Math.asin(t/(2*a)):a+=t;return{x:o.x+a*Math.cos(s),y:o.y+a*Math.sin(s),r:a}},t.prototype.getLabelRotate=function(e,t,n){var i=e+o4;return n&&(i-=o4),i&&(i>o4?i-=Math.PI:i<-o4&&(i+=Math.PI)),i},t.prototype.getMiddlePoint=function(e){var t=this.getCoordinate(),n=e.length,i={x:0,y:0};return(0,wW.S6)(e,(function(e){i.x+=e.x,i.y+=e.y})),i.x/=n,i.y/=n,i=t.convert(i)},t.prototype.isToMiddle=function(e){return e.x.length>2},t}(WJ),s4=a4,l4=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return(0,SW.ZT)(t,e),t.prototype.getDefaultLabelCfg=function(t,n){var i=e.prototype.getDefaultLabelCfg.call(this,t,n);return(0,wW.b$)({},i,(0,wW.U2)(this.geometry.theme,"pieLabels",{}))},t.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},t.prototype.getLabelRotate=function(e,t,n){var i;return t<0&&((i=e)>Math.PI/2&&(i-=Math.PI),i<-Math.PI/2&&(i+=Math.PI)),i},t.prototype.getLabelAlign=function(e){var t,n=this.getCoordinate().getCenter();return t=e.angle<=Math.PI/2&&e.x>=n.x?"left":"right",e.offset<=0&&(t="right"===t?"left":"right"),t},t.prototype.getArcPoint=function(e){return e},t.prototype.getPointAngle=function(e){var t,n=this.getCoordinate(),i={x:(0,wW.kJ)(e.x)?e.x[0]:e.x,y:e.y[0]},r={x:(0,wW.kJ)(e.x)?e.x[1]:e.x,y:e.y[1]},o=B$(n,i);if(e.points&&e.points[0].y===e.points[1].y)t=o;else{var a=B$(n,r);o>=a&&(a+=2*Math.PI),t=o+(a-o)/2}return t},t.prototype.getCirclePoint=function(e,t){var n=this.getCoordinate(),i=n.getCenter(),r=n.getRadius()+t;return(0,SW.pi)((0,SW.pi)({},N$(i.x,i.y,r,e)),{angle:e,r:r})},t}(s4),c4=l4;function u4(e,t,n){var i=e.filter((function(e){return!e.invisible}));i.sort((function(e,t){return e.y-t.y}));var r,o=!0,a=n.minY,s=n.maxY,l=Math.abs(a-s),c=0,u=Number.MIN_VALUE,d=i.map((function(e){return e.y>c&&(c=e.y),e.y<u&&(u=e.y),{content:e.content,size:t,targets:[e.y-a],pos:null}}));for(u-=a,c-a>l&&(l=c-a);o;)for(d.forEach((function(e){var t=(Math.min.apply(u,e.targets)+Math.max.apply(u,e.targets))/2;e.pos=Math.min(Math.max(u,t-e.size/2),l-e.size),e.pos=Math.max(0,e.pos)})),o=!1,r=d.length;r--;)if(r>0){var h=d[r-1],f=d[r];h.pos+h.size>f.pos&&(h.size+=f.size,h.targets=h.targets.concat(f.targets),h.pos+h.size>l&&(h.pos=l-h.size),d.splice(r,1),o=!0)}r=0,d.forEach((function(e){var n=a+t/2;e.targets.forEach((function(){i[r].y=e.pos+n,n+=t,r++}))}))}var d4=function(){function e(e){void 0===e&&(e={}),this.bitmap={};var t=e.xGap,n=void 0===t?1:t,i=e.yGap,r=void 0===i?8:i;this.xGap=n,this.yGap=r}return e.prototype.hasGap=function(e){for(var t=!0,n=this.bitmap,i=Math.round(e.minX),r=Math.round(e.maxX),o=Math.round(e.minY),a=Math.round(e.maxY),s=i;s<=r;s+=1)if(n[s]){if(s===i||s===r){for(var l=o;l<=a;l++)if(n[s][l]){t=!1;break}}else if(n[s][o]||n[s][a]){t=!1;break}}else n[s]={};return t},e.prototype.fillGap=function(e){for(var t=this.bitmap,n=Math.round(e.minX),i=Math.round(e.maxX),r=Math.round(e.minY),o=Math.round(e.maxY),a=n;a<=i;a+=1)t[a]||(t[a]={});for(a=n;a<=i;a+=this.xGap){for(var s=r;s<=o;s+=this.yGap)t[a][s]=!0;t[a][o]=!0}if(1!==this.yGap)for(a=r;a<=o;a+=1)t[n][a]=!0,t[i][a]=!0;if(1!==this.xGap)for(a=n;a<=i;a+=1)t[a][r]=!0,t[a][o]=!0},e.prototype.destroy=function(){this.bitmap={}},e}();function h4(e,t,n,i){var r=e.getCanvasBBox(),o=r.width,a=r.height,s={x:t,y:n,textAlign:"center"};switch(i){case 0:s.y-=a+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=a+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=a+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=a+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*a+2;break;case 6:s.y+=2*a+2;break;case 7:s.x+=o+1,s.textAlign="left";break;case 8:s.x-=o+1,s.textAlign="right"}return e.attr(s),e.getCanvasBBox()}function f4(e){if(e.length>4)return[];var t=function(e,t){return[t.x-e.x,t.y-e.y]};return[t(e[0],e[1]),t(e[1],e[2])]}function p4(e,t,n){void 0===t&&(t=0),void 0===n&&(n={x:0,y:0});var i=e.x,r=e.y;return{x:(i-n.x)*Math.cos(-t)+(r-n.y)*Math.sin(-t)+n.x,y:(n.x-i)*Math.sin(-t)+(r-n.y)*Math.cos(-t)+n.y}}function g4(e){var t=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],n=e.rotation;return n?[p4(t[0],n,t[0]),p4(t[1],n,t[0]),p4(t[2],n,t[0]),p4(t[3],n,t[0])]:t}function v4(e,t){if(e.length>4)return{min:0,max:0};var n=[];return e.forEach((function(e){var i,r;n.push((i=[e.x,e.y],r=t,(i[0]||0)*(r[0]||0)+(i[1]||0)*(r[1]||0)+(i[2]||0)*(r[2]||0)))})),{min:Math.min.apply(Math,(0,SW.ev)([],(0,SW.CR)(n),!1)),max:Math.max.apply(Math,(0,SW.ev)([],(0,SW.CR)(n),!1))}}function m4(e,t){return e.max>t.min&&e.min<t.max}function y4(e){return["x","y","width","height"].every((function(t){return"number"===typeof(n=e[t])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}function _4(e,t,n){if(void 0===n&&(n=0),!y4(e)||!y4(t))return!1;if(!e.rotation&&!t.rotation)return function(e,t,n){return void 0===n&&(n=0),!(t.x>e.x+e.width+n||t.x+t.width<e.x-n||t.y>e.y+e.height+n||t.y+t.height<e.y-n)}(e,t,n);for(var i=g4(e),r=g4(t),o=f4(i).concat(f4(r)),a=0;a<o.length;a++){var s=o[a];if(!m4(v4(i,s),v4(r,s)))return!1}return!0}var b4=function(){function e(e){var t=this;this.queue=[],this.worker=new Worker(e),this.worker.onmessage=function(e){var n;null===(n=t.queue.shift())||void 0===n||n.resolve(e)},this.worker.onmessageerror=function(e){var n;console.warn("[AntV G2] Web worker is not available"),null===(n=t.queue.shift())||void 0===n||n.reject(e)}}return e.prototype.post=function(e,t){var n=this;return new Promise((function(i,r){n.queue.push({resolve:i,reject:r});try{n.worker.postMessage(e)}catch(Fc){console.warn("[AntV G2] Web worker is not available"),(0,wW.mf)(t)&&t()}}))},e.prototype.destroy=function(){this.worker.terminate()},e}();var C4="\n self.onmessage = ".concat(function(e){var t=function(){function e(e){if(e.length>4)return[];var t=function(e,t){return[t.x-e.x,t.y-e.y]};return[t(e[0],e[1]),t(e[1],e[2])]}function t(e,t,n){void 0===t&&(t=0),void 0===n&&(n={x:0,y:0});var i=e.x,r=e.y;return{x:(i-n.x)*Math.cos(-t)+(r-n.y)*Math.sin(-t)+n.x,y:(n.x-i)*Math.sin(-t)+(r-n.y)*Math.cos(-t)+n.y}}function n(e){var n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],i=e.rotation;return i?[t(n[0],i,n[0]),t(n[1],i,n[0]),t(n[2],i,n[0]),t(n[3],i,n[0])]:n}function i(e,t){if(e.length>4)return{min:0,max:0};var n=[];return e.forEach((function(e){var i,r;n.push((i=[e.x,e.y],r=t,(i[0]||0)*(r[0]||0)+(i[1]||0)*(r[1]||0)+(i[2]||0)*(r[2]||0)))})),{min:Math.min.apply(null,n),max:Math.max.apply(null,n)}}function r(e,t){return e.max>t.min&&e.min<t.max}function o(e){return["x","y","width","height"].every((function(t){return"number"===typeof(n=e[t])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}return{intersect:function(t,a,s){if(void 0===s&&(s=0),!o(t)||!o(a))return!1;if(!t.rotation&&!a.rotation)return function(e,t,n){return void 0===n&&(n=0),!(t.x>e.x+e.width+n||t.x+t.width<e.x-n||t.y>e.y+e.height+n||t.y+t.height<e.y-n)}(t,a,s);for(var l=n(t),c=n(a),u=e(l).concat(e(c)),d=0;d<u.length;d++){var h=u[d];if(!r(i(l,h),i(c,h)))return!1}return!0}}}().intersect;var n={"hide-overlap":function(e){for(var n=e.slice(),i=0;i<n.length;i++){var r=n[i];if(r.visible)for(var o=i+1;o<n.length;o++){var a=n[o];r!==a&&a.visible&&t(r,a)&&(a.visible=!1)}}return n}};try{var i=JSON.parse(e.data);if(!i||!i.type||!n[i.type])return;var r=i.type,o=i.items,a=n[r](o);self.postMessage(a)}catch(e){throw e}}.toString(),"\n"),S4=function(e){for(var t=e.slice(),n=0;n<t.length;n++){var i=t[n];if(i.visible)for(var r=n+1;r<t.length;r++){var o=t[r];i!==o&&o.visible&&_4(i,o)&&(o.visible=!1)}}return t},w4=new Map,k4=function(e){if("undefined"!==typeof window){var t;try{t=new Blob([e.toString()],{type:"application/javascript"})}catch(Fc){(t=new window.BlobBuilder).append(e.toString()),t=t.getBlob()}return new b4(URL.createObjectURL(t))}}(C4);var x4,E4={"#5B8FF9":!0};function T4(e,t,n){return!!e.getAdjust("stack")||t.every((function(t,i){var r=n[i];return function(e,t,n){var i=e.coordinate,r=PJ(t),o=P$.fromObject(r.getCanvasBBox()),a=P$.fromObject(n.getBBox());return i.isTransposed?a.height>=o.height:a.width>=o.width}(e,t,r)}))}function N4(e,t,n){return e.some((function(e){return n(e,t)}))}function I4(e,t){return N4(e,t,(function(e,t){var n,i,r,o=PJ(e),a=PJ(t);return n=o.getCanvasBBox(),i=a.getCanvasBBox(),void 0===(r=2)&&(r=0),Math.max(0,Math.min(n.x+n.width+r,i.x+i.width+r)-Math.max(n.x-r,i.x-r))*Math.max(0,Math.min(n.y+n.height+r,i.y+i.height+r)-Math.max(n.y-r,i.y-r))>0}))}function D4(e,t,n){return e.some((function(e){return n(e,t)}))}function L4(e,t){return D4(e,t,(function(e,t){var n,i,r,o=PJ(e),a=PJ(t);return n=o.getCanvasBBox(),i=a.getCanvasBBox(),void 0===(r=2)&&(r=0),Math.max(0,Math.min(n.x+n.width+r,i.x+i.width+r)-Math.max(n.x-r,i.x-r))*Math.max(0,Math.min(n.y+n.height+r,i.y+i.height+r)-Math.max(n.y-r,i.y-r))>0}))}function O4(){return x4||(x4=document.createElement("canvas").getContext("2d")),x4}var R4=(0,wW.HP)((function(e,t){void 0===t&&(t={});var n=t.fontSize,i=t.fontFamily,r=t.fontWeight,o=t.fontStyle,a=t.fontVariant,s=O4();return s.font=[o,a,r,"".concat(n,"px"),i].join(" "),s.measureText((0,wW.HD)(e)?e:"").width}),(function(e,t){return void 0===t&&(t={}),(0,SW.ev)([e],(0,SW.CR)((0,wW.VO)(t)),!1).join("")}));function A4(e,t,n,i,r){var o,a,s=n.start,l=n.end,c=n.getWidth(),u=n.getHeight();"y"===r?(o=s.x+c/2,a=i.y<s.y?i.y:s.y):"x"===r?(o=i.x>s.x?i.x:s.x,a=s.y+u/2):"xy"===r&&(n.isPolar?(o=n.getCenter().x,a=n.getCenter().y):(o=(s.x+l.x)/2,a=(s.y+l.y)/2));var d=function(e,t,n){var i,r=(0,SW.CR)(t,2),o=r[0],a=r[1];return e.applyToMatrix([o,a,1]),"x"===n?(e.setMatrix(xK.vs(e.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]])),i=xK.vs(e.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])):"y"===n?(e.setMatrix(xK.vs(e.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]])),i=xK.vs(e.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])):"xy"===n&&(e.setMatrix(xK.vs(e.getMatrix(),[["t",-o,-a],["s",.01,.01],["t",o,a]])),i=xK.vs(e.getMatrix(),[["t",-o,-a],["s",100,100],["t",o,a]])),i}(e,[o,a],r);e.animate({matrix:d},t)}function M4(e,t){var n,i=Z0(e,t),r=i.startAngle,o=i.endAngle;return!(0,wW.vQ)(r,.5*-Math.PI)&&r<.5*-Math.PI&&(r+=2*Math.PI),!(0,wW.vQ)(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===t[5]&&(r=(n=(0,SW.CR)([o,r],2))[0],o=n[1]),(0,wW.vQ)(r,1.5*Math.PI)&&(r=-.5*Math.PI),(0,wW.vQ)(o,-.5*Math.PI)&&!(0,wW.vQ)(r,o)&&(o=1.5*Math.PI),{startAngle:r,endAngle:o}}function P4(e){var t;return"M"===e[0]||"L"===e[0]?t=[e[1],e[2]]:"a"!==e[0]&&"A"!==e[0]&&"C"!==e[0]||(t=[e[e.length-2],e[e.length-1]]),t}function Z4(e){var t,n,i,r=e.filter((function(e){return"A"===e[0]||"a"===e[0]}));if(0===r.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=r[0],a=r.length>1?r[1]:r[0],s=e.indexOf(o),l=e.indexOf(a),c=P4(e[s-1]),u=P4(e[l-1]),d=M4(c,o),h=d.startAngle,f=d.endAngle,p=M4(u,a),g=p.startAngle,v=p.endAngle;(0,wW.vQ)(h,g)&&(0,wW.vQ)(f,v)?(n=h,i=f):(n=Math.min(h,g),i=Math.max(f,v));var m=o[1],y=r[r.length-1][1];return m<y?(m=(t=(0,SW.CR)([y,m],2))[0],y=t[1]):m===y&&(y=0),{startAngle:n,endAngle:i,radius:m,innerRadius:y}}function F4(e,t,n){if(e.isGroup())(0,wW.S6)(e.getChildren(),(function(e){F4(e,t,n)}));else{var i=e.getBBox(),r=(i.minX+i.maxX)/2,o=(i.minY+i.maxY)/2;if(e.applyToMatrix([r,o,1]),"zoomIn"===n){var a=xK.vs(e.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]]);e.setMatrix(a),e.animate({matrix:xK.vs(e.getMatrix(),[["t",-r,-o],["s",100,100],["t",r,o]])},t)}else e.animate({matrix:xK.vs(e.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]])},(0,SW.pi)((0,SW.pi)({},t),{callback:function(){e.remove(!0),(0,wW.mf)(t.callback)&&t.callback()}}))}}function B4(e){return[cW.TOP,cW.BOTTOM].includes(e)?{offsetX:0,offsetY:e===cW.TOP?-8:8,style:{textAlign:"center",textBaseline:e===cW.TOP?"bottom":"top"}}:[cW.LEFT,cW.RIGHT].includes(e)?{offsetX:e===cW.LEFT?-8:8,offsetY:0,style:{textAlign:e===cW.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function H4(e,t,n){return{x:e.x+t*Math.cos(n),y:e.y+t*Math.sin(n)}}var z4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){return(0,wW.b$)({},e.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},t.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},t.prototype.getRegion=function(e,t){var n=2*Math.PI/e,i=-1*Math.PI/2+n*t,r=.5/(1+1/Math.sin(n/2)),o=H4({x:.5,y:.5},.5-r,i),a=5*Math.PI/4,s=1*Math.PI/4;return{start:H4(o,r,a),end:H4(o,r,s)}},t.prototype.afterEachView=function(e,t){this.processAxis(e,t)},t.prototype.beforeEachView=function(e,t){},t.prototype.generateFacets=function(e){var t=this,n=this.cfg,i=n.fields,r=n.type,o=(0,SW.CR)(i,1)[0];if(!o)throw new Error("No `fields` specified!");var a=this.getFieldValues(e,o),s=a.length,l=[];return a.forEach((function(n,i){var c=[{field:o,value:n,values:a}],u=(0,wW.hX)(e,t.getFacetDataFilter(c)),d={type:r,data:u,region:t.getRegion(s,i),columnValue:n,columnField:o,columnIndex:i,columnValuesLength:s,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};l.push(d)})),l},t.prototype.getXAxisOption=function(e,t,n,i){return n},t.prototype.getYAxisOption=function(e,t,n,i){return n},t.prototype.renderTitle=function(){var e=this;(0,wW.S6)(this.facets,(function(t){var n=t.columnValue,i=t.view,r=(0,wW.U2)(e.cfg.title,"formatter"),o=(0,wW.b$)({position:["50%","0%"],content:r?r(n):n},B4(cW.TOP),e.cfg.title);i.annotation().text(o)}))},t}(nX),j4=z4,V4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){return(0,wW.b$)({},e.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},t.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},t.prototype.afterEachView=function(e,t){this.processAxis(e,t)},t.prototype.beforeEachView=function(e,t){},t.prototype.generateFacets=function(e){var t=this,n=this.cfg.fields,i=this.cfg.cols,r=(0,SW.CR)(n,1)[0];if(!r)throw new Error("No `fields` specified!");var o=this.getFieldValues(e,r),a=o.length;i=i||a;var s=this.getPageCount(a,i),l=[];return o.forEach((function(n,c){var u=t.getRowCol(c,i),d=u.row,h=u.col,f=[{field:r,value:n,values:o}],p=(0,wW.hX)(e,t.getFacetDataFilter(f)),g={type:t.cfg.type,data:p,region:t.getRegion(s,i,h,d),columnValue:n,rowValue:n,columnField:r,rowField:null,columnIndex:h,rowIndex:d,columnValuesLength:i,rowValuesLength:s,total:a};l.push(g)})),l},t.prototype.getXAxisOption=function(e,t,n,i){return i.rowIndex!==i.rowValuesLength-1&&i.columnValuesLength*i.rowIndex+i.columnIndex+1+i.columnValuesLength<=i.total?(0,SW.pi)((0,SW.pi)({},n),{label:null,title:null}):n},t.prototype.getYAxisOption=function(e,t,n,i){return 0!==i.columnIndex?(0,SW.pi)((0,SW.pi)({},n),{title:null,label:null}):n},t.prototype.renderTitle=function(){var e=this;(0,wW.S6)(this.facets,(function(t){var n=t.columnValue,i=t.view,r=(0,wW.U2)(e.cfg.title,"formatter"),o=(0,wW.b$)({position:["50%","0%"],content:r?r(n):n},B4(cW.TOP),e.cfg.title);i.annotation().text(o)}))},t.prototype.getPageCount=function(e,t){return Math.floor((e+t-1)/t)},t.prototype.getRowCol=function(e,t){return{row:Math.floor(e/t),col:e%t}},t}(nX),W4=V4,U4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){return(0,wW.b$)({},e.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:(0,SW.pi)({},e.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,SW.pi)({},e.prototype.getDefaultTitleCfg.call(this))})},t.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},t.prototype.afterEachView=function(e,t){this.processAxis(e,t)},t.prototype.beforeEachView=function(e,t){},t.prototype.generateFacets=function(e){for(var t=this.cfg,n=t.fields,i=t.type,r=n.length,o=r,a=[],s=0;s<o;s++)for(var l=n[s],c=0;c<r;c++){var u=n[c],d={type:i,data:e,region:this.getRegion(r,o,s,c),columnValue:l,rowValue:u,columnField:l,rowField:u,columnIndex:s,rowIndex:c,columnValuesLength:o,rowValuesLength:r};a.push(d)}return a},t.prototype.getXAxisOption=function(e,t,n,i){return i.rowIndex!==i.rowValuesLength-1?(0,SW.pi)((0,SW.pi)({},n),{label:null,title:null}):n},t.prototype.getYAxisOption=function(e,t,n,i){return 0!==i.columnIndex?(0,SW.pi)((0,SW.pi)({},n),{title:null,label:null}):n},t.prototype.renderTitle=function(){var e=this;(0,wW.S6)(this.facets,(function(t,n){var i=t.columnIndex,r=t.rowIndex,o=t.columnValuesLength,a=(t.rowValuesLength,t.columnValue),s=t.rowValue,l=t.view;if(0===r){var c=(0,wW.U2)(e.cfg.columnTitle,"formatter"),u=(0,wW.b$)({position:["50%","0%"],content:c?c(a):a},B4(cW.TOP),e.cfg.columnTitle);l.annotation().text(u)}if(i===o-1){c=(0,wW.U2)(e.cfg.rowTitle,"formatter"),u=(0,wW.b$)({position:["100%","50%"],content:c?c(s):s},B4(cW.RIGHT),e.cfg.rowTitle);l.annotation().text(u)}}))},t}(nX),G4=U4,K4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getDefaultCfg=function(){return(0,wW.b$)({},e.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this),transpose:!1})},t.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},t.prototype.beforeEachView=function(e,t){this.cfg.transpose?t.columnIndex%2===0?e.coordinate().transpose().reflect("x"):e.coordinate().transpose():t.rowIndex%2!==0&&e.coordinate().reflect("y")},t.prototype.afterEachView=function(e,t){this.processAxis(e,t)},t.prototype.generateFacets=function(e){var t,n,i=this,r=(0,SW.CR)(this.cfg.fields,1)[0],o=[],a=1,s=1,l=[""],c=[""];return this.cfg.transpose?(t=r,l=this.getFieldValues(e,t).slice(0,2),a=l.length):(n=r,c=this.getFieldValues(e,n).slice(0,2),s=c.length),l.forEach((function(r,u){c.forEach((function(d,h){var f=[{field:t,value:r,values:l},{field:n,value:d,values:c}],p=(0,wW.hX)(e,i.getFacetDataFilter(f)),g={type:i.cfg.type,data:p,region:i.getRegion(s,a,u,h),columnValue:r,rowValue:d,columnField:t,rowField:n,columnIndex:u,rowIndex:h,columnValuesLength:a,rowValuesLength:s};o.push(g)}))})),o},t.prototype.getXAxisOption=function(e,t,n,i){return 1===i.columnIndex||1===i.rowIndex?(0,SW.pi)((0,SW.pi)({},n),{label:null,title:null}):n},t.prototype.getYAxisOption=function(e,t,n,i){return n},t.prototype.renderTitle=function(){var e=this;(0,wW.S6)(this.facets,(function(t,n){var i=t.columnValue,r=t.rowValue,o=t.view,a=(0,wW.U2)(e.cfg.title,"formatter");if(e.cfg.transpose){var s=(0,wW.b$)({position:["50%","0%"],content:a?a(i):i},B4(cW.TOP),e.cfg.title);o.annotation().text(s)}else{s=(0,wW.b$)({position:["100%","50%"],content:a?a(r):r},B4(cW.RIGHT),e.cfg.title);o.annotation().text(s)}}))},t}(nX),Y4=K4,q4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.afterEachView=function(e,t){this.processAxis(e,t)},t.prototype.beforeEachView=function(e,t){},t.prototype.getDefaultCfg=function(){return(0,wW.b$)({},e.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:(0,SW.pi)({},e.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,SW.pi)({},e.prototype.getDefaultTitleCfg.call(this))})},t.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},t.prototype.generateFacets=function(e){var t=this,n=(0,SW.CR)(this.cfg.fields,2),i=n[0],r=n[1],o=[],a=1,s=1,l=[""],c=[""];return i&&(l=this.getFieldValues(e,i),a=l.length),r&&(c=this.getFieldValues(e,r),s=c.length),l.forEach((function(n,u){c.forEach((function(d,h){var f=[{field:i,value:n,values:l},{field:r,value:d,values:c}],p=(0,wW.hX)(e,t.getFacetDataFilter(f)),g={type:t.cfg.type,data:p,region:t.getRegion(s,a,u,h),columnValue:n,rowValue:d,columnField:i,rowField:r,columnIndex:u,rowIndex:h,columnValuesLength:a,rowValuesLength:s};o.push(g)}))})),o},t.prototype.renderTitle=function(){var e=this;(0,wW.S6)(this.facets,(function(t,n){var i=t.columnIndex,r=t.rowIndex,o=t.columnValuesLength,a=t.columnValue,s=t.rowValue,l=t.view;if(0===r){var c=(0,wW.U2)(e.cfg.columnTitle,"formatter"),u=(0,wW.b$)({position:["50%","0%"],content:c?c(a):a},B4(cW.TOP),e.cfg.columnTitle);l.annotation().text(u)}if(i===o-1){c=(0,wW.U2)(e.cfg.rowTitle,"formatter"),u=(0,wW.b$)({position:["100%","50%"],content:c?c(s):s},B4(cW.RIGHT),e.cfg.rowTitle);l.annotation().text(u)}}))},t.prototype.getXAxisOption=function(e,t,n,i){return i.rowIndex!==i.rowValuesLength-1?(0,SW.pi)((0,SW.pi)({},n),{title:null,label:null}):i.columnIndex!==Math.floor((i.columnValuesLength-1)/2)?(0,SW.pi)((0,SW.pi)({},n),{title:null}):n},t.prototype.getYAxisOption=function(e,t,n,i){return 0!==i.columnIndex?(0,SW.pi)((0,SW.pi)({},n),{title:null,label:null}):i.rowIndex!==Math.floor((i.rowValuesLength-1)/2)?(0,SW.pi)((0,SW.pi)({},n),{title:null}):n},t}(nX),$4=q4,X4=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.afterChartRender=function(){t.facets&&t.cfg.line&&(t.container.clear(),t.drawLines(t.facets))},t}return(0,SW.ZT)(t,e),t.prototype.afterEachView=function(e,t){this.processAxis(e,t)},t.prototype.beforeEachView=function(e,t){},t.prototype.init=function(){e.prototype.init.call(this),this.view.on(kW.AFTER_RENDER,this.afterChartRender)},t.prototype.getDefaultCfg=function(){return(0,wW.b$)({},e.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},t.prototype.generateFacets=function(e){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var t=[],n={type:this.cfg.type,data:e,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return t.push(n),n.children=this.getChildFacets(e,1,t),this.setRegion(t),t},t.prototype.setRegion=function(e){var t=this;this.forceColIndex(e),e.forEach((function(e){e.region=t.getRegion(e.rowValuesLength,e.columnValuesLength,e.columnIndex,e.rowIndex)}))},t.prototype.getRegion=function(e,t,n,i){var r=1/t,o=1/e,a={x:r*n,y:o*i};return{start:a,end:{x:a.x+r,y:a.y+2*o/3}}},t.prototype.forceColIndex=function(e){var t,n,i=this,r=[],o=0;e.forEach((function(e){i.isLeaf(e)&&(r.push(e),e.columnIndex=o,o++)})),r.forEach((function(e){e.columnValuesLength=r.length}));for(var a=this.cfg.fields.length-1;a>=0;a--){var s=this.getFacetsByLevel(e,a);try{for(var l=(t=void 0,(0,SW.XA)(s)),c=l.next();!c.done;c=l.next()){var u=c.value;this.isLeaf(u)||(u.originColIndex=u.columnIndex,u.columnIndex=this.getRegionIndex(u.children),u.columnValuesLength=r.length)}}catch(d){t={error:d}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}}},t.prototype.getFacetsByLevel=function(e,t){var n=[];return e.forEach((function(e){e.rowIndex===t&&n.push(e)})),n},t.prototype.getRegionIndex=function(e){var t=e[0];return(e[e.length-1].columnIndex-t.columnIndex)/2+t.columnIndex},t.prototype.isLeaf=function(e){return!e.children||!e.children.length},t.prototype.getRows=function(){return this.cfg.fields.length+1},t.prototype.getChildFacets=function(e,t,n){var i=this,r=this.cfg.fields;if(!(r.length<t)){var o=[],a=r[t-1],s=this.getFieldValues(e,a);return s.forEach((function(r,l){var c=[{field:a,value:r,values:s}],u=e.filter(i.getFacetDataFilter(c));if(u.length){var d={type:i.cfg.type,data:u,region:null,columnValue:r,rowValue:"",columnField:a,rowField:"",columnIndex:l,rowValuesLength:i.getRows(),columnValuesLength:1,rowIndex:t,children:i.getChildFacets(u,t+1,n)};o.push(d),n.push(d)}})),o}},t.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},t.prototype.renderTitle=function(){var e=this;(0,wW.S6)(this.facets,(function(t){var n=t.columnValue,i=t.view,r=(0,wW.U2)(e.cfg.title,"formatter"),o=(0,wW.b$)({position:["50%","0%"],content:r?r(n):n},B4(cW.TOP),e.cfg.title);i.annotation().text(o)}))},t.prototype.drawLines=function(e){var t=this;e.forEach((function(e){if(!t.isLeaf(e)){var n=e.children;t.addFacetLines(e,n)}}))},t.prototype.addFacetLines=function(e,t){var n=this,i=e.view.coordinateBBox,r={x:i.x+i.width/2,y:i.y+i.height};t.forEach((function(e){var t=e.view.coordinateBBox,i={x:t.bl.x+(t.tr.x-t.bl.x)/2,y:t.tr.y},o={x:r.x,y:r.y+(i.y-r.y)/2},a={x:i.x,y:o.y};n.drawLine([r,o,a,i])}))},t.prototype.getPath=function(e){var t=[];return this.cfg.line.smooth?(t.push(["M",e[0].x,e[0].y]),t.push(["C",e[1].x,e[1].y,e[2].x,e[2].y,e[3].x,e[3].y])):e.forEach((function(e,n){0===n?t.push(["M",e.x,e.y]):t.push(["L",e.x,e.y])})),t},t.prototype.drawLine=function(e){var t=this.getPath(e),n=this.cfg.line.style;this.container.addShape("path",{attrs:(0,wW.f0)({path:t},n)})},t.prototype.getXAxisOption=function(e,t,n,i){return i.rowIndex!==i.rowValuesLength-1?(0,SW.pi)((0,SW.pi)({},n),{title:null,label:null}):n},t.prototype.getYAxisOption=function(e,t,n,i){return 0!==i.originColIndex&&0!==i.columnIndex?(0,SW.pi)((0,SW.pi)({},n),{title:null,label:null}):n},t}(nX),Q4=X4;function J4(e){var t=(0,SW.ev)([],(0,SW.CR)(e),!1);t.sort((function(e,t){return e-t}));var n=t.length;return 0===n?0:n%2===1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2}function e5(e,t){if(!t)return null;var n;switch(e){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=t.isCategory?J4(t.values.map((function(e,t){return t}))):J4(t.values);break;case"mean":n=t.isCategory?(t.values.length-1)/2:function(e){var t=(0,wW.u4)(e,(function(e,t){return e+(isNaN(t)||!(0,wW.hj)(t)?0:t)}),0);return 0===e.length?0:t/e.length}(t.values);break;case"min":n=t.isCategory?0:t[e];break;case"max":n=t.isCategory?t.values.length-1:t[e];break;default:n=e}return t.scale(n)}var t5=["regionFilter","shape"],n5=function(e){function n(t){var n=e.call(this,t)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(lW.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(lW.BG).addGroup(),n.option=[],n}return(0,SW.ZT)(n,e),Object.defineProperty(n.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),n.prototype.init=function(){},n.prototype.layout=function(){this.update()},n.prototype.render=function(){},n.prototype.update=function(){var e=this;this.onAfterRender((function(){var t=new Map;(0,wW.S6)(e.option,(function(n){if((0,wW.q9)(t5,n.type)){var i=e.updateOrCreate(n);i&&t.set(e.getCacheKey(n),i)}})),e.cache=e.syncCache(t)}));var t=new Map;(0,wW.S6)(this.option,(function(n){if(!(0,wW.q9)(t5,n.type)){var i=e.updateOrCreate(n);i&&t.set(e.getCacheKey(n),i)}})),this.cache=this.syncCache(t)},n.prototype.clear=function(t){void 0===t&&(t=!1),e.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),t&&(this.option=[])},n.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},n.prototype.getComponents=function(){var e=[];return this.cache.forEach((function(t){e.push(t)})),e},n.prototype.clearComponents=function(){this.getComponents().forEach((function(e){e.component.destroy()})),this.cache.clear()},n.prototype.onAfterRender=function(e){var t=!1;this.view.getOptions().animate&&this.view.geometries.forEach((function(n){n.animateOption&&(n.once(xW.AFTER_DRAW_ANIMATE,(function(){e()})),t=!0)})),t||this.view.getRootView().once(kW.AFTER_RENDER,(function(){e()}))},n.prototype.createAnnotation=function(e){var n=e.type,i=t[(0,wW.jC)(n)];if(i){var r=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,e,r);return o?{component:new i(o),layer:this.isTop(o)?lW.FORE:lW.BG,direction:cW.NONE,type:uW.ANNOTATION,extra:e}:null}},n.prototype.annotation=function(e){this.option.push(e)},n.prototype.arc=function(e){return this.annotation((0,SW.pi)({type:"arc"},e)),this},n.prototype.image=function(e){return this.annotation((0,SW.pi)({type:"image"},e)),this},n.prototype.line=function(e){return this.annotation((0,SW.pi)({type:"line"},e)),this},n.prototype.region=function(e){return this.annotation((0,SW.pi)({type:"region"},e)),this},n.prototype.text=function(e){return this.annotation((0,SW.pi)({type:"text"},e)),this},n.prototype.dataMarker=function(e){return this.annotation((0,SW.pi)({type:"dataMarker"},e)),this},n.prototype.dataRegion=function(e){this.annotation((0,SW.pi)({type:"dataRegion"},e))},n.prototype.regionFilter=function(e){this.annotation((0,SW.pi)({type:"regionFilter"},e))},n.prototype.shape=function(e){this.annotation((0,SW.pi)({type:"shape"},e))},n.prototype.html=function(e){this.annotation((0,SW.pi)({type:"html"},e))},n.prototype.parsePosition=function(e){var t,n,i=this.view.getXScale(),r=this.view.getScalesByDim("y"),o=(0,wW.mf)(e)?e.call(null,i,r):e,a=0,s=0;if((0,wW.kJ)(o)){var l=(0,SW.CR)(o,2),c=l[0],u=l[1];if((0,wW.HD)(c)&&-1!==c.indexOf("%")&&!isNaN(c.slice(0,-1)))return this.parsePercentPosition(o);a=e5(c,i),s=e5(u,Object.values(r)[0])}else if(!(0,wW.UM)(o))try{for(var d=(0,SW.XA)((0,wW.XP)(o)),h=d.next();!h.done;h=d.next()){var f=h.value,p=o[f];f===i.field&&(a=e5(p,i)),r[f]&&(s=e5(p,r[f]))}}catch(g){t={error:g}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}return isNaN(a)||isNaN(s)?null:this.view.getCoordinate().convert({x:a,y:s})},n.prototype.getRegionPoints=function(e,t){var n,i=this,r=this.view.getXScale(),o=this.view.getScalesByDim("y"),a=Object.values(o)[0],s=r.field,l=this.view.getData(),c=(0,wW.kJ)(e)?e[0]:e[s],u=(0,wW.kJ)(t)?t[0]:t[s],d=[];return(0,wW.S6)(l,(function(e,t){if(e[s]===c&&(n=t),t>=n){var r=i.parsePosition([e[s],e[a.field]]);r&&d.push(r)}if(e[s]===u)return!1})),d},n.prototype.parsePercentPosition=function(e){var t=parseFloat(e[0])/100,n=parseFloat(e[1])/100,i=this.view.getCoordinate(),r=i.start,o=i.end,a=Math.min(r.x,o.x),s=Math.min(r.y,o.y);return{x:i.getWidth()*t+a,y:i.getHeight()*n+s}},n.prototype.getCoordinateBBox=function(){var e=this.view.getCoordinate(),t=e.start,n=e.end,i=e.getWidth(),r=e.getHeight(),o={x:Math.min(t.x,n.x),y:Math.min(t.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+i,maxY:o.y+r,width:i,height:r}},n.prototype.getAnnotationCfg=function(e,t,n){var i=this,r=this.view.getCoordinate(),o=this.view.getCanvas(),a={};if((0,wW.UM)(t))return null;var s=t.start,l=t.end,c=t.position,u=this.parsePosition(s),d=this.parsePosition(l),h=this.parsePosition(c);if(!(!["arc","image","line","region","regionFilter"].includes(e)||u&&d))return null;if(["text","dataMarker","html"].includes(e)&&!h)return null;if("arc"===e){var f=t,p=(f.start,f.end,(0,SW._T)(f,["start","end"])),g=B$(r,u),v=B$(r,d);g>v&&(v=2*Math.PI+v),a=(0,SW.pi)((0,SW.pi)({},p),{center:r.getCenter(),radius:F$(r,u),startAngle:g,endAngle:v})}else if("image"===e){var m=t;m.start,m.end,p=(0,SW._T)(m,["start","end"]);a=(0,SW.pi)((0,SW.pi)({},p),{start:u,end:d,src:t.src})}else if("line"===e){var y=t;y.start,y.end,p=(0,SW._T)(y,["start","end"]);a=(0,SW.pi)((0,SW.pi)({},p),{start:u,end:d,text:(0,wW.U2)(t,"text",null)})}else if("region"===e){var _=t;_.start,_.end,p=(0,SW._T)(_,["start","end"]);a=(0,SW.pi)((0,SW.pi)({},p),{start:u,end:d})}else if("text"===e){var b=this.view.getData(),C=t,S=(C.position,C.content),w=(p=(0,SW._T)(C,["position","content"]),S);(0,wW.mf)(S)&&(w=S(b)),a=(0,SW.pi)((0,SW.pi)((0,SW.pi)({},h),p),{content:w})}else if("dataMarker"===e){var k=t,x=(k.position,k.point),E=k.line,T=k.text,N=k.autoAdjust,I=k.direction;p=(0,SW._T)(k,["position","point","line","text","autoAdjust","direction"]);a=(0,SW.pi)((0,SW.pi)((0,SW.pi)({},p),h),{coordinateBBox:this.getCoordinateBBox(),point:x,line:E,text:T,autoAdjust:N,direction:I})}else if("dataRegion"===e){var D=t,L=D.start,O=D.end,R=D.region,A=(T=D.text,D.lineLength);p=(0,SW._T)(D,["start","end","region","text","lineLength"]);a=(0,SW.pi)((0,SW.pi)({},p),{points:this.getRegionPoints(L,O),region:R,text:T,lineLength:A})}else if("regionFilter"===e){var M=t,P=(M.start,M.end,M.apply),Z=M.color,F=(p=(0,SW._T)(M,["start","end","apply","color"]),this.view.geometries),B=[],H=function e(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return e(t)})):B.push(t))};(0,wW.S6)(F,(function(e){P?(0,wW.FX)(P,e.type)&&(0,wW.S6)(e.elements,(function(e){H(e.shape)})):(0,wW.S6)(e.elements,(function(e){H(e.shape)}))})),a=(0,SW.pi)((0,SW.pi)({},p),{color:Z,shapes:B,start:u,end:d})}else if("shape"===e){var z=t,j=z.render,V=(0,SW._T)(z,["render"]);a=(0,SW.pi)((0,SW.pi)({},V),{render:function(e){if((0,wW.mf)(t.render))return j(e,i.view,{parsePosition:i.parsePosition.bind(i)})}})}else if("html"===e){var W=t,U=W.html;W.position,V=(0,SW._T)(W,["html","position"]);a=(0,SW.pi)((0,SW.pi)((0,SW.pi)({},V),h),{parent:o.get("el").parentNode,html:function(e){return(0,wW.mf)(U)?U(e,i.view):U}})}var G=(0,wW.b$)({},n,(0,SW.pi)((0,SW.pi)({},a),{top:t.top,style:t.style,offsetX:t.offsetX,offsetY:t.offsetY}));return"html"!==e&&(G.container=this.getComponentContainer(G)),G.animate=this.view.getOptions().animate&&G.animate&&(0,wW.U2)(t,"animate",G.animate),G.animateOption=(0,wW.b$)({},uJ,G.animateOption,t.animateOption),G},n.prototype.isTop=function(e){return(0,wW.U2)(e,"top",!0)},n.prototype.getComponentContainer=function(e){return this.isTop(e)?this.foregroundContainer:this.backgroundContainer},n.prototype.getAnnotationTheme=function(e){return(0,wW.U2)(this.view.getTheme(),["components","annotation",e],{})},n.prototype.updateOrCreate=function(e){var t=this.cache.get(this.getCacheKey(e));if(t){var n=e.type,i=this.getAnnotationTheme(n),r=this.getAnnotationCfg(n,e,i);r&&A$(r,["container"]),t.component.update((0,SW.pi)((0,SW.pi)({},r||{}),{visible:!!r})),(0,wW.q9)(t5,e.type)&&t.component.render()}else(t=this.createAnnotation(e))&&(t.component.init(),(0,wW.q9)(t5,e.type)&&t.component.render());return t},n.prototype.syncCache=function(e){var t=this,n=new Map(this.cache);return e.forEach((function(e,t){n.set(t,e)})),n.forEach((function(e,i){(0,wW.sE)(t.option,(function(e){return i===t.getCacheKey(e)}))||(e.component.destroy(),n.delete(i))})),n},n.prototype.getCacheKey=function(e){return e},n}(rJ),i5=n5;function r5(e,t){var n=(0,wW.b$)({},(0,wW.U2)(e,["components","axis","common"]),(0,wW.U2)(e,["components","axis",t]));return(0,wW.U2)(n,["grid"],{})}function o5(e,t,n,i){var r=[],o=t.getTicks();return e.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(t,o,a){var s=o.value;if(i)r.push({points:[e.convert("y"===n?{x:0,y:s}:{x:s,y:0}),e.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(a){var l=(t.value+s)/2;r.push({points:[e.convert("y"===n?{x:0,y:l}:{x:l,y:0}),e.convert("y"===n?{x:1,y:l}:{x:l,y:1})]})}return o}),o[0]),r}function a5(e,t,n,i,r){var o=t.values.length,a=[],s=n.getTicks();return s.reduce((function(t,n){var s=t?t.value:n.value,l=n.value,c=(s+l)/2;return"x"===r?a.push({points:[e.convert({x:i?l:c,y:0}),e.convert({x:i?l:c,y:1})]}):a.push({points:(0,wW.UI)(Array(o+1),(function(t,n){return e.convert({x:n/o,y:i?l:c})}))}),n}),s[0]),a}function s5(e,t){var n=(0,wW.U2)(t,"grid");if(null===n)return!1;var i=(0,wW.U2)(e,"grid");return!(void 0===n&&null===i)}var l5=["container"],c5=(0,SW.pi)((0,SW.pi)({},uJ),{appear:null}),u5=function(e){function t(t){var n=e.call(this,t)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(lW.BG).addGroup(),n.gridForeContainer=n.view.getLayer(lW.FORE).addGroup(),n.axisContainer=n.view.getLayer(lW.BG).addGroup(),n.axisForeContainer=n.view.getLayer(lW.FORE).addGroup(),n}return(0,SW.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this,t=this.view.getCoordinate();(0,wW.S6)(this.getComponents(),(function(n){var i,r=n.component,o=n.direction,a=n.type,s=n.extra,l=s.dim,c=s.scale,u=s.alignTick;if(a===uW.AXIS)t.isPolar?"x"===l?i=t.isTransposed?K$(t,o):Q$(t):"y"===l&&(i=t.isTransposed?Q$(t):K$(t,o)):i=K$(t,o);else if(a===uW.GRID)if(t.isPolar){i={items:t.isTransposed?"x"===l?a5(t,e.view.getYScales()[0],c,u,l):o5(t,c,l,u):"x"===l?o5(t,c,l,u):a5(t,e.view.getXScale(),c,u,l),center:e.view.getCoordinate().getCenter()}}else i={items:o5(t,c,l,u)};r.update(i)}))},t.prototype.update=function(){this.option=this.view.getOptions().axes;var e=new Map;this.updateXAxes(e),this.updateYAxes(e);var t=new Map;this.cache.forEach((function(n,i){e.has(i)?t.set(i,n):n.component.destroy()})),this.cache=t},t.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},t.prototype.getComponents=function(){var e=[];return this.cache.forEach((function(t){e.push(t)})),e},t.prototype.updateXAxes=function(e){var t=this.view.getXScale();if(t&&!t.isIdentity){var n=J$(this.option,t.field);if(!1!==n){var i=eX(n,cW.BOTTOM),r=lW.BG,o="x",a=this.view.getCoordinate(),s=this.getId("axis",t.field),l=this.getId("grid",t.field);if(a.isRect){if(c=this.cache.get(s))A$(d=this.getLineAxisCfg(t,n,i),l5),c.component.update(d),e.set(s,c);else c=this.createLineAxis(t,n,r,i,o),this.cache.set(s,c),e.set(s,c);if(u=this.cache.get(l))A$(d=this.getLineGridCfg(t,n,i,o),l5),u.component.update(d),e.set(l,u);else(u=this.createLineGrid(t,n,r,i,o))&&(this.cache.set(l,u),e.set(l,u))}else if(a.isPolar){var c,u;if(c=this.cache.get(s)){A$(d=a.isTransposed?this.getLineAxisCfg(t,n,cW.RADIUS):this.getCircleAxisCfg(t,n,i),l5),c.component.update(d),e.set(s,c)}else{if(a.isTransposed){if((0,wW.o8)(n))return;c=this.createLineAxis(t,n,r,cW.RADIUS,o)}else c=this.createCircleAxis(t,n,r,i,o);this.cache.set(s,c),e.set(s,c)}if(u=this.cache.get(l)){var d;A$(d=a.isTransposed?this.getCircleGridCfg(t,n,cW.RADIUS,o):this.getLineGridCfg(t,n,cW.CIRCLE,o),l5),u.component.update(d),e.set(l,u)}else{if(a.isTransposed){if((0,wW.o8)(n))return;u=this.createCircleGrid(t,n,r,cW.RADIUS,o)}else u=this.createLineGrid(t,n,r,cW.CIRCLE,o);u&&(this.cache.set(l,u),e.set(l,u))}}}}},t.prototype.updateYAxes=function(e){var t=this,n=this.view.getYScales();(0,wW.S6)(n,(function(n,i){if(n&&!n.isIdentity){var r=n.field,o=J$(t.option,r);if(!1!==o){var a=lW.BG,s="y",l=t.getId("axis",r),c=t.getId("grid",r),u=t.view.getCoordinate();if(u.isRect){var d=eX(o,0===i?cW.LEFT:cW.RIGHT);if(h=t.cache.get(l))A$(p=t.getLineAxisCfg(n,o,d),l5),h.component.update(p),e.set(l,h);else h=t.createLineAxis(n,o,a,d,s),t.cache.set(l,h),e.set(l,h);if(f=t.cache.get(c))A$(p=t.getLineGridCfg(n,o,d,s),l5),f.component.update(p),e.set(c,f);else(f=t.createLineGrid(n,o,a,d,s))&&(t.cache.set(c,f),e.set(c,f))}else if(u.isPolar){var h,f;if(h=t.cache.get(l)){A$(p=u.isTransposed?t.getCircleAxisCfg(n,o,cW.CIRCLE):t.getLineAxisCfg(n,o,cW.RADIUS),l5),h.component.update(p),e.set(l,h)}else{if(u.isTransposed){if((0,wW.o8)(o))return;h=t.createCircleAxis(n,o,a,cW.CIRCLE,s)}else h=t.createLineAxis(n,o,a,cW.RADIUS,s);t.cache.set(l,h),e.set(l,h)}if(f=t.cache.get(c)){var p;A$(p=u.isTransposed?t.getLineGridCfg(n,o,cW.CIRCLE,s):t.getCircleGridCfg(n,o,cW.RADIUS,s),l5),f.component.update(p),e.set(c,f)}else{if(u.isTransposed){if((0,wW.o8)(o))return;f=t.createLineGrid(n,o,a,cW.CIRCLE,s)}else f=t.createCircleGrid(n,o,a,cW.RADIUS,s);f&&(t.cache.set(c,f),e.set(c,f))}}}}}))},t.prototype.createLineAxis=function(e,t,n,i,r){var o={component:new _$(this.getLineAxisCfg(e,t,i)),layer:n,direction:i===cW.RADIUS?cW.NONE:i,type:uW.AXIS,extra:{dim:r,scale:e}};return o.component.set("field",e.field),o.component.init(),o},t.prototype.createLineGrid=function(e,t,n,i,r){var o=this.getLineGridCfg(e,t,i,r);if(o){var a={component:new C$(o),layer:n,direction:cW.NONE,type:uW.GRID,extra:{dim:r,scale:e,alignTick:(0,wW.U2)(o,"alignTick",!0)}};return a.component.init(),a}},t.prototype.createCircleAxis=function(e,t,n,i,r){var o={component:new b$(this.getCircleAxisCfg(e,t,i)),layer:n,direction:i,type:uW.AXIS,extra:{dim:r,scale:e}};return o.component.set("field",e.field),o.component.init(),o},t.prototype.createCircleGrid=function(e,t,n,i,r){var o=this.getCircleGridCfg(e,t,i,r);if(o){var a={component:new S$(o),layer:n,direction:cW.NONE,type:uW.GRID,extra:{dim:r,scale:e,alignTick:(0,wW.U2)(o,"alignTick",!0)}};return a.component.init(),a}},t.prototype.getLineAxisCfg=function(e,t,n){var i=(0,wW.U2)(t,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),o=K$(r,n),a=tX(e,t),s=$$(this.view.getTheme(),n),l=(0,wW.U2)(t,["title"])?(0,wW.b$)({title:{style:{text:a}}},{title:X$(this.view.getTheme(),n,t.title)},t):t,c=(0,wW.b$)((0,SW.pi)((0,SW.pi)({container:i},o),{ticks:e.getTicks().map((function(e){return{id:"".concat(e.tickValue),name:e.text,value:e.value}})),verticalFactor:r.isPolar?-1*q$(o,r.getCenter()):q$(o,r.getCenter()),theme:s}),s,l),u=this.getAnimateCfg(c),d=u.animate,h=u.animateOption;c.animateOption=h,c.animate=d;var f=Y$(o),p=(0,wW.U2)(c,"verticalLimitLength",f?1/3:.5);if(p<=1){var g=this.view.getCanvas().get("width"),v=this.view.getCanvas().get("height");c.verticalLimitLength=p*(f?g:v)}return c},t.prototype.getLineGridCfg=function(e,t,n,i){if(s5($$(this.view.getTheme(),n),t)){var r=r5(this.view.getTheme(),n),o=(0,wW.b$)({container:(0,wW.U2)(t,["top"])?this.gridForeContainer:this.gridContainer},r,(0,wW.U2)(t,"grid"),this.getAnimateCfg(t));return o.items=o5(this.view.getCoordinate(),e,i,(0,wW.U2)(o,"alignTick",!0)),o}},t.prototype.getCircleAxisCfg=function(e,t,n){var i=(0,wW.U2)(t,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),o=e.getTicks().map((function(e){return{id:"".concat(e.tickValue),name:e.text,value:e.value}}));e.isCategory||Math.abs(r.endAngle-r.startAngle)!==2*Math.PI||o.length&&(o[o.length-1].name="");var a=tX(e,t),s=$$(this.view.getTheme(),cW.CIRCLE),l=(0,wW.U2)(t,["title"])?(0,wW.b$)({title:{style:{text:a}}},{title:X$(this.view.getTheme(),n,t.title)},t):t,c=(0,wW.b$)((0,SW.pi)((0,SW.pi)({container:i},Q$(this.view.getCoordinate())),{ticks:o,verticalFactor:1,theme:s}),s,l),u=this.getAnimateCfg(c),d=u.animate,h=u.animateOption;return c.animate=d,c.animateOption=h,c},t.prototype.getCircleGridCfg=function(e,t,n,i){if(s5($$(this.view.getTheme(),n),t)){var r=r5(this.view.getTheme(),cW.RADIUS),o=(0,wW.b$)({container:(0,wW.U2)(t,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},r,(0,wW.U2)(t,"grid"),this.getAnimateCfg(t)),a=(0,wW.U2)(o,"alignTick",!0),s="x"===i?this.view.getYScales()[0]:this.view.getXScale();return o.items=a5(this.view.getCoordinate(),s,e,a,i),o}},t.prototype.getId=function(e,t){var n=this.view.getCoordinate();return"".concat(e,"-").concat(t,"-").concat(n.type)},t.prototype.getAnimateCfg=function(e){return{animate:this.view.getOptions().animate&&(0,wW.U2)(e,"animate"),animateOption:e&&e.animateOption?(0,wW.b$)({},c5,e.animateOption):c5}},t}(rJ),d5=u5;function h5(e,t,n){return n===cW.TOP?[e.minX+e.width/2-t.width/2,e.minY]:n===cW.BOTTOM?[e.minX+e.width/2-t.width/2,e.maxY-t.height]:n===cW.LEFT?[e.minX,e.minY+e.height/2-t.height/2]:n===cW.RIGHT?[e.maxX-t.width,e.minY+e.height/2-t.height/2]:n===cW.TOP_LEFT||n===cW.LEFT_TOP?[e.tl.x,e.tl.y]:n===cW.TOP_RIGHT||n===cW.RIGHT_TOP?[e.tr.x-t.width,e.tr.y]:n===cW.BOTTOM_LEFT||n===cW.LEFT_BOTTOM?[e.bl.x,e.bl.y-t.height]:n===cW.BOTTOM_RIGHT||n===cW.RIGHT_BOTTOM?[e.br.x-t.width,e.br.y-t.height]:[0,0]}function f5(e,t){return(0,wW.jn)(e)?!1!==e&&{}:(0,wW.U2)(e,[t],e)}function p5(e){return(0,wW.U2)(e,"position",cW.BOTTOM)}var g5=function(e){function t(t){var n=e.call(this,t)||this;return n.container=n.view.getLayer(lW.FORE).addGroup(),n}return(0,SW.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this;this.layoutBBox=this.view.viewBBox,(0,wW.S6)(this.components,(function(t){var n=t.component,i=t.direction,r=qJ(i),o=n.get("maxWidthRatio"),a=n.get("maxHeightRatio"),s=e.getCategoryLegendSizeCfg(r,o,a),l=n.get("maxWidth"),c=n.get("maxHeight");n.update({maxWidth:Math.min(s.maxWidth,l||0),maxHeight:Math.min(s.maxHeight,c||0)});var u=n.get("padding"),d=n.getLayoutBBox(),h=new P$(d.x,d.y,d.width,d.height).expand(u),f=(0,SW.CR)(h5(e.view.viewBBox,h,i),2),p=f[0],g=f[1],v=(0,SW.CR)(h5(e.layoutBBox,h,i),2),m=v[0],y=v[1],_=0,b=0;i.startsWith("top")||i.startsWith("bottom")?(_=p,b=y):(_=m,b=g),n.setLocation({x:_+u[3],y:b+u[0]}),e.layoutBBox=e.layoutBBox.cut(h,i)}))},t.prototype.update=function(){var e=this;this.option=this.view.getOptions().legends;var t={};if((0,wW.U2)(this.option,"custom")){var n="global-custom",i=this.getComponentById(n);if(i){var r=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);A$(r,["container"]),i.component.update(r),t[n]=!0}else{var o=this.createCustomLegend(void 0,void 0,void 0,this.option);if(o){o.init();var a=lW.FORE,s=p5(this.option);this.components.push({id:n,component:o,layer:a,direction:s,type:uW.LEGEND,extra:void 0}),t[n]=!0}}}else this.loopLegends((function(n,i,r){var o=e.getId(r.field),a=e.getComponentById(o);if(a){var s=void 0,l=f5(e.option,r.field);!1!==l&&((0,wW.U2)(l,"custom")?s=e.getCategoryCfg(n,i,r,l,!0):r.isLinear?s=e.getContinuousCfg(n,i,r,l):r.isCategory&&(s=e.getCategoryCfg(n,i,r,l))),s&&(A$(s,["container"]),a.direction=p5(l),a.component.update(s),t[o]=!0)}else{var c=e.createFieldLegend(n,i,r);c&&(c.component.init(),e.components.push(c),t[o]=!0)}}));var l=[];(0,wW.S6)(this.getComponents(),(function(e){t[e.id]?l.push(e):e.component.destroy()})),this.components=l},t.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},t.prototype.getGeometries=function(e){var t=this,n=e.geometries;return(0,wW.S6)(e.views,(function(e){n=n.concat(t.getGeometries(e))})),n},t.prototype.loopLegends=function(e){if(this.view.getRootView()===this.view){var t=this.getGeometries(this.view),n={};(0,wW.S6)(t,(function(t){var i=t.getGroupAttributes();(0,wW.S6)(i,(function(i){var r=i.getScale(i.type);r&&"identity"!==r.type&&!n[r.field]&&(e(t,i,r),n[r.field]=!0)}))}))}},t.prototype.createFieldLegend=function(e,t,n){var i,r=f5(this.option,n.field),o=lW.FORE,a=p5(r);if(!1!==r&&((0,wW.U2)(r,"custom")?i=this.createCustomLegend(e,t,n,r):n.isLinear?i=this.createContinuousLegend(e,t,n,r):n.isCategory&&(i=this.createCategoryLegend(e,t,n,r))),i)return i.set("field",n.field),{id:this.getId(n.field),component:i,layer:o,direction:a,type:uW.LEGEND,extra:{scale:n}}},t.prototype.createCustomLegend=function(e,t,n,i){var r=this.getCategoryCfg(e,t,n,i,!0);return new w$(r)},t.prototype.createContinuousLegend=function(e,t,n,i){var r=this.getContinuousCfg(e,t,n,A$(i,["value"]));return new k$(r)},t.prototype.createCategoryLegend=function(e,t,n,i){var r=this.getCategoryCfg(e,t,n,i);return new w$(r)},t.prototype.getContinuousCfg=function(e,t,n,i){var r=n.getTicks(),o=(0,wW.sE)(r,(function(e){return 0===e.value})),a=(0,wW.sE)(r,(function(e){return 1===e.value})),s=r.map((function(e){var i=e.value,r=e.tickValue,o=t.mapping(n.invert(i)).join("");return{value:r,attrValue:o,color:o,scaleValue:i}}));o||s.push({value:n.min,attrValue:t.mapping(n.invert(0)).join(""),color:t.mapping(n.invert(0)).join(""),scaleValue:0}),a||s.push({value:n.max,attrValue:t.mapping(n.invert(1)).join(""),color:t.mapping(n.invert(1)).join(""),scaleValue:1}),s.sort((function(e,t){return e.value-t.value}));var l={min:(0,wW.YM)(s).value,max:(0,wW.Z$)(s).value,colors:[],rail:{type:t.type},track:{}};"size"===t.type&&(l.track={style:{fill:"size"===t.type?this.view.getTheme().defaultColor:void 0}}),"color"===t.type&&(l.colors=s.map((function(e){return e.attrValue})));var c=this.container,u=qJ(p5(i)),d=(0,wW.U2)(i,"title");return d&&(d=(0,wW.b$)({text:W$(n)},d)),l.container=c,l.layout=u,l.title=d,l.animateOption=uJ,this.mergeLegendCfg(l,i,"continuous")},t.prototype.getCategoryCfg=function(e,t,n,i,r){var o=this.container,a=(0,wW.U2)(i,"position",cW.BOTTOM),s=XJ(this.view.getTheme(),a),l=(0,wW.U2)(s,["marker"]),c=(0,wW.U2)(i,"marker"),u=qJ(a),d=(0,wW.U2)(s,["pageNavigator"]),h=(0,wW.U2)(i,"pageNavigator"),f=r?function(e,t,n){return n.map((function(n,i){var r=t;(0,wW.mf)(r)&&(r=r(n.name,i,(0,wW.b$)({},e,n)));var o=(0,wW.mf)(n.marker)?n.marker(n.name,i,(0,wW.b$)({},e,n)):n.marker,a=(0,wW.b$)({},e,r,o);return YJ(a),n.marker=a,n}))}(l,c,i.items):$J(this.view,e,t,l,c),p=(0,wW.U2)(i,"title");p&&(p=(0,wW.b$)({text:n?W$(n):""},p));var g=(0,wW.U2)(i,"maxWidthRatio"),v=(0,wW.U2)(i,"maxHeightRatio"),m=this.getCategoryLegendSizeCfg(u,g,v);m.container=o,m.layout=u,m.items=f,m.title=p,m.animateOption=uJ,m.pageNavigator=(0,wW.b$)({},d,h);var y=this.mergeLegendCfg(m,i,a);y.reversed&&y.items.reverse();var _=(0,wW.U2)(y,"maxItemWidth");return _&&_<=1&&(y.maxItemWidth=this.view.viewBBox.width*_),y},t.prototype.mergeLegendCfg=function(e,t,n){var i=n.split("-")[0],r=XJ(this.view.getTheme(),i);return(0,wW.b$)({},r,e,t)},t.prototype.getId=function(e){return"".concat(this.name,"-").concat(e)},t.prototype.getComponentById=function(e){return(0,wW.sE)(this.components,(function(t){return t.id===e}))},t.prototype.getCategoryLegendSizeCfg=function(e,t,n){void 0===t&&(t=.25),void 0===n&&(n=.25);var i=this.view.viewBBox,r=i.width,o=i.height;return"vertical"===e?{maxWidth:r*t,maxHeight:o}:{maxWidth:r,maxHeight:o*n}},t}(rJ),v5=g5,m5=function(e){function t(t){var n=e.call(this,t)||this;return n.onChangeFn=wW.ZT,n.resetMeasure=function(){n.clear()},n.onValueChange=function(e){var t=(0,SW.CR)(e,2),i=t[0],r=t[1];n.start=i,n.end=r,n.changeViewData(i,r)},n.container=n.view.getLayer(lW.FORE).addGroup(),n.onChangeFn=(0,wW.P2)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(kW.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(kW.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return(0,SW.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(kW.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(kW.BEFORE_CHANGE_SIZE,this.resetMeasure)},t.prototype.init=function(){},t.prototype.render=function(){this.option=this.view.getOptions().slider;var e=this.getSliderCfg(),t=e.start,n=e.end;(0,wW.UM)(this.start)&&(this.start=t,this.end=n);var i=this.view.getOptions().data;this.option&&!(0,wW.xb)(i)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},t.prototype.layout=function(){var e=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){e.view.destroyed||e.changeViewData(e.start,e.end)}),0)),this.slider){var t=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),i=(0,SW.CR)(n,4),r=i[0],o=(i[1],i[2],i[3]),a=this.slider.component.getLayoutBBox(),s=new P$(a.x,a.y,Math.min(a.width,t),a.height).expand(n),l=this.getMinMaxText(this.start,this.end),c=l.minText,u=l.maxText,d=(0,SW.CR)(h5(this.view.viewBBox,s,cW.BOTTOM),2),h=(d[0],d[1]),f=(0,SW.CR)(h5(this.view.coordinateBBox,s,cW.BOTTOM),2),p=f[0];f[1];this.slider.component.update((0,SW.pi)((0,SW.pi)({},this.getSliderCfg()),{x:p+o,y:h+r,width:this.width,start:this.start,end:this.end,minText:c,maxText:u})),this.view.viewBBox=this.view.viewBBox.cut(s,cW.BOTTOM)}},t.prototype.update=function(){this.render()},t.prototype.createSlider=function(){var e=this.getSliderCfg(),t=new g$((0,SW.pi)({container:this.container},e));return t.init(),{component:t,layer:lW.FORE,direction:cW.BOTTOM,type:uW.SLIDER}},t.prototype.updateSlider=function(){var e=this.getSliderCfg();if(this.width){var t=this.getMinMaxText(this.start,this.end),n=t.minText,i=t.maxText;e=(0,SW.pi)((0,SW.pi)({},e),{width:this.width,start:this.start,end:this.end,minText:n,maxText:i})}return this.slider.component.update(e),this.slider},t.prototype.measureSlider=function(){var e=this.getSliderCfg().width;this.width=e},t.prototype.getSliderCfg=function(){var e={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,wW.Kn)(this.option)){var t=(0,SW.pi)({data:this.getData()},(0,wW.U2)(this.option,"trendCfg",{}));e=(0,wW.b$)({},e,this.getThemeOptions(),this.option),e=(0,SW.pi)((0,SW.pi)({},e),{trendCfg:t})}return e.start=(0,wW.uZ)(Math.min((0,wW.UM)(e.start)?0:e.start,(0,wW.UM)(e.end)?1:e.end),0,1),e.end=(0,wW.uZ)(Math.max((0,wW.UM)(e.start)?0:e.start,(0,wW.UM)(e.end)?1:e.end),0,1),e},t.prototype.getData=function(){var e=this.view.getOptions().data,t=(0,SW.CR)(this.view.getYScales(),1)[0],n=this.view.getGroupScales();if(n.length){var i=n[0],r=i.field,o=i.ticks;return e.reduce((function(e,n){return n[r]===o[0]&&e.push(n[t.field]),e}),[])}return e.map((function(e){return e[t.field]||0}))},t.prototype.getThemeOptions=function(){var e=this.view.getTheme();return(0,wW.U2)(e,["components","slider","common"],{})},t.prototype.getMinMaxText=function(e,t){var n=this.view.getOptions().data,i=this.view.getXScale(),r=(0,wW.I)(n,i.field);i.isLinear&&(r=r.sort());var o=r,a=(0,wW.dp)(n);if(!i||!a)return{};var s=(0,wW.dp)(o),l=Math.round(e*(s-1)),c=Math.round(t*(s-1)),u=(0,wW.U2)(o,[l]),d=(0,wW.U2)(o,[c]),h=this.getSliderCfg().formatter;return h&&(u=h(u,n[l],l),d=h(d,n[c],c)),{minText:u,maxText:d}},t.prototype.changeViewData=function(e,t){var n=this.view.getOptions().data,i=this.view.getXScale(),r=(0,wW.dp)(n);if(i&&r){var o=(0,wW.I)(n,i.field),a=this.view.getXScale().isLinear?o.sort((function(e,t){return Number(e)-Number(t)})):o,s=a,l=(0,wW.dp)(s),c=Math.round(e*(l-1)),u=Math.round(t*(l-1));this.view.filter(i.field,(function(e,t){var n=s.indexOf(e);return!(n>-1)||R$(n,c,u)})),this.view.render(!0)}},t.prototype.getComponents=function(){return this.slider?[this.slider]:[]},t.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},t}(rJ),y5=m5,_5=function(e){function t(t){var n=e.call(this,t)||this;return n.onChangeFn=wW.ZT,n.resetMeasure=function(){n.clear()},n.onValueChange=function(e){var t=e.ratio,i=n.getValidScrollbarCfg().animate;n.ratio=(0,wW.uZ)(t,0,1);var r=n.view.getOptions().animate;i||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(r)},n.container=n.view.getLayer(lW.FORE).addGroup(),n.onChangeFn=(0,wW.P2)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(kW.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(kW.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return(0,SW.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(kW.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(kW.BEFORE_CHANGE_SIZE,this.resetMeasure)},t.prototype.init=function(){},t.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},t.prototype.layout=function(){var e=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){e.view.destroyed||e.changeViewData(e.getScrollRange(),!0)}))),this.scrollbar){var t=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),r=new P$(i.x,i.y,Math.min(i.width,t),i.height).expand(n),o=this.getScrollbarComponentCfg(),a=void 0,s=void 0;if(o.isHorizontal){var l=(0,SW.CR)(h5(this.view.viewBBox,r,cW.BOTTOM),2),c=(l[0],l[1]),u=(0,SW.CR)(h5(this.view.coordinateBBox,r,cW.BOTTOM),2),d=u[0];u[1];a=d,s=c}else{var h=(0,SW.CR)(h5(this.view.viewBBox,r,cW.RIGHT),2),f=(h[0],c=h[1],(0,SW.CR)(h5(this.view.viewBBox,r,cW.RIGHT),2));d=f[0],f[1];a=d,s=c}a+=n[3],s+=n[0],this.trackLen?this.scrollbar.component.update((0,SW.pi)((0,SW.pi)({},o),{x:a,y:s,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,SW.pi)((0,SW.pi)({},o),{x:a,y:s})),this.view.viewBBox=this.view.viewBBox.cut(r,o.isHorizontal?cW.BOTTOM:cW.RIGHT)}},t.prototype.update=function(){this.render()},t.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},t.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},t.prototype.setValue=function(e){this.onValueChange({ratio:e})},t.prototype.getValue=function(){return this.ratio},t.prototype.getThemeOptions=function(){var e=this.view.getTheme();return(0,wW.U2)(e,["components","scrollbar","common"],{})},t.prototype.getScrollbarTheme=function(e){var t=(0,wW.U2)(this.view.getTheme(),["components","scrollbar"]),n=e||{},i=n.thumbHighlightColor,r=(0,SW._T)(n,["thumbHighlightColor"]);return{default:(0,wW.b$)({},(0,wW.U2)(t,["default","style"],{}),r),hover:(0,wW.b$)({},(0,wW.U2)(t,["hover","style"],{}),{thumbColor:i})}},t.prototype.measureScrollbar=function(){var e=this.view.getXScale(),t=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),i=n.trackLen,r=n.thumbLen;this.trackLen=i,this.thumbLen=r,this.xScaleCfg={field:e.field,values:e.values||[]},this.yScalesCfg=t},t.prototype.getScrollRange=function(){var e=Math.floor((this.cnt-this.step)*(0,wW.uZ)(this.ratio,0,1));return[e,Math.min(e+this.step-1,this.cnt-1)]},t.prototype.changeViewData=function(e,t){var n=this,i=(0,SW.CR)(e,2),r=i[0],o=i[1],a="vertical"!==this.getValidScrollbarCfg().type,s=(0,wW.I)(this.data,this.xScaleCfg.field),l=this.view.getXScale().isLinear?s.sort((function(e,t){return Number(e)-Number(t)})):s,c=a?l:l.reverse();this.yScalesCfg.forEach((function(e){n.view.scale(e.field,{formatter:e.formatter,type:e.type,min:e.min,max:e.max,tickMethod:e.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(e){var t=c.indexOf(e);return!(t>-1)||R$(t,r,o)})),this.view.render(!0)},t.prototype.createScrollbar=function(){var e="vertical"!==this.getValidScrollbarCfg().type,t=new y$((0,SW.pi)((0,SW.pi)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return t.init(),{component:t,layer:lW.FORE,direction:e?cW.BOTTOM:cW.RIGHT,type:uW.SCROLLBAR}},t.prototype.updateScrollbar=function(){var e=this.getScrollbarComponentCfg(),t=this.trackLen?(0,SW.pi)((0,SW.pi)({},e),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,SW.pi)({},e);return this.scrollbar.component.update(t),this.scrollbar},t.prototype.getStep=function(){if(this.step)return this.step;var e=this.view.coordinateBBox,t=this.getValidScrollbarCfg(),n=t.type,i=t.categorySize,r="vertical"!==n;return Math.floor((r?e.width:e.height)/i)},t.prototype.getCnt=function(){if(this.cnt)return this.cnt;var e=this.view.getXScale(),t=this.getScrollbarData(),n=(0,wW.I)(t,e.field);return(0,wW.dp)(n)},t.prototype.getScrollbarComponentCfg=function(){var e=this.view,t=e.coordinateBBox,n=e.viewBBox,i=this.getValidScrollbarCfg(),r=i.type,o=i.padding,a=i.width,s=i.height,l=i.style,c="vertical"!==r,u=(0,SW.CR)(o,4),d=u[0],h=u[1],f=u[2],p=u[3],g=c?{x:t.minX+p,y:n.maxY-s-f}:{x:n.maxX-a-h,y:t.minY+d},v=this.getStep(),m=this.getCnt(),y=c?t.width-p-h:t.height-d-f,_=Math.max(y*(0,wW.uZ)(v/m,0,1),20);return(0,SW.pi)((0,SW.pi)({},this.getThemeOptions()),{x:g.x,y:g.y,size:c?s:a,isHorizontal:c,trackLen:y,thumbLen:_,thumbOffset:0,theme:this.getScrollbarTheme(l)})},t.prototype.getValidScrollbarCfg=function(){var e={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return(0,wW.Kn)(this.option)&&(e=(0,SW.pi)((0,SW.pi)({},e),this.option)),(0,wW.Kn)(this.option)&&this.option.padding||(e.padding=(e.type,[0,0,0,0])),e},t.prototype.getScrollbarData=function(){var e=this.view.getCoordinate(),t=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return e.isReflect("y")&&"vertical"===t.type&&(n=(0,SW.ev)([],(0,SW.CR)(n),!1).reverse()),n},t}(rJ),b5=_5,C5={fill:"#CCD6EC",opacity:.3};function S5(e,t,n){var i,r,o,a,s,l,c=function(e,t,n){var i,r,o=zQ(e,t,n);try{for(var a=(0,SW.XA)(e.views),s=a.next();!s.done;s=a.next()){var l=s.value;o=o.concat(zQ(l,t,n))}}catch(c){i={error:c}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}(e,t,n);if(c.length){c=(0,wW.xH)(c);try{for(var u=(0,SW.XA)(c),d=u.next();!d.done;d=u.next()){var h=d.value;try{for(var f=(o=void 0,(0,SW.XA)(h)),p=f.next();!p.done;p=f.next()){var g=p.value,v=g.mappingData,m=v.x,y=v.y;g.x=(0,wW.kJ)(m)?m[m.length-1]:m,g.y=(0,wW.kJ)(y)?y[y.length-1]:y}}catch(x){o={error:x}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}}}catch(E){i={error:E}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}if(!1===n.shared&&c.length>1){var _=c[0],b=Math.abs(t.y-_[0].y);try{for(var C=(0,SW.XA)(c),S=C.next();!S.done;S=C.next()){var w=S.value,k=Math.abs(t.y-w[0].y);k<=b&&(_=w,b=k)}}catch(T){s={error:T}}finally{try{S&&!S.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}c=[_]}return(0,wW.jj)((0,wW.xH)(c))}return[]}var w5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.show=function(e){var t=this.context.view,n=this.context.event,i=t.getController("tooltip").getTooltipCfg(),r=S5(t,{x:n.x,y:n.y},i);if(!(0,wW.Xy)(r,this.items)&&(this.items=r,r.length)){var o=t.getXScale().field,a=r[0].data[o],s=[],l=t.geometries;if((0,wW.S6)(l,(function(e){if("interval"===e.type||"schema"===e.type){var t=e.getElementsBy((function(e){return e.getData()[o]===a}));s=s.concat(t)}})),s.length){var c=t.getCoordinate(),u=s[0].shape.getCanvasBBox(),d=s[0].shape.getCanvasBBox(),h=u;(0,wW.S6)(s,(function(e){var t=e.shape.getCanvasBBox();c.isTransposed?(t.minY<u.minY&&(u=t),t.maxY>d.maxY&&(d=t)):(t.minX<u.minX&&(u=t),t.maxX>d.maxX&&(d=t)),h.x=Math.min(t.minX,h.minX),h.y=Math.min(t.minY,h.minY),h.width=Math.max(t.maxX,h.maxX)-h.x,h.height=Math.max(t.maxY,h.maxY)-h.y}));var f=t.backgroundGroup,p=t.coordinateBBox,g=void 0;if(c.isRect){var v=t.getXScale(),m=e||{},y=m.appendRatio,_=m.appendWidth;(0,wW.UM)(_)&&(y=(0,wW.UM)(y)?v.isLinear?0:.25:y,_=c.isTransposed?y*d.height:y*u.width);var b=void 0,C=void 0,S=void 0,w=void 0;c.isTransposed?(b=p.minX,C=Math.min(d.minY,u.minY)-_,S=p.width,w=h.height+2*_):(b=Math.min(u.minX,d.minX)-_,C=p.minY,S=h.width+2*_,w=p.height),g=[["M",b,C],["L",b+S,C],["L",b+S,C+w],["L",b,C+w],["Z"]]}else{var k=(0,wW.YM)(s),x=(0,wW.Z$)(s),E=L$(k.getModel(),c).startAngle,T=L$(x.getModel(),c).endAngle,N=c.getCenter(),I=c.getRadius(),D=c.innerRadius*I;g=I$(N.x,N.y,I,E,T,D)}if(this.regionPath)this.regionPath.attr("path",g),this.regionPath.show();else{var L=(0,wW.U2)(e,"style",C5);this.regionPath=f.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,SW.pi)((0,SW.pi)({},L),{path:g})})}}}},t.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},t.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},t}(aX),k5=w5,x5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,SW.ZT)(t,e),t.prototype.show=function(){var e=this.context,t=e.event,n=e.view;if(!n.isTooltipLocked()){var i=this.timeStamp,r=+new Date;if(r-i>(0,wW.U2)(e.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,a={x:t.x,y:t.y};o&&(0,wW.Xy)(o,a)||this.showTooltip(n,a),this.timeStamp=r,this.location=a}}},t.prototype.hide=function(){var e=this.context.view,t=e.getController("tooltip"),n=this.context.event,i=n.clientX,r=n.clientY;t.isCursorEntered({x:i,y:r})||e.isTooltipLocked()||(this.hideTooltip(e),this.location=null)},t.prototype.showTooltip=function(e,t){e.showTooltip(t)},t.prototype.hideTooltip=function(e){e.hideTooltip()},t}(aX),E5=x5,T5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.showTooltip=function(e,t){var n=QX(e);(0,wW.S6)(n,(function(n){var i=JX(e,n,t);n.showTooltip(i)}))},t.prototype.hideTooltip=function(e){var t=QX(e);(0,wW.S6)(t,(function(e){e.hideTooltip()}))},t}(E5),N5=T5,I5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,SW.ZT)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},t.prototype.show=function(){var e=this.context.event,t=this.timeStamp,n=+new Date;if(n-t>16){var i=this.location,r={x:e.x,y:e.y};i&&(0,wW.Xy)(i,r)||this.showTooltip(r),this.timeStamp=n,this.location=r}},t.prototype.hide=function(){this.hideTooltip(),this.location=null},t.prototype.showTooltip=function(e){var t=this.context.event.target;if(t&&t.get("tip")){this.tooltip||this.renderTooltip();var n=t.get("tip");this.tooltip.update((0,SW.pi)({title:n},e)),this.tooltip.show()}},t.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},t.prototype.renderTooltip=function(){var e,t=this.context.view,n=t.canvas,i={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},r=t.getTheme(),o=(0,wW.U2)(r,["components","tooltip","domStyles"],{}),a=new x$({parent:n.get("el").parentNode,region:i,visible:!1,crosshairs:null,domStyles:(0,SW.pi)({},(0,wW.b$)({},o,(e={},e[zq]={"max-width":"50%"},e[jq]={"word-break":"break-all"},e)))});a.init(),a.setCapture(!1),this.tooltip=a},t}(aX),D5=I5,L5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t}return(0,SW.ZT)(t,e),t.prototype.hasState=function(e){return e.hasState(this.stateName)},t.prototype.setElementState=function(e,t){e.setState(this.stateName,t)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.clear=function(){var e=this.context.view;this.clearViewState(e)},t.prototype.clearViewState=function(e){var t=this,n=WX(e,this.stateName);(0,wW.S6)(n,(function(e){t.setElementState(e,!1)}))},t}(aX),O5=L5;function R5(e){return(0,wW.U2)(e.get("delegateObject"),"item")}var A5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return(0,SW.ZT)(t,e),t.prototype.isItemIgnore=function(e,t){var n=this.ignoreListItemStates.filter((function(n){return t.hasState(e,n)}));return!!n.length},t.prototype.setStateByComponent=function(e,t,n){var i=this.context.view,r=e.get("field"),o=VX(i);this.setElementsStateByItem(o,r,t,n)},t.prototype.setStateByElement=function(e,t){this.setElementState(e,t)},t.prototype.isMathItem=function(e,t,n){var i=tQ(this.context.view,t),r=UX(e,t);return!(0,wW.UM)(r)&&n.name===i.getText(r)},t.prototype.setElementsStateByItem=function(e,t,n,i){var r=this;(0,wW.S6)(e,(function(e){r.isMathItem(e,t,n)&&e.setState(r.stateName,i)}))},t.prototype.setStateEnable=function(e){var t=RX(this.context);if(t)MX(this.context)&&this.setStateByElement(t,e);else{var n=AX(this.context);if(PX(n)){var i=n.item,r=n.component;if(i&&r&&!this.isItemIgnore(i,r)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&R5(o.fromShape)===R5(o.toShape))return;this.setStateByComponent(r,i,e)}}}},t.prototype.toggle=function(){var e=RX(this.context);if(e){var t=e.hasState(this.stateName);this.setElementState(e,!t)}},t.prototype.reset=function(){this.setStateEnable(!1)},t}(O5),M5=A5,P5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,SW.ZT)(t,e),t.prototype.active=function(){this.setState()},t}(M5),Z5=P5,F5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={},t}return(0,SW.ZT)(t,e),t.prototype.getColorScale=function(e,t){var n=t.geometry.getAttribute("color");return n?e.getScaleByField(n.getFields()[0]):null},t.prototype.getLinkPath=function(e,t){var n=this.context.view.getCoordinate().isTransposed,i=e.shape.getCanvasBBox(),r=t.shape.getCanvasBBox();return n?[["M",i.minX,i.minY],["L",r.minX,r.maxY],["L",r.maxX,r.maxY],["L",i.maxX,i.minY],["Z"]]:[["M",i.maxX,i.minY],["L",r.minX,r.minY],["L",r.minX,r.maxY],["L",i.maxX,i.maxY],["Z"]]},t.prototype.addLinkShape=function(e,t,n,i){var r={opacity:.4,fill:t.shape.attr("fill")};e.addShape({type:"path",attrs:(0,SW.pi)((0,SW.pi)({},(0,wW.b$)({},r,(0,wW.mf)(i)?i(r,t):i)),{path:this.getLinkPath(t,n)})})},t.prototype.linkByElement=function(e,t){var n=this,i=this.context.view,r=this.getColorScale(i,e);if(r){var o=UX(e,r.field);if(!this.cache[o]){var a=function(e,t,n){return VX(e).filter((function(e){return UX(e,t)===n}))}(i,r.field,o),s=this.linkGroup.addGroup();this.cache[o]=s;var l=a.length;(0,wW.S6)(a,(function(e,i){if(i<l-1){var r=a[i+1];n.addLinkShape(s,e,r,t)}}))}}},t.prototype.removeLink=function(e){var t=this.getColorScale(this.context.view,e);if(t){var n=UX(e,t.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},t.prototype.link=function(e){var t=this.context;this.linkGroup||(this.linkGroup=t.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=RX(t);n&&this.linkByElement(n,null===e||void 0===e?void 0:e.style)},t.prototype.unlink=function(){var e=RX(this.context);e&&this.removeLink(e)},t.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},t}(aX),B5=F5,H5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startPoint=null,t.endPoint=null,t.isStarted=!1,t.effectSiblings=!1,t.effectByRecord=!1,t}return(0,SW.ZT)(t,e),t.prototype.getCurrentPoint=function(){var e=this.context.event;return{x:e.x,y:e.y}},t.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},t.prototype.getIntersectElements=function(){var e=null;if(FX(this.context))e=HX(this.context,10);else{var t=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!t||!n)return;var i={minX:Math.min(t.x,n.x),minY:Math.min(t.y,n.y),maxX:Math.max(t.x,n.x),maxY:Math.max(t.y,n.y)};e=GX(this.context.view,i)}return e},t.prototype.setStateEnable=function(e){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(e);else{var t=VX(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,e):this.setElementsState(n,e,t):this.clear()}},t.prototype.setSiblingsStateByRecord=function(e,t){var n=this,i=this.context.view,r=QX(i),o=e.map((function(e){return e.getModel().data})),a=i.getXScale().field,s=i.getYScales()[0].field;(0,wW.S6)(r,(function(e){var i=VX(e),r=i.filter((function(e){var t=e.getModel().data;return eQ(o,t,a,s)}));n.setElementsState(r,t,i)}))},t.prototype.setSiblingsState=function(e){var t=this,n=QX(this.context.view);FX(this.context)&&(0,wW.S6)(n,(function(n){var i=VX(n),r=zX(t.context,n,10);r&&r.length?t.setElementsState(r,e,i):t.clearViewState(n)}))},t.prototype.setElementsState=function(e,t,n){var i=this;(0,wW.S6)(n,(function(n){e.includes(n)?i.setElementState(n,t):i.setElementState(n,!1)}))},t.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},t.prototype.clear=function(){var e=this,t=this.context.view;if(this.effectSiblings){var n=QX(t);(0,wW.S6)(n,(function(t){e.clearViewState(t)}))}else this.clearViewState(t)},t}(O5),z5=H5,j5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,SW.ZT)(t,e),t.prototype.active=function(){this.setState()},t}(z5),V5=j5,W5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.setStateEnable=function(e){var t=RX(this.context);if(t){if(!MX(this.context))return;e?(this.clear(),this.setElementState(t,!0)):this.hasState(t)&&this.setElementState(t,!1)}},t.prototype.toggle=function(){var e=RX(this.context);if(e){var t=this.hasState(e);t||this.clear(),this.setElementState(e,!t)}},t.prototype.reset=function(){this.setStateEnable(!1)},t}(O5),U5=W5,G5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,SW.ZT)(t,e),t.prototype.active=function(){this.setState()},t}(U5),K5=G5,Y5="inactive",q5="active";function $5(e){var t=VX(e);(0,wW.S6)(t,(function(e){e.hasState(q5)&&e.setState(q5,!1),e.hasState(Y5)&&e.setState(Y5,!1)}))}function X5(e,t,n){(0,wW.S6)(e,(function(e){t(e)?(e.hasState(Y5)&&e.setState(Y5,!1),e.setState(q5,n)):(e.hasState(q5)&&e.setState(q5,!1),e.setState(Y5,n))}))}var Q5,J5=TW.INACTIVE,e6=TW.ACTIVE,t6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=e6,t}return(0,SW.ZT)(t,e),t.prototype.setElementsStateByItem=function(e,t,n,i){var r=this;this.setHighlightBy(e,(function(e){return r.isMathItem(e,t,n)}),i)},t.prototype.setElementHighlight=function(e,t){t(e)?(e.hasState(J5)&&e.setState(J5,!1),e.setState(e6,!0)):e.hasState(e6)||e.setState(J5,!0)},t.prototype.setHighlightBy=function(e,t,n){var i=this;if(n)(0,wW.S6)(e,(function(e){i.setElementHighlight(e,t)}));else{var r=WX(this.context.view,e6),o=!0;(0,wW.S6)(r,(function(e){if(!t(e))return o=!1,!1})),o?this.clear():(0,wW.S6)(e,(function(e){t(e)&&(e.hasState(e6)&&e.setState(e6,!1),e.setState(J5,!0))}))}},t.prototype.setElementState=function(e,t){var n=VX(this.context.view);this.setHighlightBy(n,(function(t){return e===t}),t)},t.prototype.highlight=function(){this.setState()},t.prototype.clear=function(){$5(this.context.view)},t}(M5),n6=t6,i6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.setStateByElement=function(e,t){var n=this.context.view,i=e.geometry.getAttribute("color");if(i){var r=n.getScaleByField(i.getFields()[0]),o=UX(e,r.field),a=VX(n),s=a.filter((function(e){return UX(e,r.field)===o}));this.setHighlightBy(a,(function(e){return s.includes(e)}),t)}},t}(n6),r6=i6,o6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.setElementHighlight=function(e,t){t(e)?(e.hasState(J5)&&e.setState(J5,!1),e.setState(e6,!0)):(e.setState(J5,!0),e.hasState(e6)&&e.setState(e6,!1))},t.prototype.setStateByElement=function(e,t){var n=this.context.view,i=n.getXScale(),r=UX(e,i.field),o=VX(n),a=o.filter((function(e){return UX(e,i.field)===r}));this.setHighlightBy(o,(function(e){return a.includes(e)}),t)},t.prototype.toggle=function(){var e=RX(this.context);if(e){var t=e.hasState(this.stateName);this.setStateByElement(e,!t)}},t}(n6),a6=o6;!function(e){e.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",e.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",e.BEFORE_CLEAR="element-range-highlight:beforeclear",e.AFTER_CLEAR="element-range-highlight:afterclear"}(Q5||(Q5={}));var s6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,SW.ZT)(t,e),t.prototype.clearViewState=function(e){$5(e)},t.prototype.highlight=function(){var e=this.context,t=e.view,n={view:t,event:e.event,highlightElements:this.getIntersectElements()};t.emit(Q5.BEFORE_HIGHLIGHT,YQ.fromData(t,Q5.BEFORE_HIGHLIGHT,n)),this.setState(),t.emit(Q5.AFTER_HIGHLIGHT,YQ.fromData(t,Q5.AFTER_HIGHLIGHT,n))},t.prototype.clear=function(){var t=this.context.view;t.emit(Q5.BEFORE_CLEAR,YQ.fromData(t,Q5.BEFORE_CLEAR,{})),e.prototype.clear.call(this),t.emit(Q5.AFTER_CLEAR,YQ.fromData(t,Q5.AFTER_CLEAR,{}))},t.prototype.setElementsState=function(e,t,n){X5(n,(function(t){return e.indexOf(t)>=0}),t)},t}(z5),l6=s6,c6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,SW.ZT)(t,e),t.prototype.highlight=function(){this.setState()},t.prototype.setElementState=function(e,t){X5(VX(this.context.view),(function(t){return e===t}),t)},t.prototype.clear=function(){$5(this.context.view)},t}(U5),u6=c6,d6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,SW.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(z5),h6=d6,f6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,SW.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(M5),p6=f6,g6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,SW.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(U5),v6=g6,m6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return(0,SW.ZT)(t,e),t.prototype.getTriggerListInfo=function(){var e=AX(this.context),t=null;return PX(e)&&(t={item:e.item,list:e.component}),t},t.prototype.getAllowComponents=function(){var e=this,t=qX(this.context.view),n=[];return(0,wW.S6)(t,(function(t){t.isList()&&e.allowSetStateByElement(t)&&n.push(t)})),n},t.prototype.hasState=function(e,t){return e.hasState(t,this.stateName)},t.prototype.clearAllComponentsState=function(){var e=this,t=this.getAllowComponents();(0,wW.S6)(t,(function(t){t.clearItemsState(e.stateName)}))},t.prototype.allowSetStateByElement=function(e){var t=e.get("field");if(!t)return!1;if(this.cfg&&this.cfg.componentNames){var n=e.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var i=tQ(this.context.view,t);return i&&i.isCategory},t.prototype.allowSetStateByItem=function(e,t){var n=this.ignoreItemStates;if(n.length){var i=n.filter((function(n){return t.hasState(e,n)}));return 0===i.length}return!0},t.prototype.setStateByElement=function(e,t,n){var i=e.get("field"),r=tQ(this.context.view,i),o=UX(t,i),a=r.getText(o);this.setItemsState(e,a,n)},t.prototype.setStateEnable=function(e){var t=this,n=RX(this.context);if(n){var i=this.getAllowComponents();(0,wW.S6)(i,(function(i){t.setStateByElement(i,n,e)}))}else{var r=AX(this.context);if(PX(r)){var o=r.item,a=r.component;this.allowSetStateByElement(a)&&this.allowSetStateByItem(o,a)&&this.setItemState(a,o,e)}}},t.prototype.setItemsState=function(e,t,n){var i=this,r=e.getItems();(0,wW.S6)(r,(function(r){r.name===t&&i.setItemState(e,r,n)}))},t.prototype.setItemState=function(e,t,n){e.setItemState(t,this.stateName,n)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.reset=function(){this.setStateEnable(!1)},t.prototype.toggle=function(){var e=this.getTriggerListInfo();if(e&&e.item){var t=e.list,n=e.item,i=this.hasState(t,n);this.setItemState(t,n,!i)}},t.prototype.clear=function(){var e=this.getTriggerListInfo();e?e.list.clearItemsState(this.stateName):this.clearAllComponentsState()},t}(aX),y6=m6,_6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,SW.ZT)(t,e),t.prototype.active=function(){this.setState()},t}(y6),b6=_6,C6="inactive",S6="active";var w6="inactive",k6="active",x6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=k6,t.ignoreItemStates=["unchecked"],t}return(0,SW.ZT)(t,e),t.prototype.setItemsState=function(e,t,n){this.setHighlightBy(e,(function(e){return e.name===t}),n)},t.prototype.setItemState=function(e,t,n){e.getItems();this.setHighlightBy(e,(function(e){return e===t}),n)},t.prototype.setHighlightBy=function(e,t,n){var i=e.getItems();if(n)(0,wW.S6)(i,(function(n){t(n)?(e.hasState(n,w6)&&e.setItemState(n,w6,!1),e.setItemState(n,k6,!0)):e.hasState(n,k6)||e.setItemState(n,w6,!0)}));else{var r=e.getItemsByState(k6),o=!0;(0,wW.S6)(r,(function(e){if(!t(e))return o=!1,!1})),o?this.clear():(0,wW.S6)(i,(function(n){t(n)&&(e.hasState(n,k6)&&e.setItemState(n,k6,!1),e.setItemState(n,w6,!0))}))}},t.prototype.highlight=function(){this.setState()},t.prototype.clear=function(){var e=this.getTriggerListInfo();if(e)!function(e){var t=e.getItems();(0,wW.S6)(t,(function(t){e.hasState(t,S6)&&e.setItemState(t,S6,!1),e.hasState(t,C6)&&e.setItemState(t,C6,!1)}))}(e.list);else{var t=this.getAllowComponents();(0,wW.S6)(t,(function(e){e.clearItemsState(k6),e.clearItemsState(w6)}))}},t}(y6),E6=x6,T6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,SW.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(y6),N6=T6,I6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="unchecked",t}return(0,SW.ZT)(t,e),t.prototype.unchecked=function(){this.setState()},t}(y6),D6=I6,L6="unchecked",O6="checked",R6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=O6,t}return(0,SW.ZT)(t,e),t.prototype.setItemState=function(e,t,n){this.setCheckedBy(e,(function(e){return e===t}),n)},t.prototype.setCheckedBy=function(e,t,n){var i=e.getItems();n&&(0,wW.S6)(i,(function(n){t(n)?(e.hasState(n,L6)&&e.setItemState(n,L6,!1),e.setItemState(n,O6,!0)):e.hasState(n,O6)||e.setItemState(n,L6,!0)}))},t.prototype.toggle=function(){var e=this.getTriggerListInfo();if(e&&e.item){var t=e.list,n=e.item,i=!(0,wW.G)(t.getItems(),(function(e){return t.hasState(e,L6)}));i||t.hasState(n,L6)?this.setItemState(t,n,!0):this.reset()}},t.prototype.checked=function(){this.setState()},t.prototype.reset=function(){var e=this.getAllowComponents();(0,wW.S6)(e,(function(e){e.clearItemsState(O6),e.clearItemsState(L6)}))},t}(y6),A6=R6,M6="unchecked",P6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.toggle=function(){var e,t,n,i,r,o,a,s,l=this.getTriggerListInfo();if(null===l||void 0===l?void 0:l.item){var c=l.list,u=l.item,d=c.getItems(),h=d.filter((function(e){return!c.hasState(e,M6)})),f=d.filter((function(e){return c.hasState(e,M6)})),p=h[0];if(d.length===h.length)try{for(var g=(0,SW.XA)(d),v=g.next();!v.done;v=g.next()){var m=v.value;c.setItemState(m,M6,m.id!==u.id)}}catch(k){e={error:k}}finally{try{v&&!v.done&&(t=g.return)&&t.call(g)}finally{if(e)throw e.error}}else if(d.length-f.length===1)if(p.id===u.id)try{for(var y=(0,SW.XA)(d),_=y.next();!_.done;_=y.next()){m=_.value;c.setItemState(m,M6,!1)}}catch(x){n={error:x}}finally{try{_&&!_.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}else try{for(var b=(0,SW.XA)(d),C=b.next();!C.done;C=b.next()){m=C.value;c.setItemState(m,M6,m.id!==u.id)}}catch(E){r={error:E}}finally{try{C&&!C.done&&(o=b.return)&&o.call(b)}finally{if(r)throw r.error}}else try{for(var S=(0,SW.XA)(d),w=S.next();!w.done;w=S.next()){m=w.value;c.setItemState(m,M6,m.id!==u.id)}}catch(T){a={error:T}}finally{try{w&&!w.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}}},t}(y6),Z6=P6,F6="showRadio",B6="legend-radio-tip",H6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,SW.ZT)(t,e),t.prototype.show=function(){var e=this.getTriggerListInfo();if(null===e||void 0===e?void 0:e.item){var t=e.list,n=e.item;t.setItemState(n,F6,!0)}},t.prototype.hide=function(){var e=this.getTriggerListInfo();if(null===e||void 0===e?void 0:e.item){var t=e.list,n=e.item;t.setItemState(n,F6,!1)}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},t.prototype.showTip=function(){var e=this.context.event,t=this.timeStamp,n=+new Date,i=this.context.event.target;if(n-t>16&&"legend-item-radio"===i.get("name")){var r=this.location,o={x:e.x,y:e.y};this.timeStamp=n,this.location=o,r&&(0,wW.Xy)(r,o)||this.showTooltip(o)}},t.prototype.hideTip=function(){this.hideTooltip(),this.location=null},t.prototype.showTooltip=function(e){var t=this.context,n=t.event.target;if(n&&n.get("tip")){this.tooltip||this.renderTooltip();var i=t.view.getCanvas().get("el").getBoundingClientRect(),r=i.x,o=i.y;this.tooltip.update((0,SW.pi)((0,SW.pi)({title:n.get("tip")},e),{x:e.x+r,y:e.y+o})),this.tooltip.show()}},t.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},t.prototype.renderTooltip=function(){var e,t=((e={})[zq]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},e[jq]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},e);document.getElementById(B6)&&document.body.removeChild(document.getElementById(B6));var n=new x$({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:t,containerId:B6});n.init(),n.setCapture(!1),this.tooltip=n},t}(y6),z6=H6,j6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return(0,SW.ZT)(t,e),t.prototype.getCurrentPoint=function(){var e=this.context.event;return{x:e.x,y:e.y}},t.prototype.emitEvent=function(e){var t="mask:".concat(e),n=this.context.view,i=this.context.event;n.emit(t,{target:this.maskShape,shape:this.maskShape,points:this.points,x:i.x,y:i.y})},t.prototype.createMask=function(){var e=this.context.view,t=this.getMaskAttrs();return e.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,SW.pi)({fill:"#C5D4EB",opacity:.3},t)})},t.prototype.getMaskPath=function(){return[]},t.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},t.prototype.start=function(e){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null===e||void 0===e?void 0:e.maskStyle),this.emitEvent("start")},t.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},t.prototype.move=function(){if(this.moving&&this.maskShape){var e=this.getCurrentPoint(),t=this.preMovePoint,n=e.x-t.x,i=e.y-t.y,r=this.points;(0,wW.S6)(r,(function(e){e.x+=n,e.y+=i})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=e}},t.prototype.updateMask=function(e){var t=(0,wW.b$)({},this.getMaskAttrs(),e);this.maskShape.attr(t)},t.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},t.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},t.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},t.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},t.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,e.prototype.destroy.call(this)},t}(aX),V6=j6;function W6(e){var t=(0,wW.Z$)(e),n=0,i=0,r=0;if(e.length){var o=e[0];n=$X(o,t)/2,i=(t.x+o.x)/2,r=(t.y+o.y)/2}return{x:i,y:r,r:n}}var U6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="circle",t}return(0,SW.ZT)(t,e),t.prototype.getMaskAttrs=function(){return W6(this.points)},t}(V6),G6=U6;function K6(e){return{start:(0,wW.YM)(e),end:(0,wW.Z$)(e)}}function Y6(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),width:Math.abs(t.x-e.x),height:Math.abs(t.y-e.y)}}var q6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return(0,SW.ZT)(t,e),t.prototype.getRegion=function(){return K6(this.points)},t.prototype.getMaskAttrs=function(){var e=this.getRegion();return Y6(e.start,e.end)},t}(V6),$6=q6;function X6(e){e.x=(0,wW.uZ)(e.x,0,1),e.y=(0,wW.uZ)(e.y,0,1)}function Q6(e,t,n,i){var r=null,o=null,a=i.invert((0,wW.YM)(e)),s=i.invert((0,wW.Z$)(e));return n&&(X6(a),X6(s)),"x"===t?(r=i.convert({x:a.x,y:0}),o=i.convert({x:s.x,y:1})):(r=i.convert({x:0,y:a.y}),o=i.convert({x:1,y:s.y})),{start:r,end:o}}var J6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return(0,SW.ZT)(t,e),t.prototype.getRegion=function(){var e=this.context.view.getCoordinate();return Q6(this.points,this.dim,this.inPlot,e)},t}($6),e7=J6;function t7(e){var t=[];return e.length&&((0,wW.S6)(e,(function(e,n){0===n?t.push(["M",e.x,e.y]):t.push(["L",e.x,e.y])})),t.push(["L",e[0].x,e[0].y])),t}function n7(e){return{path:t7(e)}}var i7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getMaskPath=function(){return t7(this.points)},t.prototype.getMaskAttrs=function(){return n7(this.points)},t.prototype.addPoint=function(){this.resize()},t}(V6),r7=i7;function o7(e){return function(e,t){if(e.length<=2)return vX(e,!1);var n=e[0],i=[];(0,wW.S6)(e,(function(e){i.push(e.x),i.push(e.y)}));var r=gX(i,t,null);return r.unshift(["M",n.x,n.y]),r}(e,!0)}function a7(e){return{path:o7(e)}}var s7,l7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getMaskPath=function(){return o7(this.points)},t.prototype.getMaskAttrs=function(){return a7(this.points)},t}(r7),c7=l7,u7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.maskShapes=[],t.starting=!1,t.moving=!1,t.recordPoints=null,t.preMovePoint=null,t.shapeType="path",t.maskType="multi-mask",t}return(0,SW.ZT)(t,e),t.prototype.getCurrentPoint=function(){var e=this.context.event;return{x:e.x,y:e.y}},t.prototype.emitEvent=function(e){var t="".concat(this.maskType,":").concat(e),n=this.context.view,i=this.context.event,r={type:this.shapeType,name:this.maskType,get:function(e){return r.hasOwnProperty(e)?r[e]:void 0}};n.emit(t,{target:r,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:i.x,y:i.y})},t.prototype.createMask=function(e){var t=this.context.view,n=this.recordPoints[e],i=this.getMaskAttrs(n),r=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,SW.pi)({fill:"#C5D4EB",opacity:.3},i)});this.maskShapes.push(r)},t.prototype.getMaskPath=function(e){return[]},t.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(e){return e.show()})),this.emitEvent("show"))},t.prototype.start=function(e){this.recordPointStart(),this.starting=!0,this.moving=!1;var t=this.recordPoints.length-1;this.createMask(t),this.updateShapesCapture(!1),this.updateMask(null===e||void 0===e?void 0:e.maskStyle),this.emitEvent("start")},t.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},t.prototype.move=function(){if(this.moving&&0!==this.maskShapes.length){var e=this.getCurrentPoint(),t=this.preMovePoint,n=e.x-t.x,i=e.y-t.y,r=this.getCurMaskShapeIndex();r>-1&&(this.recordPoints[r].forEach((function(e){e.x+=n,e.y+=i})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=e)}},t.prototype.updateMask=function(e){var t=this;this.recordPoints.forEach((function(n,i){var r=(0,wW.b$)({},t.getMaskAttrs(n),e);t.maskShapes[i].attr(r)}))},t.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},t.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},t.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},t.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(e){return e.hide()})),this.emitEvent("hide"))},t.prototype.remove=function(){var e=this.getCurMaskShapeIndex();e>-1&&(this.recordPoints.splice(e,1),this.maskShapes[e].remove(),this.maskShapes.splice(e,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},t.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach((function(e){return e.remove()})),this.maskShapes=[],this.preMovePoint=null},t.prototype.clear=function(){var e=this.getCurMaskShapeIndex();-1===e?(this.recordPointClear(),this.maskShapes.forEach((function(e){return e.remove()})),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(e,1),this.maskShapes[e].remove(),this.maskShapes.splice(e,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},t.prototype.destroy=function(){this.clear(),e.prototype.destroy.call(this)},t.prototype.getRecordPoints=function(){var e;return(0,SW.ev)([],(0,SW.CR)(null!==(e=this.recordPoints)&&void 0!==e?e:[]),!1)},t.prototype.recordPointStart=function(){var e=this.getRecordPoints(),t=this.getCurrentPoint();this.recordPoints=(0,SW.ev)((0,SW.ev)([],(0,SW.CR)(e),!1),[[t]],!1)},t.prototype.recordPointContinue=function(){var e=this.getRecordPoints(),t=this.getCurrentPoint(),n=e.splice(-1,1)[0]||[];n.push(t),this.recordPoints=(0,SW.ev)((0,SW.ev)([],(0,SW.CR)(e),!1),[n],!1)},t.prototype.recordPointClear=function(){this.recordPoints=[]},t.prototype.updateShapesCapture=function(e){this.maskShapes.forEach((function(t){return t.set("capture",e)}))},t.prototype.getCurMaskShapeIndex=function(){var e=this.getCurrentPoint();return this.maskShapes.findIndex((function(t){var n=t.attrs,i=n.width,r=n.height,o=n.r;return!(0===i||0===r||0===o)&&t.isHit(e.x,e.y)}))},t}(aX),d7=u7,h7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return(0,SW.ZT)(t,e),t.prototype.getRegion=function(e){return K6(e)},t.prototype.getMaskAttrs=function(e){var t=this.getRegion(e);return Y6(t.start,t.end)},t}(d7),f7=h7,p7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return(0,SW.ZT)(t,e),t.prototype.getRegion=function(e){var t=this.context.view.getCoordinate();return Q6(e,this.dim,this.inPlot,t)},t}(f7),g7=p7,v7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="circle",t.getMaskAttrs=W6,t}return(0,SW.ZT)(t,e),t}(d7),m7=v7,y7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getMaskPath=t7,t.getMaskAttrs=n7,t}return(0,SW.ZT)(t,e),t.prototype.addPoint=function(){this.resize()},t}(d7),_7=y7,b7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getMaskPath=o7,t.getMaskAttrs=a7,t}return(0,SW.ZT)(t,e),t}(_7),C7=b7,S7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.setCursor=function(e){this.context.view.getCanvas().setCursor(e)},t.prototype.default=function(){this.setCursor("default")},t.prototype.pointer=function(){this.setCursor("pointer")},t.prototype.move=function(){this.setCursor("move")},t.prototype.crosshair=function(){this.setCursor("crosshair")},t.prototype.wait=function(){this.setCursor("wait")},t.prototype.help=function(){this.setCursor("help")},t.prototype.text=function(){this.setCursor("text")},t.prototype.eResize=function(){this.setCursor("e-resize")},t.prototype.wResize=function(){this.setCursor("w-resize")},t.prototype.nResize=function(){this.setCursor("n-resize")},t.prototype.sResize=function(){this.setCursor("s-resize")},t.prototype.neResize=function(){this.setCursor("ne-resize")},t.prototype.nwResize=function(){this.setCursor("nw-resize")},t.prototype.seResize=function(){this.setCursor("se-resize")},t.prototype.swResize=function(){this.setCursor("sw-resize")},t.prototype.nsResize=function(){this.setCursor("ns-resize")},t.prototype.ewResize=function(){this.setCursor("ew-resize")},t.prototype.zoomIn=function(){this.setCursor("zoom-in")},t.prototype.zoomOut=function(){this.setCursor("zoom-out")},t}(aX),w7=S7,k7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.filterView=function(e,t,n){var i=this;e.getScaleByField(t)&&e.filter(t,n),e.views&&e.views.length&&(0,wW.S6)(e.views,(function(e){i.filterView(e,t,n)}))},t.prototype.filter=function(){var e=AX(this.context);if(e){var t=this.context.view,n=e.component,i=n.get("field");if(PX(e)){if(i){var r=n.getItemsByState("unchecked"),o=tQ(t,i),a=r.map((function(e){return e.name}));a.length?this.filterView(t,i,(function(e){var t=o.getText(e);return!a.includes(t)})):this.filterView(t,i,null),t.render(!0)}}else if(ZX(e)){var s=n.getValue(),l=(0,SW.CR)(s,2),c=l[0],u=l[1];this.filterView(t,i,(function(e){return e>=c&&e<=u})),t.render(!0)}}},t}(aX),x7=k7;function E7(e,t,n,i){var r=Math.min(n[t],i[t]),o=Math.max(n[t],i[t]),a=(0,SW.CR)(e.range,2),s=a[0],l=a[1];if(r<s&&(r=s),o>l&&(o=l),r===l&&o===l)return null;var c=e.invert(r),u=e.invert(o);if(e.isCategory){var d=e.values.indexOf(c),h=e.values.indexOf(u),f=e.values.slice(d,h+1);return function(e){return f.includes(e)}}return function(e){return e>=c&&e<=u}}!function(e){e.FILTER="brush-filter-processing",e.RESET="brush-filter-reset",e.BEFORE_FILTER="brush-filter:beforefilter",e.AFTER_FILTER="brush-filter:afterfilter",e.BEFORE_RESET="brush-filter:beforereset",e.AFTER_RESET="brush-filter:afterreset"}(s7||(s7={}));var T7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return(0,SW.ZT)(t,e),t.prototype.hasDim=function(e){return this.dims.includes(e)},t.prototype.start=function(){var e=this.context;this.isStarted=!0,this.startPoint=e.getCurrentPoint()},t.prototype.filter=function(){var e,t;if(FX(this.context)){var n=this.context.event.target.getCanvasBBox();e={x:n.x,y:n.y},t={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;e=this.startPoint,t=this.context.getCurrentPoint()}if(!(Math.abs(e.x-t.x)<5||Math.abs(e.x-t.y)<5)){var i=this.context,r=i.view,o={view:r,event:i.event,dims:this.dims};r.emit(s7.BEFORE_FILTER,YQ.fromData(r,s7.BEFORE_FILTER,o));var a=r.getCoordinate(),s=a.invert(t),l=a.invert(e);if(this.hasDim("x")){var c=r.getXScale(),u=E7(c,"x",s,l);this.filterView(r,c.field,u)}if(this.hasDim("y")){var d=r.getYScales()[0];u=E7(d,"y",s,l);this.filterView(r,d.field,u)}this.reRender(r,{source:s7.FILTER}),r.emit(s7.AFTER_FILTER,YQ.fromData(r,s7.AFTER_FILTER,o))}},t.prototype.end=function(){this.isStarted=!1},t.prototype.reset=function(){var e=this.context.view;if(e.emit(s7.BEFORE_RESET,YQ.fromData(e,s7.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var t=e.getXScale();this.filterView(e,t.field,null)}if(this.hasDim("y")){var n=e.getYScales()[0];this.filterView(e,n.field,null)}this.reRender(e,{source:s7.RESET}),e.emit(s7.AFTER_RESET,YQ.fromData(e,s7.AFTER_RESET,{}))},t.prototype.filterView=function(e,t,n){e.filter(t,n)},t.prototype.reRender=function(e,t){e.render(!0,t)},t}(aX),N7=T7,I7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.filterView=function(e,t,n){var i=QX(e);(0,wW.S6)(i,(function(e){e.filter(t,n)}))},t.prototype.reRender=function(e){var t=QX(e);(0,wW.S6)(t,(function(e){e.render(!0)}))},t}(N7),D7=I7,L7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.filter=function(){var e=AX(this.context),t=this.context.view,n=VX(t);if(FX(this.context)){var i=HX(this.context,10);i&&(0,wW.S6)(n,(function(e){i.includes(e)?e.show():e.hide()}))}else if(e){var r=e.component,o=r.get("field");if(PX(e)){if(o){var a=r.getItemsByState("unchecked"),s=tQ(t,o),l=a.map((function(e){return e.name}));(0,wW.S6)(n,(function(e){var t=UX(e,o),n=s.getText(t);l.indexOf(n)>=0?e.hide():e.show()}))}}else if(ZX(e)){var c=r.getValue(),u=(0,SW.CR)(c,2),d=u[0],h=u[1];(0,wW.S6)(n,(function(e){var t=UX(e,o);t>=d&&t<=h?e.show():e.hide()}))}}},t.prototype.clear=function(){var e=VX(this.context.view);(0,wW.S6)(e,(function(e){e.show()}))},t.prototype.reset=function(){this.clear()},t}(aX),O7=L7,R7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.byRecord=!1,t}return(0,SW.ZT)(t,e),t.prototype.filter=function(){FX(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},t.prototype.filterByRecord=function(){var e=this.context.view,t=HX(this.context,10);if(t){var n=e.getXScale().field,i=e.getYScales()[0].field,r=t.map((function(e){return e.getModel().data})),o=QX(e);(0,wW.S6)(o,(function(e){var t=VX(e);(0,wW.S6)(t,(function(e){var t=e.getModel().data;eQ(r,t,n,i)?e.show():e.hide()}))}))}},t.prototype.filterByBBox=function(){var e=this,t=QX(this.context.view);(0,wW.S6)(t,(function(t){var n=zX(e.context,t,10),i=VX(t);n&&(0,wW.S6)(i,(function(e){n.includes(e)?e.show():e.hide()}))}))},t.prototype.reset=function(){var e=QX(this.context.view);(0,wW.S6)(e,(function(e){var t=VX(e);(0,wW.S6)(t,(function(e){e.show()}))}))},t}(aX),A7=R7,M7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return(0,SW.ZT)(t,e),t.prototype.getButtonCfg=function(){return(0,wW.b$)(this.buttonCfg,this.cfg)},t.prototype.drawButton=function(){var e=this.getButtonCfg(),t=this.context.view.foregroundGroup.addGroup({name:e.name}),n=t.addShape({type:"text",name:"button-text",attrs:(0,SW.pi)({text:e.text},e.textStyle)}).getBBox(),i=jQ(e.padding),r=t.addShape({type:"rect",name:"button-rect",attrs:(0,SW.pi)({x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},e.style)});r.toBack(),t.on("mouseenter",(function(){r.attr(e.activeStyle)})),t.on("mouseleave",(function(){r.attr(e.style)})),this.buttonGroup=t},t.prototype.resetPosition=function(){var e=this.context.view.getCoordinate().convert({x:1,y:1}),t=this.buttonGroup,n=t.getBBox(),i=xK.vs(null,[["t",e.x-n.width-10,e.y+n.height+5]]);t.setMatrix(i)},t.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},t.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},t.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},t}(aX),P7=M7,Z7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return(0,SW.ZT)(t,e),t.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},t.prototype.drag=function(){if(this.startPoint){var e=this.context.getCurrentPoint(),t=this.context.view,n=this.context.event;this.dragStart?t.emit("drag",{target:n.target,x:n.x,y:n.y}):$X(e,this.startPoint)>4&&(t.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},t.prototype.end=function(){if(this.dragStart){var e=this.context.view,t=this.context.event;e.emit("dragend",{target:t.target,x:t.x,y:t.y})}this.starting=!1,this.dragStart=!1},t}(aX),F7=Z7,B7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return(0,SW.ZT)(t,e),t.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},t.prototype.move=function(){if(this.starting){var e=this.startPoint,t=this.context.getCurrentPoint();if($X(e,t)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,i=xK.vs(this.startMatrix,[["t",t.x-e.x,t.y-e.y]]);n.backgroundGroup.setMatrix(i),n.foregroundGroup.setMatrix(i),n.middleGroup.setMatrix(i)}}},t.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},t.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var e=this.context.view;e.backgroundGroup.resetMatrix(),e.foregroundGroup.resetMatrix(),e.middleGroup.resetMatrix(),this.isMoving=!1},t}(aX),H7=B7,z7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return(0,SW.ZT)(t,e),t.prototype.hasDim=function(e){return this.dims.includes(e)},t.prototype.getScale=function(e){var t=this.context.view;return"x"===e?t.getXScale():t.getYScales()[0]},t.prototype.resetDim=function(e){var t=this.context.view;if(this.hasDim(e)&&this.cacheScaleDefs[e]){var n=this.getScale(e);t.scale(n.field,this.cacheScaleDefs[e]),this.cacheScaleDefs[e]=null}},t.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},t}(aX),j7=z7,V7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return(0,SW.ZT)(t,e),t.prototype.start=function(){var e=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var t=this.dims;(0,wW.S6)(t,(function(t){var n=e.getScale(t),i=n.min,r=n.max,o=n.values;e.startCache[t]={min:i,max:r,values:o}}))},t.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},t.prototype.translate=function(){var e=this;if(this.starting){var t=this.startPoint,n=this.context.view.getCoordinate(),i=this.context.getCurrentPoint(),r=n.invert(t),o=n.invert(i),a=o.x-r.x,s=o.y-r.y,l=this.context.view,c=this.dims;(0,wW.S6)(c,(function(t){e.translateDim(t,{x:-1*a,y:-1*s})})),l.render(!0)}},t.prototype.translateDim=function(e,t){if(this.hasDim(e)){var n=this.getScale(e);n.isLinear&&this.translateLinear(e,n,t)}},t.prototype.translateLinear=function(e,t,n){var i=this.context.view,r=this.startCache[e],o=r.min,a=r.max,s=a-o,l=n[e]*s;this.cacheScaleDefs[e]||(this.cacheScaleDefs[e]={nice:t.nice,min:o,max:a}),i.scale(t.field,{nice:!1,min:o+l,max:a+l})},t.prototype.reset=function(){e.prototype.reset.call(this),this.startPoint=null,this.starting=!1},t}(j7),W7=V7,U7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.zoomRatio=.05,t}return(0,SW.ZT)(t,e),t.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},t.prototype.zoom=function(e){var t=this,n=this.dims;(0,wW.S6)(n,(function(n){t.zoomDim(n,e)})),this.context.view.render(!0)},t.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},t.prototype.zoomDim=function(e,t){if(this.hasDim(e)){var n=this.getScale(e);n.isLinear&&this.zoomLinear(e,n,t)}},t.prototype.zoomLinear=function(e,t,n){var i=this.context.view;this.cacheScaleDefs[e]||(this.cacheScaleDefs[e]={nice:t.nice,min:t.min,max:t.max});var r=this.cacheScaleDefs[e],o=r.max-r.min,a=t.min,s=t.max,l=n*o,c=a-l,u=s+l,d=(u-c)/o;u>c&&d<100&&d>.01&&i.scale(t.field,{nice:!1,min:a-l,max:s+l})},t}(j7),G7=U7;var K7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.scroll=function(e){var t=this.context,n=t.view,i=t.event;if(n.getOptions().scrollbar){var r=(null===e||void 0===e?void 0:e.wheelDelta)||1,o=n.getController("scrollbar"),a=n.getXScale(),s=n.getOptions().data,l=(0,wW.dp)((0,wW.I)(s,a.field)),c=(0,wW.dp)(a.values),u=o.getValue(),d=Math.floor((l-c)*u)+(function(e){return e.gEvent.originalEvent.deltaY>0}(i)?r:-r),h=r/(l-c)/1e4,f=(0,wW.uZ)(d/(l-c)+h,0,1);o.setValue(f)}},t}(aX),Y7=K7,q7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.show=function(){var e=this.context,t=AX(e).axis.cfg.title,n=t.description,i=t.text,r=t.descriptionTooltipStyle,o=e.event,a=o.x,s=o.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:i||"",customContent:function(){return'\n <div class="'.concat(zq,'" style={').concat(r,'}>\n <div class="').concat(jq,'">\n \u5b57\u6bb5\u8bf4\u660e\uff1a').concat(n,"\n </div>\n </div>\n ")},x:a,y:s}),this.tooltip.show()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},t.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},t.prototype.renderTooltip=function(){var e,t=this.context.view.canvas,n={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},i=new x$({parent:t.get("el").parentNode,region:n,visible:!1,containerId:"aixs-description-tooltip",domStyles:(0,SW.pi)({},(0,wW.b$)({},(e={},e[zq]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},e[jq]={"word-break":"break-all","margin-bottom":"3px"},e)))});i.init(),i.setCapture(!1),this.tooltip=i},t}(aX),$7=q7;function X7(e){return e.isInPlot()}function Q7(e){return e.gEvent.preventDefault(),e.gEvent.originalEvent.deltaY>0}!function(e,t){LQ[(0,wW.vl)(e)]=DQ(t)}("dark",mQ(w0)),FW("canvas",u),FW("svg",h),tJ("Polygon",V3),tJ("Interval",M3),tJ("Schema",U3),tJ("Path",m3),tJ("Point",z3),tJ("Line",Z3),tJ("Area",S3),tJ("Edge",k3),tJ("Heatmap",E3),tJ("Violin",K3),bJ("base",WJ),bJ("interval",r4),bJ("pie",c4),bJ("polar",s4),CJ("overlap",(function(e,t,n,i){var r=new d4;(0,wW.S6)(t,(function(e){for(var t=e.find((function(e){return"text"===e.get("type")})),n=t.attr(),i=n.x,o=n.y,a=!1,s=0;s<=8;s++){var l=h4(t,i,o,s);if(r.hasGap(l)){r.fillGap(l),a=!0;break}}a||e.remove(!0)})),r.destroy()})),CJ("distribute",(function(e,t,n,i){if(e.length&&t.length){var r=e[0]?e[0].offset:0,o=t[0].get("coordinate"),a=o.getRadius(),s=o.getCenter();if(r>0){var l=2*(a+r)+28,c={start:o.start,end:o.end},u=[[],[]];e.forEach((function(e){e&&("right"===e.textAlign?u[0].push(e):u[1].push(e))})),u.forEach((function(e,n){var i=l/14;e.length>i&&(e.sort((function(e,t){return t["..percent"]-e["..percent"]})),e.splice(i,e.length-i)),e.sort((function(e,t){return e.y-t.y})),function(e,t,n,i,r,o){var a,s,l,c=!0,u=i.start,d=i.end,h=Math.min(u.y,d.y),f=Math.abs(u.y-d.y),p=0,g=Number.MIN_VALUE,v=t.map((function(e){return e.y>p&&(p=e.y),e.y<g&&(g=e.y),{size:n,targets:[e.y-h]}}));for(g-=h,p-h>f&&(f=p-h);c;)for(v.forEach((function(e){var t=(Math.min.apply(g,e.targets)+Math.max.apply(g,e.targets))/2;e.pos=Math.min(Math.max(g,t-e.size/2),f-e.size)})),c=!1,l=v.length;l--;)if(l>0){var m=v[l-1],y=v[l];m.pos+m.size>y.pos&&(m.size+=y.size,m.targets=m.targets.concat(y.targets),m.pos+m.size>f&&(m.pos=f-m.size),v.splice(l,1),c=!0)}l=0,v.forEach((function(e){var i=h+n/2;e.targets.forEach((function(){t[l].y=e.pos+i,i+=n,l++}))}));var _={};try{for(var b=(0,SW.XA)(e),C=b.next();!C.done;C=b.next()){var S=C.value;_[S.get("id")]=S}}catch(w){a={error:w}}finally{try{C&&!C.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}t.forEach((function(e){var t=e.r*e.r,n=Math.pow(Math.abs(e.y-r.y),2);if(t<n)e.x=r.x;else{var i=Math.sqrt(t-n);e.x=o?r.x+i:r.x-i}var a=_[e.id];a.attr("x",e.x),a.attr("y",e.y);var s=(0,wW.sE)(a.getChildren(),(function(e){return"text"===e.get("type")}));s&&(s.attr("y",e.y),s.attr("x",e.x))}))}(t,e,14,c,s,n)}))}(0,wW.S6)(e,(function(e){if(e&&e.labelLine){var t=e.offset,n=e.angle,i=N$(s.x,s.y,a,n),r=N$(s.x,s.y,a+t/2,n),o=e.x+(0,wW.U2)(e,"offsetX",0),l=e.y+(0,wW.U2)(e,"offsetY",0),c={x:o-4*Math.cos(n),y:l-4*Math.sin(n)};(0,wW.Kn)(e.labelLine)||(e.labelLine={}),e.labelLine.path=["M ".concat(i.x),"".concat(i.y," Q").concat(r.x),"".concat(r.y," ").concat(c.x),c.y].join(",")}}))}})),CJ("fixed-overlap",(function(e,t,n,i){var r=new d4;(0,wW.S6)(t,(function(e){var t=e.find((function(e){return"text"===e.get("type")}));(function(e,t,n){void 0===n&&(n=100);var i,r=e.attr(),o=r.x,a=r.y,s=e.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),c=1,u=0,d=0,h=function(e){var t=.1*e;return[t*Math.cos(t),t*Math.sin(t)]};if(t.hasGap(s))return t.fillGap(s),!0;for(var f=!1,p=0,g={};Math.min(Math.abs(u),Math.abs(d))<l&&p<n;)if(u=~~(i=h(c+=-1))[0],d=~~i[1],(u||d)&&!g["".concat(u,"-").concat(d)]&&(e.attr({x:o+u,y:a+d}),u+d<0&&e.attr("textAlign","right"),p++,t.hasGap(e.getCanvasBBox()))){t.fillGap(e.getCanvasBBox()),f=!0,g["".concat(u,"-").concat(d)]=!0;break}return f})(t,r)||e.remove(!0)})),r.destroy()})),CJ("hide-overlap",(function(e,t,n,i){return(0,SW.mG)(this,void 0,void 0,(function(){var n,i,r,o,a,s;return(0,SW.Jh)(this,(function(l){switch(l.label){case 0:return n=t.map((function(t,n){return(0,SW.pi)((0,SW.pi)({},ZJ(t,e[n],(0,wW.U2)(e[n],"background.padding"))),{visible:!0})})),i=JSON.stringify(n),r=function(e){return w4.set(i,e),(0,wW.S6)(e,(function(e,n){var i=e.visible,r=t[n];i?null===r||void 0===r||r.show():null===r||void 0===r||r.hide()})),e},w4.get(i)?(r(w4.get(i)),[3,7]):[3,1];case 1:if(!k4)return[3,6];l.label=2;case 2:return l.trys.push([2,4,,5]),o=JSON.stringify({type:"hide-overlap",items:n}),[4,k4.post(o,(function(){return r(S4(n))}))];case 3:return a=l.sent(),r(Array.isArray(a.data)?a.data:[]),[3,5];case 4:return s=l.sent(),console.error(s),r(S4(n)),[3,5];case 5:return[3,7];case 6:r(S4(n)),l.label=7;case 7:return[2]}}))}))})),CJ("limit-in-shape",(function(e,t,n,i){(0,wW.S6)(t,(function(e,t){var i=e.getCanvasBBox(),r=n[t].getBBox();(i.minX<r.minX||i.minY<r.minY||i.maxX>r.maxX||i.maxY>r.maxY)&&e.remove(!0)}))})),CJ("limit-in-canvas",(function(e,t,n,i){(0,wW.S6)(t,(function(e){var t=i.minX,n=i.minY,r=i.maxX,o=i.maxY,a=e.getCanvasBBox(),s=a.minX,l=a.minY,c=a.maxX,u=a.maxY,d=a.x,h=a.y,f=a.width,p=a.height,g=d,v=h;(s<t||c<t)&&(g=t),(l<n||u<n)&&(v=n),s>r?g=r-f:c>r&&(g-=c-r),l>o?v=o-p:u>o&&(v-=u-o),g===d&&v===h||AJ(e,g-d,v-h)}))})),CJ("limit-in-plot",(function(e,t,n,i,r){if(!(t.length<=0)){var o=(null===r||void 0===r?void 0:r.direction)||["top","right","bottom","left"],a=(null===r||void 0===r?void 0:r.action)||"translate",s=(null===r||void 0===r?void 0:r.margin)||0,l=t[0].get("coordinate");if(l){var c=function(e,t){void 0===t&&(t=0);var n=e.start,i=e.end,r=e.getWidth(),o=e.getHeight(),a=Math.min(n.x,i.x),s=Math.min(n.y,i.y);return P$.fromRange(a-t,s-t,a+r+t,s+o+t)}(l,s),u=c.minX,d=c.minY,h=c.maxX,f=c.maxY;(0,wW.S6)(t,(function(e){var t=e.getCanvasBBox(),n=t.minX,i=t.minY,r=t.maxX,s=t.maxY,l=t.x,c=t.y,p=t.width,g=t.height,v=l,m=c;if(o.indexOf("left")>=0&&(n<u||r<u)&&(v=u),o.indexOf("top")>=0&&(i<d||s<d)&&(m=d),o.indexOf("right")>=0&&(n>h?v=h-p:r>h&&(v-=r-h)),o.indexOf("bottom")>=0&&(i>f?m=f-g:s>f&&(m-=s-f)),v!==l||m!==c){var y=v-l;if("translate"===a)AJ(e,y,m-c);else if("ellipsis"===a){var _=e.findAll((function(e){return"text"===e.get("type")}));_.forEach((function(e){var t=(0,wW.ei)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=e.getCanvasBBox(),i=function(e,t,n){var i,r=R4("...",n);i=(0,wW.HD)(e)?e:(0,wW.BB)(e);var o,a,s=t,l=[];if(R4(e,n)<=t)return e;for(;o=i.substr(0,16),!((a=R4(o,n))+r>s&&a>s);)if(l.push(o),s-=a,!(i=i.substr(16)))return l.join("");for(;o=i.substr(0,1),!((a=R4(o,n))+r>s);)if(l.push(o),s-=a,!(i=i.substr(1)))return l.join("");return"".concat(l.join(""),"...")}(e.attr("text"),n.width-Math.abs(y),t);e.attr("text",i)}))}else e.hide()}}))}}})),CJ("pie-outer",(function(e,t,n,i){var r,o,a=(0,wW.hX)(e,(function(e){return!(0,wW.UM)(e)})),s=t[0]&&t[0].get("coordinate");if(s){var l=s.getCenter(),c=s.getRadius(),u={};try{for(var d=(0,SW.XA)(t),h=d.next();!h.done;h=d.next()){var f=h.value;u[f.get("id")]=f}}catch(w){r={error:w}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}var p=(0,wW.U2)(a[0],"labelHeight",14),g=(0,wW.U2)(a[0],"offset",0);if(!(g<=0)){var v="right",m=(0,wW.vM)(a,(function(e){return e.x<l.x?"left":v})),y=s.start,_=s.end,b=Math.min(2*(c+g+p),s.getHeight()),C=b/2,S={minX:y.x,maxX:_.x,minY:l.y-C,maxY:l.y+C};(0,wW.S6)(m,(function(e,t){var n=Math.floor(b/p);e.length>n&&(e.sort((function(e,t){return t.percent-e.percent})),(0,wW.S6)(e,(function(e,t){t+1>n&&(u[e.id].set("visible",!1),e.invisible=!0)}))),u4(e,p,S)})),(0,wW.S6)(m,(function(e,t){(0,wW.S6)(e,(function(e){var n=t===v,i=u[e.id].getChildByIndex(0);if(i){var r=c+g,o=e.y-l.y,a=Math.pow(r,2),d=Math.pow(o,2),h=a-d>0?a-d:0,f=Math.sqrt(h),p=Math.abs(Math.cos(e.angle)*r);e.x=n?l.x+Math.max(f,p):l.x-Math.max(f,p)}i&&(i.attr("y",e.y),i.attr("x",e.x)),function(e,t){var n=t.getCenter(),i=t.getRadius();if(e&&e.labelLine){var r=e.angle,o=e.offset,a=N$(n.x,n.y,i,r),s=e.x+(0,wW.U2)(e,"offsetX",0)*(Math.cos(r)>0?1:-1),l=e.y+(0,wW.U2)(e,"offsetY",0)*(Math.sin(r)>0?1:-1),c={x:s-4*Math.cos(r),y:l-4*Math.sin(r)},u=e.labelLine.smooth,d=[],h=c.x-n.x,f=c.y-n.y,p=Math.atan(f/h);if(h<0&&(p+=Math.PI),!1===u){(0,wW.Kn)(e.labelLine)||(e.labelLine={});var g=0;(r<0&&r>-Math.PI/2||r>1.5*Math.PI)&&c.y>a.y&&(g=1),r>=0&&r<Math.PI/2&&c.y>a.y&&(g=1),r>=Math.PI/2&&r<Math.PI&&a.y>c.y&&(g=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&a.y>c.y&&(g=1);var v=o/2>4?4:Math.max(o/2-1,0),m=N$(n.x,n.y,i+v,r),y=N$(n.x,n.y,i+o/2,p);d.push("M ".concat(a.x," ").concat(a.y)),d.push("L ".concat(m.x," ").concat(m.y)),d.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(g," ").concat(y.x," ").concat(y.y)),d.push("L ".concat(c.x," ").concat(c.y))}else{m=N$(n.x,n.y,i+(o/2>4?4:Math.max(o/2-1,0)),r);var _=a.x<n.x?1:-1;d.push("M ".concat(c.x," ").concat(c.y));var b=(a.y-n.y)/(a.x-n.x),C=(c.y-n.y)/(c.x-n.x);Math.abs(b-C)>Math.pow(Math.E,-16)&&d.push.apply(d,["C",c.x+4*_,c.y,2*m.x-a.x,2*m.y-a.y,a.x,a.y]),d.push("L ".concat(a.x," ").concat(a.y))}e.labelLine.path=d.join(" ")}}(e,s)}))}))}}})),CJ("adjust-color",(function(e,t,n){if(0!==n.length){var i=n[0].get("element").geometry.theme,r=i.labels||{},o=r.fillColorLight,a=r.fillColorDark;n.forEach((function(e,n){var r=t[n].find((function(e){return"text"===e.get("type")})),s=P$.fromObject(e.getBBox()),l=P$.fromObject(r.getCanvasBBox()),c=!s.contains(l),u=function(e){var t=wU.toRGB(e).toUpperCase();if(E4[t])return E4[t];var n=(0,SW.CR)(wU.rgb2arr(t),3);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}(e.attr("fill"));c?r.attr(i.overflowLabels.style):u?o&&r.attr("fill",o):a&&r.attr("fill",a)}))}})),CJ("interval-adjust-position",(function(e,t,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),o=null===r||void 0===r?void 0:r.geometry;if(o&&"interval"===o.type)T4(o,t,n)&&n.forEach((function(e,n){var i=t[n];!function(e,t,n){var i=e.coordinate,r=P$.fromObject(n.getBBox()),o=PJ(t);i.isTransposed?o.attr({x:r.minX+r.width/2,textAlign:"center"}):o.attr({y:r.minY+r.height/2,textBaseline:"middle"})}(o,i,e)}))}})),CJ("interval-hide-overlap",(function(e,t,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),o=null===r||void 0===r?void 0:r.geometry;if(o&&"interval"===o.type){var a,s=function(e){var t=[],n=Math.max(Math.floor(e.length/500),1);return(0,wW.S6)(e,(function(e,i){i%n===0?t.push(e):e.set("visible",!1)})),t}(t),l=(0,SW.CR)(o.getXYFields(),1)[0],c=[],u=[],d=(0,wW.vM)(s,(function(e){return e.get("data")[l]})),h=(0,wW.jj)((0,wW.UI)(s,(function(e){return e.get("data")[l]})));s.forEach((function(e){e.set("visible",!0)}));var f=function(e){e&&(e.length&&u.push(e.pop()),u.push.apply(u,(0,SW.ev)([],(0,SW.CR)(e),!1)))};for((0,wW.dp)(h)>0&&(a=h.shift(),f(d[a])),(0,wW.dp)(h)>0&&(a=h.pop(),f(d[a])),(0,wW.S6)(h.reverse(),(function(e){f(d[e])}));u.length>0;){var p=u.shift();p.get("visible")&&(FJ(p,c)?p.set("visible",!1):c.push(p))}}}})),CJ("point-adjust-position",(function(e,t,n,i,r){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null===s||void 0===s?void 0:s.geometry;if(l&&"point"===l.type){var c=(0,SW.CR)(l.getXYFields(),2),u=c[0],d=c[1],h=(0,wW.vM)(t,(function(e){return e.get("data")[u]})),f=[],p=r&&r.offset||(null===(a=e[0])||void 0===a?void 0:a.offset)||12;(0,wW.UI)((0,wW.XP)(h).reverse(),(function(e){for(var t=function(e,t){var n=e.getXYFields()[1],i=[],r=t.sort((function(e,t){return e.get("data")[n]-e.get("data")[n]}));return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,(0,SW.ev)([],(0,SW.CR)(r),!1)),i}(l,h[e]);t.length;){var n=t.shift(),i=PJ(n);if(N4(f,n,(function(e,t){return e.get("data")[u]===t.get("data")[u]&&e.get("data")[d]===t.get("data")[d]})))i.set("visible",!1);else{var r=!1;I4(f,n)&&(i.attr("y",i.attr("y")+2*p),r=I4(f,n)),r?i.set("visible",!1):f.push(n)}}}))}}})),CJ("pie-spider",(function(e,t,n,i){var r,o,a=t[0]&&t[0].get("coordinate");if(a){var s=a.getCenter(),l=a.getRadius(),c={};try{for(var u=(0,SW.XA)(t),d=u.next();!d.done;d=u.next()){var h=d.value;c[h.get("id")]=h}}catch(w){r={error:w}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}var f=(0,wW.U2)(e[0],"labelHeight",14),p=Math.max((0,wW.U2)(e[0],"offset",0),4);(0,wW.S6)(e,(function(e){if(e&&(0,wW.U2)(c,[e.id])){var t=e.x>s.x||e.x===s.x&&e.y>s.y,n=(0,wW.UM)(e.offsetX)?4:e.offsetX,i=N$(s.x,s.y,l+4,e.angle),r=p+n;e.x=s.x+(t?1:-1)*(l+r),e.y=i.y}}));var g=a.start,v=a.end,m="right",y=(0,wW.vM)(e,(function(e){return e.x<s.x?"left":m})),_=2*(l+p)+f;(0,wW.S6)(y,(function(e){var t=e.length*f;t>_&&(_=Math.min(t,Math.abs(g.y-v.y)))}));var b={minX:g.x,maxX:v.x,minY:s.y-_/2,maxY:s.y+_/2};(0,wW.S6)(y,(function(e,t){var n=_/f;e.length>n&&(e.sort((function(e,t){return t.percent-e.percent})),(0,wW.S6)(e,(function(e,t){t>n&&(c[e.id].set("visible",!1),e.invisible=!0)}))),u4(e,f,b)}));var C=b.minY,S=b.maxY;(0,wW.S6)(y,(function(e,t){var n=t===m;(0,wW.S6)(e,(function(e){var t=(0,wW.U2)(c,e&&[e.id]);if(t)if(e.y<C||e.y>S)t.set("visible",!1);else{var i=t.getChildByIndex(0),r=i.getCanvasBBox(),o=n?r.x:r.maxX,s=r.y+r.height/2;AJ(i,e.x-o,e.y-s),e.labelLine&&function(e,t,n){var i,r=t.getCenter(),o=t.getRadius(),a={x:e.x-(n?4:-4),y:e.y},s=N$(r.x,r.y,o+4,e.angle),l={x:a.x,y:a.y},c={x:s.x,y:s.y},u=N$(r.x,r.y,o,e.angle);if(a.y!==s.y){var d=n?4:-4;l.y=a.y,e.angle<0&&e.angle>=-Math.PI/2&&(l.x=Math.max(s.x,a.x-d),a.y<s.y?c.y=l.y:(c.y=s.y,c.x=Math.max(c.x,l.x-d))),e.angle>0&&e.angle<Math.PI/2&&(l.x=Math.max(s.x,a.x-d),a.y>s.y?c.y=l.y:(c.y=s.y,c.x=Math.max(c.x,l.x-d))),e.angle>Math.PI/2&&(l.x=Math.min(s.x,a.x-d),a.y>s.y?c.y=l.y:(c.y=s.y,c.x=Math.min(c.x,l.x-d))),e.angle<-Math.PI/2&&(l.x=Math.min(s.x,a.x-d),a.y<s.y?c.y=l.y:(c.y=s.y,c.x=Math.min(c.x,l.x-d)))}i=["M ".concat(a.x,",").concat(a.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(c.x,",").concat(c.y),"L ".concat(s.x,",").concat(s.y),"L ".concat(u.x,",").concat(u.y)].join(" "),e.labelLine=(0,wW.b$)({},e.labelLine,{path:i})}(e,a,n)}}))}))}})),CJ("path-adjust-position",(function(e,t,n,i,r){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null===s||void 0===s?void 0:s.geometry;if(l&&!(["path","line","area"].indexOf(l.type)<0)){var c=(0,SW.CR)(l.getXYFields(),2),u=c[0],d=c[1],h=(0,wW.vM)(t,(function(e){return e.get("data")[u]})),f=[],p=r&&r.offset||(null===(a=e[0])||void 0===a?void 0:a.offset)||12;(0,wW.UI)((0,wW.XP)(h).reverse(),(function(e){for(var t=function(e,t){var n=e.getXYFields()[1],i=[],r=t.sort((function(e,t){return e.get("data")[n]-e.get("data")[n]}));return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,(0,SW.ev)([],(0,SW.CR)(r),!1)),i}(l,h[e]);t.length;){var n=t.shift(),i=PJ(n);if(D4(f,n,(function(e,t){return e.get("data")[u]===t.get("data")[u]&&e.get("data")[d]===t.get("data")[d]})))i.set("visible",!1);else{var r=!1;L4(f,n)&&(i.attr("y",i.attr("y")+2*p),r=L4(f,n)),r?i.set("visible",!1):f.push(n)}}}))}}})),cJ("fade-in",(function(e,t,n){var i={fillOpacity:(0,wW.UM)(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),strokeOpacity:(0,wW.UM)(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity"),opacity:(0,wW.UM)(e.attr("opacity"))?1:e.attr("opacity")};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(i,t)})),cJ("fade-out",(function(e,t,n){var i=t.easing,r=t.duration,o=t.delay;e.animate({fillOpacity:0,strokeOpacity:0,opacity:0},r,i,(function(){e.remove(!0)}),o)})),cJ("grow-in-x",(function(e,t,n){A4(e,t,n.coordinate,n.minYPoint,"x")})),cJ("grow-in-xy",(function(e,t,n){A4(e,t,n.coordinate,n.minYPoint,"xy")})),cJ("grow-in-y",(function(e,t,n){A4(e,t,n.coordinate,n.minYPoint,"y")})),cJ("scale-in-x",(function(e,t,n){var i=e.getBBox(),r=e.get("origin").mappingData.points,o=r[0].y-r[1].y>0?i.maxX:i.minX,a=(i.minY+i.maxY)/2;e.applyToMatrix([o,a,1]);var s=xK.vs(e.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]]);e.setMatrix(s),e.animate({matrix:xK.vs(e.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])},t)})),cJ("scale-in-y",(function(e,t,n){var i=e.getBBox(),r=e.get("origin").mappingData,o=(i.minX+i.maxX)/2,a=r.points,s=a[0].y-a[1].y<=0?i.maxY:i.minY;e.applyToMatrix([o,s,1]);var l=xK.vs(e.getMatrix(),[["t",-o,-s],["s",1,.01],["t",o,s]]);e.setMatrix(l),e.animate({matrix:xK.vs(e.getMatrix(),[["t",-o,-s],["s",1,100],["t",o,s]])},t)})),cJ("wave-in",(function(e,t,n){var i=H$(n.coordinate,20),r=i.type,o=i.startState,a=i.endState,s=e.setClip({type:r,attrs:o});n.toAttrs&&e.attr(n.toAttrs),s.animate(a,(0,SW.pi)((0,SW.pi)({},t),{callback:function(){e&&!e.get("destroyed")&&e.set("clipShape",null),s.remove(!0),(0,wW.mf)(t.callback)&&t.callback()}}))})),cJ("zoom-in",(function(e,t,n){F4(e,t,"zoomIn")})),cJ("zoom-out",(function(e,t,n){F4(e,t,"zoomOut")})),cJ("position-update",(function(e,t,n){var i=n.toAttrs,r=i.x,o=i.y;delete i.x,delete i.y,e.attr(i),e.animate({x:r,y:o},t)})),cJ("sector-path-update",(function(e,t,n){var i=n.toAttrs,r=n.coordinate,o=i.path||[],a=o.map((function(e){return e[0]}));if(!(o.length<1)){var s=Z4(o),l=s.startAngle,c=s.endAngle,u=s.radius,d=s.innerRadius,h=Z4(e.attr("path")),f=h.startAngle,p=h.endAngle,g=r.getCenter(),v=l-f,m=c-p;0!==v||0!==m?e.animate((function(e){var t=f+e*v,n=p+e*m;return(0,SW.pi)((0,SW.pi)({},i),{path:(0,wW.Xy)(a,["M","A","A","Z"])?D$(g.x,g.y,u,t,n):I$(g.x,g.y,u,t,n,d)})}),(0,SW.pi)((0,SW.pi)({},t),{callback:function(){e.attr("path",o),(0,wW.mf)(t.callback)&&t.callback()}})):e.attr("path",o)}})),cJ("path-in",(function(e,t,n){var i=e.getTotalLength();e.attr("lineDash",[i]),e.animate((function(e){return{lineDashOffset:(1-e)*i}}),t)})),rX("rect",$4),rX("mirror",Y4),rX("list",W4),rX("matrix",G4),rX("circle",j4),rX("tree",Q4),WQ("axis",d5),WQ("legend",v5),WQ("tooltip",aJ),WQ("annotation",i5),WQ("slider",y5),WQ("scrollbar",b5),dX("tooltip",E5),dX("sibling-tooltip",N5),dX("ellipsis-text",D5),dX("element-active",Z5),dX("element-single-active",K5),dX("element-range-active",V5),dX("element-highlight",n6),dX("element-highlight-by-x",a6),dX("element-highlight-by-color",r6),dX("element-single-highlight",u6),dX("element-range-highlight",l6),dX("element-sibling-highlight",l6,{effectSiblings:!0,effectByRecord:!0}),dX("element-selected",p6),dX("element-single-selected",v6),dX("element-range-selected",h6),dX("element-link-by-color",B5),dX("active-region",k5),dX("list-active",b6),dX("list-selected",N6),dX("list-highlight",E6),dX("list-unchecked",D6),dX("list-checked",A6),dX("list-focus",Z6),dX("list-radio",z6),dX("legend-item-highlight",E6,{componentNames:["legend"]}),dX("axis-label-highlight",E6,{componentNames:["axis"]}),dX("axis-description",$7),dX("rect-mask",$6),dX("x-rect-mask",e7,{dim:"x"}),dX("y-rect-mask",e7,{dim:"y"}),dX("circle-mask",G6),dX("path-mask",r7),dX("smooth-path-mask",c7),dX("rect-multi-mask",f7),dX("x-rect-multi-mask",g7,{dim:"x"}),dX("y-rect-multi-mask",g7,{dim:"y"}),dX("circle-multi-mask",m7),dX("path-multi-mask",_7),dX("smooth-path-multi-mask",C7),dX("cursor",w7),dX("data-filter",x7),dX("brush",N7),dX("brush-x",N7,{dims:["x"]}),dX("brush-y",N7,{dims:["y"]}),dX("sibling-filter",D7),dX("sibling-x-filter",D7,{dims:"x"}),dX("sibling-y-filter",D7,{dims:"y"}),dX("element-filter",O7),dX("element-sibling-filter",A7),dX("element-sibling-filter-record",A7,{byRecord:!0}),dX("view-drag",F7),dX("view-move",H7),dX("scale-translate",W7),dX("scale-zoom",G7),dX("reset-button",P7,{name:"reset-button",text:"reset"}),dX("mousewheel-scroll",Y7),gQ("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),gQ("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),gQ("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),gQ("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),gQ("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),gQ("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),gQ("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),gQ("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),gQ("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),gQ("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),gQ("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),gQ("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),gQ("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:X7,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:X7,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:X7,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),gQ("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),gQ("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:X7,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:X7,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:X7,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),gQ("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:X7,action:"path-mask:start"},{trigger:"mousedown",isEnable:X7,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),gQ("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:X7,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(e){return!BX(e)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),gQ("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),gQ("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(e){return!e.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),gQ("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),gQ("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),gQ("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),gQ("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),gQ("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),gQ("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(e){return Q7(e.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(e){return!Q7(e.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),gQ("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),gQ("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var J7,e8=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"];!function(e){e.ERROR="error",e.WARN="warn",e.INFO="log"}(J7||(J7={}));var t8="AntV/G2Plot";function n8(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=0;return"".concat(t8,": ").concat(e.replace(/%s/g,(function(){return"".concat(t[i++])})))}function i8(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r];t||console[e](n8.apply(void 0,(0,SW.ev)([n],i,!1)))}function r8(e,t){var n={};return null!==e&&"object"===typeof e&&t.forEach((function(t){var i=e[t];void 0!==i&&(n[t]=i)})),n}function o8(e,t){if(!e)return{};var n=e.filter((function(e){var n=(0,wW.U2)(e,[t]);return(0,wW.hj)(n)&&!isNaN(n)})),i=n.every((function(e){return(0,wW.U2)(e,[t])>=0})),r=n.every((function(e){return(0,wW.U2)(e,[t])<=0}));return i?{min:0}:r?{max:0}:{}}function a8(e,t,n,i,r){if(void 0===r&&(r=[]),!Array.isArray(e))return{nodes:[],links:[]};var o=[],a={},s=-1;return e.forEach((function(e){var l=e[t],c=e[n],u=e[i],d=r8(e,r);a[l]||(a[l]=(0,SW.pi)({id:++s,name:l},d)),a[c]||(a[c]=(0,SW.pi)({id:++s,name:c},d)),o.push((0,SW.pi)({source:a[l].id,target:a[c].id,value:u},d))})),{nodes:Object.values(a).sort((function(e,t){return e.id-t.id})),links:o}}function s8(e,t){var n=(0,wW.hX)(e,(function(e){var n=e[t];return null===n||"number"===typeof n&&!isNaN(n)}));return i8(J7.WARN,n.length===e.length,"illegal data existed in chart data."),n}var l8,c8={}.toString,u8=function(e,t){return c8.call(e)==="[object "+t+"]"},d8=function(e){return u8(e,"Array")},h8=function(e){if(!function(e){return"object"===typeof e&&null!==e}(e)||!u8(e,"Object"))return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},f8=function e(t,n,i,r){for(var o in i=i||0,r=r||5,n)if(Object.prototype.hasOwnProperty.call(n,o)){var a=n[o];a?h8(a)?(h8(t[o])||(t[o]={}),i<r?e(t[o],a,i+1,r):t[o]=n[o]):d8(a)?(t[o]=[],t[o]=t[o].concat(a)):t[o]=a:t[o]=a}},p8=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i+=1)f8(e,t[i]);return e};function g8(e){if(!e)return{width:0,height:0};var t=getComputedStyle(e);return{width:(e.clientWidth||parseInt(t.width,10))-parseInt(t.paddingLeft,10)-parseInt(t.paddingRight,10),height:(e.clientHeight||parseInt(t.height,10))-parseInt(t.paddingTop,10)-parseInt(t.paddingBottom,10)}}function v8(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}}function m8(e,t){return e.geometries.find((function(e){return e.type===t}))}function y8(e){return(0,wW.u4)(e.geometries,(function(e,t){return e.concat(t.elements)}),[])}function _8(e){return(0,wW.U2)(e,["views","length"],0)<=0?y8(e):(0,wW.u4)(e.views,(function(e,t){return e.concat(_8(t))}),y8(e))}function b8(e){if(!(0,wW.P9)(e,"Object"))return e;var t=(0,SW.pi)({},e);return t.formatter&&!t.content&&(t.content=t.formatter),t}(0,wW.HP)((function(e,t){void 0===t&&(t={});var n=t.fontSize,i=t.fontFamily,r=void 0===i?"sans-serif":i,o=t.fontWeight,a=t.fontStyle,s=t.fontVariant,l=(l8||(l8=document.createElement("canvas").getContext("2d")),l8);return l.font=[a,o,s,"".concat(n,"px"),r].join(" "),l.measureText((0,wW.HD)(e)?e:"").width}),(function(e,t){return void 0===t&&(t={}),(0,SW.ev)([e],(0,wW.VO)(t),!0).join("")}));function C8(e){return"number"===typeof e&&!isNaN(e)}function S8(e){if((0,wW.hj)(e))return[e,e,e,e];if((0,wW.kJ)(e)){var t=e.length;if(1===t)return[e[0],e[0],e[0],e[0]];if(2===t)return[e[0],e[1],e[0],e[1]];if(3===t)return[e[0],e[1],e[2],e[1]];if(4===t)return e}return[0,0,0,0]}function w8(e,t,n){void 0===t&&(t="bottom"),void 0===n&&(n=25);var i=S8(e),r=[t.startsWith("top")?n:0,t.startsWith("right")?n:0,t.startsWith("bottom")?n:0,t.startsWith("left")?n:0];return[i[0]+r[0],i[1]+r[1],i[2]+r[2],i[3]+r[3]]}function k8(e){var t=e.map((function(e){return S8(e)})),n=[0,0,0,0];return t.length>0&&(n=n.map((function(e,n){return t.forEach((function(i,r){e+=t[r][n]})),e}))),n}function x8(e,t,n){for(var i=!!t,r=[],o=0,a=e.length;o<a;o+=2)r.push([e[o],e[o+1]]);var s,l,c,u=function(e,t,n,i){var r,o,a,s,l=[],c=!!i;if(c){a=[1/0,1/0],s=[-1/0,-1/0];for(var u=0,d=e.length;u<d;u++){var h=e[u];a=DK.VV([0,0],a,h),s=DK.Fp([0,0],s,h)}a=DK.VV([0,0],a,i[0]),s=DK.Fp([0,0],s,i[1])}u=0;for(var f=e.length;u<f;u++){if(h=e[u],n)r=e[u?u-1:f-1],o=e[(u+1)%f];else{if(0===u||u===f-1){l.push(h);continue}r=e[u-1],o=e[u+1]}var p=[0,0];p=DK.lu(p,o,r),p=DK.bA(p,p,t);var g=DK.TE(h,r),v=DK.TE(h,o),m=g+v;0!==m&&(g/=m,v/=m);var y=DK.bA([0,0],p,-g),_=DK.bA([0,0],p,v),b=DK.IH([0,0],h,y),C=DK.IH([0,0],h,_);c&&(b=DK.Fp([0,0],b,a),b=DK.VV([0,0],b,s),C=DK.Fp([0,0],C,a),C=DK.VV([0,0],C,s)),l.push(b),l.push(C)}return n&&l.push(l.shift()),l}(r,.4,i,n),d=r.length,h=[];for(o=0;o<d-1;o++)s=u[2*o],l=u[2*o+1],c=r[o+1],h.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]]);return i&&(s=u[d],l=u[d+1],c=r[0],h.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]])),h}function E8(e){return e?e.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g).map((function(e){return e.toLowerCase()})).join("-"):e}function T8(e){var t={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];(0,wW.U2)(e,"fill")&&(t.color=e.fill);var i=r8(e,n),r=i.shadowColor,o=i.shadowBlur,a=void 0===o?0:o,s=i.shadowOffsetX,l=void 0===s?0:s,c=i.shadowOffsetY,u=void 0===c?0:c;t["text-shadow"]="".concat([r,"".concat(l,"px"),"".concat(u,"px"),"".concat(a,"px")].join(" "));var d=r8(e,n),h=d.stroke,f=d.lineWidth,p=void 0===f?0:f;return t["-webkit-text-stroke"]="".concat(["".concat(p,"px"),h].join(" ")),(0,wW.S6)(e,(function(e,i){["fontSize"].includes(i)&&(0,wW.hj)(e)?t[E8(i)]="".concat(e,"px"):i&&!n.includes(i)&&(t[E8(i)]="".concat(e))})),t}function N8(e,t){e.style["pointer-events"]="none",(0,wW.S6)(t,(function(t,n){n&&t&&(e.style[n]=t)}))}var I8=function(e,t,n){var i=t.statistic,r=t.plotType,o=i.title,a=i.content;[o,a].forEach((function(t,i){if(t){var s="";s=0===i?a?"translate(-50%, -100%)":"translate(-50%, -50%)":o?"translate(-50%, 0)":"translate(-50%, -50%)";var l=(0,wW.mf)(t.style)?t.style(n):t.style;e.annotation().html((0,SW.pi)({position:["50%","50%"],html:function(e,i){var o=i.getCoordinate(),a=0;if("pie"===r||"ring-progress"===r)a=o.getRadius()*o.innerRadius*2;else if("liquid"===r){var c=(0,wW.U2)(i.geometries,[0,"elements",0,"shape"]);if(c){var u=c.find((function(e){return"wrap"===e.get("name")}));a=u.getCanvasBBox().width}}else a||(a=o.getWidth());N8(e,(0,SW.pi)({width:"".concat(a,"px"),transform:s},T8(l)));var d=i.getData();if(t.customHtml)return t.customHtml(e,i,n,d);var h=t.content;return t.formatter&&(h=t.formatter(n,d)),h?(0,wW.HD)(h)?h:"".concat(h):"<div></div>"},key:"".concat(0===i?"top":"bottom","-statistic")},r8(t,["offsetX","offsetY","rotate","style","formatter"])))}}))};function D8(e,t){return t?(0,wW.u4)(t,(function(e,t,n){return e.replace(new RegExp("{\\s*".concat(n,"\\s*}"),"g"),t)}),e):e}function L8(e,t){return e.views.find((function(e){return e.id===t}))}function O8(e){var t=e.parent;return t?t.views:[]}function R8(e){return O8(e).filter((function(t){return t!==e}))}function A8(e,t,n){void 0===n&&(n=e.geometries),"boolean"===typeof t?e.animate(t):e.animate(!0),(0,wW.S6)(n,(function(e){var n;n=(0,wW.mf)(t)?t(e.type||e.shapeType,e)||!0:t,e.animate(n)}))}function M8(){return"object"===typeof window?null===window||void 0===window?void 0:window.devicePixelRatio:2}function P8(e,t){void 0===t&&(t=e);var n=document.createElement("canvas"),i=M8();return n.width=e*i,n.height=t*i,n.style.width="".concat(e,"px"),n.style.height="".concat(t,"px"),n.getContext("2d").scale(i,i),n}function Z8(e,t,n,i){void 0===i&&(i=n);var r=t.backgroundColor,o=t.opacity;e.globalAlpha=o,e.fillStyle=r,e.beginPath(),e.fillRect(0,0,n,i),e.closePath()}function F8(e,t,n){var i=e+t;return n?2*i:i}function B8(e,t){return t?[[e*(1/4),e*(1/4)],[e*(3/4),e*(3/4)]]:[[.5*e,.5*e]]}function H8(e,t){var n=t*Math.PI/180;return{a:Math.cos(n)*(1/e),b:Math.sin(n)*(1/e),c:-Math.sin(n)*(1/e),d:Math.cos(n)*(1/e),e:0,f:0}}var z8={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function j8(e,t,n,i){var r=t.size,o=t.fill,a=t.lineWidth,s=t.stroke,l=t.fillOpacity;e.beginPath(),e.globalAlpha=l,e.fillStyle=o,e.strokeStyle=s,e.lineWidth=a,e.arc(n,i,r/2,0,2*Math.PI,!1),e.fill(),a&&e.stroke(),e.closePath()}var V8={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};function W8(e){var t=p8({},V8,e),n=t.spacing,i=t.rotation,r=t.lineWidth,o=n+r||1,a=n+r||1,s="\n M 0 0 L ".concat(o," 0\n M 0 ").concat(a," L ").concat(o," ").concat(a,"\n "),l=P8(o,a),c=l.getContext("2d");Z8(c,t,o,a),function(e,t,n){var i=t.stroke,r=t.lineWidth,o=t.strokeOpacity,a=new Path2D(n);e.globalAlpha=o,e.lineCap="square",e.strokeStyle=r?i:"transparent",e.lineWidth=r,e.stroke(a)}(c,t,s);var u=c.createPattern(l,"repeat");if(u){var d=H8(M8(),i);u.setTransform(d)}return u}var U8={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function G8(e,t,n,i){var r=t.stroke,o=t.size,a=t.fill,s=t.lineWidth,l=t.fillOpacity;e.globalAlpha=l,e.strokeStyle=r,e.lineWidth=s,e.fillStyle=a,e.strokeRect(n-o/2,i-o/2,o,o),e.fillRect(n-o/2,i-o/2,o,o)}function K8(e){var t,n=e.type,i=e.cfg;switch(n){case"dot":t=function(e){var t=p8({},z8,e),n=t.size,i=t.padding,r=t.isStagger,o=t.rotation,a=F8(n,i,r),s=B8(a,r),l=P8(a,a),c=l.getContext("2d");Z8(c,t,a);for(var u=0,d=s;u<d.length;u++){var h=d[u];j8(c,t,h[0],h[1])}var f=c.createPattern(l,"repeat");if(f){var p=H8(M8(),o);f.setTransform(p)}return f}(i);break;case"line":t=W8(i);break;case"square":t=function(e){var t=p8({},U8,e),n=t.size,i=t.padding,r=t.isStagger,o=t.rotation,a=F8(n,i,r),s=B8(a,r),l=P8(a,a),c=l.getContext("2d");Z8(c,t,a);for(var u=0,d=s;u<d.length;u++){var h=d[u];G8(c,t,h[0],h[1])}var f=c.createPattern(l,"repeat");if(f){var p=H8(M8(),o);f.setTransform(p)}return f}(i)}return t}function Y8(e){var t=this;return function(n){var i,r=n.options,o=n.chart,a=r.pattern;if(!a)return n;return p8({},n,{options:(i={},i[e]=function(n){for(var i,s,l,c=[],u=1;u<arguments.length;u++)c[u-1]=arguments[u];var d=o.getTheme().defaultColor,h=d,f=null===(s=null===(i=o.geometries)||void 0===i?void 0:i[0])||void 0===s?void 0:s.getAttribute("color");if(f){var p=f.getFields()[0],g=(0,wW.U2)(n,p);h=u0.getMappingValue(f,g,(null===(l=f.values)||void 0===l?void 0:l[0])||d)}var v=a;"function"===typeof a&&(v=a.call(t,n,h)),v instanceof CanvasPattern===!1&&(v=K8(p8({},{cfg:{backgroundColor:h}},v)));var m=r[e];return(0,SW.pi)((0,SW.pi)({},"function"===typeof m?m.call.apply(m,(0,SW.ev)([t,n],c,!1)):m||{}),{fill:v||h})},i)})}}function q8(e){var t=e.chart,n=e.options,i=n.legend,r=n.colorField,o=n.seriesField;return!1===i?t.legend(!1):(r||o)&&t.legend(r||o,i),e}function $8(e){var t=e.chart,n=e.options.tooltip;return void 0!==n&&t.tooltip(n),e}function X8(e){var t=e.chart,n=e.options.interactions;return(0,wW.S6)(n,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg||{})})),e}function Q8(e){return A8(e.chart,e.options.animation),e}function J8(e){var t=e.chart,n=e.options.theme;return n&&t.theme(n),e}function e9(e){var t=e.chart,n=e.options.state;return n&&(0,wW.S6)(t.geometries,(function(e){e.state(n)})),e}function t9(e){var t=e.chart,n=e.options.slider;return t.option("slider",n),e}function n9(e){var t=e.chart,n=e.options.scrollbar;return t.option("scrollbar",n),e}function i9(e,t){return function(n){var i=n.chart,r=n.options,o={};return(0,wW.S6)(e,(function(e,t){o[t]=r8(e,e8)})),o=p8({},t,r.meta,o),i.scale(o),n}}function r9(e){return function(t){var n=t.chart,i=t.options,r=n.getController("annotation");return(0,wW.S6)((0,SW.ev)((0,SW.ev)([],i.annotations||[],!0),e||[],!0),(function(e){r.annotation(e)})),t}}function o9(e){var t=e.chart,n=e.options,i=n.yAxis,r=n.limitInPlot,o=r;return(0,wW.Kn)(i)&&(0,wW.UM)(r)&&(o=!!Object.values(r8(i,["min","max","minLimit","maxLimit"])).some((function(e){return!(0,wW.UM)(e)}))),t.limitInPlot=o,e}function a9(e){return void 0===e&&(e="rect"),function(t){var n=t.chart,i=t.options.coordinate,r=Array.from(i||[]).map((function(e){return"reflectX"===e.type?["reflect","x"]:"reflectY"===e.type?["reflect","y"]:"transpose"===e.type?["transpose"]:null})).filter((function(e){return!!e}));return 0!==r.length&&n.coordinate({type:e,actions:r}),t}}var s9={locale:"en-US"};var l9={};function c9(e,t){l9[e]=t}function u9(e){return{get:function(t,n){return D8((0,wW.U2)(l9[e],t)||(0,wW.U2)(l9[s9.locale],t)||(0,wW.U2)(l9["en-US"],t)||t,n)}}}function d9(e,t){if(!1===e)return{fields:!1};var n=(0,wW.U2)(e,"fields"),i=(0,wW.U2)(e,"formatter");return i&&!n&&(n=t),{fields:n,formatter:i}}function h9(e,t){var n=e.type,i=e.xField,r=e.yField,o=e.colorField,a=e.shapeField,s=e.sizeField,l=e.styleField,c=e.rawFields,u=[];if(c=((0,wW.mf)(c)?c(n,t):c)||[],"color"===t)u=(0,SW.ev)([o||i],c,!0);else if("shape"===t)u=(0,SW.ev)([a||i],c,!0);else if("size"===t)u=(0,SW.ev)([s||i],c,!0);else{u=(0,SW.ev)([i,r,o,a,s,l],c,!0);var d=["x","y","color","shape","size","style"].indexOf(t),h=u[d];u.splice(d,1),u.unshift(h)}var f=(0,wW.jj)(u.filter((function(e){return!!e}))),p="line"===n&&[i,r].includes(f.join("*"))?"":f.join("*");return{mappingFields:f,tileMappingField:p}}function f9(e,t){if(t)return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r={};return e.forEach((function(e,t){r[e]=n[t]})),delete r[void 0],t(r)}}function p9(e){var t=e.chart,n=e.options,i=n.type,r=n.args,o=n.mapping,a=n.xField,s=n.yField,l=n.colorField,c=n.shapeField,u=n.sizeField,d=n.tooltipFields,h=n.label,f=n.state,p=n.customInfo;if(!o)return e;var g=o.color,v=o.shape,m=o.size,y=o.style,_=o.tooltip,b=t[i](r).position("".concat(a,"*").concat(s));if((0,wW.HD)(g))l?b.color(l,g):b.color(g);else if((0,wW.mf)(g)){var C=h9(n,"color"),S=C.mappingFields,w=C.tileMappingField;b.color(w,f9(S,g))}else l&&b.color(l,g);if((0,wW.HD)(v))c?b.shape(c,[v]):b.shape(v);else if((0,wW.mf)(v)){var k=h9(n,"shape");S=k.mappingFields,w=k.tileMappingField;b.shape(w,f9(S,v))}else c&&b.shape(c,v);if((0,wW.hj)(m))u?b.size(u,m):b.size(m);else if((0,wW.mf)(m)){var x=h9(n,"size");S=x.mappingFields,w=x.tileMappingField;b.size(w,f9(S,m))}else u&&b.size(u,m);if((0,wW.mf)(y)){var E=h9(n,"style");S=E.mappingFields,w=E.tileMappingField;b.style(w,f9(S,y))}else(0,wW.Kn)(y)&&b.style(y);if(!1===d?b.tooltip(!1):(0,wW.xb)(d)||b.tooltip(d.join("*"),f9(d,_)),!1===h)b.label(!1);else if(h){var T=h.callback,N=h.fields,I=(0,SW._T)(h,["callback","fields"]);b.label({fields:N||[s],callback:T,cfg:b8(I)})}return f&&b.state(f),p&&b.customInfo(p),[a,s].filter((function(e){return e!==l})).forEach((function(e){t.legend(e,!1)})),(0,SW.pi)((0,SW.pi)({},e),{ext:{geometry:b}})}function g9(e){var t=e.options,n=t.area,i=t.xField,r=t.yField,o=t.seriesField,a=t.smooth,s=t.tooltip,l=t.useDeferredLabel,c=d9(s,[i,r,o]),u=c.fields,d=c.formatter;return n?p9(p8({},e,{options:{type:"area",colorField:o,tooltipFields:u,mapping:(0,wW.b$)({shape:a?"smooth":"area",tooltip:d},n),args:{useDeferredLabel:l}}})):e}function v9(e){var t=e.options,n=t.edge,i=t.xField,r=t.yField,o=t.seriesField,a=t.tooltip,s=t.useDeferredLabel,l=d9(a,[i,r,o]),c=l.fields,u=l.formatter;return n?p9(p8({},e,{options:{type:"edge",colorField:o,tooltipFields:c,mapping:(0,SW.pi)({tooltip:u},n),args:{useDeferredLabel:s}}})):e}function m9(e){var t=e.options,n=t.xField,i=t.yField,r=t.interval,o=t.seriesField,a=t.tooltip,s=t.minColumnWidth,l=t.maxColumnWidth,c=t.columnBackground,u=t.dodgePadding,d=t.intervalPadding,h=t.useDeferredLabel,f=d9(a,[n,i,o]),p=f.fields,g=f.formatter,v=(r?p9(p8({},e,{options:{type:"interval",colorField:o,tooltipFields:p,mapping:(0,SW.pi)({tooltip:g},r),args:{dodgePadding:u,intervalPadding:d,minColumnWidth:s,maxColumnWidth:l,background:c,useDeferredLabel:h}}})):e).ext;return function(e){var t=e.chart,n=e.options,i=e.ext,r=n.seriesField,o=n.isGroup,a=n.isStack,s=n.marginRatio,l=n.widthRatio,c=n.groupField,u=n.theme,d=[];return r&&(o&&d.push({type:"dodge",dodgeBy:c||r,marginRatio:s}),a&&d.push({type:"stack",marginRatio:s})),d.length&&(null===i||void 0===i?void 0:i.geometry)&&(null===i||void 0===i?void 0:i.geometry).adjust(d),(0,wW.UM)(l)||t.theme(p8({},(0,wW.Kn)(u)?u:OQ(u),{columnWidthRatio:l})),e}((0,SW.pi)((0,SW.pi)({},e),{ext:v}))}function y9(e){var t=e.options,n=t.line,i=t.stepType,r=t.xField,o=t.yField,a=t.seriesField,s=t.smooth,l=t.connectNulls,c=t.tooltip,u=t.useDeferredLabel,d=d9(c,[r,o,a]),h=d.fields,f=d.formatter;return n?p9(p8({},e,{options:{type:"line",colorField:a,tooltipFields:h,mapping:(0,wW.b$)({shape:i||(s?"smooth":"line"),tooltip:f},n),args:{connectNulls:l,useDeferredLabel:u}}})):e}function _9(e){var t=e.options,n=t.point,i=t.xField,r=t.yField,o=t.seriesField,a=t.sizeField,s=t.shapeField,l=t.tooltip,c=t.useDeferredLabel,u=d9(l,[i,r,o,a,s]),d=u.fields,h=u.formatter;return n?p9(p8({},e,{options:{type:"point",colorField:o,shapeField:s,tooltipFields:d,mapping:(0,SW.pi)({tooltip:h},n),args:{useDeferredLabel:c}}})):e}function b9(e){var t=e.options,n=t.polygon,i=t.xField,r=t.yField,o=t.seriesField,a=t.tooltip,s=t.useDeferredLabel,l=d9(a,[i,r,o]),c=l.fields,u=l.formatter;return n?p9(p8({},e,{options:{type:"polygon",colorField:o,tooltipFields:c,mapping:(0,SW.pi)({tooltip:u},n),args:{useDeferredLabel:s}}})):e}function C9(e){var t=e.options,n=t.schema,i=t.xField,r=t.yField,o=t.seriesField,a=t.tooltip,s=t.useDeferredLabel,l=d9(a,[i,r,o]),c=l.fields,u=l.formatter;return n?p9(p8({},e,{options:{type:"schema",colorField:o,tooltipFields:c,mapping:(0,SW.pi)({tooltip:u},n),args:{useDeferredLabel:s}}})):e}var S9=n(80315),w9="data-chart-source-type",k9=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],x9=function(e){function t(t,n){var i=e.call(this)||this;return i.container="string"===typeof t?document.getElementById(t):t,i.options=p8({},i.getDefaultOptions(),n),i.createG2(),i.bindEvents(),i}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},t.prototype.createG2=function(){var e=this.options,t=e.width,n=e.height,i=e.defaultInteractions;this.chart=new iJ((0,SW.pi)((0,SW.pi)((0,SW.pi)((0,SW.pi)({container:this.container,autoFit:!1},this.getChartSize(t,n)),{localRefresh:!1}),r8(this.options,k9)),{defaultInteractions:i})),this.container.setAttribute(w9,"G2Plot")},t.prototype.getChartSize=function(e,t){var n=g8(this.container);return{width:e||n.width||400,height:t||n.height||400}},t.prototype.bindEvents=function(){var e=this;this.chart&&this.chart.on("*",(function(t){(null===t||void 0===t?void 0:t.type)&&e.emit(t.type,t)}))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},t.prototype.update=function(e){this.updateOption(e),this.render()},t.prototype.updateOption=function(e){this.options=p8({},this.options,e)},t.prototype.setState=function(e,t,n){void 0===n&&(n=!0);var i=_8(this.chart);(0,wW.S6)(i,(function(i){t(i.getData())&&i.setState(e,n)}))},t.prototype.getStates=function(){var e=_8(this.chart),t=[];return(0,wW.S6)(e,(function(e){var n=e.getData(),i=e.getStates();(0,wW.S6)(i,(function(i){t.push({data:n,state:i,geometry:e.geometry,element:e})}))})),t},t.prototype.changeData=function(e){this.update({data:e})},t.prototype.changeSize=function(e,t){this.chart.changeSize(e,t)},t.prototype.addAnnotations=function(e,t){t=t||this.chart;var n=(0,SW.ev)([],e,!0),i=t.getController("annotation"),r=i.getComponents().map((function(e){return e.extra}));i.clear(!0);for(var o=function(e){var t=r[e],o=n.findIndex((function(e){return e.id&&e.id===t.id}));-1!==o&&(t=p8({},t,n[o]),n.splice(o,1)),i.annotation(t)},a=0;a<r.length;a++)o(a);n.forEach((function(e){return i.annotation(e)})),t.render(!0)},t.prototype.removeAnnotations=function(e){var t=this.chart.getController("annotation"),n=t.getComponents().map((function(e){return e.extra}));t.clear(!0);for(var i=function(i){var r=n[i];e.find((function(e){return e.id&&e.id===r.id}))||t.annotation(r)},r=0;r<n.length;r++)i(r);this.chart.render(!0)},t.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute(w9)},t.prototype.execAdaptor=function(){var e=this.getSchemaAdaptor(),t=this.options,n=t.padding,i=t.appendPadding;this.chart.padding=n,this.chart.appendPadding=i,e({chart:this.chart,options:this.options})},t.prototype.triggerResize=function(){this.chart.forceFit()},t.prototype.bindSizeSensor=function(){var e=this;if(!this.unbind){var t=this.options.autoFit;(void 0===t||t)&&(this.unbind=(0,S9.ak)(this.container,(function(){var t=g8(e.container),n=t.width,i=t.height;n===e.chart.width&&i===e.chart.height||e.triggerResize()})))}},t.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},t}(VW.Z);function E9(e,t,n,i){var r=(0,wW.u4)(e,(function(e,i){var r=i[n],o=e.has(r)?e.get(r):0,a=i[t];return o=C8(a)?o+a:o,e.set(r,o),e}),new Map);return(0,wW.UI)(e,(function(e){var o,a=e[t],s=e[n],l=C8(a)&&0!==r.get(s)?a/r.get(s):0;return(0,SW.pi)((0,SW.pi)({},e),((o={})[i]=l,o))}))}function T9(e,t,n,i,r){return r?E9(e,t,n,i):e}function N9(e){var t=e.chart,n=e.options,i=n.data,r=n.color,o=n.lineStyle,a=n.lineShape,s=n.point,l=n.area,c=n.seriesField,u=null===s||void 0===s?void 0:s.state,d=null===l||void 0===l?void 0:l.state;t.data(i);var h=p8({},e,{options:{shapeField:c,line:{color:r,style:o,shape:a},point:s&&(0,SW.pi)({color:r,shape:"circle"},s),area:l&&(0,SW.pi)({color:r},l),label:void 0}}),f=p8({},h,{options:{tooltip:!1,state:u}}),p=p8({},h,{options:{tooltip:!1,state:d}});return y9(h),_9(f),g9(p),e}function I9(e){var t,n,i=e.options,r=i.xAxis,o=i.yAxis,a=i.xField,s=i.yField,l=i.data;return v8(i9(((t={})[a]=r,t[s]=o,t),((n={})[a]={type:"cat"},n[s]=o8(l,s),n)))(e)}function D9(e){var t=e.chart,n=e.options.reflect;if(n){var i=n;(0,wW.kJ)(i)||(i=[i]);var r=i.map((function(e){return["reflect",e]}));t.coordinate({type:"rect",actions:r})}return e}function L9(e){var t=e.chart,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?t.axis(o,!1):t.axis(o,i),!1===r?t.axis(a,!1):t.axis(a,r),e}function O9(e){var t=e.chart,n=e.options,i=n.legend,r=n.seriesField;return i&&r?t.legend(r,i):!1===i&&t.legend(!1),e}function R9(e){var t=e.chart,n=e.options,i=n.label,r=n.yField,o=m8(t,"line");if(i){var a=i.callback,s=(0,SW._T)(i,["callback"]);o.label({fields:[r],callback:a,cfg:(0,SW.pi)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},b8(s))})}else o.label(!1);return e}function A9(e){var t=e.chart;return e.options.isStack&&(0,wW.S6)(t.geometries,(function(e){e.adjust("stack")})),e}function M9(e){return v8(N9,I9,A9,J8,D9,L9,O9,$8,R9,t9,n9,X8,Q8,r9(),o9)(e)}function P9(e){var t=e.chart,n=e.options,i=n.data,r=n.areaStyle,o=n.areaShape,a=n.color,s=n.point,l=n.line,c=n.isPercent,u=n.xField,d=n.yField,h=n.tooltip,f=n.seriesField,p=n.startOnZero,g=null===s||void 0===s?void 0:s.state,v=T9(i,d,u,d,c);t.data(v);var m=c?(0,SW.pi)({formatter:function(e){return{name:e[f]||e[u],value:(100*Number(e[d])).toFixed(2)+"%"}}},h):h,y=p8({},e,{options:{area:{color:a,style:r,shape:o},point:s&&(0,SW.pi)({color:a},s),tooltip:m,label:void 0,args:{startOnZero:p}}}),_={chart:t,options:p8({line:{size:2}},(0,wW.CE)(n,["state"]),{line:l&&(0,SW.pi)({color:a},l),sizeField:f,state:null===l||void 0===l?void 0:l.state,tooltip:!1,label:void 0,args:{startOnZero:p}})},b=p8({},y,{options:{tooltip:!1,state:g}});return g9(y),y9(_),_9(b),e}function Z9(e){var t=e.chart,n=e.options,i=n.label,r=n.yField,o=m8(t,"area");if(i){var a=i.callback,s=(0,SW._T)(i,["callback"]);o.label({fields:[r],callback:a,cfg:(0,SW.pi)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},b8(s))})}else o.label(!1);return e}function F9(e){var t=e.chart,n=e.options,i=n.isStack,r=n.isPercent,o=n.seriesField;return(r||i)&&o&&(0,wW.S6)(t.geometries,(function(e){e.adjust("stack")})),e}function B9(e){return v8(J8,Y8("areaStyle"),a9("rect"),P9,I9,F9,L9,O9,$8,Z9,t9,r9(),X8,Q8,o9)(e)}var H9=p8({},x9.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left",radio:{}}}),z9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="area",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return H9},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,n=t.isPercent,i=t.xField,r=t.yField;I9({chart:this.chart,options:this.options}),this.chart.changeData(T9(e,r,i,r,n))},t.prototype.getSchemaAdaptor=function(){return B9},t}(x9),j9={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}},V9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg=(0,SW.pi)({name:"button"},j9),t}return(0,SW.ZT)(t,e),t.prototype.getButtonCfg=function(){var e=this.context.view,t=(0,wW.U2)(e,["interactions","filter-action","cfg","buttonConfig"]);return p8(this.buttonCfg,t,this.cfg)},t.prototype.drawButton=function(){var e=this.getButtonCfg(),t=this.context.view.foregroundGroup.addGroup({name:e.name}),n=this.drawText(t);this.drawBackground(t,n.getBBox()),this.buttonGroup=t},t.prototype.drawText=function(e){var t,n=this.getButtonCfg();return e.addShape({type:"text",name:"button-text",attrs:(0,SW.pi)({text:n.text},null===(t=n.textStyle)||void 0===t?void 0:t.default)})},t.prototype.drawBackground=function(e,t){var n,i=this.getButtonCfg(),r=S8(i.padding),o=e.addShape({type:"rect",name:"button-rect",attrs:(0,SW.pi)({x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2]},null===(n=i.buttonStyle)||void 0===n?void 0:n.default)});return o.toBack(),e.on("mouseenter",(function(){var e;o.attr(null===(e=i.buttonStyle)||void 0===e?void 0:e.active)})),e.on("mouseleave",(function(){var e;o.attr(null===(e=i.buttonStyle)||void 0===e?void 0:e.default)})),o},t.prototype.resetPosition=function(){var e=this.context.view.getCoordinate().convert({x:1,y:1}),t=this.buttonGroup,n=t.getBBox(),i=u0.transform(null,[["t",e.x-n.width-10,e.y+n.height+5]]);t.setMatrix(i)},t.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},t.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},t.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},t}(aX);function W9(e){return e.isInPlot()}function U9(e,t,n){var i=n||{},r=i.mask,o=i.isStartEnable,a=t||"rect";switch(e){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||W9,action:["brush:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null===r||void 0===r?void 0:r.style}]}],processing:[{trigger:"mousemove",isEnable:W9,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:W9,action:["brush:filter","brush:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide"),"brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:default",isEnable:function(e){return!!o&&!o(e)}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(e){return!e.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null===r||void 0===r?void 0:r.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||W9,action:["brush-x:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null===r||void 0===r?void 0:r.style}]}],processing:[{trigger:"mousemove",isEnable:W9,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:W9,action:["brush-x:filter","brush-x:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(e){return!e.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null===r||void 0===r?void 0:r.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||W9,action:["brush-y:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null===r||void 0===r?void 0:r.style}]}],processing:[{trigger:"mousemove",isEnable:W9,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:W9,action:["brush-y:filter","brush-y:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};default:return{}}}dX("brush-reset-button",V9,{name:"brush-reset-button"}),gQ("filter-action",{}),gQ("brush",U9("brush")),gQ("brush-highlight",U9("brush-highlight")),gQ("brush-x",U9("brush-x","x-rect")),gQ("brush-y",U9("brush-y","y-rect")),gQ("brush-x-highlight",U9("brush-x-highlight","x-rect")),gQ("brush-y-highlight",U9("brush-y-highlight","y-rect"));var G9=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function K9(e){var t=e.options,n=t.brush,i=(0,wW.hX)(t.interactions||[],(function(e){return-1===G9.indexOf(e.type)}));return(null===n||void 0===n?void 0:n.enabled)&&(G9.forEach((function(e){var t=!1;switch(n.type){case"x-rect":t=e===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":t=e===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:t=e===("highlight"===n.action?"brush-highlight":"brush")}var r={type:e,enable:t};n&&(r.cfg=U9(e,n.type,n)),i.push(r)})),"highlight"!==(null===n||void 0===n?void 0:n.action)&&i.push({type:"filter-action",cfg:{buttonConfig:n.button}})),p8({},e,{options:{interactions:i}})}var Y9={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},q9=function(e,t){return"hover"===e?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:t}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:t}]}]};function $9(e,t){return(0,wW.hj)(e)&&(0,wW.hj)(t)?0===e&&0===t?"-":e===t?"100%":0===e?"\u221e":"".concat((100*t/e).toFixed(2),"%"):"-"}function X9(e,t){return p8({size:t?32:80,spacing:t?8:12,offset:t?32:0,arrow:!1!==e.arrow&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:!1!==e.text&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:$9}},e)}function Q9(e,t){return(0,wW.UI)(t.getModel().points,(function(t){return e.convertPoint(t)}))}function J9(e,t,n){!function(e,t,n){var i=e.view,r=e.geometry,o=e.group,a=e.options,s=e.horizontal,l=a.offset,c=a.size,u=a.arrow,d=i.getCoordinate(),h=Q9(d,t)[3],f=Q9(d,n)[0],p=f.y-h.y,g=f.x-h.x;if("boolean"!==typeof u){var v,m=u.headSize,y=a.spacing;s?(g-m)/2<y?(y=Math.max(1,(g-m)/2),v=[[h.x+y,h.y-l],[h.x+y,h.y-l-c],[f.x-y,f.y-l-c/2]]):v=[[h.x+y,h.y-l],[h.x+y,h.y-l-c],[f.x-y-m,f.y-l-c],[f.x-y,f.y-l-c/2],[f.x-y-m,f.y-l]]:(p-m)/2<y?(y=Math.max(1,(p-m)/2),v=[[h.x+l,h.y+y],[h.x+l+c,h.y+y],[f.x+l+c/2,f.y-y]]):v=[[h.x+l,h.y+y],[h.x+l+c,h.y+y],[f.x+l+c,f.y-y-m],[f.x+l+c/2,f.y-y],[f.x+l,f.y-y-m]],o.addShape("polygon",{id:"".concat(i.id,"-conversion-tag-arrow-").concat(r.getElementId(t.getModel().mappingData)),name:"conversion-tag-arrow",origin:{element:t,nextElement:n},attrs:(0,SW.pi)((0,SW.pi)({},u.style||{}),{points:v})})}}(e,t,n),function(e,t,n){var i,r,o,a=e.view,s=e.geometry,l=e.group,c=e.options,u=e.field,d=e.horizontal,h=c.offset,f=c.size;if("boolean"!==typeof c.text){var p=a.getCoordinate(),g=(null===(i=c.text)||void 0===i?void 0:i.formatter)&&(null===(r=c.text)||void 0===r?void 0:r.formatter(t.getData()[u],n.getData()[u])),v=Q9(p,t)[d?3:0],m=Q9(p,n)[d?0:3],y=l.addShape("text",{id:"".concat(a.id,"-conversion-tag-text-").concat(s.getElementId(t.getModel().mappingData)),name:"conversion-tag-text",origin:{element:t,nextElement:n},attrs:(0,SW.pi)((0,SW.pi)({},(null===(o=c.text)||void 0===o?void 0:o.style)||{}),{text:g,x:d?(v.x+m.x)/2:v.x+h+f/2,y:d?v.y-h-f/2:(v.y+m.y)/2})});if(d){var _=m.x-v.x,b=y.getBBox().width;if(b>_){var C=b/g.length,S=Math.max(1,Math.ceil(_/C)-1),w="".concat(g.slice(0,S),"...");y.attr("text",w)}}}}(e,t,n)}function eee(e){var t=e.options,n=t.legend,i=t.seriesField,r=t.isStack;return i?!1!==n&&(n=(0,SW.pi)({position:r?"right-top":"top-left"},n)):n=!1,e.options.legend=n,e}function tee(e){var t=e.chart,n=e.options,i=n.data,r=n.columnStyle,o=n.color,a=n.columnWidthRatio,s=n.isPercent,l=n.isGroup,c=n.isStack,u=n.xField,d=n.yField,h=n.seriesField,f=n.groupField,p=n.tooltip,g=n.shape,v=s&&l&&c?function(e,t,n,i){var r=(0,wW.u4)(e,(function(e,i){var r=(0,wW.u4)(n,(function(e,t){return"".concat(e).concat(i[t])}),""),o=e.has(r)?e.get(r):0,a=i[t];return o=C8(a)?o+a:o,e.set(r,o),e}),new Map);return(0,wW.UI)(e,(function(e){var o,a=e[t],s=(0,wW.u4)(n,(function(t,n){return"".concat(t).concat(e[n])}),""),l=C8(a)&&0!==r.get(s)?a/r.get(s):0;return(0,SW.pi)((0,SW.pi)({},e),((o={})[i]=l,o))}))}(i,d,[u,f],d):T9(i,d,u,d,s),m=[];c&&h&&!l?v.forEach((function(e){var t=m.find((function(t){return t[u]===e[u]&&t[h]===e[h]}));t?t[d]+=e[d]||0:m.push((0,SW.pi)({},e))})):m=v,t.data(m);var y=s?(0,SW.pi)({formatter:function(e){var t;return{name:l&&c?"".concat(e[h]," - ").concat(e[f]):null!==(t=e[h])&&void 0!==t?t:e[u],value:(100*Number(e[d])).toFixed(2)+"%"}}},p):p,_=p8({},e,{options:{data:m,widthRatio:a,tooltip:y,interval:{shape:g,style:r,color:o}}});return m9(_),_}function nee(e){var t,n,i=e.options,r=i.xAxis,o=i.yAxis,a=i.xField,s=i.yField,l=i.data,c=i.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return v8(i9(((t={})[a]=r,t[s]=o,t),((n={})[a]={type:"cat"},n[s]=(0,SW.pi)((0,SW.pi)({},o8(l,s)),c),n)))(e)}function iee(e){var t=e.chart,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?t.axis(o,!1):t.axis(o,i),!1===r?t.axis(a,!1):t.axis(a,r),e}function ree(e){var t=e.chart,n=e.options,i=n.legend,r=n.seriesField;return i&&r?t.legend(r,i):!1===i&&t.legend(!1),e}function oee(e){var t=e.chart,n=e.options,i=n.label,r=n.yField,o=n.isRange,a=m8(t,"interval");if(i){var s=i.callback,l=(0,SW._T)(i,["callback"]);a.label({fields:[r],callback:s,cfg:(0,SW.pi)({layout:(null===l||void 0===l?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},b8(o?(0,SW.pi)({content:function(e){var t;return null===(t=e[r])||void 0===t?void 0:t.join("-")}},l):l))})}else a.label(!1);return e}function aee(e){var t=e.chart,n=e.options,i=n.tooltip,r=n.isGroup,o=n.isStack,a=n.groupField,s=n.data,l=n.xField,c=n.yField,u=n.seriesField;if(!1===i)t.tooltip(!1);else{var d=i;if(r&&o){var h=d.customItems,f=(null===d||void 0===d?void 0:d.formatter)||function(e){return{name:"".concat(e[u]," - ").concat(e[a]),value:e[c]}};d=(0,SW.pi)((0,SW.pi)({},d),{customItems:function(e){var t=[];return(0,wW.S6)(e,(function(e){(0,wW.hX)(s,(function(t){return(0,wW.BD)(t,r8(e.data,[l,u]))})).forEach((function(n){t.push((0,SW.pi)((0,SW.pi)((0,SW.pi)({},e),{value:n[c],data:n,mappingData:{_origin:n}}),f(n)))}))})),h?h(t):t}})}t.tooltip(d)}return e}function see(e,t){void 0===t&&(t=!1);var n,i=e.options,r=i.seriesField;return v8(eee,J8,Y8("columnStyle"),e9,a9("rect"),tee,nee,iee,ree,aee,t9,n9,oee,K9,X8,Q8,r9(),function(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=!1),function(i){var r=i.options,o=i.chart,a=r.conversionTag,s=r.theme;return a&&!n&&(o.theme(p8({},(0,wW.Kn)(s)?s:OQ(s),{columnWidthRatio:1/3})),o.annotation().shape({render:function(n,i){var r=n.addGroup({id:"".concat(o.id,"-conversion-tag-group"),name:"conversion-tag-group"}),s=(0,wW.sE)(o.geometries,(function(e){return"interval"===e.type})),l={view:i,geometry:s,group:r,field:e,horizontal:t,options:X9(a,t)},c=s.elements;(0,wW.S6)(c,(function(e,t){t>0&&J9(l,c[t-1],e)}))}})),i}}(i.yField,!t,!!r),(void 0===(n=!i.isStack)&&(n=!1),function(e){var t=e.chart,i=e.options.connectedArea,r=function(){t.removeInteraction(Y9.hover),t.removeInteraction(Y9.click)};if(!n&&i){var o=i.trigger||"hover";r(),t.interaction(Y9[o],{start:q9(o,i.style)})}else r();return e}),o9)(e)}function lee(e){var t=e.options,n=t.xField,i=t.yField,r=t.xAxis,o=t.yAxis,a={left:"bottom",right:"top",top:"left",bottom:"right"},s=!1!==o&&(0,SW.pi)({position:a[(null===o||void 0===o?void 0:o.position)||"left"]},o),l=!1!==r&&(0,SW.pi)({position:a[(null===r||void 0===r?void 0:r.position)||"bottom"]},r);return(0,SW.pi)((0,SW.pi)({},e),{options:(0,SW.pi)((0,SW.pi)({},t),{xField:i,yField:n,xAxis:s,yAxis:l})})}function cee(e){var t=e.options.label;return t&&!t.position&&(t.position="left",t.layout||(t.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),p8({},e,{options:{label:t}})}function uee(e){var t=e.options,n=t.seriesField,i=t.isStack,r=t.legend;return n?!1!==r&&(r=(0,SW.pi)({position:i?"top-left":"right-top"},r||{})):r=!1,p8({},e,{options:{legend:r}})}function dee(e){var t=e.options,n=[{type:"transpose"},{type:"reflectY"}].concat(t.coordinate||[]);return p8({},e,{options:{coordinate:n}})}function hee(e){var t=e.chart,n=e.options,i=n.barStyle,r=n.barWidthRatio,o=n.minBarWidth,a=n.maxBarWidth,s=n.barBackground;return see({chart:t,options:(0,SW.pi)((0,SW.pi)({},n),{columnStyle:i,columnWidthRatio:r,minColumnWidth:o,maxColumnWidth:a,columnBackground:s})},!0)}function fee(e){return v8(lee,cee,uee,$8,dee,hee)(e)}gQ(Y9.hover,{start:q9(Y9.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),gQ(Y9.click,{start:q9(Y9.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var pee,gee=p8({},x9.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),vee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bar",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return gee},t.prototype.changeData=function(e){var t,n;this.updateOption({data:e});var i=this.chart,r=this.options,o=r.isPercent,a=r.xField,s=r.yField,l=r.xAxis,c=r.yAxis;a=(t=[s,a])[0],s=t[1],l=(n=[c,l])[0],c=n[1],nee({chart:i,options:(0,SW.pi)((0,SW.pi)({},r),{xField:a,yField:s,yAxis:c,xAxis:l})}),i.changeData(T9(e,a,s,a,o))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return fee},t}(x9),mee=p8({},x9.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),yee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="column",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return mee},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,n=t.yField,i=t.xField,r=t.isPercent;nee({chart:this.chart,options:this.options}),this.chart.changeData(T9(e,n,i,n,r))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return see},t}(x9),_ee="$$percentage$$",bee="$$mappingValue$$",Cee="$$conversion$$",See="$$totalPercentage$$",wee="$$x$$",kee="$$y$$",xee={appendPadding:[0,80],minSize:0,maxSize:1,meta:(pee={},pee.$$mappingValue$$={min:0,max:1,nice:!1},pee),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},Eee="CONVERSION_TAG_NAME";function Tee(e,t,n){var i,r=n.yField,o=n.maxSize,a=n.minSize,s=(0,wW.U2)((0,wW.UT)(t,r),[r]),l=(0,wW.hj)(o)?o:1,c=(0,wW.hj)(a)?a:0;return i=(0,wW.UI)(e,(function(t,n){var i=(t[r]||0)/s;return t.$$percentage$$=i,t.$$mappingValue$$=(l-c)*i+c,t.$$conversion$$=[(0,wW.U2)(e,[n-1,r]),t[r]],t})),i}function Nee(e){return function(t){var n=t.chart,i=t.options,r=i.conversionTag,o=i.filteredData||n.getOptions().data;if(r){var a=r.formatter;o.forEach((function(t,i){if(!(i<=0||Number.isNaN(t.$$mappingValue$$))){var s=e(t,i,o,{top:!0,name:Eee,text:{content:(0,wW.mf)(a)?a(t,o):a,offsetX:r.offsetX,offsetY:r.offsetY,position:"end",autoRotate:!1,style:(0,SW.pi)({textAlign:"start",textBaseline:"middle"},r.style)}});n.annotation().line(s)}}))}return t}}function Iee(e){var t=e.chart,n=e.options,i=n.data,r=void 0===i?[]:i,o=Tee(r,r,{yField:n.yField,maxSize:n.maxSize,minSize:n.minSize});return t.data(o),e}function Dee(e){var t=e.chart,n=e.options,i=n.xField,r=n.yField,o=n.color,a=n.tooltip,s=n.label,l=n.shape,c=void 0===l?"funnel":l,u=n.funnelStyle,d=n.state,h=d9(a,[i,r]),f=h.fields,p=h.formatter;return p9({chart:t,options:{type:"interval",xField:i,yField:bee,colorField:i,tooltipFields:(0,wW.kJ)(f)&&f.concat([_ee,Cee]),mapping:{shape:c,tooltip:p,color:o,style:u},label:s,state:d}}),m8(e.chart,"interval").adjust("symmetric"),e}function Lee(e){var t=e.chart,n=e.options.isTransposed;return t.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),e}function Oee(e){var t=e.options,n=e.chart,i=t.maxSize,r=(0,wW.U2)(n,["geometries","0","dataArray"],[]),o=(0,wW.U2)(n,["options","data","length"]),a=(0,wW.UI)(r,(function(e){return(0,wW.U2)(e,["0","nextPoints","0","x"])*o-.5}));return Nee((function(e,t,n,r){var o=i-(i-e.$$mappingValue$$)/2;return(0,SW.pi)((0,SW.pi)({},r),{start:[a[t-1]||t-.5,o],end:[a[t-1]||t-.5,o+.05]})}))(e),e}function Ree(e){return v8(Iee,Dee,Lee,Oee)(e)}function Aee(e){var t,n=e.chart,i=e.options,r=i.data,o=void 0===r?[]:r,a=i.yField;return n.data(o),n.scale(((t={})[a]={sync:!0},t)),e}function Mee(e){var t=e.chart,n=e.options,i=n.data,r=n.xField,o=n.yField,a=n.color,s=n.compareField,l=n.isTransposed,c=n.tooltip,u=n.maxSize,d=n.minSize,h=n.label,f=n.funnelStyle,p=n.state,g=n.showFacetTitle;return t.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:g,eachView:function(e,t){var n=l?t.rowIndex:t.columnIndex;l||e.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var g=Tee(t.data,i,{yField:o,maxSize:u,minSize:d});e.data(g);var v=d9(c,[r,o,s]),m=v.fields,y=v.formatter,_=l?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};p9({chart:e,options:{type:"interval",xField:r,yField:bee,colorField:r,tooltipFields:(0,wW.kJ)(m)&&m.concat([_ee,Cee]),mapping:{shape:"funnel",tooltip:y,color:a,style:f},label:!1!==h&&p8({},_,h),state:p}})}}),e}function Pee(e){var t=e.chart,n=e.index,i=e.options,r=i.conversionTag,o=i.isTransposed;((0,wW.hj)(n)?[t]:t.views).forEach((function(e,t){var a=(0,wW.U2)(e,["geometries","0","dataArray"],[]),s=(0,wW.U2)(e,["options","data","length"]),l=(0,wW.UI)(a,(function(e){return(0,wW.U2)(e,["0","nextPoints","0","x"])*s-.5}));Nee((function(e,i,a,s){var c=0===(n||t)?-1:1;return p8({},s,{start:[l[i-1]||i-.5,e.$$mappingValue$$],end:[l[i-1]||i-.5,e.$$mappingValue$$+.05],text:o?{style:{textAlign:"start"}}:{offsetX:!1!==r?c*r.offsetX:0,style:{textAlign:0===(n||t)?"end":"start"}}})}))(p8({},{chart:e,options:i}))}))}function Zee(e){return e.chart.once("beforepaint",(function(){return Pee(e)})),e}function Fee(e){var t=e.chart,n=e.options,i=n.data,r=void 0===i?[]:i,o=n.yField,a=(0,wW.u4)(r,(function(e,t){return e+(t[o]||0)}),0),s=(0,wW.UT)(r,o)[o],l=(0,wW.UI)(r,(function(e,t){var n=[],i=[];if(e.$$totalPercentage$$=(e[o]||0)/a,t){var l=r[t-1].$$x$$,c=r[t-1].$$y$$;n[0]=l[3],i[0]=c[3],n[1]=l[2],i[1]=c[2]}else n[0]=-.5,i[0]=1,n[1]=.5,i[1]=1;return i[2]=i[1]-e.$$totalPercentage$$,n[2]=(i[2]+1)/4,i[3]=i[2],n[3]=-n[2],e.$$x$$=n,e.$$y$$=i,e.$$percentage$$=(e[o]||0)/s,e.$$conversion$$=[(0,wW.U2)(r,[t-1,o]),e[o]],e}));return t.data(l),e}function Bee(e){var t=e.chart,n=e.options,i=n.xField,r=n.yField,o=n.color,a=n.tooltip,s=n.label,l=n.funnelStyle,c=n.state,u=d9(a,[i,r]),d=u.fields,h=u.formatter;return p9({chart:t,options:{type:"polygon",xField:wee,yField:kee,colorField:i,tooltipFields:(0,wW.kJ)(d)&&d.concat([_ee,Cee]),label:s,state:c,mapping:{tooltip:h,color:o,style:l}}}),e}function Hee(e){var t=e.chart,n=e.options.isTransposed;return t.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),e}function zee(e){return Nee((function(e,t,n,i){return(0,SW.pi)((0,SW.pi)({},i),{start:[e.$$x$$[1],e.$$y$$[1]],end:[e.$$x$$[1]+.05,e.$$y$$[1]]})}))(e),e}function jee(e){var t,n=e.chart,i=e.options,r=i.data,o=void 0===r?[]:r,a=i.yField;return n.data(o),n.scale(((t={})[a]={sync:!0},t)),e}function Vee(e){var t=e.chart,n=e.options,i=n.seriesField,r=n.isTransposed,o=n.showFacetTitle;return t.facet("rect",{fields:[i],padding:[r?0:32,10,0,10],showTitle:o,eachView:function(t,n){Ree(p8({},e,{chart:t,options:{data:n.data}}))}}),e}var Wee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendering=!1,t}return(0,SW.ZT)(t,e),t.prototype.change=function(e){var t=this;if(!this.rendering){var n=e.seriesField,i=e.compareField,r=i?Pee:Oee,o=this.context.view,a=n||i?o.views:[o];(0,wW.UI)(a,(function(n,i){var o=n.getController("annotation"),a=(0,wW.hX)((0,wW.U2)(o,["option"],[]),(function(e){return e.name!==Eee}));o.clear(!0),(0,wW.S6)(a,(function(e){"object"===typeof e&&n.annotation()[e.type](e)}));var s=(0,wW.U2)(n,["filteredData"],n.getOptions().data);r({chart:n,index:i,options:(0,SW.pi)((0,SW.pi)({},e),{filteredData:Tee(s,s,e)})}),n.filterData(s),t.rendering=!0,n.render(!0)}))}this.rendering=!1},t}(aX),Uee="funnel-conversion-tag",Gee="funnel-afterrender",Kee={trigger:"afterrender",action:"".concat(Uee,":change")};function Yee(e){var t,n=e.options,i=n.compareField,r=n.xField,o=n.yField,a=n.locale,s=n.funnelStyle,l=n.data,c=u9(a);return(i||s)&&(t=function(e){return p8({},i&&{lineWidth:1,stroke:"#fff"},(0,wW.mf)(s)?s(e):s)}),p8({options:{label:i?{fields:[r,o,i,_ee,Cee],formatter:function(e){return"".concat(e[o])}}:{fields:[r,o,_ee,Cee],offset:0,position:"middle",formatter:function(e){return"".concat(e[r]," ").concat(e[o])}},tooltip:{title:r,formatter:function(e){return{name:e[r],value:e[o]}}},conversionTag:{formatter:function(e){return"".concat(c.get(["conversionTag","label"]),": ").concat($9.apply(void 0,e.$$conversion$$))}}}},e,{options:{funnelStyle:t,data:(0,wW.d9)(l)}})}function qee(e){var t=e.options,n=t.compareField,i=t.dynamicHeight;return t.seriesField?function(e){return v8(jee,Vee)(e)}(e):n?function(e){return v8(Aee,Mee,Zee)(e)}(e):i?function(e){return v8(Fee,Bee,Hee,zee)(e)}(e):Ree(e)}function $ee(e){var t,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return v8(i9(((t={})[o]=i,t[a]=r,t)))(e)}function Xee(e){return e.chart.axis(!1),e}function Qee(e){var t=e.chart,n=e.options.legend;return!1===n?t.legend(!1):t.legend(n),e}function Jee(e){var t=e.chart,n=e.options,i=n.interactions,r=n.dynamicHeight;return(0,wW.S6)(i,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg||{})})),r?t.removeInteraction(Gee):t.interaction(Gee,{start:[(0,SW.pi)((0,SW.pi)({},Kee),{arg:n})]}),e}function ete(e){return v8(Yee,qee,$ee,Xee,$8,Jee,Qee,Q8,J8,r9())(e)}dX(Uee,Wee),gQ(Gee,{start:[Kee]});var tte,nte=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="funnel",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return xee},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return ete},t.prototype.setState=function(e,t,n){void 0===n&&(n=!0);var i=_8(this.chart);(0,wW.S6)(i,(function(i){t(i.getData())&&i.setState(e,n)}))},t.prototype.getStates=function(){var e=_8(this.chart),t=[];return(0,wW.S6)(e,(function(e){var n=e.getData(),i=e.getStates();(0,wW.S6)(i,(function(i){t.push({data:n,state:i,geometry:e.geometry,element:e})}))})),t},t.CONVERSATION_FIELD=Cee,t.PERCENT_FIELD=_ee,t.TOTAL_PERCENT_FIELD=See,t}(x9),ite="range",rte="type",ote="percent",ate="indicator-view",ste="range-view",lte={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(tte={},tte.range={sync:"v"},tte.percent={sync:"v",tickCount:5,tickInterval:.2},tte),animation:!1};function cte(e){var t;return[(t={},t.percent=(0,wW.uZ)(e,0,1),t)]}function ute(e,t){var n=(0,wW.U2)(t,["ticks"],[]),i=(0,wW.dp)(n)?(0,wW.jj)(n):[0,(0,wW.uZ)(e,0,1),1];return i[0]||i.shift(),function(e,t){return e.map((function(n,i){var r;return(r={}).range=n-(e[i-1]||0),r.type="".concat(i),r.percent=t,r}))}(i,e)}function dte(e){var t=e.chart,n=e.options,i=n.percent,r=n.range,o=n.radius,a=n.innerRadius,s=n.startAngle,l=n.endAngle,c=n.axis,u=n.indicator,d=n.gaugeStyle,h=n.type,f=n.meter,p=r.color,g=r.width;if(u){var v=cte(i),m=t.createView({id:ate});m.data(v),m.point().position("".concat(ote,"*1")).shape(u.shape||"gauge-indicator").customInfo({defaultColor:t.getTheme().defaultColor,indicator:u}),m.coordinate("polar",{startAngle:s,endAngle:l,radius:a*o}),m.axis(ote,c),m.scale(ote,r8(c,e8))}var y=ute(i,n.range),_=t.createView({id:ste});_.data(y);var b=(0,wW.HD)(p)?[p,"#f0f0f0"]:p;return m9({chart:_,options:{xField:"1",yField:ite,seriesField:rte,rawFields:[ote],isStack:!0,interval:{color:b,style:d,shape:"meter"===h?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:g,maxColumnWidth:g}}).ext.geometry.customInfo({meter:f}),_.coordinate("polar",{innerRadius:a,radius:o,startAngle:s,endAngle:l}).transpose(),e}function hte(e){var t;return v8(i9(((t={range:{min:0,max:1,maxLimit:1,minLimit:0}}).percent={},t)))(e)}function fte(e,t){var n=e.chart,i=e.options,r=i.statistic,o=i.percent;if(n.getController("annotation").clear(!0),r){var a=r.content,s=void 0;a&&(s=p8({},{content:"".concat((100*o).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},a)),function(e,t,n){var i=t.statistic;[i.title,i.content].forEach((function(t){if(t){var i=(0,wW.mf)(t.style)?t.style(n):t.style;e.annotation().html((0,SW.pi)({position:["50%","100%"],html:function(e,r){var o=r.getCoordinate(),a=r.views[0].getCoordinate(),s=a.getCenter(),l=a.getRadius(),c=Math.max(Math.sin(a.startAngle),Math.sin(a.endAngle))*l,u=s.y+c-o.y.start-parseFloat((0,wW.U2)(i,"fontSize",0)),d=o.getRadius()*o.innerRadius*2;N8(e,(0,SW.pi)({width:"".concat(d,"px"),transform:"translate(-50%, ".concat(u,"px)")},T8(i)));var h=r.getData();if(t.customHtml)return t.customHtml(e,r,n,h);var f=t.content;return t.formatter&&(f=t.formatter(n,h)),f?(0,wW.HD)(f)?f:"".concat(f):"<div></div>"}},r8(t,["offsetX","offsetY","rotate","style","formatter"])))}}))}(n,{statistic:(0,SW.pi)((0,SW.pi)({},r),{content:s})},{percent:o})}return t&&n.render(!0),e}function pte(e){var t=e.chart,n=e.options.tooltip;return n?t.tooltip(p8({showTitle:!1,showMarkers:!1,containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(e,t){var n=(0,wW.U2)(t,[0,"data",ote],0);return"".concat((100*n).toFixed(2),"%")}},n)):t.tooltip(!1),e}function gte(e){return e.chart.legend(!1),e}function vte(e){return v8(J8,Q8,dte,hte,pte,fte,X8,r9(),gte)(e)}EJ("point","gauge-indicator",{draw:function(e,t){var n=e.customInfo,i=n.indicator,r=n.defaultColor,o=i,a=o.pointer,s=o.pin,l=t.addGroup(),c=this.parsePoint({x:0,y:0});return a&&l.addShape("line",{name:"pointer",attrs:(0,SW.pi)({x1:c.x,y1:c.y,x2:e.x,y2:e.y,stroke:r},a.style)}),s&&l.addShape("circle",{name:"pin",attrs:(0,SW.pi)({x:c.x,y:c.y,stroke:r},s.style)}),l}}),EJ("interval","meter-gauge",{draw:function(e,t){var n=e.customInfo.meter,i=void 0===n?{}:n,r=i.steps,o=void 0===r?50:r,a=i.stepRatio,s=void 0===a?.5:a;o=o<1?1:o,s=(0,wW.uZ)(s,0,1);var l=this.coordinate,c=l.startAngle,u=l.endAngle,d=0;s>0&&s<1&&(d=(u-c)/o/(s/(1-s)+1-1/o));for(var h=d/(1-s)*s,f=t.addGroup(),p=this.coordinate.getCenter(),g=this.coordinate.getRadius(),v=u0.getAngle(e,this.coordinate),m=v.startAngle,y=v.endAngle,_=m;_<y;){var b=void 0,C=(_-c)%(h+d);b=C<h?_+(h-C):(_+=h+d-C)+h;var S=u0.getSectorPath(p.x,p.y,g,_,Math.min(b,y),g*this.coordinate.innerRadius);f.addShape("path",{name:"meter-gauge",attrs:{path:S,fill:e.color,stroke:e.color,lineWidth:.5}}),_=b+d}return f}});var mte=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="gauge",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return lte},t.prototype.changeData=function(e){this.chart.emit(kW.BEFORE_CHANGE_DATA,YQ.fromData(this.chart,kW.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:e});var t=this.chart.views.find((function(e){return e.id===ate}));t&&t.data(cte(e));var n=this.chart.views.find((function(e){return e.id===ste}));n&&n.data(ute(e,this.options.range)),fte({chart:this.chart,options:this.options},!0),this.chart.emit(kW.AFTER_CHANGE_DATA,YQ.fromData(this.chart,kW.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return vte},t}(x9);function yte(e,t,n){if(1===n)return[0,t];var i=Math.floor(e/t);return[t*i,t*(i+1)]}function _te(e,t,n,i,r){var o=(0,wW.d9)(e);(0,wW.MR)(o,t);var a=(0,wW.I)(o,t),s=(0,wW.rx)(a),l=s.max-s.min,c=n;if(!n&&i&&(c=i>1?l/(i-1):s.max),!n&&!i){var u=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}(a);c=l/u}var d={},h=(0,wW.vM)(o,r);(0,wW.xb)(h)?(0,wW.S6)(o,(function(e){var n=yte(e[t],c,i),r="".concat(n[0],"-").concat(n[1]);(0,wW.wH)(d,r)||(d[r]={range:n,count:0}),d[r].count+=1})):Object.keys(h).forEach((function(e){(0,wW.S6)(h[e],(function(n){var o=yte(n[t],c,i),a="".concat(o[0],"-").concat(o[1]),s="".concat(a,"-").concat(e);(0,wW.wH)(d,s)||(d[s]={range:o,count:0},d[s][r]=e),d[s].count+=1}))}));var f=[];return(0,wW.S6)(d,(function(e){f.push(e)})),f}var bte="range",Cte="count",Ste=p8({},x9.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function wte(e){var t=e.chart,n=e.options,i=n.data,r=n.binField,o=n.binNumber,a=n.binWidth,s=n.color,l=n.stackField,c=n.legend,u=n.columnStyle,d=_te(i,r,a,o,l);return t.data(d),m9(p8({},e,{options:{xField:bte,yField:Cte,seriesField:l,isStack:!0,interval:{color:s,style:u}}})),c&&l?t.legend(l,c):t.legend(!1),e}function kte(e){var t,n=e.options,i=n.xAxis,r=n.yAxis;return v8(i9(((t={}).range=i,t.count=r,t)))(e)}function xte(e){var t=e.chart,n=e.options,i=n.xAxis,r=n.yAxis;return!1===i?t.axis(bte,!1):t.axis(bte,i),!1===r?t.axis(Cte,!1):t.axis(Cte,r),e}function Ete(e){var t=e.chart,n=e.options.label,i=m8(t,"interval");if(n){var r=n.callback,o=(0,SW._T)(n,["callback"]);i.label({fields:[Cte],callback:r,cfg:b8(o)})}else i.label(!1);return e}function Tte(e){return v8(J8,Y8("columnStyle"),wte,kte,xte,e9,Ete,$8,X8,Q8)(e)}var Nte=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="histogram",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Ste},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,n=t.binField,i=t.binNumber,r=t.binWidth,o=t.stackField;this.chart.changeData(_te(e,n,r,i,o))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Tte},t}(x9),Ite=p8({},x9.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),Dte=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.active=function(){var e=this.getView(),t=this.context.event;if(t.data){var n=t.data.items,i=e.geometries.filter((function(e){return"point"===e.type}));(0,wW.S6)(i,(function(e){(0,wW.S6)(e.elements,(function(e){var t=-1!==(0,wW.cx)(n,(function(t){return t.data===e.data}));e.setState("active",t)}))}))}},t.prototype.reset=function(){var e=this.getView().geometries.filter((function(e){return"point"===e.type}));(0,wW.S6)(e,(function(e){(0,wW.S6)(e.elements,(function(e){e.setState("active",!1)}))}))},t.prototype.getView=function(){return this.context.view},t}(aX);dX("marker-active",Dte),gQ("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var Lte=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Ite},t.prototype.changeData=function(e){this.updateOption({data:e});I9({chart:this.chart,options:this.options}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return M9},t}(x9),Ote=p8({},x9.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),Rte=[1,0,0,0,1,0,0,0,1];function Ate(e,t){var n=t?(0,SW.ev)([],t,!0):(0,SW.ev)([],Rte,!0);return u0.transform(n,e)}var Mte=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getActiveElements=function(){var e=u0.getDelegationObject(this.context);if(e){var t=this.context.view,n=e.component,i=e.item,r=n.get("field");if(r)return t.geometries[0].elements.filter((function(e){return e.getModel().data[r]===i.value}))}return[]},t.prototype.getActiveElementLabels=function(){var e=this.context.view,t=this.getActiveElements();return e.geometries[0].labelsContainer.getChildren().filter((function(e){return t.find((function(t){return(0,wW.Xy)(t.getData(),e.get("data"))}))}))},t.prototype.transfrom=function(e){void 0===e&&(e=7.5);var t=this.getActiveElements(),n=this.getActiveElementLabels();t.forEach((function(t,i){var r=n[i],o=t.geometry.coordinate;if(o.isPolar&&o.isTransposed){var a=u0.getAngle(t.getModel(),o),s=(a.startAngle+a.endAngle)/2,l=e,c=l*Math.cos(s),u=l*Math.sin(s);t.shape.setMatrix(Ate([["t",c,u]])),r.setMatrix(Ate([["t",c,u]]))}}))},t.prototype.active=function(){this.transfrom()},t.prototype.reset=function(){this.transfrom(0)},t}(aX);var Pte=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getAnnotations=function(e){return(e||this.context.view).getController("annotation").option},t.prototype.getInitialAnnotation=function(){return this.initialAnnotation},t.prototype.init=function(){var e=this,t=this.context.view;t.removeInteraction("tooltip"),t.on("afterchangesize",(function(){var n=e.getAnnotations(t);e.initialAnnotation=n}))},t.prototype.change=function(e){var t=this.context,n=t.view,i=t.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var r=(0,wW.U2)(i,["data","data"]);if(i.type.match("legend-item")){var o=u0.getDelegationObject(this.context),a=n.getGroupedFields()[0];if(o&&a){var s=o.item;r=n.getData().find((function(e){return e[a]===s.value}))}}if(r){var l=(0,wW.U2)(e,"annotations",[]),c=(0,wW.U2)(e,"statistic",{});n.getController("annotation").clear(!0),(0,wW.S6)(l,(function(e){"object"===typeof e&&n.annotation()[e.type](e)})),I8(n,{statistic:c,plotType:"pie"},r),n.render(!0)}var u=function(e){var t,n=e.event.target;return n&&(t=n.get("element")),t}(this.context);u&&u.shape.toFront()},t.prototype.reset=function(){var e=this.context.view;e.getController("annotation").clear(!0);var t=this.getInitialAnnotation();(0,wW.S6)(t,(function(t){e.annotation()[t.type](t)})),e.render(!0)},t}(aX),Zte="pie-statistic";function Fte(e,t){var n;switch(e){case"inner":return n="-30%",(0,wW.HD)(t)&&t.endsWith("%")?.01*parseFloat(t)>0?n:t:t<0?t:n;case"outer":return n=12,(0,wW.HD)(t)&&t.endsWith("%")?.01*parseFloat(t)<0?n:t:t>0?t:n;default:return t}}function Bte(e,t){return(0,wW.yW)(s8(e,t),(function(e){return 0===e[t]}))}function Hte(e){var t=e.chart,n=e.options,i=n.data,r=n.angleField,o=n.colorField,a=n.color,s=n.pieStyle,l=n.shape,c=s8(i,r);if(Bte(c,r)){var u="$$percentage$$";c=c.map((function(e){var t;return(0,SW.pi)((0,SW.pi)({},e),((t={}).$$percentage$$=1/c.length,t))})),t.data(c),m9(p8({},e,{options:{xField:"1",yField:u,seriesField:o,isStack:!0,interval:{color:a,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}}))}else{t.data(c),m9(p8({},e,{options:{xField:"1",yField:r,seriesField:o,isStack:!0,interval:{color:a,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}}))}return e}function zte(e){var t,n=e.chart,i=e.options,r=i.meta,o=i.colorField,a=p8({},r);return n.scale(a,((t={})[o]={type:"cat"},t)),e}function jte(e){var t=e.chart,n=e.options,i=n.radius,r=n.innerRadius,o=n.startAngle,a=n.endAngle;return t.coordinate({type:"theta",cfg:{radius:i,innerRadius:r,startAngle:o,endAngle:a}}),e}function Vte(e){var t=e.chart,n=e.options,i=n.label,r=n.colorField,o=n.angleField,a=t.geometries[0];if(i){var s=i.callback,l=b8((0,SW._T)(i,["callback"]));if(l.content){var c=l.content;l.content=function(e,n,i){var a=e[r],s=e[o],l=t.getScaleByField(o),u=null===l||void 0===l?void 0:l.scale(s);return(0,wW.mf)(c)?c((0,SW.pi)((0,SW.pi)({},e),{percent:u}),n,i):(0,wW.HD)(c)?D8(c,{value:s,name:a,percentage:(0,wW.hj)(u)&&!(0,wW.UM)(s)?"".concat((100*u).toFixed(2),"%"):null}):c}}var u=l.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[l.type]:"pie-outer",d=l.layout?(0,wW.kJ)(l.layout)?l.layout:[l.layout]:[];l.layout=(u?[{type:u}]:[]).concat(d),a.label({fields:r?[o,r]:[o],callback:s,cfg:(0,SW.pi)((0,SW.pi)({},l),{offset:Fte(l.type,l.offset),type:"pie"})})}else a.label(!1);return e}function Wte(e){var t=e.innerRadius,n=e.statistic,i=e.angleField,r=e.colorField,o=e.meta,a=u9(e.locale);if(t&&n){var s=p8({},Ote.statistic,n),l=s.title,c=s.content;return!1!==l&&(l=p8({},{formatter:function(e){var t=e?e[r]:(0,wW.UM)(l.content)?a.get(["statistic","total"]):l.content;return((0,wW.U2)(o,[r,"formatter"])||function(e){return e})(t)}},l)),!1!==c&&(c=p8({},{formatter:function(e,t){var n=e?e[i]:function(e,t){var n=null;return(0,wW.S6)(e,(function(e){"number"===typeof e[t]&&(n+=e[t])})),n}(t,i),r=(0,wW.U2)(o,[i,"formatter"])||function(e){return e};return e||(0,wW.UM)(c.content)?r(n):c.content}},c)),p8({},{statistic:{title:l,content:c}},e)}return e}function Ute(e){var t=e.chart,n=Wte(e.options),i=n.innerRadius,r=n.statistic;return t.getController("annotation").clear(!0),v8(r9())(e),i&&r&&I8(t,{statistic:r,plotType:"pie"}),e}function Gte(e){var t=e.chart,n=e.options,i=n.tooltip,r=n.colorField,o=n.angleField,a=n.data;if(!1===i)t.tooltip(i);else if(t.tooltip(p8({},i,{shared:!1})),Bte(a,o)){var s=(0,wW.U2)(i,"fields"),l=(0,wW.U2)(i,"formatter");(0,wW.xb)((0,wW.U2)(i,"fields"))&&(s=[r,o],l=l||function(e){return{name:e[r],value:(0,wW.BB)(e[o])}}),t.geometries[0].tooltip(s.join("*"),f9(s,l))}return e}function Kte(e){var t=e.chart,n=Wte(e.options),i=n.interactions,r=n.statistic,o=n.annotations;return(0,wW.S6)(i,(function(e){var n,i;if(!1===e.enable)t.removeInteraction(e.type);else if("pie-statistic-active"===e.type){var a=[];(null===(n=e.cfg)||void 0===n?void 0:n.start)||(a=[{trigger:"element:mouseenter",action:"".concat(Zte,":change"),arg:{statistic:r,annotations:o}}]),(0,wW.S6)(null===(i=e.cfg)||void 0===i?void 0:i.start,(function(e){a.push((0,SW.pi)((0,SW.pi)({},e),{arg:{statistic:r,annotations:o}}))})),t.interaction(e.type,p8({},e.cfg,{start:a}))}else t.interaction(e.type,e.cfg||{})})),e}function Yte(e){return v8(Y8("pieStyle"),Hte,zte,J8,jte,q8,Gte,Vte,e9,Ute,Kte,Q8)(e)}dX(Zte,Pte),gQ("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),dX("pie-legend",Mte),gQ("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var qte=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="pie",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Ote},t.prototype.changeData=function(e){this.chart.emit(kW.BEFORE_CHANGE_DATA,YQ.fromData(this.chart,kW.BEFORE_CHANGE_DATA,null));var t=this.options,n=this.options.angleField,i=s8(t.data,n),r=s8(e,n);Bte(i,n)||Bte(r,n)?this.update({data:e}):(this.updateOption({data:e}),this.chart.data(r),Ute({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(kW.AFTER_CHANGE_DATA,YQ.fromData(this.chart,kW.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Yte},t}(x9),$te=["#FAAD14","#E8EDF3"],Xte={percent:.2,color:$te,animation:{}};function Qte(e){var t=(0,wW.uZ)(C8(e)?e:0,0,1);return[{current:"".concat(t),type:"current",percent:t},{current:"".concat(t),type:"target",percent:1}]}function Jte(e){var t=e.chart,n=e.options,i=n.percent,r=n.progressStyle,o=n.color,a=n.barWidthRatio;return t.data(Qte(i)),m9(p8({},e,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:a,interval:{style:r,color:(0,wW.HD)(o)?[o,$te[1]]:o},args:{zIndexReversed:!0,sortZIndex:!0}}})),t.tooltip(!1),t.axis(!1),t.legend(!1),e}function ene(e){return e.chart.coordinate("rect").transpose(),e}function tne(e){return v8(Jte,i9({}),ene,Q8,J8,r9())(e)}var nne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="process",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Xte},t.prototype.changeData=function(e){this.updateOption({percent:e}),this.chart.changeData(Qte(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return tne},t}(x9);function ine(e){var t=e.chart,n=e.options,i=n.innerRadius,r=n.radius;return t.coordinate("theta",{innerRadius:i,radius:r}),e}function rne(e,t){var n=e.chart,i=e.options,r=i.innerRadius,o=i.statistic,a=i.percent,s=i.meta;if(n.getController("annotation").clear(!0),r&&o){var l=(0,wW.U2)(s,["percent","formatter"])||function(e){return"".concat((100*e).toFixed(2),"%")},c=o.content;c&&(c=p8({},c,{content:(0,wW.UM)(c.content)?l(a):c.content})),I8(n,{statistic:(0,SW.pi)((0,SW.pi)({},o),{content:c}),plotType:"ring-progress"},{percent:a})}return t&&n.render(!0),e}function one(e){return v8(Jte,i9({}),ine,rne,Q8,J8,r9())(e)}var ane={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},sne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ring-process",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return ane},t.prototype.changeData=function(e){this.chart.emit(kW.BEFORE_CHANGE_DATA,YQ.fromData(this.chart,kW.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:e}),this.chart.data(Qte(e)),rne({chart:this.chart,options:this.options},!0),this.chart.emit(kW.AFTER_CHANGE_DATA,YQ.fromData(this.chart,kW.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return one},t}(x9),lne=n(57046),cne={exp:lne.regressionExp,linear:lne.regressionLinear,loess:lne.regressionLoess,log:lne.regressionLog,poly:lne.regressionPoly,pow:lne.regressionPow,quad:lne.regressionQuad};var une=function(e,t){var n=t.view,i=t.options,r=i.xField,o=i.yField,a=n.getScaleByField(r),s=n.getScaleByField(o);return function(e,t,n){var i=[],r=e[0],o=null;if(e.length<=2)return function(e,t){var n=[];if(e.length){n.push(["M",e[0].x,e[0].y]);for(var i=1,r=e.length;i<r;i+=1){var o=e[i];n.push(["L",o.x,o.y])}t&&n.push(["Z"])}return n}(e,t);for(var a=0,s=e.length;a<s;a++){var l=e[a];o&&o.x===l.x&&o.y===l.y||(i.push(l.x),i.push(l.y),o=l)}var c=x8(i,t,n||[[0,0],[1,1]]);return c.unshift(["M",r.x,r.y]),c}(e.map((function(e){return n.getCoordinate().convert({x:a.scale(e[0]),y:s.scale(e[1])})})),!1)},dne=function(e){var t,n=e.options,i=n.xField,r=n.yField,o=n.data,a=n.regressionLine,s=a.type,l=void 0===s?"linear":s,c=a.algorithm,u=a.equation,d=null;c?(t=(0,wW.kJ)(c)?c:c(o),d=u):d=function(e,t){var n,i,r,o=function(e,t){return void 0===t&&(t=4),Math.round(e*Math.pow(10,t))/Math.pow(10,t)},a=function(e){return Number.isFinite(e)?o(e):"?"};switch(e){case"linear":return"y = ".concat(a(t.a),"x + ").concat(a(t.b),", R^2 = ").concat(a(t.rSquared));case"exp":return"y = ".concat(a(t.a),"e^(").concat(a(t.b),"x), R^2 = ").concat(a(t.rSquared));case"log":return"y = ".concat(a(t.a),"ln(x) + ").concat(a(t.b),", R^2 = ").concat(a(t.rSquared));case"quad":return"y = ".concat(a(t.a),"x^2 + ").concat(a(t.b),"x + ").concat(a(t.c),", R^2 = ").concat(a(t.rSquared));case"poly":for(var s="y = ".concat(a(null===(n=t.coefficients)||void 0===n?void 0:n[0])," + ").concat(a(null===(i=t.coefficients)||void 0===i?void 0:i[1]),"x + ").concat(a(null===(r=t.coefficients)||void 0===r?void 0:r[2]),"x^2"),l=3;l<t.coefficients.length;++l)s+=" + ".concat(a(t.coefficients[l]),"x^").concat(l);return"".concat(s,", R^2 = ").concat(a(t.rSquared));case"pow":return"y = ".concat(a(t.a),"x^").concat(a(t.b),", R^2 = ").concat(a(t.rSquared))}return null}(l,t=cne[l]().x((function(e){return e[i]})).y((function(e){return e[r]}))(o));return[une(t,e),d]};function hne(e){var t=e.data,n=void 0===t?[]:t,i=e.xField,r=e.yField;if(n.length){for(var o=!0,a=!0,s=n[0],l=void 0,c=1;c<n.length&&(l=n[c],s[i]!==l[i]&&(o=!1),s[r]!==l[r]&&(a=!1),o||a);c++)s=l;var u=[];o&&u.push(i),a&&u.push(r);var d=r8(function(e){var t,n=e.meta,i=void 0===n?{}:n,r=e.xField,o=e.yField,a=e.data,s=a[0][r],l=a[0][o],c=s>0,u=l>0;function d(e,t){var n=(0,wW.U2)(i,[e]);function r(e){return(0,wW.U2)(n,e)}var o={};return"x"===t?((0,wW.hj)(s)&&((0,wW.hj)(r("min"))||(o.min=c?0:2*s),(0,wW.hj)(r("max"))||(o.max=c?2*s:0)),o):((0,wW.hj)(l)&&((0,wW.hj)(r("min"))||(o.min=u?0:2*l),(0,wW.hj)(r("max"))||(o.max=u?2*l:0)),o)}return(0,SW.pi)((0,SW.pi)({},i),((t={})[r]=(0,SW.pi)((0,SW.pi)({},i[r]),d(r,"x")),t[o]=(0,SW.pi)((0,SW.pi)({},i[o]),d(o,"y")),t))}(e),u);return p8({},e,{meta:d})}return e}function fne(e){var t=e.chart,n=e.options,i=n.data,r=n.type,o=n.color,a=n.shape,s=n.pointStyle,l=n.shapeField,c=n.colorField,u=n.xField,d=n.yField,h=n.sizeField,f=n.size,p=n.tooltip;h&&(f||(f=[2,8]),(0,wW.hj)(f)&&(f=[f,f])),p&&!p.fields&&(p=(0,SW.pi)((0,SW.pi)({},p),{fields:[u,d,c,h,l]})),t.data(i),_9(p8({},e,{options:{seriesField:c,point:{color:o,shape:a,size:f,style:s},tooltip:p}}));var g=m8(t,"point");return r&&g.adjust(r),e}function pne(e){var t,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField,s=hne(n);return v8(i9(((t={})[o]=i,t[a]=r,t)))(p8({},e,{options:s}))}function gne(e){var t=e.chart,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return t.axis(o,i),t.axis(a,r),e}function vne(e){var t=e.chart,n=e.options,i=n.legend,r=n.colorField,o=n.shapeField,a=n.sizeField,s=n.shapeLegend,l=n.sizeLegend,c=!1!==i;return r&&t.legend(r,!!c&&i),o&&(s?t.legend(o,s):t.legend(o,!1!==s&&i)),a&&t.legend(a,l||!1),c||s||l||t.legend(!1),e}function mne(e){var t=e.chart,n=e.options,i=n.label,r=n.yField,o=m8(t,"point");if(i){var a=i.callback,s=(0,SW._T)(i,["callback"]);o.label({fields:[r],callback:a,cfg:b8(s)})}else o.label(!1);return e}function yne(e){var t=e.options.quadrant,n=[];if(t){var i=t.xBaseline,r=void 0===i?0:i,o=t.yBaseline,a=void 0===o?0:o,s=t.labels,l=t.regionStyle,c=t.lineStyle,u=function(e,t){var n=10;return{regionStyle:[{position:{start:[e,"max"],end:["max",t]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[e,t]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",t],end:[e,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[e,t],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",t],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",t],offsetX:n,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",t],offsetX:n,offsetY:n,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",t],offsetX:-10,offsetY:n,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}}(r,a);new Array(4).join(",").split(",").forEach((function(e,t){n.push((0,SW.pi)((0,SW.pi)({type:"region",top:!1},u.regionStyle[t].position),{style:p8({},u.regionStyle[t].style,null===l||void 0===l?void 0:l[t])}),(0,SW.pi)({type:"text",top:!0},p8({},u.labelStyle[t],null===s||void 0===s?void 0:s[t])))})),n.push({type:"line",top:!1,start:["min",a],end:["max",a],style:p8({},u.lineStyle,c)},{type:"line",top:!1,start:[r,"min"],end:[r,"max"],style:p8({},u.lineStyle,c)})}return v8(r9(n))(e)}function _ne(e){var t=e.options,n=e.chart,i=t.regressionLine;if(i){var r=i.style,o=i.equationStyle,a=void 0===o?{}:o,s=i.top,l=void 0!==s&&s,c=i.showEquation,u=void 0!==c&&c,d={stroke:"#9ba29a",lineWidth:2,opacity:.5},h={x:20,y:20,textAlign:"left",textBaseline:"middle",fontSize:14,fillOpacity:.5};n.annotation().shape({top:l,render:function(e,i){var o=e.addGroup({id:"".concat(n.id,"-regression-line"),name:"regression-line-group"}),s=dne({view:i,options:t}),l=s[0],c=s[1];o.addShape("path",{name:"regression-line",attrs:(0,SW.pi)((0,SW.pi)({path:l},d),r)}),u&&o.addShape("text",{name:"regression-equation",attrs:(0,SW.pi)((0,SW.pi)((0,SW.pi)({},h),a),{text:c})})}})}return e}function bne(e){var t=e.chart,n=e.options.tooltip;return n?t.tooltip(n):!1===n&&t.tooltip(!1),e}function Cne(e){return v8(fne,pne,gne,vne,bne,mne,K9,t9,n9,X8,yne,Q8,J8,_ne)(e)}var Sne=p8({},x9.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}});gQ("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]});var wne=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.type="scatter",i.on(kW.BEFORE_RENDER,(function(e){var t,n,r=i,o=r.options,a=r.chart;if((null===(t=e.data)||void 0===t?void 0:t.source)===s7.FILTER){var s=i.chart.filterData(i.chart.getData());pne({chart:a,options:(0,SW.pi)((0,SW.pi)({},o),{data:s})})}(null===(n=e.data)||void 0===n?void 0:n.source)===s7.RESET&&pne({chart:a,options:o})})),i}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Sne},t.prototype.changeData=function(e){this.updateOption(hne(p8({},this.options,{data:e})));var t=this.options;pne({chart:this.chart,options:t}),this.chart.changeData(e)},t.prototype.getSchemaAdaptor=function(){return Cne},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t}(x9),kne="$$stock-range$$",xne="trend",Ene="down",Tne=p8({},x9.getDefaultOptions(),{tooltip:{showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(e,t,n){var i;if("x"===e){var r=n[0];i=r?r.title:t}else i=t;return{position:"y"===e?"start":"end",content:i,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}},interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"});function Nne(e,t){return(0,wW.UI)(e,(function(e){var n=e&&(0,SW.pi)({},e);if((0,wW.kJ)(t)&&n){var i=t[0],r=t[1],o=t[2],a=t[3];n.trend=n[i]<=n[r]?"up":Ene,n[kne]=[n[i],n[r],n[o],n[a]]}return n}))}function Ine(e){var t=e.chart,n=e.options,i=n.yField,r=n.data,o=n.risingFill,a=n.fallingFill,s=n.tooltip,l=n.stockStyle;t.data(Nne(r,i));var c=s;return!1!==c&&(c=p8({},{fields:i},c)),C9(p8({},e,{options:{schema:{shape:"candle",color:[o,a],style:l},yField:kne,seriesField:xne,rawFields:i,tooltip:c}})),e}function Dne(e){var t,n,i=e.chart,r=e.options,o=r.meta,a=r.xAxis,s=r.yAxis,l=r.xField,c=((t={})[l]={type:"timeCat",tickCount:6},t.trend={values:["up",Ene]},t),u=p8(c,o,((n={})[l]=r8(a,e8),n[kne]=r8(s,e8),n));return i.scale(u),e}function Lne(e){var t=e.chart,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField;return!1===i?t.axis(o,!1):t.axis(o,i),!1===r?t.axis(kne,!1):t.axis(kne,r),e}function One(e){var t=e.chart,n=e.options.tooltip;return!1!==n?t.tooltip(n):t.tooltip(!1),e}function Rne(e){var t=e.chart,n=e.options.legend;return n?t.legend(xne,n):!1===n&&t.legend(!1),e}function Ane(e){v8(J8,Ine,Dne,Lne,One,Rne,X8,Q8,r9(),t9)(e)}var Mne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="stock",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Tne},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Ane},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options.yField;this.chart.changeData(Nne(e,t))},t}(x9);function Pne(e){return(0,wW.UI)(e||[],(function(e,t){return{x:"".concat(t),y:e}}))}var Zne="x",Fne="y",Bne={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,t){return"".concat((0,wW.U2)(t,[0,"data","y"],0))},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},Hne={appendPadding:2,tooltip:(0,SW.pi)({},Bne),animation:{}};function zne(e){var t=e.chart,n=e.options,i=n.data,r=n.color,o=n.areaStyle,a=n.point,s=n.line,l=null===a||void 0===a?void 0:a.state,c=Pne(i);t.data(c);var u=p8({},e,{options:{xField:Zne,yField:Fne,area:{color:r,style:o},line:s,point:a}}),d=p8({},u,{options:{tooltip:!1}}),h=p8({},u,{options:{tooltip:!1,state:l}});return g9(u),y9(d),_9(h),t.axis(!1),t.legend(!1),e}function jne(e){var t,n,i=e.options,r=i.xAxis,o=i.yAxis,a=Pne(i.data);return v8(i9(((t={}).x=r,t.y=o,t),((n={}).x={type:"cat"},n.y=o8(a,Fne),n)))(e)}function Vne(e){return v8(Y8("areaStyle"),zne,jne,$8,J8,Q8,r9())(e)}var Wne={appendPadding:2,tooltip:(0,SW.pi)({},Bne),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},Une=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-area",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Wne},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart;jne({chart:t,options:this.options}),t.changeData(Pne(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Vne},t}(x9);function Gne(e){var t=e.chart,n=e.options,i=n.data,r=n.color,o=n.columnStyle,a=n.columnWidthRatio,s=Pne(i);return t.data(s),m9(p8({},e,{options:{xField:Zne,yField:Fne,widthRatio:a,interval:{style:o,color:r}}})),t.axis(!1),t.legend(!1),t.interaction("element-active"),e}function Kne(e){return v8(J8,Y8("columnStyle"),Gne,jne,$8,Q8,r9())(e)}var Yne={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,t){return"".concat((0,wW.U2)(t,[0,"data","y"],0))},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},qne={appendPadding:2,tooltip:(0,SW.pi)({},Yne),animation:{}},$ne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-column",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return qne},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart;jne({chart:t,options:this.options}),t.changeData(Pne(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Kne},t}(x9);function Xne(e){var t=e.chart,n=e.options,i=n.data,r=n.color,o=n.lineStyle,a=n.point,s=null===a||void 0===a?void 0:a.state,l=Pne(i);t.data(l);var c=p8({},e,{options:{xField:Zne,yField:Fne,line:{color:r,style:o},point:a}}),u=p8({},c,{options:{tooltip:!1,state:s}});return y9(c),_9(u),t.axis(!1),t.legend(!1),e}function Qne(e){return v8(Xne,jne,J8,$8,Q8,r9())(e)}var Jne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-line",t}return(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Hne},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart;jne({chart:t,options:this.options}),t.changeData(Pne(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Qne},t}(x9),eie={line:M9,pie:Yte,column:see,bar:fee,area:B9,gauge:vte,"tiny-line":Qne,"tiny-column":Kne,"tiny-area":Vne,"ring-progress":one,progress:tne,scatter:Cne,histogram:Tte,funnel:ete,stock:Ane},tie={line:Lte,pie:qte,column:yee,bar:vee,area:z9,gauge:mte,"tiny-line":Jne,"tiny-column":$ne,"tiny-area":Une,"ring-progress":sne,progress:nne,scatter:wne,histogram:Nte,funnel:nte,stock:Mne},nie={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function iie(e,t,n){var i=tie[e];i?(0,eie[e])({chart:t,options:p8({},i.getDefaultOptions(),(0,wW.U2)(nie,e,{}),n)}):console.error("could not find ".concat(e," plot"))}function rie(e){var t=e.chart,n=e.options,i=n.views,r=n.legend;return(0,wW.S6)(i,(function(e){var n=e.region,i=e.data,r=e.meta,o=e.axes,a=e.coordinate,s=e.interactions,l=e.annotations,c=e.tooltip,u=e.geometries,d=t.createView({region:n});d.data(i);var h={};o&&(0,wW.S6)(o,(function(e,t){h[t]=r8(e,e8)})),h=p8({},r,h),d.scale(h),o?(0,wW.S6)(o,(function(e,t){d.axis(t,e)})):d.axis(!1),d.coordinate(a),(0,wW.S6)(u,(function(e){var t=p9({chart:d,options:e}).ext,n=e.adjust;n&&t.geometry.adjust(n)})),(0,wW.S6)(s,(function(e){!1===e.enable?d.removeInteraction(e.type):d.interaction(e.type,e.cfg)})),(0,wW.S6)(l,(function(e){d.annotation()[e.type]((0,SW.pi)({},e))})),"boolean"===typeof e.animation?d.animate(!1):(d.animate(!0),(0,wW.S6)(d.geometries,(function(t){t.animate(e.animation)}))),c&&(d.interaction("tooltip"),d.tooltip(c))})),r?(0,wW.S6)(r,(function(e,n){t.legend(n,e)})):t.legend(!1),t.tooltip(n.tooltip),e}function oie(e){var t=e.chart,n=e.options,i=n.plots,r=n.data,o=void 0===r?[]:r;return(0,wW.S6)(i,(function(e){var n=e.type,i=e.region,r=e.options,a=void 0===r?{}:r,s=e.top,l=a.tooltip;if(s)iie(n,t,(0,SW.pi)((0,SW.pi)({},a),{data:o}));else{var c=t.createView((0,SW.pi)({region:i},r8(a,k9)));l&&c.interaction("tooltip"),iie(n,c,(0,SW.pi)({data:o},a))}})),e}function aie(e){var t=e.chart,n=e.options;return t.option("slider",n.slider),e}function sie(e){return v8(Q8,rie,oie,X8,Q8,J8,$8,aie,r9())(e)}var lie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getAssociationItems=function(e,t){var n,i=this.context.event,r=t||{},o=r.linkField,a=r.dim,s=[];if(null===(n=i.data)||void 0===n?void 0:n.data){var l=i.data.data;(0,wW.S6)(e,(function(e){var t,n,i=o;if("x"===a?i=e.getXScale().field:"y"===a?i=null===(t=e.getYScales().find((function(e){return e.field===i})))||void 0===t?void 0:t.field:i||(i=null===(n=e.getGroupScales()[0])||void 0===n?void 0:n.field),i){var r=(0,wW.UI)(y8(e),(function(t){var n=!1,r=!1,o=(0,wW.kJ)(l)?(0,wW.U2)(l[0],i):(0,wW.U2)(l,i);return function(e,t){var n=e.getModel().data;return(0,wW.kJ)(n)?n[0][t]:n[t]}(t,i)===o?n=!0:r=!0,{element:t,view:e,active:n,inactive:r}}));s.push.apply(s,r)}}))}return s},t.prototype.showTooltip=function(e){var t=R8(this.context.view),n=this.getAssociationItems(t,e);(0,wW.S6)(n,(function(e){if(e.active){var t=e.element.shape.getCanvasBBox();e.view.showTooltip({x:t.minX+t.width/2,y:t.minY+t.height/2})}}))},t.prototype.hideTooltip=function(){var e=R8(this.context.view);(0,wW.S6)(e,(function(e){e.hideTooltip()}))},t.prototype.active=function(e){var t=O8(this.context.view),n=this.getAssociationItems(t,e);(0,wW.S6)(n,(function(e){var t=e.active,n=e.element;t&&n.setState("active",!0)}))},t.prototype.selected=function(e){var t=O8(this.context.view),n=this.getAssociationItems(t,e);(0,wW.S6)(n,(function(e){var t=e.active,n=e.element;t&&n.setState("selected",!0)}))},t.prototype.highlight=function(e){var t=O8(this.context.view),n=this.getAssociationItems(t,e);(0,wW.S6)(n,(function(e){var t=e.inactive,n=e.element;t&&n.setState("inactive",!0)}))},t.prototype.reset=function(){var e=O8(this.context.view);(0,wW.S6)(e,(function(e){!function(e){var t=y8(e);(0,wW.S6)(t,(function(e){e.hasState("active")&&e.setState("active",!1),e.hasState("selected")&&e.setState("selected",!1),e.hasState("inactive")&&e.setState("inactive",!1)}))}(e)}))},t}(aX);dX("association",lie),gQ("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),gQ("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),gQ("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),gQ("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var cie,uie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="mix",t}return(0,SW.ZT)(t,e),t.prototype.getSchemaAdaptor=function(){return sie},t}(x9);!function(e){e.DEV="DEV",e.BETA="BETA",e.STABLE="STABLE"}(cie||(cie={}));!function(){function e(){}Object.defineProperty(e,"MultiView",{get:function(){var e,t;return e=cie.STABLE,t="MultiView",console.warn(e===cie.DEV?"Plot '".concat(t,"' is in DEV stage, just give us issues."):e===cie.BETA?"Plot '".concat(t,"' is in BETA stage, DO NOT use it in production env."):e===cie.STABLE?"Plot '".concat(t,"' is in STABLE stage, import it by \"import { ").concat(t," } from '@antv/g2plot'\"."):"invalid Stage type."),uie},enumerable:!1,configurable:!0})}();var die="first-axes-view",hie="second-axes-view",fie="series-field-key";function pie(e,t,n,i,r){var o=[];t.forEach((function(t){i.forEach((function(i){var r,a=((r={})[e]=i[e],r[n]=t,r[t]=i[t],r);o.push(a)}))}));var a=Object.values((0,wW.vM)(o,n)),s=a[0],l=void 0===s?[]:s,c=a[1],u=void 0===c?[]:c;return r?[l.reverse(),u.reverse()]:[l,u]}function gie(e){return"vertical"!==e}function vie(e,t,n){var i=t[0],r=t[1],o=i.autoPadding,a=r.autoPadding,s=e.__axisPosition,l=s.layout,c=s.position;if(gie(l)&&"top"===c&&(i.autoPadding=n.instance(o.top,0,o.bottom,o.left),r.autoPadding=n.instance(a.top,o.left,a.bottom,0)),gie(l)&&"bottom"===c&&(i.autoPadding=n.instance(o.top,o.right/2+5,o.bottom,o.left),r.autoPadding=n.instance(a.top,a.right,a.bottom,o.right/2+5)),!gie(l)&&"bottom"===c){var u=o.left>=a.left?o.left:a.left;i.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,u),r.autoPadding=n.instance(o.bottom/2+5,a.right,a.bottom,u)}if(!gie(l)&&"top"===c){u=o.left>=a.left?o.left:a.left;i.autoPadding=n.instance(o.top,o.right,0,u),r.autoPadding=n.instance(0,a.right,o.top,u)}}function mie(e){var t,n,i=e.chart,r=e.options,o=r.data,a=r.xField,s=r.yField,l=r.color,c=r.barStyle,u=r.widthRatio,d=r.legend,h=r.layout,f=pie(a,s,fie,o,gie(h));d?i.legend(fie,d):!1===d&&i.legend(!1);var p=f[0],g=f[1];return gie(h)?((t=i.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:die})).coordinate().transpose().reflect("x"),(n=i.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:hie})).coordinate().transpose(),t.data(p),n.data(g)):(t=i.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:die}),(n=i.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:hie})).coordinate().reflect("y"),t.data(p),n.data(g)),m9(p8({},e,{chart:t,options:{widthRatio:u,xField:a,yField:s[0],seriesField:fie,interval:{color:l,style:c}}})),m9(p8({},e,{chart:n,options:{xField:a,yField:s[1],seriesField:fie,widthRatio:u,interval:{color:l,style:c}}})),e}function yie(e){var t,n,i,r=e.options,o=e.chart,a=r.xAxis,s=r.yAxis,l=r.xField,c=r.yField,u=L8(o,die),d=L8(o,hie),h={};return(0,wW.XP)((null===r||void 0===r?void 0:r.meta)||{}).map((function(e){(0,wW.U2)(null===r||void 0===r?void 0:r.meta,[e,"alias"])&&(h[e]=r.meta[e].alias)})),o.scale(((t={})[fie]={sync:!0,formatter:function(e){return(0,wW.U2)(h,e,e)}},t)),i9(((n={})[l]=a,n[c[0]]=s[c[0]],n))(p8({},e,{chart:u})),i9(((i={})[l]=a,i[c[1]]=s[c[1]],i))(p8({},e,{chart:d})),e}function _ie(e){var t=e.chart,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField,s=n.layout,l=L8(t,die),c=L8(t,hie);return"bottom"===(null===i||void 0===i?void 0:i.position)?c.axis(o,(0,SW.pi)((0,SW.pi)({},i),{label:{formatter:function(){return""}}})):c.axis(o,!1),!1===i?l.axis(o,!1):l.axis(o,(0,SW.pi)({position:gie(s)?"top":"bottom"},i)),!1===r?(l.axis(a[0],!1),c.axis(a[1],!1)):(l.axis(a[0],r[a[0]]),c.axis(a[1],r[a[1]])),t.__axisPosition={position:l.getOptions().axes[o].position,layout:s},e}function bie(e){var t=e.chart;return X8(p8({},e,{chart:L8(t,die)})),X8(p8({},e,{chart:L8(t,hie)})),e}function Cie(e){var t=e.chart,n=e.options,i=n.yField,r=n.yAxis;return o9(p8({},e,{chart:L8(t,die),options:{yAxis:r[i[0]]}})),o9(p8({},e,{chart:L8(t,hie),options:{yAxis:r[i[1]]}})),e}function Sie(e){var t=e.chart;return J8(p8({},e,{chart:L8(t,die)})),J8(p8({},e,{chart:L8(t,hie)})),J8(e),e}function wie(e){var t=e.chart;return Q8(p8({},e,{chart:L8(t,die)})),Q8(p8({},e,{chart:L8(t,hie)})),e}function kie(e){var t,n,i=this,r=e.chart,o=e.options,a=o.label,s=o.yField,l=o.layout,c=L8(r,die),u=L8(r,hie),d=m8(c,"interval"),h=m8(u,"interval");if(a){var f=a.callback,p=(0,SW._T)(a,["callback"]);p.position||(p.position="middle"),void 0===p.offset&&(p.offset=2);var g=(0,SW.pi)({},p);if(gie(l)){var v=(null===(t=g.style)||void 0===t?void 0:t.textAlign)||("middle"===p.position?"center":"left");p.style=p8({},p.style,{textAlign:v});g.style=p8({},g.style,{textAlign:{left:"right",right:"left",center:"center"}[v]})}else{var m={top:"bottom",bottom:"top",middle:"middle"};"string"===typeof p.position?p.position=m[p.position]:"function"===typeof p.position&&(p.position=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return m[p.position.apply(i,e)]});var y=(null===(n=g.style)||void 0===n?void 0:n.textBaseline)||"bottom";g.style=p8({},g.style,{textBaseline:y});p.style=p8({},p.style,{textBaseline:{top:"bottom",bottom:"top",middle:"middle"}[y]})}d.label({fields:[s[0]],callback:f,cfg:b8(g)}),h.label({fields:[s[1]],callback:f,cfg:b8(p)})}else d.label(!1),h.label(!1);return e}function xie(e){return v8(mie,yie,_ie,Cie,Sie,kie,$8,bie,wie)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bidirectional-bar",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return p8({},e.getDefaultOptions.call(this),{syncViewPadding:vie})},t.prototype.changeData=function(e){void 0===e&&(e=[]),this.chart.emit(kW.BEFORE_CHANGE_DATA,YQ.fromData(this.chart,kW.BEFORE_CHANGE_DATA,null)),this.updateOption({data:e});var t=this.options,n=t.xField,i=t.yField,r=t.layout,o=pie(n,i,fie,e,gie(r)),a=o[0],s=o[1],l=L8(this.chart,die),c=L8(this.chart,hie);l.data(a),c.data(s),this.chart.render(!0),this.chart.emit(kW.AFTER_CHANGE_DATA,YQ.fromData(this.chart,kW.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return xie},t.SERIES_FIELD_KEY=fie}(x9);var Eie,Tie="$$range$$",Nie="outliers_view",Iie=p8({},x9.getDefaultOptions(),{meta:(Eie={},Eie.$$range$$={min:0,alias:"low-q1-median-q3-high"},Eie),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}}),Die=function(e,t){var n=e;if(Array.isArray(t)){var i=t[0],r=t[1],o=t[2],a=t[3],s=t[4];n=(0,wW.UI)(e,(function(e){return e.$$range$$=[e[i],e[r],e[o],e[a],e[s]],e}))}return n};function Lie(e){var t=e.chart,n=e.options,i=n.xField,r=n.yField,o=n.groupField,a=n.color,s=n.tooltip,l=n.boxStyle;t.data(Die(n.data,r));var c=(0,wW.kJ)(r)?Tie:r,u=r?(0,wW.kJ)(r)?r:[r]:[],d=s;!1!==d&&(d=p8({},{fields:(0,wW.kJ)(r)?r:[]},d));var h=C9(p8({},e,{options:{xField:i,yField:c,seriesField:o,tooltip:d,rawFields:u,label:!1,schema:{shape:"box",color:a,style:l}}})).ext;return o&&h.geometry.adjust("dodge"),e}function Oie(e){var t=e.chart,n=e.options,i=n.xField,r=n.data,o=n.outliersField,a=n.outliersStyle,s=n.padding,l=n.label;if(!o)return e;var c=t.createView({padding:s,id:Nie}),u=r.reduce((function(e,t){return t[o].forEach((function(n){var i;return e.push((0,SW.pi)((0,SW.pi)({},t),((i={})[o]=n,i)))})),e}),[]);return c.data(u),_9({chart:c,options:{xField:i,yField:o,point:{shape:"circle",style:a},label:l}}),c.axis(!1),e}function Rie(e){var t,n,i=e.chart,r=e.options,o=r.meta,a=r.xAxis,s=r.yAxis,l=r.xField,c=r.yField,u=r.outliersField,d=Array.isArray(c)?Tie:c,h={};if(u){var f="$$y_outliers$$";(t={})[u]={sync:f,nice:!0},t[d]={sync:f,nice:!0},h=t}var p=p8(h,o,((n={})[l]=r8(a,e8),n[d]=r8(s,e8),n));return i.scale(p),e}function Aie(e){var t=e.chart,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField,s=Array.isArray(a)?Tie:a;return!1===i?t.axis(o,!1):t.axis(o,i),!1===r?t.axis(Tie,!1):t.axis(s,r),e}function Mie(e){var t=e.chart,n=e.options,i=n.legend,r=n.groupField;return r?i?t.legend(r,i):t.legend(r,{position:"bottom"}):t.legend(!1),e}function Pie(e){return v8(Lie,Oie,Rie,Aie,Mie,$8,r9(),X8,Q8,J8)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="box",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Iie},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options.yField,n=this.chart.views.find((function(e){return e.id===Nie}));n&&n.data(e),this.chart.changeData(Die(e,t))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Pie}}(x9);function Zie(e,t,n){return e.length>1?"".concat(t,"_").concat(n):"".concat(t)}function Fie(e){var t=e.data,n=e.xField,i=e.measureField,r=e.rangeField,o=e.targetField,a=e.layout,s=[],l=[];t.forEach((function(e,t){var a=[e[r]].flat();a.sort((function(e,t){return e-t})),a.forEach((function(i,o){var l,c=0===o?i:a[o]-a[o-1];s.push(((l={rKey:"".concat(r,"_").concat(o)})[n]=n?e[n]:String(t),l[r]=c,l))}));var c=[e[i]].flat();c.forEach((function(r,o){var a;s.push(((a={mKey:Zie(c,i,o)})[n]=n?e[n]:String(t),a[i]=r,a))}));var u=[e[o]].flat();u.forEach((function(i,r){var a;s.push(((a={tKey:Zie(u,o,r)})[n]=n?e[n]:String(t),a[o]=i,a))})),l.push(e[r],e[i],e[o])}));var c=Math.min.apply(Math,l.flat(1/0)),u=Math.max.apply(Math,l.flat(1/0));return c=c>0?0:c,"vertical"===a&&s.reverse(),{min:c,max:u,ds:s}}function Bie(e){var t=e.chart,n=e.options,i=n.bulletStyle,r=n.targetField,o=n.rangeField,a=n.measureField,s=n.xField,l=n.color,c=n.layout,u=n.size,d=n.label,h=Fie(n),f=h.min,p=h.max,g=h.ds;t.data(g),m9(p8({},e,{options:{xField:s,yField:o,seriesField:"rKey",isStack:!0,label:(0,wW.U2)(d,"range"),interval:{color:(0,wW.U2)(l,"range"),style:(0,wW.U2)(i,"range"),size:(0,wW.U2)(u,"range")}}})),t.geometries[0].tooltip(!1),m9(p8({},e,{options:{xField:s,yField:a,seriesField:"mKey",isStack:!0,label:(0,wW.U2)(d,"measure"),interval:{color:(0,wW.U2)(l,"measure"),style:(0,wW.U2)(i,"measure"),size:(0,wW.U2)(u,"measure")}}}));var v=p8({},e,{options:{xField:s,yField:r,seriesField:"tKey",label:(0,wW.U2)(d,"target"),point:{color:(0,wW.U2)(l,"target"),style:(0,wW.U2)(i,"target"),size:(0,wW.mf)((0,wW.U2)(u,"target"))?function(e){return(0,wW.U2)(u,"target")(e)/2}:(0,wW.U2)(u,"target")/2,shape:"horizontal"===c?"line":"hyphen"}}});return _9(v),"horizontal"===c&&t.coordinate().transpose(),(0,SW.pi)((0,SW.pi)({},e),{ext:{data:{min:f,max:p}}})}function Hie(e){var t,n,i=e.options,r=e.ext,o=i.xAxis,a=i.yAxis,s=i.targetField,l=i.rangeField,c=i.measureField,u=i.xField,d=r.data;return v8(i9(((t={})[u]=o,t[c]=a,t),((n={})[c]={min:null===d||void 0===d?void 0:d.min,max:null===d||void 0===d?void 0:d.max,sync:!0},n[s]={sync:"".concat(c)},n[l]={sync:"".concat(c)},n)))(e)}function zie(e){var t=e.chart,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.measureField,s=n.rangeField,l=n.targetField;return t.axis("".concat(s),!1),t.axis("".concat(l),!1),!1===i?t.axis("".concat(o),!1):t.axis("".concat(o),i),!1===r?t.axis("".concat(a),!1):t.axis("".concat(a),r),e}function jie(e){var t=e.chart,n=e.options.legend;return t.removeInteraction("legend-filter"),t.legend(n),t.legend("rKey",!1),t.legend("mKey",!1),t.legend("tKey",!1),e}function Vie(e){var t=e.chart,n=e.options,i=n.label,r=n.measureField,o=n.targetField,a=n.rangeField,s=t.geometries,l=s[0],c=s[1],u=s[2];return(0,wW.U2)(i,"range")?l.label("".concat(a),(0,SW.pi)({layout:[{type:"limit-in-plot"}]},b8(i.range))):l.label(!1),(0,wW.U2)(i,"measure")?c.label("".concat(r),(0,SW.pi)({layout:[{type:"limit-in-plot"}]},b8(i.measure))):c.label(!1),(0,wW.U2)(i,"target")?u.label("".concat(o),(0,SW.pi)({layout:[{type:"limit-in-plot"}]},b8(i.target))):u.label(!1),e}function Wie(e){v8(Bie,Hie,zie,jie,J8,Vie,$8,X8,Q8)(e)}var Uie=p8({},x9.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),Gie=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bullet",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Uie},t.prototype.changeData=function(e){this.updateOption({data:e});var t=Fie(this.options),n=t.min,i=t.max,r=t.ds;Hie({options:this.options,ext:{data:{min:n,max:i}},chart:this.chart}),this.chart.changeData(r)},t.prototype.getSchemaAdaptor=function(){return Wie},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()}}(x9),{y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null});function Kie(e,t){var n=function(e){return(0,wW.f0)({},Gie,e)}(e),i={},r=t.nodes,o=t.links;r.forEach((function(e){var t=n.id(e);i[t]=e})),function(e,t,n){(0,wW.U5)(e,(function(e,i){e.inEdges=t.filter((function(e){return"".concat(n.target(e))==="".concat(i)})),e.outEdges=t.filter((function(e){return"".concat(n.source(e))==="".concat(i)})),e.edges=e.outEdges.concat(e.inEdges),e.frequency=e.edges.length,e.value=0,e.inEdges.forEach((function(t){e.value+=n.targetWeight(t)})),e.outEdges.forEach((function(t){e.value+=n.sourceWeight(t)}))}))}(i,o,n),function(e,t){var n={weight:function(e,t){return t.value-e.value},frequency:function(e,t){return t.frequency-e.frequency},id:function(e,n){return"".concat(t.id(e)).localeCompare("".concat(t.id(n)))}}[t.sortBy];!n&&(0,wW.mf)(t.sortBy)&&(n=t.sortBy),n&&e.sort(n)}(r,n);var a=function(e,t){var n=e.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(t.weight){var i=t.nodePaddingRatio;if(i<0||i>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var r=i/(2*n),o=t.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;e.forEach((function(e){a+=e.value})),e.forEach((function(e){e.weight=e.value/a,e.width=e.weight*(1-i),e.height=o})),e.forEach((function(n,i){for(var a=0,s=i-1;s>=0;s--)a+=e[s].width+2*r;var l=n.minX=r+a,c=n.maxX=n.minX+n.width,u=n.minY=t.y-o/2,d=n.maxY=u+o;n.x=[l,c,c,l],n.y=[u,u,d,d]}))}else{var s=1/n;e.forEach((function(e,n){e.x=(n+.5)*s,e.y=t.y}))}return e}(r,n),s=function(e,t,n){if(n.weight){var i={};(0,wW.U5)(e,(function(e,t){i[t]=e.value})),t.forEach((function(t){var r=n.source(t),o=n.target(t),a=e[r],s=e[o];if(a&&s){var l=i[r],c=n.sourceWeight(t),u=a.minX+(a.value-l)/a.value*a.width,d=u+c/a.value*a.width;i[r]-=c;var h=i[o],f=n.targetWeight(t),p=s.minX+(s.value-h)/s.value*s.width,g=p+f/s.value*s.width;i[o]-=f;var v=n.y;t.x=[u,d,p,g],t.y=[v,v,v,v],t.source=a,t.target=s}}))}else t.forEach((function(t){var i=e[n.source(t)],r=e[n.target(t)];i&&r&&(t.x=[i.x,r.x],t.y=[i.y,r.y],t.source=i,t.target=r)}));return t}(i,o,n);return{nodes:a,links:s}}var Yie="name",qie="source",$ie={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(e,t){return{offsetX:(e[0]+e[1])/2>.5?-4:4,content:t}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(e){return!(0,wW.U2)(e,[0,"data","isNode"])},formatter:function(e){var t=e.source,n=e.target,i=e.value;return{name:"".concat(t," -> ").concat(n),value:i}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function Xie(e){var t=e.options,n=t.data,i=t.sourceField,r=t.targetField,o=t.weightField,a=t.nodePaddingRatio,s=t.nodeWidthRatio,l=t.rawFields,c=void 0===l?[]:l,u=Kie({weight:!0,nodePaddingRatio:a,nodeWidthRatio:s},a8(n,i,r,o)),d=u.nodes,h=u.links,f=d.map((function(e){return(0,SW.pi)((0,SW.pi)({},r8(e,(0,SW.ev)(["id","x","y","name"],c,!0))),{isNode:!0})})),p=h.map((function(e){return(0,SW.pi)((0,SW.pi)({source:e.source.name,target:e.target.name,name:e.source.name||e.target.name},r8(e,(0,SW.ev)(["x","y","value"],c,!0))),{isNode:!1})}));return(0,SW.pi)((0,SW.pi)({},e),{ext:(0,SW.pi)((0,SW.pi)({},e.ext),{chordData:{nodesData:f,edgesData:p}})})}function Qie(e){var t;return e.chart.scale(((t={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}}).name={sync:"color"},t.source={sync:"color"},t)),e}function Jie(e){return e.chart.axis(!1),e}function ere(e){return e.chart.legend(!1),e}function tre(e){var t=e.chart,n=e.options.tooltip;return t.tooltip(n),e}function nre(e){return e.chart.coordinate("polar").reflect("y"),e}function ire(e){var t=e.chart,n=e.options,i=e.ext.chordData.nodesData,r=n.nodeStyle,o=n.label,a=n.tooltip,s=t.createView();return s.data(i),b9({chart:s,options:{xField:"x",yField:"y",seriesField:Yie,polygon:{style:r},label:o,tooltip:a}}),e}function rre(e){var t=e.chart,n=e.options,i=e.ext.chordData.edgesData,r=n.edgeStyle,o=n.tooltip,a=t.createView();return a.data(i),v9({chart:a,options:{xField:"x",yField:"y",seriesField:qie,edge:{style:r,shape:"arc"},tooltip:o}}),e}function ore(e){var t=e.chart;return A8(t,e.options.animation,function(e){return(0,wW.U2)(e,["views","length"],0)<=0?e.geometries:(0,wW.u4)(e.views,(function(e,t){return e.concat(t.geometries)}),e.geometries)}(t)),e}function are(e){return v8(J8,Xie,nre,Qie,Jie,ere,tre,rre,ire,X8,e9,ore)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="chord",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return $ie},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return are}}(x9);var sre=["x","y","r","name","value","path","depth"],lre={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},cre="drilldown-bread-crumb",ure={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},dre="hierarchy-data-transform-params",hre=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=ure,t}return(0,SW.ZT)(t,e),t.prototype.click=function(){var e=(0,wW.U2)(this.context,["event","data","data"]);if(!e)return!1;this.drill(e),this.drawBreadCrumb()},t.prototype.resetPosition=function(){if(this.breadCrumbGroup){var e=this.context.view.getCoordinate(),t=this.breadCrumbGroup,n=t.getBBox(),i=this.getButtonCfg().position,r={x:e.start.x,y:e.end.y-(n.height+10)};e.isPolar&&(r={x:0,y:0}),"bottom-left"===i&&(r={x:e.start.x,y:e.start.y});var o=u0.transform(null,[["t",r.x+0,r.y+n.height+5]]);t.setMatrix(o)}},t.prototype.back=function(){(0,wW.dp)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},t.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},t.prototype.drill=function(e){var t=this.context.view,n=(0,wW.U2)(t,["interactions","drill-down","cfg","transformData"],(function(e){return e})),i=n((0,SW.pi)({data:e.data},e[dre]));t.changeData(i);for(var r=[],o=e;o;){var a=o.data;r.unshift({id:"".concat(a.name,"_").concat(o.height,"_").concat(o.depth),name:a.name,children:n((0,SW.pi)({data:a},e[dre]))}),o=o.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(r)},t.prototype.backTo=function(e){if(e&&!(e.length<=0)){var t=this.context.view,n=(0,wW.Z$)(e).children;t.changeData(n),e.length>1?(this.historyCache=e,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},t.prototype.getButtonCfg=function(){var e=this.context.view,t=(0,wW.U2)(e,["interactions","drill-down","cfg","drillDownConfig"]);return p8(this.breadCrumbCfg,null===t||void 0===t?void 0:t.breadCrumb,this.cfg)},t.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},t.prototype.drawBreadCrumbGroup=function(){var e=this,t=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:cre});var i=0;n.forEach((function(r,o){var a=e.breadCrumbGroup.addShape({type:"text",id:r.id,name:"".concat(cre,"_").concat(r.name,"_text"),attrs:(0,SW.pi)((0,SW.pi)({text:0!==o||(0,wW.UM)(t.rootText)?r.name:t.rootText},t.textStyle),{x:i,y:0})}),s=a.getBBox();if(i+=s.width+4,a.on("click",(function(t){var i,r=t.target.get("id");if(r!==(null===(i=(0,wW.Z$)(n))||void 0===i?void 0:i.id)){var o=n.slice(0,n.findIndex((function(e){return e.id===r}))+1);e.backTo(o)}})),a.on("mouseenter",(function(e){var i;e.target.get("id")!==(null===(i=(0,wW.Z$)(n))||void 0===i?void 0:i.id)?a.attr(t.activeTextStyle):a.attr({cursor:"default"})})),a.on("mouseleave",(function(){a.attr(t.textStyle)})),o<n.length-1){var l=e.breadCrumbGroup.addShape({type:"text",name:"".concat(t.name,"_").concat(r.name,"_divider"),attrs:(0,SW.pi)((0,SW.pi)({text:t.dividerText},t.textStyle),{x:i,y:0})}).getBBox();i+=l.width+4}}))},t.prototype.hideCrumbGroup=function(){this.breadCrumbGroup&&this.breadCrumbGroup.hide()},t.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),e.prototype.destroy.call(this)},t}(aX);function fre(e){for(var t,n,i=0,r=(e=function(e){for(var t,n,i=e.length;i;)n=Math.random()*i--|0,t=e[i],e[i]=e[n],e[n]=t;return e}(Array.from(e))).length,o=[];i<r;)t=e[i],n&&vre(n,t)?++i:(n=yre(o=pre(o,t)),i=0);return n}function pre(e,t){var n,i;if(mre(t,e))return[t];for(n=0;n<e.length;++n)if(gre(t,e[n])&&mre(_re(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(i=n+1;i<e.length;++i)if(gre(_re(e[n],e[i]),t)&&gre(_re(e[n],t),e[i])&&gre(_re(e[i],t),e[n])&&mre(bre(e[n],e[i],t),e))return[e[n],e[i],t];throw new Error}function gre(e,t){var n=e.r-t.r,i=t.x-e.x,r=t.y-e.y;return n<0||n*n<i*i+r*r}function vre(e,t){var n=e.r-t.r+1e-9*Math.max(e.r,t.r,1),i=t.x-e.x,r=t.y-e.y;return n>0&&n*n>i*i+r*r}function mre(e,t){for(var n=0;n<t.length;++n)if(!vre(e,t[n]))return!1;return!0}function yre(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return _re(e[0],e[1]);case 3:return bre(e[0],e[1],e[2])}var t}function _re(e,t){var n=e.x,i=e.y,r=e.r,o=t.x,a=t.y,s=t.r,l=o-n,c=a-i,u=s-r,d=Math.sqrt(l*l+c*c);return{x:(n+o+l/d*u)/2,y:(i+a+c/d*u)/2,r:(d+r+s)/2}}function bre(e,t,n){var i=e.x,r=e.y,o=e.r,a=t.x,s=t.y,l=t.r,c=n.x,u=n.y,d=n.r,h=i-a,f=i-c,p=r-s,g=r-u,v=l-o,m=d-o,y=i*i+r*r-o*o,_=y-a*a-s*s+l*l,b=y-c*c-u*u+d*d,C=f*p-h*g,S=(p*b-g*_)/(2*C)-i,w=(g*v-p*m)/C,k=(f*_-h*b)/(2*C)-r,x=(h*m-f*v)/C,E=w*w+x*x-1,T=2*(o+S*w+k*x),N=S*S+k*k-o*o,I=-(E?(T+Math.sqrt(T*T-4*E*N))/(2*E):N/T);return{x:i+S+w*I,y:r+k+x*I,r:I}}function Cre(e,t,n){var i,r,o,a,s=e.x-t.x,l=e.y-t.y,c=s*s+l*l;c?(r=t.r+n.r,r*=r,a=e.r+n.r,r>(a*=a)?(i=(c+a-r)/(2*c),o=Math.sqrt(Math.max(0,a/c-i*i)),n.x=e.x-i*s-o*l,n.y=e.y-i*l+o*s):(i=(c+r-a)/(2*c),o=Math.sqrt(Math.max(0,r/c-i*i)),n.x=t.x+i*s-o*l,n.y=t.y+i*l+o*s)):(n.x=t.x+n.r,n.y=t.y)}function Sre(e,t){var n=e.r+t.r-1e-6,i=t.x-e.x,r=t.y-e.y;return n>0&&n*n>i*i+r*r}function wre(e){var t=e._,n=e.next._,i=t.r+n.r,r=(t.x*n.r+n.x*t.r)/i,o=(t.y*n.r+n.y*t.r)/i;return r*r+o*o}function kre(e){this._=e,this.next=null,this.previous=null}function xre(e){if(!(o=(t=e,e="object"===typeof t&&"length"in t?t:Array.from(t)).length))return 0;var t,n,i,r,o,a,s,l,c,u,d,h;if((n=e[0]).x=0,n.y=0,!(o>1))return n.r;if(i=e[1],n.x=-i.r,i.x=n.r,i.y=0,!(o>2))return n.r+i.r;Cre(i,n,r=e[2]),n=new kre(n),i=new kre(i),r=new kre(r),n.next=r.previous=i,i.next=n.previous=r,r.next=i.previous=n;e:for(l=3;l<o;++l){Cre(n._,i._,r=e[l]),r=new kre(r),c=i.next,u=n.previous,d=i._.r,h=n._.r;do{if(d<=h){if(Sre(c._,r._)){i=c,n.next=i,i.previous=n,--l;continue e}d+=c._.r,c=c.next}else{if(Sre(u._,r._)){(n=u).next=i,i.previous=n,--l;continue e}h+=u._.r,u=u.previous}}while(c!==u.next);for(r.previous=n,r.next=i,n.next=i.previous=i=r,a=wre(n);(r=r.next)!==i;)(s=wre(r))<a&&(n=r,a=s);i=n.next}for(n=[i._],r=i;(r=r.next)!==i;)n.push(r._);for(r=fre(n),l=0;l<o;++l)(n=e[l]).x-=r.x,n.y-=r.y;return r.r}function Ere(e){return xre(e),e}function Tre(e){return null==e?null:Nre(e)}function Nre(e){if("function"!==typeof e)throw new Error;return e}function Ire(){return 0}function Dre(e){return function(){return e}}function Lre(e){return Math.sqrt(e.value)}function Ore(){var e=null,t=1,n=1,i=Ire;function r(r){return r.x=t/2,r.y=n/2,e?r.eachBefore(Rre(e)).eachAfter(Are(i,.5)).eachBefore(Mre(1)):r.eachBefore(Rre(Lre)).eachAfter(Are(Ire,1)).eachAfter(Are(i,r.r/Math.min(t,n))).eachBefore(Mre(Math.min(t,n)/(2*r.r))),r}return r.radius=function(t){return arguments.length?(e=Tre(t),r):e},r.size=function(e){return arguments.length?(t=+e[0],n=+e[1],r):[t,n]},r.padding=function(e){return arguments.length?(i="function"===typeof e?e:Dre(+e),r):i},r}function Rre(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Are(e,t){return function(n){if(i=n.children){var i,r,o,a=i.length,s=e(n)*t||0;if(s)for(r=0;r<a;++r)i[r].r+=s;if(o=xre(i),s)for(r=0;r<a;++r)i[r].r-=s;n.r=o+s}}}function Mre(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function Pre(e){var t=0,n=e.children,i=n&&n.length;if(i)for(;--i>=0;)t+=n[i].value;else t=1;e.value=t}var Zre=(0,E.Z)().mark(Fre);function Fre(){var e,t,n,i,r,o;return(0,E.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:n=[e=this];case 1:t=n.reverse(),n=[];case 2:if(!(e=t.pop())){a.next=8;break}return a.next=5,e;case 5:if(i=e.children)for(r=0,o=i.length;r<o;++r)n.push(i[r]);a.next=2;break;case 8:if(n.length){a.next=1;break}case 9:case"end":return a.stop()}}),Zre,this)}function Bre(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=zre)):void 0===t&&(t=Hre);for(var n,i,r,o,a,s=new Wre(e),l=[s];n=l.pop();)if((r=t(n.data))&&(a=(r=Array.from(r)).length))for(n.children=r,o=a-1;o>=0;--o)l.push(i=r[o]=new Wre(r[o])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(Vre)}function Hre(e){return e.children}function zre(e){return Array.isArray(e)?e[1]:null}function jre(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Vre(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Wre(e){this.data=e,this.depth=this.height=0,this.parent=null}Wre.prototype=Bre.prototype=(0,N.Z)({constructor:Wre,count:function(){return this.eachAfter(Pre)},each:function(e,t){var n,i=-1,r=(0,x.Z)(this);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.call(t,o,++i,this)}}catch(a){r.e(a)}finally{r.f()}return this},eachAfter:function(e,t){for(var n,i,r,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(i=0,r=n.length;i<r;++i)a.push(n[i]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,i,r=this,o=[r],a=-1;r=o.pop();)if(e.call(t,r,++a,this),n=r.children)for(i=n.length-1;i>=0;--i)o.push(n[i]);return this},find:function(e,t){var n,i=-1,r=(0,x.Z)(this);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(e.call(t,o,++i,this))return o}}catch(a){r.e(a)}finally{r.f()}},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,i=t.children,r=i&&i.length;--r>=0;)n+=i[r].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),r=null;e=n.pop(),t=i.pop();for(;e===t;)r=e,e=n.pop(),t=i.pop();return r}(t,e),i=[t];t!==n;)t=t.parent,i.push(t);for(var r=i.length;e!==n;)i.splice(r,0,e),e=e.parent;return i},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Bre(this).eachBefore(jre)}},Symbol.iterator,Fre);var Ure="nodeIndex",Gre="childNodeCount",Kre="nodeAncestor",Yre="Invalid field: it must be a string!";function qre(e,t){var n=e.field,i=e.fields;if((0,wW.HD)(n))return n;if((0,wW.kJ)(n))return console.warn(Yre),n[0];if(console.warn("".concat(Yre," will try to get fields instead.")),(0,wW.HD)(i))return i;if((0,wW.kJ)(i)&&i.length)return i[0];if(t)return t;throw new TypeError(Yre)}function $re(e){var t,n,i=[];e&&e.each?e.each((function(e){var r,o;e.parent!==t?(t=e.parent,n=0):n+=1;var a=(0,wW.hX)(((null===(r=e.ancestors)||void 0===r?void 0:r.call(e))||[]).map((function(e){return i.find((function(t){return t.name===e.name}))||e})),(function(t){var n=t.depth;return n>0&&n<e.depth}));e.nodeAncestor=a,e.childNodeCount=(null===(o=e.children)||void 0===o?void 0:o.length)||0,e.nodeIndex=n,i.push(e)})):e&&e.eachNode&&e.eachNode((function(e){i.push(e)}));return i}var Xre={field:"value",as:["x","y","r"],sort:function(e,t){return t.value-e.value}};function Qre(e){var t=e.data,n=e.hierarchyConfig,i=e.rawFields,r=void 0===i?[]:i,o=e.enableDrillDown,a=function(e,t){var n,i=(t=(0,wW.f0)({},Xre,t)).as;if(!(0,wW.kJ)(i)||3!==i.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=qre(t)}catch(Fc){console.warn(Fc)}var r=function(e){return Ore().size(t.size).padding(t.padding)(Bre(e).sum((function(e){return e[n]})).sort(t.sort))}(e),o=i[0],a=i[1],s=i[2];return r.each((function(e){e[o]=e.x,e[a]=e.y,e[s]=e.r})),$re(r)}(t,(0,SW.pi)((0,SW.pi)({},n),{field:"value",as:["x","y","r"]})),s=[];return a.forEach((function(e){for(var t,i=e.data.name,a=(0,SW.pi)({},e);a.depth>1;)i="".concat(null===(t=a.parent.data)||void 0===t?void 0:t.name," / ").concat(i),a=a.parent;if(o&&e.depth>2)return null;var l=p8({},e.data,(0,SW.pi)((0,SW.pi)((0,SW.pi)({},r8(e.data,r)),{path:i}),e));l.ext=n,l[dre]={hierarchyConfig:n,rawFields:r,enableDrillDown:o},s.push(l)})),s}function Jre(e,t,n){var i=k8([e,t]),r=i[0],o=i[1],a=i[2],s=i[3],l=n.width-(s+o),c=n.height-(r+a),u=Math.min(l,c),d=(l-u)/2,h=(c-u)/2;return{finalPadding:[r+h,o+d,a+h,s+d],finalSize:u<0?0:u}}function eoe(e){var t=e.chart,n=Math.min(t.viewBBox.width,t.viewBBox.height);return p8({options:{size:function(e){return e.r*n}}},e)}function toe(e){var t=e.options,n=e.chart,i=n.viewBBox,r=t.padding,o=t.appendPadding,a=t.drilldown,s=o;(null===a||void 0===a?void 0:a.enabled)&&(s=k8([w8(n.appendPadding,(0,wW.U2)(a,["breadCrumb","position"])),o]));var l=Jre(r,s,i).finalPadding;return n.padding=l,n.appendPadding=0,e}function noe(e){var t=e.chart,n=e.options,i=t.padding,r=t.appendPadding,o=n.color,a=n.colorField,s=n.pointStyle,l=n.hierarchyConfig,c=n.sizeField,u=n.rawFields,d=void 0===u?[]:u,h=n.drilldown,f=Qre({data:n.data,hierarchyConfig:l,enableDrillDown:null===h||void 0===h?void 0:h.enabled,rawFields:d});t.data(f);var p=Jre(i,r,t.viewBBox).finalSize,g=function(e){return e.r*p};return c&&(g=function(e){return e[c]*p}),_9(p8({},e,{options:{xField:"x",yField:"y",seriesField:a,sizeField:c,rawFields:(0,SW.ev)((0,SW.ev)([],sre,!0),d,!0),point:{color:o,style:s,shape:"circle",size:g}}})),e}function ioe(e){return v8(i9({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(e)}function roe(e){var t=e.chart,n=e.options.tooltip;if(!1===n)t.tooltip(!1);else{var i=n;(0,wW.U2)(n,"fields")||(i=p8({},{customItems:function(e){return e.map((function(e){var n=(0,wW.U2)(t.getOptions(),"scales"),i=(0,wW.U2)(n,["name","formatter"],(function(e){return e})),r=(0,wW.U2)(n,["value","formatter"],(function(e){return e}));return(0,SW.pi)((0,SW.pi)({},e),{name:i(e.data.name),value:r(e.data.value)})}))}},i)),t.tooltip(i)}return e}function ooe(e){return e.chart.axis(!1),e}function aoe(e){var t=e.drilldown,n=e.interactions,i=void 0===n?[]:n;return(null===t||void 0===t?void 0:t.enabled)?p8({},e,{interactions:(0,SW.ev)((0,SW.ev)([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:Qre,enableDrillDown:!0}}],!1)}):e}function soe(e){return X8({chart:e.chart,options:aoe(e.options)}),e}function loe(e){return v8(Y8("pointStyle"),eoe,toe,J8,ioe,noe,ooe,q8,roe,soe,Q8,r9())(e)}function coe(e){var t=(0,wW.U2)(e,["event","data","data"],{});return(0,wW.kJ)(t.children)&&t.children.length>0}function uoe(e){var t=e.view.getCoordinate(),n=t.innerRadius;if(n){var i=e.event,r=i.x,o=i.y,a=t.center,s=a.x,l=a.y,c=t.getRadius()*n;return Math.sqrt(Math.pow(s-r,2)+Math.pow(l-o,2))<c}return!1}dX("drill-down-action",hre),gQ("drill-down",{showEnable:[{trigger:"element:mouseenter",action:"cursor:pointer",isEnable:coe},{trigger:"element:mouseleave",action:"cursor:default"},{trigger:"element:mouseleave",action:"cursor:pointer",isEnable:uoe}],start:[{trigger:"element:click",isEnable:coe,action:["drill-down-action:click"]},{trigger:"afterchangesize",action:["drill-down-action:resetPosition"]},{trigger:"click",isEnable:uoe,action:["drill-down-action:back"]}]});!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="circle-packing",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return lre},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return loe},t.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(x9);var doe,hoe,foe="left-axes-view",poe="right-axes-view",goe={nice:!0,label:{autoHide:!0,autoRotate:!1}},voe=(0,SW.pi)((0,SW.pi)({},goe),{position:"left"}),moe=(0,SW.pi)((0,SW.pi)({},goe),{position:"right",grid:null});function yoe(e){return(0,wW.U2)(e,"geometry")===hoe.Line}function _oe(e){return(0,wW.U2)(e,"geometry")===hoe.Column}function boe(e,t,n){return _oe(n)?p8({},{geometry:hoe.Column,label:n.label&&n.isRange?{content:function(e){var n;return null===(n=e[t])||void 0===n?void 0:n.join("-")}}:void 0},n):(0,SW.pi)({geometry:hoe.Line},n)}function Coe(e,t){var n=e[0],i=e[1];return(0,wW.kJ)(t)?[t[0],t[1]]:[(0,wW.U2)(t,n),(0,wW.U2)(t,i)]}function Soe(e,t){return t===doe.Left?!1!==e&&p8({},voe,e):t===doe.Right?!1!==e&&p8({},moe,e):e}function woe(e){var t=e.view,n=e.geometryOption,i=e.yField,r=e.legend,o=(0,wW.U2)(r,"marker"),a=m8(t,yoe(n)?"line":"interval");if(!n.seriesField){var s=(0,wW.U2)(t,"options.scales.".concat(i,".alias"))||i,l=a.getAttribute("color"),c=t.getTheme().defaultColor;l&&(c=u0.getMappingValue(l,s,(0,wW.U2)(l,["values",0],c)));var u=((0,wW.mf)(o)?o:!(0,wW.xb)(o)&&p8({},{style:{stroke:c,fill:c}},o))||(yoe(n)?{symbol:function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},style:{lineWidth:2,r:6,stroke:c}}:{symbol:"square",style:{fill:c}});return[{value:i,name:s,marker:u,isGeometry:!0,viewId:t.id}]}var d=a.getGroupAttributes();return(0,wW.u4)(d,(function(e,n){var i=u0.getLegendItems(t,a,n,t.getTheme(),o);return e.concat(i)}),[])}!function(e){e.Left="Left",e.Right="Right"}(doe||(doe={})),function(e){e.Line="line",e.Column="column"}(hoe||(hoe={}));var koe=function(e,t){var n=t[0],i=t[1],r=e.getOptions().data,o=e.getXScale(),a=(0,wW.dp)(r);if(o&&a){var s=(0,wW.I)(r,o.field),l=s,c=(0,wW.dp)(l),u=Math.floor(n*(c-1)),d=Math.floor(i*(c-1));e.filter(o.field,(function(e){var t=l.indexOf(e);return!(t>-1)||function(e,t,n){var i=Math.min(t,n),r=Math.max(t,n);return e>=i&&e<=r}(t,u,d)})),e.getRootView().render(!0)}};function xoe(e){var t,n=e.options,i=n.geometryOptions,r=void 0===i?[]:i,o=n.xField,a=n.yField,s=(0,wW.yW)(r,(function(e){var t=e.geometry;return t===hoe.Line||void 0===t}));return p8({},{options:{geometryOptions:[],meta:(t={},t[o]={type:"cat",sync:!0,range:s?[0,1]:void 0},t),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:Coe(a,n.yAxis),geometryOptions:[boe(0,a[0],r[0]),boe(0,a[1],r[1])],annotations:Coe(a,n.annotations)}})}function Eoe(e){var t,n,i=e.chart,r=e.options.geometryOptions,o={line:0,column:1};return[{type:null===(t=r[0])||void 0===t?void 0:t.geometry,id:foe},{type:null===(n=r[1])||void 0===n?void 0:n.geometry,id:poe}].sort((function(e,t){return-o[e.type]+o[t.type]})).forEach((function(e){return i.createView({id:e.id})})),e}function Toe(e){var t=e.chart,n=e.options,i=n.xField,r=n.yField,o=n.geometryOptions,a=n.data,s=n.tooltip;return[(0,SW.pi)((0,SW.pi)({},o[0]),{id:foe,data:a[0],yField:r[0]}),(0,SW.pi)((0,SW.pi)({},o[1]),{id:poe,data:a[1],yField:r[1]})].forEach((function(e){var n=e.id,r=e.data,o=e.yField,a=_oe(e)&&e.isPercent,l=a?E9(r,o,i,o):r,c=L8(t,n).data(l),u=a?(0,SW.pi)({formatter:function(t){return{name:t[e.seriesField]||o,value:(100*Number(t[o])).toFixed(2)+"%"}}},s):s;!function(e){var t=e.options,n=e.chart,i=t.geometryOption,r=i.isStack,o=i.color,a=i.seriesField,s=i.groupField,l=i.isGroup,c=["xField","yField"];if(yoe(i)){y9(p8({},e,{options:(0,SW.pi)((0,SW.pi)((0,SW.pi)({},r8(t,c)),i),{line:{color:i.color,style:i.lineStyle}})})),_9(p8({},e,{options:(0,SW.pi)((0,SW.pi)((0,SW.pi)({},r8(t,c)),i),{point:i.point&&(0,SW.pi)({color:o,shape:"circle"},i.point)})}));var u=[];l&&u.push({type:"dodge",dodgeBy:s||a,customOffset:0}),r&&u.push({type:"stack"}),u.length&&(0,wW.S6)(n.geometries,(function(e){e.adjust(u)}))}_oe(i)&&see(p8({},e,{options:(0,SW.pi)((0,SW.pi)((0,SW.pi)({},r8(t,c)),i),{widthRatio:i.columnWidthRatio,interval:(0,SW.pi)((0,SW.pi)({},r8(i,["color"])),{style:i.columnStyle})})}))}({chart:c,options:{xField:i,yField:o,tooltip:u,geometryOption:e}})})),e}function Noe(e){var t,n=e.chart,i=e.options.geometryOptions,r=(null===(t=n.getTheme())||void 0===t?void 0:t.colors10)||[],o=0;return n.once("beforepaint",(function(){(0,wW.S6)(i,(function(e,t){var i=L8(n,0===t?foe:poe);if(!e.color){var a=i.getGroupScales(),s=(0,wW.U2)(a,[0,"values","length"],1),l=r.slice(o,o+s).concat(0===t?[]:r);i.geometries.forEach((function(t){e.seriesField?t.color(e.seriesField,l):t.color(l[0])})),o+=s}})),n.render(!0)})),e}function Ioe(e){var t,n,i=e.chart,r=e.options,o=r.xAxis,a=r.yAxis,s=r.xField,l=r.yField;return i9(((t={})[s]=o,t[l[0]]=a[0],t))(p8({},e,{chart:L8(i,foe)})),i9(((n={})[s]=o,n[l[1]]=a[1],n))(p8({},e,{chart:L8(i,poe)})),e}function Doe(e){var t=e.chart,n=e.options,i=L8(t,foe),r=L8(t,poe),o=n.xField,a=n.yField,s=n.xAxis,l=n.yAxis;return t.axis(o,!1),t.axis(a[0],!1),t.axis(a[1],!1),i.axis(o,s),i.axis(a[0],Soe(l[0],doe.Left)),r.axis(o,!1),r.axis(a[1],Soe(l[1],doe.Right)),e}function Loe(e){var t=e.chart,n=e.options.tooltip,i=L8(t,foe),r=L8(t,poe);return t.tooltip(n),i.tooltip({shared:!0}),r.tooltip({shared:!0}),e}function Ooe(e){var t=e.chart;return X8(p8({},e,{chart:L8(t,foe)})),X8(p8({},e,{chart:L8(t,poe)})),e}function Roe(e){var t=e.chart,n=e.options.annotations,i=(0,wW.U2)(n,[0]),r=(0,wW.U2)(n,[1]);return r9(i)(p8({},e,{chart:L8(t,foe),options:{annotations:i}})),r9(r)(p8({},e,{chart:L8(t,poe),options:{annotations:r}})),e}function Aoe(e){var t=e.chart;return J8(p8({},e,{chart:L8(t,foe)})),J8(p8({},e,{chart:L8(t,poe)})),J8(e),e}function Moe(e){var t=e.chart;return Q8(p8({},e,{chart:L8(t,foe)})),Q8(p8({},e,{chart:L8(t,poe)})),e}function Poe(e){var t=e.chart,n=e.options.yAxis;return o9(p8({},e,{chart:L8(t,foe),options:{yAxis:n[0]}})),o9(p8({},e,{chart:L8(t,poe),options:{yAxis:n[1]}})),e}function Zoe(e){var t=e.chart,n=e.options,i=n.legend,r=n.geometryOptions,o=n.yField,a=n.data,s=L8(t,foe),l=L8(t,poe);if(!1===i)t.legend(!1);else if((0,wW.Kn)(i)&&!0===i.custom)t.legend(i);else{var c=(0,wW.U2)(r,[0,"legend"],i),u=(0,wW.U2)(r,[1,"legend"],i);t.once("beforepaint",(function(){var e=a[0].length?woe({view:s,geometryOption:r[0],yField:o[0],legend:c}):[],n=a[1].length?woe({view:l,geometryOption:r[1],yField:o[1],legend:u}):[];t.legend(p8({},i,{custom:!0,items:e.concat(n)}))})),r[0].seriesField&&s.legend(r[0].seriesField,c),r[1].seriesField&&l.legend(r[1].seriesField,u),t.on("legend-item:click",(function(e){var n=(0,wW.U2)(e,"gEvent.delegateObject",{});if(n&&n.item){var i=n.item,r=i.value,a=i.isGeometry,s=i.viewId;if(a){if((0,wW.cx)(o,(function(e){return e===r}))>-1){var l=(0,wW.U2)(L8(t,s),"geometries");(0,wW.S6)(l,(function(e){e.changeVisible(!n.item.unchecked)}))}}else{var c=(0,wW.U2)(t.getController("legend"),"option.items",[]);(0,wW.S6)(t.views,(function(e){var n=e.getGroupScales();(0,wW.S6)(n,(function(t){t.values&&t.values.indexOf(r)>-1&&e.filter(t.field,(function(e){return!(0,wW.sE)(c,(function(t){return t.value===e})).unchecked}))})),t.render(!0)}))}}}))}return e}function Foe(e){var t=e.chart,n=e.options.slider,i=L8(t,foe),r=L8(t,poe);return n&&(i.option("slider",n),i.on("slider:valuechanged",(function(e){var t=e.event,n=t.value,i=t.originValue;(0,wW.Xy)(n,i)||koe(r,n)})),t.once("afterpaint",(function(){if(!(0,wW.jn)(n)){var e=n.start,t=n.end;(e||t)&&koe(r,[e,t])}}))),e}function Boe(e){return v8(xoe,Eoe,Aoe,Toe,Ioe,Doe,Poe,Loe,Ooe,Roe,Moe,Noe,Zoe,Foe)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dual-axes",t}(0,SW.ZT)(t,e),t.prototype.getDefaultOptions=function(){return p8({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},t.prototype.getSchemaAdaptor=function(){return Boe}}(x9);function Hoe(e){var t=e.chart,n=e.options,i=n.type,r=n.data,o=n.fields,a=n.eachView,s=(0,wW.CE)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return t.data(r),t.facet(i,(0,SW.pi)((0,SW.pi)({},s),{fields:o,eachView:function(e,t){var n=a(e,t);if(n.geometries)!function(e,t){var n=t.data,i=t.coordinate,r=t.interactions,o=t.annotations,a=t.animation,s=t.tooltip,l=t.axes,c=t.meta,u=t.geometries;n&&e.data(n);var d={};l&&(0,wW.S6)(l,(function(e,t){d[t]=r8(e,e8)})),d=p8({},c,d),e.scale(d),i&&e.coordinate(i),!1===l?e.axis(!1):(0,wW.S6)(l,(function(t,n){e.axis(n,t)})),(0,wW.S6)(u,(function(t){var n=p9({chart:e,options:t}).ext,i=t.adjust;i&&n.geometry.adjust(i)})),(0,wW.S6)(r,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),(0,wW.S6)(o,(function(t){e.annotation()[t.type]((0,SW.pi)({},t))})),A8(e,a),s?(e.interaction("tooltip"),e.tooltip(s)):!1===s&&e.removeInteraction("tooltip")}(e,n);else{var i=n,r=i.options;r.tooltip&&e.interaction("tooltip"),iie(i.type,e,r)}}})),e}function zoe(e){var t=e.chart,n=e.options,i=n.axes,r=n.meta,o=n.tooltip,a=n.coordinate,s=n.theme,l=n.legend,c=n.interactions,u=n.annotations,d={};return i&&(0,wW.S6)(i,(function(e,t){d[t]=r8(e,e8)})),d=p8({},r,d),t.scale(d),t.coordinate(a),i?(0,wW.S6)(i,(function(e,n){t.axis(n,e)})):t.axis(!1),o?(t.interaction("tooltip"),t.tooltip(o)):!1===o&&t.removeInteraction("tooltip"),t.legend(l),s&&t.theme(s),(0,wW.S6)(c,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),(0,wW.S6)(u,(function(e){t.annotation()[e.type]((0,SW.pi)({},e))})),e}function joe(e){return v8(J8,Hoe,zoe)(e)}var Voe={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="area",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Voe},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return joe}}(x9);function Woe(e){var t=e.chart,n=e.options,i=n.data,r=n.type,o=n.xField,a=n.yField,s=n.colorField,l=n.sizeField,c=n.sizeRatio,u=n.shape,d=n.color,h=n.tooltip,f=n.heatmapStyle,p=n.meta;t.data(i);var g="polygon";"density"===r&&(g="heatmap");var v=d9(h,[o,a,s]),m=v.fields,y=v.formatter,_=1;return(c||0===c)&&(u||l?c<0||c>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):_=c:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),p9(p8({},e,{options:{type:g,colorField:s,tooltipFields:m,shapeField:l||"",label:void 0,mapping:{tooltip:y,shape:u&&(l?function(e){var t=i.map((function(e){return e[l]})),n=(null===p||void 0===p?void 0:p[l])||{},r=n.min,o=n.max;return r=(0,wW.hj)(r)?r:Math.min.apply(Math,t),o=(0,wW.hj)(o)?o:Math.max.apply(Math,t),[u,((0,wW.U2)(e,l)-r)/(o-r),_]}:function(){return[u,1,_]}),color:d||s&&t.getTheme().sequenceColors.join("-"),style:f}}})),e}function Uoe(e){var t,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return v8(i9(((t={})[o]=i,t[a]=r,t)))(e)}function Goe(e){var t=e.chart,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?t.axis(o,!1):t.axis(o,i),!1===r?t.axis(a,!1):t.axis(a,r),e}function Koe(e){var t=e.chart,n=e.options,i=n.legend,r=n.colorField,o=n.sizeField,a=n.sizeLegend,s=!1!==i;return r&&t.legend(r,!!s&&i),o&&t.legend(o,void 0===a?i:a),s||a||t.legend(!1),e}function Yoe(e){var t=e.chart,n=e.options,i=n.label,r=n.colorField,o=m8(t,"density"===n.type?"heatmap":"polygon");if(i){if(r){var a=i.callback,s=(0,SW._T)(i,["callback"]);o.label({fields:[r],callback:a,cfg:b8(s)})}}else o.label(!1);return e}function qoe(e){var t,n,i=e.chart,r=e.options,o=r.coordinate,a=r.reflect,s=p8({actions:[]},null!==o&&void 0!==o?o:{type:"rect"});return a&&(null===(n=null===(t=s.actions)||void 0===t?void 0:t.push)||void 0===n||n.call(t,["reflect",a])),i.coordinate(s),e}function $oe(e){return v8(J8,Y8("heatmapStyle"),Uoe,qoe,Woe,Goe,Koe,$8,Yoe,r9(),X8,Q8,e9)(e)}var Xoe=p8({},x9.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});EJ("polygon","circle",{draw:function(e,t){var n,i,r=e.x,o=e.y,a=this.parsePoints(e.points),s=Math.abs(a[2].x-a[1].x),l=Math.abs(a[1].y-a[0].y),c=Math.min(s,l)/2,u=Number(e.shape[1]),d=Number(e.shape[2]),h=c*Math.sqrt(d)*Math.sqrt(u),f=(null===(n=e.style)||void 0===n?void 0:n.fill)||e.color||(null===(i=e.defaultStyle)||void 0===i?void 0:i.fill);return t.addShape("circle",{attrs:(0,SW.pi)((0,SW.pi)((0,SW.pi)({x:r,y:o,r:h},e.defaultStyle),e.style),{fill:f})})}}),EJ("polygon","square",{draw:function(e,t){var n,i,r=e.x,o=e.y,a=this.parsePoints(e.points),s=Math.abs(a[2].x-a[1].x),l=Math.abs(a[1].y-a[0].y),c=Math.min(s,l),u=Number(e.shape[1]),d=Number(e.shape[2]),h=c*Math.sqrt(d)*Math.sqrt(u),f=(null===(n=e.style)||void 0===n?void 0:n.fill)||e.color||(null===(i=e.defaultStyle)||void 0===i?void 0:i.fill);return t.addShape("rect",{attrs:(0,SW.pi)((0,SW.pi)((0,SW.pi)({x:r-h/2,y:o-h/2,width:h,height:h},e.defaultStyle),e.style),{fill:f})})}});!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="heatmap",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Xoe},t.prototype.getSchemaAdaptor=function(){return $oe},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()}}(x9);function Qoe(e){return[{percent:e,type:"liquid"}]}function Joe(e){var t=e.chart,n=e.options,i=n.percent,r=n.liquidStyle,o=n.radius,a=n.outline,s=n.wave,l=n.shape,c=n.shapeStyle,u=n.animation;t.scale({percent:{min:0,max:1}}),t.data(Qoe(i));var d=n.color||t.getTheme().defaultColor,h=m9(p8({},e,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:d,style:r,shape:"liquid-fill-gauge"}}})).ext.geometry,f={percent:i,radius:o,outline:a,wave:s,shape:l,shapeStyle:c,background:t.getTheme().background,animation:u};return h.customInfo(f),t.legend(!1),t.axis(!1),t.tooltip(!1),e}function eae(e,t){var n=e.chart,i=e.options,r=i.statistic,o=i.percent,a=i.meta;n.getController("annotation").clear(!0);var s=(0,wW.U2)(a,["percent","formatter"])||function(e){return"".concat((100*e).toFixed(2),"%")},l=r.content;return l&&(l=p8({},l,{content:(0,wW.UM)(l.content)?s(o):l.content})),I8(n,{statistic:(0,SW.pi)((0,SW.pi)({},r),{content:l}),plotType:"liquid"},{percent:o}),t&&n.render(!0),e}function tae(e){return v8(J8,Y8("liquidStyle"),Joe,eae,i9({}),Q8,X8)(e)}var nae={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"};function iae(e,t,n){return e+(t-e)*n}function rae(e,t,n,i){return 0===t?[[e+.5*n/Math.PI/2,i/2],[e+.5*n/Math.PI,i],[e+n/4,i]]:1===t?[[e+.5*n/Math.PI/2*(Math.PI-2),i],[e+.5*n/Math.PI/2*(Math.PI-1),i/2],[e+n/4,0]]:2===t?[[e+.5*n/Math.PI/2,-i/2],[e+.5*n/Math.PI,-i],[e+n/4,-i]]:[[e+.5*n/Math.PI/2*(Math.PI-2),-i],[e+.5*n/Math.PI/2*(Math.PI-1),-i/2],[e+n/4,0]]}function oae(e,t,n,i,r,o,a){for(var s=4*Math.ceil(2*e/n*4),l=[],c=i;c<2*-Math.PI;)c+=2*Math.PI;for(;c>0;)c-=2*Math.PI;var u=o-e+(c=c/Math.PI/2*n)-2*e;l.push(["M",u,t]);for(var d=0,h=0;h<s;++h){var f=rae(h*n/4,h%4,n,r);l.push(["C",f[0][0]+u,-f[0][1]+t,f[1][0]+u,-f[1][1]+t,f[2][0]+u,-f[2][1]+t]),h===s-1&&(d=f[2][0])}return l.push(["L",d+u,a+e]),l.push(["L",u,a+e]),l.push(["Z"]),l}var aae={pin:function(e,t,n,i){var r=2*n/3,o=Math.max(r,i),a=r/2,s=e,l=a+t-o/2,c=Math.asin(a/(.85*(o-a))),u=Math.sin(c)*a,d=Math.cos(c)*a,h=s-d,f=l+u,p=e,g=l+a/Math.sin(c);return"\n M ".concat(h," ").concat(f,"\n A ").concat(a," ").concat(a," 0 1 1 ").concat(h+2*d," ").concat(f,"\n Q ").concat(p," ").concat(g," ").concat(e," ").concat(t+o/2,"\n Q ").concat(p," ").concat(g," ").concat(h," ").concat(f,"\n Z \n ")},circle:function(e,t,n,i){var r=n/2,o=i/2;return"\n M ".concat(e," ").concat(t-o," \n a ").concat(r," ").concat(o," 0 1 0 0 ").concat(2*o,"\n a ").concat(r," ").concat(o," 0 1 0 0 ").concat(2*-o,"\n Z\n ")},diamond:function(e,t,n,i){var r=i/2,o=n/2;return"\n M ".concat(e," ").concat(t-r,"\n L ").concat(e+o," ").concat(t,"\n L ").concat(e," ").concat(t+r,"\n L ").concat(e-o," ").concat(t,"\n Z\n ")},triangle:function(e,t,n,i){var r=i/2,o=n/2;return"\n M ".concat(e," ").concat(t-r,"\n L ").concat(e+o," ").concat(t+r,"\n L ").concat(e-o," ").concat(t+r,"\n Z\n ")},rect:function(e,t,n,i){var r=i/2,o=n/2*.618;return"\n M ".concat(e-o," ").concat(t-r,"\n L ").concat(e+o," ").concat(t-r,"\n L ").concat(e+o," ").concat(t+r,"\n L ").concat(e-o," ").concat(t+r,"\n Z\n ")}};EJ("interval","liquid-fill-gauge",{draw:function(e,t){var n=e.customInfo,i=n,r=i.percent,o=i.radius,a=i.shape,s=i.shapeStyle,l=i.background,c=i.animation,u=n.outline,d=n.wave,h=u.border,f=u.distance,p=d.count,g=d.length,v=(0,wW.u4)(e.points,(function(e,t){return Math.min(e,t.x)}),1/0),m=this.parsePoint({x:.5,y:.5}),y=this.parsePoint({x:v,y:.5}),_=m.x-y.x,b=Math.min(_,y.y*o),C=function(e){var t=(0,SW.pi)({opacity:1},e.style);return e.color&&!t.fill&&(t.fill=e.color),t}(e),S=function(e){var t=(0,wW.CD)({},{fill:"#fff",fillOpacity:0,lineWidth:4},e.style);return e.color&&!t.stroke&&(t.stroke=e.color),(0,wW.hj)(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity),t}((0,wW.CD)({},e,u)),w=b-h/2,k=("function"===typeof a?a:aae[a]||aae.circle)(m.x,m.y,2*w,2*w);if(s&&t.addShape("path",{name:"shape",attrs:(0,SW.pi)({path:k},s)}),r>0){var x=t.addGroup({name:"waves"}),E=x.setClip({type:"path",attrs:{path:k}});!function(e,t,n,i,r,o,a,s,l,c){for(var u=r.fill,d=r.opacity,h=a.getBBox(),f=h.maxX-h.minX,p=h.maxY-h.minY,g=0;g<i;g++){var v=i<=1?1:g/(i-1),m=o.addShape("path",{name:"waterwave-path",attrs:{path:oae(s,h.minY+p*n,l,0,f/32,e,t),fill:u,opacity:iae(.2,.9,v)*d}});try{if(!1===c)return;var y=Ate([["t",l,0]]);m.stopAnimate(),m.animate({matrix:y},{duration:iae(2500,5e3,v),repeat:!0})}catch(Fc){console.warn("off-screen group animate error!")}}}(m.x,m.y,1-e.points[1].y,p,C,x,E,2*b,g,c)}return t.addShape("path",{name:"distance",attrs:{path:k,fill:"transparent",lineWidth:h+2*f,stroke:"transparent"===l?"#fff":l}}),t.addShape("path",{name:"wrap",attrs:(0,wW.CD)(S,{path:k,fill:"transparent",lineWidth:h})}),t}});!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="liquid",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return nae},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.changeData=function(e){this.chart.emit(kW.BEFORE_CHANGE_DATA,YQ.fromData(this.chart,kW.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:e}),this.chart.data(Qoe(e)),eae({chart:this.chart,options:this.options},!0),this.chart.emit(kW.AFTER_CHANGE_DATA,YQ.fromData(this.chart,kW.AFTER_CHANGE_DATA,null))},t.prototype.getSchemaAdaptor=function(){return tae}}(x9);function sae(e){var t=e.chart,n=e.options,i=n.data,r=n.lineStyle,o=n.color,a=n.point,s=n.area;t.data(i);var l=p8({},e,{options:{line:{style:r,color:o},point:a?(0,SW.pi)({color:o},a):a,area:s?(0,SW.pi)({color:o},s):s,label:void 0}}),c=p8({},l,{options:{tooltip:!1}}),u=(null===a||void 0===a?void 0:a.state)||n.state,d=p8({},l,{options:{tooltip:!1,state:u}});return y9(l),_9(d),g9(c),e}function lae(e){var t,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return v8(i9(((t={})[o]=i,t[a]=r,t)))(e)}function cae(e){var t=e.chart,n=e.options,i=n.radius,r=n.startAngle,o=n.endAngle;return t.coordinate("polar",{radius:i,startAngle:r,endAngle:o}),e}function uae(e){var t=e.chart,n=e.options,i=n.xField,r=n.xAxis,o=n.yField,a=n.yAxis;return t.axis(i,r),t.axis(o,a),e}function dae(e){var t=e.chart,n=e.options,i=n.label,r=n.yField,o=m8(t,"line");if(i){var a=i.callback,s=(0,SW._T)(i,["callback"]);o.label({fields:[r],callback:a,cfg:b8(s)})}else o.label(!1);return e}function hae(e){return v8(sae,lae,J8,cae,uae,q8,$8,dae,X8,Q8,r9())(e)}var fae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),t.prototype.getTooltipItems=function(t){var n=this.getTooltipCfg(),i=n.shared,r=n.title,o=e.prototype.getTooltipItems.call(this,t);if(o.length>0){var a=this.view.geometries[0],s=a.dataArray,l=o[0].name,c=[];return s.forEach((function(e){e.forEach((function(e){var t=u0.getTooltipItems(e,a)[0];if(!i&&t&&t.name===l){var n=(0,wW.UM)(r)?l:r;c.push((0,SW.pi)((0,SW.pi)({},t),{name:t.title,title:n}))}else if(i&&t){n=(0,wW.UM)(r)?t.name||l:r;c.push((0,SW.pi)((0,SW.pi)({},t),{name:t.title,title:n}))}}))})),c}return[]},t}(aJ);WQ("radar-tooltip",fae);var pae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.init=function(){this.context.view.removeInteraction("tooltip")},t.prototype.show=function(){var e=this.context.event;this.getTooltipController().showTooltip({x:e.x,y:e.y})},t.prototype.hide=function(){this.getTooltipController().hideTooltip()},t.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},t}(aX);dX("radar-tooltip",pae),gQ("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radar",t}(0,SW.ZT)(t,e),t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return p8({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},t.prototype.getSchemaAdaptor=function(){return hae}}(x9);function gae(e,t,n){var i=n.map((function(e){return e[t]})).filter((function(e){return void 0!==e})),r=i.length>0?Math.max.apply(Math,i):0,o=Math.abs(e)%360;return o?360*r/o:r}function vae(e){var t=e.chart,n=e.options,i=n.barStyle,r=n.color,o=n.tooltip,a=n.colorField,s=n.type,l=n.xField,c=n.yField,u=n.data,d=n.shape,h=s8(u,c);return t.data(h),m9(p8({},e,{options:{tooltip:o,seriesField:a,interval:{style:i,color:r,shape:d||("line"===s?"line":"intervel")},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}})),"line"===s&&_9({chart:t,options:{xField:l,yField:c,seriesField:a,point:{shape:"circle",color:r}}}),e}function mae(e){var t,n=e.options,i=n.yField,r=n.xField,o=n.data,a=n.isStack,s=n.isGroup,l=n.colorField,c=n.maxAngle,u=a&&!s&&l?function(e,t,n){var i=[];return e.forEach((function(e){var r=i.find((function(n){return n[t]===e[t]}));r?r[n]+=e[n]||null:i.push((0,SW.pi)({},e))})),i}(o,r,i):o,d=s8(u,i);return v8(i9(((t={})[i]={min:0,max:gae(c,i,d)},t)))(e)}function yae(e){var t=e.chart,n=e.options,i=n.radius,r=n.innerRadius,o=n.startAngle,a=n.endAngle;return t.coordinate({type:"polar",cfg:{radius:i,innerRadius:r,startAngle:o,endAngle:a}}).transpose(),e}function _ae(e){var t=e.chart,n=e.options,i=n.xField,r=n.xAxis;return t.axis(i,r),e}function bae(e){var t=e.chart,n=e.options,i=n.label,r=n.yField,o=m8(t,"interval");if(i){var a=i.callback,s=(0,SW._T)(i,["callback"]);o.label({fields:[r],callback:a,cfg:(0,SW.pi)((0,SW.pi)({},b8(s)),{type:"polar"})})}else o.label(!1);return e}function Cae(e){return v8(Y8("barStyle"),vae,mae,_ae,yae,X8,Q8,J8,$8,q8,r9(),bae)(e)}var Sae=p8({},x9.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radial-bar",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Sae},t.prototype.changeData=function(e){this.updateOption({data:e}),mae({chart:this.chart,options:this.options}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Cae}}(x9);function wae(e){var t=e.chart,n=e.options,i=n.data,r=n.sectorStyle,o=n.shape,a=n.color;return t.data(i),v8(m9)(p8({},e,{options:{marginRatio:1,interval:{style:r,color:a,shape:o}}})),e}function kae(e){var t=e.chart,n=e.options,i=n.label,r=n.xField,o=m8(t,"interval");if(!1===i)o.label(!1);else if((0,wW.Kn)(i)){var a=i.callback,s=i.fields,l=(0,SW._T)(i,["callback","fields"]),c=l.offset,u=l.layout;(void 0===c||c>=0)&&(u=u?(0,wW.kJ)(u)?u:[u]:[],l.layout=(0,wW.hX)(u,(function(e){return"limit-in-shape"!==e.type})),l.layout.length||delete l.layout),o.label({fields:s||[r],callback:a,cfg:b8(l)})}else i8(J7.WARN,null===i,"the label option must be an Object."),o.label({fields:[r]});return e}function xae(e){var t=e.chart,n=e.options,i=n.legend,r=n.seriesField;return!1===i?t.legend(!1):r&&t.legend(r,i),e}function Eae(e){var t=e.chart,n=e.options,i=n.radius,r=n.innerRadius,o=n.startAngle,a=n.endAngle;return t.coordinate({type:"polar",cfg:{radius:i,innerRadius:r,startAngle:o,endAngle:a}}),e}function Tae(e){var t,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return v8(i9(((t={})[o]=i,t[a]=r,t)))(e)}function Nae(e){var t=e.chart,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return i?t.axis(o,i):t.axis(o,!1),r?t.axis(a,r):t.axis(a,!1),e}function Iae(e){v8(Y8("sectorStyle"),wae,Tae,kae,Eae,Nae,xae,$8,X8,Q8,J8,r9(),e9)(e)}var Dae=p8({},x9.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),Lae=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rose",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Dae},t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Iae}}(x9),"name"),Oae="nodes",Rae="edges";function Aae(e,t,n){if(!(0,wW.kJ)(e))return[];var i=[],r=function(e,t,n){var i=[];return e.forEach((function(e){var r=e[t],o=e[n];i.includes(r)||i.push(r),i.includes(o)||i.push(o)})),i}(e,t,n),o=function(e,t,n,i){var r={};return t.forEach((function(e){r[e]={},t.forEach((function(t){r[e][t]=0}))})),e.forEach((function(e){r[e[n]][e[i]]=1})),r}(e,r,t,n),a={};function s(e){a[e]=1,r.forEach((function(t){if(0!=o[e][t])if(1==a[t])i.push("".concat(e,"_").concat(t));else{if(-1==a[t])return;s(t)}})),a[e]=-1}return r.forEach((function(e){a[e]=0})),r.forEach((function(e){-1!=a[e]&&s(e)})),0!==i.length&&console.warn("sankey data contains circle, ".concat(i.length," records removed."),i),e.filter((function(e){return i.findIndex((function(i){return i==="".concat(e[t],"_").concat(e[n])}))<0}))}function Mae(e){return e.target.depth}function Pae(e,t){return e.sourceLinks.length?e.depth:t-1}function Zae(e){return function(){return e}}function Fae(e,t){for(var n=0,i=0;i<e.length;i++)n+=t(e[i]);return n}function Bae(e,t){for(var n=-1/0,i=0;i<e.length;i++)n=Math.max(t(e[i]),n);return n}function Hae(e,t){return jae(e.source,t.source)||e.index-t.index}function zae(e,t){return jae(e.target,t.target)||e.index-t.index}function jae(e,t){return e.y0-t.y0}function Vae(e){return e.value}function Wae(e){return e.index}function Uae(e){return e.nodes}function Gae(e){return e.links}function Kae(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Yae(e){for(var t=0,n=e.nodes;t<n.length;t++){for(var i=n[t],r=i.y0,o=r,a=0,s=i.sourceLinks;a<s.length;a++){(u=s[a]).y0=r+u.width/2,r+=u.width}for(var l=0,c=i.targetLinks;l<c.length;l++){var u;(u=c[l]).y1=o+u.width/2,o+=u.width}}}function qae(){var e,t,n,i,r=0,o=0,a=1,s=1,l=24,c=8,u=Wae,d=Pae,h=Uae,f=Gae,p=6;function g(g){var y={nodes:h(g),links:f(g)};return function(e){var t=e.nodes,n=e.links;t.forEach((function(e,t){e.index=t,e.sourceLinks=[],e.targetLinks=[]}));var r=new Map(t.map((function(e){return[u(e),e]})));if(n.forEach((function(e,t){e.index=t;var n=e.source,i=e.target;"object"!==typeof n&&(n=e.source=Kae(r,n)),"object"!==typeof i&&(i=e.target=Kae(r,i)),n.sourceLinks.push(e),i.targetLinks.push(e)})),null!=i)for(var o=0,a=t;o<a.length;o++){var s=a[o],l=s.sourceLinks,c=s.targetLinks;l.sort(i),c.sort(i)}}(y),function(e){for(var t=e.nodes,n=0,i=t;n<i.length;n++){var r=i[n];r.value=void 0===r.fixedValue?Math.max(Fae(r.sourceLinks,Vae),Fae(r.targetLinks,Vae)):r.fixedValue}}(y),function(e){var n=e.nodes,i=n.length,r=new Set(n),o=new Set,a=0;for(;r.size;){if(r.forEach((function(e){e.depth=a;for(var t=0,n=e.sourceLinks;t<n.length;t++){var i=n[t].target;o.add(i)}})),++a>i)throw new Error("circular link");r=o,o=new Set}if(t)for(var s=Math.max(Bae(n,(function(e){return e.depth}))+1,0),l=void 0,c=0;c<n.length;c++)(l=n[c]).depth=t.call(null,l,s)}(y),function(e){var t=e.nodes,n=t.length,i=new Set(t),r=new Set,o=0;for(;i.size;){if(i.forEach((function(e){e.height=o;for(var t=0,n=e.targetLinks;t<n.length;t++){var i=n[t].source;r.add(i)}})),++o>n)throw new Error("circular link");i=r,r=new Set}}(y),function(t){var i=function(e){for(var t=e.nodes,i=Math.max(Bae(t,(function(e){return e.depth}))+1,0),o=(a-r-l)/(i-1),s=new Array(i).fill(0).map((function(){return[]})),c=0,u=t;c<u.length;c++){var h=u[c],f=Math.max(0,Math.min(i-1,Math.floor(d.call(null,h,i))));h.layer=f,h.x0=r+f*o,h.x1=h.x0+l,s[f]?s[f].push(h):s[f]=[h]}if(n)for(var p=0,g=s;p<g.length;p++){g[p].sort(n)}return s}(t);e=Math.min(c,(s-o)/(Bae(i,(function(e){return e.length}))-1)),function(t){for(var n=function(e,t){for(var n=1/0,i=0;i<e.length;i++)n=Math.min(t(e[i]),n);return n}(t,(function(t){return(s-o-(t.length-1)*e)/Fae(t,Vae)})),i=0,r=t;i<r.length;i++){for(var a=r[i],l=o,c=0,u=a;c<u.length;c++){(g=u[c]).y0=l,g.y1=l+g.value*n,l=g.y1+e;for(var d=0,h=g.sourceLinks;d<h.length;d++){var f=h[d];f.width=f.value*n}}l=(s-l+e)/(a.length+1);for(var p=0;p<a.length;++p){var g;(g=a[p]).y0+=l*(p+1),g.y1+=l*(p+1)}S(a)}}(i);for(var u=0;u<p;++u){var h=Math.pow(.99,u),f=Math.max(1-h,(u+1)/p);m(i,h,f),v(i,h,f)}}(y),Yae(y),y}function v(e,t,i){for(var r=1,o=e.length;r<o;++r){for(var a=e[r],s=0,l=a;s<l.length;s++){for(var c=l[s],u=0,d=0,h=0,f=c.targetLinks;h<f.length;h++){var p=f[h],g=p.source,v=p.value*(c.layer-g.layer);u+=w(g,c)*v,d+=v}if(d>0){var m=(u/d-c.y0)*t;c.y0+=m,c.y1+=m,C(c)}}void 0===n&&a.sort(jae),a.length&&y(a,i)}}function m(e,t,i){for(var r=e.length-2;r>=0;--r){for(var o=e[r],a=0,s=o;a<s.length;a++){for(var l=s[a],c=0,u=0,d=0,h=l.sourceLinks;d<h.length;d++){var f=h[d],p=f.target,g=f.value*(p.layer-l.layer);c+=k(l,p)*g,u+=g}if(u>0){var v=(c/u-l.y0)*t;l.y0+=v,l.y1+=v,C(l)}}void 0===n&&o.sort(jae),o.length&&y(o,i)}}function y(t,n){var i=t.length>>1,r=t[i];b(t,r.y0-e,i-1,n),_(t,r.y1+e,i+1,n),b(t,s,t.length-1,n),_(t,o,0,n)}function _(t,n,i,r){for(;i<t.length;++i){var o=t[i],a=(n-o.y0)*r;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+e}}function b(t,n,i,r){for(;i>=0;--i){var o=t[i],a=(o.y1-n)*r;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-e}}function C(e){var t=e.sourceLinks,n=e.targetLinks;if(void 0===i){for(var r=0,o=n;r<o.length;r++){o[r].source.sourceLinks.sort(zae)}for(var a=0,s=t;a<s.length;a++){s[a].target.targetLinks.sort(Hae)}}}function S(e){if(void 0===i)for(var t=0,n=e;t<n.length;t++){var r=n[t],o=r.sourceLinks,a=r.targetLinks;o.sort(zae),a.sort(Hae)}}function w(t,n){for(var i=t.y0-(t.sourceLinks.length-1)*e/2,r=0,o=t.sourceLinks;r<o.length;r++){var a=o[r],s=a.target,l=a.width;if(s===n)break;i+=l+e}for(var c=0,u=n.targetLinks;c<u.length;c++){var d=u[c];s=d.source,l=d.width;if(s===t)break;i-=l}return i}function k(t,n){for(var i=n.y0-(n.targetLinks.length-1)*e/2,r=0,o=n.targetLinks;r<o.length;r++){var a=o[r],s=a.source,l=a.width;if(s===t)break;i+=l+e}for(var c=0,u=t.sourceLinks;c<u.length;c++){var d=u[c];s=d.target,l=d.width;if(s===n)break;i-=l}return i}return g.update=function(e){return Yae(e),e},g.nodeId=function(e){return arguments.length?(u="function"===typeof e?e:Zae(e),g):u},g.nodeAlign=function(e){return arguments.length?(d="function"===typeof e?e:Zae(e),g):d},g.nodeDepth=function(e){return arguments.length?(t=e,g):t},g.nodeSort=function(e){return arguments.length?(n=e,g):n},g.nodeWidth=function(e){return arguments.length?(l=+e,g):l},g.nodePadding=function(t){return arguments.length?(c=e=+t,g):c},g.nodes=function(e){return arguments.length?(h="function"===typeof e?e:Zae(e),g):h},g.links=function(e){return arguments.length?(f="function"===typeof e?e:Zae(e),g):f},g.linkSort=function(e){return arguments.length?(i=e,g):i},g.size=function(e){return arguments.length?(r=o=0,a=+e[0],s=+e[1],g):[a-r,s-o]},g.extent=function(e){return arguments.length?(r=+e[0][0],a=+e[1][0],o=+e[0][1],s=+e[1][1],g):[[r,o],[a,s]]},g.iterations=function(e){return arguments.length?(p=+e,g):p},g}var $ae={left:function(e){return e.depth},right:function(e,t){return t-1-e.height},center:function(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?(0,wW.F)(e.sourceLinks,Mae)-1:0},justify:Pae},Xae={nodeId:function(e){return e.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0};function Qae(e,t){var n=function(e){return(0,wW.f0)({},Xae,e)}(e),i=n.nodeId,r=n.nodeSort,o=n.nodeAlign,a=n.nodeWidth,s=n.nodePadding,l=n.nodeDepth,c=qae().nodeSort(r).nodeWidth(a).nodePadding(s).nodeDepth(l).nodeAlign(function(e){return((0,wW.HD)(e)?$ae[e]:(0,wW.mf)(e)?e:null)||Pae}(o)).extent([[0,0],[1,1]]).nodeId(i),u=c(t),d=u.nodes.map((function(e){var t=e.x0,n=e.x1,i=e.y0,r=e.y1;return e.x=[t,n,n,t],e.y=[i,i,r,r],e})).filter((function(e){return null!==e.name})),h=u.links.map((function(e){var t=e.source,n=e.target,i=t.x1,r=n.x0;e.x=[i,i,r,r];var o=e.width/2;return e.y=[e.y0+o,e.y0-o,e.y1+o,e.y1-o],e})).filter((function(e){var t=e.source,n=e.target;return null!==t.name&&null!==n.name}));return{nodes:d,links:h}}function Jae(e,t,n){return C8(e)?e/n:t}function ese(e,t,n){return C8(e)?e/n:t}function tse(e,t,n){var i,r=e.dataType,o=e.data,a=e.sourceField,s=e.targetField,l=e.weightField,c=e.nodeAlign,u=e.nodeSort,d=e.nodePadding,h=e.nodePaddingRatio,f=e.nodeWidth,p=e.nodeWidthRatio,g=e.nodeDepth,v=e.rawFields,m=void 0===v?[]:v;i=function(e){return"node-link"===e}(r)?o:a8(Aae(o,a,s),a,s,l,m);var y=Qae({nodeAlign:c,nodePadding:ese(d,h,n),nodeWidth:Jae(f,p,t),nodeSort:u,nodeDepth:g},i),_=y.nodes,b=y.links;return{nodes:_.map((function(e){return(0,SW.pi)((0,SW.pi)({},r8(e,(0,SW.ev)(["x","y","name"],m,!0))),{isNode:!0})})),edges:b.map((function(e){return(0,SW.pi)((0,SW.pi)({source:e.source.name,target:e.target.name,name:e.source.name||e.target.name},r8(e,(0,SW.ev)(["x","y","value"],m,!0))),{isNode:!1})}))}}function nse(e){var t=e.options.rawFields,n=void 0===t?[]:t;return p8({},{options:{tooltip:{fields:(0,wW.jj)((0,SW.ev)(["name","source","target","value","isNode"],n,!0))},label:{fields:(0,wW.jj)((0,SW.ev)(["x","name"],n,!0))}}},e)}function ise(e){var t=e.chart,n=e.options,i=n.color,r=n.nodeStyle,o=n.edgeStyle,a=n.label,s=n.tooltip,l=n.nodeState,c=n.edgeState,u=n.rawFields,d=void 0===u?[]:u;t.legend(!1),t.tooltip(s),t.axis(!1),t.coordinate().reflect("y");var h=tse(n,t.width,t.height),f=h.nodes,p=h.edges,g=t.createView({id:Rae});g.data(p),v9({chart:g,options:{xField:"x",yField:"y",seriesField:Lae,rawFields:(0,SW.ev)(["source","target"],d,!0),edge:{color:i,style:o,shape:"arc"},tooltip:s,state:c}});var v=t.createView({id:Oae});return v.data(f),b9({chart:v,options:{xField:"x",yField:"y",seriesField:Lae,polygon:{color:i,style:r},label:a,tooltip:s,state:l}}),t.interaction("element-active"),t.scale({x:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},y:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},name:{sync:"color",type:"cat"}}),e}function rse(e){var t=e.chart;return A8(t,e.options.animation,(0,SW.ev)((0,SW.ev)([],t.views[0].geometries,!0),t.views[1].geometries,!0)),e}function ose(e){var t=e.chart,n="sankey-node-draggable";return e.options.nodeDraggable?t.interaction(n):t.removeInteraction(n),e}function ase(e){var t=e.chart,n=e.options,i=n.interactions,r=void 0===i?[]:i,o=[].concat(r,n.nodeInteractions||[]),a=[].concat(r,n.edgeInteractions||[]),s=L8(t,Oae),l=L8(t,Rae);return o.forEach((function(e){!1===(null===e||void 0===e?void 0:e.enable)?s.removeInteraction(e.type):s.interaction(e.type,e.cfg||{})})),a.forEach((function(e){!1===(null===e||void 0===e?void 0:e.enable)?l.removeInteraction(e.type):l.interaction(e.type,e.cfg||{})})),e}function sse(e){return v8(nse,ise,ase,ose,rse,J8)(e)}var lse=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDragging=!1,t}return(0,SW.ZT)(t,e),t.prototype.isNodeElement=function(){var e=(0,wW.U2)(this.context,"event.target");if(e){var t=e.get("element");return t&&t.getModel().data.isNode}return!1},t.prototype.getNodeView=function(){return L8(this.context.view,Oae)},t.prototype.getEdgeView=function(){return L8(this.context.view,Rae)},t.prototype.getCurrentDatumIdx=function(e){return this.getNodeView().geometries[0].elements.indexOf(e)},t.prototype.start=function(){if(this.isNodeElement()){this.prevPoint={x:(0,wW.U2)(this.context,"event.x"),y:(0,wW.U2)(this.context,"event.y")};var e=this.context.event.target.get("element"),t=this.getCurrentDatumIdx(e);if(-1===t)return;this.currentElementIdx=t,this.context.isDragging=!0,this.isDragging=!0,this.prevNodeAnimateCfg=this.getNodeView().getOptions().animate,this.prevEdgeAnimateCfg=this.getEdgeView().getOptions().animate,this.getNodeView().animate(!1),this.getEdgeView().animate(!1)}},t.prototype.translate=function(){if(this.isDragging){var e=this.context.view,t={x:(0,wW.U2)(this.context,"event.x"),y:(0,wW.U2)(this.context,"event.y")},n=t.x-this.prevPoint.x,i=t.y-this.prevPoint.y,r=this.getNodeView(),o=r.geometries[0].elements[this.currentElementIdx];if(o&&o.getModel()){var a=o.getModel().data,s=r.getOptions().data,l=r.getCoordinate(),c={x:n/l.getWidth(),y:i/l.getHeight()},u=(0,SW.pi)((0,SW.pi)({},a),{x:a.x.map((function(e){return e+c.x})),y:a.y.map((function(e){return e+c.y}))}),d=(0,SW.ev)([],s,!0);d[this.currentElementIdx]=u,r.data(d);var h=a.name,f=this.getEdgeView(),p=f.getOptions().data;p.forEach((function(e){e.source===h&&(e.x[0]+=c.x,e.x[1]+=c.x,e.y[0]+=c.y,e.y[1]+=c.y),e.target===h&&(e.x[2]+=c.x,e.x[3]+=c.x,e.y[2]+=c.y,e.y[3]+=c.y)})),f.data(p),this.prevPoint=t,e.render(!0)}}},t.prototype.end=function(){this.isDragging=!1,this.context.isDragging=!1,this.prevPoint=null,this.currentElementIdx=null,this.getNodeView().animate(this.prevNodeAnimateCfg),this.getEdgeView().animate(this.prevEdgeAnimateCfg)},t}(aX);dX("sankey-node-drag",lse),gQ("sankey-node-draggable",{showEnable:[{trigger:"polygon:mouseenter",action:"cursor:pointer"},{trigger:"polygon:mouseleave",action:"cursor:default"}],start:[{trigger:"polygon:mousedown",action:"sankey-node-drag:start"}],processing:[{trigger:"plot:mousemove",action:"sankey-node-drag:translate"},{isEnable:function(e){return e.isDragging},trigger:"plot:mousemove",action:"cursor:move"}],end:[{trigger:"plot:mouseup",action:"sankey-node-drag:end"}]});!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="sankey",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},edgeState:{active:{style:{opacity:.8,lineWidth:0}}},label:{formatter:function(e){return e.name},callback:function(e){var t=1===e[1];return{style:{fill:"#545454",textAlign:t?"end":"start"},offsetX:t?-8:8}},layout:[{type:"hide-overlap"}]},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,showContent:function(e){return!(0,wW.U2)(e,[0,"data","isNode"])},formatter:function(e){return{name:e.source+" -> "+e.target,value:e.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},t.prototype.changeData=function(e){this.updateOption({data:e});var t=tse(this.options,this.chart.width,this.chart.height),n=t.nodes,i=t.edges,r=L8(this.chart,Oae),o=L8(this.chart,Rae);r.changeData(n),o.changeData(i)},t.prototype.getSchemaAdaptor=function(){return sse},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()}}(x9);var cse="ancestor-node",use="value",dse="path",hse=[dse,Ure,Kre,Gre,"name","depth","height"],fse=p8({},x9.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});function pse(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function gse(e,t,n,i,r){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(i-t)/e.value;++s<l;)(o=a[s]).y0=n,o.y1=r,o.x0=t,o.x1=t+=o.value*c}function vse(){var e=1,t=1,n=0,i=!1;function r(r){var o=r.height+1;return r.x0=r.y0=n,r.x1=e,r.y1=t/o,r.eachBefore(function(e,t){return function(i){i.children&&gse(i,i.x0,e*(i.depth+1)/t,i.x1,e*(i.depth+2)/t);var r=i.x0,o=i.y0,a=i.x1-n,s=i.y1-n;a<r&&(r=a=(r+a)/2),s<o&&(o=s=(o+s)/2),i.x0=r,i.y0=o,i.x1=a,i.y1=s}}(t,o)),i&&r.eachBefore(pse),r}return r.round=function(e){return arguments.length?(i=!!e,r):i},r.size=function(n){return arguments.length?(e=+n[0],t=+n[1],r):[e,t]},r.padding=function(e){return arguments.length?(n=+e,r):n},r}var mse={field:"value",size:[1,1],round:!1,padding:0,sort:function(e,t){return t.value-e.value},as:["x","y"],ignoreParentValue:!0};function yse(e,t){var n,i=(t=(0,wW.f0)({},mse,t)).as;if(!(0,wW.kJ)(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=qre(t)}catch(Fc){console.warn(Fc)}var r=function(e){return vse().size(t.size).round(t.round).padding(t.padding)(Bre(e).sum((function(e){return(0,wW.dp)(e.children)?t.ignoreParentValue?0:e[n]-(0,wW.u4)(e.children,(function(e,t){return e+t[n]}),0):e[n]})).sort(t.sort))}(e),o=i[0],a=i[1];return r.each((function(e){var t,n;e[o]=[e.x0,e.x1,e.x1,e.x0],e[a]=[e.y1,e.y1,e.y0,e.y0],e.name=e.name||(null===(t=e.data)||void 0===t?void 0:t.name)||(null===(n=e.data)||void 0===n?void 0:n.label),e.data.name=e.name,["x0","x1","y0","y1"].forEach((function(t){-1===i.indexOf(t)&&delete e[t]}))})),$re(r)}function _se(e,t){return e.parent===t.parent?1:2}function bse(e,t){return e+t.x}function Cse(e,t){return Math.max(e,t.y)}function Sse(){var e=_se,t=1,n=1,i=!1;function r(r){var o,a=0;r.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(bse,0)/e.length}(n),t.y=function(e){return 1+e.reduce(Cse,0)}(n)):(t.x=o?a+=e(t,o):0,t.y=0,o=t)}));var s=function(e){for(var t;t=e.children;)e=t[0];return e}(r),l=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(r),c=s.x-e(s,l)/2,u=l.x+e(l,s)/2;return r.eachAfter(i?function(e){e.x=(e.x-r.x)*t,e.y=(r.y-e.y)*n}:function(e){e.x=(e.x-c)/(u-c)*t,e.y=(1-(r.y?e.y/r.y:1))*n})}return r.separation=function(t){return arguments.length?(e=t,r):e},r.size=function(e){return arguments.length?(i=!1,t=+e[0],n=+e[1],r):i?null:[t,n]},r.nodeSize=function(e){return arguments.length?(i=!0,t=+e[0],n=+e[1],r):i?[t,n]:null},r}var wse={depth:-1},kse={};function xse(e){return e.id}function Ese(e){return e.parentId}function Tse(){var e=xse,t=Ese;function n(n){var i,r,o,a,s,l,c,u=Array.from(n),d=u.length,h=new Map;for(r=0;r<d;++r)i=u[r],s=u[r]=new Wre(i),null!=(l=e(i,r,n))&&(l+="")&&(c=s.id=l,h.set(c,h.has(c)?kse:s)),null!=(l=t(i,r,n))&&(l+="")&&(s.parent=l);for(r=0;r<d;++r)if(l=(s=u[r]).parent){if(!(a=h.get(l)))throw new Error("missing: "+l);if(a===kse)throw new Error("ambiguous: "+l);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=wse,o.eachBefore((function(e){e.depth=e.parent.depth+1,--d})).eachBefore(Vre),o.parent=null,d>0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=Nre(t),n):e},n.parentId=function(e){return arguments.length?(t=Nre(e),n):t},n}function Nse(e,t){return e.parent===t.parent?1:2}function Ise(e){var t=e.children;return t?t[0]:e.t}function Dse(e){var t=e.children;return t?t[t.length-1]:e.t}function Lse(e,t,n){var i=n/(t.i-e.i);t.c-=i,t.s+=n,e.c+=i,t.z+=n,t.m+=n}function Ose(e,t,n){return e.a.parent===t.parent?e.a:n}function Rse(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function Ase(){var e=Nse,t=1,n=1,i=null;function r(r){var l=function(e){for(var t,n,i,r,o,a=new Rse(e,0),s=[a];t=s.pop();)if(i=t._.children)for(t.children=new Array(o=i.length),r=o-1;r>=0;--r)s.push(n=t.children[r]=new Rse(i[r],r)),n.parent=t;return(a.parent=new Rse(null,0)).children=[a],a}(r);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),i)r.eachBefore(s);else{var c=r,u=r,d=r;r.eachBefore((function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)}));var h=c===u?1:e(c,u)/2,f=h-c.x,p=t/(u.x+h+f),g=n/(d.depth||1);r.eachBefore((function(e){e.x=(e.x+f)*p,e.y=e.depth*g}))}return r}function o(t){var n=t.children,i=t.parent.children,r=t.i?i[t.i-1]:null;if(n){!function(e){for(var t,n=0,i=0,r=e.children,o=r.length;--o>=0;)(t=r[o]).z+=n,t.m+=n,n+=t.s+(i+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;r?(t.z=r.z+e(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+e(t._,r._));t.parent.A=function(t,n,i){if(n){for(var r,o=t,a=t,s=n,l=o.parent.children[0],c=o.m,u=a.m,d=s.m,h=l.m;s=Dse(s),o=Ise(o),s&&o;)l=Ise(l),(a=Dse(a)).a=t,(r=s.z+d-o.z-c+e(s._,o._))>0&&(Lse(Ose(s,t,i),t,r),c+=r,u+=r),d+=s.m,c+=o.m,h+=l.m,u+=a.m;s&&!Dse(a)&&(a.t=s,a.m+=d-u),o&&!Ise(l)&&(l.t=o,l.m+=c-h,i=t)}return i}(t,r,t.parent.A||i[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return r.separation=function(t){return arguments.length?(e=t,r):e},r.size=function(e){return arguments.length?(i=!1,t=+e[0],n=+e[1],r):i?null:[t,n]},r.nodeSize=function(e){return arguments.length?(i=!0,t=+e[0],n=+e[1],r):i?[t,n]:null},r}function Mse(e,t,n,i,r){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(r-n)/e.value;++s<l;)(o=a[s]).x0=t,o.x1=i,o.y0=n,o.y1=n+=o.value*c}Rse.prototype=Object.create(Wre.prototype);var Pse=(1+Math.sqrt(5))/2;function Zse(e,t,n,i,r,o){for(var a,s,l,c,u,d,h,f,p,g,v,m=[],y=t.children,_=0,b=0,C=y.length,S=t.value;_<C;){l=r-n,c=o-i;do{u=y[b++].value}while(!u&&b<C);for(d=h=u,v=u*u*(g=Math.max(c/l,l/c)/(S*e)),p=Math.max(h/v,v/d);b<C;++b){if(u+=s=y[b].value,s<d&&(d=s),s>h&&(h=s),v=u*u*g,(f=Math.max(h/v,v/d))>p){u-=s;break}p=f}m.push(a={value:u,dice:l<c,children:y.slice(_,b)}),a.dice?gse(a,n,i,r,S?i+=c*u/S:o):Mse(a,n,i,S?n+=l*u/S:r,o),S-=u,_=b}return m}var Fse=function e(t){function n(e,n,i,r,o){Zse(t,e,n,i,r,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Pse);function Bse(){var e=Fse,t=!1,n=1,i=1,r=[0],o=Ire,a=Ire,s=Ire,l=Ire,c=Ire;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=i,e.eachBefore(d),r=[0],t&&e.eachBefore(pse),e}function d(t){var n=r[t.depth],i=t.x0+n,u=t.y0+n,d=t.x1-n,h=t.y1-n;d<i&&(i=d=(i+d)/2),h<u&&(u=h=(u+h)/2),t.x0=i,t.y0=u,t.x1=d,t.y1=h,t.children&&(n=r[t.depth+1]=o(t)/2,i+=c(t)-n,u+=a(t)-n,(d-=s(t)-n)<i&&(i=d=(i+d)/2),(h-=l(t)-n)<u&&(u=h=(u+h)/2),e(t,i,u,d,h))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],i=+e[1],u):[n,i]},u.tile=function(t){return arguments.length?(e=Nre(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(o="function"===typeof e?e:Dre(+e),u):o},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(a="function"===typeof e?e:Dre(+e),u):a},u.paddingRight=function(e){return arguments.length?(s="function"===typeof e?e:Dre(+e),u):s},u.paddingBottom=function(e){return arguments.length?(l="function"===typeof e?e:Dre(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"===typeof e?e:Dre(+e),u):c},u}function Hse(e,t,n,i,r){var o,a,s=e.children,l=s.length,c=new Array(l+1);for(c[0]=a=o=0;o<l;++o)c[o+1]=a+=s[o].value;!function e(t,n,i,r,o,a,l){if(t>=n-1){var u=s[t];return u.x0=r,u.y0=o,u.x1=a,void(u.y1=l)}var d=c[t],h=i/2+d,f=t+1,p=n-1;for(;f<p;){var g=f+p>>>1;c[g]<h?f=g+1:p=g}h-c[f-1]<c[f]-h&&t+1<f&&--f;var v=c[f]-d,m=i-v;if(a-r>l-o){var y=i?(r*m+a*v)/i:a;e(t,f,v,r,o,y,l),e(f,n,m,y,o,a,l)}else{var _=i?(o*m+l*v)/i:l;e(t,f,v,r,o,a,_),e(f,n,m,r,_,a,l)}}(0,l,e.value,t,n,i,r)}function zse(e,t,n,i,r){(1&e.depth?Mse:gse)(e,t,n,i,r)}var jse=function e(t){function n(e,n,i,r,o){if((a=e._squarify)&&a.ratio===t)for(var a,s,l,c,u,d=-1,h=a.length,f=e.value;++d<h;){for(l=(s=a[d]).children,c=s.value=0,u=l.length;c<u;++c)s.value+=l[c].value;s.dice?gse(s,n,i,r,f?i+=(o-i)*s.value/f:o):Mse(s,n,i,f?n+=(r-n)*s.value/f:r,o),f-=s.value}else e._squarify=a=Zse(t,e,n,i,r,o),a.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Pse),Vse={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,t){return t.value-e.value},ratio:.5*(1+Math.sqrt(5))};function Wse(e,t){var n,i=(t=(0,wW.f0)({},Vse,t)).as;if(!(0,wW.kJ)(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=qre(t)}catch(Fc){console.warn(Fc)}var r,o,a=(r=t.tile,o=t.ratio,"treemapSquarify"===r?f[r].ratio(o):f[r]),s=function(e){return Bse().tile(a).size(t.size).round(t.round).padding(t.padding).paddingInner(t.paddingInner).paddingOuter(t.paddingOuter).paddingTop(t.paddingTop).paddingRight(t.paddingRight).paddingBottom(t.paddingBottom).paddingLeft(t.paddingLeft)(Bre(e).sum((function(e){return t.ignoreParentValue&&e.children?0:e[n]})).sort(t.sort))}(e),l=i[0],c=i[1];return s.each((function(e){e[l]=[e.x0,e.x1,e.x1,e.x0],e[c]=[e.y1,e.y1,e.y0,e.y0],["x0","x1","y0","y1"].forEach((function(t){-1===i.indexOf(t)&&delete e[t]}))})),$re(s)}function Use(e){var t=e.data,n=e.colorField,i=e.rawFields,r=e.hierarchyConfig,o=void 0===r?{}:r,a=o.activeDepth,s={partition:yse,treemap:Wse},l=e.seriesField,c=e.type||"partition",u=s[c](t,(0,SW.pi)((0,SW.pi)({field:l||"value"},(0,wW.CE)(o,["activeDepth"])),{type:"hierarchy.".concat(c),as:["x","y"]})),d=[];return u.forEach((function(e){var t,r,s,c,u,h;if(0===e.depth)return null;if(a>0&&e.depth>a)return null;for(var f=e.data.name,p=(0,SW.pi)({},e);p.depth>1;)f="".concat(null===(r=p.parent.data)||void 0===r?void 0:r.name," / ").concat(f),p=p.parent;var g=(0,SW.pi)((0,SW.pi)((0,SW.pi)({},r8(e.data,(0,SW.ev)((0,SW.ev)([],i||[],!0),[o.field],!1))),((t={}).path=f,t["ancestor-node"]=p.data.name,t)),e);l&&(g[l]=e.data[l]||(null===(c=null===(s=e.parent)||void 0===s?void 0:s.data)||void 0===c?void 0:c[l])),n&&(g[n]=e.data[n]||(null===(h=null===(u=e.parent)||void 0===u?void 0:u.data)||void 0===h?void 0:h[n])),g.ext=o,g[dre]={hierarchyConfig:o,colorField:n,rawFields:i},d.push(g)})),d}function Gse(e){var t,n=e.chart,i=e.options,r=i.color,o=i.colorField,a=void 0===o?cse:o,s=i.sunburstStyle,l=i.rawFields,c=void 0===l?[]:l,u=i.shape,d=Use(i);return n.data(d),s&&(t=function(e){return p8({},{fillOpacity:Math.pow(.85,e.depth)},(0,wW.mf)(s)?s(e):s)}),b9(p8({},e,{options:{xField:"x",yField:"y",seriesField:a,rawFields:(0,wW.jj)((0,SW.ev)((0,SW.ev)([],hse,!0),c,!0)),polygon:{color:r,style:t,shape:u}}})),e}function Kse(e){return e.chart.axis(!1),e}function Yse(e){var t=e.chart,n=e.options.label,i=m8(t,"polygon");if(n){var r=n.fields,o=void 0===r?["name"]:r,a=n.callback,s=(0,SW._T)(n,["fields","callback"]);i.label({fields:o,callback:a,cfg:b8(s)})}else i.label(!1);return e}function qse(e){var t=e.chart,n=e.options,i=n.innerRadius,r=n.radius,o=n.reflect,a=t.coordinate({type:"polar",cfg:{innerRadius:i,radius:r}});return o&&a.reflect(o),e}function $se(e){var t,n=e.options,i=n.hierarchyConfig,r=n.meta;return v8(i9({},((t={}).value=(0,wW.U2)(r,(0,wW.U2)(i,["field"],"value")),t)))(e)}function Xse(e){var t=e.chart,n=e.options.tooltip;if(!1===n)t.tooltip(!1);else{var i=n;(0,wW.U2)(n,"fields")||(i=p8({},{customItems:function(e){return e.map((function(e){var n=(0,wW.U2)(t.getOptions(),"scales"),i=(0,wW.U2)(n,[dse,"formatter"],(function(e){return e})),r=(0,wW.U2)(n,[use,"formatter"],(function(e){return e}));return(0,SW.pi)((0,SW.pi)({},e),{name:i(e.data.path),value:r(e.data.value)})}))}},i)),t.tooltip(i)}return e}function Qse(e){var t=e.drilldown,n=e.interactions,i=void 0===n?[]:n;return(null===t||void 0===t?void 0:t.enabled)?p8({},e,{interactions:(0,SW.ev)((0,SW.ev)([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:Use}}],!1)}):e}function Jse(e){var t=e.chart,n=e.options,i=n.drilldown;return X8({chart:t,options:Qse(n)}),(null===i||void 0===i?void 0:i.enabled)&&(t.appendPadding=w8(t.appendPadding,(0,wW.U2)(i,["breadCrumb","position"]))),e}function ele(e){return v8(J8,Y8("sunburstStyle"),Gse,Kse,$se,q8,qse,Xse,Yse,Jse,Q8,r9())(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="sunburst",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return fse},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return ele},t.SUNBURST_ANCESTOR_FIELD=cse,t.SUNBURST_PATH_FIELD=dse,t.NODE_ANCESTORS_FIELD=Kre}(x9);function tle(e,t){if((0,wW.kJ)(e))return e.find((function(e){return e.type===t}))}function nle(e,t){var n=tle(e,t);return n&&!1!==n.enable}function ile(e){var t=e.interactions,n=e.drilldown;return(0,wW.U2)(n,"enabled")||nle(t,"treemap-drill-down")}function rle(e){var t=e.data,n=e.colorField,i=e.enableDrillDown,r=e.hierarchyConfig,o=Wse(t,(0,SW.pi)((0,SW.pi)({},r),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),a=[];return o.forEach((function(e){if(0===e.depth)return null;if(i&&1!==e.depth)return null;if(!i&&e.children)return null;var o=e.ancestors().map((function(e){return{data:e.data,height:e.height,value:e.value}})),s=i&&(0,wW.kJ)(t.path)?o.concat(t.path.slice(1)):o,l=Object.assign({},e.data,(0,SW.pi)({x:e.x,y:e.y,depth:e.depth,value:e.value,path:s},e));if(!e.data[n]&&e.parent){var c=e.ancestors().find((function(e){return e.data[n]}));l[n]=null===c||void 0===c?void 0:c.data[n]}else l[n]=e.data[n];l[dre]={hierarchyConfig:r,colorField:n,enableDrillDown:i},a.push(l)})),a}function ole(e){var t=e.options.colorField;return p8({options:{rawFields:["value"],tooltip:{fields:["name","value",t,"path"],formatter:function(e){return{name:e.name,value:e.value}}}}},e)}function ale(e){var t=e.chart,n=e.options,i=n.color,r=n.colorField,o=n.rectStyle,a=n.hierarchyConfig,s=n.rawFields,l=rle({data:n.data,colorField:n.colorField,enableDrillDown:ile(n),hierarchyConfig:a});return t.data(l),b9(p8({},e,{options:{xField:"x",yField:"y",seriesField:r,rawFields:s,polygon:{color:i,style:o}}})),t.coordinate().reflect("y"),e}function sle(e){return e.chart.axis(!1),e}function lle(e){var t=e.drilldown,n=e.interactions,i=void 0===n?[]:n;return ile(e)?p8({},e,{interactions:(0,SW.ev)((0,SW.ev)([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:rle}}],!1)}):e}function cle(e){var t=e.chart,n=e.options,i=n.interactions,r=n.drilldown;X8({chart:t,options:lle(n)});var o=tle(i,"view-zoom");return o&&(!1!==o.enable?t.getCanvas().on("mousewheel",(function(e){e.preventDefault()})):t.getCanvas().off("mousewheel")),ile(n)&&(t.appendPadding=w8(t.appendPadding,(0,wW.U2)(r,["breadCrumb","position"]))),e}function ule(e){return v8(ole,J8,Y8("rectStyle"),ale,sle,q8,$8,cle,Q8,r9())(e)}var dle={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521d\u59cb",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},hle=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="treemap",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return dle},t.prototype.changeData=function(e){var t=this.options,n=t.colorField,i=t.interactions,r=t.hierarchyConfig;this.updateOption({data:e});var o=rle({data:e,colorField:n,enableDrillDown:nle(i,"treemap-drill-down"),hierarchyConfig:r});this.chart.changeData(o),function(e){var t=e.interactions["drill-down"];if(t){var n=t.context.actions.find((function(e){return"drill-down-action"===e.name}));n.reset()}}(this.chart)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return ule}}(x9),"id"),fle={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function ple(e){e&&e.geometries[0].elements.forEach((function(e){e.shape.toFront()}))}var gle=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.syncElementsPos=function(){ple(this.context.view)},t.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(uX("element-active")),vle=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.syncElementsPos=function(){ple(this.context.view)},t.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(uX("element-highlight")),mle=uX("element-selected"),yle=uX("element-single-selected"),_le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.syncElementsPos=function(){ple(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(mle),ble=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.syncElementsPos=function(){ple(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(yle);dX("venn-element-active",gle),dX("venn-element-highlight",vle),dX("venn-element-selected",_le),dX("venn-element-single-selected",ble),gQ("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),gQ("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),gQ("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),gQ("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),gQ("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),gQ("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var Cle=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,SW.ZT)(t,e),t.prototype.getLabelPoint=function(e,t,n){var i=e.data,r=i.x,o=i.y,a=e.customLabelInfo,s=a.offsetX,l=a.offsetY;return{content:e.content[n],x:r+s,y:o+l}},t}(WJ);bJ("venn",Cle);var Sle=Array.isArray,wle=new RegExp("([a-z])[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)","ig"),kle=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*","ig");Math.PI;EJ("schema","venn",{draw:function(e,t){var n=function(e){if(!e)return null;if(Sle(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(e).replace(wle,(function(e,i,r){var o=[],a=i.toLowerCase();if(r.replace(kle,(function(e,t){t&&o.push(+t)})),"m"===a&&o.length>2&&(n.push([i].concat(o.splice(0,2))),a="l",i="m"===i?"l":"L"),"o"===a&&1===o.length&&n.push([i,o[0]]),"r"===a)n.push([i].concat(o));else for(;o.length>=t[a]&&(n.push([i].concat(o.splice(0,t[a]))),t[a]););return""})),n}(e.data.path),i=function(e){return p8({},e.defaultStyle,{fill:e.color},e.style)}(e),r=t.addGroup({name:"venn-shape"});r.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},i),{path:n}),name:"venn-path"});var o=e.customInfo,a=o.offsetX,s=o.offsetY,l=u0.transform(null,[["t",a,s]]);return r.setMatrix(l),r},getMarker:function(e){var t=e.color;return{symbol:"circle",style:{lineWidth:0,stroke:t,fill:t,r:4}}}});var xle={normal:function(e){return e},multiply:function(e,t){return e*t/255},screen:function(e,t){return 255*(1-(1-e/255)*(1-t/255))},overlay:function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},darken:function(e,t){return e>t?t:e},lighten:function(e,t){return e>t?e:t},dodge:function(e,t){return 255===e||(e=t/255*255/(1-e/255))>255?255:e},burn:function(e,t){return 255===t?255:0===e?0:255*(1-Math.min(1,(1-t/255)/(e/255)))}};function Ele(e,t,n){void 0===n&&(n="normal");var i,r=(i=function(e){if(!xle[e])throw new Error("unknown blend mode "+e);return xle[e]}(n),function(e,t){var n=[];return n[0]=i(e[0],t[0]),n[1]=i(e[1],t[1]),n[2]=i(e[2],t[2]),n})(Tle(e),Tle(t)),o=Tle(e),a=o[0],s=o[1],l=o[2],c=o[3],u=Tle(t),d=u[0],h=u[1],f=u[2],p=u[3],g=Number((c+p*(1-c)).toFixed(2)),v=Math.round((c*(1-p)*(a/255)+c*p*(r[0]/255)+(1-c)*p*(d/255))/g*255),m=Math.round((c*(1-p)*(s/255)+c*p*(r[1]/255)+(1-c)*p*(h/255))/g*255),y=Math.round((c*(1-p)*(l/255)+c*p*(r[2]/255)+(1-c)*p*(f/255))/g*255);return"rgba(".concat(v,", ").concat(m,", ").concat(y,", ").concat(g,")")}function Tle(e){var t,n=e.replace("/s+/g","");return"string"!==typeof n||n.startsWith("rgba")||n.startsWith("#")?(n.startsWith("rgba")&&(t=n.replace("rgba(","").replace(")","").split(",")),n.startsWith("#")&&(t=wU.rgb2arr(n).concat([1])),t.map((function(e,t){return 3===t?Number(e):0|e}))):wU.rgb2arr(wU.toRGB(n)).concat([1])}var Nle=n(59698),Ile=1e-10;function Dle(e,t){var n,i=function(e){for(var t=[],n=0;n<e.length;++n)for(var i=n+1;i<e.length;++i)for(var r=Ale(e[n],e[i]),o=0;o<r.length;++o){var a=r[o];a.parentIndex=[n,i],t.push(a)}return t}(e),r=i.filter((function(t){return function(e,t){for(var n=0;n<t.length;++n)if(Ole(e,t[n])>t[n].radius+Ile)return!1;return!0}(t,e)})),o=0,a=0,s=[];if(r.length>1){var l=Mle(r);for(n=0;n<r.length;++n){var c=r[n];c.angle=Math.atan2(c.x-l.x,c.y-l.y)}r.sort((function(e,t){return t.angle-e.angle}));var u=r[r.length-1];for(n=0;n<r.length;++n){var d=r[n];a+=(u.x+d.x)*(d.y-u.y);for(var h={x:(d.x+u.x)/2,y:(d.y+u.y)/2},f=null,p=0;p<d.parentIndex.length;++p)if(u.parentIndex.indexOf(d.parentIndex[p])>-1){var g=e[d.parentIndex[p]],v=Math.atan2(d.x-g.x,d.y-g.y),m=Math.atan2(u.x-g.x,u.y-g.y),y=m-v;y<0&&(y+=2*Math.PI);var _=m-y/2,b=Ole(h,{x:g.x+g.radius*Math.sin(_),y:g.y+g.radius*Math.cos(_)});b>2*g.radius&&(b=2*g.radius),(null===f||f.width>b)&&(f={circle:g,width:b,p1:d,p2:u})}null!==f&&(s.push(f),o+=Lle(f.circle.radius,f.width),u=d)}}else{var C=e[0];for(n=1;n<e.length;++n)e[n].radius<C.radius&&(C=e[n]);var S=!1;for(n=0;n<e.length;++n)if(Ole(e[n],C)>Math.abs(C.radius-e[n].radius)){S=!0;break}S?o=a=0:(o=C.radius*C.radius*Math.PI,s.push({circle:C,p1:{x:C.x,y:C.y+C.radius},p2:{x:C.x-Ile,y:C.y+C.radius},width:2*C.radius}))}return a/=2,t&&(t.area=o+a,t.arcArea=o,t.polygonArea=a,t.arcs=s,t.innerPoints=r,t.intersectionPoints=i),o+a}function Lle(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function Ole(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function Rle(e,t,n){if(n>=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);var i=t-(n*n-e*e+t*t)/(2*n);return Lle(e,e-(n*n-t*t+e*e)/(2*n))+Lle(t,i)}function Ale(e,t){var n=Ole(e,t),i=e.radius,r=t.radius;if(n>=i+r||n<=Math.abs(i-r))return[];var o=(i*i-r*r+n*n)/(2*n),a=Math.sqrt(i*i-o*o),s=e.x+o*(t.x-e.x)/n,l=e.y+o*(t.y-e.y)/n,c=-(t.y-e.y)*(a/n),u=-(t.x-e.x)*(a/n);return[{x:s+c,y:l-u},{x:s-c,y:l+u}]}function Mle(e){for(var t={x:0,y:0},n=0;n<e.length;++n)t.x+=e[n].x,t.y+=e[n].y;return t.x/=e.length,t.y/=e.length,t}function Ple(e,t,n){var i,r,o=t[0].radius-Ole(t[0],e);for(i=1;i<t.length;++i)(r=t[i].radius-Ole(t[i],e))<=o&&(o=r);for(i=0;i<n.length;++i)(r=Ole(n[i],e)-n[i].radius)<=o&&(o=r);return o}function Zle(e,t){var n,i=[];for(n=0;n<e.length;++n){var r=e[n];i.push({x:r.x,y:r.y}),i.push({x:r.x+r.radius/2,y:r.y}),i.push({x:r.x-r.radius/2,y:r.y}),i.push({x:r.x,y:r.y+r.radius/2}),i.push({x:r.x,y:r.y-r.radius/2})}var o=i[0],a=Ple(i[0],e,t);for(n=1;n<i.length;++n){var s=Ple(i[n],e,t);s>=a&&(o=i[n],a=s)}var l=(0,Nle.nelderMead)((function(n){return-1*Ple({x:n[0],y:n[1]},e,t)}),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,c={x:l[0],y:l[1]},u=!0;for(n=0;n<e.length;++n)if(Ole(c,e[n])>e[n].radius){u=!1;break}for(n=0;n<t.length;++n)if(Ole(c,t[n])<t[n].radius){u=!1;break}if(!u)if(1==e.length)c={x:e[0].x,y:e[0].y};else{var d={};Dle(e,d),c=0===d.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==d.arcs.length?{x:d.arcs[0].circle.x,y:d.arcs[0].circle.y}:t.length?Zle(e,[]):Mle(d.arcs.map((function(e){return e.p1})))}return c}function Fle(e,t){for(var n={},i=function(e){var t={},n=[];for(var i in e)n.push(i),t[i]=[];for(var r=0;r<n.length;r++)for(var o=e[n[r]],a=r+1;a<n.length;++a){var s=e[n[a]],l=Ole(o,s);l+s.radius<=o.radius+1e-10?t[n[a]].push(n[r]):l+o.radius<=s.radius+1e-10&&t[n[r]].push(n[a])}return t}(e),r=0;r<t.length;++r){for(var o=t[r].sets,a={},s={},l=0;l<o.length;++l){a[o[l]]=!0;for(var c=i[o[l]],u=0;u<c.length;++u)s[c[u]]=!0}var d=[],h=[];for(var f in e)f in a?d.push(e[f]):f in s||h.push(e[f]);var p=Zle(d,h);n[o]=p,p.disjoint&&t[r].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return n}var Ble=1e-10;function Hle(e,t,n){return Math.min(e,t)*Math.min(e,t)*Math.PI<=n+1e-10?Math.abs(e-t):(0,Nle.bisect)((function(i){return Rle(e,t,i)-n}),0,e+t)}function zle(e,t){var n=function(e,t){for(var n,i=t&&t.lossFunction?t.lossFunction:jle,r={},o={},a=0;a<e.length;++a){var s=e[a];1==s.sets.length&&(n=s.sets[0],r[n]={x:1e10,y:1e10,rowid:Object.keys(r).length,size:s.size,radius:Math.sqrt(s.size/Math.PI)},o[n]=[])}e=e.filter((function(e){return 2==e.sets.length}));for(a=0;a<e.length;++a){var l=e[a],c=l.hasOwnProperty("weight")?l.weight:1,u=l.sets[0],d=l.sets[1];l.size+Ble>=Math.min(r[u].size,r[d].size)&&(c=0),o[u].push({set:d,size:l.size,weight:c}),o[d].push({set:u,size:l.size,weight:c})}var h=[];for(n in o)if(o.hasOwnProperty(n)){var f=0;for(a=0;a<o[n].length;++a)f+=o[n][a].size*o[n][a].weight;h.push({set:n,size:f})}function p(e,t){return t.size-e.size}h.sort(p);var g={};function v(e){return e.set in g}function m(e,t){r[t].x=e.x,r[t].y=e.y,g[t]=!0}m({x:0,y:0},h[0].set);for(a=1;a<h.length;++a){var y=h[a].set,_=o[y].filter(v);if(n=r[y],_.sort(p),0===_.length)throw"ERROR: missing pairwise overlap information";for(var b=[],C=0;C<_.length;++C){var S=r[_[C].set],w=Hle(n.radius,S.radius,_[C].size);b.push({x:S.x+w,y:S.y}),b.push({x:S.x-w,y:S.y}),b.push({y:S.y+w,x:S.x}),b.push({y:S.y-w,x:S.x});for(var k=C+1;k<_.length;++k)for(var x=r[_[k].set],E=Hle(n.radius,x.radius,_[k].size),T=Ale({x:S.x,y:S.y,radius:w},{x:x.x,y:x.y,radius:E}),N=0;N<T.length;++N)b.push(T[N])}var I=1e50,D=b[0];for(C=0;C<b.length;++C){r[y].x=b[C].x,r[y].y=b[C].y;var L=i(r,e);L<I&&(I=L,D=b[C])}m(D,y)}return r}(e,t),i=t.lossFunction||jle;if(e.length>=8){var r=function(e,t){var n,i=(t=t||{}).restarts||10,r=[],o={};for(n=0;n<e.length;++n){var a=e[n];1==a.sets.length&&(o[a.sets[0]]=r.length,r.push(a))}var s=function(e,t,n){var i=(0,Nle.zerosM)(t.length,t.length),r=(0,Nle.zerosM)(t.length,t.length);return e.filter((function(e){return 2==e.sets.length})).map((function(e){var o=n[e.sets[0]],a=n[e.sets[1]],s=Hle(Math.sqrt(t[o].size/Math.PI),Math.sqrt(t[a].size/Math.PI),e.size);i[o][a]=i[a][o]=s;var l=0;e.size+1e-10>=Math.min(t[o].size,t[a].size)?l=1:e.size<=1e-10&&(l=-1),r[o][a]=r[a][o]=l})),{distances:i,constraints:r}}(e,r,o),l=s.distances,c=s.constraints,u=(0,Nle.norm2)(l.map(Nle.norm2))/l.length;l=l.map((function(e){return e.map((function(e){return e/u}))}));var d,h,f=function(e,t){return function(e,t,n,i){var r,o=0;for(r=0;r<t.length;++r)t[r]=0;for(r=0;r<n.length;++r)for(var a=e[2*r],s=e[2*r+1],l=r+1;l<n.length;++l){var c=e[2*l],u=e[2*l+1],d=n[r][l],h=i[r][l],f=(c-a)*(c-a)+(u-s)*(u-s),p=Math.sqrt(f),g=f-d*d;h>0&&p<=d||h<0&&p>=d||(o+=2*g*g,t[2*r]+=4*g*(a-c),t[2*r+1]+=4*g*(s-u),t[2*l]+=4*g*(c-a),t[2*l+1]+=4*g*(u-s))}return o}(e,t,l,c)};for(n=0;n<i;++n){var p=(0,Nle.zeros)(2*l.length).map(Math.random);h=(0,Nle.conjugateGradient)(f,p,t),(!d||h.fx<d.fx)&&(d=h)}var g=d.x,v={};for(n=0;n<r.length;++n){var m=r[n];v[m.sets[0]]={x:g[2*n]*u,y:g[2*n+1]*u,radius:Math.sqrt(m.size/Math.PI)}}if(t.history)for(n=0;n<t.history.length;++n)(0,Nle.scale)(t.history[n].x,u);return v}(e,t);i(r,e)+1e-8<i(n,e)&&(n=r)}return n}function jle(e,t){var n=0;for(var i=0;i<t.length;++i){var r=t[i],o=void 0;if(1!=r.sets.length){if(2==r.sets.length){var a=e[r.sets[0]],s=e[r.sets[1]];o=Rle(a.radius,s.radius,Ole(a,s))}else o=Dle(r.sets.map((function(t){return e[t]})));n+=(r.hasOwnProperty("weight")?r.weight:1)*(o-r.size)*(o-r.size)}}return n}function Vle(e){var t=function(t){return{max:Math.max.apply(null,e.map((function(e){return e[t]+e.radius}))),min:Math.min.apply(null,e.map((function(e){return e[t]-e.radius})))}};return{xRange:t("x"),yRange:t("y")}}var Wle=(0,wW.HP)((function(e,t,n,i){var r=new Map,o=e.length;return t.forEach((function(t,a){if(1===t[i].length)r.set(t.id,e[(a+o)%o]);else{var s=t[i].map((function(e){return r.get(e)}));r.set(t.id,s.slice(1).reduce((function(e,t){return Ele(e,t,n)}),s[0]))}})),r}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return JSON.stringify(e)}));function Ule(e,t,n,i){void 0===i&&(i=0);var r=e.data,o=e.setsField,a=e.sizeField;if(0===r.length)return i8(J7.WARN,!1,"warn: %s","\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a"),[];var s=r.map((function(e){var t;return(0,SW.pi)((0,SW.pi)({},e),((t={sets:e[o]||[],size:e[a]}).path="",t.id="",t))}));s.sort((function(e,t){return e.sets.length-t.sets.length}));var l=function(e,t){(t=t||{}).maxIterations=t.maxIterations||500;var n=t.initialLayout||zle,i=t.lossFunction||jle;e=function(e){e=e.slice();var t,n,i,r,o=[],a={};for(t=0;t<e.length;++t){var s=e[t];1==s.sets.length?o.push(s.sets[0]):2==s.sets.length&&(a[[i=s.sets[0],r=s.sets[1]]]=!0,a[[r,i]]=!0)}for(o.sort((function(e,t){return e>t?1:-1})),t=0;t<o.length;++t)for(i=o[t],n=t+1;n<o.length;++n)[i,r=o[n]]in a||e.push({sets:[i,r],size:0});return e}(e);var r,o=n(e,t),a=[],s=[];for(r in o)o.hasOwnProperty(r)&&(a.push(o[r].x),a.push(o[r].y),s.push(r));for(var l=(0,Nle.nelderMead)((function(t){for(var n={},r=0;r<s.length;++r){var a=s[r];n[a]={x:t[2*r],y:t[2*r+1],radius:o[a].radius}}return i(n,e)}),a,t),c=l.x,u=0;u<s.length;++u)r=s[u],o[r].x=c[2*u],o[r].y=c[2*u+1];return o}(s),c=function(e,t,n,i){var r=[],o=[];for(var a in e)e.hasOwnProperty(a)&&(o.push(a),r.push(e[a]));t-=2*i,n-=2*i;var s=Vle(r),l=s.xRange,c=s.yRange;if(l.max==l.min||c.max==c.min)return console.log("not scaling solution: zero size detected"),e;for(var u=t/(l.max-l.min),d=n/(c.max-c.min),h=Math.min(d,u),f=(t-(l.max-l.min)*h)/2,p=(n-(c.max-c.min)*h)/2,g={},v=0;v<r.length;++v){var m=r[v];g[o[v]]={radius:h*m.radius,x:i+f+(m.x-l.min)*h,y:i+p+(m.y-c.min)*h}}return g}(l,t,n,i),u=Fle(c,s);return s.forEach((function(e){var t=e.sets,n=t.join(",");e.id=n;var i=t.map((function(e){return c[e]})),r=function(e){var t={};Dle(e,t);var n=t.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var i=n[0].circle;return function(e,t,n){var i=[],r=e-n,o=t;return i.push("M",r,o),i.push("A",n,n,0,1,0,r+2*n,o),i.push("A",n,n,0,1,0,r,o),i.join(" ")}(i.x,i.y,i.radius)}for(var r=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var a=n[o],s=a.circle.radius,l=a.width>s;r.push("\nA",s,s,0,l?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}(i);/[zZ]$/.test(r)||(r+=" Z"),e.path=r;var o=u[n]||{x:0,y:0};(0,wW.f0)(e,o)})),s}function Gle(e,t,n){var i=e.chart,r=e.options,o=r.blendMode,a=r.setsField,s=i.getTheme(),l=s.colors10,c=s.colors20,u=n;(0,wW.kJ)(u)||(u=t.filter((function(e){return 1===e[a].length})).length<=10?l:c);var d=Wle(u,t,o,a);return function(e){return d.get(e)||u[0]}}function Kle(e){var t=e.chart,n=e.options,i=n.legend,r=n.appendPadding,o=n.padding,a=S8(r);return!1!==i&&(a=w8(r,(0,wW.U2)(i,"position"),40)),t.appendPadding=k8([a,o]),e}function Yle(e){var t=e.options.data;t||(i8(J7.WARN,!1,"warn: %s","\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a"),t=[]);var n=t.filter((function(e){return 1===e.sets.length})).map((function(e){return e.sets[0]})),i=t.filter((function(e){var t=e.sets;return function(e,t){for(var n=0;n<t.length;n++)if(!e.includes(t[n]))return!1;return!0}(n,t)}));return(0,wW.Xy)(i,t)||i8(J7.WARN,!1,"warn: %s","\u4ea4\u96c6\u4e2d\u4e0d\u80fd\u51fa\u73b0\u4e0d\u5b58\u5728\u7684\u96c6\u5408, \u8bf7\u8f93\u5165\u5408\u6cd5\u6570\u636e"),(0,wW.b$)({},e,{options:{data:i}})}function qle(e){var t=e.chart,n=e.options,i=n.pointStyle,r=n.setsField,o=n.sizeField,a=S8(t.appendPadding),s=a[0],l=a[1],c=a[2],u=a[3],d={offsetX:u,offsetY:s},h=t.viewBBox,f=h.width,p=h.height,g=Ule(n,Math.max(f-(l+u),0),Math.max(p-(s+c),0),0);t.data(g);var v=C9(p8({},e,{options:{xField:"x",yField:"y",sizeField:o,seriesField:hle,rawFields:[r,o],schema:{shape:"venn",style:i}}})).ext.geometry;v.customInfo(d);var m=function(e,t){var n=e.options.color;if("function"!==typeof n){var i=Gle(e,t,"string"===typeof n?[n]:n);return function(e){return i(e.id)}}return n}(e,g);return"function"===typeof m&&v.color(hle,(function(t){var n=g.find((function(e){return e.id===t})),i=Gle(e,g)(t);return m(n,i)})),e}function $le(e){var t=e.chart,n=e.options.label,i=S8(t.appendPadding),r=i[0],o={offsetX:i[3],offsetY:r},a=m8(t,"schema");if(n){var s=n.callback,l=(0,SW._T)(n,["callback"]);a.label({fields:["id"],callback:s,cfg:(0,wW.b$)({},b8(l),{type:"venn",customLabelInfo:o})})}else a.label(!1);return e}function Xle(e){var t=e.chart,n=e.options,i=n.legend,r=n.sizeField;return t.legend(hle,i),t.legend(r,!1),e}function Qle(e){return e.chart.axis(!1),e}function Jle(e){var t=e.options,n=e.chart,i=t.interactions;if(i){var r={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};X8(p8({},e,{options:{interactions:i.map((function(e){return(0,SW.pi)((0,SW.pi)({},e),{type:r[e.type]||e.type})}))}}))}return n.removeInteraction("legend-active"),n.removeInteraction("legend-highlight"),e}function ece(e){return v8(Kle,J8,Yle,qle,$le,i9({}),Xle,Qle,$8,Jle,Q8)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="venn",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return fle},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return ece},t.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(x9);var tce="x",nce="violinY",ice="minMax",rce="quantile",oce="median",ace="violin_view",sce=p8({},x9.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}}),lce=n(71024),cce=n.n(lce);function uce(e,t){var n=e.length*t;if(0===e.length)throw new Error("quantile requires at least one data point.");if(t<0||t>1)throw new Error("quantiles must be between 0 and 1");return 1===t?e[e.length-1]:0===t?e[0]:n%1!==0?e[Math.ceil(n)-1]:e.length%2===0?(e[n-1]+e[n])/2:e[n]}function dce(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function hce(e,t,n,i){for(n=n||0,i=i||e.length-1;i>n;){if(i-n>600){var r=i-n+1,o=t-n+1,a=Math.log(r),s=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*s*(r-s)/r);o-r/2<0&&(l*=-1),hce(e,t,Math.max(n,Math.floor(t-o*s/r+l)),Math.min(i,Math.floor(t+(r-o)*s/r+l)))}var c=e[t],u=n,d=i;for(dce(e,n,t),e[i]>c&&dce(e,n,i);u<d;){for(dce(e,u,d),u++,d--;e[u]<c;)u++;for(;e[d]>c;)d--}e[n]===c?dce(e,n,d):dce(e,++d,i),d<=t&&(n=d+1),t<=d&&(i=d-1)}}function fce(e,t){var n=e.slice();if(Array.isArray(t)){!function(e,t){for(var n=[0],i=0;i<t.length;i++)n.push(vce(e.length,t[i]));n.push(e.length-1),n.sort(gce);var r=[0,n.length-1];for(;r.length;){var o=Math.ceil(r.pop()),a=Math.floor(r.pop());if(!(o-a<=1)){var s=Math.floor((a+o)/2);pce(e,n[s],Math.floor(n[a]),Math.ceil(n[o])),r.push(a,s,s,o)}}}(n,t);for(var i=[],r=0;r<t.length;r++)i[r]=uce(n,t[r]);return i}return pce(n,vce(n.length,t),0,n.length-1),uce(n,t)}function pce(e,t,n,i){t%1===0?hce(e,t,n,i):(hce(e,t=Math.floor(t),n,i),hce(e,t+1,t+1,i))}function gce(e,t){return e-t}function vce(e,t){var n=e*t;return 1===t?e-1:0===t?0:n%1!==0?Math.ceil(n)-1:e%2===0?n-.5:n}var mce=function(e){return{low:(0,wW.VV)(e),high:(0,wW.Fp)(e),q1:fce(e,.25),q3:fce(e,.75),median:fce(e,[.5]),minMax:[(0,wW.VV)(e),(0,wW.Fp)(e)],quantile:[fce(e,.25),fce(e,.75)]}},yce=function(e,t){var n=cce().create(e,t);return{violinSize:n.map((function(e){return e.y})),violinY:n.map((function(e){return e.x}))}},_ce=function(e){var t=e.xField,n=e.yField,i=e.seriesField,r=e.data,o=e.kde,a={min:o.min,max:o.max,size:o.sampleSize,width:o.width};if(!i){var s=(0,wW.vM)(r,t);return Object.keys(s).map((function(e){var t=s[e].map((function(e){return e[n]}));return(0,SW.pi)((0,SW.pi)({x:e},yce(t,a)),mce(t))}))}var l=[],c=(0,wW.vM)(r,i);return Object.keys(c).forEach((function(e){var r=(0,wW.vM)(c[e],t);return Object.keys(r).forEach((function(t){var o,s=r[t].map((function(e){return e[n]}));l.push((0,SW.pi)((0,SW.pi)(((o={x:t})[i]=e,o),yce(s,a)),mce(s)))}))})),l},bce=["low","high","q1","q3","median"],Cce=[{type:"dodge",marginRatio:1/32}];function Sce(e){var t=e.chart,n=e.options;return t.data(_ce(n)),e}function wce(e){var t=e.chart,n=e.options,i=n.seriesField,r=n.color,o=n.shape,a=void 0===o?"violin":o,s=n.violinStyle,l=n.tooltip,c=n.state,u=t.createView({id:ace});return function(e){var t=e.options,n=t.violin,i=t.xField,r=t.yField,o=t.seriesField,a=t.sizeField,s=d9(t.tooltip,[i,r,o,a]),l=s.fields,c=s.formatter;n&&p9(p8({},e,{options:{type:"violin",colorField:o,tooltipFields:l,mapping:(0,SW.pi)({tooltip:c},n)}}))}({chart:u,options:{xField:tce,yField:nce,seriesField:i||tce,sizeField:"violinSize",tooltip:(0,SW.pi)({fields:bce},l),violin:{style:s,color:r,shape:a},state:c}}),u.geometries[0].adjust(Cce),e}function kce(e){var t=e.chart,n=e.options,i=n.seriesField,r=n.color,o=n.tooltip,a=n.box;if(!1===a)return e;var s=t.createView({id:"min_max_view"});m9({chart:s,options:{xField:tce,yField:ice,seriesField:i||tce,tooltip:(0,SW.pi)({fields:bce},o),state:"object"===typeof a?a.state:{},interval:{color:r,size:1,style:{lineWidth:0}}}}),s.geometries[0].adjust(Cce);var l=t.createView({id:"quantile_view"});m9({chart:l,options:{xField:tce,yField:rce,seriesField:i||tce,tooltip:(0,SW.pi)({fields:bce},o),state:"object"===typeof a?a.state:{},interval:{color:r,size:8,style:{fillOpacity:1}}}}),l.geometries[0].adjust(Cce);var c=t.createView({id:"median_view"});return _9({chart:c,options:{xField:tce,yField:oce,seriesField:i||tce,tooltip:(0,SW.pi)({fields:bce},o),state:"object"===typeof a?a.state:{},point:{color:r,size:1,style:{fill:"white",lineWidth:0}}}}),c.geometries[0].adjust(Cce),l.axis(!1),s.axis(!1),c.axis(!1),c.legend(!1),s.legend(!1),l.legend(!1),e}function xce(e){var t,n=e.chart,i=e.options,r=i.meta,o=i.xAxis,a=i.yAxis,s=p8({},r,((t={}).x=(0,SW.pi)((0,SW.pi)({sync:!0},r8(o,e8)),{type:"cat"}),t.violinY=(0,SW.pi)({sync:!0},r8(a,e8)),t.minMax=(0,SW.pi)({sync:nce},r8(a,e8)),t.quantile=(0,SW.pi)({sync:nce},r8(a,e8)),t.median=(0,SW.pi)({sync:nce},r8(a,e8)),t));return n.scale(s),e}function Ece(e){var t=e.chart,n=e.options,i=n.xAxis,r=n.yAxis,o=L8(t,ace);return!1===i?o.axis(tce,!1):o.axis(tce,i),!1===r?o.axis(nce,!1):o.axis(nce,r),t.axis(!1),e}function Tce(e){var t=e.chart,n=e.options,i=n.legend,r=n.seriesField,o=n.shape;if(!1===i)t.legend(!1);else{var a=r||tce,s=(0,wW.CE)(i,["selected"]);o&&o.startsWith("hollow")||(0,wW.U2)(s,["marker","style","lineWidth"])||(0,wW.t8)(s,["marker","style","lineWidth"],0),t.legend(a,s),(0,wW.U2)(i,"selected")&&(0,wW.S6)(t.views,(function(e){return e.legend(a,i)}))}return e}function Nce(e){var t=L8(e.chart,ace);return r9()((0,SW.pi)((0,SW.pi)({},e),{chart:t})),e}function Ice(e){var t=e.chart,n=e.options.animation;return(0,wW.S6)(t.views,(function(e){A8(e,n)})),e}function Dce(e){return v8(J8,Sce,wce,kce,xce,$8,Ece,Tce,X8,Nce,Ice)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="violin",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return sce},t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData(_ce(this.options))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Dce}}(x9);var Lce="$$yField$$",Oce="$$diffField$$",Rce="$$absoluteField$$",Ace="$$isTotal$$",Mce={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}};function Pce(e,t,n,i){var r=function(e,t,n,i,r){var o,a=[];if((0,wW.u4)(e,(function(e,t){var r;i8(J7.WARN,(0,wW.hj)(t[n]),"".concat(t[n]," is not a valid number"));var o=(0,wW.o8)(t[n])?null:t[n];return a.push((0,SW.pi)((0,SW.pi)({},t),((r={})[i]=[e,e+o],r))),e+o}),0),a.length&&r){var s=(0,wW.U2)(a,[[e.length-1],i,[1]]);a.push(((o={})[t]=r.label,o[n]=s,o[i]=[0,s],o))}return a}(e,t,n,Lce,i);return r.map((function(t,n){var i;return(0,wW.Kn)(t)?(0,SW.pi)((0,SW.pi)({},t),((i={})[Rce]=t.$$yField$$[1],i[Oce]=t.$$yField$$[1]-t.$$yField$$[0],i[Ace]=n===e.length,i)):t}))}function Zce(e){var t=e.options,n=t.locale,i=t.total,r=u9(n).get(["waterfall","total"]);return i&&"string"!==typeof i.label&&r&&(e.options.total.label=r),e}function Fce(e){var t=e.chart,n=e.options,i=n.data,r=n.xField,o=n.yField,a=n.total,s=n.leaderLine,l=n.columnWidthRatio,c=n.waterfallStyle,u=n.risingFill,d=n.fallingFill,h=n.color,f=n.shape,p=n.customInfo;return t.data(Pce(i,r,o,a)),m9(p8({},e,{options:{xField:r,yField:Lce,seriesField:r,rawFields:[o,Oce,Ace,Lce],widthRatio:l,interval:{style:c,shape:f||"waterfall",color:h||function(e){return(0,wW.U2)(e,[Ace])?(0,wW.U2)(a,["style","fill"],""):(0,wW.U2)(e,[Lce,1])-(0,wW.U2)(e,[Lce,0])>0?u:d}}}})).ext.geometry.customInfo((0,SW.pi)((0,SW.pi)({},p),{leaderLine:s})),e}function Bce(e){var t,n,i=e.options,r=i.xAxis,o=i.yAxis,a=i.xField,s=i.yField,l=i.meta,c=p8({},{alias:s},(0,wW.U2)(l,s));return v8(i9(((t={})[a]=r,t[s]=o,t.$$yField$$=o,t),p8({},l,((n={}).$$yField$$=c,n[Oce]=c,n[Rce]=c,n))))(e)}function Hce(e){var t=e.chart,n=e.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?t.axis(o,!1):t.axis(o,i),!1===r?(t.axis(a,!1),t.axis(Lce,!1)):(t.axis(a,r),t.axis(Lce,r)),e}function zce(e){var t=e.chart,n=e.options,i=n.legend,r=n.total,o=n.risingFill,a=n.fallingFill,s=u9(n.locale);if(!1===i)t.legend(!1);else{var l=[{name:s.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:s.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:a}}}];r&&l.push({name:r.label||"",value:"total",marker:{symbol:"square",style:p8({},{r:5},(0,wW.U2)(r,"style"))}}),t.legend(p8({},{custom:!0,position:"top",items:l},i)),t.removeInteraction("legend-filter")}return e}function jce(e){var t=e.chart,n=e.options,i=n.label,r=n.labelMode,o=n.xField,a=m8(t,"interval");if(i){var s=i.callback,l=(0,SW._T)(i,["callback"]);a.label({fields:"absolute"===r?[Rce,o]:[Oce,o],callback:s,cfg:b8(l)})}else a.label(!1);return e}function Vce(e){var t=e.chart,n=e.options,i=n.tooltip,r=n.xField,o=n.yField;if(!1!==i){t.tooltip((0,SW.pi)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},i));var a=t.geometries[0];(null===i||void 0===i?void 0:i.formatter)?a.tooltip("".concat(r,"*").concat(o),i.formatter):a.tooltip(o)}else t.tooltip(!1);return e}function Wce(e){return v8(Zce,J8,Fce,Bce,Hce,zce,Vce,jce,e9,X8,Q8,r9())(e)}EJ("interval","waterfall",{draw:function(e,t){var n=e.customInfo,i=e.points,r=e.nextPoints,o=t.addGroup(),a=this.parsePath(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(i){var r=0===n?"M":"L";t.push([r,i.x,i.y])}}var o=e[0];return t.push(["L",o.x,o.y]),t.push(["z"]),t}(i)),s=function(e){return p8({},e.defaultStyle,e.style,{fill:e.color})}(e);o.addShape("path",{attrs:(0,SW.pi)((0,SW.pi)({},s),{path:a})});var l=(0,wW.U2)(n,"leaderLine");if(l&&r){var c=[["M",i[2].x,i[2].y],["L",r[0].x,r[0].y]];i[2].y===r[1].y&&(c[1]=["L",r[1].x,r[1].y]),c=this.parsePath(c),o.addShape("path",{attrs:(0,SW.pi)({path:c},l.style||{})})}return o}});!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="waterfall",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Mce},t.prototype.changeData=function(e){var t=this.options,n=t.xField,i=t.yField,r=t.total;this.updateOption({data:e}),this.chart.changeData(Pce(e,n,i,r))},t.prototype.getSchemaAdaptor=function(){return Wce},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()}}(x9);var Uce="color",Gce=p8({},x9.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",Uce],formatter:function(e){return{name:e.text,value:e.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),Kce={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function Yce(e,t){return function(e,t){var n=function(){var e=[256,256],t=Qce,n=eue,i=Jce,r=tue,o=nue,a=sue,s=Math.random,l=[],c=1/0,u=Xce,d=Jce,h=cue,f={};function p(e){e.width=e.height=1;var t=Math.sqrt(e.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);e.width=2048/t,e.height=$ce/t;var n=e.getContext("2d",{willReadFrequently:!0});return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:t}}function g(t,n,i){for(var r,o,l,c=n.x,u=n.y,d=Math.sqrt(e[0]*e[0]+e[1]*e[1]),h=a(e),f=s()<.5?1:-1,p=-f;(r=h(p+=f))&&(o=~~r[0],l=~~r[1],!(Math.min(Math.abs(o),Math.abs(l))>=d));)if(n.x=c+o,n.y=u+l,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>e[0]||n.y+n.y1>e[1])&&(!i||!rue(n,t,e[0]))&&(!i||aue(n,i))){for(var g=n.sprite,v=n.width>>5,m=e[0]>>5,y=n.x-(v<<4),_=127&y,b=32-_,C=n.y1-n.y0,S=void 0,w=(n.y+n.y0)*m+(y>>5),k=0;k<C;k++){S=0;for(var x=0;x<=v;x++)t[w+x]|=S<<b|(x<v?(S=g[k*v+x])>>>_:0);w+=m}return delete n.sprite,!0}return!1}return f.start=function(){var a=e[0],v=e[1],m=p(h()),y=f.board?f.board:lue((e[0]>>5)*e[1]),_=l.length,b=[],C=l.map((function(e,a,s){return e.text=u.call(this,e,a,s),e.font=t.call(this,e,a,s),e.style=d.call(this,e,a,s),e.weight=i.call(this,e,a,s),e.rotate=r.call(this,e,a,s),e.size=~~n.call(this,e,a,s),e.padding=o.call(this,e,a,s),e})).sort((function(e,t){return t.size-e.size})),S=-1,w=f.board?[{x:0,y:0},{x:a,y:v}]:null;function k(){for(var t=Date.now();Date.now()-t<c&&++S<_;){var n=C[S];n.x=a*(s()+.5)>>1,n.y=v*(s()+.5)>>1,iue(m,n,C,S),n.hasText&&g(y,n,w)&&(b.push(n),w?f.hasImage||oue(w,n):w=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=e[0]>>1,n.y-=e[1]>>1)}f._tags=b,f._bounds=w}return k(),f},f.createMask=function(t){var n=document.createElement("canvas"),i=e[0],r=e[1];if(i&&r){var o=i>>5,a=lue((i>>5)*r);n.width=i,n.height=r;var s=n.getContext("2d");s.drawImage(t,0,0,t.width,t.height,0,0,i,r);for(var l=s.getImageData(0,0,i,r).data,c=0;c<r;c++)for(var u=0;u<i;u++){var d=o*c+(u>>5),h=c*i+u<<2,p=l[h]>=250&&l[h+1]>=250&&l[h+2]>=250?1<<31-u%32:0;a[d]|=p}f.board=a,f.hasImage=!0}},f.timeInterval=function(e){c=null==e?1/0:e},f.words=function(e){l=e},f.size=function(t){e=[+t[0],+t[1]]},f.font=function(e){t=uue(e)},f.fontWeight=function(e){i=uue(e)},f.rotate=function(e){r=uue(e)},f.spiral=function(e){a=due[e]||e},f.fontSize=function(e){n=uue(e)},f.padding=function(e){o=uue(e)},f.random=function(e){s=uue(e)},f}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(e){(0,wW.UM)(t[e])||n[e](t[e])})),n.words(e),t.imageMask&&n.createMask(t.imageMask);var i=n.start()._tags;i.forEach((function(e){e.x+=t.size[0]/2,e.y+=t.size[1]/2}));var r=t.size,o=r[0],a=r[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:o,y:a,opacity:0}),i}(e,t=(0,wW.f0)({},Kce,t))}var qce=Math.PI/180,$ce=2048;function Xce(e){return e.text}function Qce(){return"serif"}function Jce(){return"normal"}function eue(e){return e.value}function tue(){return 90*~~(2*Math.random())}function nue(){return 1}function iue(e,t,n,i){if(!t.sprite){var r=e.context,o=e.ratio;r.clearRect(0,0,2048/o,$ce/o);var a=0,s=0,l=0,c=n.length;for(--i;++i<c;){t=n[i],r.save(),r.font=t.style+" "+t.weight+" "+~~((t.size+1)/o)+"px "+t.font;var u=r.measureText(t.text+"m").width*o,d=t.size<<1;if(t.rotate){var h=Math.sin(t.rotate*qce),f=Math.cos(t.rotate*qce),p=u*f,g=u*h,v=d*f,m=d*h;u=Math.max(Math.abs(p+m),Math.abs(p-m))+31>>5<<5,d=~~Math.max(Math.abs(g+v),Math.abs(g-v))}else u=u+31>>5<<5;if(d>l&&(l=d),a+u>=2048&&(a=0,s+=l,l=0),s+d>=$ce)break;r.translate((a+(u>>1))/o,(s+(d>>1))/o),t.rotate&&r.rotate(t.rotate*qce),r.fillText(t.text,0,0),t.padding&&(r.lineWidth=2*t.padding,r.strokeText(t.text,0,0)),r.restore(),t.width=u,t.height=d,t.xoff=a,t.yoff=s,t.x1=u>>1,t.y1=d>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,a+=u}for(var y=r.getImageData(0,0,2048/o,$ce/o).data,_=[];--i>=0;)if((t=n[i]).hasText){for(var b=(u=t.width)>>5,C=(d=t.y1-t.y0,0);C<d*b;C++)_[C]=0;if(null==(a=t.xoff))return;s=t.yoff;for(var S=0,w=-1,k=0;k<d;k++){for(C=0;C<u;C++){var x=b*k+(C>>5),E=y[2048*(s+k)+(a+C)<<2]?1<<31-C%32:0;_[x]|=E,S|=E}S?w=k:(t.y0++,d--,k--,s++)}t.y1=t.y0+w,t.sprite=_.slice(0,(t.y1-t.y0)*b)}}}function rue(e,t,n){n>>=5;for(var i,r=e.sprite,o=e.width>>5,a=e.x-(o<<4),s=127&a,l=32-s,c=e.y1-e.y0,u=(e.y+e.y0)*n+(a>>5),d=0;d<c;d++){i=0;for(var h=0;h<=o;h++)if((i<<l|(h<o?(i=r[d*o+h])>>>s:0))&t[u+h])return!0;u+=n}return!1}function oue(e,t){var n=e[0],i=e[1];t.x+t.x0<n.x&&(n.x=t.x+t.x0),t.y+t.y0<n.y&&(n.y=t.y+t.y0),t.x+t.x1>i.x&&(i.x=t.x+t.x1),t.y+t.y1>i.y&&(i.y=t.y+t.y1)}function aue(e,t){return e.x+e.x1>t[0].x&&e.x+e.x0<t[1].x&&e.y+e.y1>t[0].y&&e.y+e.y0<t[1].y}function sue(e){var t=e[0]/e[1];return function(e){return[t*(e*=.1)*Math.cos(e),e*Math.sin(e)]}}function lue(e){for(var t=[],n=-1;++n<e;)t[n]=0;return t}function cue(){return document.createElement("canvas")}function uue(e){return(0,wW.mf)(e)?e:function(){return e}}var due={archimedean:sue,rectangular:function(e){var t=4*e[0]/e[1],n=0,i=0;return function(e){var r=e<0?-1:1;switch(Math.sqrt(1+4*r*e)-r&3){case 0:n+=t;break;case 1:i+=4;break;case 2:n-=t;break;default:i-=4}return[n,i]}}};function hue(e){var t=e.options,n=e.chart,i=n,r=i.width,o=i.height,a=i.padding,s=i.appendPadding,l=i.ele,c=t.data,u=t.imageMask,d=t.wordField,h=t.weightField,f=t.colorField,p=t.wordStyle,g=t.timeInterval,v=t.random,m=t.spiral,y=t.autoFit,_=void 0===y||y,b=t.placementStrategy;if(!c||!c.length)return[];var C,S=p.fontFamily,w=p.fontWeight,k=p.padding,x=p.fontSize,E=function(e,t){return e.map((function(e){return e[t]})).filter((function(e){return"number"===typeof e&&!isNaN(e)}))}(c,h),T=[(C=E,Math.min.apply(Math,C)),vue(E)],N=c.map((function(e){return{text:e[d],value:e[h],color:e[f],datum:e}})),I={imageMask:u,font:S,fontSize:pue(x,T),fontWeight:w,size:fue({width:r,height:o,padding:a,appendPadding:s,autoFit:_,container:l}),padding:k,timeInterval:g,random:v,spiral:m,rotate:gue(t)};if((0,wW.mf)(b)){var D=N.map((function(e,t,i){return(0,SW.pi)((0,SW.pi)((0,SW.pi)({},e),{hasText:!!e.text,font:uue(I.font)(e,t,i),weight:uue(I.fontWeight)(e,t,i),rotate:uue(I.rotate)(e,t,i),size:uue(I.fontSize)(e,t,i),style:"normal"}),b.call(n,e,t,i))}));return D.push({text:"",value:0,x:0,y:0,opacity:0}),D.push({text:"",value:0,x:I.size[0],y:I.size[1],opacity:0}),D}return Yce(N,I)}function fue(e){var t=e.width,n=e.height,i=e.container,r=e.autoFit,o=e.padding,a=e.appendPadding;if(r){var s=g8(i);t=s.width,n=s.height}t=t||400,n=n||400;var l=function(e){var t=S8(e.padding),n=S8(e.appendPadding),i=t[0]+n[0],r=t[1]+n[1],o=t[2]+n[2],a=t[3]+n[3];return[i,r,o,a]}({padding:o,appendPadding:a}),c=l[0],u=l[1],d=l[2];return[t-(l[3]+u),n-(c+d)]}function pue(e,t){if((0,wW.mf)(e))return e;if((0,wW.kJ)(e)){var n=e[0],i=e[1];if(!t)return function(){return(i+n)/2};var r=t[0],o=t[1];return o===r?function(){return(i+n)/2}:function(e){var t=e.value;return(i-n)/(o-r)*(t-r)+n}}return function(){return e}}function gue(e){var t=function(e){var t=e.wordStyle.rotationSteps;t<1&&(i8(J7.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),t=1);return{rotation:e.wordStyle.rotation,rotationSteps:t}}(e),n=t.rotation,i=t.rotationSteps;if(!(0,wW.kJ)(n))return n;var r=n[0],o=n[1],a=1===i?0:(o-r)/(i-1);return function(){return o===r?o:Math.floor(Math.random()*i)*a}}function vue(e){return Math.max.apply(Math,e)}function mue(e){var t=e.chart,n=e.options,i=n.colorField,r=n.color,o=hue(e);return t.data(o),_9(p8({},e,{options:{xField:"x",yField:"y",seriesField:i&&Uce,rawFields:(0,wW.mf)(r)&&(0,SW.ev)((0,SW.ev)([],(0,wW.U2)(n,"rawFields",[]),!0),["datum"],!1),point:{color:r,shape:"word-cloud"}}})).ext.geometry.label(!1),t.coordinate().reflect("y"),t.axis(!1),e}function yue(e){return v8(i9({x:{nice:!1},y:{nice:!1}}))(e)}function _ue(e){var t=e.chart,n=e.options,i=n.legend,r=n.colorField;return!1===i?t.legend(!1):r&&t.legend(Uce,i),e}function bue(e){v8(mue,yue,$8,_ue,X8,Q8,J8,e9)(e)}function Cue(e){return{fontSize:e.data.size,text:e.data.text,textAlign:"center",fontFamily:e.data.font,fontWeight:e.data.weight,fill:e.color||e.defaultStyle.stroke,textBaseline:"alphabetic"}}EJ("point","word-cloud",{draw:function(e,t){var n=e.x,i=e.y,r=t.addShape("text",{attrs:(0,SW.pi)((0,SW.pi)({},Cue(e)),{x:n,y:i})}),o=e.data.rotate;return"number"===typeof o&&u0.rotate(r,o*Math.PI/180),r}});(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="word-cloud",t}(0,SW.ZT)(t,e),t.getDefaultOptions=function(){return Gce},t.prototype.changeData=function(e){this.updateOption({data:e}),this.options.imageMask?this.render():this.chart.changeData(hue({chart:this.chart,options:this.options}))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.render=function(){var t=this;return new Promise((function(n){var i=t.options.imageMask;if(!i)return e.prototype.render.call(t),void n();var r,o=function(i){t.options=(0,SW.pi)((0,SW.pi)({},t.options),{imageMask:i||null}),e.prototype.render.call(t),n()};(r=i,new Promise((function(e,t){if(r instanceof HTMLImageElement)e(r);else{if((0,wW.HD)(r)){var n=new Image;return n.crossOrigin="anonymous",n.src=r,n.onload=function(){e(n)},void(n.onerror=function(){i8(J7.ERROR,!1,"image %s load failed !!!",r),t()})}i8(J7.WARN,void 0===r,"The type of imageMask option must be String or HTMLImageElement."),t()}}))).then(o).catch(o)}))},t.prototype.getSchemaAdaptor=function(){return bue},t.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){e.prototype.triggerResize.call(t)})))}})(x9),function(e){function t(t,n,i,r){var o=e.call(this,t,p8({},r,n))||this;return o.type="g2-plot",o.defaultOptions=r,o.adaptor=i,o}(0,SW.ZT)(t,e),t.prototype.getDefaultOptions=function(){return this.defaultOptions},t.prototype.getSchemaAdaptor=function(){return this.adaptor}}(x9);c9("en-US",{locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}}),c9("zh-CN",{locale:"zh-CN",general:{increase:"\u589e\u52a0",decrease:"\u51cf\u5c11",root:"\u521d\u59cb"},statistic:{total:"\u603b\u8ba1"},conversionTag:{label:"\u8f6c\u5316\u7387"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"\u603b\u8ba1"}});var Sue,wue=function(){return wue=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},wue.apply(this,arguments)},kue=wue({},xl),xue=kue.version,Eue=kue.render;kue.unmountComponentAtNode;try{Number((xue||"").split(".")[0])>=18&&(Sue=kue.createRoot)}catch(Fc){}function Tue(e){var t=kue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===typeof t&&(t.usingClientEntryPoint=e)}var Nue="__rc_react_root__";function Iue(e,t){Sue?function(e,t){Tue(!0);var n=t[Nue]||Sue(t);Tue(!1),n.render(e),t[Nue]=n}(e,t):function(e,t){Eue(e,t)}(e,t)}var Due=new Map,Lue=function(e,t,n){var i=document.createElement("div");return"tooltip"===t&&(i.setAttribute("data-uuid",n),Due.has(n)?i=Due.get(n):Due.set(n,i),i.className="g2-tooltip"),Iue(e,i),i},Oue=function(e,t){return{}.toString.call(e)==="[object ".concat(t,"]")},Rue=function e(t){return t&&"object"===typeof t?(Array.isArray(t)?n=t.map((function(t){return e(t)})):(n={},Object.keys(t).forEach((function(i){return n[i]=e(t[i])}))),n):t;var n},Aue=function(e,t){for(var n=e,i=0;i<t.length;i+=1){if(!(null===n||void 0===n?void 0:n[t[i]])){n=void 0;break}n=n[t[i]]}return n},Mue=function(){return Mue=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Mue.apply(this,arguments)},Pue=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function Zue(e,t){var n=(0,v.useRef)(),i=(0,v.useRef)(),r=(0,v.useRef)(null),o=t.onReady,a=t.onEvent,s=function(e,t,n,i){var r=Aue(e,t);!function(e,t,n){if(!e)return e;var i=e;t.forEach((function(e,r){r<t.length-1?i=i[e]:i[e]=n}))}(e,t,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=Oue(r,"Function")?r.apply(void 0,e):r;return Oue(o,"String")||Oue(o,"Number")||Oue(o,"HTMLDivElement")?o:Lue(o,n,i)}))},l=function(){var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}));Aue(t,["statistic","content","customHtml"])&&s(t,["statistic","content","customHtml"]),Aue(t,["statistic","title","customHtml"])&&s(t,["statistic","title","customHtml"]),"object"===typeof t.tooltip&&(Aue(t,["tooltip","container"])&&s(t,["tooltip","container"],"tooltip",e),Aue(t,["tooltip","customContent"])&&s(t,["tooltip","customContent"],"tooltip",e))};return(0,v.useEffect)((function(){if(n.current&&!(0,wW.Xy)(i.current,t)){var e=!1;if(i.current){var r=i.current,o=(r.data,r.value,r.percent,Pue(r,["data","value","percent"])),a=(t.data,t.value,t.percent,Pue(t,["data","value","percent"]));e=(0,wW.Xy)(o,a)}if(i.current=Rue(t),e&&"Mix"!==(0,wW.U2)(t,"chartType")){var s="data",c=Object.keys(t);["percent"].forEach((function(e){c.includes(e)&&(s=e)})),n.current.changeData((null===t||void 0===t?void 0:t[s])||[]),n.current.render()}else l(),n.current.update(t)}}),[t]),(0,v.useEffect)((function(){if(!r.current)return function(){return null};i.current||(i.current=Rue(t)),l();var s=new e(r.current,Mue({},t));s.toDataURL=function(e,t){return function(e,t){var i;return void 0===e&&(e="image/png"),null===(i=n.current)||void 0===i?void 0:i.chart.canvas.cfg.el.toDataURL(e,t)}(e,t)},s.downloadImage=function(e,t,i){return function(e,t,i){var r;void 0===e&&(e="download"),void 0===t&&(t="image/png");var o=e;-1===e.indexOf(".")&&(o="".concat(e,".").concat(t.split("/")[1]));var a=null===(r=n.current)||void 0===r?void 0:r.chart.canvas.cfg.el.toDataURL(t,i),s=document.createElement("a");return s.href=a,s.download=o,document.body.appendChild(s),s.click(),document.body.removeChild(s),s=null,o}(e,t,i)},s.render(),n.current=function(e){if(!e)return e;var t={};for(var n in e)t[n]=e[n];return t}(s),o&&o(s);var c=function(e){a&&a(s,e)};return s.on("*",c),function(){n.current&&(n.current.destroy(),n.current.off("*",c),n.current=void 0)}}),[]),{chart:n,container:r}}var Fue=function(e,t){e&&((0,wW.mf)(e)?e(t):e.current=t)},Bue=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Hue=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hasError:!1},t.renderError=function(e){var n=t.props.errorTemplate;return"function"===typeof n?n(e):n||v.createElement("h5",null,"\u7ec4\u4ef6\u51fa\u9519\u4e86\uff0c\u8bf7\u6838\u67e5\u540e\u91cd\u8bd5\uff1a ",e.message)},t}return Bue(t,e),t.getDerivedStateFromError=function(e){return{hasError:!0,error:e}},t.getDerivedStateFromProps=function(e,t){return t.children!==e.children?{children:e.children,hasError:!1,error:void 0}:null},t.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):v.createElement(v.Fragment,null,this.props.children)},t}(v.Component),zue=Hue,jue=function(){return jue=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},jue.apply(this,arguments)};var Vue=function(e){var t=e.animate,n=e.backgroundColor,i=e.backgroundOpacity,r=e.baseUrl,o=e.children,a=e.foregroundColor,s=e.foregroundOpacity,l=e.gradientRatio,c=e.uniqueKey,u=e.interval,d=e.rtl,h=e.speed,f=e.style,p=e.title,g=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","interval","rtl","speed","style","title"]),m=c||Math.random().toString(36).substring(6),y=m+"-diff",_=m+"-animated-diff",b=m+"-aria",C=d?{transform:"scaleX(-1)"}:null,S="0; "+u+"; 1",w=h+"s";return(0,v.createElement)("svg",jue({"aria-labelledby":b,role:"img",style:jue(jue({},f),C)},g),p?(0,v.createElement)("title",{id:b},p):null,(0,v.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+r+"#"+y+")",style:{fill:"url("+r+"#"+_+")"}}),(0,v.createElement)("defs",{role:"presentation"},(0,v.createElement)("clipPath",{id:y},o),(0,v.createElement)("linearGradient",{id:_},(0,v.createElement)("stop",{offset:"0%",stopColor:n,stopOpacity:i},t&&(0,v.createElement)("animate",{attributeName:"offset",values:-l+"; "+-l+"; 1",keyTimes:S,dur:w,repeatCount:"indefinite"})),(0,v.createElement)("stop",{offset:"50%",stopColor:a,stopOpacity:s},t&&(0,v.createElement)("animate",{attributeName:"offset",values:-l/2+"; "+-l/2+"; "+(1+l/2),keyTimes:S,dur:w,repeatCount:"indefinite"})),(0,v.createElement)("stop",{offset:"100%",stopColor:n,stopOpacity:i},t&&(0,v.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+l),keyTimes:S,dur:w,repeatCount:"indefinite"})))))};Vue.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading..."};var Wue=function(e){return e.children?(0,v.createElement)(Vue,jue({},e)):(0,v.createElement)(Uue,jue({},e))},Uue=function(e){return(0,v.createElement)(Wue,jue({viewBox:"0 0 476 124"},e),(0,v.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,v.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,v.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,v.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,v.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,v.createElement)("circle",{cx:"20",cy:"20",r:"20"}))},Gue=Wue,Kue=function(e){var t=e.loadingTemplate,n=e.theme,i=void 0===n?"light":n;return v.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:"dark"===i?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},t||v.createElement(Gue,{viewBox:"0 0 400 180",width:200,height:90,speed:1,backgroundColor:"dark"===i?"#262626":"#D9D9D9"},v.createElement("rect",{x:"20",y:"5",rx:"0",ry:"0",width:"1",height:"170"}),v.createElement("rect",{x:"20",y:"175",rx:"0",ry:"0",width:"360",height:"1"}),v.createElement("rect",{x:"40",y:"75",rx:"0",ry:"0",width:"35",height:"100"}),v.createElement("rect",{x:"80",y:"125",rx:"0",ry:"0",width:"35",height:"50"}),v.createElement("rect",{x:"120",y:"105",rx:"0",ry:"0",width:"35",height:"70"}),v.createElement("rect",{x:"160",y:"35",rx:"0",ry:"0",width:"35",height:"140"}),v.createElement("rect",{x:"200",y:"55",rx:"0",ry:"0",width:"35",height:"120"}),v.createElement("rect",{x:"240",y:"15",rx:"0",ry:"0",width:"35",height:"160"}),v.createElement("rect",{x:"280",y:"135",rx:"0",ry:"0",width:"35",height:"40"}),v.createElement("rect",{x:"320",y:"85",rx:"0",ry:"0",width:"35",height:"90"})))},Yue=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},que=(0,v.forwardRef)((function(e,t){var n=e.chartRef,i=e.style,r=void 0===i?{height:"inherit"}:i,o=e.className,a=e.loading,s=e.loadingTemplate,l=e.errorTemplate,c=Yue(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),u=Zue(z9,c),d=u.chart,h=u.container;return(0,v.useEffect)((function(){Fue(n,d.current)}),[d.current]),(0,v.useImperativeHandle)(t,(function(){return{getChart:function(){return d.current}}})),v.createElement(zue,{errorTemplate:l},a&&v.createElement(Kue,{loadingTemplate:s,theme:e.theme}),v.createElement("div",{className:o,style:r,ref:h}))})),$ue=que,Xue=sE.Title,Que={xField:"date",yField:"count",smooth:!0,label:{offsetY:-6,style:{fill:"rgb(3, 104, 219)"}},point:{size:3,shape:"circle",style:{fill:"white",stroke:"#5B8FF9",lineWidth:2}}},Jue=function(e){var t=e.msgGatherList;return(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsx)(AT,{title:(0,ES.jsx)(Xue,{level:3,children:"\u8bbe\u5907\u6d88\u606f\u603b\u6570"}),extra:"\u6bcf\u65e5\u51cc\u6668\u66f4\u65b0",children:(0,ES.jsx)($ue,(0,Ft.Z)((0,Ft.Z)({data:t,height:200,tooltip:{formatter:function(e){return{name:"\u6570\u636e",value:e.count}}}},Que),{},{style:{marginTop:"-10px"}}))})})},ede=sE.Title,tde=function(e){var t=e.quickNavigationList,n=lt();return(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsx)(AT,{title:(0,ES.jsx)(ede,{level:3,children:"\u5feb\u6377\u5165\u53e3"}),children:(0,ES.jsx)(mZ,{style:{marginTop:"-10px"},children:null===t||void 0===t?void 0:t.map((function(e){var t=e.name,i=e.icon;return(0,ES.jsxs)(yZ,{span:8,className:"quickNavigation-item",onClick:function(){"\u6dfb\u52a0\u4ea7\u54c1"===t&&n("/gateway/product/manage?create"),"\u6dfb\u52a0\u8bbe\u5907"===t&&n("/gateway/device/manage?create"),"\u4e91\u63d2\u4ef6"===t&&n("/cloud/my/service"),"\u670d\u52a1\u76d1\u63a7"===t&&n("/monitor/systemMonitor"),"\u89c4\u5219\u5f15\u64ce"===t&&n("/advanced/rule/engine")},children:[(0,ES.jsx)("div",{className:"quickNavigation-item__iconBack",children:(0,ES.jsx)("img",{src:i,alt:"",className:"quickNavigation-item__icon"})}),(0,ES.jsx)("div",{className:"quickNavigation-item__name",children:t})]},t)}))})})})},nde=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},ide=(0,v.forwardRef)((function(e,t){var n=e.chartRef,i=e.style,r=void 0===i?{height:"inherit"}:i,o=e.className,a=e.loading,s=e.loadingTemplate,l=e.errorTemplate,c=nde(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),u=Zue(qte,c),d=u.chart,h=u.container;return(0,v.useEffect)((function(){Fue(n,d.current)}),[d.current]),(0,v.useImperativeHandle)(t,(function(){return{getChart:function(){return d.current}}})),v.createElement(zue,{errorTemplate:l},a&&v.createElement(Kue,{loadingTemplate:s,theme:e.theme}),v.createElement("div",{className:o,style:r,ref:h}))})),rde=ide,ode=sE.Title,ade={"\u7d27\u6025":"#f2a276","\u91cd\u8981":"#2a7ae7","\u6b21\u8981":"#6aa2f8","\u63d0\u793a":"#92befa"},sde={appendPadding:10,angleField:"count",colorField:"alert_level",radius:.55,innerRadius:.6,interactions:[{type:"element-selected"},{type:"element-active"}]},lde=function(e){var t=e.alertPlateList,n=(0,v.useCallback)((function(e){return ade[e.alert_level]}),[]);return(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsxs)(AT,{title:(0,ES.jsx)(ode,{level:3,children:"\u544a\u8b66\u76f8\u5173"}),children:[(0,ES.jsx)(rde,(0,Ft.Z)({data:t,height:250,style:{margin:"-20px",marginTop:"-60px"},color:n,legend:!1,statistic:{title:!1,content:{content:""}},label:{type:"spider",labelHeight:28,content:function(e){return"".concat(e.alert_level,"\n").concat(e.count)}}},sde)),(0,ES.jsx)("div",{style:{fontSize:14,color:"#aaa",textAlign:"center",marginTop:"-40px"},children:"\u6570\u636e\u7edf\u8ba1\u622a\u6b62\u6628\u65e524\u65f6"})]})})},cde=function(){var e=(0,v.useState)(),t=(0,k.Z)(e,2),n=t[0],i=t[1],r=(0,v.useCallback)((function(){kk({url:"/api/v1/home-page",method:"get"}).then((function(e){e.success&&i((0,Ft.Z)((0,Ft.Z)({},e.result),{},{msg_gather:e.result.msg_gather.reverse()}))})).catch((function(e){console.log(e)}))}),[]);return(0,v.useEffect)((function(){r()}),[]),(0,ES.jsx)("div",{className:"dashboard",children:(0,ES.jsxs)(mZ,{gutter:[20,20],children:[(0,ES.jsxs)(yZ,{span:24,xl:{span:18},xxl:18,children:[(0,ES.jsx)(CW,{pageInfo:null===n||void 0===n?void 0:n.pageInfo}),(0,ES.jsx)("div",{className:"mt20",children:(null===n||void 0===n?void 0:n.msg_gather)&&(0,ES.jsx)(Jue,{msgGatherList:null===n||void 0===n?void 0:n.msg_gather})})]}),(0,ES.jsxs)(yZ,{span:24,xl:{span:6},xxl:6,children:[(0,ES.jsx)(tde,{quickNavigationList:null===n||void 0===n?void 0:n.quickNavigation}),(0,ES.jsx)("div",{className:"mt20",children:(null===n||void 0===n?void 0:n.alertPlate)&&(0,ES.jsx)(lde,{alertPlateList:null===n||void 0===n?void 0:n.alertPlate})})]})]})})};var ude={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"},dde=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:ude}))};dde.displayName="ArrowsAltOutlined";var hde=v.forwardRef(dde),fde=sE.Text,pde=qp.useMessage,gde=Zy.TextArea,vde=Gj.RangePicker,mde={appendPadding:10,angleField:"count",colorField:"alert_level",radius:.75,innerRadius:.6,interactions:[{type:"element-selected"},{type:"element-active"}]},yde={"\u7d27\u6025":"#f2a276","\u91cd\u8981":"#2a7ae7","\u6b21\u8981":"#6aa2f8","\u63d0\u793a":"#92befa"},_de=function(e){!function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e);var t=lt(),n=pde(),i=(0,k.Z)(n,2),r=i[0],o=i[1],a=(0,v.useState)(),s=(0,k.Z)(a,2),l=s[0],c=s[1],u=(0,v.useState)({prompt:0,promptPercent:"0%",secondary:0,secondaryPercent:"0%",important:0,importantPercent:"0%",urgent:0,urgentPercent:"0%",total:0}),d=(0,k.Z)(u,2),h=d[0],f=d[1],p=(0,v.useCallback)((function(){kk({url:"/api/v1/alert-plate",method:"get"}).then((function(e){if(e.success){c(e.result);for(var t={prompt:0,promptPercent:"0%",secondary:0,secondaryPercent:"0%",important:0,importantPercent:"0%",urgent:0,urgentPercent:"0%",total:0},n=0,i=0;i<e.result.length;i++){n+=e.result[i].count}for(var r=0;r<e.result.length;r++){var o=e.result[r],a=o.alert_level,s=o.count;"\u63d0\u793a"===a&&(t.prompt=s,t.promptPercent="".concat((0===n?0:s/n*100).toFixed(2),"%")),"\u6b21\u8981"===a&&(t.secondary=s,t.secondaryPercent="".concat((0===n?0:s/n*100).toFixed(2),"%")),"\u7d27\u6025"===a&&(t.urgent=s,t.urgentPercent="".concat((0===n?0:s/n*100).toFixed(2),"%")),"\u91cd\u8981"===a&&(t.important=s,t.importantPercent="".concat((0===n?0:s/n*100).toFixed(2),"%"))}t.total=n,f(t)}})).catch((function(e){console.log(e)}))}),[]),g=TM({onRequest:function(e){var t,n;return p(),function(e){return kk({url:"/api/v1/alert-list",params:e})}((0,Ft.Z)((0,Ft.Z)({},e),{},{trigger_start_time:null===(t=e.trigger_time)||void 0===t?void 0:t[0].valueOf(),trigger_end_time:null===(n=e.trigger_time)||void 0===n?void 0:n[1].valueOf(),trigger_time:void 0}))}}),m=g.loading,y=g.dataSource,_=g.pagination,b=g.form,C=g.reload,S=g.search,w=g.reset,x=(0,v.useState)(!1),N=(0,k.Z)(x,2),I=N[0],D=N[1],L=(0,v.useState)(null),O=(0,k.Z)(L,2),R=O[0],A=O[1],M=function(){var e=(0,T.Z)((0,E.Z)().mark((function e(){var t,n;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.validateFields();case 2:t=e.sent,n=t.message,Fk({id:null===R||void 0===R?void 0:R.id,message:n}).then((function(e){e.success?(r.open({type:"success",content:"\u5904\u7406\u6210\u529f"}),D(!1),C()):r.open({type:"error",content:e.errorMsg})}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P=(0,v.useCallback)((function(e){return yde[e.alert_level]}),[]);return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsxs)(mZ,{className:"mt20",children:[(0,ES.jsx)(yZ,{flex:"0 1 336px",children:(0,ES.jsx)(rde,(0,Ft.Z)({data:l||[],height:180,style:{marginTop:"-20px"},legend:!1,statistic:{title:!1,content:{content:""}},label:!1,color:P},mde))}),(0,ES.jsx)(yZ,{flex:"0 1 370px",children:(0,ES.jsxs)("div",{style:{marginLeft:"60px"},children:[(0,ES.jsx)("div",{style:{color:"#aaa"},children:"\u544a\u8b66\u6570\uff087\u65e5\uff09"}),(0,ES.jsx)("div",{style:{fontSize:"20px",fontWeight:600},className:"mt15",children:h.total}),(0,ES.jsxs)(mZ,{className:"mt15",children:[(0,ES.jsxs)(yZ,{span:6,children:[(0,ES.jsxs)("div",{style:{color:yde["\u7d27\u6025"]},children:["\u7d27\u6025 ",h.urgentPercent]}),(0,ES.jsx)("div",{style:{fontSize:"20px"},className:"mt10",children:h.urgent})]}),(0,ES.jsxs)(yZ,{span:6,children:[(0,ES.jsxs)("div",{style:{color:yde["\u91cd\u8981"]},children:["\u91cd\u8981 ",h.importantPercent]}),(0,ES.jsx)("div",{style:{fontSize:"20px"},className:"mt10",children:h.important})]}),(0,ES.jsxs)(yZ,{span:6,children:[(0,ES.jsxs)("div",{style:{color:yde["\u6b21\u8981"]},children:["\u6b21\u8981 ",h.secondaryPercent]}),(0,ES.jsx)("div",{style:{fontSize:"20px"},className:"mt10",children:h.secondary})]}),(0,ES.jsxs)(yZ,{span:6,children:[(0,ES.jsxs)("div",{style:{color:yde["\u63d0\u793a"]},children:["\u63d0\u793a ",h.promptPercent]}),(0,ES.jsx)("div",{style:{fontSize:"20px"},className:"mt10",children:h.prompt})]})]})]})})]}),o,(0,ES.jsxs)(ip,{layout:"inline",className:"ml20 mt20",form:b,children:[(0,ES.jsx)(ip.Item,{name:"alert_level",children:(0,ES.jsx)(NI,{placeholder:"\u544a\u8b66\u7ea7\u522b",style:{width:90},allowClear:!0,options:[{value:"",label:"\u5168\u90e8"},{value:"\u7d27\u6025",label:"\u7d27\u6025"},{value:"\u91cd\u8981",label:"\u91cd\u8981"},{value:"\u6b21\u8981",label:"\u6b21\u8981"},{value:"\u63d0\u793a",label:"\u63d0\u793a"}]})},"alert_level"),(0,ES.jsx)(ip.Item,{name:"status",children:(0,ES.jsx)(NI,{placeholder:"\u544a\u8b66\u72b6\u6001",style:{width:90},allowClear:!0,options:[{value:"",label:"\u5168\u90e8"},{value:"\u672a\u5904\u7406",label:"\u672a\u5904\u7406"},{value:"\u5df2\u5904\u7406",label:"\u5df2\u5904\u7406"},{value:"\u5ffd\u7565",label:"\u5ffd\u7565"}]})},"status"),(0,ES.jsx)(ip.Item,{name:"name",children:(0,ES.jsx)(Zy,{style:{width:220},addonBefore:"\u544a\u8b66\u89c4\u5219\u540d\u79f0",allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9"})},"name"),(0,ES.jsx)(ip.Item,{name:"trigger_time",label:"\u89e6\u53d1\u65f6\u95f4",children:(0,ES.jsx)(vde,{style:{width:300},showTime:{format:"HH:mm:ss"},format:"YYYY-MM-DD HH:mm:ss",placeholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]})},"trigger_time"),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"primary",onClick:S,children:"\u67e5\u8be2"})}),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"default",onClick:w,children:"\u91cd\u7f6e"})})]}),(0,ES.jsx)(AT,{className:"m20",size:"small",children:(0,ES.jsx)(YA,{loading:m,dataSource:y,pagination:_,bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u544a\u8b66ID",key:"id",dataIndex:"id",width:"6em"},{title:"\u544a\u8b66\u89c4\u5219\u540d\u79f0",key:"name",dataIndex:"name",width:"8em"},{title:"\u544a\u8b66\u7b49\u7ea7",key:"alert_level",dataIndex:"alert_level",width:70},{title:"\u89e6\u53d1\u65f6\u95f4",key:"trigger_time",dataIndex:"trigger_time",width:80,render:function(e){return 0===e?"-":ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u5904\u7406\u65f6\u95f4",key:"treated_time",dataIndex:"treated_time",width:80,render:function(e){return 0===e?"-":ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u544a\u8b66\u72b6\u6001",key:"status",dataIndex:"status",width:"6em",render:function(e,t){return(0,ES.jsxs)(ES.Fragment,{children:[e&&(0,ES.jsx)(sF,{color:{"\u5df2\u5904\u7406":"green","\u5ffd\u7565":"gray","\u672a\u5904\u7406":"orange"}[t.status]||"gray"}),(0,ES.jsx)(fde,{className:"ml5",children:e||"-"})]})}},{title:"\u5904\u7406\u7ed3\u679c",key:"message",dataIndex:"message",ellipsis:!0,width:130,render:function(e){return e?(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(Vf,{placement:"bottom",title:e,children:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(hde,{style:{color:"#1890ff"}})," "]})}),e]}):"-"}},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",width:"8em",render:function(e,n){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(fde,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(sE.Link,{disabled:"\u5df2\u5904\u7406"===n.status,onClick:function(){return function(e){A(e),D(!0)}(n)},children:"\u5904\u7406"}),(0,ES.jsx)(tM,{title:"\u6b64\u64cd\u4f5c\u5c06\u5ffd\u7565\u8be5\u6761\u8bb0\u5f55, \u662f\u5426\u7ee7\u7eed?",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){(function(e){return kk({url:"/api/v1/alert-ignore/".concat(e),method:"put"})})(null===n||void 0===n?void 0:n.id).then((function(e){e.success?(r.open({type:"success",content:"\u64cd\u4f5c\u6210\u529f"}),C(),console.log("\u64cd\u4f5c\u6210\u529f")):r.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{disabled:"\u5ffd\u7565"===n.status,children:"\u5ffd\u7565"})}),(0,ES.jsx)(sE.Link,{onClick:function(){var e=JSON.parse(n.alert_result),i=e.code,r=e.device_id,o=e.trigger,a=e.end_at,s=e.start_at;t("/gateway/device/detail/".concat(encodeURIComponent(r),"?code=").concat(encodeURIComponent(i),"&trigger=").concat(encodeURIComponent(o),"&end_at=").concat(encodeURIComponent(a),"&start_at=").concat(encodeURIComponent(s)))},children:"\u6570\u636e\u5b9a\u4f4d"})]})}}]})}),(0,ES.jsx)(gm,{open:I,onOk:M,onCancel:function(){D(!1),b.resetFields()},okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",maskClosable:!1,children:(0,ES.jsx)(ip,{form:b,layout:"vertical",children:(0,ES.jsx)(ip.Item,{label:"\u5904\u7406\u610f\u89c1",name:"message",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5904\u7406\u610f\u89c1"}],children:(0,ES.jsx)(gde,{placeholder:"\u8bf7\u8f93\u5165\u5904\u7406\u610f\u89c1",rows:4})})})})]})},bde=ip.useForm,Cde=Zy.TextArea,Sde=function(e){console.log("selected ".concat(e))},wde=(0,v.forwardRef)((function(e,t){var n=e.onFinish,i=bde(),r=(0,k.Z)(i,1)[0],o=(0,v.useState)(),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useState)(!1),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=(0,v.useCallback)((function(){r.resetFields(),m(!1)}),[r]);return(0,v.useImperativeHandle)(t,(function(){return{open:function(e){l(e),m(!0),e&&r.setFieldsValue(e)}}}),[r]),(0,ES.jsx)(jM,{title:s?"\u7f16\u8f91\u89c4\u5219":"\u6dfb\u52a0\u89c4\u5219",placement:"right",open:g,width:550,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:y}),onClose:y,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:d,disabled:d,onClick:function(){r.validateFields().then((function(e){h(!0),function(e){return kk({url:"/api/v1/alert-rule",method:"post",data:e})}(e).then((function(e){e.success?(qp.success("\u6dfb\u52a0\u6210\u529f"),y(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:y,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{form:r,layout:"vertical",children:[(0,ES.jsx)(ip.Item,{label:"\u89c4\u5219\u540d\u79f0",name:"name",rules:[{required:!0,validator:function(e,t,n){t?/^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5_-]{0,31}$/.test(t)?n():n("1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"):n("\u8bf7\u8f93\u5165\u89c4\u5219\u540d\u79f0")}}],children:(0,ES.jsx)(Zy,{placeholder:"1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"})}),(0,ES.jsx)(ip.Item,{label:"\u544a\u8b66\u7c7b\u578b",name:"type",children:(0,ES.jsx)(cO,{checked:!0,children:"\u8bbe\u5907\u544a\u8b66"})}),(0,ES.jsx)(ip.Item,{label:"\u544a\u8b66\u7ea7\u522b",name:"alert_level",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u544a\u8b66\u7ea7\u522b"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",onChange:Sde,options:[{value:"\u7d27\u6025",label:"\u7d27\u6025"},{value:"\u91cd\u8981",label:"\u91cd\u8981"},{value:"\u6b21\u8981",label:"\u6b21\u8981"},{value:"\u63d0\u793a",label:"\u63d0\u793a"}]})}),(0,ES.jsx)(ip.Item,{label:"\u89c4\u5219\u63cf\u8ff0",name:"description",children:(0,ES.jsx)(Cde,{showCount:!0,maxLength:100,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u4fe1\u606f",rows:4})})]})})})),kde=sE.Text,xde=qp.useMessage,Ede=Zy.Search,Tde=function(){var e=lt(),t=xde(),n=(0,k.Z)(t,2),i=n[0],r=n[1],o=(0,v.useRef)(null),a=TM({onRequest:function(e){return function(e){return kk({url:"/api/v1/alert-rule",params:e})}((0,Ft.Z)({},e))}}),s=a.loading,l=a.dataSource,c=a.pagination,u=a.form,d=a.reload,h=a.search;return(0,ES.jsxs)(ES.Fragment,{children:[r,(0,ES.jsx)(wde,{ref:o,onFinish:d}),(0,ES.jsx)(ip,{layout:"inline",className:"ml20",form:u,children:(0,ES.jsx)(ip.Item,{name:"name",children:(0,ES.jsx)(Ede,{placeholder:"\u8bf7\u8f93\u5165\u544a\u8b66\u89c4\u5219\u540d\u79f0",allowClear:!0,onSearch:h})},"name")}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsx)(Vy,{className:"mb15 justify-space-between",children:(0,ES.jsxs)(Jg,{type:"primary",onClick:function(){var e;null===(e=o.current)||void 0===e||e.open()},children:[(0,ES.jsx)(RE,{}),"\u6dfb\u52a0\u89c4\u5219"]})}),(0,ES.jsx)(YA,{loading:s,dataSource:l,pagination:c,bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u544a\u8b66\u89c4\u5219\u540d\u79f0",key:"name",dataIndex:"name",width:"10em"},{title:"\u544a\u8b66\u89c4\u5219\u63cf\u8ff0",key:"description",dataIndex:"description",width:200,ellipsis:!0,render:function(e){return e?(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(Vf,{placement:"bottom",title:e,children:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(hde,{style:{color:"#1890ff"}})," "]})}),e]}):"-"}},{title:"\u544a\u8b66\u7c7b\u578b",key:"alert_type",dataIndex:"alert_type",width:"6em"},{title:"\u544a\u8b66\u7ea7\u522b",key:"alert_level",dataIndex:"alert_level",width:"6em"},{title:"\u521b\u5efa\u65f6\u95f4",key:"created",dataIndex:"created",width:130,render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u72b6\u6001",key:"status",dataIndex:"status",width:"6em",render:function(e){return"stopped"===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(sM,{style:{color:"#87909d"}}),"\u7981\u7528"]}):"running"===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Nu,{style:{color:"#55af70"}}),"\u542f\u7528"]}):"-"}},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",width:130,render:function(t,n){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(kde,{type:"secondary",children:"/"}),children:["running"===n.status?(0,ES.jsx)(tM,{title:"\u60a8\u786e\u5b9a\u8981\u7981\u7528\u6b64\u544a\u8b66\u89c4\u5219\u5417\uff1f",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){var e;(e=null===n||void 0===n?void 0:n.id,kk({url:"/api/v1/alert-rule/".concat(e,"/stop "),method:"post"})).then((function(e){e.success?(i.open({type:"success",content:"\u7981\u7528\u6210\u529f"}),d()):i.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{children:"\u7981\u7528"})}):(0,ES.jsx)(tM,{title:"\u60a8\u786e\u5b9a\u8981\u542f\u7528\u6b64\u544a\u8b66\u89c4\u5219\u5417\uff1f",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){var e;(e=null===n||void 0===n?void 0:n.id,kk({url:"/api/v1/alert-rule/".concat(e,"/start"),method:"post"})).then((function(e){e.success?(i.open({type:"success",content:"\u542f\u7528\u6210\u529f"}),d()):i.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{children:"\u542f\u7528"})}),(0,ES.jsx)(sE.Link,{onClick:function(){e("/monitor/alarmCenter/detail/".concat(null===n||void 0===n?void 0:n.id))},children:"\u89c4\u5219\u8be6\u60c5"}),(0,ES.jsx)(tM,{title:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u6b64\u544a\u8b66\u89c4\u5219\u5417\uff1f",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){var e;(e=null===n||void 0===n?void 0:n.id,kk({url:"/api/v1/alert-rule/".concat(e),method:"delete"})).then((function(e){e.success?(i.open({type:"success",content:"\u5220\u9664\u6210\u529f"}),d()):i.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}]})]})]})},Nde=function(){var e=(0,v.useMemo)((function(){var e=window.location.hash;return e?e.slice(1,2):"1"}),[]);return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(kM,{title:"\u544a\u8b66\u4e2d\u5fc3",describe:"\u5e73\u53f0\u63d0\u4f9b\u76d1\u63a7\u544a\u8b66\u529f\u80fd\uff0c\u7528\u6237\u53ef\u4ee5\u9488\u5bf9\u81ea\u5df1\u5173\u5fc3\u7684\u4e1a\u52a1\u6307\u6807\u8bbe\u7f6e\u544a\u8b66\u89c4\u5219\uff0c\u5f53\u76d1\u63a7\u6307\u6807\u6ee1\u8db3\u6761\u4ef6\u89e6\u53d1\u540e\uff0c\u652f\u6301\u4ee5\u544a\u8b66\u5217\u8868\u3001\u9489\u9489\u673a\u5668\u4eba\u3001\u5fae\u4fe1\u673a\u5668\u4eba\u7b49\u65b9\u5f0f\u901a\u77e5\u7528\u6237\uff0c\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u5904\u7406\u6545\u969c\uff0c\u907f\u514d\u4e1a\u52a1\u635f\u5931\u3002",background:n(64669)}),(0,ES.jsx)(AT,{bodyStyle:{padding:0},children:(0,ES.jsx)(wT,{className:"drive-image mt20",type:"card",defaultActiveKey:e,items:[{key:"1",label:"\u544a\u8b66\u5217\u8868",children:(0,ES.jsx)(_de,{})},{key:"2",label:"\u544a\u8b66\u89c4\u5219",children:(0,ES.jsx)(Tde,{})}],onTabClick:function(e){window.location.hash=e}})})]})},Ide={xField:"time",yField:"value",smooth:!0,xAxis:{range:[0,1]}},Dde=function(){var e=(0,v.useState)(),t=(0,k.Z)(e,2),n=t[0],i=t[1],r=(0,v.useState)("hour"),o=(0,k.Z)(r,2),a=o[0],s=o[1],l=(0,v.useState)(!1),c=(0,k.Z)(l,2),u=c[0],d=c[1],h=Yc(),f=(0,k.Z)(h,1)[0];function p(e){return new Date(e).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}var g=(0,v.useCallback)((function(e){var t,n=e.metrics_type;d(!0),(t={metrics_type:n},kk({url:"/api/v1/metrics/system",params:t})).then((function(e){e.success&&i(e.result)})).catch((function(e){console.log(e)})).finally((function(){return d(!1)}))}),[]),m=(0,v.useMemo)((function(){return null===n||void 0===n?void 0:n.metrics.map((function(e){return{time:p(e.timestamp),value:Number((e.memory_used/1048576).toFixed(2))}}))}),[n]),y=(0,v.useMemo)((function(){return null===n||void 0===n?void 0:n.metrics.map((function(e){return{time:p(e.timestamp),value:Number(e.cpu_used_percent.toFixed(2))}}))}),[n]),_=(0,v.useMemo)((function(){return null===n||void 0===n?void 0:n.metrics.map((function(e){return{time:p(e.timestamp),value:Number(e.disk_used_percent.toFixed(2))}}))}),[n]),b=(0,v.useMemo)((function(){return null===n||void 0===n?void 0:n.metrics.map((function(e){return{time:p(e.timestamp),value:e.openfiles}}))}),[n]);return(0,v.useEffect)((function(){g({metrics_type:"hour"})}),[]),(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(xM,{}),(0,ES.jsx)(AT,{className:"m20",size:"small",loading:u,children:(0,ES.jsx)(ip,{layout:"inline",initialValues:{metrics_type:a},form:f,children:(0,ES.jsx)(ip.Item,{name:"metrics_type",label:"\u67e5\u770b\u6700\u8fd1\uff1a",children:(0,ES.jsx)(NI,{style:{width:120},onChange:function(e){s(e),f.setFieldValue("metrics_type",e),g({metrics_type:e})},options:[{value:"hour",label:"\u4e00\u5c0f\u65f6"},{value:"halfday",label:"\u5341\u4e8c\u5c0f\u65f6"},{value:"day",label:"\u4e8c\u5341\u56db\u5c0f\u65f6"}]})},"metrics_type")})}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsx)("div",{className:"systemMonitor-card__title",children:"\u5185\u5b58\u4f7f\u7528"}),(0,ES.jsx)($ue,(0,Ft.Z)({height:500,data:m||[],yAxis:{label:{formatter:function(e){return e+"MB"}}}},Ide))]}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsx)("div",{className:"systemMonitor-card__title",children:"CPU\u4f7f\u7528\u7387"}),(0,ES.jsx)($ue,(0,Ft.Z)({height:500,data:y||[],yAxis:{label:{formatter:function(e){return e+"%"}}}},Ide))]}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsx)("div",{className:"systemMonitor-card__title",children:"\u78c1\u76d8\u4f7f\u7528\u7387"}),(0,ES.jsx)($ue,(0,Ft.Z)({height:500,data:_||[],yAxis:{label:{formatter:function(e){return e+"%"}}}},Ide))]}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsx)("div",{className:"systemMonitor-card__title",children:"\u6587\u4ef6\u6253\u5f00\u6570"}),(0,ES.jsx)($ue,(0,Ft.Z)({height:500,data:b||[]},Ide))]})]})},Lde=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},Ode=Gj.TimePicker,Rde=Gj.RangePicker,Ade=v.forwardRef((function(e,t){return v.createElement(Rde,Zt({},e,{picker:"time",mode:void 0,ref:t}))})),Mde=v.forwardRef((function(e,t){var n=e.addon,i=e.renderExtraFooter,r=Lde(e,["addon","renderExtraFooter"]),o=v.useMemo((function(){return i||(n||void 0)}),[n,i]);return v.createElement(Ode,Zt({},r,{mode:void 0,ref:t,renderExtraFooter:o}))}));var Pde=SC(Mde,"picker");Mde._InternalPanelDoNotUseOrYouWillBeFired=Pde,Mde.RangePicker=Ade,Mde._InternalPanelDoNotUseOrYouWillBeFired=Pde;var Zde=Mde,Fde={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm0 632c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z",fill:t}},{tag:"path",attrs:{d:"M472 732a40 40 0 1080 0 40 40 0 10-80 0zm151.6-415.3C593.6 290.5 554 276 512 276s-81.6 14.4-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.2 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5 0-39.3-17.2-76-48.4-103.3z",fill:e}}]}},name:"question-circle",theme:"twotone"},Bde=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Fde}))};Bde.displayName="QuestionCircleTwoTone";var Hde,zde=v.forwardRef(Bde),jde="useRequest:timeoutError",Vde="useRequest:codeError";function Wde(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.manual,i=void 0!==n&&n,r=t.defaultParams,o=void 0===r?{}:r,a=t.timeout,s=void 0===a?3e4:a,l=t.formatData,c=void 0===l?function(e){return e}:l,u=t.onSuccess,d=t.throwError,h=void 0!==d&&d,f=(0,v.useState)(null),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=(0,v.useState)(!1),_=(0,k.Z)(y,2),b=_[0],C=_[1],S=(0,v.useState)(null),w=(0,k.Z)(S,2),x=w[0],N=w[1],I=(0,v.useState)(o),D=(0,k.Z)(I,2),L=D[0],O=D[1];(0,v.useEffect)((function(){i||R(o)}),[]);var R=(0,v.useCallback)(function(){var t=(0,T.Z)((0,E.Z)().mark((function t(n){var i,r,o;return(0,E.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return O(n),C(!0),t.prev=2,t.next=5,Promise.race([e(n),new Promise((function(e,t){i=setTimeout((function(){return t(new Error(jde))}),s)}))]);case 5:if(r=t.sent,clearTimeout(i),console.log(r),r.success){t.next=10;break}throw new Error(Vde);case 10:return C(!1),o=c(r.result),m(o),null===u||void 0===u||u(o),t.abrupt("return",o);case 17:if(t.prev=17,t.t0=t.catch(2),C(!1),N(t.t0),!h){t.next=23;break}throw t.t0;case 23:case"end":return t.stop()}}),t,null,[[2,17]])})));return function(e){return t.apply(this,arguments)}}(),[]),A=(0,v.useCallback)((function(){return R(L)}),[R]);return{data:g,loading:b,error:x,run:R,reload:A}}function Ude(e){var t=new Date,n=e.split(":").map(Number),i=(0,k.Z)(n,3),r=i[0],o=i[1],a=i[2];return t.setHours(r,o,a),t.getTime()}Hde||(Hde={}),Wde.timeoutError=jde,Wde.codeError=Vde;var Gde=["key","name"],Kde=ip.useForm,Yde=(0,v.forwardRef)((function(e,t){var n=e.onFinish,i=Kde(),r=(0,k.Z)(i,1)[0],o=(0,v.useState)(),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useState)(!1),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=(0,v.useState)("\u8bbe\u5907\u6570\u636e\u89e6\u53d1"),b=(0,k.Z)(y,2),C=b[0],S=b[1],w=(0,v.useState)(["alarm"]),x=(0,k.Z)(w,2),E=x[0],T=x[1],N=(0,v.useState)([]),I=(0,k.Z)(N,2),D=I[0],L=I[1],O=(0,v.useCallback)((function(e){try{var t=JSON.parse(e),n=Object.entries(t).map((function(e){var t=(0,k.Z)(e,2);return{value:t[0],label:t[1]}}));L(n)}catch(i){L([])}}),[]),R=[{label:"\u544a\u8b66\u4e2d\u5fc3",value:"alarm",disabled:!0},{label:"\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba",value:"\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba"},{label:"\u9489\u9489\u673a\u5668\u4eba",value:"\u9489\u9489\u673a\u5668\u4eba"},{label:"\u98de\u4e66\u673a\u5668\u4eba",value:"\u98de\u4e66\u673a\u5668\u4eba"},{label:"API\u63a5\u53e3",value:"API\u63a5\u53e3"}],A=Wde(Rk,{manual:!1,formatData:function(e){return(e.list||[]).map((function(e){return{label:e.name,value:e.id}}))}}),M=Wde(Dk,{manual:!0,formatData:function(e){return(e.list||[]).map((function(e){return{label:e.name,value:e.id}}))}}),P=(0,v.useState)(),Z=(0,k.Z)(P,2),F=Z[0],B=Z[1],H=(0,v.useCallback)((function(e){Ok(e.productid).then((function(e){e.success&&(B(e.result),setTimeout((function(){var t=r.getFieldValue(["trigger"]),n=r.getFieldValue(["sub_rule","option","code"]);if("\u8bbe\u5907\u6570\u636e\u89e6\u53d1"===t&&n){var i,o=e.result.properties.find((function(e){return e.code===n}));null!==o&&void 0!==o&&null!==(i=o.type_spec)&&void 0!==i&&i.specs&&O(o.type_spec.specs)}}),1e3))}))}),[]),z=(0,v.useMemo)((function(){return((null===F||void 0===F?void 0:F.properties)||[]).filter((function(e){return["int","float","bool","text","enum"].includes(e.type_spec.type)})).map((function(e){var t=e.name,n=e.code,i=e.type_spec;return{label:t,value:n,type:i.type,specs:i.specs}}))}),[null===F||void 0===F?void 0:F.properties]);console.log("propertyOptions",z);var j=(0,v.useMemo)((function(){return((null===F||void 0===F?void 0:F.events)||[]).map((function(e){return{label:e.name,value:e.code}}))}),[null===F||void 0===F?void 0:F.events]),V=function(e){S(e),r.setFieldsValue({sub_rule:{option:{code:void 0,status:void 0,value_type:void 0,value_cycle:void 0,decide_condition_bool:void 0,decide_condition_text:void 0,decide_condition_enum:void 0}}}),q("")},W=(0,v.useCallback)((function(){r.resetFields(),m(!1),l(void 0),q(""),T([])}),[r]);(0,v.useImperativeHandle)(t,(function(){return{open:function(e){l(e),m(!0),e&&r.setFieldsValue(e)}}}),[r]);var U="HH:mm:ss",G=(0,v.useState)(""),K=(0,k.Z)(G,2),Y=K[0],q=K[1],$=(0,v.useCallback)((function(e){console.log({codeType:e,propertyOptions:z});var t=z.find((function(t){return t.value===e}));null!==t&&void 0!==t&&t.type?q(t.type):q("")}),[z]),X=(0,v.useMemo)((function(){var e,t,n;if(console.log("init ruleInfo",s),!s)return{trigger:"\u8bbe\u5907\u6570\u636e\u89e6\u53d1"};var i,r,o,a,l,c,u,d,h,f=(0,Ft.Z)({},s);if(f.notify=(s.notify||[]).map((function(e){var t;return(0,Ft.Z)((0,Ft.Z)({},e),{},{end_effect_time:ux()(Ude(e.end_effect_time)),start_effect_time:ux()(Ude(e.start_effect_time)),option:(0,Ft.Z)((0,Ft.Z)({},e.option),{},{phoneNumber:e.option.phoneNumber&&(null===(t=e.option)||void 0===t?void 0:t.phoneNumber.slice(3))})})})),f.trigger=(null===(e=f.sub_rule)||void 0===e?void 0:e[0].trigger)||"\u8bbe\u5907\u6570\u636e\u89e6\u53d1",null!==(t=f.sub_rule)&&void 0!==t&&t[0].option.decide_condition&&(f.decide_condition_1=f.sub_rule[0].option.decide_condition.split(" ")[0],f.decide_condition_2=f.sub_rule[0].option.decide_condition.split(" ")[1]),f.sub_rule=null===(n=f.sub_rule)||void 0===n?void 0:n[0],f.sub_rule)if("text"===(null===(i=f.sub_rule)||void 0===i||null===(r=i.option)||void 0===r?void 0:r.type))f.sub_rule.option.decide_condition_text=null===(u=f.sub_rule)||void 0===u||null===(d=u.option)||void 0===d||null===(h=d.decide_condition)||void 0===h?void 0:h.slice(2);else if("enum"===(null===(o=f.sub_rule)||void 0===o||null===(a=o.option)||void 0===a?void 0:a.type)){var p,g,v;f.sub_rule.option.decide_condition_enum=null===(p=f.sub_rule)||void 0===p||null===(g=p.option)||void 0===g||null===(v=g.decide_condition)||void 0===v?void 0:v.slice(2)}else if("bool"===(null===(l=f.sub_rule)||void 0===l||null===(c=l.option)||void 0===c?void 0:c.type)){var m,y,_;f.sub_rule.option.decide_condition_bool=null===(m=f.sub_rule)||void 0===m||null===(y=m.option)||void 0===y||null===(_=y.decide_condition)||void 0===_?void 0:_.slice(2)}return console.log("init",f),f}),[s]);return(0,v.useEffect)((function(){var e;console.log("initialValues",X),null!==(e=X.sub_rule)&&void 0!==e&&e.product_id&&(M.run({product_id:X.sub_rule.product_id}),H({productid:X.sub_rule.product_id})),T(["alarm"].concat((0,_.Z)((X.notify||[]).map((function(e){return e.name}))))),V(X.trigger),r.setFieldsValue(X)}),[X]),(0,v.useEffect)((function(){var e;(null===(e=X.sub_rule)||void 0===e?void 0:e.code)&&$(X.sub_rule.code)}),[X,$]),(0,ES.jsx)(jM,{title:"\u7f16\u8f91\u89c4\u5219",placement:"right",open:g,width:650,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:W}),onClose:W,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:d,disabled:d,onClick:function(){r.validateFields().then((function(e){console.log("values",e);var t=(0,Ft.Z)((0,Ft.Z)({id:null===s||void 0===s?void 0:s.id,condition:"anyone"},e),{},{decide_condition_1:void 0,decide_condition_2:void 0,trigger:void 0,notify:(e.notify||[]).map((function(e){return(0,Ft.Z)((0,Ft.Z)({},e),{},{end_effect_time:e.end_effect_time.format(U),start_effect_time:e.start_effect_time.format(U),option:(0,Ft.Z)((0,Ft.Z)({},e.option),{},{phoneNumber:e.option.phoneNumber&&"+86".concat(e.option.phoneNumber)})})}))});t.sub_rule.trigger=e.trigger,e.decide_condition_1&&e.decide_condition_2&&(t.sub_rule.option.decide_condition="".concat(e.decide_condition_1," ").concat(e.decide_condition_2)),e.sub_rule.option.decide_condition_bool&&(t.sub_rule.option.decide_condition="= ".concat(t.sub_rule.option.decide_condition_bool),t.sub_rule.option.decide_condition_bool=void 0,t.sub_rule.option.type="bool"),e.sub_rule.option.decide_condition_text&&(t.sub_rule.option.decide_condition="= ".concat(t.sub_rule.option.decide_condition_text),t.sub_rule.option.decide_condition_text=void 0,t.sub_rule.option.type="text"),e.sub_rule.option.decide_condition_enum&&(t.sub_rule.option.decide_condition="= ".concat(t.sub_rule.option.decide_condition_enum),t.sub_rule.option.decide_condition_enum=void 0,t.sub_rule.option.type="enum"),t.sub_rule=[t.sub_rule],console.log("params",t),null!==s&&void 0!==s&&s.id&&function(e,t){return kk({url:"/api/v1/alert-rule/".concat(e),method:"put",data:t})}(s.id,t).then((function(e){e.success?(qp.success("\u7f16\u8f91\u6210\u529f"),W(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:W,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{form:r,layout:"vertical",initialValues:X,onValuesChange:function(e){var t,n;null!==e&&void 0!==e&&null!==(t=e.sub_rule)&&void 0!==t&&null!==(n=t.option)&&void 0!==n&&n.code&&$(e.sub_rule.option.code)},children:[(0,ES.jsxs)(AT,{children:[(0,ES.jsx)("div",{style:{color:"#666",fontSize:"14px"},className:"mb10",children:"\u542f\u52a8\u89c4\u5219"}),(0,ES.jsx)(ip.Item,{label:"\u89e6\u53d1\u65b9\u5f0f",name:["trigger"],rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u89e6\u53d1\u65b9\u5f0f"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",onChange:V,allowClear:!0,options:[{value:"\u8bbe\u5907\u6570\u636e\u89e6\u53d1",label:"\u8bbe\u5907\u6570\u636e\u89e6\u53d1"},{value:"\u8bbe\u5907\u4e8b\u4ef6\u89e6\u53d1",label:"\u8bbe\u5907\u4e8b\u4ef6\u89e6\u53d1"},{value:"\u8bbe\u5907\u72b6\u6001\u89e6\u53d1",label:"\u8bbe\u5907\u72b6\u6001\u89e6\u53d1"}]})}),(0,ES.jsxs)(mZ,{gutter:15,children:[(0,ES.jsx)(yZ,{span:12,children:(0,ES.jsx)(ip.Item,{label:"\u4ea7\u54c1",name:["sub_rule","product_id"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",onChange:function(e){console.log("product-id ".concat(e)),H({productid:e}),M.run({product_id:e}),r.setFieldsValue({sub_rule:{device_id:void 0,option:{code:void 0,value_type:void 0,value_cycle:void 0,decide_condition_bool:void 0,decide_condition_text:void 0,decide_condition_enum:void 0}},decide_condition_1:void 0,decide_condition_2:void 0}),q("")},loading:A.loading,showSearch:!0,filterOption:!1,onSearch:function(e){return A.run({name:e})},allowClear:!0,options:A.data})})}),(0,ES.jsx)(yZ,{span:12,children:(0,ES.jsx)(ip.Item,{label:"\u8bbe\u5907",name:["sub_rule","device_id"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",loading:M.loading,filterOption:!1,showSearch:!0,onSearch:function(e){return M.run({name:e,product_id:r.getFieldValue(["sub_rule","product_id"])})},allowClear:!0,options:M.data})})})]}),(0,ES.jsx)(ip.Item,{label:"\u8bbe\u5907\u6570\u636e\u89e6\u53d1"===C?"\u529f\u80fd":"\u8bbe\u5907\u4e8b\u4ef6\u89e6\u53d1"===C?"\u4e8b\u4ef6":"\u8bbe\u5907\u72b6\u6001\u89e6\u53d1"===C?"\u8bbe\u5907\u72b6\u6001":"",name:"\u8bbe\u5907\u72b6\u6001\u89e6\u53d1"===C?["sub_rule","option","status"]:["sub_rule","option","code"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",onChange:function(e){console.log("option ".concat(e)),r.setFieldsValue({sub_rule:{option:{value_type:void 0,value_cycle:void 0,decide_condition_bool:void 0,decide_condition_text:void 0,decide_condition_enum:void 0}},decide_condition_1:void 0,decide_condition_2:void 0})},loading:A.loading,showSearch:!0,allowClear:!0,options:"\u8bbe\u5907\u6570\u636e\u89e6\u53d1"===C?z:"\u8bbe\u5907\u4e8b\u4ef6\u89e6\u53d1"===C?j:"\u8bbe\u5907\u72b6\u6001\u89e6\u53d1"===C?[{label:"\u5728\u7ebf",value:"\u5728\u7ebf"},{label:"\u79bb\u7ebf",value:"\u79bb\u7ebf"}]:[],onSelect:function(e,t){console.log("onSelect",e,t),O(t.specs)}})}),"\u8bbe\u5907\u6570\u636e\u89e6\u53d1"===C&&(0,ES.jsxs)(ES.Fragment,{children:[["int","float"].includes(Y)&&(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(ip.Item,{label:"\u53d6\u503c\u7c7b\u578b",name:["sub_rule","option","value_type"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",allowClear:!0,options:[{value:"original",label:"\u539f\u59cb\u503c"},{value:"avg",label:"\u5e73\u5747\u503c"},{value:"max",label:"\u6700\u5927\u503c"},{value:"min",label:"\u6700\u5c0f\u503c"},{value:"sum",label:"\u6c42\u548c\u503c"}]})}),(0,ES.jsx)(ip.Item,{noStyle:!0,shouldUpdate:function(e,t){var n,i,r,o;return(null===e||void 0===e||null===(n=e.sub_rule)||void 0===n||null===(i=n.option)||void 0===i?void 0:i.value_type)!==(null===t||void 0===t||null===(r=t.sub_rule)||void 0===r||null===(o=r.option)||void 0===o?void 0:o.value_type)},children:function(e){return"original"!==(0,e.getFieldValue)(["sub_rule","option","value_type"])&&(0,ES.jsx)(ip.Item,{label:"\u53d6\u503c\u5468\u671f",name:["sub_rule","option","value_cycle"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",allowClear:!0,options:[{value:"1\u5206\u949f\u5468\u671f",label:"1\u5206\u949f\u5468\u671f"},{value:"5\u5206\u949f\u5468\u671f",label:"5\u5206\u949f\u5468\u671f"},{value:"15\u5206\u949f\u5468\u671f",label:"15\u5206\u949f\u5468\u671f"},{value:"30\u5206\u949f\u5468\u671f",label:"30\u5206\u949f\u5468\u671f"},{value:"60\u5206\u949f\u5468\u671f",label:"60\u5206\u949f\u5468\u671f"}]})})}}),(0,ES.jsxs)(mZ,{gutter:15,children:[(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(ip.Item,{label:"\u5224\u65ad\u6761\u4ef6",name:"decide_condition_1",rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",allowClear:!0,options:[{value:">",label:">"},{value:"<",label:"<"},{value:"=",label:"="},{value:">=",label:">="},{value:"<=",label:"<="},{value:"!=",label:"!="}]})})}),(0,ES.jsx)(yZ,{span:18,children:(0,ES.jsx)(ip.Item,{label:"",name:"decide_condition_2",rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{style:{marginTop:"28px"},allowClear:!0,placeholder:"\u8bf7\u8f93\u5165"})})})]})]}),["bool"].includes(Y)&&(0,ES.jsx)(ip.Item,{label:"\u5224\u65ad\u6761\u4ef6",name:["sub_rule","option","decide_condition_bool"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",allowClear:!0,options:[{value:"true",label:"True"},{value:"false",label:"False"}]})}),["text"].includes(Y)&&(0,ES.jsx)(ip.Item,{label:"\u5224\u65ad\u6761\u4ef6",name:["sub_rule","option","decide_condition_text"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),["enum"].includes(Y)&&(0,ES.jsx)(ip.Item,{label:"\u5224\u65ad\u6761\u4ef6",name:["sub_rule","option","decide_condition_enum"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",allowClear:!0,options:D})})]})]}),(0,ES.jsx)(ip.Item,{label:(0,ES.jsxs)("div",{children:[(0,ES.jsx)("div",{children:"\u9759\u9ed8\u65f6\u95f4"}),(0,ES.jsx)("div",{style:{color:"#666"},className:"mb20",children:"\u82e5\u5df2\u914d\u7f6e\u9759\u9ed8\u65f6\u95f4\uff0c\u5219\u544a\u8b66\u89c4\u5219\u89e6\u53d1\u544a\u8b66\u540e\uff0c\u5728\u8bbe\u5b9a\u7684\u65f6\u95f4\u8303\u56f4\u5185\u5c06\u4e0d\u518d\u91cd\u590d\u751f\u6210\u544a\u8b66\u548c\u901a\u77e5\u3002\u8d85\u51fa\u8bbe\u5b9a\u65f6\u95f4\u544a\u8b66\u4ecd\u672a\u6062\u590d\uff0c\u5219\u4f1a\u518d\u6b21\u89e6\u53d1\u544a\u8b66\u3002"})]}),name:"silence_time",className:"mt20",children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",allowClear:!0,options:[{value:0,label:"\u65e0"},{value:3e5,label:"5\u5206\u949f"},{value:6e5,label:"10\u5206\u949f"},{value:9e5,label:"15\u5206\u949f"},{value:18e5,label:"30\u5206\u949f"},{value:36e5,label:"1\u5c0f\u65f6"},{value:108e5,label:"3\u5c0f\u65f6"},{value:216e5,label:"6\u5c0f\u65f6"},{value:432e5,label:"12\u5c0f\u65f6"},{value:864e5,label:"24\u5c0f\u65f6"}]})}),(0,ES.jsx)(ip.List,{name:"notify",children:function(e,t){return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(ip.Item,{label:(0,ES.jsxs)("div",{children:[(0,ES.jsx)("div",{children:"\u901a\u77e5\u65b9\u5f0f"}),(0,ES.jsx)("div",{style:{color:"#666"},className:"mb20",children:"\u6ee1\u8db3\u89e6\u53d1\u6761\u4ef6\u540e\u6240\u8fdb\u884c\u7684\u544a\u8b66\u901a\u77e5\u65b9\u5f0f\uff0c\u544a\u8b66\u5217\u8868\u4e2d\u53ef\u67e5\u770b\u6240\u6709\u544a\u8b66\u8bb0\u5f55"})]}),children:(0,ES.jsx)(VL.Group,{options:R,defaultValue:["alarm"],value:E,onChange:function(e){if(T(e),e.length>E.length){var n=e[e.length-1];t.add({name:n})}else{var i=E.findIndex((function(t){return!e.includes(t)}));t.remove(i-1)}}})}),e.map((function(e){var t=e.key,n=e.name,i=Ai(e,Gde);return"sms"===E[n+1]?(0,ES.jsxs)(AT,{children:[(0,ES.jsx)("div",{style:{color:"#666",fontSize:"14px"},className:"mb10",children:"sms\u77ed\u4fe1"}),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},i),{},{label:"\u624b\u673a\u53f7",name:[n,"option","phoneNumber"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{addonBefore:"+86",placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u53f7"})})),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},i),{},{label:(0,ES.jsxs)("div",{children:[(0,ES.jsx)("span",{children:"\u751f\u6548\u65f6\u95f4"}),"\xa0",(0,ES.jsx)(Vf,{placement:"rightTop",title:"\u8be5\u544a\u8b66\u89c4\u5219\u4ec5\u5728\u751f\u6548\u65f6\u95f4\u6bb5\u5185\u53d1\u9001\u90ae\u4ef6\u901a\u77e5\u3002",children:(0,ES.jsx)(zde,{})})]}),name:[n,"start_effect_time"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],style:{float:"left"},children:(0,ES.jsx)(Zde,{placeholder:"\u8bf7\u8f93\u5165\u5f00\u59cb\u65f6\u95f4",format:U})})),(0,ES.jsx)(ip.Item,{style:{float:"left",marginTop:"28px"},children:(0,ES.jsx)("span",{className:"ml20 mr20 mt20",children:"-"})}),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},i),{},{label:"",name:[n,"end_effect_time"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zde,{placeholder:"\u8bf7\u8f93\u5165\u7ed3\u675f\u65f6\u95f4",format:U,style:{marginTop:"28px"}})}))]},t):"\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba"===E[n+1]?(0,ES.jsxs)(AT,{className:"mt10",children:[(0,ES.jsx)("div",{style:{color:"#666",fontSize:"14px"},className:"mb10",children:"\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba"}),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},i),{},{label:"\u901a\u77e5\u5730\u5740",name:[n,"option","webhook"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{addonBefore:"webhook",placeholder:"\u8bf7\u8f93\u5165"})})),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},i),{},{label:(0,ES.jsxs)("div",{children:[(0,ES.jsx)("span",{children:"\u751f\u6548\u65f6\u95f4"}),"\xa0",(0,ES.jsx)(Vf,{placement:"rightTop",title:"\u8be5\u544a\u8b66\u89c4\u5219\u4ec5\u5728\u751f\u6548\u65f6\u95f4\u6bb5\u5185\u53d1\u9001\u90ae\u4ef6\u901a\u77e5\u3002",children:(0,ES.jsx)(zde,{})})]}),name:[n,"start_effect_time"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],style:{float:"left"},children:(0,ES.jsx)(Zde,{placeholder:"\u8bf7\u8f93\u5165\u5f00\u59cb\u65f6\u95f4",format:U})})),(0,ES.jsx)(ip.Item,{style:{float:"left",marginTop:"28px"},children:(0,ES.jsx)("span",{className:"ml20 mr20 mt20",children:"-"})}),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},i),{},{label:"",name:[n,"end_effect_time"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zde,{placeholder:"\u8bf7\u8f93\u5165\u7ed3\u675f\u65f6\u95f4",format:U,style:{marginTop:"28px"}})}))]},t):"\u9489\u9489\u673a\u5668\u4eba"===E[n+1]?(0,ES.jsxs)(AT,{className:"mt10",children:[(0,ES.jsx)("div",{style:{color:"#666",fontSize:"14px"},className:"mb10",children:"\u9489\u9489\u673a\u5668\u4eba"}),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},i),{},{label:"\u901a\u77e5\u5730\u5740",name:[n,"option","webhook"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{addonBefore:"webhook",placeholder:"\u8bf7\u8f93\u5165"})})),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},i),{},{label:(0,ES.jsxs)("div",{children:[(0,ES.jsx)("span",{children:"\u751f\u6548\u65f6\u95f4"}),"\xa0",(0,ES.jsx)(Vf,{placement:"rightTop",title:"\u8be5\u544a\u8b66\u89c4\u5219\u4ec5\u5728\u751f\u6548\u65f6\u95f4\u6bb5\u5185\u53d1\u9001\u90ae\u4ef6\u901a\u77e5\u3002",children:(0,ES.jsx)(zde,{})})]}),name:[n,"start_effect_time"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],style:{float:"left"},children:(0,ES.jsx)(Zde,{placeholder:"\u8bf7\u8f93\u5165\u5f00\u59cb\u65f6\u95f4",format:U})})),(0,ES.jsx)(ip.Item,{style:{float:"left",marginTop:"28px"},children:(0,ES.jsx)("span",{className:"ml20 mr20 mt20",children:"-"})}),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},i),{},{label:"",name:[n,"end_effect_time"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zde,{placeholder:"\u8bf7\u8f93\u5165\u7ed3\u675f\u65f6\u95f4",format:U,style:{marginTop:"28px"}})}))]},t):"\u98de\u4e66\u673a\u5668\u4eba"===E[n+1]?(0,ES.jsxs)(AT,{className:"mt10",children:[(0,ES.jsx)("div",{style:{color:"#666",fontSize:"14px"},className:"mb10",children:"\u98de\u4e66\u673a\u5668\u4eba"}),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({label:"\u901a\u77e5\u5730\u5740"},i),{},{name:[n,"option","webhook"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{addonBefore:"webhook",placeholder:"\u8bf7\u8f93\u5165"})})),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},i),{},{label:(0,ES.jsxs)("div",{children:[(0,ES.jsx)("span",{children:"\u751f\u6548\u65f6\u95f4"}),"\xa0",(0,ES.jsx)(Vf,{placement:"rightTop",title:"\u8be5\u544a\u8b66\u89c4\u5219\u4ec5\u5728\u751f\u6548\u65f6\u95f4\u6bb5\u5185\u53d1\u9001\u90ae\u4ef6\u901a\u77e5\u3002",children:(0,ES.jsx)(zde,{})})]}),name:[n,"start_effect_time"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],style:{float:"left"},children:(0,ES.jsx)(Zde,{placeholder:"\u8bf7\u8f93\u5165\u5f00\u59cb\u65f6\u95f4",format:U})})),(0,ES.jsx)(ip.Item,{style:{float:"left",marginTop:"28px"},children:(0,ES.jsx)("span",{className:"ml20 mr20 mt20",children:"-"})}),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},i),{},{label:"",name:[n,"end_effect_time"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zde,{placeholder:"\u8bf7\u8f93\u5165\u7ed3\u675f\u65f6\u95f4",format:U,style:{marginTop:"28px"}})}))]},t):"API\u63a5\u53e3"===E[n+1]?(0,ES.jsxs)(AT,{className:"mt10",children:[(0,ES.jsx)("div",{style:{color:"#666",fontSize:"14px"},className:"mb10",children:"API\u63a5\u53e3"}),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({label:"\u901a\u77e5\u5730\u5740"},i),{},{name:[n,"option","webhook"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{addonBefore:"post",placeholder:"\u8bf7\u8f93\u5165"})})),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},i),{},{label:(0,ES.jsxs)("div",{children:[(0,ES.jsx)("span",{children:"\u751f\u6548\u65f6\u95f4"}),"\xa0",(0,ES.jsx)(Vf,{placement:"rightTop",title:"\u8be5\u544a\u8b66\u89c4\u5219\u4ec5\u5728\u751f\u6548\u65f6\u95f4\u6bb5\u5185\u53d1\u9001\u90ae\u4ef6\u901a\u77e5\u3002",children:(0,ES.jsx)(zde,{})})]}),name:[n,"start_effect_time"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],style:{float:"left"},children:(0,ES.jsx)(Zde,{placeholder:"\u8bf7\u8f93\u5165\u5f00\u59cb\u65f6\u95f4",format:U})})),(0,ES.jsx)(ip.Item,{style:{float:"left",marginTop:"28px"},children:(0,ES.jsx)("span",{className:"ml20 mr20 mt20",children:"-"})}),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},i),{},{label:"",name:[n,"end_effect_time"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zde,{placeholder:"\u8bf7\u8f93\u5165\u7ed3\u675f\u65f6\u95f4",format:U,style:{marginTop:"28px"}})}))]},t):null}))]})}})]})})})),qde=n(93666),$de=n.n(qde);ux().extend($de());var Xde=sE.Text,Qde=ip.useForm,Jde=qp.useMessage,ehe=function(){var e=Jde(),t=(0,k.Z)(e,2),i=t[0],r=t[1],o=ut(),a=(0,v.useRef)(null),s=(0,v.useState)(),l=(0,k.Z)(s,2),c=l[0],u=l[1],d=(0,v.useState)(""),h=(0,k.Z)(d,2),f=h[0],p=h[1],g=Qde(),m=(0,k.Z)(g,1)[0],y=Zy.TextArea,_=(0,v.useCallback)((function(){var e;(e=o.id,kk({url:"/api/v1/alert-rule/".concat(e),method:"get",params:{ruleId:e}})).then((function(e){e.success&&u(e.result)})).catch((function(e){console.log(e)}))}),[o]);console.log("ruleInfo",c);var b=(0,v.useState)(!1),C=(0,k.Z)(b,2),S=C[0],w=C[1],x=function(){w(!0)},N=function(){var e=(0,T.Z)((0,E.Z)().mark((function e(){var t,n,r,o,a;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.validateFields();case 3:if(t=e.sent,n=t.name,r=t.alert_level,o=t.description,a={id:null===c||void 0===c?void 0:c.id,name:n,alert_level:r,description:o},console.log("params",a),"name"===f&&(a.alert_level=void 0,a.description=void 0),"alert_level"===f&&(a.name=void 0,a.description=void 0),"description"!==f){e.next=15;break}if(o){e.next=13;break}return qp.warning("\u8bf7\u8f93\u5165\u63cf\u8ff0\u4fe1\u606f"),e.abrupt("return");case 13:a.name=void 0,a.alert_level=void 0;case 15:null!==c&&void 0!==c&&c.id&&Bk(c.id,a).then((function(e){e.success?(i.open({type:"success",content:"\u7f16\u8f91\u6210\u529f"}),w(!1),_()):i.open({type:"error",content:e.errorMsg})})),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),console.log(e.t0);case 21:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(){return e.apply(this,arguments)}}();console.log(N);var I={name:(null===c||void 0===c?void 0:c.name)||"",alert_level:(null===c||void 0===c?void 0:c.alert_level)||"",description:(null===c||void 0===c?void 0:c.description)||""};return(0,v.useEffect)((function(){_()}),[o,_]),(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(Yde,{ref:a,onFinish:_}),(0,ES.jsx)(kM,{hasBack:!0,title:(0,ES.jsxs)("div",{className:"flex-center",children:[(0,ES.jsx)(Xde,{style:{fontSize:17},children:(null===c||void 0===c?void 0:c.name)||"--"}),(0,ES.jsx)(_x,{className:"ml10",onClick:function(){x(),p("name")}})]}),describe:"\u544a\u8b66\u89c4\u5219\u8be6\u60c5\u63d0\u4f9b\u57fa\u7840\u4fe1\u606f\u3001\u544a\u8b66\u89c4\u5219\u7ba1\u7406\u7b49\u529f\u80fd\u3002",breadcrumb:[{label:"\u544a\u8b66\u4e2d\u5fc3",to:"/monitor/alarmCenter/list"},{label:"\u89c4\u5219\u8be6\u60c5 [ ".concat((null===c||void 0===c?void 0:c.name)||""," ]"),to:""}],background:n(64669)}),(0,ES.jsxs)(AT,{children:[(0,ES.jsxs)(mZ,{className:"mt20",children:[(0,ES.jsxs)(yZ,{span:6,children:["\u542f\u7528\u72b6\u6001\uff1a","running"===(null===c||void 0===c?void 0:c.status)?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Nu,{style:{color:"#55af70"}}),"\u542f\u7528"]}):"stopped"===(null===c||void 0===c?void 0:c.status)?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(sM,{style:{color:"#87909d"}}),"\u7981\u7528"]}):"-"]}),(0,ES.jsxs)(yZ,{span:6,children:["\u521b\u5efa\u65f6\u95f4\uff1a",ux()(null===c||void 0===c?void 0:c.created).format("YYYY-MM-DD HH:mm:ss")]}),(0,ES.jsxs)(yZ,{span:6,children:["\u544a\u8b66\u7c7b\u578b\uff1a",null===c||void 0===c?void 0:c.alert_type]}),(0,ES.jsxs)(yZ,{span:6,children:["\u544a\u8b66\u7ea7\u522b\uff1a",null===c||void 0===c?void 0:c.alert_level,(0,ES.jsx)(_x,{className:"ml10",onClick:function(){x(),p("alert_level")}})]}),(0,ES.jsxs)(yZ,{span:18,className:"mt15",children:["\u89c4\u5219\u63cf\u8ff0\uff1a",null===c||void 0===c?void 0:c.description,(0,ES.jsx)(_x,{className:"ml10",onClick:function(){x(),p("description")}})]})]}),(0,ES.jsxs)("div",{className:"ruleInfo-title mt20",children:[(0,ES.jsx)("span",{style:{fontSize:"14px",fontWeight:"600"},children:"\u89c4\u5219\u5185\u5bb9"}),(0,ES.jsx)(Jg,{type:"primary",onClick:function(){var e;null===(e=a.current)||void 0===e||e.open(c)},children:"\u7f16\u8f91\u89c4\u5219"})]}),null!==c&&void 0!==c&&c.sub_rule?(0,ES.jsxs)("div",{className:"ruleInfo-content",children:[(0,ES.jsxs)("div",{className:"ruleInfo-content__item",style:{backgroundColor:"#fafafa"},children:[(0,ES.jsx)("span",{className:"ml20 mr20",children:"\u89e6\u53d1\u6761\u4ef6"}),(0,ES.jsxs)("span",{className:"ml20",children:["\u9650\u5236\uff1a","anyone"===(null===c||void 0===c?void 0:c.condition)?"\u6ee1\u8db3\u4efb\u610f\u6761\u4ef6\u6267\u884c":"\u6ee1\u8db3\u5168\u90e8\u6761\u4ef6\u6267\u884c"]})]}),((null===c||void 0===c?void 0:c.sub_rule)||[]).map((function(e,t){return(0,ES.jsxs)("div",{className:"ruleInfo-content__item",children:[(0,ES.jsxs)("div",{className:"ruleInfo-content__title",children:["\u6761\u4ef6 ",t+1]}),(0,ES.jsx)("span",{className:"ml20",style:{whiteSpace:"pre"},children:null===e||void 0===e?void 0:e.condition})]},t+1)})),(0,ES.jsx)("div",{className:"ruleInfo-content__item",style:{backgroundColor:"#fafafa"},children:(0,ES.jsx)("span",{className:"ml20",children:"\u901a\u77e5\u65b9\u5f0f"})}),(0,ES.jsxs)("div",{className:"ruleInfo-content__item",children:[(0,ES.jsx)("div",{className:"ruleInfo-content__title",children:"\u901a\u77e5 1"}),(0,ES.jsx)("span",{className:"ml20",children:"\u544a\u8b66\u4e2d\u5fc3"})]}),((null===c||void 0===c?void 0:c.notify)||[]).map((function(e,t){return(0,ES.jsxs)("div",{className:"ruleInfo-content__item",children:[(0,ES.jsxs)("div",{className:"ruleInfo-content__title",children:["\u901a\u77e5 ",t+2]}),"sms"===e.name?(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsxs)("span",{className:"ml20",children:[e.name," \u77ed\u4fe1"]}),(0,ES.jsx)(kH,{type:"vertical",className:"ml20"}),(0,ES.jsxs)("span",{className:"ml15",children:["\u624b\u673a\u53f7\uff1a",e.option.phoneNumber]})]}):(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)("span",{className:"ml20",children:e.name}),(0,ES.jsx)(kH,{type:"vertical",className:"ml20"}),(0,ES.jsxs)("span",{className:"ml15",children:["\u901a\u77e5\u5730\u5740\uff1a",e.option.webhook]})]}),(0,ES.jsx)(kH,{type:"vertical",className:"ml20"}),(0,ES.jsxs)("span",{className:"ml15",children:["\u751f\u6548\u65f6\u95f4\uff1a",e.start_effect_time," - ",e.end_effect_time]})]},t+1)})),(0,ES.jsx)("div",{className:"ruleInfo-content__item",style:{backgroundColor:"#fafafa"},children:(0,ES.jsx)("span",{className:"ml20",children:"\u9759\u9ed8\u65f6\u95f4"})}),(0,ES.jsxs)("div",{className:"ruleInfo-content__item",children:[(0,ES.jsx)("div",{className:"ruleInfo-content__title",children:"\u65f6\u95f4"}),(0,ES.jsx)("span",{className:"ml20",children:function(e){if(0===e)return"\u65e0";var t=ux().duration(e);return t.asHours()>=1?"".concat(Math.floor(t.asHours())," \u5c0f\u65f6"):t.asMinutes()>=1?"".concat(Math.floor(t.asMinutes())," \u5206\u949f"):"".concat(Math.floor(t.asSeconds())," \u79d2")}(null===c||void 0===c?void 0:c.silence_time)})]})]}):(0,ES.jsx)("div",{className:"ruleInfo-content",style:{height:"400px"},children:(0,ES.jsxs)("div",{className:"ruleInfo-content__none",children:[(0,ES.jsx)(aI,{description:!1}),(0,ES.jsx)("div",{style:{fontSize:"14px"},children:"\u5c1a\u672a\u6dfb\u52a0\u4efb\u4f55\u6761\u4ef6"}),(0,ES.jsxs)("div",{style:{color:"#71777e"},className:"mt15",children:["\u70b9\u51fb",(0,ES.jsx)("span",{style:{color:"#2979e7",cursor:"pointer"},onClick:function(){var e;null===(e=a.current)||void 0===e||e.open(c)},children:"\u7f16\u8f91\u89c4\u5219"}),"\uff0c\u8fdb\u884c\u89c4\u5219\u6761\u4ef6\u3001\u52a8\u4f5c\u8bbe\u7f6e"]})]})})]}),r,(0,ES.jsx)(gm,{open:S,onOk:N,onCancel:function(){w(!1),m.resetFields(),p("")},okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",maskClosable:!1,title:"name"===f?"\u7f16\u8f91\u89c4\u5219\u540d\u79f0":"alert_level"===f?"\u7f16\u8f91\u544a\u8b66\u7ea7\u522b":"description"===f?"\u7f16\u8f91\u63cf\u8ff0\u4fe1\u606f":"",children:(0,ES.jsxs)(ip,{form:m,layout:"vertical",initialValues:I,children:["name"===f&&(0,ES.jsx)(ip.Item,{label:"\u89c4\u5219\u540d\u79f0",name:"name",rules:[{validator:function(e,t,n){t?/^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5_-]{0,31}$/.test(t)?n():n("1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"):n("\u8bf7\u8f93\u5165\u89c4\u5219\u540d\u79f0")}}],children:(0,ES.jsx)(Zy,{placeholder:"1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"})}),"alert_level"===f&&(0,ES.jsx)(ip.Item,{label:"\u544a\u8b66\u7ea7\u522b",name:"alert_level",children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",options:[{value:"\u7d27\u6025",label:"\u7d27\u6025"},{value:"\u91cd\u8981",label:"\u91cd\u8981"},{value:"\u6b21\u8981",label:"\u6b21\u8981"},{value:"\u63d0\u793a",label:"\u63d0\u793a"}]})}),"description"===f&&(0,ES.jsx)(ip.Item,{label:"\u89c4\u5219\u63cf\u8ff0",name:"description",children:(0,ES.jsx)(y,{showCount:!0,maxLength:100,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u4fe1\u606f",rows:4})})]})})]})};function the(){var e,t=Pt(),i=(0,k.Z)(t,1)[0],r=lt(),o=Wde(zk);console.log(i);var a=(0,v.useCallback)((function(){var e=i.get("path")||"/home/dashboard";r(e)}),[]);return(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsxs)("div",{className:"login",children:[(0,ES.jsxs)("div",{className:"login-content",children:[(0,ES.jsxs)("div",{className:"login-content__left",children:[(0,ES.jsx)("img",{className:"ml20",style:{marginTop:"40px"},src:n(74427),alt:""}),(0,ES.jsx)("div",{className:"login-content__leftTitle",children:"\u8d62\u521b\u4e07\u8054 \u7269\u8054\u7f51\u5e73\u53f0"})]}),null!==(e=o.data)&&void 0!==e&&e.isInit?(0,ES.jsxs)("div",{className:"login-content__right",children:[(0,ES.jsx)("div",{className:"login-content__rightTitle",children:"\u5bc6\u7801\u767b\u5f55"}),(0,ES.jsxs)(ip,{name:"basic",style:{margin:"80px 80px"},onFinish:function(e){(function(e){return kk({url:"/api/v1/auth/login",method:"post",data:e})})(e).then((function(e){var t;e.success?(t=e.result,localStorage.setItem(IS,JSON.stringify(t)),a()):qp.error(e.errorMsg)}))},autoComplete:"off",className:"login-form",children:[(0,ES.jsx)(ip.Item,{name:"username",rules:[{required:!0,message:"\u8bf7\u8f93\u5165"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8d26\u53f7"})}),(0,ES.jsx)(ip.Item,{name:"password",style:{marginTop:"60px"},rules:[{required:!0,message:"\u8bf7\u8f93\u5165"}],children:(0,ES.jsx)(Zy.Password,{placeholder:"\u5bc6\u7801"})}),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{style:{backgroundColor:"#232F3E",borderRadius:"40px",color:"#fefeff",width:"80%",height:"50px",marginTop:"60px",marginLeft:"50px"},htmlType:"submit",children:"\u767b\u5f55"})})]})]}):(0,ES.jsxs)("div",{className:"login-content__right",children:[(0,ES.jsx)("div",{className:"login-content__rightTitle",children:"\u521d\u59cb\u5316\u5bc6\u7801"}),(0,ES.jsxs)(ip,{name:"basic",style:{margin:"80px 80px"},onFinish:function(e){e.password1=void 0,function(e){return kk({url:"/api/v1/auth/init-password",method:"post",data:e})}(e).then((function(e){e.success?(qp.success("\u521d\u59cb\u5316\u5bc6\u7801\u6210\u529f"),o.reload()):qp.error(e.errorMsg)}))},autoComplete:"off",className:"login-form",children:[(0,ES.jsx)(ip.Item,{name:"newPassword",rules:[{required:!0,message:"\u8bf7\u8f93\u5165"}],children:(0,ES.jsx)(Zy,{placeholder:"\u5bc6\u7801"})}),(0,ES.jsx)(ip.Item,{name:"password1",style:{marginTop:"60px"},dependencies:["newPassword"],rules:[{required:!0,message:"\u8bf7\u8f93\u5165"},function(e){var t=e.getFieldValue;return{validator:function(e,n){return n&&t("newPassword")!==n?Promise.reject(new Error("\u4e24\u6b21\u5bc6\u7801\u8f93\u2f0a\u4e0d\u2f00\u81f4")):Promise.resolve()}}}],children:(0,ES.jsx)(Zy.Password,{placeholder:"\u786e\u8ba4\u5bc6\u7801"})}),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{style:{backgroundColor:"#232F3E",borderRadius:"40px",color:"#fefeff",width:"80%",height:"50px",marginTop:"60px",marginLeft:"50px"},htmlType:"submit",children:"\u786e\u5b9a"})})]})]})]}),(0,ES.jsx)("div",{className:"login-copyright",children:"Copyright \xa9 2021-2023 \u8d62\u521b\u4e07\u8054 All Rights Reserved. \u7ca4ICP\u59072022101171\u53f7-1"})]})})}var nhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},ihe=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:nhe}))};ihe.displayName="MinusCircleOutlined";var rhe,ohe,ahe=v.forwardRef(ihe),she=["key","name"],lhe=ip.useForm,che=function(e){console.log("selected ".concat(e))},uhe=(0,v.forwardRef)((function(e,t){var n=e.onFinish,i=lhe(),r=(0,k.Z)(i,1)[0],o=(0,v.useState)(),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useState)(!1),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=(0,v.useCallback)((function(){r.resetFields(),m(!1)}),[r]);return(0,v.useImperativeHandle)(t,(function(){return{open:function(e){if(l(e),console.log(e),m(!0),e){var t,n=Object.entries((null===(t=e.option)||void 0===t?void 0:t.headers)||{}).reduce((function(e,t){var n=(0,k.Z)(t,2),i=n[0],r=n[1];return e.push({key:i,value:r}),e}),[])||[],i=(0,Ft.Z)((0,Ft.Z)({},e),{},{option:(0,Ft.Z)((0,Ft.Z)({},e.option),{},{headers:n.length>0?n:[{}]})});r.setFieldsValue(i)}}}}),[r]),(0,ES.jsx)(jM,{title:s?"\u4fee\u6539\u5b9e\u4f8b":"\u6dfb\u52a0\u5b9e\u4f8b",placement:"right",open:g,width:550,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:y}),onClose:y,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:d,disabled:d,onClick:function(){r.validateFields().then((function(e){var t=e.option.headers.reduce((function(e,t){return e[t.key]=t.value,e}),{});e.option.headers=t,e.type="HTTP\u63a8\u9001",console.log("values",e),h(!0),null!==s&&void 0!==s&&s.id?(e.id=s.id,Kk(e).then((function(e){e.success?(qp.success("\u4fee\u6539\u6210\u529f"),y(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))):Wk(e).then((function(e){e.success?(qp.success("\u6dfb\u52a0\u6210\u529f"),y(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:y,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{form:r,layout:"vertical",initialValues:{option:{headers:[{}]}},children:[(0,ES.jsx)(ip.Item,{label:"\u5b9e\u4f8b\u540d\u79f0",name:"name",rules:[{required:!0,validator:function(e,t,n){t?/^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5_-]{0,31}$/.test(t)?n():n("1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"):n("\u8bf7\u8f93\u5165\u5b9e\u4f8b\u540d\u79f0")}}],children:(0,ES.jsx)(Zy,{placeholder:"1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"})}),(0,ES.jsx)(ip.Item,{label:"URL",name:["option","url"],rules:[{required:!0,validator:function(e,t,n){t||n("\u8bf7\u8f93\u5165"),n()}}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u9700\u8981\u63a8\u9001\u7684\u670d\u52a1\u5730\u5740\uff0c\u4ee5http://\u6216https://\u5f00\u5934"})}),(0,ES.jsx)(ip.Item,{label:"HTTP method",name:["option","method"],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",onChange:che,options:[{value:"get",label:"GET"},{value:"post",label:"POST"},{value:"put",label:"PUT"},{value:"patch",label:"PATCH"},{value:"delete",label:"DELETE"},{value:"head",label:"HEAD"}]})}),(0,ES.jsx)(ip.Item,{label:"Body type",name:["option","bodyType"],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",onChange:che,options:[{value:"none",label:"none"},{value:"json",label:"json"},{value:"text",label:"text"},{value:"html",label:"html"},{value:"xml",label:"xml"},{value:"javascript",label:"javascript"},{value:"form",label:"form"}]})}),(0,ES.jsx)(ip.Item,{label:"Timeout(ms)",name:["option","timeout"],children:(0,ES.jsx)(vZ,{placeholder:"\u8bf7\u8f93\u5165",style:{width:"100%"}})}),(0,ES.jsx)(ip.Item,{label:"HTTP headers",children:(0,ES.jsx)(ip.List,{name:["option","headers"],children:function(e,t){var n=t.add,i=t.remove;return(0,ES.jsxs)(ES.Fragment,{children:[e.map((function(e){var t=e.key,n=e.name,r=Ai(e,she);return(0,ES.jsxs)(Vy,{style:{display:"flex",marginBottom:8},align:"baseline",children:[(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},r),{},{label:"Key",name:[n,"key"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})})),(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},r),{},{label:"Value",name:[n,"value"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})})),(0,ES.jsx)(ahe,{onClick:function(){return i(n)}})]},t)})),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"dashed",style:{width:"15%"},onClick:function(){return n()},block:!0,icon:(0,ES.jsx)(RE,{}),children:"Add"})})]})}})})]})})})),dhe=sE.Text,hhe=qp.useMessage,fhe=function(){var e=hhe(),t=(0,k.Z)(e,2),n=t[0],i=t[1],r=(0,v.useRef)(null),o=TM({onRequest:function(e){return jk((0,Ft.Z)((0,Ft.Z)({},e),{},{type:"HTTP\u63a8\u9001"}))}}),a=o.loading,s=o.dataSource,l=o.pagination,c=o.reload;return(0,ES.jsxs)(ES.Fragment,{children:[i,(0,ES.jsx)(uhe,{ref:r,onFinish:c}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsx)(Vy,{className:"mb15 justify-space-between",children:(0,ES.jsxs)(Jg,{type:"primary",onClick:function(){var e;null===(e=r.current)||void 0===e||e.open()},children:[(0,ES.jsx)(RE,{}),"\u6dfb\u52a0\u5b9e\u4f8b"]})}),(0,ES.jsx)(YA,{loading:a,dataSource:s,pagination:l,bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u5b9e\u4f8b\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u521b\u5efa\u65f6\u95f4",key:"created",dataIndex:"created",render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u9a8c\u8bc1\u72b6\u6001",key:"health",dataIndex:"health",render:function(e){return!1===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Lu,{style:{color:"#ef8e62"}}),"\u9a8c\u8bc1\u5931\u8d25"]}):!0===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Nu,{style:{color:"#52c41a"}}),"\u9a8c\u8bc1\u6210\u529f"]}):"-"}},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",render:function(e,t){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(dhe,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(sE.Link,{onClick:function(){Gk(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(n.open({type:"success",content:"\u64cd\u4f5c\u6210\u529f"}),c()):n.open({type:"error",content:e.errorMsg})}))},children:"\u9a8c\u8bc1"}),(0,ES.jsx)(sE.Link,{onClick:function(){var e;null===(e=r.current)||void 0===e||e.open(t)},children:"\u4fee\u6539"}),(0,ES.jsx)(tM,{title:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u8be5\u5b9e\u4f8b\u5417\uff1f",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){Uk(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(n.open({type:"success",content:"\u5220\u9664\u6210\u529f"}),c()):n.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}]})]})]})},phe=ip.useForm,ghe=function(e){console.log("selected ".concat(e))},vhe=(0,v.forwardRef)((function(e,t){var n=e.onFinish,i=phe(),r=(0,k.Z)(i,1)[0],o=(0,v.useState)(),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useState)(!1),p=(0,k.Z)(f,2),g=p[0],m=p[1];console.log("record",s);var y=(0,v.useCallback)((function(){r.resetFields(),m(!1)}),[r]);return(0,v.useImperativeHandle)(t,(function(){return{open:function(e){l(e),m(!0),e&&r.setFieldsValue(e)}}}),[r]),(0,ES.jsx)(jM,{title:s?"\u4fee\u6539\u5b9e\u4f8b":"\u6dfb\u52a0\u5b9e\u4f8b",placement:"right",open:g,width:550,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:y}),onClose:y,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:d,disabled:d,onClick:function(){r.validateFields().then((function(e){e.type="\u6d88\u606f\u5bf9\u961f\u5217MQTT",console.log("values",e),h(!0),null!==s&&void 0!==s&&s.id?(e.id=s.id,Kk(e).then((function(e){e.success?(qp.success("\u4fee\u6539\u6210\u529f"),y(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))):Wk(e).then((function(e){e.success?(qp.success("\u6dfb\u52a0\u6210\u529f"),y(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:y,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{form:r,layout:"vertical",children:[(0,ES.jsx)(ip.Item,{label:"\u5b9e\u4f8b\u540d\u79f0",name:"name",rules:[{required:!0,validator:function(e,t,n){t?/^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5_-]{0,31}$/.test(t)?n():n("1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"):n("\u8bf7\u8f93\u5165\u5b9e\u4f8b\u540d\u79f0")}}],children:(0,ES.jsx)(Zy,{placeholder:"1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"})}),(0,ES.jsx)(ip.Item,{label:"MQTT broker address",name:["option","server"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"MQTT topic",name:["option","topic"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"MQTT client",name:["option","clientId"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"MQTT protocol version",name:["option","protocolVersion"],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",onChange:ghe,options:[{value:"3.1",label:"3.1"},{value:"3.1.1",label:"3.1.1"}]})}),(0,ES.jsx)(ip.Item,{label:"QoS",name:["option","qos"],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",onChange:ghe,options:[{value:0,label:"0"},{value:1,label:"1"},{value:2,label:"2"}]})}),(0,ES.jsx)(ip.Item,{label:"Username",name:["option","username"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"Password",name:["option","password"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})})]})})})),mhe=sE.Text,yhe=qp.useMessage,_he=function(){var e=yhe(),t=(0,k.Z)(e,2),n=t[0],i=t[1],r=(0,v.useRef)(null),o=TM({onRequest:function(e){return jk((0,Ft.Z)((0,Ft.Z)({},e),{},{type:"\u6d88\u606f\u5bf9\u961f\u5217MQTT"}))}}),a=o.loading,s=o.dataSource,l=o.pagination,c=o.reload;return(0,ES.jsxs)(ES.Fragment,{children:[i,(0,ES.jsx)(vhe,{ref:r,onFinish:c}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsx)(Vy,{className:"mb15 justify-space-between",children:(0,ES.jsxs)(Jg,{type:"primary",onClick:function(){var e;null===(e=r.current)||void 0===e||e.open()},children:[(0,ES.jsx)(RE,{}),"\u6dfb\u52a0\u5b9e\u4f8b"]})}),(0,ES.jsx)(YA,{loading:a,dataSource:s,pagination:l,bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u5b9e\u4f8b\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u521b\u5efa\u65f6\u95f4",key:"created",dataIndex:"created",render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u9a8c\u8bc1\u72b6\u6001",key:"health",dataIndex:"health",render:function(e){return!1===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Lu,{style:{color:"#ef8e62"}}),"\u9a8c\u8bc1\u5931\u8d25"]}):!0===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Nu,{style:{color:"#52c41a"}}),"\u9a8c\u8bc1\u6210\u529f"]}):"-"}},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",render:function(e,t){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(mhe,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(sE.Link,{onClick:function(){Gk(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(n.open({type:"success",content:"\u64cd\u4f5c\u6210\u529f"}),c()):n.open({type:"error",content:e.errorMsg})}))},children:"\u9a8c\u8bc1"}),(0,ES.jsx)(sE.Link,{onClick:function(){var e;null===(e=r.current)||void 0===e||e.open(t)},children:"\u4fee\u6539"}),(0,ES.jsx)(tM,{title:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u8be5\u5b9e\u4f8b\u5417\uff1f",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){Uk(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(n.open({type:"success",content:"\u5220\u9664\u6210\u529f"}),c()):n.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}]})]})]})},bhe=ip.useForm,Che=(0,v.forwardRef)((function(e,t){var n=e.onFinish,i=bhe(),r=(0,k.Z)(i,1)[0],o=(0,v.useState)(),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useState)(!1),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=(0,v.useCallback)((function(){r.resetFields(),m(!1)}),[r]);return(0,v.useImperativeHandle)(t,(function(){return{open:function(e){l(e),m(!0),e&&r.setFieldsValue(e)}}}),[r]),(0,ES.jsx)(jM,{title:s?"\u4fee\u6539\u5b9e\u4f8b":"\u6dfb\u52a0\u5b9e\u4f8b",placement:"right",open:g,width:550,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:y}),onClose:y,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:d,disabled:d,onClick:function(){r.validateFields().then((function(e){console.log("values",e),e.type="\u6d88\u606f\u961f\u5217Kafka",h(!0),null!==s&&void 0!==s&&s.id?(e.id=s.id,Kk(e).then((function(e){e.success?(qp.success("\u4fee\u6539\u6210\u529f"),y(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))):Wk(e).then((function(e){e.success?(qp.success("\u6dfb\u52a0\u6210\u529f"),y(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:y,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{form:r,layout:"vertical",children:[(0,ES.jsx)(ip.Item,{label:"\u5b9e\u4f8b\u540d\u79f0",name:"name",rules:[{required:!0,validator:function(e,t,n){t?/^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5_-]{0,31}$/.test(t)?n():n("1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"):n("\u8bf7\u8f93\u5165\u5b9e\u4f8b\u540d\u79f0")}}],children:(0,ES.jsx)(Zy,{placeholder:"1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"})}),(0,ES.jsx)(ip.Item,{label:"Kafka brokers",name:["option","brokers"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"Topic",name:["option","topic"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"SaslAuthType",name:["option","saslAuthType"],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",options:[{value:"none",label:"none"},{value:"plain",label:"plain"},{value:"scram",label:"scram"}]})}),(0,ES.jsx)(ip.Item,{noStyle:!0,shouldUpdate:function(e,t){var n,i;return(null===e||void 0===e||null===(n=e.option)||void 0===n?void 0:n.saslAuthType)!==(null===t||void 0===t||null===(i=t.option)||void 0===i?void 0:i.saslAuthType)},children:function(e){return"none"!==(0,e.getFieldValue)(["option","saslAuthType"])&&(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(ip.Item,{label:"SaslUserName",name:["option","saslUserName"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"SaslPassword",name:["option","saslPassword"],children:(0,ES.jsx)(Zy.Password,{placeholder:"\u8bf7\u8f93\u5165"})})]})}})]})})})),She=sE.Text,whe=qp.useMessage,khe=function(){var e=whe(),t=(0,k.Z)(e,2),n=t[0],i=t[1],r=(0,v.useRef)(null),o=TM({onRequest:function(e){return jk((0,Ft.Z)((0,Ft.Z)({},e),{},{type:"\u6d88\u606f\u961f\u5217Kafka"}))}}),a=o.loading,s=o.dataSource,l=o.pagination,c=o.reload;return(0,ES.jsxs)(ES.Fragment,{children:[i,(0,ES.jsx)(Che,{ref:r,onFinish:c}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsx)(Vy,{className:"mb15 justify-space-between",children:(0,ES.jsxs)(Jg,{type:"primary",onClick:function(){var e;null===(e=r.current)||void 0===e||e.open()},children:[(0,ES.jsx)(RE,{}),"\u6dfb\u52a0\u5b9e\u4f8b"]})}),(0,ES.jsx)(YA,{loading:a,dataSource:s,pagination:l,bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u5b9e\u4f8b\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u521b\u5efa\u65f6\u95f4",key:"created",dataIndex:"created",render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u9a8c\u8bc1\u72b6\u6001",key:"health",dataIndex:"health",render:function(e){return!1===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Lu,{style:{color:"#ef8e62"}}),"\u9a8c\u8bc1\u5931\u8d25"]}):!0===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Nu,{style:{color:"#52c41a"}}),"\u9a8c\u8bc1\u6210\u529f"]}):"-"}},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",render:function(e,t){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(She,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(sE.Link,{onClick:function(){Gk(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(n.open({type:"success",content:"\u64cd\u4f5c\u6210\u529f"}),c()):n.open({type:"error",content:e.errorMsg})}))},children:"\u9a8c\u8bc1"}),(0,ES.jsx)(sE.Link,{onClick:function(){var e;null===(e=r.current)||void 0===e||e.open(t)},children:"\u4fee\u6539"}),(0,ES.jsx)(tM,{title:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u8be5\u5b9e\u4f8b\u5417\uff1f",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){Uk(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(n.open({type:"success",content:"\u5220\u9664\u6210\u529f"}),c()):n.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}]})]})]})},xhe=ip.useForm,Ehe=(0,v.forwardRef)((function(e,t){var n=e.onFinish,i=xhe(),r=(0,k.Z)(i,1)[0],o=(0,v.useState)(),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useState)(!1),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=(0,v.useCallback)((function(){r.resetFields(),m(!1)}),[r]);return(0,v.useImperativeHandle)(t,(function(){return{open:function(e){l(e),m(!0),e&&r.setFieldsValue(e)}}}),[r]),(0,ES.jsx)(jM,{title:s?"\u4fee\u6539\u5b9e\u4f8b":"\u6dfb\u52a0\u5b9e\u4f8b",placement:"right",open:g,width:550,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:y}),onClose:y,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:d,disabled:d,onClick:function(){r.validateFields().then((function(e){e.type="InfluxDB",console.log("values",e),h(!0),null!==s&&void 0!==s&&s.id?(e.id=s.id,Kk(e).then((function(e){e.success?(qp.success("\u4fee\u6539\u6210\u529f"),y(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))):Wk(e).then((function(e){e.success?(qp.success("\u6dfb\u52a0\u6210\u529f"),y(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:y,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{form:r,layout:"vertical",children:[(0,ES.jsx)(ip.Item,{label:"\u5b9e\u4f8b\u540d\u79f0",name:"name",rules:[{required:!0,validator:function(e,t,n){t?/^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5_-]{0,31}$/.test(t)?n():n("1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"):n("\u8bf7\u8f93\u5165\u5b9e\u4f8b\u540d\u79f0")}}],children:(0,ES.jsx)(Zy,{placeholder:"1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"})}),(0,ES.jsx)(ip.Item,{label:"Addr",name:["option","addr"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"Username",name:["option","username"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"Password",name:["option","password"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"Measurement",name:["option","measurement"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"Databasename",name:["option","databasename"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"Tagkey",name:["option","tagkey"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"Tagvalue",name:["option","tagvalue"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})})]})})})),The=sE.Text,Nhe=qp.useMessage,Ihe=function(){var e=Nhe(),t=(0,k.Z)(e,2),n=t[0],i=t[1],r=(0,v.useRef)(null),o=TM({onRequest:function(e){return jk((0,Ft.Z)((0,Ft.Z)({},e),{},{type:"InfluxDB"}))}}),a=o.loading,s=o.dataSource,l=o.pagination,c=o.reload;return(0,ES.jsxs)(ES.Fragment,{children:[i,(0,ES.jsx)(Ehe,{ref:r,onFinish:c}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsx)(Vy,{className:"mb15 justify-space-between",children:(0,ES.jsxs)(Jg,{type:"primary",onClick:function(){var e;null===(e=r.current)||void 0===e||e.open()},children:[(0,ES.jsx)(RE,{}),"\u6dfb\u52a0\u5b9e\u4f8b"]})}),(0,ES.jsx)(YA,{loading:a,dataSource:s,pagination:l,bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u5b9e\u4f8b\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u521b\u5efa\u65f6\u95f4",key:"created",dataIndex:"created",render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u9a8c\u8bc1\u72b6\u6001",key:"health",dataIndex:"health",render:function(e){return!1===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Lu,{style:{color:"#ef8e62"}}),"\u9a8c\u8bc1\u5931\u8d25"]}):!0===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Nu,{style:{color:"#52c41a"}}),"\u9a8c\u8bc1\u6210\u529f"]}):"-"}},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",render:function(e,t){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(The,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(sE.Link,{onClick:function(){Gk(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(n.open({type:"success",content:"\u64cd\u4f5c\u6210\u529f"}),c()):n.open({type:"error",content:e.errorMsg})}))},children:"\u9a8c\u8bc1"}),(0,ES.jsx)(sE.Link,{onClick:function(){var e;null===(e=r.current)||void 0===e||e.open(t)},children:"\u4fee\u6539"}),(0,ES.jsx)(tM,{title:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u8be5\u5b9e\u4f8b\u5417\uff1f",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){Uk(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(n.open({type:"success",content:"\u5220\u9664\u6210\u529f"}),c()):n.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}]})]})]})},Dhe=ip.useForm,Lhe=(0,v.forwardRef)((function(e,t){var n=e.onFinish,i=Dhe(),r=(0,k.Z)(i,1)[0],o=(0,v.useState)(),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useState)(!1),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=(0,v.useState)(""),_=(0,k.Z)(y,2),b=_[0],C=_[1],S=(0,v.useCallback)((function(){r.resetFields(),m(!1)}),[r]);return(0,v.useImperativeHandle)(t,(function(){return{open:function(e){l(e),m(!0),e&&r.setFieldsValue(e)}}}),[r]),(0,ES.jsx)(jM,{title:s?"\u4fee\u6539\u5b9e\u4f8b":"\u6dfb\u52a0\u5b9e\u4f8b",placement:"right",open:g,width:550,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:S}),onClose:S,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:d,disabled:d,onClick:function(){r.validateFields().then((function(e){e.type="TDengine",console.log("values",e),h(!0),null!==s&&void 0!==s&&s.id?(e.id=s.id,Kk(e).then((function(e){e.success?(qp.success("\u4fee\u6539\u6210\u529f"),S(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))):Wk(e).then((function(e){e.success?(qp.success("\u6dfb\u52a0\u6210\u529f"),S(),n()):qp.error(e.errorMsg)})).finally((function(){h(!1)}))}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:S,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{form:r,layout:"vertical",initialValues:{option:{host:"localhost",user:"root",password:"taosdata",provideTs:!1}},onValuesChange:function(e){var t;C(null===(t=e.option)||void 0===t?void 0:t.sTable)},children:[(0,ES.jsx)(ip.Item,{label:"\u5b9e\u4f8b\u540d\u79f0",name:"name",rules:[{required:!0,validator:function(e,t,n){t?/^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5_-]{0,31}$/.test(t)?n():n("1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"):n("\u8bf7\u8f93\u5165\u5b9e\u4f8b\u540d\u79f0")}}],children:(0,ES.jsx)(Zy,{placeholder:"1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"})}),(0,ES.jsx)(ip.Item,{label:"Host",name:["option","host"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"Port",name:["option","port"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(vZ,{placeholder:"\u8bf7\u8f93\u5165",style:{width:"100%"}})}),(0,ES.jsx)(ip.Item,{label:"User",name:["option","user"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"Password",name:["option","password"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"Database",name:["option","database"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"Table",name:["option","table"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"Fields",name:["option","fields"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"ProvideTs",name:["option","provideTs"],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",options:[{value:!0,label:"true"},{value:!1,label:"false"}]})}),(0,ES.jsx)(ip.Item,{label:"TsFieldName",name:["option","tsFieldName"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"STable",name:["option","sTable"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"TagFields",name:["option","tagFields"],rules:[{required:!!b,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"TableDataField",name:["option","tableDataField"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})})]})})})),Ohe=sE.Text,Rhe=qp.useMessage,Ahe=function(){var e=Rhe(),t=(0,k.Z)(e,2),n=t[0],i=t[1],r=(0,v.useRef)(null),o=TM({onRequest:function(e){return jk((0,Ft.Z)((0,Ft.Z)({},e),{},{type:"TDengine"}))}}),a=o.loading,s=o.dataSource,l=o.pagination,c=o.reload;return(0,ES.jsxs)(ES.Fragment,{children:[i,(0,ES.jsx)(Lhe,{ref:r,onFinish:c}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsx)(Vy,{className:"mb15 justify-space-between",children:(0,ES.jsxs)(Jg,{type:"primary",onClick:function(){var e;null===(e=r.current)||void 0===e||e.open()},children:[(0,ES.jsx)(RE,{}),"\u6dfb\u52a0\u5b9e\u4f8b"]})}),(0,ES.jsx)(YA,{loading:a,dataSource:s,pagination:l,bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u5b9e\u4f8b\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u521b\u5efa\u65f6\u95f4",key:"created",dataIndex:"created",render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u9a8c\u8bc1\u72b6\u6001",key:"health",dataIndex:"health",render:function(e){return!1===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Lu,{style:{color:"#ef8e62"}}),"\u9a8c\u8bc1\u5931\u8d25"]}):!0===e?(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Nu,{style:{color:"#52c41a"}}),"\u9a8c\u8bc1\u6210\u529f"]}):"-"}},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",render:function(e,t){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(Ohe,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(sE.Link,{onClick:function(){Gk(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(n.open({type:"success",content:"\u64cd\u4f5c\u6210\u529f"}),c()):n.open({type:"error",content:e.errorMsg})}))},children:"\u9a8c\u8bc1"}),(0,ES.jsx)(sE.Link,{onClick:function(){var e;null===(e=r.current)||void 0===e||e.open(t)},children:"\u4fee\u6539"}),(0,ES.jsx)(tM,{title:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u8be5\u5b9e\u4f8b\u5417\uff1f",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){Uk(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(n.open({type:"success",content:"\u5220\u9664\u6210\u529f"}),c()):n.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}]})]})]})};!function(e){e["HTTP\u63a8\u9001"]="HTTP\u63a8\u9001",e["\u6d88\u606f\u5bf9\u961f\u5217MQTT"]="\u6d88\u606f\u5bf9\u961f\u5217MQTT",e["\u6d88\u606f\u961f\u5217Kafka"]="\u6d88\u606f\u961f\u5217Kafka",e.InfluxDB="InfluxDB",e.TDengine="TDengine"}(ohe||(ohe={}));var Mhe=(rhe={},(0,N.Z)(rhe,ohe.HTTP\u63a8\u9001,(0,ES.jsx)(fhe,{})),(0,N.Z)(rhe,ohe.\u6d88\u606f\u5bf9\u961f\u5217MQTT,(0,ES.jsx)(_he,{})),(0,N.Z)(rhe,ohe.\u6d88\u606f\u961f\u5217Kafka,(0,ES.jsx)(khe,{})),(0,N.Z)(rhe,ohe.InfluxDB,(0,ES.jsx)(Ihe,{})),(0,N.Z)(rhe,ohe.TDengine,(0,ES.jsx)(Ahe,{})),rhe),Phe=function(){var e=Wde(Vk);return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(kM,{title:"\u8d44\u6e90\u7ba1\u7406",describe:"\u5e73\u53f0\u63d0\u4f9b\u591a\u79cd\u6d88\u606f\u901a\u4fe1\u4e2d\u95f4\u4ef6\u8d44\u6e90\uff0c\u8d44\u6e90\u53ef\u4f5c\u4e3a\u89c4\u5219\u5f15\u64ce\u7684\u6d88\u606f\u76ee\u7684\u5730\uff0c\u901a\u8fc7\u521b\u5efa\u8d44\u6e90\u5feb\u901f\u5c06\u6570\u636e\u63a8\u9001\u81f3\u5e94\u7528\u5e73\u53f0\u3002",background:n(64669)}),(0,ES.jsx)(AT,{bodyStyle:{padding:0},children:(0,ES.jsx)(wT,{className:"drive-image mt20",type:"card",items:(e.data||[]).map((function(e,t){return{key:t,label:e,children:Mhe[e]}}))})})]})},Zhe=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function Fhe(e){return"string"===typeof e}var Bhe=function(e){var t,n=e.className,i=e.prefixCls,r=e.style,o=e.active,a=e.status,s=e.iconPrefix,l=e.icon,c=(e.wrapperStyle,e.stepNumber),u=e.disabled,d=e.description,h=e.title,f=e.subTitle,p=e.progressDot,g=e.stepIcon,m=e.tailContent,y=e.icons,_=e.stepIndex,b=e.onStepClick,C=e.onClick,S=e.render,w=Ai(e,Zhe),k=a||"wait",x=Ja()("".concat(i,"-item"),"".concat(i,"-item-").concat(k),n,(t={},(0,N.Z)(t,"".concat(i,"-item-custom"),l),(0,N.Z)(t,"".concat(i,"-item-active"),o),(0,N.Z)(t,"".concat(i,"-item-disabled"),!0===u),t)),E=(0,Ft.Z)({},r),T={};b&&!u&&(T.role="button",T.tabIndex=0,T.onClick=function(){C&&C.apply(void 0,arguments),b(_)});var I=v.createElement("div",Zt({},w,{className:x,style:E}),v.createElement("div",Zt({onClick:C},T,{className:"".concat(i,"-item-container")}),v.createElement("div",{className:"".concat(i,"-item-tail")},m),v.createElement("div",{className:"".concat(i,"-item-icon")},function(){var e,t,n=Ja()("".concat(i,"-icon"),"".concat(s,"icon"),(e={},(0,N.Z)(e,"".concat(s,"icon-").concat(l),l&&Fhe(l)),(0,N.Z)(e,"".concat(s,"icon-check"),!l&&"finish"===a&&(y&&!y.finish||!y)),(0,N.Z)(e,"".concat(s,"icon-cross"),!l&&"error"===a&&(y&&!y.error||!y)),e)),r=v.createElement("span",{className:"".concat(i,"-icon-dot")});return t=p?"function"===typeof p?v.createElement("span",{className:"".concat(i,"-icon")},p(r,{index:c-1,status:a,title:h,description:d})):v.createElement("span",{className:"".concat(i,"-icon")},r):l&&!Fhe(l)?v.createElement("span",{className:"".concat(i,"-icon")},l):y&&y.finish&&"finish"===a?v.createElement("span",{className:"".concat(i,"-icon")},y.finish):y&&y.error&&"error"===a?v.createElement("span",{className:"".concat(i,"-icon")},y.error):l||"finish"===a||"error"===a?v.createElement("span",{className:n}):v.createElement("span",{className:"".concat(i,"-icon")},c),g&&(t=g({index:c-1,status:a,title:h,description:d,node:t})),t}()),v.createElement("div",{className:"".concat(i,"-item-content")},v.createElement("div",{className:"".concat(i,"-item-title")},h,f&&v.createElement("div",{title:"string"===typeof f?f:void 0,className:"".concat(i,"-item-subtitle")},f)),d&&v.createElement("div",{className:"".concat(i,"-item-description")},d))));return S&&(I=S(I)||null),I},Hhe=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function zhe(e){var t,n=e.prefixCls,i=void 0===n?"rc-steps":n,r=e.style,o=void 0===r?{}:r,a=e.className,s=(e.children,e.direction),l=void 0===s?"horizontal":s,c=e.type,u=void 0===c?"default":c,d=e.labelPlacement,h=void 0===d?"horizontal":d,f=e.iconPrefix,p=void 0===f?"rc":f,g=e.status,m=void 0===g?"process":g,y=e.size,_=e.current,b=void 0===_?0:_,C=e.progressDot,S=void 0!==C&&C,w=e.stepIcon,k=e.initial,x=void 0===k?0:k,E=e.icons,T=e.onChange,I=e.itemRender,D=e.items,L=void 0===D?[]:D,O=Ai(e,Hhe),R="navigation"===u,A="inline"===u,M=A||S,P=A?"horizontal":l,Z=A?void 0:y,F=M?"vertical":h,B=Ja()(i,"".concat(i,"-").concat(P),a,(t={},(0,N.Z)(t,"".concat(i,"-").concat(Z),Z),(0,N.Z)(t,"".concat(i,"-label-").concat(F),"horizontal"===P),(0,N.Z)(t,"".concat(i,"-dot"),!!M),(0,N.Z)(t,"".concat(i,"-navigation"),R),(0,N.Z)(t,"".concat(i,"-inline"),A),t)),H=function(e){T&&b!==e&&T(e)};return v.createElement("div",Zt({className:B,style:o},O),L.filter((function(e){return e})).map((function(e,t){var n=(0,Ft.Z)({},e),r=x+t;return"error"===m&&t===b-1&&(n.className="".concat(i,"-next-error")),n.status||(n.status=r===b?m:r<b?"finish":"wait"),A&&(n.icon=void 0,n.subTitle=void 0),!n.render&&I&&(n.render=function(e){return I(n,e)}),v.createElement(Bhe,Zt({},n,{active:r===b,stepNumber:r+1,stepIndex:r,key:r,prefixCls:i,iconPrefix:p,wrapperStyle:o,progressDot:M,stepIcon:w,icons:E,onStepClick:T&&H}))})))}zhe.Step=Bhe;var jhe=zhe;var Vhe,Whe=function(e){var t,n=e.componentCls,i=e.stepsIconCustomTop,r=e.stepsIconCustomSize,o=e.stepsIconCustomFontSize;return t={},(0,N.Z)(t,n+"-item-custom",(0,N.Z)({},"> "+n+"-item-container > "+n+"-item-icon",(0,N.Z)({height:"auto",background:"none",border:0},"> "+n+"-icon",{top:i,width:r,height:r,fontSize:o,lineHeight:r+"px"}))),(0,N.Z)(t,"&:not("+n+"-vertical)",(0,N.Z)({},n+"-item-custom",(0,N.Z)({},n+"-item-icon",{width:"auto",background:"none"}))),t},Uhe=function(e){var t,n=e.componentCls,i=e.stepsIconSize,r=e.lineHeight,o=e.stepsSmallIconSize;return(0,N.Z)({},"&"+n+"-label-vertical",(t={},(0,N.Z)(t,n+"-item",{overflow:"visible","&-tail":{marginInlineStart:i/2+e.controlHeightLG,padding:e.paddingXXS+"px "+e.paddingLG+"px"},"&-content":{display:"block",width:2*(i/2+e.controlHeightLG),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}}),(0,N.Z)(t,"&"+n+"-small:not("+n+"-dot)",(0,N.Z)({},n+"-item",{"&-icon":{marginInlineStart:e.controlHeightLG+(i-o)/2}})),t))},Ghe=function(e){var t,n,i,r,o,a=e.componentCls,s=e.stepsNavContentMaxWidth,l=e.stepsNavArrowColor,c=e.stepsNavActiveColor,u=e.motionDurationSlow;return o={},(0,N.Z)(o,"&"+a+"-navigation",(i={paddingTop:e.paddingSM},(0,N.Z)(i,"&"+a+"-small",(0,N.Z)({},a+"-item",{"&-container":{marginInlineStart:-e.marginSM}})),(0,N.Z)(i,a+"-item",(n={overflow:"visible",textAlign:"center","&-container":(t={display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:"opacity "+u},(0,N.Z)(t,a+"-item-content",{maxWidth:s}),(0,N.Z)(t,a+"-item-title",Zt(Zt({maxWidth:"100%",paddingInlineEnd:0},Za),{"&::after":{display:"none"}})),t)},(0,N.Z)(n,"&:not("+a+"-item-active)",(0,N.Z)({},a+"-item-container[role='button']",{cursor:"pointer","&:hover":{opacity:.85}})),(0,N.Z)(n,"&:last-child",{flex:1,"&::after":{display:"none"}}),(0,N.Z)(n,"&::after",{position:"absolute",top:"calc(50% - "+e.paddingSM/2+"px)",insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:e.lineWidth+"px "+e.lineType+" "+l,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:e.lineWidth+"px "+e.lineType+" "+l,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'}),(0,N.Z)(n,"&::before",{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:c,transition:"width "+u+", inset-inline-start "+u,transitionTimingFunction:"ease-out",content:'""'}),n)),(0,N.Z)(i,a+"-item"+a+"-item-active::before",{insetInlineStart:0,width:"100%"}),i)),(0,N.Z)(o,"&"+a+"-navigation"+a+"-vertical",(0,N.Z)({},"> "+a+"-item",(r={marginInlineEnd:0,"&::before":{display:"none"}},(0,N.Z)(r,"&"+a+"-item-active::before",{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:3*e.lineWidth,height:"calc(100% - "+e.marginLG+"px)"}),(0,N.Z)(r,"&::after",{position:"relative",insetInlineStart:"50%",display:"block",width:.25*e.controlHeight,height:.25*e.controlHeight,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}),(0,N.Z)(r,"> "+a+"-item-container > "+a+"-item-tail",{visibility:"hidden"}),r))),(0,N.Z)(o,"&"+a+"-navigation"+a+"-horizontal",(0,N.Z)({},"> "+a+"-item > "+a+"-item-container > "+a+"-item-tail",{visibility:"hidden"})),o},Khe=function(e){var t,n=e.antCls,i=e.componentCls;return(0,N.Z)({},"&"+i+"-with-progress",(t={},(0,N.Z)(t,i+"-item",(0,N.Z)({paddingTop:e.paddingXXS},"&-process "+i+"-item-container "+i+"-item-icon "+i+"-icon",{color:e.processIconColor})),(0,N.Z)(t,"&"+i+"-vertical > "+i+"-item > "+i+"-item-container > "+i+"-item-tail",{top:e.marginXXS}),(0,N.Z)(t,"&"+i+"-horizontal",(0,N.Z)({},i+"-item:first-child",{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS})),(0,N.Z)(t,"&"+i+"-label-vertical",(0,N.Z)({},i+"-item "+i+"-item-tail",{top:e.margin-2*e.lineWidth})),(0,N.Z)(t,i+"-item-icon",(0,N.Z)({position:"relative"},n+"-progress",{position:"absolute",insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-2*e.lineWidth)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-2*e.lineWidth)/2})),t))},Yhe=function(e){var t,n,i,r,o=e.componentCls,a=e.descriptionWidth,s=e.lineHeight,l=e.stepsCurrentDotSize,c=e.stepsDotSize,u=e.motionDurationSlow;return r={},(0,N.Z)(r,"&"+o+"-dot, &"+o+"-dot"+o+"-small",(0,N.Z)({},o+"-item",(t={"&-title":{lineHeight:s},"&-tail":{top:Math.floor((e.stepsDotSize-3*e.lineWidth)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:a/2+"px 0",padding:0,"&::after":{width:"calc(100% - "+2*e.marginSM+"px)",height:3*e.lineWidth,marginInlineStart:e.marginSM}},"&-icon":(0,N.Z)({width:c,height:c,marginInlineStart:(e.descriptionWidth-c)/2,paddingInlineEnd:0,lineHeight:c+"px",background:"transparent",border:0},o+"-icon-dot",{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:"all "+u,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(c-1.5*e.controlHeightLG)/2,width:1.5*e.controlHeightLG,height:e.controlHeight,background:"transparent",content:'""'}}),"&-content":{width:a}},(0,N.Z)(t,"&-process "+o+"-item-icon",{position:"relative",top:(c-l)/2,width:l,height:l,lineHeight:l+"px",background:"none",marginInlineStart:(e.descriptionWidth-l)/2}),(0,N.Z)(t,"&-process "+o+"-icon",(0,N.Z)({},"&:first-child "+o+"-icon-dot",{insetInlineStart:0})),t))),(0,N.Z)(r,"&"+o+"-vertical"+o+"-dot",(i={},(0,N.Z)(i,o+"-item-icon",{marginTop:(e.controlHeight-c)/2,marginInlineStart:0,background:"none"}),(0,N.Z)(i,o+"-item-process "+o+"-item-icon",{marginTop:(e.controlHeight-l)/2,top:0,insetInlineStart:(c-l)/2,marginInlineStart:0}),(0,N.Z)(i,o+"-item > "+o+"-item-container > "+o+"-item-tail",{top:(e.controlHeight-c)/2,insetInlineStart:0,margin:0,padding:c+e.paddingXS+"px 0 "+e.paddingXS+"px","&::after":{marginInlineStart:(c-e.lineWidth)/2}}),(0,N.Z)(i,"&"+o+"-small",(n={},(0,N.Z)(n,o+"-item-icon",{marginTop:(e.controlHeightSM-c)/2}),(0,N.Z)(n,o+"-item-process "+o+"-item-icon",{marginTop:(e.controlHeightSM-l)/2}),(0,N.Z)(n,o+"-item > "+o+"-item-container > "+o+"-item-tail",{top:(e.controlHeightSM-c)/2}),n)),(0,N.Z)(i,o+"-item:first-child "+o+"-icon-dot",{insetInlineStart:0}),(0,N.Z)(i,o+"-item-content",{width:"inherit"}),i)),r},qhe=function(e){var t,n=e.componentCls;return(0,N.Z)({},"&"+n+"-rtl",(t={direction:"rtl"},(0,N.Z)(t,n+"-item",{"&-subtitle":{float:"left"}}),(0,N.Z)(t,"&"+n+"-navigation",(0,N.Z)({},n+"-item::after",{transform:"rotate(-45deg)"})),(0,N.Z)(t,"&"+n+"-vertical",(0,N.Z)({},"> "+n+"-item",(0,N.Z)({"&::after":{transform:"rotate(225deg)"}},n+"-item-icon",{float:"right"}))),(0,N.Z)(t,"&"+n+"-dot",(0,N.Z)({},n+"-item-icon "+n+"-icon-dot, &"+n+"-small "+n+"-item-icon "+n+"-icon-dot",{float:"right"})),t))},$he=function(e){var t,n=e.componentCls,i=e.stepsSmallIconSize,r=e.fontSizeSM,o=e.fontSize,a=e.colorTextDescription;return(0,N.Z)({},"&"+n+"-small",(t={},(0,N.Z)(t,"&"+n+"-horizontal:not("+n+"-label-vertical) "+n+"-item",{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}}),(0,N.Z)(t,n+"-item-icon",{width:i,height:i,marginTop:0,marginBottom:0,marginInline:"0 "+e.marginXS+"px",fontSize:r,lineHeight:i+"px",textAlign:"center",borderRadius:i}),(0,N.Z)(t,n+"-item-title",{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:i+"px","&::after":{top:i/2}}),(0,N.Z)(t,n+"-item-description",{color:a,fontSize:o}),(0,N.Z)(t,n+"-item-tail",{top:i/2-e.paddingXXS}),(0,N.Z)(t,n+"-item-custom "+n+"-item-icon",(0,N.Z)({width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0},"> "+n+"-icon",{fontSize:i,lineHeight:i+"px",transform:"none"})),t))},Xhe=function(e){var t,n,i,r=e.componentCls,o=e.stepsSmallIconSize,a=e.stepsIconSize;return(0,N.Z)({},"&"+r+"-vertical",(i={display:"flex",flexDirection:"column"},(0,N.Z)(i,"> "+r+"-item",(t={display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible"},(0,N.Z)(t,r+"-item-icon",{float:"left",marginInlineEnd:e.margin}),(0,N.Z)(t,r+"-item-content",{display:"block",minHeight:1.5*e.controlHeight,overflow:"hidden"}),(0,N.Z)(t,r+"-item-title",{lineHeight:a+"px"}),(0,N.Z)(t,r+"-item-description",{paddingBottom:e.paddingSM}),t)),(0,N.Z)(i,"> "+r+"-item > "+r+"-item-container > "+r+"-item-tail",{position:"absolute",top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:a+1.5*e.marginXXS+"px 0 "+1.5*e.marginXXS+"px","&::after":{width:e.lineWidth,height:"100%"}}),(0,N.Z)(i,"> "+r+"-item:not(:last-child) > "+r+"-item-container > "+r+"-item-tail",{display:"block"}),(0,N.Z)(i," > "+r+"-item > "+r+"-item-container > "+r+"-item-content > "+r+"-item-title",{"&::after":{display:"none"}}),(0,N.Z)(i,"&"+r+"-small "+r+"-item-container",(n={},(0,N.Z)(n,r+"-item-tail",{position:"absolute",top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:o+1.5*e.marginXXS+"px 0 "+1.5*e.marginXXS+"px"}),(0,N.Z)(n,r+"-item-title",{lineHeight:o+"px"}),n)),i))},Qhe=function(e){var t,n,i,r=e.componentCls,o=e.inlineDotSize,a=e.inlineTitleColor,s=e.inlineTailColor,l=e.paddingXS+e.lineWidth,c=(0,N.Z)({},r+"-item-container "+r+"-item-content "+r+"-item-title",{color:a});return(0,N.Z)({},"&"+r+"-inline",(0,N.Z)({width:"auto",display:"inline-flex"},r+"-item",(i={flex:"none","&-container":(0,N.Z)({padding:l+"px "+e.paddingXXS+"px 0",margin:"0 "+e.marginXXS/2+"px",borderRadius:e.borderRadiusSM,cursor:"pointer",transition:"background-color "+e.motionDurationMid,"&:hover":{background:e.controlItemBgHover}},"&[role='button']:hover",{opacity:1}),"&-icon":(t={width:o,height:o,marginInlineStart:"calc(50% - "+o/2+"px)"},(0,N.Z)(t,"> "+r+"-icon",{top:0}),(0,N.Z)(t,r+"-icon-dot",{borderRadius:e.fontSizeSM/4}),t),"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:a,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:l+o/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:s}}},(0,N.Z)(i,"&:first-child "+r+"-item-tail",{width:"50%",marginInlineStart:"50%"}),(0,N.Z)(i,"&:last-child "+r+"-item-tail",{display:"block",width:"50%"}),(0,N.Z)(i,"&-wait",Zt((0,N.Z)({},r+"-item-icon "+r+"-icon "+r+"-icon-dot",{backgroundColor:e.colorBorderBg,border:e.lineWidth+"px "+e.lineType+" "+s}),c)),(0,N.Z)(i,"&-finish",Zt((n={},(0,N.Z)(n,r+"-item-tail::after",{backgroundColor:s}),(0,N.Z)(n,r+"-item-icon "+r+"-icon "+r+"-icon-dot",{backgroundColor:s,border:e.lineWidth+"px "+e.lineType+" "+s}),n),c)),(0,N.Z)(i,"&-error",c),(0,N.Z)(i,"&-active, &-process",Zt((0,N.Z)({},r+"-item-icon",{width:o,height:o,marginInlineStart:"calc(50% - "+o/2+"px)",top:0}),c)),(0,N.Z)(i,"&:not("+r+"-item-active) > "+r+"-item-container[role='button']:hover",(0,N.Z)({},r+"-item-title",{color:a})),i)))};!function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"}(Vhe||(Vhe={}));var Jhe=function(e,t){var n,i=t.componentCls+"-item",r=e+"IconColor",o=e+"TitleColor",a=e+"DescriptionColor",s=e+"TailColor",l=e+"IconBgColor",c=e+"IconBorderColor",u=e+"DotColor";return n={},(0,N.Z)(n,i+"-"+e+" "+i+"-icon",(0,N.Z)({backgroundColor:t[l],borderColor:t[c]},"> "+t.componentCls+"-icon",(0,N.Z)({color:t[r]},t.componentCls+"-icon-dot",{background:t[u]}))),(0,N.Z)(n,i+"-"+e+i+"-custom "+i+"-icon",(0,N.Z)({},"> "+t.componentCls+"-icon",{color:t[u]})),(0,N.Z)(n,i+"-"+e+" > "+i+"-container > "+i+"-content > "+i+"-title",{color:t[o],"&::after":{backgroundColor:t[s]}}),(0,N.Z)(n,i+"-"+e+" > "+i+"-container > "+i+"-content > "+i+"-description",{color:t[a]}),(0,N.Z)(n,i+"-"+e+" > "+i+"-container > "+i+"-tail::after",{backgroundColor:t[s]}),n},efe=function(e){var t=e.componentCls;return(0,N.Z)({},t,Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt(Zt({},Fa(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),function(e){var t,n,i=e.componentCls,r=e.motionDurationSlow,o=i+"-item";return Zt(Zt(Zt(Zt(Zt(Zt((t={},(0,N.Z)(t,o,{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":(0,N.Z)({flex:"none"},"> "+o+"-container > "+o+"-tail, > "+o+"-container > "+o+"-content > "+o+"-title::after",{display:"none"})}),(0,N.Z)(t,o+"-container",{outline:"none"}),(0,N.Z)(t,o+"-icon, "+o+"-content",{display:"inline-block",verticalAlign:"top"}),(0,N.Z)(t,o+"-icon",(0,N.Z)({width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:e.stepsIconSize+"px",textAlign:"center",borderRadius:e.stepsIconSize,border:e.lineWidth+"px "+e.lineType+" transparent",transition:"background-color "+r+", border-color "+r},i+"-icon",{position:"relative",top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1})),(0,N.Z)(t,o+"-tail",{position:"absolute",top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:"background "+r,content:'""'}}),(0,N.Z)(t,o+"-title",{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:e.stepsTitleLineHeight+"px","&::after":{position:"absolute",top:e.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}}),(0,N.Z)(t,o+"-subtitle",{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize}),(0,N.Z)(t,o+"-description",{color:e.colorTextDescription,fontSize:e.fontSize}),t),Jhe(Vhe.wait,e)),Jhe(Vhe.process,e)),(0,N.Z)({},o+"-process > "+o+"-container > "+o+"-title",{fontWeight:e.fontWeightStrong})),Jhe(Vhe.finish,e)),Jhe(Vhe.error,e)),(n={},(0,N.Z)(n,""+o+i+"-next-error > "+i+"-item-title::after",{background:e.colorError}),(0,N.Z)(n,o+"-disabled",{cursor:"not-allowed"}),n))}(e)),function(e){var t,n,i,r,o=e.componentCls,a=e.motionDurationSlow;return r={},(0,N.Z)(r,"& "+o+"-item",(0,N.Z)({},"&:not("+o+"-item-active)",(n={},(0,N.Z)(n,"& > "+o+"-item-container[role='button']",(t={cursor:"pointer"},(0,N.Z)(t,o+"-item",(0,N.Z)({},"&-title, &-subtitle, &-description, &-icon "+o+"-icon",{transition:"color "+a})),(0,N.Z)(t,"&:hover",(0,N.Z)({},o+"-item",(0,N.Z)({},"&-title, &-subtitle, &-description",{color:e.colorPrimary}))),t)),(0,N.Z)(n,"&:not("+o+"-item-process)",(0,N.Z)({},"& > "+o+"-item-container[role='button']:hover",(0,N.Z)({},o+"-item",{"&-icon":(0,N.Z)({borderColor:e.colorPrimary},o+"-icon",{color:e.colorPrimary})}))),n))),(0,N.Z)(r,"&"+o+"-horizontal:not("+o+"-label-vertical)",(0,N.Z)({},o+"-item",(i={paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0}},(0,N.Z)(i,"&:last-child "+o+"-item-title",{paddingInlineEnd:0}),(0,N.Z)(i,"&-tail",{display:"none"}),(0,N.Z)(i,"&-description",{maxWidth:e.descriptionWidth,whiteSpace:"normal"}),i))),r}(e)),Whe(e)),$he(e)),Xhe(e)),Uhe(e)),Yhe(e)),Ghe(e)),qhe(e)),Khe(e)),Qhe(e)))},tfe=hs("Steps",(function(e){var t=e.wireframe,n=e.colorTextDisabled,i=e.fontSizeHeading3,r=e.fontSize,o=e.controlHeight,a=e.controlHeightLG,s=e.colorTextLightSolid,l=e.colorText,c=e.colorPrimary,u=e.colorTextLabel,d=e.colorTextDescription,h=e.colorTextQuaternary,f=e.colorFillContent,p=e.controlItemBgActive,g=e.colorError,v=e.colorBgContainer,m=e.colorBorderSecondary,y=e.controlHeight,_=e.colorSplit,b=cs(e,{processTailColor:_,stepsNavArrowColor:n,stepsIconSize:y,stepsIconCustomSize:y,stepsIconCustomTop:0,stepsIconCustomFontSize:a/2,stepsIconTop:-.5,stepsIconFontSize:r,stepsTitleLineHeight:o,stepsSmallIconSize:i,stepsDotSize:o/4,stepsCurrentDotSize:a/4,stepsNavContentMaxWidth:"auto",processIconColor:s,processTitleColor:l,processDescriptionColor:l,processIconBgColor:c,processIconBorderColor:c,processDotColor:c,waitIconColor:t?n:u,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:_,waitIconBgColor:t?v:f,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:c,finishTitleColor:l,finishDescriptionColor:d,finishTailColor:c,finishIconBgColor:t?v:p,finishIconBorderColor:t?c:p,finishDotColor:c,errorIconColor:s,errorTitleColor:g,errorDescriptionColor:g,errorTailColor:_,errorIconBgColor:g,errorIconBorderColor:g,errorDotColor:g,stepsNavActiveColor:c,stepsProgressSize:a,inlineDotSize:6,inlineTitleColor:h,inlineTailColor:m});return[efe(b)]}),{descriptionWidth:140}),nfe=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},ife=function(e){var t,n,i=e.percent,r=e.size,o=e.className,a=e.direction,s=e.items,l=e.responsive,c=void 0===l||l,u=e.current,d=void 0===u?0:u,h=e.children,f=nfe(e,["percent","size","className","direction","items","responsive","current","children"]),p=VC(c).xs,g=v.useContext(wa),m=g.getPrefixCls,y=g.direction,_=v.useCallback((function(){return c&&p?"vertical":a}),[p,a]),b=m("steps",e.prefixCls),C=tfe(b),S=(0,k.Z)(C,2),w=S[0],x=S[1],E="inline"===e.type,T=m("",e.iconPrefix),I=function(e,t){if(e)return e;var n=Zi(t).map((function(e){return v.isValidElement(e)?Zt({},e.props):null}));return function(e){return e.filter((function(e){return e}))}(n)}(s,h),D=E?void 0:i,L=Ja()((t={},(0,N.Z)(t,b+"-rtl","rtl"===y),(0,N.Z)(t,b+"-with-progress",void 0!==D),t),o,x),O={finish:v.createElement(fx,{className:b+"-finish-icon"}),error:v.createElement(Ap,{className:b+"-error-icon"})};return E&&(n=function(e,t){return e.description?v.createElement(Vf,{title:e.description},t):t}),w(v.createElement(jhe,Zt({icons:O},f,{current:d,size:r,items:I,itemRender:n,direction:_(),stepIcon:function(e){var t=e.node;if("process"===e.status&&void 0!==D){var n="small"===r?32:40;return v.createElement("div",{className:b+"-progress-icon"},v.createElement(EB,{type:"circle",percent:D,width:n,strokeWidth:4,format:function(){return null}}),t)}return t},prefixCls:b,iconPrefix:T,className:L})))};ife.Step=jhe.Step;var rfe,ofe=ife;function afe(e){var t=e.allValues,n=e.dependencies,i=e.onDepChange,r=e.children,o=(0,v.useRef)(),a=(0,v.useRef)({}),s=(0,v.useMemo)((function(){return Object.entries(t).reduce((function(e,t){var i=(0,k.Z)(t,2),r=i[0],o=i[1];return n.map((function(e){return Array.isArray(e)?e[0]:e})).includes(r)&&(e[r]=o),e}),{})}),[t,n]);return(0,v.useEffect)((function(){console.log(JSON.stringify(s),a.current),JSON.stringify(s)!==a.current&&(console.log("onDepChange",n,s),null===i||void 0===i||i(s))}),[s]),JSON.stringify(s)===a.current||(a.current=JSON.stringify(s),o.current=r(s)),o.current}function sfe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function lfe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sfe(Object(n),!0).forEach((function(t){(0,N.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sfe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}rfe||(rfe={});var cfe={};function ufe(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return cfe[t]||(cfe[t]=function(e){var t=e.length;return 0===t||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}(e)),cfe[t]}function dfe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=e.filter((function(e){return"token"!==e})),r=ufe(i);return r.reduce((function(e,t){return lfe(lfe({},e),n[t])}),t)}function hfe(e){return e.join(" ")}function ffe(e){var t=e.node,n=e.stylesheet,i=e.style,r=void 0===i?{}:i,o=e.useInlineStyles,a=e.key,s=t.properties,l=t.type,c=t.tagName,u=t.value;if("text"===l)return u;if(c){var d,h=function(e,t){var n=0;return function(i){return n+=1,i.map((function(i,r){return ffe({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(r)})}))}}(n,o);if(o){var f=Object.keys(n).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),p=s.className&&s.className.includes("token")?["token"]:[],g=s.className&&p.concat(s.className.filter((function(e){return!f.includes(e)})));d=lfe(lfe({},s),{},{className:hfe(g)||void 0,style:dfe(s.className,Object.assign({},s.style,r),n)})}else d=lfe(lfe({},s),{},{className:hfe(s.className)});var m=h(t.children);return v.createElement(c,Zt({key:a},d),m)}}var pfe=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function gfe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function vfe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gfe(Object(n),!0).forEach((function(t){(0,N.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gfe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mfe=/\n/g;function yfe(e){var t=e.codeString,n=e.codeStyle,i=e.containerStyle,r=void 0===i?{float:"left",paddingRight:"10px"}:i,o=e.numberStyle,a=void 0===o?{}:o,s=e.startingLineNumber;return v.createElement("code",{style:Object.assign({},n,r)},function(e){var t=e.lines,n=e.startingLineNumber,i=e.style;return t.map((function(e,t){var r=t+n;return v.createElement("span",{key:"line-".concat(t),className:"react-syntax-highlighter-line-number",style:"function"===typeof i?i(r):i},"".concat(r,"\n"))}))}({lines:t.replace(/\n$/,"").split("\n"),style:a,startingLineNumber:s}))}function _fe(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function bfe(e,t,n){var i,r={display:"inline-block",minWidth:(i=n,"".concat(i.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},o="function"===typeof e?e(t):e;return vfe(vfe({},r),o)}function Cfe(e){var t=e.children,n=e.lineNumber,i=e.lineNumberStyle,r=e.largestLineNumber,o=e.showInlineLineNumbers,a=e.lineProps,s=void 0===a?{}:a,l=e.className,c=void 0===l?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,h="function"===typeof s?s(n):s;if(h.className=c,n&&o){var f=bfe(i,n,r);t.unshift(_fe(n,f))}return d&u&&(h.style=vfe(vfe({},h.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:h,children:t}}function Sfe(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=0;i<e.length;i++){var r=e[i];if("text"===r.type)n.push(Cfe({children:[r],className:(0,_.Z)(new Set(t))}));else if(r.children){var o=t.concat(r.properties.className);Sfe(r.children,o).forEach((function(e){return n.push(e)}))}}return n}function wfe(e,t,n,i,r,o,a,s,l){var c,u=Sfe(e.value),d=[],h=-1,f=0;function p(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return Cfe({children:e,lineNumber:t,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:r,lineProps:n,className:o,showLineNumbers:i,wrapLongLines:l})}function g(e,t){if(i&&t&&r){var n=bfe(s,t,a);e.unshift(_fe(t,n))}return e}function v(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||i.length>0?p(e,n,i):g(e,n)}for(var m=function(){var e=u[f],t=e.children[0].value,n=function(e){return e.match(mfe)}(t);if(n){var r=t.split("\n");r.forEach((function(t,n){var a=i&&d.length+o,s={type:"text",value:"".concat(t,"\n")};if(0===n){var l=v(u.slice(h+1,f).concat(Cfe({children:[s],className:e.properties.className})),a);d.push(l)}else if(n===r.length-1){var c=u[f+1]&&u[f+1].children&&u[f+1].children[0],p={type:"text",value:"".concat(t)};if(c){var g=Cfe({children:[p],className:e.properties.className});u.splice(f+1,0,g)}else{var m=v([p],a,e.properties.className);d.push(m)}}else{var y=v([s],a,e.properties.className);d.push(y)}})),h=f}f++};f<u.length;)m();if(h!==u.length-1){var y=u.slice(h+1,u.length);if(y&&y.length){var _=v(y,i&&d.length+o);d.push(_)}}return t?d:(c=[]).concat.apply(c,d)}function kfe(e){var t=e.rows,n=e.stylesheet,i=e.useInlineStyles;return t.map((function(e,t){return ffe({node:e,stylesheet:n,useInlineStyles:i,key:"code-segement".concat(t)})}))}function xfe(e){return e&&"undefined"!==typeof e.highlightAuto}var Efe,Tfe,Nfe=n(3703),Ife=(Efe=n.n(Nfe)(),Tfe={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#F0F0F0",color:"#444"},"hljs-subst":{color:"#444"},"hljs-comment":{color:"#888888"},"hljs-keyword":{fontWeight:"bold"},"hljs-attribute":{fontWeight:"bold"},"hljs-selector-tag":{fontWeight:"bold"},"hljs-meta-keyword":{fontWeight:"bold"},"hljs-doctag":{fontWeight:"bold"},"hljs-name":{fontWeight:"bold"},"hljs-type":{color:"#880000"},"hljs-string":{color:"#880000"},"hljs-number":{color:"#880000"},"hljs-selector-id":{color:"#880000"},"hljs-selector-class":{color:"#880000"},"hljs-quote":{color:"#880000"},"hljs-template-tag":{color:"#880000"},"hljs-deletion":{color:"#880000"},"hljs-title":{color:"#880000",fontWeight:"bold"},"hljs-section":{color:"#880000",fontWeight:"bold"},"hljs-regexp":{color:"#BC6060"},"hljs-symbol":{color:"#BC6060"},"hljs-variable":{color:"#BC6060"},"hljs-template-variable":{color:"#BC6060"},"hljs-link":{color:"#BC6060"},"hljs-selector-attr":{color:"#BC6060"},"hljs-selector-pseudo":{color:"#BC6060"},"hljs-literal":{color:"#78A960"},"hljs-built_in":{color:"#397300"},"hljs-bullet":{color:"#397300"},"hljs-code":{color:"#397300"},"hljs-addition":{color:"#397300"},"hljs-meta":{color:"#1f7199"},"hljs-meta-string":{color:"#4d99bf"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},function(e){var t=e.language,n=e.children,i=e.style,r=void 0===i?Tfe:i,o=e.customStyle,a=void 0===o?{}:o,s=e.codeTagProps,l=void 0===s?{className:t?"language-".concat(t):void 0,style:vfe(vfe({},r['code[class*="language-"]']),r['code[class*="language-'.concat(t,'"]')])}:s,c=e.useInlineStyles,u=void 0===c||c,d=e.showLineNumbers,h=void 0!==d&&d,f=e.showInlineLineNumbers,p=void 0===f||f,g=e.startingLineNumber,m=void 0===g?1:g,y=e.lineNumberContainerStyle,_=e.lineNumberStyle,b=void 0===_?{}:_,C=e.wrapLines,S=e.wrapLongLines,w=void 0!==S&&S,k=e.lineProps,x=void 0===k?{}:k,E=e.renderer,T=e.PreTag,N=void 0===T?"pre":T,I=e.CodeTag,D=void 0===I?"code":I,L=e.code,O=void 0===L?(Array.isArray(n)?n[0]:n)||"":L,R=e.astGenerator,A=Ai(e,pfe);R=R||Efe;var M=h?v.createElement(yfe,{containerStyle:y,codeStyle:l.style||{},numberStyle:b,startingLineNumber:m,codeString:O}):null,P=r.hljs||r['pre[class*="language-"]']||{backgroundColor:"#fff"},Z=xfe(R)?"hljs":"prismjs",F=u?Object.assign({},A,{style:Object.assign({},P,a)}):Object.assign({},A,{className:A.className?"".concat(Z," ").concat(A.className):Z,style:Object.assign({},a)});if(l.style=vfe(vfe({},l.style),{},w?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"}),!R)return v.createElement(N,F,M,v.createElement(D,l,O));(void 0===C&&E||w)&&(C=!0),E=E||kfe;var B=[{type:"text",value:O}],H=function(e){var t=e.astGenerator,n=e.language,i=e.code,r=e.defaultCodeValue;if(xfe(t)){var o=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,n);return"text"===n?{value:r,language:"text"}:o?t.highlight(n,i):t.highlightAuto(i)}try{return n&&"text"!==n?{value:t.highlight(i,n)}:{value:r}}catch(Fc){return{value:r}}}({astGenerator:R,language:t,code:O,defaultCodeValue:B});null===H.language&&(H.value=B);var z=wfe(H,C,x,h,p,m,H.value.length+m,b,w);return v.createElement(N,F,v.createElement(D,l,!p&&M,E({rows:z,stylesheet:r,useInlineStyles:u})))});Ife.supportedLanguages=["1c","abnf","accesslog","actionscript","ada","angelscript","apache","applescript","arcade","arduino","armasm","asciidoc","aspectj","autohotkey","autoit","avrasm","awk","axapta","bash","basic","bnf","brainfuck","c-like","c","cal","capnproto","ceylon","clean","clojure-repl","clojure","cmake","coffeescript","coq","cos","cpp","crmsh","crystal","csharp","csp","css","d","dart","delphi","diff","django","dns","dockerfile","dos","dsconfig","dts","dust","ebnf","elixir","elm","erb","erlang-repl","erlang","excel","fix","flix","fortran","fsharp","gams","gauss","gcode","gherkin","glsl","gml","go","golo","gradle","groovy","haml","handlebars","haskell","haxe","hsp","htmlbars","http","hy","inform7","ini","irpf90","isbl","java","javascript","jboss-cli","json","julia-repl","julia","kotlin","lasso","latex","ldif","leaf","less","lisp","livecodeserver","livescript","llvm","lsl","lua","makefile","markdown","mathematica","matlab","maxima","mel","mercury","mipsasm","mizar","mojolicious","monkey","moonscript","n1ql","nginx","nim","nix","node-repl","nsis","objectivec","ocaml","openscad","oxygene","parser3","perl","pf","pgsql","php-template","php","plaintext","pony","powershell","processing","profile","prolog","properties","protobuf","puppet","purebasic","python-repl","python","q","qml","r","reasonml","rib","roboconf","routeros","rsl","ruby","ruleslanguage","rust","sas","scala","scheme","scilab","scss","shell","smali","smalltalk","sml","sqf","sql","sql_more","stan","stata","step21","stylus","subunit","swift","taggerscript","tap","tcl","thrift","tp","twig","typescript","vala","vbnet","vbscript-html","vbscript","verilog","vhdl","vim","x86asm","xl","xml","xquery","yaml","zephir"];var Dfe=Ife,Lfe={hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#000",background:"#f8f8ff"},"hljs-comment":{color:"#408080",fontStyle:"italic"},"hljs-quote":{color:"#408080",fontStyle:"italic"},"hljs-keyword":{color:"#954121"},"hljs-selector-tag":{color:"#954121"},"hljs-literal":{color:"#954121"},"hljs-subst":{color:"#954121"},"hljs-number":{color:"#40a070"},"hljs-string":{color:"#219161"},"hljs-doctag":{color:"#219161"},"hljs-selector-id":{color:"#19469d"},"hljs-selector-class":{color:"#19469d"},"hljs-section":{color:"#19469d"},"hljs-type":{color:"#19469d"},"hljs-params":{color:"#00f"},"hljs-title":{color:"#458",fontWeight:"bold"},"hljs-tag":{color:"#000080",fontWeight:"normal"},"hljs-name":{color:"#000080",fontWeight:"normal"},"hljs-attribute":{color:"#000080",fontWeight:"normal"},"hljs-variable":{color:"#008080"},"hljs-template-variable":{color:"#008080"},"hljs-regexp":{color:"#b68"},"hljs-link":{color:"#b68"},"hljs-symbol":{color:"#990073"},"hljs-bullet":{color:"#990073"},"hljs-built_in":{color:"#0086b3"},"hljs-builtin-name":{color:"#0086b3"},"hljs-meta":{color:"#999",fontWeight:"bold"},"hljs-deletion":{background:"#fdd"},"hljs-addition":{background:"#dfd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}};function Ofe(e){var t=e.value,n=void 0===t?"":t,i=e.codeType,r=void 0===i?"sql":i;return(0,ES.jsx)("div",{className:"CodeHighlighter",children:(0,ES.jsx)(Dfe,{language:r,style:Lfe,children:n})})}var Rfe,Afe=ip.useForm,Mfe=Zy.TextArea,Pfe=(0,v.forwardRef)((function(e,t){var n=e.onFinish,i=Afe(),r=(0,k.Z)(i,1)[0],o=lt(),a=(0,v.useState)(),s=(0,k.Z)(a,2),l=s[0],c=s[1],u=(0,v.useState)(!1),d=(0,k.Z)(u,2),h=d[0],f=d[1],p=(0,v.useState)(!1),g=(0,k.Z)(p,2),m=g[0],y=g[1],_=Wde(Yk,{manual:!0}),b=(0,v.useCallback)((function(){r.resetFields(),y(!1)}),[r]);(0,v.useImperativeHandle)(t,(function(){return{open:function(e){return(0,T.Z)((0,E.Z)().mark((function t(){var n,i;return(0,E.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(c(e),y(!0),!e){t.next=12;break}return t.next=5,_.run(e);case 5:n=t.sent,i=(0,Ft.Z)((0,Ft.Z)({},n),{},{resource_type:n.dataResource.type}),r.setFieldsValue(i),Z(i,i),x(2),t.next=13;break;case 12:Z({},{});case 13:case"end":return t.stop()}}),t)})))()}}}),[r]);var C=(0,v.useState)(0),S=(0,k.Z)(C,2),w=S[0],x=S[1],N=(0,v.useCallback)((function(e,t){var n,i,r,o=0;t.name&&(o=1,B(t.filter)),t.name&&null!==(n=t.filter)&&void 0!==n&&n.product_id&&null!==(i=t.filter)&&void 0!==i&&i.message_source&&null!==(r=t.filter)&&void 0!==r&&r.select_name&&(o=2),x(o),console.log(e.resource_type),e.resource_type&&I.run({type:e.resource_type})}),[]),I=Wde(jk,{manual:!0,formatData:function(e){return(e.list||[]).filter((function(e){return e.health})).map((function(e){return{label:e.name,value:e.id}}))}}),D=Wde(Vk,{onSuccess:function(e){r.setFieldValue("method",e[0]),I.run({type:e[0]})}}),L=(0,v.useState)(""),O=(0,k.Z)(L,2),R=O[0],A=O[1],M=function(e){A(e.target.value),r.setFieldsValue({data_resource_id:void 0})},P=function(e){var t=(0,v.useState)({}),n=(0,k.Z)(t,2),i=n[0],r=n[1],o=(0,v.useState)({}),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useCallback)((function(t,n){r(n),e&&l(e(t,n))}),[]),u=(0,v.useMemo)((function(){return function(e){return(0,ES.jsx)(afe,(0,Ft.Z)({allValues:i},e))}}),[]),d=(0,v.useCallback)((function(e){return e(i)}),[i]);return{FormDependencies:u,onDepsChangeRender:d,onValuesChange:c,computed:s}}(N),Z=P.onValuesChange,F=P.onDepsChangeRender,B=(0,v.useCallback)(MP().debounce((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.select_name,n=void 0===t?"*":t,i=e.condition,o=["SELECT",n,"FROM","mqtt_stream"];i&&o.push("where",i);var a=o.join(" ");r.setFieldValue(["filter","sql"],a)}),500),[]),H=(0,v.useMemo)((function(){return[{title:"\u57fa\u672c\u4fe1\u606f",description:(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(ip.Item,{label:"\u89c4\u5219\u540d\u79f0",name:"name",rules:[{required:!0,validator:function(e,t,n){t?/^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5_-]{0,31}$/.test(t)?n():n("1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"):n("\u8bf7\u8f93\u5165\u89c4\u5219\u540d\u79f0")}}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165\u89c4\u5219\u540d\u79f0"})}),(0,ES.jsx)(ip.Item,{label:"\u89c4\u5219\u63cf\u8ff0",name:"description",children:(0,ES.jsx)(Mfe,{showCount:!0,maxLength:100,placeholder:"\u8bf7\u8f93\u5165\u89c4\u5219\u63cf\u8ff0",rows:4})})]})},{title:(0,ES.jsxs)("span",{children:["\u6761\u4ef6\u8fc7\u6ee4",(0,ES.jsx)(Vf,{className:"ml10",placement:"rightTop",title:"\u5e73\u53f0\u63d0\u4f9b\u4e0d\u540c\u7c7b\u578b\u6570\u636e\u7684\u6d88\u606f\u6e90\uff0c\u60a8\u53ef\u5b8c\u6210\u7b80\u5355\u7684\u4e1a\u52a1\u8bbe\u7f6e\u3002\u60a8\u8fd8\u53ef\u4ee5\u76f4\u63a5\u7f16\u8f91\u8fc7\u6ee4\u8bed\u53e5\uff0c\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u67e5\u8be2\u8981\u6c42\u3002 ",children:(0,ES.jsx)(zde,{})})]}),subTitle:"\uff08SELECT [\u67e5\u8be2\u5b57\u6bb5] FROM [\u6d88\u606f\u6e90] WHERE [\u6761\u4ef6]\uff09\uff0c\u591a\u4e2a\u7b5b\u9009\u9879\u4e4b\u95f4\u53d6\u4ea4\u96c6",description:(0,ES.jsx)(ES.Fragment,{children:F((function(e){return e.name&&(0,ES.jsxs)("div",{children:[(0,ES.jsxs)("div",{className:"mt10 mb10",style:{height:"40px",background:"#fceeca",display:"flex",alignItems:"center",border:"1px solid #ebb830"},children:[(0,ES.jsx)(Au,{style:{color:"#ef8c2b",marginLeft:"10px"}}),(0,ES.jsx)("span",{style:{color:"#f29100",fontSize:"12px"},children:"\u3010\u91cd\u8981\u63d0\u793a\uff1a\u4fee\u6539\u6d88\u606f\u6e90\u548c\u67e5\u8be2\u5b57\u6bb5\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8f93\u51fa\u7684\u6570\u636e\u683c\u5f0f\u6709\u53d8\u5316\u3011"})]}),(0,ES.jsx)(ip.Item,{label:"\u6d88\u606f\u6e90",name:["filter","message_source"],rules:[{required:!0,message:"\u8bf7\u9009\u62e9"}],children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",options:[{value:"\u6d88\u606f\u603b\u7ebf",label:"\u6d88\u606f\u603b\u7ebf"}]})}),(0,ES.jsx)(ip.Item,{label:"\u67e5\u8be2\u5b57\u6bb5",name:["filter","select_name"],rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u67e5\u8be2\u5b57\u6bb5"}],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165",showCount:!0,maxLength:300})}),(0,ES.jsx)(ip.Item,{label:"\u6761\u4ef6",name:["filter","condition"],children:(0,ES.jsx)(Zy,{placeholder:"\u8bf7\u8f93\u5165"})}),(0,ES.jsx)(ip.Item,{label:"SQL\u8bed\u53e5\u5c55\u793a",name:["filter","sql"],children:(0,ES.jsx)(Ofe,{})})]})}))})},{title:"\u8f6c\u53d1\u65b9\u5f0f",description:(0,ES.jsx)(ES.Fragment,{children:F((function(e){var t=e.name,n=e.filter;return t&&(null===n||void 0===n?void 0:n.message_source)&&(null===n||void 0===n?void 0:n.select_name)&&(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(ip.Item,{label:"\u8f6c\u53d1\u65b9\u5f0f",name:"resource_type",rules:[{required:!0,message:"\u8bf7\u9009\u62e9"}],children:(0,ES.jsx)(cO.Group,{onChange:M,value:R,children:(D.data||[]).map((function(e){return(0,ES.jsx)(cO,{value:e,children:e},e)}))})}),(0,ES.jsx)(ES.Fragment,{children:F((function(e){return e.resource_type&&(0,ES.jsx)(ip.Item,{label:"\u4f7f\u7528\u8d44\u6e90",name:"data_resource_id",rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],help:(0,ES.jsxs)("div",{children:["\u60a8\u4e5f\u53ef\u4ee5\u8fdb\u5165",(0,ES.jsx)("span",{style:{color:"#0070ff",cursor:"pointer"},onClick:function(){o("/advanced/resource/manage")},children:"\u8d44\u6e90\u7ba1\u7406"}),"\u6dfb\u52a0\u65b0\u7684\u5b9e\u4f8b"]}),children:(0,ES.jsx)(NI,{placeholder:"\u8bf7\u9009\u62e9",loading:I.loading,showSearch:!0,onSearch:function(e){return I.run({name:e,type:"HTTP\u63a8\u9001"})},allowClear:!0,options:I.data})})}))})]})}))})}]}),[F,I.data]);return(0,ES.jsx)(jM,{title:l?"\u7f16\u8f91\u89c4\u5219":"\u6dfb\u52a0\u89c4\u5219",placement:"right",open:m,width:700,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:b}),onClose:b,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:h,disabled:h,onClick:function(){r.validateFields().then((function(e){console.log("values",e);var t=(0,Ft.Z)({},e);console.log("params",t),f(!0),l?(e.id=l,function(e){return kk({url:"/api/v1/rule-engine",method:"put",data:e})}(e).then((function(e){e.success?(qp.success("\u4fee\u6539\u6210\u529f"),b(),n()):qp.error(e.errorMsg)})).finally((function(){f(!1)}))):function(e){return kk({url:"/api/v1/rule-engine",method:"post",data:e})}(t).then((function(e){e.success?(qp.success("\u6dfb\u52a0\u6210\u529f"),b(),n()):qp.error(e.errorMsg)})).finally((function(){f(!1)}))}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:b,children:"\u53d6\u6d88"})]}),children:(0,ES.jsx)(ip,{form:r,onValuesChange:Z,initialValues:{filter:{select_name:"*"}},children:(0,ES.jsx)(ofe,{current:w,size:"small",direction:"vertical",items:H})})})})),Zfe=sE.Text,Ffe=qp.useMessage,Bfe=function(){var e,t,i,r,o,a,s,l,c,u=ut();console.log(null===u||void 0===u?void 0:u.id);var d=Ffe(),h=(0,k.Z)(d,2),f=h[0],p=h[1],g=(0,v.useRef)(null),m=Wde(Yk,{manual:!0}),y=Wde(Xk,{manual:!0}),_=Wde(jk,{manual:!0}),b=TM({onRequest:function(e){var t,n;return function(e){return kk({url:"/api/v1/rule-engine",params:e})}((0,Ft.Z)((0,Ft.Z)({},e),{},{start_time:null===(t=e.time)||void 0===t?void 0:t[0].valueOf(),end_time:null===(n=e.time)||void 0===n?void 0:n[1].valueOf(),time:void 0}))}}),C=b.loading,S=b.dataSource,w=b.pagination,x=b.form,N=b.reload,I=b.search,D=b.reset;console.log("dataSource",S);var L=(0,v.useState)(!1),O=(0,k.Z)(L,2),R=O[0],A=O[1],M=function(){var e=(0,T.Z)((0,E.Z)().mark((function e(t){var n,i,r;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.id,y.run(i),e.next=4,m.run(i);case 4:r=e.sent,_.run({type:null===r||void 0===r||null===(n=r.dataResource)||void 0===n?void 0:n.type}),A(!0);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(){A(!1)};return(0,ES.jsxs)(ES.Fragment,{children:[p,(0,ES.jsx)(Pfe,{ref:g,onFinish:N}),(0,ES.jsx)(kM,{title:"\u89c4\u5219\u5f15\u64ce",describe:"\u89c4\u5219\u5f15\u64ce\u63d0\u4f9b\u6570\u636e\u6d41\u8f6c\u80fd\u529b\uff0c\u53ef\u5bf9\u63a5\u5165\u5e73\u53f0\u7684\u8bbe\u5907\u6570\u636e\u8fdb\u884c\u8fc7\u6ee4\u8f6c\u6362\uff0c\u5e76\u5c06\u6570\u636e\u63a8\u9001\u81f3\u7528\u6237\u6307\u5b9a\u7684\u6d88\u606f\u76ee\u7684\u5730\u3002\u89c4\u5219\u5f15\u64ce\u6d41\u8f6c\u89c4\u5219\u9700\u8981\u914d\u7f6e\u6d88\u606f\u6e90\uff08\u63a8\u9001\u6d88\u606f\u7c7b\u578b\uff09\u3001\u6761\u4ef6\u8fc7\u6ee4\u89c4\u5219\u53ca\u6d88\u606f\u76ee\u7684\u5730\uff08\u63a8\u9001\u65b9\u5f0f\uff09\u3002",background:n(64669)}),(0,ES.jsx)(AT,{className:"m20",size:"small",children:(0,ES.jsxs)(ip,{layout:"inline",form:x,children:[(0,ES.jsx)(ip.Item,{name:"status",children:(0,ES.jsx)(NI,{style:{width:120},placeholder:"\u542f\u7528\u72b6\u6001",options:[{label:"\u72b6\u6001 (\u5168\u90e8)",value:""},{label:"\u542f\u7528",value:"running"},{label:"\u7981\u7528",value:"stopped"}]})},"status"),(0,ES.jsx)(ip.Item,{name:"name",label:"\u89c4\u5219\u540d\u79f0",children:(0,ES.jsx)(Zy,{style:{width:220},placeholder:"\u641c\u7d22\u89c4\u5219",allowClear:!0})},"name"),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"primary",onClick:I,children:"\u67e5\u8be2"})}),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"default",onClick:D,children:"\u91cd\u7f6e"})})]})}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsx)(Vy,{className:"mb15 justify-space-between",children:(0,ES.jsx)("div",{children:(0,ES.jsxs)(Jg,{type:"primary",onClick:function(){var e;null===(e=g.current)||void 0===e||e.open()},children:[(0,ES.jsx)(RE,{}),"\u6dfb\u52a0\u89c4\u5219"]})})}),(0,ES.jsx)(YA,{loading:C,dataSource:S,pagination:w,bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u8bbe\u5907\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u89c4\u5219\u63cf\u8ff0",key:"description",dataIndex:"description"},{title:"\u8f6c\u53d1\u65b9\u5f0f",key:"dataResource",dataIndex:"dataResource",render:function(e){return e.type}},{title:"\u521b\u5efa\u65f6\u95f4",key:"created",dataIndex:"created",render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u542f\u7528\u72b6\u6001",key:"status",dataIndex:"status",render:function(e,t){return(0,ES.jsx)(Hfe,{status:e,id:t.id,onSuccess:function(){return N()}})}},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",render:function(e,t){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(Zfe,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(sE.Link,{onClick:function(){return M({id:t.id})},children:"\u8be6\u60c5"}),(0,ES.jsx)(sE.Link,{onClick:function(){var e;null===(e=g.current)||void 0===e||e.open(t.id)},children:"\u7f16\u8f91"}),(0,ES.jsx)(tM,{title:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u8be5\u89c4\u5219\u5417\uff1f",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){(function(e){return kk({url:"/api/v1/rule-engine/".concat(e,"/delete"),method:"delete"})})(null===t||void 0===t?void 0:t.id).then((function(e){e.success?(f.open({type:"success",content:"\u5220\u9664\u6210\u529f"}),N()):f.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}]})]}),(0,ES.jsx)(jM,{title:"\u89c4\u5219\u8be6\u60c5",placement:"right",onClose:P,open:R,width:900,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:P}),footer:(0,ES.jsx)(Vy,{children:(0,ES.jsx)(Jg,{onClick:P,children:"\u5173\u95ed"})}),children:(0,ES.jsxs)(mZ,{gutter:16,children:[(0,ES.jsx)(yZ,{span:14,children:(0,ES.jsx)(ofe,{direction:"vertical",size:"small",current:2,items:[{title:"\u6761\u4ef6\u8fc7\u6ee4",description:(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsxs)(mZ,{className:"mt20 mb10",children:[(0,ES.jsx)(yZ,{span:4,children:"\u6d88\u606f\u6e90\uff1a"}),(0,ES.jsx)(yZ,{span:20,children:null===(e=m.data)||void 0===e||null===(t=e.filter)||void 0===t?void 0:t.message_source})]}),(0,ES.jsxs)(mZ,{className:"mb10",children:[(0,ES.jsx)(yZ,{span:4,children:"\u67e5\u8be2\u8bed\u53e5\uff1a"}),(0,ES.jsx)(yZ,{span:20,children:(0,ES.jsx)(Ofe,{value:null===(i=m.data)||void 0===i||null===(r=i.filter)||void 0===r?void 0:r.sql})})]})]})},{title:"\u8f6c\u53d1\u65b9\u5f0f",description:(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsxs)(mZ,{className:"mt20 mb10",children:[(0,ES.jsx)(yZ,{span:4,children:"\u8f6c\u53d1\u65b9\u5f0f\uff1a"}),(0,ES.jsx)(yZ,{span:20,children:null===(o=m.data)||void 0===o||null===(a=o.dataResource)||void 0===a?void 0:a.type})]}),(0,ES.jsxs)(mZ,{className:"mb10",children:[(0,ES.jsx)(yZ,{span:4,children:"\u4f7f\u7528\u8d44\u6e90\uff1a"}),(0,ES.jsx)(yZ,{span:20,children:null===(s=((null===(c=_.data)||void 0===c?void 0:c.list)||[]).filter((function(e){var t;return e.id===(null===(t=m.data)||void 0===t?void 0:t.data_resource_id)})))||void 0===s||null===(l=s[0])||void 0===l?void 0:l.name})]})]})}]})}),(0,ES.jsx)(yZ,{span:10,children:(0,ES.jsxs)("pre",{style:{height:"calc(100vh - 150px)",overflowY:"auto",tabSize:2,backgroundColor:"#333",color:"#fff",padding:"10px",position:"relative",boxSizing:"border-box"},children:[y.data&&JSON.stringify(y.data,null,"\t"),(0,ES.jsx)(Jg,{shape:"circle",icon:(0,ES.jsx)(EP,{}),loading:y.loading,onClick:function(){return y.run(m.data.id)},style:{position:"absolute",right:"10px",bottom:"10px"}})]})})]})})]})};function Hfe(e){var t=e.status,n=e.id,i=e.onSuccess,r=Wde(qk,{manual:!0}),o=Wde($k,{manual:!0});return console.log("status",t),(0,ES.jsx)(bH,{checked:t===Rfe.running,checkedChildren:"\u5f00",unCheckedChildren:"\u5173",loading:o.loading,onChange:function(){var e=(0,T.Z)((0,E.Z)().mark((function e(t){return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(t),e.prev=1,!t){e.next=7;break}return e.next=5,r.run(n);case 5:e.next=9;break;case 7:return e.next=9,o.run(n);case 9:null===i||void 0===i||i(),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),console.log(e.t0);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t){return e.apply(this,arguments)}}()})}!function(e){e.stopped="stopped",e.running="running"}(Rfe||(Rfe={}));var zfe=ip.useForm,jfe=Zy.TextArea,Vfe=(0,v.forwardRef)((function(e,t){var n=e.onFinish,i=zfe(),r=(0,k.Z)(i,1)[0],o=(0,v.useState)(!1),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=(0,v.useState)(!1),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=(0,v.useCallback)((function(){r.resetFields(),h(!1)}),[r]);return(0,v.useImperativeHandle)(t,(function(){return{open:function(e){h(!0),e&&r.setFieldsValue(e)}}}),[r]),(0,ES.jsx)(jM,{title:"\u65b0\u5efa\u573a\u666f",placement:"right",open:d,width:550,closable:!1,maskClosable:!1,headerStyle:{height:51},destroyOnClose:!0,extra:(0,ES.jsx)(Ap,{onClick:f}),onClose:f,footer:(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)(Jg,{type:"primary",loading:s,disabled:s,onClick:function(){r.validateFields().then((function(e){l(!0),function(e){return kk({url:"/api/v1/scene",method:"post",data:e})}(e).then((function(e){e.success?(qp.success("\u6dfb\u52a0\u6210\u529f"),f(),n()):qp.error(e.errorMsg)})).finally((function(){l(!1)}))}))},children:"\u786e\u5b9a"}),(0,ES.jsx)(Jg,{onClick:f,children:"\u53d6\u6d88"})]}),children:(0,ES.jsxs)(ip,{form:r,layout:"vertical",children:[(0,ES.jsx)(ip.Item,{label:"\u573a\u666f\u540d\u79f0",name:"name",rules:[{required:!0,validator:function(e,t,n){t?/^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5_-]{0,31}$/.test(t)?n():n("1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"):n("\u8bf7\u8f93\u5165\u573a\u666f\u540d\u79f0")}}],children:(0,ES.jsx)(Zy,{placeholder:"1-32\u4f4d\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26_-\uff0c\u5fc5\u987b\u4ee5\u82f1\u6587\u6216\u4e2d\u6587\u5b57\u7b26\u5f00\u5934"})}),(0,ES.jsx)(ip.Item,{label:"\u573a\u666f\u63cf\u8ff0",name:"description",children:(0,ES.jsx)(jfe,{showCount:!0,maxLength:100,placeholder:"\u8bf7\u8f93\u5165",rows:4})})]})})})),Wfe=function(e){var t=(0,v.useRef)(null);return t.current=e,(0,v.useCallback)((function(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat((0,_.Z)(i)))}),[])},Ufe=function(e){var t={};if(Object.keys(e||{}).forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),!(Object.keys(t).length<1))return t},Gfe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Kfe=function(e){return"*"===e||"x"===e||"X"===e},Yfe=function(e){var t=parseInt(e,10);return isNaN(t)?e:t},qfe=function(e,t){if(Kfe(e)||Kfe(t))return 0;var n=function(e,t){return(0,Bt.Z)(e)!==(0,Bt.Z)(t)?[String(e),String(t)]:[e,t]}(Yfe(e),Yfe(t)),i=(0,k.Z)(n,2),r=i[0],o=i[1];return r>o?1:r<o?-1:0},$fe=function(e){var t,n=e.match(Gfe);return null===n||void 0===n||null===(t=n.shift)||void 0===t||t.call(n),n},Xfe=function(e,t){var n=$fe(e),i=$fe(t),r=n.pop(),o=i.pop(),a=function(e,t){for(var n=0;n<Math.max(e.length,t.length);n++){var i=qfe(e[n]||"0",t[n]||"0");if(0!==i)return i}return 0}(n,i);return 0!==a?a:r||o?r?-1:1:0},Qfe=function(e,t){var n=Xfe(function(){var e,t;return"undefined"===typeof process?ko:(null===(e=process)||void 0===e||null===(t={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0})||void 0===t?void 0:t.ANTD_VERSION)||ko}(),"4.23.0")>-1?{open:e,onOpenChange:t}:{visible:e,onVisibleChange:t};return Ufe(n)},Jfe=n(57381),epe=n.n(Jfe);var tpe=function(){function e(t){(0,b.Z)(this,e),(0,N.Z)(this,"instanceId",void 0),(0,N.Z)(this,"cache",new Map),this.instanceId=t}return(0,C.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var n=e.join("%"),i=t(this.cache.get(n));null===i?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),npe=tpe,ipe="data-token-hash",rpe="data-css-hash";function ope(){var e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(rpe,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t.__cssinjs_instance__=t.__cssinjs_instance__||e,t.__cssinjs_instance__===e&&document.head.insertBefore(t,n)}));var i={};Array.from(document.querySelectorAll("style[".concat(rpe,"]"))).forEach((function(t){var n,r=t.getAttribute(rpe);i[r]?t.__cssinjs_instance__===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):i[r]=!0}))}return new npe(e)}var ape=v.createContext({hashPriority:"low",cache:ope(),defaultCache:!0}),spe=ape;function lpe(e){var t="";return Object.keys(e).forEach((function(n){var i=e[n];t+=n,i&&"object"===(0,Bt.Z)(i)?t+=lpe(i):t+=i})),t}function cpe(e,t){return en("".concat(t,"_").concat(lpe(e)))}var upe="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),dpe="903px";var hpe=void 0;function fpe(){return void 0===hpe&&(hpe=function(e,t){if(Ht()){var n;Jt(e,upe);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null===t||void 0===t||t(i),document.body.appendChild(i);var r=getComputedStyle(i).width===dpe;return null===(n=i.parentNode)||void 0===n||n.removeChild(i),Xt(upe),r}return!1}("@layer ".concat(upe," { .").concat(upe," { width: ").concat(dpe,"!important; } }"),(function(e){e.className=upe}))),hpe}var ppe=function(){return!1};function gpe(e,t,n,i){var r=v.useContext(spe).cache,o=[e].concat((0,_.Z)(t));ppe();return v.useMemo((function(){r.update(o,(function(e){var t=e||[],i=(0,k.Z)(t,2),r=i[0];return[(void 0===r?0:r)+1,i[1]||n()]}))}),[o.join("_")]),v.useEffect((function(){return function(){r.update(o,(function(e){var t=e||[],n=(0,k.Z)(t,2),r=n[0],o=void 0===r?0:r,a=n[1];return 0===o-1?(null===i||void 0===i||i(a,!1),null):[o-1,a]}))}}),o),r.get(o)[1]}var vpe={},mpe=new Map;function ype(e){mpe.set(e,(mpe.get(e)||0)+1)}function _pe(e,t){mpe.set(e,(mpe.get(e)||0)-1);var n=Array.from(mpe.keys()),i=n.filter((function(e){return(mpe.get(e)||0)<=0}));i.length<n.length&&i.forEach((function(e){!function(e,t){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(ipe,'="').concat(e,'"]')).forEach((function(e){var n;e.__cssinjs_instance__===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),mpe.delete(e)}))}var bpe=Ht(),Cpe="_multi_value_";function Spe(e){return vn(Bn(e),mn).replace(/\{%%%\:[^;];}/g,";")}function wpe(e){return"object"===(0,Bt.Z)(e)&&e&&("_skip_check_"in e||Cpe in e)}function kpe(e,t,n){if(!t)return e;var i=".".concat(t),r="low"===n?":where(".concat(i,")"):i;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),i=n[0]||"",o=(null===(t=i.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[i="".concat(o).concat(r).concat(i.slice(o.length))].concat((0,_.Z)(n.slice(1))).join(" ")})).join(",")}var xpe=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},r=i.root,o=i.injectHash,a=i.parentSelectors,s=n.hashId,l=n.layer,c=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,h=(n.linters,""),f={};function p(t){var i=t.getName(s);if(!f[i]){var r=e(t.style,n,{root:!1,parentSelectors:a}),o=(0,k.Z)(r,1)[0];f[i]="@keyframes ".concat(t.getName(s)).concat(o)}}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){Array.isArray(e)?g(e,t):e&&t.push(e)})),t}var v=g(Array.isArray(t)?t:[t]);if(v.forEach((function(t){var i="string"!==typeof t||r?t:{};if("string"===typeof i)h+="".concat(i,"\n");else if(i._keyframe)p(i);else{var l=d.reduce((function(e,t){var n;return(null===t||void 0===t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),i);Object.keys(l).forEach((function(t){var i=l[t];if("object"!==(0,Bt.Z)(i)||!i||"animationName"===t&&i._keyframe||wpe(i)){var u,d=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),i=t;tn[e]||"number"!==typeof i||0===i||(i="".concat(i,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(p(t),i=t.getName(s)),h+="".concat(n,":").concat(i,";")},g=null!==(u=null===i||void 0===i?void 0:i.value)&&void 0!==u?u:i;"object"===(0,Bt.Z)(i)&&null!==i&&void 0!==i&&i[Cpe]&&Array.isArray(g)?g.forEach((function(e){d(t,e)})):d(t,g)}else{var v=!1,m=t.trim(),y=!1;(r||o)&&s?m.startsWith("@")?v=!0:m=kpe(t,s,c):!r||s||"&"!==m&&""!==m||(m="",y=!0);var b=e(i,n,{root:y,injectHash:v,parentSelectors:[].concat((0,_.Z)(a),[m])}),C=(0,k.Z)(b,2),S=C[0],w=C[1];f=(0,Ft.Z)((0,Ft.Z)({},f),w),h+="".concat(m).concat(S)}}))}})),r){if(l&&fpe()){var m=l.split(","),y=m[m.length-1].trim();h="@layer ".concat(y," {").concat(h,"}"),m.length>1&&(h="@layer ".concat(l,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,f]};function Epe(){return null}function Tpe(e,t){var n=e.token,i=e.path,r=e.hashId,o=e.layer,a=e.nonce,s=v.useContext(spe),l=s.autoClear,c=(s.mock,s.defaultCache),u=s.hashPriority,d=s.container,h=s.ssrInline,f=s.transformers,p=s.linters,g=s.cache,m=n._tokenKey,y=[m].concat((0,_.Z)(i)),b=bpe;var C=gpe("style",y,(function(){var e=t(),n=xpe(e,{hashId:r,hashPriority:u,layer:o,path:i.join("-"),transformers:f,linters:p}),s=(0,k.Z)(n,2),l=s[0],c=s[1],h=Spe(l),v=function(e,t){return en("".concat(e.join("%")).concat(t))}(y,h);if(b){var _={mark:rpe,prepend:"queue",attachTo:d},C="function"===typeof a?a():a;C&&(_.csp={nonce:C});var S=Jt(h,v,_);S.__cssinjs_instance__=g.instanceId,S.setAttribute(ipe,m),Object.keys(c).forEach((function(e){Jt(Spe(c[e]),"_effect-".concat(e),_)}))}return[h,m,v]}),(function(e,t){var n=(0,k.Z)(e,3)[2];(t||l)&&bpe&&Xt(n,{mark:rpe})})),S=(0,k.Z)(C,3),w=S[0],x=S[1],E=S[2];return function(e){var t,n;h&&!b&&c?t=v.createElement("style",Zt({},(n={},(0,N.Z)(n,ipe,x),(0,N.Z)(n,rpe,E),n),{dangerouslySetInnerHTML:{__html:w}})):t=v.createElement(Epe,null);return v.createElement(v.Fragment,null,t,e)}}var Npe=function(){function e(){(0,b.Z)(this,e),(0,N.Z)(this,"cache",void 0),(0,N.Z)(this,"keys",void 0),(0,N.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,C.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={map:this.cache};return e.forEach((function(e){var t,n;r?r=null===(t=r)||void 0===t||null===(n=t.map)||void 0===n?void 0:n.get(e):r=void 0})),null!==(t=r)&&void 0!==t&&t.value&&i&&(r.value[1]=this.cacheCallTimes++),null===(n=r)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var i=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var r=this.keys.reduce((function(e,t){var n=(0,k.Z)(e,2)[1];return i.internalGet(t)[1]<n?[t,i.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),o=(0,k.Z)(r,1)[0];this.delete(o)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,r){if(r===t.length-1)a.set(e,{value:[n,i.cacheCallTimes++]});else{var o=a.get(e);o?o.map||(o.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,i=e.get(t[0]);if(1===t.length)return i.map?e.set(t[0],{map:i.map}):e.delete(t[0]),null===(n=i.value)||void 0===n?void 0:n[0];var r=this.deleteByPath(i.map,t.slice(1));return i.map&&0!==i.map.size||i.value||e.delete(t[0]),r}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();(0,N.Z)(Npe,"MAX_CACHE_SIZE",20),(0,N.Z)(Npe,"MAX_CACHE_OFFSET",5);var Ipe=0,Dpe=function(){function e(t){(0,b.Z)(this,e),(0,N.Z)(this,"derivatives",void 0),(0,N.Z)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ipe,0===t.length&&t.length,Ipe+=1}return(0,C.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Lpe=new Npe;function Ope(e){return e.notSplit=!0,e}Ope(["borderTop","borderBottom"]),Ope(["borderTop"]),Ope(["borderBottom"]),Ope(["borderLeft","borderRight"]),Ope(["borderLeft"]),Ope(["borderRight"]);var Rpe={placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]},Ape={lang:Zt({placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeQuarterPlaceholder:["\u5f00\u59cb\u5b63\u5ea6","\u7ed3\u675f\u5b63\u5ea6"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"]},{locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"}),timePickerLocale:Zt({},Rpe)};Ape.lang.ok="\u786e\u5b9a";var Mpe="${label}\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684${type}",Ppe={locale:"zh-cn",Pagination:tL,DatePicker:Ape,TimePicker:Rpe,Calendar:Ape,global:{placeholder:"\u8bf7\u9009\u62e9"},Table:{filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",filterEmptyText:"\u65e0\u7b5b\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7b5b\u9009\u9879\u4e2d\u641c\u7d22",selectAll:"\u5168\u9009\u5f53\u9875",selectInvert:"\u53cd\u9009\u5f53\u9875",selectNone:"\u6e05\u7a7a\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5e8f",expand:"\u5c55\u5f00\u884c",collapse:"\u5173\u95ed\u884c",triggerDesc:"\u70b9\u51fb\u964d\u5e8f",triggerAsc:"\u70b9\u51fb\u5347\u5e8f",cancelSort:"\u53d6\u6d88\u6392\u5e8f"},Modal:{okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},Tour:{Next:"\u4e0b\u4e00\u6b65",Previous:"\u4e0a\u4e00\u6b65",Finish:"\u7ed3\u675f\u5bfc\u89c8"},Popconfirm:{cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a"},Transfer:{titles:["",""],searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5f53\u9875",removeCurrent:"\u5220\u9664\u5f53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90e8",selectInvert:"\u53cd\u9009\u5f53\u9875"},Upload:{uploading:"\u6587\u4ef6\u4e0a\u4f20\u4e2d",removeFile:"\u5220\u9664\u6587\u4ef6",uploadError:"\u4e0a\u4f20\u9519\u8bef",previewFile:"\u9884\u89c8\u6587\u4ef6",downloadFile:"\u4e0b\u8f7d\u6587\u4ef6"},Empty:{description:"\u6682\u65e0\u6570\u636e"},Icon:{icon:"\u56fe\u6807"},Text:{edit:"\u7f16\u8f91",copy:"\u590d\u5236",copied:"\u590d\u5236\u6210\u529f",expand:"\u5c55\u5f00"},PageHeader:{back:"\u8fd4\u56de"},Form:{optional:"\uff08\u53ef\u9009\uff09",defaultValidateMessages:{default:"\u5b57\u6bb5\u9a8c\u8bc1\u9519\u8bef${label}",required:"\u8bf7\u8f93\u5165${label}",enum:"${label}\u5fc5\u987b\u662f\u5176\u4e2d\u4e00\u4e2a[${enum}]",whitespace:"${label}\u4e0d\u80fd\u4e3a\u7a7a\u5b57\u7b26",date:{format:"${label}\u65e5\u671f\u683c\u5f0f\u65e0\u6548",parse:"${label}\u4e0d\u80fd\u8f6c\u6362\u4e3a\u65e5\u671f",invalid:"${label}\u662f\u4e00\u4e2a\u65e0\u6548\u65e5\u671f"},types:{string:Mpe,method:Mpe,array:Mpe,object:Mpe,number:Mpe,date:Mpe,boolean:Mpe,integer:Mpe,float:Mpe,regexp:Mpe,email:Mpe,url:Mpe,hex:Mpe},string:{len:"${label}\u987b\u4e3a${len}\u4e2a\u5b57\u7b26",min:"${label}\u6700\u5c11${min}\u4e2a\u5b57\u7b26",max:"${label}\u6700\u591a${max}\u4e2a\u5b57\u7b26",range:"${label}\u987b\u5728${min}-${max}\u5b57\u7b26\u4e4b\u95f4"},number:{len:"${label}\u5fc5\u987b\u7b49\u4e8e${len}",min:"${label}\u6700\u5c0f\u503c\u4e3a${min}",max:"${label}\u6700\u5927\u503c\u4e3a${max}",range:"${label}\u987b\u5728${min}-${max}\u4e4b\u95f4"},array:{len:"\u987b\u4e3a${len}\u4e2a${label}",min:"\u6700\u5c11${min}\u4e2a${label}",max:"\u6700\u591a${max}\u4e2a${label}",range:"${label}\u6570\u91cf\u987b\u5728${min}-${max}\u4e4b\u95f4"},pattern:{mismatch:"${label}\u4e0e\u6a21\u5f0f\u4e0d\u5339\u914d${pattern}"}}},Image:{preview:"\u9884\u89c8"}},Zpe=n(37248),Fpe=new WeakMap,Bpe={},Hpe={},zpe=function(){},jpe=zpe(),Vpe=Object,Wpe=function(e){return e===jpe},Upe=function(e){return"function"==typeof e},Gpe=function(e,t){return(0,Ft.Z)((0,Ft.Z)({},e),t)},Kpe="undefined",Ype=typeof window!=Kpe,qpe=typeof document!=Kpe,$pe=function(e,t){var n=Fpe.get(e);return[function(){return!Wpe(t)&&e.get(t)||Bpe},function(i){if(!Wpe(t)){var r=e.get(t);t in Hpe||(Hpe[t]=r),n[5](t,Gpe(r,i),r||Bpe)}},n[6],function(){return!Wpe(t)&&t in Hpe?Hpe[t]:!Wpe(t)&&e.get(t)||Bpe}]},Xpe=new WeakMap,Qpe=0,Jpe=function e(t){var n,i,r=typeof t,o=t&&t.constructor,a=o==Date;if(Vpe(t)!==t||a||o==RegExp)n=a?t.toJSON():"symbol"==r?t.toString():"string"==r?JSON.stringify(t):""+t;else{if(n=Xpe.get(t))return n;if(n=++Qpe+"~",Xpe.set(t,n),o==Array){for(n="@",i=0;i<t.length;i++)n+=e(t[i])+",";Xpe.set(t,n)}if(o==Vpe){n="#";for(var s=Vpe.keys(t).sort();!Wpe(i=s.pop());)Wpe(t[i])||(n+=i+":"+e(t[i])+",");Xpe.set(t,n)}}return n},ege=!0,tge=Ype&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[zpe,zpe],nge=(0,k.Z)(tge,2),ige=nge[0],rge=nge[1],oge={isOnline:function(){return ege},isVisible:function(){var e=qpe&&document.visibilityState;return Wpe(e)||"hidden"!==e}},age={initFocus:function(e){return qpe&&document.addEventListener("visibilitychange",e),ige("focus",e),function(){qpe&&document.removeEventListener("visibilitychange",e),rge("focus",e)}},initReconnect:function(e){var t=function(){ege=!0,e()},n=function(){ege=!1};return ige("online",t),ige("offline",n),function(){rge("online",t),rge("offline",n)}}},sge=!v.useId,lge=!Ype||"Deno"in window,cge=function(e){return Ype&&typeof window.requestAnimationFrame!=Kpe?window.requestAnimationFrame(e):setTimeout(e,1)},uge=lge?v.useEffect:v.useLayoutEffect,dge="undefined"!==typeof navigator&&navigator.connection,hge=!lge&&dge&&(["slow-2g","2g"].includes(dge.effectiveType)||dge.saveData),fge=function(e){if(Upe(e))try{e=e()}catch(n){e=""}var t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Jpe(e):"",t]},pge=0,gge=function(){return++pge},vge=3,mge=0,yge=2,_ge=1;function bge(){return Cge.apply(this,arguments)}function Cge(){return Cge=(0,T.Z)((0,E.Z)().mark((function e(){var t,n,i,r,o,a,s,l,c,u,d,h,f,p,g,v,m,y,_,b,C,S=arguments;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(C=function(){return C=(0,T.Z)((0,E.Z)().mark((function e(t){var i,o,s,l,u,g,v,m,y,_,b,C,S,w,x,T,N,I,D,L,O,R,A;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=fge(t),o=(0,k.Z)(i,1),s=o[0]){e.next=3;break}return e.abrupt("return");case 3:if(l=$pe(r,s),u=(0,k.Z)(l,2),g=u[0],v=u[1],m=Fpe.get(r),y=(0,k.Z)(m,3),_=y[0],b=y[1],C=y[2],S=_[s],w=function(){return h&&(delete C[s],S&&S[0])?S[0](2).then((function(){return g().data})):g().data},!(n.length<3)){e.next=9;break}return e.abrupt("return",w());case 9:if(x=a,N=gge(),b[s]=[N,0],I=!Wpe(d),D=g(),L=D.data,O=D._c,R=Wpe(O)?L:O,I&&(d=Upe(d)?d(R):d,v({data:d,_c:R})),Upe(x))try{x=x(R)}catch(E){T=E}if(!x||!Upe(x.then)){e.next=30;break}return e.next=22,x.catch((function(e){T=e}));case 22:if(x=e.sent,N===b[s][0]){e.next=29;break}if(!T){e.next=26;break}throw T;case 26:return e.abrupt("return",x);case 29:T&&I&&f(T)&&(c=!0,v({data:x=R,_c:jpe}));case 30:return c&&(T||(Upe(c)&&(x=c(x,R)),v({data:x,_c:jpe}))),b[s][1]=gge(),e.next=34,w();case 34:if(A=e.sent,v({_c:jpe}),!T){e.next=40;break}if(!p){e.next=39;break}throw T;case 39:return e.abrupt("return");case 40:return e.abrupt("return",c?A:x);case 41:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)},b=function(e){return C.apply(this,arguments)},t=S.length,n=new Array(t),i=0;i<t;i++)n[i]=S[i];if(r=n[0],o=n[1],a=n[2],s=n[3],l=Gpe({populateCache:!0,throwOnError:!0},"boolean"===typeof s?{revalidate:s}:s||{}),c=l.populateCache,u=l.rollbackOnError,d=l.optimisticData,h=!1!==l.revalidate,f=function(e){return"function"===typeof u?u(e):!1!==u},p=l.throwOnError,!Upe(o)){e.next=17;break}for(g=o,v=[],m=r.keys(),y=m.next();!y.done;y=m.next())_=y.value,!/^\$(inf|sub)\$/.test(_)&&g(r.get(_)._k)&&v.push(_);return e.abrupt("return",Promise.all(v.map(b)));case 17:return e.abrupt("return",b(o));case 18:case"end":return e.stop()}}),e)}))),Cge.apply(this,arguments)}var Sge=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},wge=function(e,t){if(!Fpe.has(e)){var n=Gpe(age,t),i={},r=bge.bind(jpe,e),o=zpe,a={},s=function(e,t){var n=a[e]||[];return a[e]=n,n.push(t),function(){return n.splice(n.indexOf(t),1)}},l=function(t,n,i){e.set(t,n);var r=a[t];if(r){var o,s=(0,x.Z)(r);try{for(s.s();!(o=s.n()).done;){(0,o.value)(n,i)}}catch(l){s.e(l)}finally{s.f()}}},c=function(){if(!Fpe.has(e)&&(Fpe.set(e,[i,{},{},{},r,l,s]),!lge)){var t=n.initFocus(setTimeout.bind(jpe,Sge.bind(jpe,i,0))),a=n.initReconnect(setTimeout.bind(jpe,Sge.bind(jpe,i,1)));o=function(){t&&t(),a&&a(),Fpe.delete(e)}}};return c(),[e,r,c,o]}return[e,Fpe.get(e)[4]]},kge=wge(new Map),xge=(0,k.Z)(kge,2),Ege=xge[0],Tge=xge[1],Nge=Gpe({onLoadingSlow:zpe,onSuccess:zpe,onError:zpe,onErrorRetry:function(e,t,n,i,r){var o=n.errorRetryCount,a=r.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Wpe(o)&&a>o||setTimeout(i,s,r)},onDiscarded:zpe,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:hge?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:hge?5e3:3e3,compare:function(e,t){return Jpe(e)==Jpe(t)},isPaused:function(){return!1},cache:Ege,mutate:Tge,fallback:{}},oge),Ige=function(e,t){var n=Gpe(e,t);if(t){var i=e.use,r=e.fallback,o=t.use,a=t.fallback;i&&o&&(n.use=i.concat(o)),r&&a&&(n.fallback=Gpe(r,a))}return n},Dge=(0,v.createContext)({}),Lge=Ype&&window.__SWR_DEVTOOLS_USE__,Oge=Lge?window.__SWR_DEVTOOLS_USE__:[],Rge=function(e){return Upe(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Age=function(){return Gpe(Nge,(0,v.useContext)(Dge))},Mge=Oge.concat((function(e){return function(t,n,i){var r=n&&function(){var e=fge(t),i=(0,k.Z)(e,1),r=i[0],o=Fpe.get(Ege),a=(0,k.Z)(o,4),s=a[3],l=s[r];return l?(delete s[r],l):n.apply(void 0,arguments)};return e(t,r,i)}}));Lge&&(window.__SWR_DEVTOOLS_REACT__=v);var Pge,Zge={dedupe:!0},Fge=Vpe.defineProperty((function(e){var t=e.value,n=(0,v.useContext)(Dge),i=Upe(t),r=(0,v.useMemo)((function(){return i?t(n):t}),[i,n,t]),o=(0,v.useMemo)((function(){return i?r:Ige(n,r)}),[i,n,r]),a=r&&r.provider,s=(0,v.useRef)(jpe);a&&!s.current&&(s.current=wge(a(o.cache||Ege),r));var l=s.current;return l&&(o.cache=l[0],o.mutate=l[1]),uge((function(){if(l)return l[2]&&l[2](),l[3]}),[]),(0,v.createElement)(Dge.Provider,Gpe(e,{value:o}))}),"defaultValue",{value:Nge}),Bge=(Pge=function(e,t,n){var i=n.cache,r=n.compare,o=n.suspense,a=n.fallbackData,s=n.revalidateOnMount,l=n.revalidateIfStale,c=n.refreshInterval,u=n.refreshWhenHidden,d=n.refreshWhenOffline,h=n.keepPreviousData,f=Fpe.get(i),p=(0,k.Z)(f,3),g=p[0],m=p[1],y=p[2],_=fge(e),b=(0,k.Z)(_,2),C=b[0],S=b[1],w=(0,v.useRef)(!1),x=(0,v.useRef)(!1),N=(0,v.useRef)(C),I=(0,v.useRef)(t),D=(0,v.useRef)(n),L=function(){return D.current},O=function(){return L().isVisible()&&L().isOnline()},R=$pe(i,C),A=(0,k.Z)(R,4),M=A[0],P=A[1],Z=A[2],F=A[3],B=(0,v.useRef)({}).current,H=Wpe(a)?n.fallback[C]:a,z=function(e,t){for(var n in B){var i=n;if("data"===i){if(!r(e[i],t[i])){if(!Wpe(e[i]))return!1;if(!r($,t[i]))return!1}}else if(t[i]!==e[i])return!1}return!0},j=(0,v.useMemo)((function(){var e=!!C&&!!t&&(Wpe(s)?!L().isPaused()&&!o&&(!!Wpe(l)||l):s),n=function(t){var n=Gpe(t);return delete n._k,e?(0,Ft.Z)({isValidating:!0,isLoading:!0},n):n},i=M(),r=F(),a=n(i),c=i===r?a:n(r),u=a;return[function(){var e=n(M());return z(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},function(){return c}]}),[i,C]),V=(0,Zpe.useSyncExternalStore)((0,v.useCallback)((function(e){return Z(C,(function(t,n){z(n,t)||e()}))}),[i,C]),j[0],j[1]),W=!w.current,U=g[C]&&g[C].length>0,G=V.data,K=Wpe(G)?H:G,Y=V.error,q=(0,v.useRef)(K),$=h?Wpe(G)?q.current:G:K,X=!(U&&!Wpe(Y))&&(W&&!Wpe(s)?s:!L().isPaused()&&(o?!Wpe(K)&&l:Wpe(K)||l)),Q=!!(C&&t&&W&&X),J=Wpe(V.isValidating)?Q:V.isValidating,ee=Wpe(V.isLoading)?Q:V.isLoading,te=(0,v.useCallback)(function(){var e=(0,T.Z)((0,E.Z)().mark((function e(t){var i,o,a,s,l,c,u,d,h,f,p,v,_,b,T,D;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=I.current,C&&i&&!x.current&&!L().isPaused()){e.next=3;break}return e.abrupt("return",!1);case 3:return s=!0,l=t||{},c=!y[C]||!l.dedupe,u=function(){return sge?!x.current&&C===N.current&&w.current:C===N.current},d={isValidating:!1,isLoading:!1},h=function(){P(d)},f=function(){var e=y[C];e&&e[1]===a&&delete y[C]},p={isValidating:!0},Wpe(M().data)&&(p.isLoading=!0),e.prev=12,c&&(P(p),n.loadingTimeout&&Wpe(M().data)&&setTimeout((function(){s&&u()&&L().onLoadingSlow(C,n)}),n.loadingTimeout),y[C]=[i(S),gge()]),v=(0,k.Z)(y[C],2),o=v[0],a=v[1],e.next=19,o;case 19:if(o=e.sent,c&&setTimeout(f,n.dedupingInterval),y[C]&&y[C][1]===a){e.next=24;break}return c&&u()&&L().onDiscarded(C),e.abrupt("return",!1);case 24:if(d.error=jpe,_=m[C],Wpe(_)||!(a<=_[0]||a<=_[1]||0===_[1])){e.next=30;break}return h(),c&&u()&&L().onDiscarded(C),e.abrupt("return",!1);case 30:b=M().data,d.data=r(b,o)?b:o,c&&u()&&L().onSuccess(o,C,n),e.next=41;break;case 35:e.prev=35,e.t0=e.catch(12),f(),T=L(),D=T.shouldRetryOnError,T.isPaused()||(d.error=e.t0,c&&u()&&(T.onError(e.t0,C,T),(!0===D||Upe(D)&&D(e.t0))&&O()&&T.onErrorRetry(e.t0,C,T,(function(e){var t=g[C];t&&t[0]&&t[0](vge,e)}),{retryCount:(l.retryCount||0)+1,dedupe:!0})));case 41:return s=!1,h(),e.abrupt("return",!0);case 44:case"end":return e.stop()}}),e,null,[[12,35]])})));return function(t){return e.apply(this,arguments)}}(),[C,i]),ne=(0,v.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bge.apply(void 0,[i,N.current].concat(t))}),[]);if(uge((function(){I.current=t,D.current=n,Wpe(G)||(q.current=G)})),uge((function(){if(C){var e=te.bind(jpe,Zge),t=0,n=function(e,t,n){var i=t[e]||(t[e]=[]);return i.push(n),function(){var e=i.indexOf(n);e>=0&&(i[e]=i[i.length-1],i.pop())}}(C,g,(function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n==mge){var r=Date.now();L().revalidateOnFocus&&r>t&&O()&&(t=r+L().focusThrottleInterval,e())}else if(n==_ge)L().revalidateOnReconnect&&O()&&e();else{if(n==yge)return te();if(n==vge)return te(i)}}));return x.current=!1,N.current=C,w.current=!0,P({_k:S}),X&&(Wpe(K)||lge?e():cge(e)),function(){x.current=!0,n()}}}),[C]),uge((function(){var e;function t(){var t=Upe(c)?c(M().data):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){M().error||!u&&!L().isVisible()||!d&&!L().isOnline()?t():te(Zge).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[c,u,d,C]),(0,v.useDebugValue)($),o&&Wpe(K)&&C){if(!sge&&lge)throw new Error("Fallback data is required when using suspense in SSR.");throw I.current=t,D.current=n,x.current=!1,Wpe(Y)?te(Zge):Y}return{mutate:ne,get data(){return B.data=!0,$},get error(){return B.error=!0,Y},get isValidating(){return B.isValidating=!0,J},get isLoading(){return B.isLoading=!0,ee}}},function(){for(var e=Age(),t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=Rge(n),o=(0,k.Z)(r,3),a=o[0],s=o[1],l=o[2],c=Ige(e,l),u=Pge,d=c.use,h=(d||[]).concat(Mge),f=h.length;f--;)u=h[f](u);return u(a,s||c.fetcher||null,c)});var Hge=function(e,t){return{getMessage:function(e,n){return function(e,t,n){var i,r=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e,a=n,s=(0,x.Z)(r);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(a=Object(o)[l],o=Object(o)[l],void 0===a)return n}}catch(c){s.e(c)}finally{s.f()}return a}(t,e,n)||n},locale:e}},zge=Hge("mn_MN",{moneySymbol:"\u20ae",form:{lightFilter:{more:"\u0418\u043b\u04af\u04af",clear:"\u0426\u044d\u0432\u044d\u0440\u043b\u044d\u0445",confirm:"\u0411\u0430\u0442\u0430\u043b\u0433\u0430\u0430\u0436\u0443\u0443\u043b\u0430\u0445",itemUnit:"\u041d\u044d\u0433\u0436\u04af\u04af\u0434"}},tableForm:{search:"\u0425\u0430\u0439\u0445",reset:"\u0428\u0438\u043d\u044d\u0447\u043b\u044d\u0445",submit:"\u0418\u043b\u0433\u044d\u044d\u0445",collapsed:"\u04e8\u0440\u0433\u04e9\u0442\u0433\u04e9\u0445",expand:"\u0425\u0443\u0440\u0430\u0430\u0445",inputPlaceholder:"\u0423\u0442\u0433\u0430 \u043e\u0440\u0443\u0443\u043b\u043d\u0430 \u0443\u0443",selectPlaceholder:"\u0423\u0442\u0433\u0430 \u0441\u043e\u043d\u0433\u043e\u043d\u043e \u0443\u0443"},alert:{clear:"\u0426\u044d\u0432\u044d\u0440\u043b\u044d\u0445",selected:"\u0421\u043e\u043d\u0433\u043e\u0433\u0434\u0441\u043e\u043d",item:"\u041d\u044d\u0433\u0436"},pagination:{total:{range:" ",total:"\u041d\u0438\u0439\u0442",item:"\u043c\u04e9\u0440"}},tableToolBar:{leftPin:"\u0417\u04af\u04af\u043d \u0442\u0438\u0439\u0448 \u0431\u044d\u0445\u043b\u044d\u0445",rightPin:"\u0411\u0430\u0440\u0443\u0443\u043d \u0442\u0438\u0439\u0448 \u0431\u044d\u0445\u043b\u044d\u0445",noPin:"\u0411\u044d\u0445\u043b\u044d\u0445\u0433\u04af\u0439",leftFixedTitle:"\u0417\u04af\u04af\u043d \u0437\u044d\u0440\u044d\u0433\u0446\u04af\u04af\u043b\u044d\u0445",rightFixedTitle:"\u0411\u0430\u0440\u0443\u0443\u043d \u0437\u044d\u0440\u044d\u0433\u0446\u04af\u04af\u043b\u044d\u0445",noFixedTitle:"\u0417\u044d\u0440\u044d\u0433\u0446\u04af\u04af\u043b\u044d\u0445\u0433\u04af\u0439",reset:"\u0428\u0438\u043d\u044d\u0447\u043b\u044d\u0445",columnDisplay:"\u0411\u0430\u0433\u0430\u043d\u0430\u0430\u0440 \u0445\u0430\u0440\u0443\u0443\u043b\u0430\u0445",columnSetting:"\u0422\u043e\u0445\u0438\u0440\u0433\u043e\u043e",fullScreen:"\u0411\u04af\u0442\u044d\u043d \u0434\u044d\u043b\u0433\u044d\u0446\u044d\u044d\u0440",exitFullScreen:"\u0411\u04af\u0442\u044d\u043d \u0434\u044d\u043b\u0433\u044d\u0446 \u0446\u0443\u0446\u043b\u0430\u0445",reload:"\u0428\u0438\u043d\u044d\u0447\u043b\u044d\u0445",density:"\u0425\u044d\u043c\u0436\u044d\u044d",densityDefault:"\u0425\u044d\u0432\u0438\u0439\u043d",densityLarger:"\u0422\u043e\u043c",densityMiddle:"\u0414\u0443\u043d\u0434",densitySmall:"\u0416\u0438\u0436\u0438\u0433"},stepsForm:{next:"\u0414\u0430\u0440\u0430\u0430\u0445",prev:"\u04e8\u043c\u043d\u04e9\u0445",submit:"\u0414\u0443\u0443\u0441\u0433\u0430\u0445"},loginForm:{submitText:"\u041d\u044d\u0432\u0442\u0440\u044d\u0445"},editableTable:{action:{save:"\u0425\u0430\u0434\u0433\u0430\u043b\u0430\u0445",cancel:"\u0426\u0443\u0446\u043b\u0430\u0445",delete:"\u0423\u0441\u0442\u0433\u0430\u0445",add:"\u041c\u04e9\u0440 \u043d\u044d\u043c\u044d\u0445"}},switch:{open:"\u041d\u044d\u044d\u0445",close:"\u0425\u0430\u0430\u0445"}}),jge=Hge("ar_EG",{moneySymbol:"$",form:{lightFilter:{more:"\u0627\u0644\u0645\u0632\u064a\u062f",clear:"\u0646\u0638\u0641",confirm:"\u062a\u0623\u0643\u064a\u062f",itemUnit:"\u0639\u0646\u0627\u0635\u0631"}},tableForm:{search:"\u0627\u0628\u062d\u062b",reset:"\u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646",submit:"\u0627\u0631\u0633\u0627\u0644",collapsed:"\u0645\u064f\u0642\u0644\u0635",expand:"\u0645\u064f\u0648\u0633\u0639",inputPlaceholder:"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0625\u062f\u062e\u0627\u0644",selectPlaceholder:"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0625\u062e\u062a\u064a\u0627\u0631"},alert:{clear:"\u0646\u0638\u0641",selected:"\u0645\u062d\u062f\u062f",item:"\u0639\u0646\u0635\u0631"},pagination:{total:{range:" ",total:"\u0645\u0646",item:"\u0639\u0646\u0627\u0635\u0631"}},tableToolBar:{leftPin:"\u062b\u0628\u062a \u0639\u0644\u0649 \u0627\u0644\u064a\u0633\u0627\u0631",rightPin:"\u062b\u0628\u062a \u0639\u0644\u0649 \u0627\u0644\u064a\u0645\u064a\u0646",noPin:"\u0627\u0644\u063a\u0627\u0621 \u0627\u0644\u062a\u062b\u0628\u064a\u062a",leftFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064a\u0633\u0627\u0631",rightFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064a\u0645\u064a\u0646",noFixedTitle:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0644\u0635\u0627\u0642",reset:"\u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646",columnDisplay:"\u0627\u0644\u0623\u0639\u0645\u062f\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629",columnSetting:"\u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a",fullScreen:"\u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",exitFullScreen:"\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",reload:"\u062a\u062d\u062f\u064a\u062b",density:"\u0627\u0644\u0643\u062b\u0627\u0641\u0629",densityDefault:"\u0627\u0641\u062a\u0631\u0627\u0636\u064a",densityLarger:"\u0623\u0643\u0628\u0631",densityMiddle:"\u0648\u0633\u0637",densitySmall:"\u0645\u062f\u0645\u062c"},stepsForm:{next:"\u0627\u0644\u062a\u0627\u0644\u064a",prev:"\u0627\u0644\u0633\u0627\u0628\u0642",submit:"\u0623\u0646\u0647\u0649"},loginForm:{submitText:"\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644"},editableTable:{action:{save:"\u0623\u0646\u0642\u0630",cancel:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0623\u0645\u0631",delete:"\u062d\u0630\u0641",add:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0641 \u0645\u0646 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a"}},switch:{open:"\u0645\u0641\u062a\u0648\u062d",close:"\u063a\u0644\u0642"}}),Vge=Hge("zh_CN",{moneySymbol:"\uffe5",deleteThisLine:"\u5220\u9664\u6b64\u884c",copyThisLine:"\u590d\u5236\u6b64\u884c",form:{lightFilter:{more:"\u66f4\u591a\u7b5b\u9009",clear:"\u6e05\u9664",confirm:"\u786e\u8ba4",itemUnit:"\u9879"}},tableForm:{search:"\u67e5\u8be2",reset:"\u91cd\u7f6e",submit:"\u63d0\u4ea4",collapsed:"\u5c55\u5f00",expand:"\u6536\u8d77",inputPlaceholder:"\u8bf7\u8f93\u5165",selectPlaceholder:"\u8bf7\u9009\u62e9"},alert:{clear:"\u53d6\u6d88\u9009\u62e9",selected:"\u5df2\u9009\u62e9",item:"\u9879"},pagination:{total:{range:"\u7b2c",total:"\u6761/\u603b\u5171",item:"\u6761"}},tableToolBar:{leftPin:"\u56fa\u5b9a\u5728\u5217\u9996",rightPin:"\u56fa\u5b9a\u5728\u5217\u5c3e",noPin:"\u4e0d\u56fa\u5b9a",leftFixedTitle:"\u56fa\u5b9a\u5728\u5de6\u4fa7",rightFixedTitle:"\u56fa\u5b9a\u5728\u53f3\u4fa7",noFixedTitle:"\u4e0d\u56fa\u5b9a",reset:"\u91cd\u7f6e",columnDisplay:"\u5217\u5c55\u793a",columnSetting:"\u5217\u8bbe\u7f6e",fullScreen:"\u5168\u5c4f",exitFullScreen:"\u9000\u51fa\u5168\u5c4f",reload:"\u5237\u65b0",density:"\u5bc6\u5ea6",densityDefault:"\u6b63\u5e38",densityLarger:"\u9ed8\u8ba4",densityMiddle:"\u4e2d\u7b49",densitySmall:"\u7d27\u51d1"},stepsForm:{next:"\u4e0b\u4e00\u6b65",prev:"\u4e0a\u4e00\u6b65",submit:"\u63d0\u4ea4"},loginForm:{submitText:"\u767b\u5f55"},editableTable:{onlyOneLineEditor:"\u53ea\u80fd\u540c\u65f6\u7f16\u8f91\u4e00\u884c",action:{save:"\u4fdd\u5b58",cancel:"\u53d6\u6d88",delete:"\u5220\u9664",add:"\u6dfb\u52a0\u4e00\u884c\u6570\u636e"}},switch:{open:"\u6253\u5f00",close:"\u5173\u95ed"}}),Wge=Hge("en_US",{moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}}),Uge=Hge("en_GB",{moneySymbol:"\xa3",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}}),Gge=Hge("vi_VN",{moneySymbol:"\u20ab",form:{lightFilter:{more:"Nhi\u1ec1u h\u01a1n",clear:"Trong",confirm:"X\xe1c nh\u1eadn",itemUnit:"M\u1ee5c"}},tableForm:{search:"T\xecm ki\u1ebfm",reset:"L\xe0m l\u1ea1i",submit:"G\u1eedi \u0111i",collapsed:"M\u1edf r\u1ed9ng",expand:"Thu g\u1ecdn",inputPlaceholder:"nh\u1eadp d\u1eef li\u1ec7u",selectPlaceholder:"Vui l\xf2ng ch\u1ecdn"},alert:{clear:"X\xf3a",selected:"\u0111\xe3 ch\u1ecdn",item:"m\u1ee5c"},pagination:{total:{range:" ",total:"tr\xean",item:"m\u1eb7t h\xe0ng"}},tableToolBar:{leftPin:"Ghim tr\xe1i",rightPin:"Ghim ph\u1ea3i",noPin:"B\u1ecf ghim",leftFixedTitle:"C\u1ed1 \u0111\u1ecbnh tr\xe1i",rightFixedTitle:"C\u1ed1 \u0111\u1ecbnh ph\u1ea3i",noFixedTitle:"Ch\u01b0a c\u1ed1 \u0111\u1ecbnh",reset:"L\xe0m l\u1ea1i",columnDisplay:"C\u1ed9t hi\u1ec3n th\u1ecb",columnSetting:"C\u1ea5u h\xecnh",fullScreen:"Ch\u1ebf \u0111\u1ed9 to\xe0n m\xe0n h\xecnh",exitFullScreen:"Tho\xe1t ch\u1ebf \u0111\u1ed9 to\xe0n m\xe0n h\xecnh",reload:"L\xe0m m\u1edbi",density:"M\u1eadt \u0111\u1ed9 hi\u1ec3n th\u1ecb",densityDefault:"M\u1eb7c \u0111\u1ecbnh",densityLarger:"M\u1eb7c \u0111\u1ecbnh",densityMiddle:"Trung b\xecnh",densitySmall:"Ch\u1eadt"},stepsForm:{next:"Sau",prev:"Tr\u01b0\u1edbc",submit:"K\u1ebft th\xfac"},loginForm:{submitText:"\u0110\u0103ng nh\u1eadp"},editableTable:{action:{save:"C\u1ee9u",cancel:"H\u1ee7y",delete:"X\xf3a",add:"th\xeam m\u1ed9t h\xe0ng d\u1eef li\u1ec7u"}},switch:{open:"m\u1edf",close:"\u0111\xf3ng"}}),Kge=Hge("it_IT",{moneySymbol:"\u20ac",form:{lightFilter:{more:"pi\xf9",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalit\xe0 schermo intero",exitFullScreen:"Esci da modalit\xe0 schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}}),Yge=Hge("ja_JP",{moneySymbol:"\xa5",form:{lightFilter:{more:"\u3082\u3063\u3068",clear:"\u660e\u78ba",confirm:"\u78ba\u8a8d",itemUnit:"\u9805\u76ee"}},tableForm:{search:"\u691c\u7d22",reset:"\u30ea\u30bb\u30c3\u30c8",submit:"\u63d0\u4ea4",collapsed:"\u5c55\u958b",expand:"\u53ce\u7d0d",inputPlaceholder:"\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044",selectPlaceholder:"\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044"},alert:{clear:"\u30af\u30ea\u30a2",selected:"\u9078\u629e\u3057\u305f",item:"\u9805\u76ee"},pagination:{total:{range:"\u8a18\u4e8b",total:"/\u5408\u8a08",item:" "}},tableToolBar:{leftPin:"\u5de6\u306b\u56fa\u5b9a",rightPin:"\u53f3\u306b\u56fa\u5b9a",noPin:"\u30ad\u30e3\u30f3\u30bb\u30eb",leftFixedTitle:"\u5de6\u306b\u56fa\u5b9a\u3055\u308c\u305f\u9805\u76ee",rightFixedTitle:"\u53f3\u306b\u56fa\u5b9a\u3055\u308c\u305f\u9805\u76ee",noFixedTitle:"\u56fa\u5b9a\u3055\u308c\u3066\u306a\u3044\u9805\u76ee",reset:"\u30ea\u30bb\u30c3\u30c8",columnDisplay:"\u8868\u793a\u5217",columnSetting:"\u5217\u8868\u793a\u8a2d\u5b9a",fullScreen:"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3",exitFullScreen:"\u7d42\u4e86",reload:"\u66f4\u65b0",density:"\u884c\u9ad8",densityDefault:"\u30c7\u30d5\u30a9\u30eb\u30c8",densityLarger:"\u9ed8\u8ba4",densityMiddle:"\u4e2d",densitySmall:"\u5c0f"},stepsForm:{next:"\u6b21\u306e\u30b9\u30c6\u30c3\u30d7",prev:"\u524d",submit:"\u9001\u4fe1"},loginForm:{submitText:"\u30ed\u30b0\u30a4\u30f3"},editableTable:{action:{save:"\u6551\u3046",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",delete:"\u524a\u9664",add:"1\u884c\u306e\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u307e\u3059"}},switch:{open:"\u30aa\u30fc\u30d7\u30f3",close:"\u8fd1\u3044"}}),qge=Hge("es_ES",{moneySymbol:"\u20ac",form:{lightFilter:{more:"M\xe1s",clear:"Limpiar",confirm:"Confirmar",itemUnit:"art\xedculos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"art\xedculos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xf3n",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"a\xf1adir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}}),$ge=Hge("ca_ES",{moneySymbol:"\u20ac",form:{lightFilter:{more:"M\xe9s",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col\xb7lapsar",inputPlaceholder:"Introdu\xefu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xf3",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitj\xe0",densitySmall:"Compacte"},stepsForm:{next:"Seg\xfcent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel\xb7lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}}),Xge=Hge("ru_RU",{moneySymbol:"\u20bd",form:{lightFilter:{more:"\u0415\u0449\u0435",clear:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",confirm:"\u041e\u041a",itemUnit:"\u041f\u043e\u0437\u0438\u0446\u0438\u0438"}},tableForm:{search:"\u041d\u0430\u0439\u0442\u0438",reset:"\u0421\u0431\u0440\u043e\u0441",submit:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c",collapsed:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",expand:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435",selectPlaceholder:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"},alert:{clear:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",selected:"\u0412\u044b\u0431\u0440\u0430\u043d\u043e",item:"\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432"},pagination:{total:{range:" ",total:"\u0438\u0437",item:"\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0441\u043b\u0435\u0432\u0430",rightPin:"\u0417\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u0430",noPin:"\u041e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u044c",leftFixedTitle:"\u0417\u0430\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e \u0441\u043b\u0435\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u0430",noFixedTitle:"\u041d\u0435 \u0437\u0430\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e",reset:"\u0421\u0431\u0440\u043e\u0441",columnDisplay:"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u0430",columnSetting:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",fullScreen:"\u041f\u043e\u043b\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d",exitFullScreen:"\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430",reload:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c",density:"\u0420\u0430\u0437\u043c\u0435\u0440",densityDefault:"\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e",densityLarger:"\u0411\u043e\u043b\u044c\u0448\u043e\u0439",densityMiddle:"\u0421\u0440\u0435\u0434\u043d\u0438\u0439",densitySmall:"\u0421\u0436\u0430\u0442\u044b\u0439"},stepsForm:{next:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439",prev:"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c"},loginForm:{submitText:"\u0412\u0445\u043e\u0434"},editableTable:{action:{save:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c",cancel:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c",delete:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c",add:"\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u044f\u0434 \u0434\u0430\u043d\u043d\u044b\u0445"}},switch:{open:"\u041e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0447\u0435\u043c\u043f\u0438\u043e\u043d\u0430\u0442 \u043c\u0438\u0440\u0430 \u043f\u043e \u0442\u0435\u043d\u043d\u0438\u0441\u0443",close:"\u041f\u043e \u0430\u0434\u0440\u0435\u0441\u0443:"}}),Qge=Hge("sr_RS",{moneySymbol:"RSD",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Prona\u0111i",reset:"Resetuj",submit:"Po\u0161alji",collapsed:"Pro\u0161iri",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"O\u010disti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zaka\u010di levo",rightPin:"Zaka\u010di desno",noPin:"Nije zaka\u010deno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Pode\u0161avanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osve\u017ei",density:"Veli\u010dina",densityDefault:"Podrazumevana",densityLarger:"Ve\u0107a",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sa\u010duvaj",cancel:"Poni\u0161ti",delete:"Obri\u0161i",add:"dodajte red podataka"}},switch:{open:"\u041e\u0442\u0432\u043e\u0440\u0438\u0442\u0435",close:"\u0417\u0430\u0442\u0432\u043e\u0440\u0438\u0442\u0435"}}),Jge=Hge("ms_MY",{moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}}),eve=Hge("zh_TW",{moneySymbol:"NT$",deleteThisLine:"\u522a\u9664\u6b64\u884c",copyThisLine:"\u8907\u88fd\u6b64\u884c",form:{lightFilter:{more:"\u66f4\u591a\u7be9\u9078",clear:"\u6e05\u9664",confirm:"\u78ba\u8a8d",itemUnit:"\u9805"}},tableForm:{search:"\u67e5\u8a62",reset:"\u91cd\u7f6e",submit:"\u63d0\u4ea4",collapsed:"\u5c55\u958b",expand:"\u6536\u8d77",inputPlaceholder:"\u8acb\u8f38\u5165",selectPlaceholder:"\u8acb\u9078\u64c7"},alert:{clear:"\u53d6\u6d88\u9078\u64c7",selected:"\u5df2\u9078\u64c7",item:"\u9805"},pagination:{total:{range:"\u7b2c",total:"\u689d/\u7e3d\u5171",item:"\u689d"}},tableToolBar:{leftPin:"\u56fa\u5b9a\u5230\u5de6\u908a",rightPin:"\u56fa\u5b9a\u5230\u53f3\u908a",noPin:"\u4e0d\u56fa\u5b9a",leftFixedTitle:"\u56fa\u5b9a\u5728\u5de6\u5074",rightFixedTitle:"\u56fa\u5b9a\u5728\u53f3\u5074",noFixedTitle:"\u4e0d\u56fa\u5b9a",reset:"\u91cd\u7f6e",columnDisplay:"\u5217\u5c55\u793a",columnSetting:"\u5217\u8a2d\u7f6e",fullScreen:"\u5168\u5c4f",exitFullScreen:"\u9000\u51fa\u5168\u5c4f",reload:"\u5237\u65b0",density:"\u5bc6\u5ea6",densityDefault:"\u6b63\u5e38",densityLarger:"\u9ed8\u8a8d",densityMiddle:"\u4e2d\u7b49",densitySmall:"\u7dca\u6e4a"},stepsForm:{next:"\u4e0b\u4e00\u6b65",prev:"\u4e0a\u4e00\u6b65",submit:"\u5b8c\u6210"},loginForm:{submitText:"\u767b\u5165"},editableTable:{onlyOneLineEditor:"\u53ea\u80fd\u540c\u6642\u7de8\u8f2f\u4e00\u884c",action:{save:"\u4fdd\u5b58",cancel:"\u53d6\u6d88",delete:"\u522a\u9664",add:"\u65b0\u589e\u4e00\u884c\u8cc7\u6599"}},switch:{open:"\u6253\u958b",close:"\u95dc\u9589"}}),tve=Hge("fr_FR",{moneySymbol:"\u20ac",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"R\xe9initialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"R\xe9duire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"S\xe9lectionner une valeur"},alert:{clear:"R\xe9initialiser",selected:"S\xe9lectionn\xe9",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"\xe9l\xe9ments"}},tableToolBar:{leftPin:"\xc9pingler \xe0 gauche",rightPin:"\xc9pingler \xe0 gauche",noPin:"Sans \xe9pingle",leftFixedTitle:"Fixer \xe0 gauche",rightFixedTitle:"Fixer \xe0 droite",noFixedTitle:"Non fix\xe9",reset:"R\xe9initialiser",columnDisplay:"Affichage colonne",columnSetting:"R\xe9glages",fullScreen:"Plein \xe9cran",exitFullScreen:"Quitter Plein \xe9cran",reload:"Rafraichir",density:"Densit\xe9",densityDefault:"Par d\xe9faut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Pr\xe9c\xe9dente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de donn\xe9es"}},switch:{open:"ouvert",close:"pr\xe8s"}}),nve=Hge("pt_BR",{moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar \xe0 esquerda",rightPin:"Fixar \xe0 direita",noPin:"Desfixado",leftFixedTitle:"Fixado \xe0 esquerda",rightFixedTitle:"Fixado \xe0 direita",noFixedTitle:"N\xe3o fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configura\xe7\xf5es",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padr\xe3o",densityLarger:"Largo",densityMiddle:"M\xe9dio",densitySmall:"Compacto"},stepsForm:{next:"Pr\xf3ximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}}),ive=Hge("ko_KR",{moneySymbol:"\u20a9",form:{lightFilter:{more:"\ub354\ubcf4\uae30",clear:"\ucd08\uae30\ud654",confirm:"\ud655\uc778",itemUnit:"\uac74\uc218"}},tableForm:{search:"\uc870\ud68c",reset:"\ucd08\uae30\ud654",submit:"\uc81c\ucd9c",collapsed:"\ud655\uc7a5",expand:"\ub2eb\uae30",inputPlaceholder:"\uc785\ub825\ud574 \uc8fc\uc138\uc694",selectPlaceholder:"\uc120\ud0dd\ud574 \uc8fc\uc138\uc694"},alert:{clear:"\ucde8\uc18c",selected:"\uc120\ud0dd",item:"\uac74"},pagination:{total:{range:" ",total:"/ \ucd1d",item:"\uac74"}},tableToolBar:{leftPin:"\uc67c\ucabd\uc73c\ub85c \ud540",rightPin:"\uc624\ub978\ucabd\uc73c\ub85c \ud540",noPin:"\ud540 \uc81c\uac70",leftFixedTitle:"\uc67c\ucabd\uc73c\ub85c \uace0\uc815",rightFixedTitle:"\uc624\ub978\ucabd\uc73c\ub85c \uace0\uc815",noFixedTitle:"\ube44\uace0\uc815",reset:"\ucd08\uae30\ud654",columnDisplay:"\uceec\ub7fc \ud45c\uc2dc",columnSetting:"\uc124\uc815",fullScreen:"\uc804\uccb4 \ud654\uba74",exitFullScreen:"\uc804\uccb4 \ud654\uba74 \ucde8\uc18c",reload:"\uc0c8\ub85c \uace0\uce68",density:"\uc5ec\ubc31",densityDefault:"\uae30\ubcf8",densityLarger:"\ub9ce\uc740 \uc5ec\ubc31",densityMiddle:"\uc911\uac04 \uc5ec\ubc31",densitySmall:"\uc881\uc740 \uc5ec\ubc31"},stepsForm:{next:"\ub2e4\uc74c",prev:"\uc774\uc804",submit:"\uc885\ub8cc"},loginForm:{submitText:"\ub85c\uadf8\uc778"},editableTable:{action:{save:"\uc800\uc7a5",cancel:"\ucde8\uc18c",delete:"\uc0ad\uc81c",add:"\ub370\uc774\ud130 \ud589 \ucd94\uac00"}},switch:{open:"\uc5f4",close:"\uac00\uae4c \uc6b4"}}),rve=Hge("id_ID",{moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}}),ove=Hge("de_DE",{moneySymbol:"\u20ac",form:{lightFilter:{more:"Mehr",clear:"Zur\xfccksetzen",confirm:"Best\xe4tigen",itemUnit:"Eintr\xe4ge"}},tableForm:{search:"Suchen",reset:"Zur\xfccksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte ausw\xe4hlen"},alert:{clear:"Zur\xfccksetzen",selected:"Ausgew\xe4hlt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Eintr\xe4gen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zur\xfccksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Gr\xf6\xdfer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zur\xfcck",submit:"Abschlie\xdfen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"L\xf6schen",add:"Hinzuf\xfcgen einer Datenzeile"}},switch:{open:"offen",close:"schlie\xdfen"}}),ave=Hge("fa_IR",{moneySymbol:"\u062a\u0648\u0645\u0627\u0646",form:{lightFilter:{more:"\u0628\u06cc\u0634\u062a\u0631",clear:"\u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646",confirm:"\u062a\u0627\u06cc\u06cc\u062f",itemUnit:"\u0645\u0648\u0631\u062f"}},tableForm:{search:"\u062c\u0633\u062a\u062c\u0648",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06cc",submit:"\u062a\u0627\u06cc\u06cc\u062f",collapsed:"\u0646\u0645\u0627\u06cc\u0634 \u0628\u06cc\u0634\u062a\u0631",expand:"\u0646\u0645\u0627\u06cc\u0634 \u06a9\u0645\u062a\u0631",inputPlaceholder:"\u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f",selectPlaceholder:"\u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f"},alert:{clear:"\u067e\u0627\u06a9 \u0633\u0627\u0632\u06cc",selected:"\u0627\u0646\u062a\u062e\u0627\u0628",item:"\u0645\u0648\u0631\u062f"},pagination:{total:{range:" ",total:"\u0627\u0632",item:"\u0645\u0648\u0631\u062f"}},tableToolBar:{leftPin:"\u0633\u0646\u062c\u0627\u0642 \u0628\u0647 \u0686\u067e",rightPin:"\u0633\u0646\u062c\u0627\u0642 \u0628\u0647 \u0631\u0627\u0633\u062a",noPin:"\u0633\u0646\u062c\u0627\u0642 \u0646\u0634\u062f\u0647",leftFixedTitle:"\u062b\u0627\u0628\u062a \u0634\u062f\u0647 \u062f\u0631 \u0686\u067e",rightFixedTitle:"\u062b\u0627\u0628\u062a \u0634\u062f\u0647 \u062f\u0631 \u0631\u0627\u0633\u062a",noFixedTitle:"\u0634\u0646\u0627\u0648\u0631",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06cc",columnDisplay:"\u0646\u0645\u0627\u06cc\u0634 \u0647\u0645\u0647",columnSetting:"\u062a\u0646\u0638\u06cc\u0645\u0627\u062a",fullScreen:"\u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647",exitFullScreen:"\u062e\u0631\u0648\u062c \u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647",reload:"\u062a\u0627\u0632\u0647 \u0633\u0627\u0632\u06cc",density:"\u062a\u0631\u0627\u06a9\u0645",densityDefault:"\u067e\u06cc\u0634 \u0641\u0631\u0636",densityLarger:"\u0628\u0632\u0631\u06af",densityMiddle:"\u0645\u062a\u0648\u0633\u0637",densitySmall:"\u06a9\u0648\u0686\u06a9"},stepsForm:{next:"\u0628\u0639\u062f\u06cc",prev:"\u0642\u0628\u0644\u06cc",submit:"\u0627\u062a\u0645\u0627\u0645"},loginForm:{submitText:"\u0648\u0631\u0648\u062f"},editableTable:{action:{save:"\u0630\u062e\u06cc\u0631\u0647",cancel:"\u0644\u063a\u0648",delete:"\u062d\u0630\u0641",add:"\u06cc\u06a9 \u0631\u062f\u06cc\u0641 \u062f\u0627\u062f\u0647 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f"}},switch:{open:"\u0628\u0627\u0632",close:"\u0646\u0632\u062f\u06cc\u06a9"}}),sve=Hge("tr_TR",{moneySymbol:"\u20ba",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"\xd6\u011feler"}},tableForm:{search:"Filtrele",reset:"S\u0131f\u0131rla",submit:"G\xf6nder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek i\xe7in bir de\u011fer girin",selectPlaceholder:"Filtrelemek i\xe7in bir de\u011fer se\xe7in"},alert:{clear:"Temizle",selected:"Se\xe7ili",item:"\xd6\u011fe"},pagination:{total:{range:" ",total:"Toplam",item:"\xd6\u011fe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sa\u011fa sabitle",noPin:"Sabitlemeyi kald\u0131r",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sa\u011fa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"S\u0131f\u0131rla",columnDisplay:"Kolon G\xf6r\xfcn\xfcm\xfc",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan \xc7\u0131k",reload:"Yenile",density:"Kal\u0131nl\u0131k",densityDefault:"Varsay\u0131lan",densityLarger:"B\xfcy\xfck",densityMiddle:"Orta",densitySmall:"K\xfc\xe7\xfck"},stepsForm:{next:"S\u0131radaki",prev:"\xd6nceki",submit:"G\xf6nder"},loginForm:{submitText:"Giri\u015f Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazge\xe7",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"a\xe7\u0131k",close:"kapatmak"}}),lve=Hge("pl_PL",{moneySymbol:"z\u0142",form:{lightFilter:{more:"Wi\u0119cej",clear:"Wyczy\u015b\u0107",confirm:"Potwierd\u017a",itemUnit:"Ilo\u015b\u0107"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierd\u017a",collapsed:"Poka\u017c wiecej",expand:"Poka\u017c mniej",inputPlaceholder:"Prosz\u0119 poda\u0107",selectPlaceholder:"Prosz\u0119 wybra\u0107"},alert:{clear:"Wyczy\u015b\u0107",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpis\xf3w"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypi\u0119te do lewej",rightFixedTitle:"Przypi\u0119te do prawej",noFixedTitle:"Nieprzypi\u0119te",reset:"Reset",columnDisplay:"Wy\u015bwietlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pe\u0142en ekran",exitFullScreen:"Zamknij pe\u0142en ekran",reload:"Od\u015bwie\u017c",density:"Odst\u0119p",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zur\xfcck",submit:"Abschlie\xdfen"},loginForm:{submitText:"Zaloguj si\u0119"},editableTable:{action:{save:"Zapisa\u0107",cancel:"Anuluj",delete:"Usun\u0105\u0107",add:"dodawanie wiersza danych"}},switch:{open:"otwiera\u0107",close:"zamyka\u0107"}}),cve=Hge("hr_",{moneySymbol:"kn",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretra\u017ei",reset:"Poni\u0161ti",submit:"Potvrdi",collapsed:"Ra\u0161iri",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"O\u010disti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prika\u010di lijevo",rightPin:"Prika\u010di desno",noPin:"Bez prika\u010denja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Iza\u0111i iz punog zaslona",reload:"Ponovno u\u010ditaj",density:"Veli\u010dina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljede\u0107i",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obri\u0161i",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}}),uve=Hge("th_TH",{moneySymbol:"\u0e3f",deleteThisLine:"\u0e25\u0e1a\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e19\u0e35\u0e49",copyThisLine:"\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e19\u0e35\u0e49",form:{lightFilter:{more:"\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32",clear:"\u0e0a\u0e31\u0e14\u0e40\u0e08\u0e19",confirm:"\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19",itemUnit:"\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"}},tableForm:{search:"\u0e2a\u0e2d\u0e1a\u0e16\u0e32\u0e21",reset:"\u0e23\u0e35\u0e40\u0e0b\u0e47\u0e15",submit:"\u0e2a\u0e48\u0e07",collapsed:"\u0e02\u0e22\u0e32\u0e22",expand:"\u0e17\u0e23\u0e38\u0e14",inputPlaceholder:"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e1b\u0e49\u0e2d\u0e19",selectPlaceholder:"\u0e42\u0e1b\u0e23\u0e14\u0e40\u0e25\u0e37\u0e2d\u0e01"},alert:{clear:"\u0e0a\u0e31\u0e14\u0e40\u0e08\u0e19",selected:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e41\u0e25\u0e49\u0e27",item:"\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"},pagination:{total:{range:" ",total:"\u0e02\u0e2d\u0e07",item:"\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"}},tableToolBar:{leftPin:"\u0e1b\u0e31\u0e01\u0e2b\u0e21\u0e38\u0e14\u0e44\u0e1b\u0e17\u0e32\u0e07\u0e0b\u0e49\u0e32\u0e22",rightPin:"\u0e1b\u0e31\u0e01\u0e2b\u0e21\u0e38\u0e14\u0e44\u0e1b\u0e17\u0e32\u0e07\u0e02\u0e27\u0e32",noPin:"\u0e40\u0e25\u0e34\u0e01\u0e15\u0e23\u0e36\u0e07\u0e41\u0e25\u0e49\u0e27",leftFixedTitle:"\u0e41\u0e01\u0e49\u0e44\u0e02\u0e14\u0e49\u0e32\u0e19\u0e0b\u0e49\u0e32\u0e22",rightFixedTitle:"\u0e41\u0e01\u0e49\u0e44\u0e02\u0e14\u0e49\u0e32\u0e19\u0e02\u0e27\u0e32",noFixedTitle:"\u0e44\u0e21\u0e48\u0e04\u0e07\u0e17\u0e35\u0e48",reset:"\u0e23\u0e35\u0e40\u0e0b\u0e47\u0e15",columnDisplay:"\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c",columnSetting:"\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32",fullScreen:"\u0e40\u0e15\u0e47\u0e21\u0e08\u0e2d",exitFullScreen:"\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e42\u0e2b\u0e21\u0e14\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d",reload:"\u0e23\u0e35\u0e40\u0e1f\u0e23\u0e0a",density:"\u0e04\u0e27\u0e32\u0e21\u0e2b\u0e19\u0e32\u0e41\u0e19\u0e48\u0e19",densityDefault:"\u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19",densityLarger:"\u0e02\u0e19\u0e32\u0e14\u0e43\u0e2b\u0e0d\u0e48\u0e02\u0e36\u0e49\u0e19",densityMiddle:"\u0e01\u0e25\u0e32\u0e07",densitySmall:"\u0e01\u0e30\u0e17\u0e31\u0e14\u0e23\u0e31\u0e14"},stepsForm:{next:"\u0e16\u0e31\u0e14\u0e44\u0e1b",prev:"\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32",submit:"\u0e40\u0e2a\u0e23\u0e47\u0e08"},loginForm:{submitText:"\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a"},editableTable:{onlyOneLineEditor:"\u0e41\u0e01\u0e49\u0e44\u0e02\u0e44\u0e14\u0e49\u0e40\u0e1e\u0e35\u0e22\u0e07\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e40\u0e14\u0e35\u0e22\u0e27\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19",action:{save:"\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01",cancel:"\u0e22\u0e01\u0e40\u0e25\u0e34\u0e01",delete:"\u0e25\u0e1a",add:"\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e41\u0e16\u0e27\u0e02\u0e2d\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25"}},switch:{open:"\u0e40\u0e1b\u0e34\u0e14",close:"\u0e1b\u0e34\u0e14"}}),dve=Hge("cs_cz",{moneySymbol:"K\u010d",deleteThisLine:"Smazat tento \u0159\xe1dek",copyThisLine:"Kop\xedrovat tento \u0159\xe1dek",form:{lightFilter:{more:"V\xedc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Polo\u017eky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zv\u011bt\u0161it",expand:"Zmen\u0161it",inputPlaceholder:"Zadejte pros\xedm",selectPlaceholder:"Vyberte pros\xedm"},alert:{clear:"Vymazat",selected:"Vybran\xfd",item:"Polo\u017eka"},pagination:{total:{range:" ",total:"z",item:"polo\u017eek"}},tableToolBar:{leftPin:"P\u0159ipnout doleva",rightPin:"P\u0159ipnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixov\xe1no nalevo",rightFixedTitle:"Fixov\xe1no napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazen\xed sloupc\u016f",columnSetting:"Nastaven\xed",fullScreen:"Cel\xe1 obrazovka",exitFullScreen:"Ukon\u010dete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"V\xfdchoz\xed",densityLarger:"V\u011bt\u0161\xed",densityMiddle:"St\u0159edn\xed",densitySmall:"Kompaktn\xed"},stepsForm:{next:"Dal\u0161\xed",prev:"P\u0159edchoz\xed",submit:"Dokon\u010dit"},loginForm:{submitText:"P\u0159ihl\xe1sit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden \u0159\xe1dek",action:{save:"Ulo\u017eit",cancel:"Zru\u0161it",delete:"Vymazat",add:"p\u0159idat \u0159\xe1dek dat"}},switch:{open:"otev\u0159\xedt",close:"zav\u0159\xedt"}}),hve=Hge("sk_SK",{moneySymbol:"\u20ac",deleteThisLine:"Odstr\xe1ni\u0165 tento riadok",copyThisLine:"Skop\xedrujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vy\u010disti\u0165",confirm:"Potvr\u010fte",itemUnit:"Polo\u017eky"}},tableForm:{search:"Vyhlada\u0165",reset:"Resetova\u0165",submit:"Odosla\u0165",collapsed:"Rozbali\u0165",expand:"Zbali\u0165",inputPlaceholder:"Pros\xedm, zadajte",selectPlaceholder:"Pros\xedm, vyberte"},alert:{clear:"Vy\u010disti\u0165",selected:"Vybran\xfd",item:"Polo\u017eka"},pagination:{total:{range:" ",total:"z",item:"polo\u017eiek"}},tableToolBar:{leftPin:"Pripn\xfa\u0165 v\u013eavo",rightPin:"Pripn\xfa\u0165 vpravo",noPin:"Odopnut\xe9",leftFixedTitle:"Fixovan\xe9 na \u013eavo",rightFixedTitle:"Fixovan\xe9 na pravo",noFixedTitle:"Nefixovan\xe9",reset:"Resetova\u0165",columnDisplay:"Zobrazenie st\u013apcov",columnSetting:"Nastavenia",fullScreen:"Cel\xe1 obrazovka",exitFullScreen:"Ukon\u010di\u0165 cel\xfa obrazovku",reload:"Obnovi\u0165",density:"Hustota",densityDefault:"Predvolen\xe9",densityLarger:"V\xe4\u010d\u0161ie",densityMiddle:"Stredn\xe9",densitySmall:"Kompaktn\xe9"},stepsForm:{next:"\u010eal\u0161ie",prev:"Predch\xe1dzaj\xface",submit:"Potvrdi\u0165"},loginForm:{submitText:"Prihl\xe1si\u0165 sa"},editableTable:{onlyOneLineEditor:"Upravova\u0165 mo\u017eno iba jeden riadok",action:{save:"Ulo\u017ei\u0165",cancel:"Zru\u0161i\u0165",delete:"Odstr\xe1ni\u0165",add:"prida\u0165 riadok \xfadajov"}},switch:{open:"otvori\u0165",close:"zavrie\u0165"}}),fve={"mn-MN":zge,"ar-EG":jge,"zh-CN":Vge,"en-US":Wge,"en-GB":Uge,"vi-VN":Gge,"it-IT":Kge,"ja-JP":Yge,"es-ES":qge,"ca-ES":$ge,"ru-RU":Xge,"sr-RS":Qge,"ms-MY":Jge,"zh-TW":eve,"fr-FR":tve,"pt-BR":nve,"ko-KR":ive,"id-ID":rve,"de-DE":ove,"fa-IR":ave,"tr-TR":sve,"pl-PL":lve,"hr-HR":cve,"th-TH":uve,"cs-CZ":dve,"sk-SK":hve},pve=Object.keys(fve),gve=function(e){var t=(e||"zh-CN").toLocaleLowerCase();return pve.find((function(e){return e.toLocaleLowerCase().includes(t)}))},vve=function(e,t){return new oa(e).setAlpha(t).toRgbString()},mve=function(e,t){return new oa(e).lighten(t).toHexString()},yve=function(e){var t=Xo(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},_ve=function(e,t){var n=e||"#000",i=t||"#fff";return{colorBgBase:n,colorTextBase:i,colorText:vve(i,.85),colorTextSecondary:vve(i,.65),colorTextTertiary:vve(i,.45),colorTextQuaternary:vve(i,.25),colorFill:vve(i,.18),colorFillSecondary:vve(i,.12),colorFillTertiary:vve(i,.08),colorFillQuaternary:vve(i,.04),colorBgElevated:mve(n,12),colorBgContainer:mve(n,8),colorBgLayout:mve(n,0),colorBgSpotlight:mve(n,26),colorBorder:mve(n,26),colorBorderSecondary:mve(n,19)}},bve=function(e,t){var n=Object.keys(ia).map((function(t){var n=Xo(e[t],{theme:"dark"});return new Array(10).fill(1).reduce((function(e,i,r){return e[t+"-"+(r+1)]=n[r],e}),{})})).reduce((function(e,t){return e=Zt(Zt({},e),t)}),{});return Zt(Zt(Zt({},null!==t&&void 0!==t?t:fa(e)),n),aa(e,{generateColorPalettes:yve,generateNeutralColorPalettes:_ve}))};var Cve=function(e,t){var n=null!==t&&void 0!==t?t:fa(e),i=sa(n.fontSizes[0]),r=n.controlHeight-4;return Zt(Zt(Zt(Zt({},n),function(e){var t=e.sizeUnit,n=e.sizeStep-2;return{sizeXXL:t*(n+10),sizeXL:t*(n+6),sizeLG:t*(n+2),sizeMD:t*(n+2),sizeMS:t*(n+1),size:t*n,sizeSM:t*n,sizeXS:t*(n-1),sizeXXS:t*(n-1)}}(null!==t&&void 0!==t?t:e)),{fontSizes:i.map((function(e){return e.size})),lineHeights:i.map((function(e){return e.lineHeight})),controlHeight:r}),na(Zt(Zt({},n),{controlHeight:r})))};var Sve,wve={defaultConfig:_a,defaultSeed:_a.token,useToken:function(){var e=Ca(),t=(0,k.Z)(e,3);return{theme:t[0],token:t[1],hashId:t[2]}},defaultAlgorithm:fa,darkAlgorithm:bve,compactAlgorithm:Cve},kve={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911",colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff7875",colorInfo:"#1677ff",colorTextBase:"#000",colorBgBase:"#fff",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInQuint:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:4,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,"blue-1":"#e6f4ff","blue-2":"#bae0ff","blue-3":"#91caff","blue-4":"#69b1ff","blue-5":"#4096ff","blue-6":"#1677ff","blue-7":"#0958d9","blue-8":"#003eb3","blue-9":"#002c8c","blue-10":"#001d66","purple-1":"#f9f0ff","purple-2":"#efdbff","purple-3":"#d3adf7","purple-4":"#b37feb","purple-5":"#9254de","purple-6":"#722ed1","purple-7":"#531dab","purple-8":"#391085","purple-9":"#22075e","purple-10":"#120338","cyan-1":"#e6fffb","cyan-2":"#b5f5ec","cyan-3":"#87e8de","cyan-4":"#5cdbd3","cyan-5":"#36cfc9","cyan-6":"#13c2c2","cyan-7":"#08979c","cyan-8":"#006d75","cyan-9":"#00474f","cyan-10":"#002329","green-1":"#f6ffed","green-2":"#d9f7be","green-3":"#b7eb8f","green-4":"#95de64","green-5":"#73d13d","green-6":"#52c41a","green-7":"#389e0d","green-8":"#237804","green-9":"#135200","green-10":"#092b00","magenta-1":"#fff0f6","magenta-2":"#ffd6e7","magenta-3":"#ffadd2","magenta-4":"#ff85c0","magenta-5":"#f759ab","magenta-6":"#eb2f96","magenta-7":"#c41d7f","magenta-8":"#9e1068","magenta-9":"#780650","magenta-10":"#520339","pink-1":"#fff0f6","pink-2":"#ffd6e7","pink-3":"#ffadd2","pink-4":"#ff85c0","pink-5":"#f759ab","pink-6":"#eb2f96","pink-7":"#c41d7f","pink-8":"#9e1068","pink-9":"#780650","pink-10":"#520339","red-1":"#fff1f0","red-2":"#ffccc7","red-3":"#ffa39e","red-4":"#ff7875","red-5":"#ff4d4f","red-6":"#f5222d","red-7":"#cf1322","red-8":"#a8071a","red-9":"#820014","red-10":"#5c0011","orange-1":"#fff7e6","orange-2":"#ffe7ba","orange-3":"#ffd591","orange-4":"#ffc069","orange-5":"#ffa940","orange-6":"#fa8c16","orange-7":"#d46b08","orange-8":"#ad4e00","orange-9":"#873800","orange-10":"#612500","yellow-1":"#feffe6","yellow-2":"#ffffb8","yellow-3":"#fffb8f","yellow-4":"#fff566","yellow-5":"#ffec3d","yellow-6":"#fadb14","yellow-7":"#d4b106","yellow-8":"#ad8b00","yellow-9":"#876800","yellow-10":"#614700","volcano-1":"#fff2e8","volcano-2":"#ffd8bf","volcano-3":"#ffbb96","volcano-4":"#ff9c6e","volcano-5":"#ff7a45","volcano-6":"#fa541c","volcano-7":"#d4380d","volcano-8":"#ad2102","volcano-9":"#871400","volcano-10":"#610b00","geekblue-1":"#f0f5ff","geekblue-2":"#d6e4ff","geekblue-3":"#adc6ff","geekblue-4":"#85a5ff","geekblue-5":"#597ef7","geekblue-6":"#2f54eb","geekblue-7":"#1d39c4","geekblue-8":"#10239e","geekblue-9":"#061178","geekblue-10":"#030852","gold-1":"#fffbe6","gold-2":"#fff1b8","gold-3":"#ffe58f","gold-4":"#ffd666","gold-5":"#ffc53d","gold-6":"#faad14","gold-7":"#d48806","gold-8":"#ad6800","gold-9":"#874d00","gold-10":"#613400","lime-1":"#fcffe6","lime-2":"#f4ffb8","lime-3":"#eaff8f","lime-4":"#d3f261","lime-5":"#bae637","lime-6":"#a0d911","lime-7":"#7cb305","lime-8":"#5b8c00","lime-9":"#3f6600","lime-10":"#254000",colorText:"rgba(0, 0, 0, 0.88)",colorTextSecondary:"rgba(0, 0, 0, 0.65)",colorTextTertiary:"rgba(0, 0, 0, 0.45)",colorTextQuaternary:"rgba(0, 0, 0, 0.25)",colorFill:"rgba(0, 0, 0, 0.15)",colorFillSecondary:"rgba(0, 0, 0, 0.06)",colorFillTertiary:"rgba(0, 0, 0, 0.04)",colorFillQuaternary:"rgba(0, 0, 0, 0.02)",colorBgLayout:"hsl(220,23%,97%)",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBgSpotlight:"rgba(0, 0, 0, 0.85)",colorBorder:"#d9d9d9",colorBorderSecondary:"#f0f0f0",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryActive:"#0958d9",colorPrimaryTextHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorSuccessBg:"#f6ffed",colorSuccessBgHover:"#d9f7be",colorSuccessBorder:"#b7eb8f",colorSuccessBorderHover:"#95de64",colorSuccessHover:"#95de64",colorSuccessActive:"#389e0d",colorSuccessTextHover:"#73d13d",colorSuccessText:"#52c41a",colorSuccessTextActive:"#389e0d",colorErrorBg:"#fff2f0",colorErrorBgHover:"#fff1f0",colorErrorBorder:"#ffccc7",colorErrorBorderHover:"#ffa39e",colorErrorHover:"#ffa39e",colorErrorActive:"#d9363e",colorErrorTextHover:"#ff7875",colorErrorText:"#ff4d4f",colorErrorTextActive:"#d9363e",colorWarningBg:"#fffbe6",colorWarningBgHover:"#fff1b8",colorWarningBorder:"#ffe58f",colorWarningBorderHover:"#ffd666",colorWarningHover:"#ffd666",colorWarningActive:"#d48806",colorWarningTextHover:"#ffc53d",colorWarningText:"#faad14",colorWarningTextActive:"#d48806",colorInfoBg:"#e6f4ff",colorInfoBgHover:"#bae0ff",colorInfoBorder:"#91caff",colorInfoBorderHover:"#69b1ff",colorInfoHover:"#69b1ff",colorInfoActive:"#0958d9",colorInfoTextHover:"#4096ff",colorInfoText:"#1677ff",colorInfoTextActive:"#0958d9",colorBgMask:"rgba(0, 0, 0, 0.45)",colorWhite:"#fff",sizeXXL:48,sizeXL:32,sizeLG:24,sizeMD:20,sizeMS:16,size:16,sizeSM:12,sizeXS:8,sizeXXS:4,controlHeightSM:24,controlHeightXS:16,controlHeightLG:40,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",fontSizes:[12,14,16,20,24,30,38,46,56,68],lineHeights:[1.6666666666666667,1.5714285714285714,1.5,1.4,1.3333333333333333,1.2666666666666666,1.2105263157894737,1.173913043478261,1.1428571428571428,1.1176470588235294],lineWidthBold:2,borderRadiusXS:1,borderRadiusSM:4,borderRadiusLG:8,borderRadiusOuter:4,colorLink:"#1677ff",colorLinkHover:"#69b1ff",colorLinkActive:"#0958d9",colorFillContent:"rgba(0, 0, 0, 0.06)",colorFillContentHover:"rgba(0, 0, 0, 0.15)",colorFillAlter:"rgba(0, 0, 0, 0.02)",colorBgContainerDisabled:"rgba(0, 0, 0, 0.04)",colorBorderBg:"#ffffff",colorSplit:"rgba(5, 5, 5, 0.06)",colorTextPlaceholder:"rgba(0, 0, 0, 0.25)",colorTextDisabled:"rgba(0, 0, 0, 0.25)",colorTextHeading:"rgba(0, 0, 0, 0.88)",colorTextLabel:"rgba(0, 0, 0, 0.65)",colorTextDescription:"rgba(0, 0, 0, 0.45)",colorTextLightSolid:"#fff",colorHighlight:"#ff7875",colorBgTextHover:"rgba(0, 0, 0, 0.06)",colorBgTextActive:"rgba(0, 0, 0, 0.15)",colorIcon:"rgba(0, 0, 0, 0.45)",colorIconHover:"rgba(0, 0, 0, 0.88)",colorErrorOutline:"rgba(255, 38, 5, 0.06)",colorWarningOutline:"rgba(255, 215, 5, 0.1)",fontSizeSM:12,fontSizeLG:16,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineHeightHeading1:1.2105263157894737,lineHeightHeading2:1.2666666666666666,lineHeightHeading3:1.3333333333333333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"rgba(0, 0, 0, 0.04)",controlItemBgActive:"#e6f4ff",controlItemBgActiveHover:"#bae0ff",controlItemBgActiveDisabled:"rgba(0, 0, 0, 0.15)",controlTmpOutline:"rgba(0, 0, 0, 0.02)",controlOutline:"rgba(5, 145, 255, 0.1)",fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:4,paddingXS:8,paddingSM:12,padding:16,paddingMD:20,paddingLG:24,paddingXL:32,paddingContentHorizontalLG:24,paddingContentVerticalLG:16,paddingContentHorizontal:16,paddingContentVertical:12,paddingContentHorizontalSM:16,paddingContentVerticalSM:8,marginXXS:4,marginXS:8,marginSM:12,margin:16,marginMD:20,marginLG:24,marginXL:32,marginXXL:48,boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02)",boxShadowSecondary:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",screenXS:480,screenXSMin:480,screenXSMax:479,screenSM:576,screenSMMin:576,screenSMMax:575,screenMD:768,screenMDMin:768,screenMDMax:767,screenLG:992,screenLGMin:992,screenLGMax:991,screenXL:1200,screenXLMin:1200,screenXLMax:1199,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1599,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:"0 1px 2px -2px rgba(0, 0, 0, 0.16),0 3px 6px 0 rgba(0, 0, 0, 0.12),0 5px 12px 4px rgba(0, 0, 0, 0.09)",boxShadowDrawerRight:"-6px 0 16px 0 rgba(0, 0, 0, 0.08),-3px 0 6px -4px rgba(0, 0, 0, 0.12),-9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerLeft:"6px 0 16px 0 rgba(0, 0, 0, 0.08),3px 0 6px -4px rgba(0, 0, 0, 0.12),9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerUp:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerDown:"0 -6px 16px 0 rgba(0, 0, 0, 0.08),0 -3px 6px -4px rgba(0, 0, 0, 0.12),0 -9px 28px 8px rgba(0, 0, 0, 0.05)",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",_tokenKey:"19w80ff",_hashId:"css-dev-only-do-not-override-i2zu9q"},xve=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=3735928559^n,r=1103547991^n,o=0;o<e.length;o++)t=e.charCodeAt(o),i=Math.imul(i^t,2654435761),r=Math.imul(r^t,1597334677);return i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&(r=Math.imul(r^r>>>16,2246822507)^Math.imul(i^i>>>13,3266489909)))+(i>>>0)},Eve=function(e){var t=Array.isArray(e)?e:[e];return Lpe.has(t)||Lpe.set(t,new Dpe(t)),Lpe.get(t)}((function(e){return e})),Tve={theme:Eve,token:(0,Ft.Z)((0,Ft.Z)({},kve),null===wve||void 0===wve||null===(Sve=wve.defaultAlgorithm)||void 0===Sve?void 0:Sve.call(wve,null===wve||void 0===wve?void 0:wve.defaultSeed)),hashId:"pro-".concat(xve(JSON.stringify(kve)))},Nve=function(){return Tve},Ive=function(e,t){return new oa(e).setAlpha(t).toRgbString()},Dve="undefined"!==typeof wve&&wve?wve:p,Lve=Dve.useToken;function Ove(e,t){var n,i=(0,v.useContext)(jve).token,r=void 0===i?{}:i,o=(0,v.useContext)(jve),a=o.hashId,s=void 0===a?"":a,l=o.theme,c=Lve().token,u=(0,v.useContext)(Xa.ConfigContext).getPrefixCls;return r.layout||(r=(0,Ft.Z)({},c)),r.proComponentsCls=null!==(n=r.proComponentsCls)&&void 0!==n?n:".".concat(u("pro")),r.antCls=".".concat(u()),{wrapSSR:Tpe({theme:l,token:r,hashId:s,path:[e]},(function(){return t(r)})),hashId:s}}var Rve=function(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r,o=n.length,a=0;a<o;a+=1)for(r in n[a])n[a].hasOwnProperty(r)&&("object"!==(0,Bt.Z)(e[r])||"object"!==(0,Bt.Z)(n[a][r])||void 0===e[r]||null===e[r]||Array.isArray(e[r])||Array.isArray(n[a][r])?e[r]=n[a][r]:e[r]=(0,Ft.Z)((0,Ft.Z)({},e[r]),n[a][r]));return e},Ave=["locale","getPrefixCls"],Mve=["locale","theme"],Pve=function(){var e,t;return"undefined"===typeof process||"TEST"!==(null===(e="production")?void 0:e.toUpperCase())&&"DEV"!==(null===(t="production")?void 0:t.toUpperCase())},Zve=v.createContext({intl:(0,Ft.Z)((0,Ft.Z)({},Vge),{},{locale:"default"}),valueTypeMap:{},theme:Eve,hashed:!0,dark:!1,token:kve}),Fve=(Zve.Consumer,function(){var e=Age().cache;return(0,v.useEffect)((function(){return function(){e.clear()}}),[]),null}),Bve=function(e){var t,n=e.children,i=e.dark,r=e.valueTypeMap,o=e.autoClearCache,a=void 0!==o&&o,s=e.token,l=e.prefixCls,c=(0,v.useContext)(Xa.ConfigContext),u=c.locale,d=c.getPrefixCls,h=Ai(c,Ave),f=null===(t=Dve.useToken)||void 0===t?void 0:t.call(Dve),p=(0,v.useContext)(Zve),g=l?".".concat(l):".".concat(d(),"-pro"),m="."+d(),y="".concat(g),b=(0,v.useMemo)((function(){return function(e,t){var n,i,r,o=(0,Ft.Z)({},e);return(0,Ft.Z)((0,Ft.Z)({bgLayout:"linear-gradient(".concat(t.colorBgContainer,", ").concat(t.colorBgLayout," 28%)"),colorTextAppListIcon:t.colorTextSecondary,appListIconHoverBgColor:null===o||void 0===o||null===(n=o.sider)||void 0===n?void 0:n.colorBgMenuItemSelected,colorBgAppListIconHover:Ive(t.colorTextBase,.04),colorTextAppListIconHover:t.colorTextBase},o),{},{header:(0,Ft.Z)({colorBgHeader:Ive(t.colorBgElevated,.6),colorBgScrollHeader:Ive(t.colorBgElevated,.8),colorHeaderTitle:t.colorText,colorBgMenuItemHover:Ive(t.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorTextMenuSelected:Ive(t.colorTextBase,.95),colorBgRightActionsItemHover:Ive(t.colorTextBase,.03),colorTextRightActionsItem:t.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:t.colorTextSecondary,colorTextMenuSecondary:t.colorTextTertiary,colorTextMenuTitle:t.colorText,colorTextMenuActive:t.colorText},o.header),sider:(0,Ft.Z)({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:t.colorBgElevated,colorTextCollapsedButtonHover:t.colorTextSecondary,colorTextCollapsedButton:Ive(t.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:Ive(t.colorTextBase,.06),colorBgMenuItemHover:Ive(t.colorTextBase,.03),colorBgMenuItemSelected:Ive(t.colorTextBase,.04),colorTextMenuItemHover:t.colorText,colorTextMenuSelected:Ive(t.colorTextBase,.95),colorTextMenuActive:t.colorText,colorTextMenu:t.colorTextSecondary,colorTextMenuSecondary:t.colorTextTertiary,colorTextMenuTitle:t.colorText,colorTextSubMenuSelected:Ive(t.colorTextBase,.95)},o.sider),pageContainer:(0,Ft.Z)({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:(null===(i=o.pageContainer)||void 0===i?void 0:i.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:(null===(r=o.pageContainer)||void 0===r?void 0:r.marginBlockPageContainerContent)||24,colorBgPageContainerFixed:t.colorBgElevated},o.pageContainer)})}(s||{},f.token||kve)}),[s,f.token]),C=(0,v.useMemo)((function(){var e,t=null===u||void 0===u?void 0:u.locale,n=gve(t),r=t&&"default"===(null===(e=p.intl)||void 0===e?void 0:e.locale)?fve[n]:p.intl||fve[n];return(0,Ft.Z)((0,Ft.Z)({},p),{},{dark:null!==i&&void 0!==i?i:p.dark,token:Rve(p.token,f.token,{proComponentsCls:g,antCls:m,themeId:f.theme.id,layout:b}),intl:r||Vge})}),[null===u||void 0===u?void 0:u.locale,p,i,f.token,f.theme.id,g,m,b]),S=(0,Ft.Z)((0,Ft.Z)({},C.token||{}),{},{proComponentsCls:g}),w=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(0,v.useContext)(spe).cache.instanceId,r=n.salt,o=void 0===r?"":r,a=n.override,s=void 0===a?vpe:a,l=n.formatToken,c=v.useMemo((function(){return Object.assign.apply(Object,[{}].concat((0,_.Z)(t)))}),[t]),u=v.useMemo((function(){return lpe(c)}),[c]),d=v.useMemo((function(){return lpe(s)}),[s]),h=gpe("token",[o,e.id,u,d],(function(){var t=e.getDerivativeToken(c),n=(0,Ft.Z)((0,Ft.Z)({},t),s);l&&(n=l(n));var i=cpe(n,o);n._tokenKey=i,ype(i);var r="".concat("css","-").concat(en(i));return n._hashId=r,[n,r]}),(function(e){_pe(e[0]._tokenKey,i)}));return h}(f.theme,[f.token,null!==S&&void 0!==S?S:{}],{salt:y}),x=(0,k.Z)(w,2),E=x[0],T=x[1],N=(0,v.useMemo)((function(){return!1===e.hashed||!1===p.hashed||!1===Pve()?"":T}),[T,p.hashed,e.hashed]),I=(0,v.useMemo)((function(){var t=(0,Ft.Z)((0,Ft.Z)({},h.theme),{},{hashId:N,hashed:!1!==e.hashed&&!1!==p.hashed&&Pve()});return(0,ES.jsx)(Xa,(0,Ft.Z)((0,Ft.Z)({},h),{},{theme:(0,Ft.Z)({},t),children:(0,ES.jsx)(Zve.Provider,{value:(0,Ft.Z)((0,Ft.Z)({},C),{},{valueTypeMap:r||(null===C||void 0===C?void 0:C.valueTypeMap),token:E,theme:f.theme,hashed:e.hashed,hashId:N}),children:(0,ES.jsxs)(ES.Fragment,{children:[a&&(0,ES.jsx)(Fve,{}),n]})})}))}),[a,n,d,N,u,C,E]);return a?(0,ES.jsx)(Fge,{value:{provider:function(){return new Map}},children:I}):I},Hve=function(e){var t=e.needDeps,n=e.dark,i=e.token,r=(0,v.useContext)(Zve),o=(0,v.useContext)(Xa.ConfigContext),a=o.locale,s=o.theme,l=Ai(o,Mve);if(t&&void 0!==r.hashId&&"children-needDeps"===Object.keys(e).sort().join("-"))return(0,ES.jsx)(ES.Fragment,{children:e.children});var c=(0,Ft.Z)((0,Ft.Z)({},l),{},{locale:a||Ppe,theme:Ufe((0,Ft.Z)((0,Ft.Z)({},s),{},{algorithm:function(){var e=null!==n&&void 0!==n?n:r.dark;return e&&!Array.isArray(null===s||void 0===s?void 0:s.algorithm)?[Dve.darkAlgorithm,null===s||void 0===s?void 0:s.algorithm].filter(Boolean):e&&Array.isArray(null===s||void 0===s?void 0:s.algorithm)?[Dve.darkAlgorithm].concat((0,_.Z)((null===s||void 0===s?void 0:s.algorithm)||[])).filter(Boolean):null===s||void 0===s?void 0:s.algorithm}()}))});return(0,ES.jsx)(Xa,(0,Ft.Z)((0,Ft.Z)({},c),{},{children:(0,ES.jsx)(Bve,(0,Ft.Z)((0,Ft.Z)({},e),{},{token:i}))}))};function zve(){var e=(0,v.useContext)(Xa.ConfigContext).locale,t=(0,v.useContext)(Zve).intl;return t&&"default"!==t.locale?t||Vge:null!==e&&void 0!==e&&e.locale&&fve[gve(e.locale)]||Vge}Zve.displayName="ProProvider";var jve=Zve,Vve=Zve;function Wve(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.apply(void 0,n)}return e}var Uve=function(e){var t=(0,v.useRef)();return(0,v.useEffect)((function(){t.current=e})),t.current};function Gve(e,t,n,i){if(e===t)return!0;if(e&&t&&"object"===(0,Bt.Z)(e)&&"object"===(0,Bt.Z)(t)){if(e.constructor!==t.constructor)return!1;var r,o,a;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(o=r;0!==o--;)if(!Gve(e[o],t[o],n,i))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var s,l=(0,x.Z)(e.entries());try{for(l.s();!(s=l.n()).done;)if(o=s.value,!t.has(o[0]))return!1}catch(p){l.e(p)}finally{l.f()}var c,u=(0,x.Z)(e.entries());try{for(u.s();!(c=u.n()).done;)if(!Gve((o=c.value)[1],t.get(o[0]),n,i))return!1}catch(p){u.e(p)}finally{u.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var d,h=(0,x.Z)(e.entries());try{for(h.s();!(d=h.n()).done;)if(o=d.value,!t.has(o[0]))return!1}catch(p){h.e(p)}finally{h.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((r=e.length)!=t.length)return!1;for(o=r;0!==o--;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if((r=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(t,a[o]))return!1;for(o=r;0!==o--;){var f=a[o];if((null===n||void 0===n||!n.includes(f))&&(("_owner"!==f||!e.$$typeof)&&!Gve(e[f],t[f],n,i)))return i&&console.log(f),!1}return!0}return e!==e&&t!==t}var Kve=v.createContext({}),Yve=0,qve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;if("undefined"===typeof window)return(Yve+=1).toFixed(0);if(!window.crypto)return(Yve+=1).toFixed(0);for(var t="",n=crypto.getRandomValues(new Uint8Array(e));e--;){var i=63&n[e];t+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return t},$ve=function(){return"undefined"===typeof window?qve():window.crypto&&window.crypto.randomUUID&&"function"==typeof crypto.randomUUID?crypto.randomUUID():qve()},Xve=0;var Qve=function(e){return null===e||void 0===e},Jve=function(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r,o=n.length,a=0;a<o;a+=1)for(r in n[a])n[a].hasOwnProperty(r)&&("object"!==(0,Bt.Z)(e[r])||"object"!==(0,Bt.Z)(n[a][r])||void 0===e[r]||null===e[r]||Array.isArray(e[r])||Array.isArray(n[a][r])?e[r]=n[a][r]:e[r]=(0,Ft.Z)((0,Ft.Z)({},e[r]),n[a][r]));return e};function eme(e){return"object"===(0,Bt.Z)(e)&&(null===e||!v.isValidElement(e)&&(e.constructor!==RegExp&&(!(e instanceof Map)&&(!(e instanceof Set)&&(!(e instanceof HTMLElement)&&(!(e instanceof Blob)&&(!(e instanceof File)&&!Array.isArray(e))))))))}var tme=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Object.keys(t).reduce((function(e,n){var i=t[n];return Qve(i)||(e[n]=i),e}),{});if(Object.keys(i).length<1)return e;if("undefined"===typeof window)return e;if("object"!==(0,Bt.Z)(e)||Qve(e)||e instanceof Blob)return e;var r=Array.isArray(e)?[]:{},o=function e(t,o){var a=Array.isArray(t)?[]:{};return null==t||void 0===t?a:(Object.keys(t).forEach((function(n){var s=o?[o,n].flat(1):[n].flat(1),l=t[n],c=vr(i,s),u=function e(i,r){return Array.isArray(i)?(i.forEach((function(i,o){i&&("function"===typeof i&&(r[o]=i(r,n,t)),"object"!==(0,Bt.Z)(i)||Array.isArray(i)||Object.keys(i).forEach((function(a){var s;if("function"===typeof i[a]){var l=i[a](r[o][a],n,t);r[o][a]="object"===(0,Bt.Z)(l)?l[a]:l}else if("object"===(0,Bt.Z)(i[a])&&Array.isArray(i[a])&&null!==r&&void 0!==r&&null!==(s=r[o])&&void 0!==s&&s[a]){var c;e(i[a],null===r||void 0===r||null===(c=r[o])||void 0===c?void 0:c[a])}})),"object"===(0,Bt.Z)(i)&&Array.isArray(i)&&null!==r&&void 0!==r&&r[o]&&e(i,null===r||void 0===r?void 0:r[o]))})),n):n},d=function(){var e="function"===typeof c?null===c||void 0===c?void 0:c(l,n,t):u(c,l);Array.isArray(e)?a=_r(a,e,l):"object"!==(0,Bt.Z)(e)||Array.isArray(r)?"object"===(0,Bt.Z)(e)&&Array.isArray(r)?a=(0,Ft.Z)((0,Ft.Z)({},a),e):e&&(a=_r(a,[e],l)):r=(0,Ft.Z)((0,Ft.Z)({},r),e)};if(c&&"function"===typeof c&&d(),"undefined"!==typeof window)if(eme(l)){var h=e(l,s);if(Object.keys(h).length<1)return;a=_r(a,[n],h)}else d()})),n?a:t)};return r=Array.isArray(e)&&Array.isArray(r)?(0,_.Z)(o(e)):Jve({},o(e),r)},nme=n(45645),ime=n.n(nme);ux().extend(ime());var rme={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function ome(e){return"[object Object]"===Object.prototype.toString.call(e)}var ame=function(e){return!(null===e||void 0===e||!e._isAMomentObject)},sme=function(e,t,n){if(!t)return e;if(ux().isDayjs(e)||ame(e)){if("number"===t)return e.valueOf();if("string"===t)return e.format(rme[n]||"YYYY-MM-DD HH:mm:ss");if("string"===typeof t&&"string"!==t)return e.format(t);if("function"===typeof t)return t(e,n)}return e},lme=function e(t,n,i,r,o){var a={};return"undefined"===typeof window||"object"!==(0,Bt.Z)(t)||Qve(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach((function(s){var l,c=o?[o,s].flat(1):[s],u=vr(i,c)||"text",d="text";"string"===typeof u?d=u:u&&(d=u.valueType,l=u.dateFormat);var h=t[s];Qve(h)&&r||(!function(e){if(!1===ome(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!1!==ome(n)&&!1!==n.hasOwnProperty("isPrototypeOf")}(h)||Array.isArray(h)||ux().isDayjs(h)||ame(h)?Array.isArray(h)?a[s]=h.map((function(t,o){return ux().isDayjs(t)||ame(t)?sme(t,l||n,d):e(t,n,i,r,[s,"".concat(o)].flat(1))})):a[s]=sme(h,l||n,d):a[s]=e(h,n,i,r,[s]))})),a)},cme=function(){return cme=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},cme.apply(this,arguments)};function ume(e,t){var n;void 0===e&&(e={}),void 0===t&&(t={disabled:!1});var i=(0,v.useState)()[1],r="undefined"!==typeof window&&(null===(n=null===window||void 0===window?void 0:window.location)||void 0===n?void 0:n.search),o=(0,v.useMemo)((function(){return t.disabled?{}:new URLSearchParams(r||{})}),[t.disabled,r]),a=(0,v.useMemo)((function(){if(t.disabled)return{};if("undefined"===typeof window||!window.URL)return{};var n=[];o.forEach((function(e,t){n.push({key:t,value:e})})),n=n.reduce((function(e,t){return(e[t.key]=e[t.key]||[]).push(t),e}),{}),n=Object.keys(n).map((function(e){var t=n[e];return 1===t.length?[e,t[0].value]:[e,t.map((function(e){return e.value}))]}));var i=cme({},e);return n.forEach((function(t){var n=t[0],r=t[1];i[n]=function(e,t,n,i){if(!n)return t;var r=n[e],o=void 0===t?i[e]:t;if(r===Number)return Number(o);if(r===Boolean||"true"===t||"false"===t)return dme[o];if(Array.isArray(r))return r.find((function(e){return e==o}))||i[e];return o}(n,r,{},e)})),i}),[t.disabled,e,o]);function s(e){if("undefined"!==typeof window&&window.URL){var t=function(e){var t,n=new(0,("undefined"!==typeof window?window:{}).URL)(null===(t=null===window||void 0===window?void 0:window.location)||void 0===t?void 0:t.href);return Object.keys(e).forEach((function(t){var i=e[t];null!==i&&void 0!==i?Array.isArray(i)?(n.searchParams.delete(t),i.forEach((function(e){n.searchParams.append(t,e)}))):i instanceof Date?Number.isNaN(i.getTime())||n.searchParams.set(t,i.toISOString()):"object"===typeof i?n.searchParams.set(t,JSON.stringify(i)):n.searchParams.set(t,i):n.searchParams.delete(t)})),n}(e);window.location.search!==t.search&&window.history.replaceState({},"",t.toString()),o.toString()!==t.searchParams.toString()&&i({})}}(0,v.useEffect)((function(){t.disabled||"undefined"!==typeof window&&window.URL&&s(cme(cme({},e),a))}),[t.disabled,a]);return(0,v.useEffect)((function(){if(t.disabled)return function(){};if("undefined"===typeof window||!window.URL)return function(){};var e=function(){i({})};return window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[t.disabled]),[a,function(e){s(e)}]}var dme={true:!0,false:!1};var hme=function(e,t){for(var n=Object.assign({},e),i=0;i<t.length;i+=1){delete n[t[i]]}return n},fme=function(e){var t=zve(),n=ip.useFormInstance();if(!1===e.render)return null;var i=e.onSubmit,r=e.render,o=e.onReset,a=e.searchConfig,s=void 0===a?{}:a,l=e.submitButtonProps,c=e.resetButtonProps,u=void 0===c?{}:c,d=function(){n.submit(),null===i||void 0===i||i()},h=function(){n.resetFields(),null===o||void 0===o||o()},f=s.submitText,p=void 0===f?t.getMessage("tableForm.submit","\u63d0\u4ea4"):f,g=s.resetText,m=void 0===g?t.getMessage("tableForm.reset","\u91cd\u7f6e"):g,y=[];!1!==u&&y.push((0,v.createElement)(Jg,(0,Ft.Z)((0,Ft.Z)({},hme(u,["preventDefault"])),{},{key:"rest",onClick:function(e){var t;null!==u&&void 0!==u&&u.preventDefault||h(),null===u||void 0===u||null===(t=u.onClick)||void 0===t||t.call(u,e)}}),m)),!1!==l&&y.push((0,v.createElement)(Jg,(0,Ft.Z)((0,Ft.Z)({type:"primary"},hme(l||{},["preventDefault"])),{},{key:"submit",onClick:function(e){var t;null!==l&&void 0!==l&&l.preventDefault||d(),null===l||void 0===l||null===(t=l.onClick)||void 0===t||t.call(l,e)}}),p));var _=r?r((0,Ft.Z)((0,Ft.Z)({},e),{},{form:n,submit:d,reset:h}),y):y;return _?Array.isArray(_)?(null===_||void 0===_?void 0:_.length)<1?null:1===(null===_||void 0===_?void 0:_.length)?_[0]:(0,ES.jsx)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:_}):_:null},pme=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function gme(e){var t=Oo(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function vme(e){var t=e.r,n=e.g,i=e.b;return"#".concat(Ro(t,n,i,!1))}function mme(e,t,n){var i=n/100;return{r:(t.r-e.r)*i+e.r,g:(t.g-e.g)*i+e.g,b:(t.b-e.b)*i+e.b}}function yme(e,t,n){var i;return(i=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?i+=360:i>=360&&(i-=360),i}function _me(e,t,n){return 0===e.h&&0===e.s?e.s:((i=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(i=1),n&&5===t&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2)));var i}function bme(e,t,n){var i;return(i=n?e.v+.05*t:e.v-.15*t)>1&&(i=1),Number(i.toFixed(2))}function Cme(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=Fo(e),r=5;r>0;r-=1){var o=gme(i),a=vme(Fo({h:yme(o,r,!0),s:_me(o,r,!0),v:bme(o,r,!0)}));n.push(a)}n.push(vme(i));for(var s=1;s<=4;s+=1){var l=gme(i),c=vme(Fo({h:yme(l,s),s:_me(l,s),v:bme(l,s)}));n.push(c)}return"dark"===t.theme?pme.map((function(e){var i=e.index,r=e.opacity;return vme(mme(Fo(t.backgroundColor||"#141414"),Fo(n[i]),100*r))})):n}var Sme={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},wme={},kme={};Object.keys(Sme).forEach((function(e){wme[e]=Cme(Sme[e]),wme[e].primary=wme[e][5],kme[e]=Cme(Sme[e],{theme:"dark",backgroundColor:"#141414"}),kme[e].primary=kme[e][5]}));wme.red,wme.volcano,wme.gold,wme.orange,wme.yellow,wme.lime,wme.green,wme.cyan;var xme=wme.blue,Eme=(wme.geekblue,wme.purple,wme.magenta,wme.grey,wme.grey,(0,v.createContext)({}));function Tme(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Nme(e){return function(e){return Tme(e)!==(null===e||void 0===e?void 0:e.ownerDocument)}(e)?Tme(e):null}function Ime(e){return"object"===(0,Bt.Z)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===(0,Bt.Z)(e.icon)||"function"===typeof e.icon)}function Dme(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var i=e[n];if("class"===n)t.className=i,delete t.class;else t[n]=i;return t}),{})}function Lme(e,t,n){return n?v.createElement(e.tag,(0,Ft.Z)((0,Ft.Z)({key:t},Dme(e.attrs)),n),(e.children||[]).map((function(n,i){return Lme(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))):v.createElement(e.tag,(0,Ft.Z)({key:t},Dme(e.attrs)),(e.children||[]).map((function(n,i){return Lme(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})))}function Ome(e){return Cme(e)[0]}function Rme(e){return e?Array.isArray(e)?e:[e]:[]}var Ame=["icon","className","onClick","style","primaryColor","secondaryColor"],Mme={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Pme=function(e){var t=e.icon,n=e.className,i=e.onClick,r=e.style,o=e.primaryColor,a=e.secondaryColor,s=Ai(e,Ame),l=v.useRef(),c=Mme;if(o&&(c={primaryColor:o,secondaryColor:a||Ome(o)}),function(e){var t=(0,v.useContext)(Eme),n=t.csp,i=t.prefixCls,r="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";i&&(r=r.replace(/anticon/g,i)),(0,v.useEffect)((function(){var t=Nme(e.current);Jt(r,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])}(l),function(e,t){li(e,"[@ant-design/icons] ".concat(t))}(Ime(t),"icon should be icon definiton, but got ".concat(t)),!Ime(t))return null;var u=t;return u&&"function"===typeof u.icon&&(u=(0,Ft.Z)((0,Ft.Z)({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),Lme(u.icon,"svg-".concat(u.name),(0,Ft.Z)((0,Ft.Z)({className:n,onClick:i,style:r,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};Pme.displayName="IconReact",Pme.getTwoToneColors=function(){return(0,Ft.Z)({},Mme)},Pme.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Mme.primaryColor=t,Mme.secondaryColor=n||Ome(t),Mme.calculated=!!n};var Zme=Pme;function Fme(e){var t=Rme(e),n=(0,k.Z)(t,2),i=n[0],r=n[1];return Zme.setTwoToneColors({primaryColor:i,secondaryColor:r})}var Bme=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Fme(xme.primary);var Hme=v.forwardRef((function(e,t){var n,i=e.className,r=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Ai(e,Bme),d=v.useContext(Eme),h=d.prefixCls,f=void 0===h?"anticon":h,p=d.rootClassName,g=Ja()(p,f,(n={},(0,N.Z)(n,"".concat(f,"-").concat(r.name),!!r.name),(0,N.Z)(n,"".concat(f,"-spin"),!!o||"loading"===r.name),n),i),m=s;void 0===m&&l&&(m=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,_=Rme(c),b=(0,k.Z)(_,2),C=b[0],S=b[1];return v.createElement("span",Zt({role:"img","aria-label":r.name},u,{ref:t,tabIndex:m,onClick:l,className:g}),v.createElement(Zme,{icon:r,primaryColor:C,secondaryColor:S,style:y}))}));Hme.displayName="AntdIcon",Hme.getTwoToneColor=function(){var e=Zme.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Hme.setTwoToneColor=Fme;var zme=Hme,jme=function(e,t){return v.createElement(zme,Zt({},e,{ref:t,icon:px}))};var Vme=v.forwardRef(jme),Wme=function(e,t){return v.createElement(zme,Zt({},e,{ref:t,icon:pF}))};var Ume=v.forwardRef(Wme),Gme=["children","Wrapper"],Kme=["children","Wrapper"],Yme=(0,v.createContext)({grid:!1,colProps:void 0,rowProps:void 0}),qme=function(e){var t=(0,v.useMemo)((function(){return"object"===(0,Bt.Z)(e)?e:{grid:e}}),[e]),n=(0,v.useContext)(Yme),i=n.grid,r=n.colProps;return(0,v.useMemo)((function(){return function(e){var t=e.grid,n=e.rowProps,i=e.colProps;return{grid:!!t,RowWrapper:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.children,r=e.Wrapper,o=Ai(e,Gme);return t?(0,ES.jsx)(mZ,(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({gutter:8},n),o),{},{children:i})):r?(0,ES.jsx)(r,{children:i}):i},ColWrapper:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.children,r=e.Wrapper,o=Ai(e,Kme),a=(0,v.useMemo)((function(){var e=(0,Ft.Z)((0,Ft.Z)({},i),o);return"undefined"===typeof e.span&&"undefined"===typeof e.xs&&(e.xs=24),e}),[o]);return t?(0,ES.jsx)(yZ,(0,Ft.Z)((0,Ft.Z)({},a),{},{children:n})):r?(0,ES.jsx)(r,{children:n}):n}}}({grid:!(!i&&!t.grid),rowProps:null===t||void 0===t?void 0:t.rowProps,colProps:(null===t||void 0===t?void 0:t.colProps)||r,Wrapper:null===t||void 0===t?void 0:t.Wrapper})}),[null===t||void 0===t?void 0:t.Wrapper,t.grid,i,JSON.stringify([r,null===t||void 0===t?void 0:t.colProps,null===t||void 0===t?void 0:t.rowProps])])},$me=function(e,t){return v.createElement(zme,Zt({},e,{ref:t,icon:LE}))};var Xme=v.forwardRef($me),Qme=["creatorButtonProps","deleteIconProps","copyIconProps","itemContainerRender","itemRender","alwaysShowItemLabel","prefixCls","creatorRecord","action","actionGuard","children","actionRender","fields","meta","field","index","formInstance","originName","containerClassName","containerStyle","min","max","count"],Jme=function(e){e.creatorButtonProps;var t,n=e.deleteIconProps,i=e.copyIconProps,r=e.itemContainerRender,o=e.itemRender,a=e.alwaysShowItemLabel,s=e.prefixCls,l=(e.creatorRecord,e.action),c=(e.actionGuard,e.children),u=e.actionRender,d=e.fields,h=e.meta,f=e.field,p=e.index,g=e.formInstance,m=e.originName,y=e.containerClassName,_=e.containerStyle,b=e.min,C=e.max,S=e.count,w=Ai(e,Qme),x=(0,v.useContext)(jve).hashId,N=(0,v.useContext)(iye),I=(0,v.useRef)(!1),D=(0,v.useState)(!1),L=(0,k.Z)(D,2),O=L[0],R=L[1],A=(0,v.useState)(!1),M=(0,k.Z)(A,2),P=M[0],Z=M[1];(0,v.useEffect)((function(){return function(){I.current=!0}}),[]);var F=function(){return g.getFieldValue([N.listName,m,null===p||void 0===p?void 0:p.toString()].flat(1).filter((function(e){return null!==e&&void 0!==e})))},B={getCurrentRowData:F,setCurrentRowData:function(e){var t,n=_r((null===g||void 0===g||null===(t=g.getFieldsValue)||void 0===t?void 0:t.call(g))||{},[N.listName,m,null===p||void 0===p?void 0:p.toString()].flat(1).filter((function(e){return null!==e&&void 0!==e})),(0,Ft.Z)((0,Ft.Z)({},F()),e||{}));return g.setFieldsValue(n)}},H=function(e){return Array.isArray(e)?e:"function"===typeof e?[e]:Zi(e)}(c).map((function(e){return"function"===typeof e?null===e||void 0===e?void 0:e(f,p,(0,Ft.Z)((0,Ft.Z)({},l),B),S):e})).map((function(e,t){var n;return v.isValidElement(e)?v.cloneElement(e,(0,Ft.Z)({key:e.key||(null===e||void 0===e||null===(n=e.props)||void 0===n?void 0:n.name)||t},(null===e||void 0===e?void 0:e.props)||{})):e})),z=(0,v.useMemo)((function(){if(!1===i||C===S)return null;var e=i,t=e.Icon,n=void 0===t?Vme:t,r=e.tooltipText;return(0,ES.jsx)(Vf,{title:r,children:(0,ES.jsx)(Cs,{spinning:P,children:(0,ES.jsx)(n,{className:"".concat(s,"-action-icon action-copy ").concat(x),onClick:(0,T.Z)((0,E.Z)().mark((function e(){var t;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),t=null===g||void 0===g?void 0:g.getFieldValue([N.listName,m,f.name].filter((function(e){return void 0!==e})).flat(1)),e.next=4,l.add(t);case 4:Z(!1);case 5:case"end":return e.stop()}}),e)})))})})},"copy")}),[i,C,S,P,s,x,g,N.listName,f.name,m,l]),j=(0,v.useMemo)((function(){if(!1===n||b===S)return null;var e=n,t=e.Icon,i=void 0===t?Ume:t,r=e.tooltipText;return(0,ES.jsx)(Vf,{title:r,children:(0,ES.jsx)(Cs,{spinning:O,children:(0,ES.jsx)(i,{className:"".concat(s,"-action-icon action-remove ").concat(x),onClick:(0,T.Z)((0,E.Z)().mark((function e(){return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!0),e.next=3,l.remove(f.name);case 3:I.current||R(!1);case 4:case"end":return e.stop()}}),e)})))})})},"delete")}),[n,b,S,O,s,x,l,f.name]),V=(0,v.useMemo)((function(){return[z,j].filter((function(e){return null!==e&&void 0!==e}))}),[z,j]),W=(null===u||void 0===u?void 0:u(f,l,V,S))||V,U=W.length>0?(0,ES.jsx)("div",{className:"".concat(s,"-action ").concat(x),children:W}):null,G={name:w.name,field:f,index:p,record:null===g||void 0===g||null===(t=g.getFieldValue)||void 0===t?void 0:t.call(g,[N.listName,m,f.name].filter((function(e){return void 0!==e})).flat(1)),fields:d,operation:l,meta:h},K=qme().grid,Y=(null===r||void 0===r?void 0:r(H,G))||H,q=(null===o||void 0===o?void 0:o({listDom:(0,ES.jsx)("div",{className:"".concat(s,"-container ").concat(y," ").concat(x),style:(0,Ft.Z)({width:K?"100%":void 0},_),children:Y}),action:U},G))||(0,ES.jsxs)("div",{className:"".concat(s,"-item ").concat(x," \n ").concat(void 0===a&&"".concat(s,"-item-default"),"\n ").concat(a?"".concat(s,"-item-show-label"):""),style:{display:"flex",alignItems:"flex-end"},children:[(0,ES.jsx)("div",{className:"".concat(s,"-container ").concat(y," ").concat(x),style:(0,Ft.Z)({width:K?"100%":void 0},_),children:Y}),U]});return(0,ES.jsx)(iye.Provider,{value:(0,Ft.Z)((0,Ft.Z)({},f),{},{listName:[N.listName,m,f.name].filter((function(e){return void 0!==e})).flat(1)}),children:q})},eye=function(e){var t=zve(),n=e.creatorButtonProps,i=e.prefixCls,r=e.children,o=e.creatorRecord,a=e.action,s=e.fields,l=e.actionGuard,c=e.max,u=e.fieldExtraRender,d=e.meta,h=e.containerClassName,f=e.containerStyle,p=e.onAfterAdd,g=e.onAfterRemove,m=(0,v.useContext)(jve).hashId,y=(0,v.useRef)(new Map),_=(0,v.useState)(!1),b=(0,k.Z)(_,2),C=b[0],S=b[1],w=(0,v.useMemo)((function(){return s.map((function(e){var t,n,i;null!==(t=y.current)&&void 0!==t&&t.has(e.key.toString())||(null===(i=y.current)||void 0===i||i.set(e.key.toString(),$ve()));var r=null===(n=y.current)||void 0===n?void 0:n.get(e.key.toString());return(0,Ft.Z)((0,Ft.Z)({},e),{},{uuid:r})}))}),[s]),x=(0,v.useMemo)((function(){var e=(0,Ft.Z)({},a),t=w.length;return null!==l&&void 0!==l&&l.beforeAddRow?e.add=(0,T.Z)((0,E.Z)().mark((function e(){var n,i,r,o,s=arguments;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=s.length,i=new Array(n),r=0;r<n;r++)i[r]=s[r];return e.next=3,l.beforeAddRow.apply(l,i.concat([t]));case 3:if(!e.sent){e.next=8;break}return o=a.add.apply(a,i),null===p||void 0===p||p.apply(void 0,i.concat([t+1])),e.abrupt("return",o);case 8:return e.abrupt("return",!1);case 9:case"end":return e.stop()}}),e)}))):e.add=(0,T.Z)((0,E.Z)().mark((function e(){var n,i,r,o,s=arguments;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=s.length,i=new Array(n),r=0;r<n;r++)i[r]=s[r];return o=a.add.apply(a,i),null===p||void 0===p||p.apply(void 0,i.concat([t+1])),e.abrupt("return",o);case 4:case"end":return e.stop()}}),e)}))),null!==l&&void 0!==l&&l.beforeRemoveRow?e.remove=(0,T.Z)((0,E.Z)().mark((function e(){var n,i,r,o,s=arguments;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=s.length,i=new Array(n),r=0;r<n;r++)i[r]=s[r];return e.next=3,l.beforeRemoveRow.apply(l,i.concat([t]));case 3:if(!e.sent){e.next=8;break}return o=a.remove.apply(a,i),null===g||void 0===g||g.apply(void 0,i.concat([t-1])),e.abrupt("return",o);case 8:return e.abrupt("return",!1);case 9:case"end":return e.stop()}}),e)}))):e.remove=(0,T.Z)((0,E.Z)().mark((function e(){var n,i,r,o,s=arguments;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=s.length,i=new Array(n),r=0;r<n;r++)i[r]=s[r];return o=a.remove.apply(a,i),null===g||void 0===g||g.apply(void 0,i.concat([t-1])),e.abrupt("return",o);case 4:case"end":return e.stop()}}),e)}))),e}),[a,null===l||void 0===l?void 0:l.beforeAddRow,null===l||void 0===l?void 0:l.beforeRemoveRow,p,g,w.length]),N=(0,v.useMemo)((function(){if(!1===n||w.length===c)return null;var e=n||{},r=e.position,a=void 0===r?"bottom":r,s=e.creatorButtonText,l=void 0===s?t.getMessage("editableTable.action.add","\u6dfb\u52a0\u4e00\u884c\u6570\u636e"):s;return(0,ES.jsx)(Jg,(0,Ft.Z)((0,Ft.Z)({className:"".concat(i,"-creator-button-").concat(a," ").concat(m),type:"dashed",loading:C,block:!0,icon:(0,ES.jsx)(Xme,{})},hme(n||{},["position","creatorButtonText"])),{},{onClick:(0,T.Z)((0,E.Z)().mark((function e(){var t;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(!0),t=w.length,"top"===a&&(t=0),e.next=5,x.add(Wve(o)||{},t);case 5:S(!1);case 6:case"end":return e.stop()}}),e)}))),children:l}))}),[n,w.length,c,t,i,m,C,x,o]),I=(0,Ft.Z)({width:"max-content",maxWidth:"100%",minWidth:"100%"},f);return(0,ES.jsxs)("div",{style:I,className:h,children:[!1!==n&&"top"===(null===n||void 0===n?void 0:n.position)&&N,w.map((function(t,n){return(0,v.createElement)(Jme,(0,Ft.Z)((0,Ft.Z)({},e),{},{key:t.uuid,field:t,index:n,action:x,count:w.length}),r)})),u&&u(x,d),!1!==n&&"top"!==(null===n||void 0===n?void 0:n.position)&&N]})},tye=function(e){var t,n;return n={},(0,N.Z)(n,"".concat(e.antCls,"-pro"),(0,N.Z)({},"".concat(e.antCls,"-form:not(").concat(e.antCls,"-form-horizontal)"),(0,N.Z)({},e.componentCls,(0,N.Z)({},"&-item:not(".concat(e.componentCls,"-item-show-label)"),(0,N.Z)({},"".concat(e.antCls,"-form-item-label"),{display:"none"}))))),(0,N.Z)(n,e.componentCls,(t={maxWidth:"100%","&-item":{"&&-show-label":(0,N.Z)({},"".concat(e.antCls,"-form-item-label"),{display:"inline-block"}),"&&-default:first-child":{"div:first-of-type":(0,N.Z)({},"".concat(e.antCls,"-form-item"),(0,N.Z)({},"".concat(e.antCls,"-form-item-label"),{display:"inline-block"}))},"&&-default:not(:first-child)":{"div:first-of-type":(0,N.Z)({},"".concat(e.antCls,"-form-item"),(0,N.Z)({},"".concat(e.antCls,"-form-item-label"),{display:"none"}))}},"&-action":{display:"flex",height:"32px",marginBlockEnd:"24px",lineHeight:"32px"},"&-action-icon":{marginInlineStart:8,cursor:"pointer",transition:"color 0.3s ease-in-out","&:hover":{color:e.colorPrimaryTextHover}}},(0,N.Z)(t,"".concat(e.proComponentsCls,"-card ").concat(e.proComponentsCls,"-card-extra"),(0,N.Z)({},e.componentCls,{"&-action":{marginBlockEnd:0}})),(0,N.Z)(t,"&-creator-button-top",{marginBlockEnd:24}),t)),n};var nye=["actionRender","creatorButtonProps","label","alwaysShowItemLabel","tooltip","creatorRecord","itemRender","rules","itemContainerRender","fieldExtraRender","copyIconProps","children","deleteIconProps","actionRef","style","prefixCls","actionGuard","min","max","colProps","wrapperCol","rowProps","onAfterAdd","onAfterRemove","isValidateList","emptyListMessage","className"],iye=v.createContext({});function rye(e){var t=(0,v.useRef)(),n=(0,v.useContext)(Xa.ConfigContext),i=(0,v.useContext)(iye),r=n.getPrefixCls("pro-form-list"),o=zve(),a=e.actionRender,s=e.creatorButtonProps,l=e.label,c=e.alwaysShowItemLabel,u=e.tooltip,d=e.creatorRecord,h=e.itemRender,f=e.rules,p=e.itemContainerRender,g=e.fieldExtraRender,m=e.copyIconProps,y=void 0===m?{Icon:Vme,tooltipText:o.getMessage("copyThisLine","\u590d\u5236\u6b64\u884c")}:m,b=e.children,C=e.deleteIconProps,S=void 0===C?{Icon:Ume,tooltipText:o.getMessage("deleteThisLine","\u5220\u9664\u6b64\u884c")}:C,w=e.actionRef,k=e.style,x=e.prefixCls,E=e.actionGuard,T=e.min,N=e.max,I=e.colProps,D=e.wrapperCol,L=e.rowProps,O=e.onAfterAdd,R=e.onAfterRemove,A=e.isValidateList,M=void 0!==A&&A,P=e.emptyListMessage,Z=void 0===P?"\u5217\u8868\u4e0d\u80fd\u4e3a\u7a7a":P,F=e.className,B=Ai(e,nye),H=qme({colProps:I,rowProps:L}),z=H.ColWrapper,j=H.RowWrapper,V=(0,v.useContext)(Kve),W=(0,v.useMemo)((function(){return void 0===i.name?[B.name].flat(1):[i.name,B.name].flat(1)}),[i.name,B.name]);(0,v.useImperativeHandle)(w,(function(){return(0,Ft.Z)((0,Ft.Z)({},t.current),{},{get:function(e){return V.formRef.current.getFieldValue([].concat((0,_.Z)(W),[e]))},getList:function(){return V.formRef.current.getFieldValue((0,_.Z)(W))}})}),[W,V.formRef]),(0,v.useEffect)((function(){si(!!V.formRef,"ProFormList \u5fc5\u987b\u8981\u653e\u5230 ProForm \u4e2d,\u5426\u5219\u4f1a\u9020\u6210\u884c\u4e3a\u5f02\u5e38\u3002"),si(!!V.formRef,"Proformlist must be placed in ProForm, otherwise it will cause abnormal behavior.")}),[V.formRef]);var U=function(e){return Ove("ProFormList",(function(t){var n=(0,Ft.Z)((0,Ft.Z)({},t),{},{componentCls:".".concat(e)});return[tye(n)]}))}(r),G=U.wrapSSR,K=U.hashId;return V.formRef?G((0,ES.jsx)(z,{children:(0,ES.jsx)("div",{className:Ja()(r,K),style:k,children:(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({label:l,prefixCls:x,tooltip:u,style:k,required:null===f||void 0===f?void 0:f.some((function(e){return e.required})),wrapperCol:D,className:F},B),{},{name:M?W:void 0,rules:M?[{validator:function(e,t){return t&&0!==t.length?Promise.resolve():Promise.reject(new Error(Z))},required:!0}]:void 0,children:(0,ES.jsx)(ip.List,(0,Ft.Z)((0,Ft.Z)({rules:f},B),{},{name:W,children:function(e,n,i){return t.current=n,(0,ES.jsxs)(j,{children:[(0,ES.jsx)(eye,{name:W,originName:B.name,copyIconProps:y,deleteIconProps:S,formInstance:V.formRef.current,prefixCls:r,meta:i,fields:e,itemContainerRender:p,itemRender:h,fieldExtraRender:g,creatorButtonProps:s,creatorRecord:d,actionRender:a,action:n,actionGuard:E,alwaysShowItemLabel:c,min:T,max:N,count:e.length,onAfterAdd:function(e,t,n){M&&V.formRef.current.validateFields([W]),null===O||void 0===O||O(e,t,n)},onAfterRemove:function(e,t){M&&0===t&&V.formRef.current.validateFields([W]),null===R||void 0===R||R(e,t)},children:b}),(0,ES.jsx)(ip.ErrorList,{errors:i.errors})]})}}))}))})})):null}var oye=v.createContext({}),aye=v.createContext({mode:"edit"}),sye=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],lye=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],cye=function(e,t,n){return!0===e?t:Wve(e,t,n)},uye=function(e){return e?Array.isArray(e)?e:[e]:e};function dye(e){var t,n=e.children,i=e.contentRender,r=e.submitter,o=(e.fieldProps,e.formItemProps,e.groupProps,e.transformKey),a=e.formRef,s=e.onInit,l=e.form,c=e.loading,u=(e.formComponentType,e.extraUrlParams),d=void 0===u?{}:u,h=e.syncToUrl,f=e.onUrlSearchChange,p=e.onReset,g=e.omitNil,m=void 0===g||g,y=(e.isKeyPressSubmit,e.autoFocusFirstInput),_=void 0===y||y,b=e.grid,C=e.rowProps,S=e.colProps,w=Ai(e,sye),k=ip.useFormInstance(),x=((null===Xa||void 0===Xa||null===(t=Xa.useConfig)||void 0===t?void 0:t.call(Xa))||{componentSize:"middle"}).componentSize,I=(0,v.useRef)(l||k),D=qme({grid:b,rowProps:C}).RowWrapper,L=Wfe((function(){return k})),O=(0,v.useMemo)((function(){return{getFieldsFormatValue:function(e){var t;return o(null===(t=L())||void 0===t?void 0:t.getFieldsValue(e),m)},getFieldFormatValue:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=uye(t);if(!n)throw new Error("nameList is require");var i=null===(e=L())||void 0===e?void 0:e.getFieldValue(n),r=n?_r({},n,i):i;return vr(o(r,m,n),n)},getFieldFormatValueObject:function(e){var t,n=uye(e),i=null===(t=L())||void 0===t?void 0:t.getFieldValue(n),r=n?_r({},n,i):i;return o(r,m,n)},validateFieldsReturnFormatValue:function(){var e=(0,T.Z)((0,E.Z)().mark((function e(t){var n,i,r;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Array.isArray(t)||!t){e.next=2;break}throw new Error("nameList must be array");case 2:return e.next=4,null===(n=L())||void 0===n?void 0:n.validateFields(t);case 4:return i=e.sent,r=o(i,m),e.abrupt("return",r||{});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),formRef:I}}),[m,o]),R=(0,v.useMemo)((function(){return v.Children.toArray(n).map((function(e,t){return 0===t&&v.isValidElement(e)&&_?v.cloneElement(e,(0,Ft.Z)((0,Ft.Z)({},e.props),{},{autoFocus:_})):e}))}),[_,n]),A=(0,v.useMemo)((function(){return"boolean"!==typeof r&&r?r:{}}),[r]),M=(0,v.useMemo)((function(){if(!1!==r)return(0,ES.jsx)(fme,(0,Ft.Z)((0,Ft.Z)({},A),{},{onReset:function(){var e,t,n=o(null===(e=I.current)||void 0===e?void 0:e.getFieldsValue(),m);if(null===A||void 0===A||null===(t=A.onReset)||void 0===t||t.call(A,n),null===p||void 0===p||p(n),h){var i,r=Object.keys(o(null===(i=I.current)||void 0===i?void 0:i.getFieldsValue(),!1)).reduce((function(e,t){return(0,Ft.Z)((0,Ft.Z)({},e),{},(0,N.Z)({},t,n[t]||void 0))}),d);f(cye(h,r,"set"))}},submitButtonProps:(0,Ft.Z)({loading:c},A.submitButtonProps)}),"submitter")}),[r,A,c,o,m,p,h,d,f]),P=(0,v.useMemo)((function(){var e=b?(0,ES.jsx)(D,{children:R}):R;return i?i(e,M,I.current):e}),[b,D,R,i,M]),Z=Uve(e.initialValues);return(0,v.useEffect)((function(){if(!h&&e.initialValues&&Z&&!w.request){var t=Gve(e.initialValues,Z);si(t,"initialValues \u53ea\u5728 form \u521d\u59cb\u5316\u65f6\u751f\u6548\uff0c\u5982\u679c\u4f60\u9700\u8981\u5f02\u6b65\u52a0\u8f7d\u63a8\u8350\u4f7f\u7528 request\uff0c\u6216\u8005 initialValues ? <Form/> : null "),si(t,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? <Form/> : null ")}}),[e.initialValues]),(0,v.useImperativeHandle)(a,(function(){return(0,Ft.Z)((0,Ft.Z)({},I.current),O)}),[]),(0,v.useEffect)((function(){var e,t,n=o(null===(e=I.current)||void 0===e||null===(t=e.getFieldsValue)||void 0===t?void 0:t.call(e,!0),m);null===s||void 0===s||s(n,I.current)}),[]),(0,ES.jsx)(Kve.Provider,{value:O,children:(0,ES.jsx)(Xa,{componentSize:w.size||x,children:(0,ES.jsxs)(Yme.Provider,{value:{grid:b,colProps:S},children:[!1!==w.component&&(0,ES.jsx)("input",{type:"text",style:{display:"none"}}),P]})})})}var hye=0;function fye(e){var t=e.extraUrlParams,n=void 0===t?{}:t,i=e.syncToUrl,r=e.isKeyPressSubmit,o=e.syncToUrlAsImportant,a=void 0!==o&&o,s=e.syncToInitialValues,l=void 0===s||s,c=(e.children,e.contentRender,e.submitter,e.fieldProps),u=e.proFieldProps,d=e.formItemProps,h=e.groupProps,f=e.dateFormatter,p=void 0===f?"string":f,g=e.formRef,m=(e.onInit,e.form),y=e.formComponentType,_=(e.onReset,e.grid,e.rowProps,e.colProps,e.omitNil),b=void 0===_||_,C=e.request,S=e.params,w=e.initialValues,x=e.formKey,I=void 0===x?hye:x,D=(e.readonly,e.onLoadingChange),L=e.loading,O=Ai(e,lye),R=(0,v.useRef)({}),A=Sf(!1,{onChange:D,value:L}),M=(0,k.Z)(A,2),P=M[0],Z=M[1],F=ume({},{disabled:!i}),B=(0,k.Z)(F,2),H=B[0],z=B[1],j=(0,v.useRef)($ve());(0,v.useEffect)((function(){hye+=0}),[]);var V=function(e){var t=(0,v.useRef)(null),n=(0,v.useState)((function(){return e.proFieldKey?e.proFieldKey.toString():(Xve+=1).toString()})),i=(0,k.Z)(n,1)[0],r=(0,v.useRef)(i),o=function(){var n=(0,T.Z)((0,E.Z)().mark((function n(){var i,r,o,a;return(0,E.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null===(i=t.current)||void 0===i||i.abort(),o=new AbortController,t.current=o,n.next=5,Promise.race([null===(r=e.request)||void 0===r?void 0:r.call(e,e.params,e),new Promise((function(e,n){var i,r;null===(i=t.current)||void 0===i||null===(r=i.signal)||void 0===r||r.addEventListener("abort",(function(){n(new Error("aborted"))}))}))]);case 5:return a=n.sent,n.abrupt("return",a);case 7:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();(0,v.useEffect)((function(){return function(){Xve+=1}}),[]);var a=Bge([r.current,e.params],o,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),s=a.data,l=a.error;return[s||l]}({request:C,params:S,proFieldKey:I}),W=(0,k.Z)(V,1)[0],U=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-form"),G=Ove("ProForm",(function(e){return(0,N.Z)({},".".concat(U),(0,N.Z)({},"> div:not(".concat(e.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))})),K=G.wrapSSR,Y=G.hashId,q=(0,v.useState)((function(){return i?cye(i,H,"get"):{}})),$=(0,k.Z)(q,2),X=$[0],Q=$[1],J=(0,v.useRef)({}),ee=(0,v.useRef)({}),te=(0,v.useCallback)((function(e,t,n){return tme(lme(e,p,ee.current,t,n),J.current,t)}),[p]);(0,v.useEffect)((function(){l||Q({})}),[l]),(0,v.useEffect)((function(){i&&z((0,Ft.Z)((0,Ft.Z)({},H),n))}),[n,i]);var ne=(0,v.useMemo)((function(){if("undefined"!==typeof window)return y&&["DrawerForm"].includes(y)?function(e){return e.parentNode||document.body}:void 0}),[y]),ie=Wfe((0,T.Z)((0,E.Z)().mark((function e(){var t,r,o,a,s,l;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O.onFinish){e.next=2;break}return e.abrupt("return");case 2:if(!P){e.next=4;break}return e.abrupt("return");case 4:return Z(!0),e.prev=5,o=null===R||void 0===R||null===(t=R.current)||void 0===t||null===(r=t.getFieldsFormatValue)||void 0===r?void 0:r.call(t),e.next=9,O.onFinish(o);case 9:i&&(l=Object.keys(null===R||void 0===R||null===(a=R.current)||void 0===a||null===(s=a.getFieldsFormatValue)||void 0===s?void 0:s.call(a,void 0,!1)).reduce((function(e,t){var n;return(0,Ft.Z)((0,Ft.Z)({},e),{},(0,N.Z)({},t,null!==(n=o[t])&&void 0!==n?n:void 0))}),n),Object.keys(H).forEach((function(e){!1===l[e]||0===l[e]||l[e]||(l[e]=void 0)})),z(cye(i,l,"set"))),Z(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(5),console.log(e.t0),Z(!1);case 17:case"end":return e.stop()}}),e,null,[[5,13]])}))));return(0,v.useImperativeHandle)(g,(function(){return R.current}),[!W]),!W&&e.request?(0,ES.jsx)("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:(0,ES.jsx)(Cs,{})}):K((0,ES.jsx)(aye.Provider,{value:{mode:e.readonly?"read":"edit"},children:(0,ES.jsx)(Hve,{needDeps:!0,children:(0,ES.jsx)(oye.Provider,{value:{formRef:R,fieldProps:c,proFieldProps:u,formItemProps:d,groupProps:h,formComponentType:y,getPopupContainer:ne,formKey:j.current,setFieldValueType:function(e,t){var n=t.valueType,i=void 0===n?"text":n,r=t.dateFormat,o=t.transform;Array.isArray(e)&&(J.current=_r(J.current,e,o),ee.current=_r(ee.current,e,{valueType:i,dateFormat:r}))}},children:(0,ES.jsx)(iye.Provider,{value:{},children:(0,ES.jsx)(ip,(0,Ft.Z)((0,Ft.Z)({onKeyPress:function(e){var t;r&&("Enter"===e.key&&(null===(t=R.current)||void 0===t||t.submit()))},autoComplete:"off",form:m},hme(O,["labelWidth","autoFocusFirstInput"])),{},{initialValues:a?(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},w),W),X):(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},X),w),W),onValuesChange:function(e,t){var n;null===O||void 0===O||null===(n=O.onValuesChange)||void 0===n||n.call(O,te(e,!!b),te(t,!!b))},className:Ja()(e.className,U,Y),onFinish:ie,children:(0,ES.jsx)(dye,(0,Ft.Z)((0,Ft.Z)({transformKey:te,autoComplete:"off",loading:P,onUrlSearchChange:z},e),{},{formRef:R,initialValues:(0,Ft.Z)((0,Ft.Z)({},w),W)}))}))})})})}))}var pye=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","onOpenChange","visible","open"];function gye(e){var t,n,i,r,o=e.children,a=e.trigger,s=e.onVisibleChange,l=e.drawerProps,c=e.onFinish,u=e.submitTimeout,d=e.title,h=e.width,f=e.onOpenChange,p=e.visible,g=e.open,m=Ai(e,pye);si(!m.footer||!(null!==l&&void 0!==l&&l.footer),"DrawerForm \u662f\u4e00\u4e2a ProForm \u7684\u7279\u6b8a\u5e03\u5c40\uff0c\u5982\u679c\u60f3\u81ea\u5b9a\u4e49\u6309\u94ae\uff0c\u8bf7\u4f7f\u7528 submit.render \u81ea\u5b9a\u4e49\u3002");var y=(0,v.useContext)(Xa.ConfigContext),_=(0,v.useState)([]),b=(0,k.Z)(_,2)[1],C=(0,v.useState)(!1),S=(0,k.Z)(C,2),w=S[0],x=S[1],N=Sf(!!p,{value:g||p,onChange:f||s}),I=(0,k.Z)(N,2),D=I[0],L=I[1],O=(0,v.useRef)(null),R=(0,v.useCallback)((function(e){null===O.current&&e&&b([]),O.current=e}),[]),A=(0,v.useRef)(),M=(0,v.useCallback)((function(){var e,t,n,i=null!==(e=null!==(t=null===(n=m.formRef)||void 0===n?void 0:n.current)&&void 0!==t?t:m.form)&&void 0!==e?e:A.current;i&&null!==l&&void 0!==l&&l.destroyOnClose&&i.resetFields()}),[null===l||void 0===l?void 0:l.destroyOnClose,m.form,m.formRef]);(0,v.useEffect)((function(){D&&(g||p)&&(null===f||void 0===f||f(!0),null===s||void 0===s||s(!0))}),[p,D]),(0,v.useImperativeHandle)(m.formRef,(function(){return A.current}));var P=(0,v.useMemo)((function(){return a?v.cloneElement(a,(0,Ft.Z)((0,Ft.Z)({key:"trigger"},a.props),{},{onClick:function(){var e=(0,T.Z)((0,E.Z)().mark((function e(t){var n,i;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:L(!D),null===(n=a.props)||void 0===n||null===(i=n.onClick)||void 0===i||i.call(n,t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})):null}),[L,a,D]),Z=(0,v.useMemo)((function(){var e,t,n,i,r,o;return!1!==m.submitter&&epe()({searchConfig:{submitText:null!==(e=null===(t=y.locale)||void 0===t||null===(n=t.Modal)||void 0===n?void 0:n.okText)&&void 0!==e?e:"\u786e\u8ba4",resetText:null!==(i=null===(r=y.locale)||void 0===r||null===(o=r.Modal)||void 0===o?void 0:o.cancelText)&&void 0!==i?i:"\u53d6\u6d88"},resetButtonProps:{preventDefault:!0,disabled:u?w:void 0,onClick:function(e){var t;L(!1),null===l||void 0===l||null===(t=l.onClose)||void 0===t||t.call(l,e)}}},m.submitter)}),[m.submitter,null===(t=y.locale)||void 0===t||null===(n=t.Modal)||void 0===n?void 0:n.okText,null===(i=y.locale)||void 0===i||null===(r=i.Modal)||void 0===r?void 0:r.cancelText,u,w,L,l]),F=(0,v.useCallback)((function(e,t){return(0,ES.jsxs)(ES.Fragment,{children:[e,O.current&&t?(0,ES.jsx)(v.Fragment,{children:(0,kl.createPortal)(t,O.current)},"submitter"):t]})}),[]),B=Wfe(function(){var e=(0,T.Z)((0,E.Z)().mark((function e(t){var n,i,r;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null===c||void 0===c?void 0:c(t),u&&n instanceof Promise&&(x(!0),i=setTimeout((function(){return x(!1)}),u),n.finally((function(){clearTimeout(i),x(!1)}))),e.next=4,n;case 4:return(r=e.sent)&&L(!1),e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),H=Qfe(D,s);return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(jM,(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({title:d,width:h||800},l),H),{},{afterOpenChange:function(e){var t;e||M(),null===l||void 0===l||null===(t=l.afterOpenChange)||void 0===t||t.call(l,e)},onClose:function(e){var t;u&&w||(L(!1),null===l||void 0===l||null===(t=l.onClose)||void 0===t||t.call(l,e))},footer:!1!==m.submitter&&(0,ES.jsx)("div",{ref:R,style:{display:"flex",justifyContent:"flex-end"}}),children:(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsx)(fye,(0,Ft.Z)((0,Ft.Z)({formComponentType:"DrawerForm",layout:"vertical",formRef:A},m),{},{onInit:function(e,t){var n;m.formRef&&(m.formRef.current=t),null===m||void 0===m||null===(n=m.onInit)||void 0===n||n.call(m,e,t),A.current=t},submitter:Z,onFinish:function(){var e=(0,T.Z)((0,E.Z)().mark((function e(t){var n;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B(t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),contentRender:F,children:o}))})})),P]})}function vye(e){var t="".concat("valueType request plain renderFormItem render text formItemProps valueEnum"," ").concat("fieldProps isDefaultDom groupProps contentRender submitterProps submitter").split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach((function(i){t.includes(i)||(n[i]=e[i])})),n}var mye=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function yye(e){var t=Oo(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function _ye(e){var t=e.r,n=e.g,i=e.b;return"#".concat(Ro(t,n,i,!1))}function bye(e,t,n){var i=n/100;return{r:(t.r-e.r)*i+e.r,g:(t.g-e.g)*i+e.g,b:(t.b-e.b)*i+e.b}}function Cye(e,t,n){var i;return(i=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?i+=360:i>=360&&(i-=360),i}function Sye(e,t,n){return 0===e.h&&0===e.s?e.s:((i=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(i=1),n&&5===t&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2)));var i}function wye(e,t,n){var i;return(i=n?e.v+.05*t:e.v-.15*t)>1&&(i=1),Number(i.toFixed(2))}function kye(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=Fo(e),r=5;r>0;r-=1){var o=yye(i),a=_ye(Fo({h:Cye(o,r,!0),s:Sye(o,r,!0),v:wye(o,r,!0)}));n.push(a)}n.push(_ye(i));for(var s=1;s<=4;s+=1){var l=yye(i),c=_ye(Fo({h:Cye(l,s),s:Sye(l,s),v:wye(l,s)}));n.push(c)}return"dark"===t.theme?mye.map((function(e){var i=e.index,r=e.opacity;return _ye(bye(Fo(t.backgroundColor||"#141414"),Fo(n[i]),100*r))})):n}var xye={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Eye={},Tye={};Object.keys(xye).forEach((function(e){Eye[e]=kye(xye[e]),Eye[e].primary=Eye[e][5],Tye[e]=kye(xye[e],{theme:"dark",backgroundColor:"#141414"}),Tye[e].primary=Tye[e][5]}));Eye.red,Eye.volcano,Eye.gold,Eye.orange,Eye.yellow,Eye.lime,Eye.green,Eye.cyan;var Nye=Eye.blue,Iye=(Eye.geekblue,Eye.purple,Eye.magenta,Eye.grey,Eye.grey,(0,v.createContext)({}));function Dye(e){return"object"===(0,Bt.Z)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===(0,Bt.Z)(e.icon)||"function"===typeof e.icon)}function Lye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var i=e[n];if("class"===n)t.className=i,delete t.class;else t[n]=i;return t}),{})}function Oye(e,t,n){return n?v.createElement(e.tag,(0,Ft.Z)((0,Ft.Z)({key:t},Lye(e.attrs)),n),(e.children||[]).map((function(n,i){return Oye(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))):v.createElement(e.tag,(0,Ft.Z)({key:t},Lye(e.attrs)),(e.children||[]).map((function(n,i){return Oye(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})))}function Rye(e){return kye(e)[0]}function Aye(e){return e?Array.isArray(e)?e:[e]:[]}var Mye=["icon","className","onClick","style","primaryColor","secondaryColor"],Pye={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Zye=function(e){var t=e.icon,n=e.className,i=e.onClick,r=e.style,o=e.primaryColor,a=e.secondaryColor,s=Ai(e,Mye),l=v.useRef(),c=Pye;if(o&&(c={primaryColor:o,secondaryColor:a||Rye(o)}),function(e){var t=(0,v.useContext)(Iye),n=t.csp,i=t.prefixCls,r="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";i&&(r=r.replace(/anticon/g,i)),(0,v.useEffect)((function(){var t=Nme(e.current);Jt(r,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])}(l),function(e,t){li(e,"[@ant-design/icons] ".concat(t))}(Dye(t),"icon should be icon definiton, but got ".concat(t)),!Dye(t))return null;var u=t;return u&&"function"===typeof u.icon&&(u=(0,Ft.Z)((0,Ft.Z)({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),Oye(u.icon,"svg-".concat(u.name),(0,Ft.Z)((0,Ft.Z)({className:n,onClick:i,style:r,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};Zye.displayName="IconReact",Zye.getTwoToneColors=function(){return(0,Ft.Z)({},Pye)},Zye.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Pye.primaryColor=t,Pye.secondaryColor=n||Rye(t),Pye.calculated=!!n};var Fye=Zye;function Bye(e){var t=Aye(e),n=(0,k.Z)(t,2),i=n[0],r=n[1];return Fye.setTwoToneColors({primaryColor:i,secondaryColor:r})}var Hye=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Bye(Nye.primary);var zye=v.forwardRef((function(e,t){var n,i=e.className,r=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Ai(e,Hye),d=v.useContext(Iye),h=d.prefixCls,f=void 0===h?"anticon":h,p=d.rootClassName,g=Ja()(p,f,(n={},(0,N.Z)(n,"".concat(f,"-").concat(r.name),!!r.name),(0,N.Z)(n,"".concat(f,"-spin"),!!o||"loading"===r.name),n),i),m=s;void 0===m&&l&&(m=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,_=Aye(c),b=(0,k.Z)(_,2),C=b[0],S=b[1];return v.createElement("span",Zt({role:"img","aria-label":r.name},u,{ref:t,tabIndex:m,onClick:l,className:g}),v.createElement(Fye,{icon:r,primaryColor:C,secondaryColor:S,style:y}))}));zye.displayName="AntdIcon",zye.getTwoToneColor=function(){var e=Fye.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},zye.setTwoToneColor=Bye;var jye=zye,Vye=function(e,t){return v.createElement(jye,Zt({},e,{ref:t,icon:Mu}))};var Wye=v.forwardRef(Vye),Uye=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Gye(e){var t=Oo(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Kye(e){var t=e.r,n=e.g,i=e.b;return"#".concat(Ro(t,n,i,!1))}function Yye(e,t,n){var i=n/100;return{r:(t.r-e.r)*i+e.r,g:(t.g-e.g)*i+e.g,b:(t.b-e.b)*i+e.b}}function qye(e,t,n){var i;return(i=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?i+=360:i>=360&&(i-=360),i}function $ye(e,t,n){return 0===e.h&&0===e.s?e.s:((i=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(i=1),n&&5===t&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2)));var i}function Xye(e,t,n){var i;return(i=n?e.v+.05*t:e.v-.15*t)>1&&(i=1),Number(i.toFixed(2))}function Qye(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=Fo(e),r=5;r>0;r-=1){var o=Gye(i),a=Kye(Fo({h:qye(o,r,!0),s:$ye(o,r,!0),v:Xye(o,r,!0)}));n.push(a)}n.push(Kye(i));for(var s=1;s<=4;s+=1){var l=Gye(i),c=Kye(Fo({h:qye(l,s),s:$ye(l,s),v:Xye(l,s)}));n.push(c)}return"dark"===t.theme?Uye.map((function(e){var i=e.index,r=e.opacity;return Kye(Yye(Fo(t.backgroundColor||"#141414"),Fo(n[i]),100*r))})):n}var Jye={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},e_e={},t_e={};Object.keys(Jye).forEach((function(e){e_e[e]=Qye(Jye[e]),e_e[e].primary=e_e[e][5],t_e[e]=Qye(Jye[e],{theme:"dark",backgroundColor:"#141414"}),t_e[e].primary=t_e[e][5]}));e_e.red,e_e.volcano,e_e.gold,e_e.orange,e_e.yellow,e_e.lime,e_e.green,e_e.cyan;var n_e=e_e.blue,i_e=(e_e.geekblue,e_e.purple,e_e.magenta,e_e.grey,e_e.grey,(0,v.createContext)({}));function r_e(e){return"object"===(0,Bt.Z)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===(0,Bt.Z)(e.icon)||"function"===typeof e.icon)}function o_e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var i=e[n];if("class"===n)t.className=i,delete t.class;else t[n]=i;return t}),{})}function a_e(e,t,n){return n?v.createElement(e.tag,(0,Ft.Z)((0,Ft.Z)({key:t},o_e(e.attrs)),n),(e.children||[]).map((function(n,i){return a_e(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))):v.createElement(e.tag,(0,Ft.Z)({key:t},o_e(e.attrs)),(e.children||[]).map((function(n,i){return a_e(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})))}function s_e(e){return Qye(e)[0]}function l_e(e){return e?Array.isArray(e)?e:[e]:[]}var c_e=["icon","className","onClick","style","primaryColor","secondaryColor"],u_e={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var d_e=function(e){var t=e.icon,n=e.className,i=e.onClick,r=e.style,o=e.primaryColor,a=e.secondaryColor,s=Ai(e,c_e),l=v.useRef(),c=u_e;if(o&&(c={primaryColor:o,secondaryColor:a||s_e(o)}),function(e){var t=(0,v.useContext)(i_e),n=t.csp,i=t.prefixCls,r="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";i&&(r=r.replace(/anticon/g,i)),(0,v.useEffect)((function(){var t=Nme(e.current);Jt(r,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])}(l),function(e,t){li(e,"[@ant-design/icons] ".concat(t))}(r_e(t),"icon should be icon definiton, but got ".concat(t)),!r_e(t))return null;var u=t;return u&&"function"===typeof u.icon&&(u=(0,Ft.Z)((0,Ft.Z)({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),a_e(u.icon,"svg-".concat(u.name),(0,Ft.Z)((0,Ft.Z)({className:n,onClick:i,style:r,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};d_e.displayName="IconReact",d_e.getTwoToneColors=function(){return(0,Ft.Z)({},u_e)},d_e.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;u_e.primaryColor=t,u_e.secondaryColor=n||s_e(t),u_e.calculated=!!n};var h_e=d_e;function f_e(e){var t=l_e(e),n=(0,k.Z)(t,2),i=n[0],r=n[1];return h_e.setTwoToneColors({primaryColor:i,secondaryColor:r})}var p_e=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];f_e(n_e.primary);var g_e=v.forwardRef((function(e,t){var n,i=e.className,r=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Ai(e,p_e),d=v.useContext(i_e),h=d.prefixCls,f=void 0===h?"anticon":h,p=d.rootClassName,g=Ja()(p,f,(n={},(0,N.Z)(n,"".concat(f,"-").concat(r.name),!!r.name),(0,N.Z)(n,"".concat(f,"-spin"),!!o||"loading"===r.name),n),i),m=s;void 0===m&&l&&(m=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,_=l_e(c),b=(0,k.Z)(_,2),C=b[0],S=b[1];return v.createElement("span",Zt({role:"img","aria-label":r.name},u,{ref:t,tabIndex:m,onClick:l,className:g}),v.createElement(h_e,{icon:r,primaryColor:C,secondaryColor:S,style:y}))}));g_e.displayName="AntdIcon",g_e.getTwoToneColor=function(){var e=h_e.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},g_e.setTwoToneColor=f_e;var v_e=g_e,m_e=function(e,t){return v.createElement(v_e,Zt({},e,{ref:t,icon:Iu}))};var y_e=v.forwardRef(m_e),__e=function(e,t){return v.createElement(v_e,Zt({},e,{ref:t,icon:lI}))};var b_e=v.forwardRef(__e),C_e=function(e){var t,n,i,r;return(0,N.Z)({},e.componentCls,(r={display:"inline-flex",gap:"4px",alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:e.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:e.colorBgTextHover},"&-active":(0,N.Z)({paddingBlock:0,paddingInline:8,backgroundColor:e.colorBgTextHover},"&".concat(e.componentCls,"-allow-clear:hover:not(").concat(e.componentCls,"-disabled)"),(t={},(0,N.Z)(t,"".concat(e.componentCls,"-arrow"),{display:"none"}),(0,N.Z)(t,"".concat(e.componentCls,"-close"),{display:"inline-flex"}),t))},(0,N.Z)(r,"".concat(e.antCls,"-select"),(0,N.Z)({},"".concat(e.antCls,"-select-clear"),{borderRadius:"50%"})),(0,N.Z)(r,"".concat(e.antCls,"-picker"),(0,N.Z)({},"".concat(e.antCls,"-picker-clear"),{borderRadius:"50%"})),(0,N.Z)(r,"&-icon",(n={color:e.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},(0,N.Z)(n,"&".concat(e.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:e.colorTextPlaceholder,borderRadius:"50%"}),(0,N.Z)(n,":hover",{color:e.colorIconHover}),n)),(0,N.Z)(r,"&-disabled",(0,N.Z)({color:e.colorTextPlaceholder,cursor:"not-allowed"},"".concat(e.componentCls,"-icon"),{color:e.colorTextPlaceholder})),(0,N.Z)(r,"&-small",(i={height:"24px",paddingBlock:0,paddingInline:4,fontSize:e.fontSizeSM,lineHeight:"24px"},(0,N.Z)(i,"&".concat(e.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),(0,N.Z)(i,"".concat(e.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),(0,N.Z)(i,"".concat(e.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"}),i)),(0,N.Z)(r,"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(e.lineWidth,"px solid ").concat(e.colorBorder),borderRadius:"@border-radius-base"}),(0,N.Z)(r,"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),(0,N.Z)(r,"&-bordered&-active",{backgroundColor:e.colorBgContainer}),r))};var S_e=function(e,t){var n,i,r,o,a=e.label,s=e.onClear,l=e.value,c=e.disabled,u=e.onLabelClick,d=e.ellipsis,h=e.placeholder,f=e.className,p=e.formatter,g=e.bordered,m=e.style,y=e.downIcon,_=e.allowClear,b=void 0===_||_,C=((null===Xa||void 0===Xa||null===(n=Xa.useConfig)||void 0===n?void 0:n.call(Xa))||{componentSize:"middle"}).componentSize,S=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-core-field-label"),w=function(e){return Ove("FieldLabel",(function(t){var n=(0,Ft.Z)((0,Ft.Z)({},t),{},{componentCls:".".concat(e)});return[C_e(n)]}))}(S),k=w.wrapSSR,x=w.hashId,E=zve(),T=(0,v.useRef)(null),I=(0,v.useRef)(null);(0,v.useImperativeHandle)(t,(function(){return{labelRef:I,clearRef:T}}));var D=function(e){return p?p(e):Array.isArray(e)?e.join(","):e};return k((0,ES.jsxs)("span",{className:Ja()(S,x,"".concat(S,"-").concat(null!==(i=null!==(r=e.size)&&void 0!==r?r:C)&&void 0!==i?i:"middle"),(o={},(0,N.Z)(o,"".concat(S,"-active"),!!l||0===l),(0,N.Z)(o,"".concat(S,"-disabled"),c),(0,N.Z)(o,"".concat(S,"-bordered"),g),(0,N.Z)(o,"".concat(S,"-allow-clear"),b),o),f),style:m,ref:I,onClick:function(){var t;null===e||void 0===e||null===(t=e.onClick)||void 0===t||t.call(e)},children:[function(e,t){if(void 0!==t&&null!==t&&""!==t&&(!Array.isArray(t)||t.length)){var n,i,r=e?(0,ES.jsxs)("span",{onClick:function(){null===u||void 0===u||u()},className:"".concat(S,"-text"),children:[e,": "]}):"",o=D(t);if(!d)return(0,ES.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[r,D(t)]});var a=function(){var e=Array.isArray(t)&&t.length>1,n=E.getMessage("form.lightFilter.itemUnit","\u9879");return"string"===typeof o&&o.length>41&&e?"...".concat(t.length).concat(n):""}();return(0,ES.jsxs)("span",{title:"string"===typeof o?o:void 0,style:{display:"inline-flex",alignItems:"center"},children:[r,(0,ES.jsx)("span",{style:{paddingInlineStart:4},children:"string"===typeof o?null===o||void 0===o||null===(n=o.toString())||void 0===n||null===(i=n.substr)||void 0===i?void 0:i.call(n,0,41):o}),a]})}return e||h}(a,l),(l||0===l)&&b&&(0,ES.jsx)(y_e,{role:"button",title:E.getMessage("form.lightFilter.clear","\u6e05\u9664"),className:Ja()("".concat(S,"-icon"),x,"".concat(S,"-close")),onClick:function(e){c||null===s||void 0===s||s(),e.stopPropagation()},ref:T}),!1!==y?null!==y&&void 0!==y?y:(0,ES.jsx)(b_e,{className:Ja()("".concat(S,"-icon"),x,"".concat(S,"-arrow"))}):null]}))},w_e=v.forwardRef(S_e),k_e=v.createContext(null),x_e="__RC_CASCADER_SPLIT__",E_e="SHOW_PARENT",T_e="SHOW_CHILD";function N_e(e){return e.join(x_e)}function I_e(e){return e.map(N_e)}function D_e(e,t){var n,i;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null===(i=e[t.children])||void 0===i?void 0:i.length)}function L_e(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function O_e(e,t,n){var i=new Set(e),r=t();return e.filter((function(e){var t=r[e],o=t?t.parent:null,a=t?t.children:null;return n===T_e?!(a&&a.some((function(e){return e.key&&i.has(e.key)}))):!(o&&!o.node.disabled&&i.has(o.key))}))}function R_e(e,t,n){for(var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=t,o=[],a=function(t){var a,s,l,c=e[t],u=null===(a=r)||void 0===a?void 0:a.findIndex((function(e){var t=e[n.value];return i?String(t)===String(c):t===c})),d=-1!==u?null===(s=r)||void 0===s?void 0:s[u]:null;o.push({value:null!==(l=null===d||void 0===d?void 0:d[n.value])&&void 0!==l?l:c,index:u,option:d}),r=null===d||void 0===d?void 0:d[n.children]},s=0;s<e.length;s+=1)a(s);return o}function A_e(e){var t=v.useRef();t.current=e;var n=v.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var M_e="__rc_cascader_search_mark__",P_e=function(e,t,n){var i=n.label;return t.some((function(t){return String(t[i]).toLowerCase().includes(e.toLowerCase())}))},Z_e=function(e,t,n,i){return t.map((function(e){return e[i.label]})).join(" / ")};function F_e(e){var t,n=e.prefixCls,i=e.checked,r=e.halfChecked,o=e.disabled,a=e.onClick,s=v.useContext(k_e).checkable,l="boolean"!==typeof s?s:null;return v.createElement("span",{className:Ja()("".concat(n),(t={},(0,N.Z)(t,"".concat(n,"-checked"),i),(0,N.Z)(t,"".concat(n,"-indeterminate"),!i&&r),(0,N.Z)(t,"".concat(n,"-disabled"),o),t)),onClick:a},l)}var B_e="__cascader_fix_label__";function H_e(e){var t=e.prefixCls,n=e.multiple,i=e.options,r=e.activeValue,o=e.prevValuePath,a=e.onToggleOpen,s=e.onSelect,l=e.onActive,c=e.checkedSet,u=e.halfCheckedSet,d=e.loadingKeys,h=e.isSelectable,f="".concat(t,"-menu"),p="".concat(t,"-menu-item"),g=v.useContext(k_e),m=g.fieldNames,y=g.changeOnSelect,b=g.expandTrigger,C=g.expandIcon,S=g.loadingIcon,w=g.dropdownMenuColumnStyle,k="hover"===b,x=v.useMemo((function(){return i.map((function(e){var t,n=e.disabled,i=e[M_e],r=null!==(t=e[B_e])&&void 0!==t?t:e[m.label],a=e[m.value],s=D_e(e,m),l=i?i.map((function(e){return e[m.value]})):[].concat((0,_.Z)(o),[a]),h=N_e(l);return{disabled:n,label:r,value:a,isLeaf:s,isLoading:d.includes(h),checked:c.has(h),halfChecked:u.has(h),option:e,fullPath:l,fullPathKey:h}}))}),[i,c,m,u,d,o]);return v.createElement("ul",{className:f,role:"menu"},x.map((function(e){var i,o,c=e.disabled,u=e.label,d=e.value,f=e.isLeaf,g=e.isLoading,m=e.checked,_=e.halfChecked,b=e.option,x=e.fullPath,E=e.fullPathKey,T=function(){c||k&&f||l(x)},I=function(){h(b)&&s(x,f)};return"string"===typeof b.title?o=b.title:"string"===typeof u&&(o=u),v.createElement("li",{key:E,className:Ja()(p,(i={},(0,N.Z)(i,"".concat(p,"-expand"),!f),(0,N.Z)(i,"".concat(p,"-active"),r===d),(0,N.Z)(i,"".concat(p,"-disabled"),c),(0,N.Z)(i,"".concat(p,"-loading"),g),i)),style:w,role:"menuitemcheckbox",title:o,"aria-checked":m,"data-path-key":E,onClick:function(){T(),n&&!f||I()},onDoubleClick:function(){y&&a(!1)},onMouseEnter:function(){k&&T()},onMouseDown:function(e){e.preventDefault()}},n&&v.createElement(F_e,{prefixCls:"".concat(t,"-checkbox"),checked:m,halfChecked:_,disabled:c,onClick:function(e){e.stopPropagation(),I()}}),v.createElement("div",{className:"".concat(p,"-content")},u),!g&&C&&!f&&v.createElement("div",{className:"".concat(p,"-expand-icon")},C),g&&S&&v.createElement("div",{className:"".concat(p,"-loading-icon")},S))})))}var z_e=function(e,t,n,i,r,o){var a=oN(),s=a.direction,l=a.searchValue,c=a.toggleOpen,u=a.open,d="rtl"===s,h=v.useMemo((function(){for(var e=-1,r=t,o=[],a=[],s=i.length,l=function(t){var s=r.findIndex((function(e){return e[n.value]===i[t]}));if(-1===s)return"break";e=s,o.push(e),a.push(i[t]),r=r[e][n.children]},c=0;c<s&&r;c+=1){if("break"===l(c))break}for(var u=t,d=0;d<o.length-1;d+=1)u=u[o[d]][n.children];return[a,e,u]}),[i,n,t]),f=(0,k.Z)(h,3),p=f[0],g=f[1],m=f[2],y=function(e){r(e)},b=function(){if(p.length>1){var e=p.slice(0,-1);y(e)}else c(!1)},C=function(){var e,t=((null===(e=m[g])||void 0===e?void 0:e[n.children])||[]).find((function(e){return!e.disabled}));if(t){var i=[].concat((0,_.Z)(p),[t[n.value]]);y(i)}};v.useImperativeHandle(e,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case vv.UP:case vv.DOWN:var i=0;t===vv.UP?i=-1:t===vv.DOWN&&(i=1),0!==i&&function(e){var t=m.length,i=g;-1===i&&e<0&&(i=t);for(var r=0;r<t;r+=1){var o=m[i=(i+e+t)%t];if(o&&!o.disabled){var a=o[n.value],s=p.slice(0,-1).concat(a);return void y(s)}}}(i);break;case vv.LEFT:d?C():b();break;case vv.RIGHT:d?b():C();break;case vv.BACKSPACE:l||b();break;case vv.ENTER:if(p.length){var r=m[g],a=(null===r||void 0===r?void 0:r[M_e])||[];a.length?o(a.map((function(e){return e[n.value]})),a[a.length-1]):o(p,m[g])}break;case vv.ESC:c(!1),u&&e.stopPropagation()}},onKeyUp:function(){}}}))},j_e=v.forwardRef((function(e,t){var n,i,r,o,a=oN(),s=a.prefixCls,l=a.multiple,c=a.searchValue,u=a.toggleOpen,d=a.notFoundContent,h=a.direction,f=v.useRef(),p="rtl"===h,g=v.useContext(k_e),m=g.options,y=g.values,b=g.halfValues,C=g.fieldNames,S=g.changeOnSelect,w=g.onSelect,x=g.searchOptions,E=g.dropdownPrefixCls,T=g.loadData,I=g.expandTrigger,D=E||s,L=v.useState([]),O=(0,k.Z)(L,2),R=O[0],A=O[1];v.useEffect((function(){R.length&&R.forEach((function(e){var t=R_e(e.split(x_e),m,C,!0).map((function(e){return e.option})),n=t[t.length-1];(!n||n[C.children]||D_e(n,C))&&A((function(t){return t.filter((function(t){return t!==e}))}))}))}),[m,R,C]);var M=v.useMemo((function(){return new Set(I_e(y))}),[y]),P=v.useMemo((function(){return new Set(I_e(b))}),[b]),Z=function(){var e=oN(),t=e.multiple,n=e.open,i=v.useContext(k_e).values,r=v.useState([]),o=(0,k.Z)(r,2),a=o[0],s=o[1];return v.useEffect((function(){if(n&&!t){var e=i[0];s(e||[])}}),[n]),[a,s]}(),F=(0,k.Z)(Z,2),B=F[0],H=F[1],z=function(e){H(e),function(e){if(T&&!c){var t=R_e(e,m,C).map((function(e){return e.option})),n=t[t.length-1];if(n&&!D_e(n,C)){var i=N_e(e);A((function(e){return[].concat((0,_.Z)(e),[i])})),T(t)}}}(e)},j=function(e){var t=e.disabled,n=D_e(e,C);return!t&&(n||S||l)},V=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];w(e),!l&&(t||S&&("hover"===I||n))&&u(!1)},W=v.useMemo((function(){return c?x:m}),[c,x,m]),U=v.useMemo((function(){for(var e=[{options:W}],t=W,n=function(n){var i=B[n],r=t.find((function(e){return e[C.value]===i})),o=null===r||void 0===r?void 0:r[C.children];if(!(null===o||void 0===o?void 0:o.length))return"break";t=o,e.push({options:o})},i=0;i<B.length;i+=1){if("break"===n(i))break}return e}),[W,B,C]);z_e(t,W,C,B,z,(function(e,t){j(t)&&V(e,D_e(t,C),!0)})),v.useEffect((function(){for(var e=0;e<B.length;e+=1){var t,n=N_e(B.slice(0,e+1)),i=null===(t=f.current)||void 0===t?void 0:t.querySelector('li[data-path-key="'.concat(n.replace(/\\{0,2}"/g,'\\"'),'"]'));i&&L_e(i)}}),[B]);var G=!(null===(n=U[0])||void 0===n||null===(i=n.options)||void 0===i?void 0:i.length),K=[(r={},(0,N.Z)(r,C.value,"__EMPTY__"),(0,N.Z)(r,B_e,d),(0,N.Z)(r,"disabled",!0),r)],Y=(0,Ft.Z)((0,Ft.Z)({},e),{},{multiple:!G&&l,onSelect:V,onActive:z,onToggleOpen:u,checkedSet:M,halfCheckedSet:P,loadingKeys:R,isSelectable:j}),q=(G?[{options:K}]:U).map((function(e,t){var n=B.slice(0,t),i=B[t];return v.createElement(H_e,Zt({key:t},Y,{prefixCls:D,options:e.options,prevValuePath:n,activeValue:i}))}));return v.createElement("div",{className:Ja()("".concat(D,"-menus"),(o={},(0,N.Z)(o,"".concat(D,"-menu-empty"),G),(0,N.Z)(o,"".concat(D,"-rtl"),p),o)),ref:f},q)})),V_e=j_e;var W_e=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function U_e(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((function(e){return Array.isArray(e)?e:[e]})):[]}var G_e=v.forwardRef((function(e,t){var n=e.id,i=e.prefixCls,r=void 0===i?"rc-cascader":i,o=e.fieldNames,a=e.defaultValue,s=e.value,l=e.changeOnSelect,c=e.onChange,u=e.displayRender,d=e.checkable,h=e.searchValue,f=e.onSearch,p=e.showSearch,g=e.expandTrigger,m=e.options,y=e.dropdownPrefixCls,b=e.loadData,C=e.popupVisible,S=e.open,w=e.popupClassName,x=e.dropdownClassName,E=e.dropdownMenuColumnStyle,T=e.popupPlacement,I=e.placement,D=e.onDropdownVisibleChange,L=e.onPopupVisibleChange,O=e.expandIcon,R=void 0===O?">":O,A=e.loadingIcon,M=e.children,P=e.dropdownMatchSelectWidth,Z=void 0!==P&&P,F=e.showCheckedStrategy,B=void 0===F?E_e:F,H=Ai(e,W_e),z=pN(n),j=!!d,V=Sf(a,{value:s,postState:U_e}),W=(0,k.Z)(V,2),U=W[0],G=W[1],K=v.useMemo((function(){return function(e){var t=e||{},n=t.label,i=t.value||"value";return{label:n||"label",value:i,key:i,children:t.children||"children"}}(o)}),[JSON.stringify(o)]),Y=v.useMemo((function(){return m||[]}),[m]),q=function(e,t){var n=v.useRef({options:null,info:null}),i=v.useCallback((function(){return n.current.options!==e&&(n.current.options=e,n.current.info=_O(e,{fieldNames:t,initWrapper:function(e){return(0,Ft.Z)((0,Ft.Z)({},e),{},{pathKeyEntities:{}})},processEntity:function(e,n){var i=e.nodes.map((function(e){return e[t.value]})).join(x_e);n.pathKeyEntities[i]=e,e.key=i}})),n.current.info.pathKeyEntities}),[t,e]);return i}(Y,K),$=v.useCallback((function(e){var t=q();return e.map((function(e){return t[e].nodes.map((function(e){return e[K.value]}))}))}),[q,K]),X=Sf("",{value:h,postState:function(e){return e||""}}),Q=(0,k.Z)(X,2),J=Q[0],ee=Q[1],te=function(e){return v.useMemo((function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&"object"===(0,Bt.Z)(e)&&(t=(0,Ft.Z)((0,Ft.Z)({},t),e)),t.limit<=0&&delete t.limit,[!0,t]}),[e])}(p),ne=(0,k.Z)(te,2),ie=ne[0],re=ne[1],oe=function(e,t,n,i,r,o){var a=r.filter,s=void 0===a?P_e:a,l=r.render,c=void 0===l?Z_e:l,u=r.limit,d=void 0===u?50:u,h=r.sort;return v.useMemo((function(){var r=[];return e?(function t(a,l){a.forEach((function(a){if(!(!h&&d>0&&r.length>=d)){var u,f=[].concat((0,_.Z)(l),[a]),p=a[n.children];p&&0!==p.length&&!o||s(e,f,{label:n.label})&&r.push((0,Ft.Z)((0,Ft.Z)({},a),{},(u={},(0,N.Z)(u,n.label,c(e,f,i,n)),(0,N.Z)(u,M_e,f),u))),p&&t(a[n.children],f)}}))}(t,[]),h&&r.sort((function(t,i){return h(t[M_e],i[M_e],e,n)})),d>0?r.slice(0,d):r):[]}),[e,t,n,i,c,o,s,h,d])}(J,Y,K,y||r,re,l),ae=function(e,t){return v.useCallback((function(n){var i=[],r=[];return n.forEach((function(n){R_e(n,e,t).every((function(e){return e.option}))?r.push(n):i.push(n)})),[r,i]}),[e,t])}(Y,K),se=v.useMemo((function(){var e=ae(U),t=(0,k.Z)(e,2),n=t[0],i=t[1];if(!j||!U.length)return[n,[],i];var r=tR(I_e(n),!0,q()),o=r.checkedKeys,a=r.halfCheckedKeys;return[$(o),$(a),i]}),[j,U,q,$,ae]),le=(0,k.Z)(se,3),ce=le[0],ue=le[1],de=le[2],he=function(e,t,n,i,r){return v.useMemo((function(){var o=r||function(e){var t=i?e.slice(-1):e;return t.every((function(e){return["string","number"].includes((0,Bt.Z)(e))}))?t.join(" / "):t.reduce((function(e,t,n){var i=v.isValidElement(t)?v.cloneElement(t,{key:n}):t;return 0===n?[i]:[].concat((0,_.Z)(e),[" / ",i])}),[])};return e.map((function(e){var i,r,a=R_e(e,t,n),s=o(a.map((function(e){var t,i=e.option,r=e.value;return null!==(t=null===i||void 0===i?void 0:i[n.label])&&void 0!==t?t:r})),a.map((function(e){return e.option}))),l=N_e(e);return{label:s,value:l,key:l,valueCells:e,disabled:null===(i=a[a.length-1])||void 0===i||null===(r=i.option)||void 0===r?void 0:r.disabled}}))}),[e,t,n,r,i])}(v.useMemo((function(){var e=O_e(I_e(ce),q,B);return[].concat((0,_.Z)(de),(0,_.Z)($(e)))}),[ce,q,$,de,B]),Y,K,j,u),fe=A_e((function(e){if(G(e),c){var t=U_e(e),n=t.map((function(e){return R_e(e,Y,K).map((function(e){return e.option}))})),i=j?t:t[0],r=j?n:n[0];c(i,r)}})),pe=A_e((function(e){if(ee(""),j){var t=N_e(e),n=I_e(ce),i=I_e(ue),r=n.includes(t),o=de.some((function(e){return N_e(e)===t})),a=ce,s=de;if(o&&!r)s=de.filter((function(e){return N_e(e)!==t}));else{var l,c=r?n.filter((function(e){return e!==t})):[].concat((0,_.Z)(n),[t]),u=q();if(r)l=tR(c,{checked:!1,halfCheckedKeys:i},u).checkedKeys;else l=tR(c,!0,u).checkedKeys;var d=O_e(l,q,B);a=$(d)}fe([].concat((0,_.Z)(s),(0,_.Z)(a)))}else fe(e)})),ge=void 0!==S?S:C,ve=x||w,me=I||T;var ye=v.useMemo((function(){return{options:Y,fieldNames:K,values:ce,halfValues:ue,changeOnSelect:l,onSelect:pe,checkable:d,searchOptions:oe,dropdownPrefixCls:y,loadData:b,expandTrigger:g,expandIcon:R,loadingIcon:A,dropdownMenuColumnStyle:E}}),[Y,K,ce,ue,l,pe,d,oe,y,b,g,R,A,E]),_e=!(J?oe:Y).length,be=J&&re.matchInputWidth||_e?{}:{minWidth:"auto"};return v.createElement(k_e.Provider,{value:ye},v.createElement(uN,Zt({},H,{ref:t,id:z,prefixCls:r,dropdownMatchSelectWidth:Z,dropdownStyle:be,displayValues:he,onDisplayValuesChange:function(e,t){if("clear"!==t.type){var n=t.values[0].valueCells;pe(n)}else fe([])},mode:j?"multiple":void 0,searchValue:J,onSearch:function(e,t){ee(e),"blur"!==t.source&&f&&f(e)},showSearch:ie,OptionList:V_e,emptyOptions:_e,open:ge,dropdownClassName:ve,placement:me,onDropdownVisibleChange:function(e){null===D||void 0===D||D(e),null===L||void 0===L||L(e)},getRawInputElement:function(){return M}})))}));G_e.SHOW_PARENT=E_e,G_e.SHOW_CHILD=T_e;var K_e=G_e,Y_e=function(e){var t,n=e.prefixCls,i=e.componentCls,r=e.antCls,o=i+"-menu-item",a="\n &"+o+"-expand "+o+"-expand-icon,\n "+o+"-loading-icon\n ",s=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[(0,N.Z)({},i,Zt({width:e.controlWidth},Tg(e,i))),(0,N.Z)({},i+"-dropdown",[OL(n+"-checkbox",e),(0,N.Z)({},"&"+r+"-select-dropdown",{padding:0}),(0,N.Z)({},i,{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":(0,N.Z)({display:"flex",flexWrap:"nowrap",alignItems:"flex-start"},"&"+i+"-menu-empty",(0,N.Z)({},i+"-menu",(0,N.Z)({width:"100%",height:"auto"},o,{color:e.colorTextDisabled,cursor:"default",pointerEvents:"none"}))),"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:e.lineWidth+"px "+e.lineType+" "+e.colorSplit},"&-item":Zt(Zt({},Za),(t={display:"flex",flexWrap:"nowrap",alignItems:"center",padding:s+"px "+e.paddingSM+"px",lineHeight:e.lineHeight,cursor:"pointer",transition:"all "+e.motionDurationMid,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover}," &-disabled":(0,N.Z)({color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},a,{color:e.colorTextDisabled})},(0,N.Z)(t,"&-active:not("+o+"-disabled)",(0,N.Z)({},"&, &:hover",{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive})),(0,N.Z)(t,"&-content",{flex:"auto"}),(0,N.Z)(t,a,{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon}),(0,N.Z)(t,"&-keyword",{color:e.colorHighlight}),t))}})]),(0,N.Z)({},i+"-dropdown-rtl",{direction:"rtl"})]},q_e=hs("Cascader",(function(e){return[Y_e(e)]}),{controlWidth:184,controlItemWidth:111,dropdownHeight:180}),$_e=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},X_e=K_e.SHOW_CHILD,Q_e=K_e.SHOW_PARENT;var J_e=function(e,t,n,i){var r=[],o=e.toLowerCase();return t.forEach((function(e,t){0!==t&&r.push(" / ");var a=e[i.label],s=(0,Bt.Z)(a);"string"!==s&&"number"!==s||(a=function(e,t,n){var i=e.toLowerCase().split(t).reduce((function(e,n,i){return 0===i?[n]:[].concat((0,_.Z)(e),[t,n])}),[]),r=[],o=0;return i.forEach((function(t,i){var a=o+t.length,s=e.slice(o,a);o=a,i%2===1&&(s=v.createElement("span",{className:n+"-menu-item-keyword",key:"seperator-"+i},s)),r.push(s)})),r}(String(a),o,n)),r.push(a)})),r},ebe=v.forwardRef((function(e,t){var n,i=e.prefixCls,r=e.size,o=e.disabled,a=e.className,s=e.multiple,l=e.bordered,c=void 0===l||l,u=e.transitionName,d=e.choiceTransitionName,h=void 0===d?"":d,f=e.popupClassName,p=e.dropdownClassName,g=e.expandIcon,m=e.placement,y=e.showSearch,_=e.allowClear,b=void 0===_||_,C=e.notFoundContent,S=e.direction,w=e.getPopupContainer,x=e.status,E=e.showArrow,T=ns($_e(e,["prefixCls","size","disabled","className","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow"]),["suffixIcon"]),I=(0,v.useContext)(wa),D=I.getPopupContainer,L=I.getPrefixCls,O=I.renderEmpty,R=I.direction,A=S||R,M="rtl"===A,P=(0,v.useContext)(Sl),Z=P.status,F=P.hasFeedback,B=P.isFormItemInput,H=P.feedbackIcon,z=jm(Z,x);var j=C||(O||sI)("Cascader"),V=L(),W=L("select",i),U=L("cascader",i),G=SI(W),K=(0,k.Z)(G,2),Y=K[0],q=K[1],$=q_e(U),X=(0,k.Z)($,1)[0],Q=tg(W,S),J=Q.compactSize,ee=Q.compactItemClassnames,te=Ja()(f||p,U+"-dropdown",(0,N.Z)({},U+"-dropdown-rtl","rtl"===A),q),ne=v.useMemo((function(){if(!y)return y;var e={render:J_e};return"object"===(0,Bt.Z)(y)&&(e=Zt(Zt({},e),y)),e}),[y]),ie=v.useContext(Pa),re=J||r||ie,oe=v.useContext(Ia),ae=null!==o&&void 0!==o?o:oe,se=g;g||(se=M?v.createElement(al,null):v.createElement(cl,null));var le=v.createElement("span",{className:W+"-menu-item-loading-icon"},v.createElement(Fu,{spin:!0})),ce=v.useMemo((function(){return!!s&&v.createElement("span",{className:U+"-checkbox-inner"})}),[s]),ue=void 0!==E?E:e.loading||!s,de=dI(Zt(Zt({},e),{hasFeedback:F,feedbackIcon:H,showArrow:ue,multiple:s,prefixCls:W})),he=de.suffixIcon,fe=de.removeIcon,pe=de.clearIcon;return X(Y(v.createElement(K_e,Zt({prefixCls:W,className:Ja()(!i&&U,(n={},(0,N.Z)(n,W+"-lg","large"===re),(0,N.Z)(n,W+"-sm","small"===re),(0,N.Z)(n,W+"-rtl",M),(0,N.Z)(n,W+"-borderless",!c),(0,N.Z)(n,W+"-in-form-item",B),n),zm(W,z,F),ee,a,q),disabled:ae},T,{direction:A,placement:void 0!==m?m:"rtl"===S?"bottomRight":"bottomLeft",notFoundContent:j,allowClear:b,showSearch:ne,expandIcon:se,inputIcon:he,removeIcon:fe,clearIcon:pe,loadingIcon:le,checkable:ce,dropdownClassName:te,dropdownPrefixCls:i||U,choiceTransitionName:Lc(V,"",h),transitionName:Lc(V,Dc(m),u),getPopupContainer:w||D,ref:t,showArrow:F||E}))))}));var tbe=SC(ebe);ebe.SHOW_PARENT=Q_e,ebe.SHOW_CHILD=X_e,ebe._InternalPanelDoNotUseOrYouWillBeFired=tbe;var nbe=ebe;function ibe(e,t){var n=(0,v.useRef)();return function(e,t,n){return Gve(e,t,n)}(e,n.current,t)||(n.current=e),n.current}var rbe=function(e){var t=(0,v.useRef)(e);return t.current=e,t};var obe={Success:function(e){var t=e.children;return(0,ES.jsx)(sF,{status:"success",text:t})},Error:function(e){var t=e.children;return(0,ES.jsx)(sF,{status:"error",text:t})},Default:function(e){var t=e.children;return(0,ES.jsx)(sF,{status:"default",text:t})},Processing:function(e){var t=e.children;return(0,ES.jsx)(sF,{status:"processing",text:t})},Warning:function(e){var t=e.children;return(0,ES.jsx)(sF,{status:"warning",text:t})},success:function(e){var t=e.children;return(0,ES.jsx)(sF,{status:"success",text:t})},error:function(e){var t=e.children;return(0,ES.jsx)(sF,{status:"error",text:t})},default:function(e){var t=e.children;return(0,ES.jsx)(sF,{status:"default",text:t})},processing:function(e){var t=e.children;return(0,ES.jsx)(sF,{status:"processing",text:t})},warning:function(e){var t=e.children;return(0,ES.jsx)(sF,{status:"warning",text:t})}},abe=function(e){var t=e.color,n=e.children;return(0,ES.jsx)(sF,{color:t,text:n})},sbe=obe,lbe=function(e,t){return v.createElement(jye,Zt({},e,{ref:t,icon:oy}))};var cbe=v.forwardRef(lbe),ube=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp"],dbe=function(e,t){return"object"!==(0,Bt.Z)(t)?e[t]||t:e[null===t||void 0===t?void 0:t.value]||t.label},hbe=function(e,t){var n=e.label,i=e.prefixCls,r=e.onChange,o=e.value,a=e.mode,s=(e.children,e.defaultValue,e.size),l=e.showSearch,c=e.disabled,u=e.style,d=e.className,h=e.bordered,f=e.options,p=e.onSearch,g=e.allowClear,m=e.labelInValue,y=e.fieldNames,_=e.lightLabel,b=e.labelTrigger,C=e.optionFilterProp,S=Ai(e,ube),w=e.placeholder,x=void 0===w?n:w,E=y||{},T=E.label,I=void 0===T?"label":T,D=E.value,L=void 0===D?"value":D,O=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-field-select-light-select"),R=(0,v.useState)(!1),A=(0,k.Z)(R,2),M=A[0],P=A[1],Z=(0,v.useState)(""),F=(0,k.Z)(Z,2),B=F[0],H=F[1],z=Ove("LightSelect",(function(e){var t;return(0,N.Z)({},".".concat(O),(t={},(0,N.Z)(t,"".concat(e.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),(0,N.Z)(t,"&.".concat(O,"-searchable"),(0,N.Z)({},"".concat(e.antCls,"-select"),{width:"200px","&-selector":{height:28}})),t))})),j=z.wrapSSR,V=z.hashId,W=(0,v.useMemo)((function(){var e={};return null===f||void 0===f||f.forEach((function(t){var n=t[I],i=t[L];e[i]=n||i})),e}),[I,f,L]),U=Array.isArray(o)?o.map((function(e){return dbe(W,e)})):dbe(W,o);return j((0,ES.jsxs)("div",{className:Ja()(O,V,(0,N.Z)({},"".concat(O,"-searchable"),l),"".concat(O,"-container-").concat(S.placement),d),style:u,onClick:function(e){var t,n,i;if(!c){var r=null===_||void 0===_||null===(t=_.current)||void 0===t||null===(n=t.labelRef)||void 0===n||null===(i=n.current)||void 0===i?void 0:i.contains(e.target);P(!r||!M)}},children:[(0,ES.jsx)(NI,(0,Ft.Z)((0,Ft.Z)({},S),{},{allowClear:g,value:o,mode:a,labelInValue:m,size:s,disabled:c,onChange:function(e,t){null===r||void 0===r||r(e,t),"multiple"!==a&&P(!1)},bordered:h,showSearch:l,onSearch:p,style:u,dropdownRender:function(e){return(0,ES.jsxs)("div",{ref:t,children:[l&&(0,ES.jsx)("div",{style:{margin:"4px 8px"},children:(0,ES.jsx)(Zy,{value:B,allowClear:g,onChange:function(e){H(e.target.value),null===p||void 0===p||p(e.target.value)},onKeyDown:function(e){e.stopPropagation()},style:{width:"100%"},prefix:(0,ES.jsx)(cbe,{})})}),e]})},open:M,onDropdownVisibleChange:function(e){var t;e||H(""),b||P(e),null===S||void 0===S||null===(t=S.onDropdownVisibleChange)||void 0===t||t.call(S,e)},prefixCls:i,options:p||!B?f:null===f||void 0===f?void 0:f.filter((function(e){var t,n,i,r,o;return C?Zi(e[C]).join("").toLowerCase().includes(B):(null===(t=String(e[I]))||void 0===t||null===(n=t.toLowerCase())||void 0===n?void 0:n.includes(null===B||void 0===B?void 0:B.toLowerCase()))||(null===(i=e[L])||void 0===i||null===(r=i.toString())||void 0===r||null===(o=r.toLowerCase())||void 0===o?void 0:o.includes(null===B||void 0===B?void 0:B.toLowerCase()))}))})),(0,ES.jsx)(w_e,{ellipsis:!0,label:n,placeholder:x,disabled:c,bordered:h,allowClear:g,value:U||(null===o||void 0===o?void 0:o.label)||o,onClear:function(){null===r||void 0===r||r(void 0,void 0)},ref:_})]}))},fbe=v.forwardRef(hbe),pbe=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue"],gbe=NI.Option,vbe=NI.OptGroup,mbe=function(e,t){var n=e.optionItemRender,i=e.mode,r=e.onSearch,o=e.onFocus,a=e.onChange,s=e.autoClearSearchValue,l=void 0===s||s,c=e.searchOnFocus,u=void 0!==c&&c,d=e.resetAfterSelect,h=void 0!==d&&d,f=e.fetchDataOnSearch,p=void 0===f||f,g=e.optionFilterProp,m=void 0===g?"label":g,y=e.optionLabelProp,_=void 0===y?"label":y,b=e.className,C=e.disabled,S=e.options,w=e.fetchData,x=e.resetData,E=e.prefixCls,T=e.onClear,I=e.searchValue,D=e.showSearch,L=e.fieldNames,O=e.defaultSearchValue,R=Ai(e,pbe),A=L||{},M=A.label,P=void 0===M?"label":M,Z=A.value,F=void 0===Z?"value":Z,B=A.options,H=void 0===B?"options":B,z=(0,v.useState)(null!==I&&void 0!==I?I:O),j=(0,k.Z)(z,2),V=j[0],W=j[1],U=(0,v.useRef)();(0,v.useImperativeHandle)(t,(function(){return U.current})),(0,v.useEffect)((function(){var e;R.autoFocus&&(null===U||void 0===U||null===(e=U.current)||void 0===e||e.focus())}),[R.autoFocus]),(0,v.useEffect)((function(){W(I)}),[I]);var G=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-filed-search-select",E),K=Ja()(G,b,(0,N.Z)({},"".concat(G,"-disabled"),C)),Y=function(e,t){return Array.isArray(e)&&e.length>0?e.map((function(e,n){var i=null===t||void 0===t?void 0:t[n],r=(null===i||void 0===i?void 0:i["data-item"])||{};return(0,Ft.Z)((0,Ft.Z)({},r),e)})):[]};return(0,ES.jsx)(NI,(0,Ft.Z)((0,Ft.Z)({ref:U,className:K,allowClear:!0,autoClearSearchValue:l,disabled:C,mode:i,showSearch:D,searchValue:V,optionFilterProp:m,optionLabelProp:_,onClear:function(){null===T||void 0===T||T(),w(void 0),D&&W(void 0)}},R),{},{onSearch:D?function(e){p&&w(e),null===r||void 0===r||r(e),W(e)}:void 0,onChange:function(t,n){D&&l&&(w(void 0),null===r||void 0===r||r(""),W(void 0));for(var o=arguments.length,s=new Array(o>2?o-2:0),c=2;c<o;c++)s[c-2]=arguments[c];if(e.labelInValue)if("multiple"===i){var u=Y(t,n);null===a||void 0===a||a.apply(void 0,[u,n].concat(s)),h&&x()}else{var d=n&&n["data-item"];t&&d?null===a||void 0===a||a.apply(void 0,[(0,Ft.Z)((0,Ft.Z)({},t),d),n].concat(s)):null===a||void 0===a||a.apply(void 0,[t,n].concat(s))}else null===a||void 0===a||a.apply(void 0,[t,n].concat(s))},onFocus:function(e){u&&w(V),null===o||void 0===o||o(e)},children:function e(t){return t.map((function(t){var i,r=t,o=r.disabled,a=r.className,s=r.optionType,l=t[P],c=t[F],u=null!==(i=t[H])&&void 0!==i?i:[];return"optGroup"===s||t.options?(0,ES.jsx)(vbe,{label:l,children:e(u)},c):(0,v.createElement)(gbe,(0,Ft.Z)((0,Ft.Z)({},t),{},{value:c,key:c||(null===l||void 0===l?void 0:l.toString()),disabled:o,"data-item":t,className:"".concat(G,"-option ").concat(a||""),label:l}),(null===n||void 0===n?void 0:n(t))||l)}))}(S||[])}))},ybe=v.forwardRef(mbe),_be=["value","text"],bbe=["mode","valueEnum","render","renderFormItem","request","fieldProps","plain","children","light","proFieldKey","params","label","bordered","id","lightLabel","labelTrigger"],Cbe=function(e){return"map"===function(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return"string"===t&&"object"===(0,Bt.Z)(e)?"object":null===e?"null":void 0===e?"undefined":t}(e)?e:new Map(Object.entries(e||{}))},Sbe=function e(t,n,i){if(Array.isArray(t))return(0,ES.jsx)(Vy,{split:",",size:2,wrap:!0,children:t.map((function(t,i){return e(t,n,i)}))},i);var r=Cbe(n);if(!r.has(t)&&!r.has("".concat(t)))return(null===t||void 0===t?void 0:t.label)||t;var o=r.get(t)||r.get("".concat(t));if(!o)return(0,ES.jsx)(v.Fragment,{children:(null===t||void 0===t?void 0:t.label)||t},i);var a=o.status,s=o.color,l=sbe[a||"Init"];return l?(0,ES.jsx)(l,{children:o.text},i):s?(0,ES.jsx)(abe,{color:s,children:o.text},i):(0,ES.jsx)(v.Fragment,{children:o.text||o},i)},wbe=function(e){for(var t=e.label,n=e.words,i=(0,v.useContext)(Xa.ConfigContext).getPrefixCls,r=i("pro-select-item-option-content-light"),o=i("pro-select-item-option-content"),a=Ove("Highlight",(function(e){var t;return t={},(0,N.Z)(t,".".concat(r),{color:e.colorPrimary}),(0,N.Z)(t,".".concat(o),{flex:"auto",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),t})),s=a.wrapSSR,l=new RegExp(n.map((function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")})).join("|"),"gi"),c=t,u=[];c.length;){var d=l.exec(c);if(!d){u.push(c);break}var h=d.index,f=d[0].length+h;u.push(c.slice(0,h),v.createElement("span",{className:r},c.slice(h,f))),c=c.slice(f)}return s(v.createElement.apply(v,["div",{title:t,className:o}].concat(u)))};function kbe(e,t){var n,i;if(!t)return!0;if(null!==e&&void 0!==e&&null!==(n=e.label)&&void 0!==n&&n.toString().toLowerCase().includes(t.toLowerCase())||null!==e&&void 0!==e&&null!==(i=e.value)&&void 0!==i&&i.toString().toLowerCase().includes(t.toLowerCase()))return!0;if((e.children||e.options)&&[].concat((0,_.Z)(e.children||[]),[e.options||[]]).find((function(e){return kbe(e,t)})))return!0;return!1}var xbe=function(e){var t,n,i,r,o,a,s,l=e.cacheForSwr,c=e.fieldProps,u=(0,v.useState)(e.defaultKeyWords),d=(0,k.Z)(u,2),h=d[0],f=d[1],p=(0,v.useState)((function(){return e.proFieldKey?e.proFieldKey.toString():e.request?$ve():"no-fetch"})),g=(0,k.Z)(p,1)[0],m=(0,v.useRef)(g),y=(0,v.useCallback)((function(e){return function(e){var t=[],n=Cbe(e);return n.forEach((function(e,i){var r=n.get(i)||n.get("".concat(i));r&&("object"===(0,Bt.Z)(r)&&null!==r&&void 0!==r&&r.text?t.push({text:null===r||void 0===r?void 0:r.text,value:i,label:null===r||void 0===r?void 0:r.text,disabled:r.disabled}):t.push({text:r,value:i}))})),t}(Cbe(e)).map((function(e){var t=e.value,n=e.text,i=Ai(e,_be);return(0,Ft.Z)({label:n,value:t,key:t},i)}))}),[]),b=(0,v.useMemo)((function(){if(c){var e=(null===c||void 0===c?void 0:c.options)||(null===c||void 0===c?void 0:c.treeData);if(e){var t=c.fieldNames||{},n=t.children,i=t.label,r=t.value,o=function e(t,o){if(null!==t&&void 0!==t&&t.length)for(var a=t.length,s=0;s<a;){var l=t[s++];(l[n]||l[i]||l[r])&&(l[o]=l["children"===o?n:"label"===o?i:r],e(l[n],o))}};return n&&o(e,"children"),i&&o(e,"label"),r&&o(e,"value"),e}}}),[c]),C=Sf((function(){return e.valueEnum?y(e.valueEnum):[]}),{value:b}),S=(0,k.Z)(C,2),w=S[0],x=S[1];o=function(){var t,n;!e.valueEnum||null!==(t=e.fieldProps)&&void 0!==t&&t.options||null!==(n=e.fieldProps)&&void 0!==n&&n.treeData||x(y(e.valueEnum))},a=[e.valueEnum],(0,v.useEffect)(o,ibe(a||[],s));var E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,i=(0,v.useState)(e),r=(0,k.Z)(i,2),o=r[0],a=r[1],s=rbe(e);return(0,v.useEffect)((function(){var e=setTimeout((function(){a(s.current)}),t);return function(){return clearTimeout(e)}}),n?[t].concat((0,_.Z)(n)):void 0),o}([m.current,e.params,h],null!==(t=null!==(n=e.debounceTime)&&void 0!==n?n:null===e||void 0===e||null===(i=e.fieldProps)||void 0===i?void 0:i.debounceTime)&&void 0!==t?t:0,[e.params,h]),T=Bge((function(){return e.request?E:null}),(function(t){var n=(0,k.Z)(t,3),i=n[1],r=n[2];return e.request((0,Ft.Z)((0,Ft.Z)({},i),{},{keyWords:r}),e)}),{revalidateIfStale:!l,revalidateOnReconnect:l,shouldRetryOnError:!1,revalidateOnFocus:!1}),N=T.data,I=T.mutate,D=T.isValidating,L=(0,v.useMemo)((function(){var t,n,i=null===w||void 0===w?void 0:w.map((function(e){if("string"===typeof e)return{label:e,value:e};if(e.children||e.options){var t=[].concat((0,_.Z)(e.children||[]),(0,_.Z)(e.options||[])).filter((function(e){return kbe(e,h)}));return(0,Ft.Z)((0,Ft.Z)({},e),{},{children:t,options:t})}return e}));return!0===(null===(t=e.fieldProps)||void 0===t?void 0:t.filterOption)||void 0===(null===(n=e.fieldProps)||void 0===n?void 0:n.filterOption)?null===i||void 0===i?void 0:i.filter((function(e){return!!e&&(!h||kbe(e,h))})):i}),[w,h,null===(r=e.fieldProps)||void 0===r?void 0:r.filterOption]);return[D,e.request?N:L,function(e){f(e)},function(){f(void 0),I([],!1)}]},Ebe=function(e,t){var n,i=e.mode,r=e.valueEnum,o=e.render,a=e.renderFormItem,s=(e.request,e.fieldProps),l=(e.plain,e.children,e.light),c=(e.proFieldKey,e.params,e.label),u=e.bordered,d=e.id,h=e.lightLabel,f=e.labelTrigger,p=Ai(e,bbe),g=(0,v.useRef)(),m=zve(),y=(0,v.useRef)(""),_=s.fieldNames;(0,v.useEffect)((function(){y.current=null===s||void 0===s?void 0:s.searchValue}),[null===s||void 0===s?void 0:s.searchValue]);var b=xbe(e),C=(0,k.Z)(b,4),S=C[0],w=C[1],x=C[2],E=C[3],T=((null===Xa||void 0===Xa||null===(n=Xa.useConfig)||void 0===n?void 0:n.call(Xa))||{componentSize:"middle"}).componentSize;(0,v.useImperativeHandle)(t,(function(){return(0,Ft.Z)((0,Ft.Z)({},g.current||{}),{},{fetchData:function(e){return x(e)}})}));var N=(0,v.useMemo)((function(){if("read"===i){var e=_||{},t=e.label,n=void 0===t?"label":t,r=e.value,o=void 0===r?"value":r,a=e.options,s=void 0===a?"options":a,l=new Map;return function e(t){if(null===t||void 0===t||!t.length)return l;for(var i=t.length,r=0;r<i;){var a=t[r++];l.set(a[o],a[n]),e(a[s])}return l}(w)}}),[_,i,w]);if("read"===i){var I,D=(0,ES.jsx)(ES.Fragment,{children:Sbe(p.text,Cbe(r||N))});return o?null!==(I=o(p.text,(0,Ft.Z)({mode:i},s),D))&&void 0!==I?I:null:D}if("edit"===i||"update"===i){var L,O=l?(0,ES.jsx)(fbe,(0,Ft.Z)({bordered:u,id:d,loading:S,ref:g,allowClear:!0,size:T,options:w,label:c,placeholder:m.getMessage("tableForm.selectPlaceholder","\u8bf7\u9009\u62e9"),lightLabel:h,labelTrigger:f},s)):(0,ES.jsx)(ybe,(0,Ft.Z)((0,Ft.Z)({className:p.className,style:(0,Ft.Z)({minWidth:100},p.style),bordered:u,id:d,loading:S,ref:g,allowClear:!0,defaultSearchValue:e.defaultKeyWords,notFoundContent:S?(0,ES.jsx)(Cs,{size:"small"}):null===s||void 0===s?void 0:s.notFoundContent,fetchData:function(e){y.current=null!==e&&void 0!==e?e:"",x(e)},resetData:E,optionItemRender:function(e){return"string"===typeof e.label&&y.current?(0,ES.jsx)(wbe,{label:e.label,words:[y.current]}):e.label},placeholder:m.getMessage("tableForm.selectPlaceholder","\u8bf7\u9009\u62e9"),label:c},s),{},{options:w}),"SearchSelect");return a?null!==(L=a(p.text,(0,Ft.Z)((0,Ft.Z)({mode:i},s),{},{options:w}),O))&&void 0!==L?L:null:O}return null},Tbe=v.forwardRef(Ebe),Nbe=["radioType","renderFormItem","mode","render","label","light"],Ibe=function(e,t){e.radioType;var n,i=e.renderFormItem,r=e.mode,o=e.render,a=e.label,s=e.light,l=Ai(e,Nbe),c=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-field-cascader"),u=xbe(l),d=(0,k.Z)(u,3),h=d[0],f=d[1],p=d[2],g=zve(),m=(0,v.useRef)(),y=(0,v.useState)(!1),_=(0,k.Z)(y,2),b=_[0],C=_[1];(0,v.useImperativeHandle)(t,(function(){return(0,Ft.Z)((0,Ft.Z)({},m.current||{}),{},{fetchData:function(e){return p(e)}})}));var S=(0,v.useMemo)((function(){var e;if("read"===r){var t=(null===(e=l.fieldProps)||void 0===e?void 0:e.fieldNames)||{},n=t.value,i=void 0===n?"value":n,o=t.label,a=void 0===o?"label":o,s=t.children,c=void 0===s?"children":s,u=new Map;return function e(t){if(null===t||void 0===t||!t.length)return u;for(var n=t.length,r=0;r<n;){var o=t[r++];u.set(o[i],o[a]),e(o[c])}return u}(f)}}),[r,f,null===(n=l.fieldProps)||void 0===n?void 0:n.fieldNames]);if("read"===r){var w,x=(0,ES.jsx)(ES.Fragment,{children:Sbe(l.text,Cbe(l.valueEnum||S))});return o?null!==(w=o(l.text,(0,Ft.Z)({mode:r},l.fieldProps),x))&&void 0!==w?w:null:x}if("edit"===r){var E,T,N,I=(0,ES.jsx)(nbe,(0,Ft.Z)((0,Ft.Z)({bordered:!s,ref:m,open:b,suffixIcon:h?(0,ES.jsx)(Wye,{}):void 0,placeholder:g.getMessage("tableForm.selectPlaceholder","\u8bf7\u9009\u62e9"),allowClear:!1!==(null===(E=l.fieldProps)||void 0===E?void 0:E.allowClear)},l.fieldProps),{},{onDropdownVisibleChange:function(e){var t,n;null===l||void 0===l||null===(t=l.fieldProps)||void 0===t||null===(n=t.onDropdownVisibleChange)||void 0===n||n.call(t,e),C(e)},className:Ja()(null===(T=l.fieldProps)||void 0===T?void 0:T.className,c),options:f}));if(i)I=null!==(N=i(l.text,(0,Ft.Z)({mode:r},l.fieldProps),I))&&void 0!==N?N:null;if(s){var D=l.fieldProps,L=D.disabled,O=D.value,R=!!O&&0!==(null===O||void 0===O?void 0:O.length);return(0,ES.jsx)(w_e,{label:a,disabled:L,bordered:l.bordered,value:R||b?I:null,style:R?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:!R&&!b&&void 0,onClick:function(){var e,t;C(!0),null===l||void 0===l||null===(e=l.fieldProps)||void 0===e||null===(t=e.onDropdownVisibleChange)||void 0===t||t.call(e,!0)}})}return I}return null},Dbe=v.forwardRef(Ibe),Lbe=["layout","renderFormItem","mode","render"],Obe=function(e,t){var n=e.layout,i=void 0===n?"horizontal":n,r=e.renderFormItem,o=e.mode,a=e.render,s=Ai(e,Lbe),l=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-field-checkbox"),c=xbe(s),u=(0,k.Z)(c,3),d=u[0],h=u[1],f=u[2],p=Ove("Checkbox",(function(e){var t;return(0,N.Z)({},".".concat(l),{"&-vertical":(t={},(0,N.Z)(t,"&".concat(e.antCls,"-checkbox-group"),{display:"inline-block"}),(0,N.Z)(t,"".concat(e.antCls,"-checkbox-wrapper+").concat(e.antCls,"-checkbox-wrapper"),{"margin-inline-start":"0 !important"}),(0,N.Z)(t,"".concat(e.antCls,"-checkbox-group-item"),{display:"flex",marginInlineEnd:0}),t)})})),g=p.wrapSSR,m=p.hashId,y=(0,v.useRef)();if((0,v.useImperativeHandle)(t,(function(){return(0,Ft.Z)((0,Ft.Z)({},y.current||{}),{},{fetchData:function(e){return f(e)}})})),d)return(0,ES.jsx)(Cs,{size:"small"});if("read"===o){var _,b=null!==h&&void 0!==h&&h.length?null===h||void 0===h?void 0:h.reduce((function(e,t){var n;return(0,Ft.Z)((0,Ft.Z)({},e),{},(0,N.Z)({},null!==(n=t.value)&&void 0!==n?n:"",t.label))}),{}):void 0,C=Sbe(s.text,Cbe(s.valueEnum||b));return a?null!==(_=a(s.text,(0,Ft.Z)({mode:o},s.fieldProps),(0,ES.jsx)(ES.Fragment,{children:C})))&&void 0!==_?_:null:(0,ES.jsx)(Vy,{children:C})}if("edit"===o){var S,w,x=g((0,ES.jsx)(VL.Group,(0,Ft.Z)((0,Ft.Z)({},s.fieldProps),{},{className:Ja()(null===(S=s.fieldProps)||void 0===S?void 0:S.className,m,"".concat(l,"-").concat(i)),options:h})));return r?null!==(w=r(s.text,(0,Ft.Z)({mode:o},s.fieldProps),x))&&void 0!==w?w:null:x}return null},Rbe=v.forwardRef(Obe),Abe=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.language,a=void 0===o?"text":o,s=e.renderFormItem,l=e.plain,c=e.fieldProps,u=function(e,t){if("string"!==typeof e)return e;try{if("json"===t)return JSON.stringify(JSON.parse(e),null,2)}catch(n){}return e}(n,a);if("read"===i){var d=(0,ES.jsx)("pre",(0,Ft.Z)((0,Ft.Z)({ref:t},c),{},{style:(0,Ft.Z)({padding:16,overflow:"auto",fontSize:"85%",lineHeight:1.45,backgroundColor:"#f6f8fa",borderRadius:3,width:"min-content"},c.style),children:(0,ES.jsx)("code",{children:u})}));return r?r(u,(0,Ft.Z)((0,Ft.Z)({mode:i},c),{},{ref:t}),d):d}if("edit"===i||"update"===i){var h,f=(0,ES.jsx)(Zy.TextArea,(0,Ft.Z)((0,Ft.Z)({rows:5},c),{},{ref:t}));return l&&(f=(0,ES.jsx)(Zy,(0,Ft.Z)((0,Ft.Z)({},c),{},{ref:t}))),s?null!==(h=s(u,(0,Ft.Z)((0,Ft.Z)({mode:i},c),{},{ref:t}),f))&&void 0!==h?h:null:f}return null},Mbe=v.forwardRef(Abe),Pbe=n(54093),Zbe=n(79286),Fbe=n.n(Zbe),Bbe=function(e,t,n,i,r){var o,a,s=r.clientWidth,l=r.clientHeight,c="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,u="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,d=c-(r.getBoundingClientRect().left+window.pageXOffset),h=u-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){if(o=h<0?0:h>l?1:Math.round(100*h/l)/100,t.a!==o)return{h:t.h,s:t.s,l:t.l,a:o,source:"rgb"}}else if(i!==(a=d<0?0:d>s?1:Math.round(100*d/s)/100))return{h:t.h,s:t.s,l:t.l,a:a,source:"rgb"};return null},Hbe={},zbe=function(e,t,n,i){var r="".concat(e,"-").concat(t,"-").concat(n).concat(i?"-server":"");if(Hbe[r])return Hbe[r];var o=function(e,t,n,i){if("undefined"===typeof document&&!i)return null;var r=i?new i:document.createElement("canvas");r.width=2*n,r.height=2*n;var o=r.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,r.width,r.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),r.toDataURL()):null}(e,t,n,i);return Hbe[r]=o,o};function jbe(e){return jbe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jbe(e)}function Vbe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Wbe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vbe(Object(n),!0).forEach((function(t){Ube(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vbe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ube(e,t,n){return t=function(e){var t=function(e,t){if("object"!==jbe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==jbe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jbe(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gbe=function(e){var t=e.white,n=e.grey,i=e.size,r=e.renderers,o=e.borderRadius,a=e.boxShadow,s=e.children,l=(0,Pbe.ZP)({default:{grid:{borderRadius:o,boxShadow:a,absolute:"0px 0px 0px 0px",background:"url(".concat(zbe(t,n,i,r.canvas),") center left")}}});return(0,v.isValidElement)(s)?v.cloneElement(s,Wbe(Wbe({},s.props),{},{style:Wbe(Wbe({},s.props.style),l.grid)})):v.createElement("div",{style:l.grid})};Gbe.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var Kbe=Gbe;function Ybe(e){return Ybe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ybe(e)}function qbe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function $be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qbe(Object(n),!0).forEach((function(t){Xbe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qbe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xbe(e,t,n){return(t=eCe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jbe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,eCe(i.key),i)}}function eCe(e){var t=function(e,t){if("object"!==Ybe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Ybe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ybe(t)?t:String(t)}function tCe(e,t){return tCe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tCe(e,t)}function nCe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Fc){return!1}}();return function(){var n,i=rCe(e);if(t){var r=rCe(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return iCe(this,n)}}function iCe(e,t){if(t&&("object"===Ybe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function rCe(e){return rCe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rCe(e)}var oCe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tCe(e,t)}(o,e);var t,n,i,r=nCe(o);function o(){var e;Qbe(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).handleChange=function(t){var n=Bbe(t,e.props.hsl,e.props.direction,e.props.a,e.container);n&&"function"===typeof e.props.onChange&&e.props.onChange(n,t)},e.handleMouseDown=function(t){e.handleChange(t),window.addEventListener("mousemove",e.handleChange),window.addEventListener("mouseup",e.handleMouseUp)},e.handleMouseUp=function(){e.unbindEventListeners()},e.unbindEventListeners=function(){window.removeEventListener("mousemove",e.handleChange),window.removeEventListener("mouseup",e.handleMouseUp)},e}return t=o,(n=[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,Pbe.ZP)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,", 0) 0%,\n rgba(").concat(t.r,",").concat(t.g,",").concat(t.b,", 1) 100%)"),boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:"".concat(100*t.a,"%")},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,", 0) 0%,\n rgba(").concat(t.r,",").concat(t.g,",").concat(t.b,", 1) 100%)")},pointer:{left:0,top:"".concat(100*t.a,"%")}},overwrite:$be({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return v.createElement("div",{style:n.alpha},v.createElement("div",{style:n.checkboard},v.createElement(Kbe,{renderers:this.props.renderers})),v.createElement("div",{style:n.gradient}),v.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},v.createElement("div",{style:n.pointer},this.props.pointer?v.createElement(this.props.pointer,this.props):v.createElement("div",{style:n.slider}))))}}])&&Jbe(t.prototype,n),i&&Jbe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(v.PureComponent||v.Component),aCe=oCe,sCe=function(e,t,n,i){var r=i.clientWidth,o=i.clientHeight,a="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(i.getBoundingClientRect().left+window.pageXOffset),c=s-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var u;if(c<0)u=359;else if(c>o)u=0;else{u=360*(-100*c/o+100)/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d;if(l<0)d=0;else if(l>r)d=359;else{d=360*(100*l/r)/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null};function lCe(e){return lCe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lCe(e)}function cCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uCe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,dCe(i.key),i)}}function dCe(e){var t=function(e,t){if("object"!==lCe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==lCe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lCe(t)?t:String(t)}function hCe(e,t){return hCe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hCe(e,t)}function fCe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Fc){return!1}}();return function(){var n,i=gCe(e);if(t){var r=gCe(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return pCe(this,n)}}function pCe(e,t){if(t&&("object"===lCe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function gCe(e){return gCe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gCe(e)}var vCe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hCe(e,t)}(o,e);var t,n,i,r=fCe(o);function o(){var e;cCe(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).handleChange=function(t){var n=sCe(t,e.props.direction,e.props.hsl,e.container);n&&"function"===typeof e.props.onChange&&e.props.onChange(n,t)},e.handleMouseDown=function(t){e.handleChange(t),window.addEventListener("mousemove",e.handleChange),window.addEventListener("mouseup",e.handleMouseUp)},e.handleMouseUp=function(){e.unbindEventListeners()},e}return t=o,(n=[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,i=(0,Pbe.ZP)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:"".concat(100*this.props.hsl.h/360,"%")},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:"".concat(-100*this.props.hsl.h/360+100,"%")}}},{vertical:"vertical"===n});return v.createElement("div",{style:i.hue},v.createElement("div",{className:"hue-".concat(n),style:i.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},v.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),v.createElement("div",{style:i.pointer},this.props.pointer?v.createElement(this.props.pointer,this.props):v.createElement("div",{style:i.slider}))))}}])&&uCe(t.prototype,n),i&&uCe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(v.PureComponent||v.Component),mCe=vCe,yCe=n(33038),_Ce=n.n(yCe);function bCe(e){return bCe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bCe(e)}function CCe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,SCe(i.key),i)}}function SCe(e){var t=function(e,t){if("object"!==bCe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==bCe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bCe(t)?t:String(t)}function wCe(e,t){return wCe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wCe(e,t)}function kCe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Fc){return!1}}();return function(){var n,i=ECe(e);if(t){var r=ECe(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return xCe(this,n)}}function xCe(e,t){if(t&&("object"===bCe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ECe(e){return ECe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ECe(e)}var TCe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wCe(e,t)}(o,e);var t,n,i,r=kCe(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,e)).handleChange=function(e){"function"===typeof t.props.onChange&&t.throttle(t.props.onChange,function(e,t,n){var i=n.getBoundingClientRect(),r=i.width,o=i.height,a="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(n.getBoundingClientRect().left+window.pageXOffset),c=s-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>r&&(l=r),c<0?c=0:c>o&&(c=o);var u=l/r,d=1-c/o;return{h:t.h,s:u,v:d,a:t.a,source:"hsv"}}(e,t.props.hsl,t.container),e)},t.handleMouseDown=function(e){t.handleChange(e);var n=t.getContainerRenderWindow();n.addEventListener("mousemove",t.handleChange),n.addEventListener("mouseup",t.handleMouseUp)},t.handleMouseUp=function(){t.unbindEventListeners()},t.throttle=_Ce()((function(e,t,n){e(t,n)}),50),t}return t=o,n=[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,i=t.white,r=t.black,o=t.pointer,a=t.circle,s=(0,Pbe.ZP)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-100*this.props.hsv.v+100,"%"),left:"".concat(100*this.props.hsv.s,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:i,black:r,pointer:o,circle:a}},{custom:!!this.props.style});return v.createElement("div",{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},v.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),v.createElement("div",{style:s.white,className:"saturation-white"},v.createElement("div",{style:s.black,className:"saturation-black"}),v.createElement("div",{style:s.pointer},this.props.pointer?v.createElement(this.props.pointer,this.props):v.createElement("div",{style:s.circle}))))}}],n&&CCe(t.prototype,n),i&&CCe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(v.PureComponent||v.Component),NCe=TCe,ICe=n(29430),DCe=n.n(ICe);function LCe(e){return LCe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LCe(e)}var OCe=/^\s+/,RCe=/\s+$/;function ACe(e,t){if(t=t||{},(e=e||"")instanceof ACe)return e;if(!(this instanceof ACe))return new ACe(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,i=null,r=null,o=null,a=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(OCe,"").replace(RCe,"").toLowerCase();var t,n=!1;if(XCe[e])e=XCe[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=sSe.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=sSe.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=sSe.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=sSe.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=sSe.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=sSe.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=sSe.hex8.exec(e))return{r:nSe(t[1]),g:nSe(t[2]),b:nSe(t[3]),a:aSe(t[4]),format:n?"name":"hex8"};if(t=sSe.hex6.exec(e))return{r:nSe(t[1]),g:nSe(t[2]),b:nSe(t[3]),format:n?"name":"hex"};if(t=sSe.hex4.exec(e))return{r:nSe(t[1]+""+t[1]),g:nSe(t[2]+""+t[2]),b:nSe(t[3]+""+t[3]),a:aSe(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=sSe.hex3.exec(e))return{r:nSe(t[1]+""+t[1]),g:nSe(t[2]+""+t[2]),b:nSe(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==LCe(e)&&(lSe(e.r)&&lSe(e.g)&&lSe(e.b)?(t=function(e,t,n){return{r:255*eSe(e,255),g:255*eSe(t,255),b:255*eSe(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):lSe(e.h)&&lSe(e.s)&&lSe(e.v)?(i=rSe(e.s),r=rSe(e.v),t=function(e,t,n){e=6*eSe(e,360),t=eSe(t,100),n=eSe(n,100);var i=Math.floor(e),r=e-i,o=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),l=i%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,i,r),a=!0,s="hsv"):lSe(e.h)&&lSe(e.s)&&lSe(e.l)&&(i=rSe(e.s),o=rSe(e.l),t=function(e,t,n){var i,r,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=eSe(e,360),t=eSe(t,100),n=eSe(n,100),0===t)i=r=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=a(l,s,e+1/3),r=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*i,g:255*r,b:255*o}}(e.h,i,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a));return n=JCe(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function MCe(e,t,n){e=eSe(e,255),t=eSe(t,255),n=eSe(n,255);var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)i=r=0;else{var l=o-a;switch(r=s>.5?l/(2-o-a):l/(o+a),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:r,l:s}}function PCe(e,t,n){e=eSe(e,255),t=eSe(t,255),n=eSe(n,255);var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),s=o,l=o-a;if(r=0===o?0:l/o,o==a)i=0;else{switch(o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:r,v:s}}function ZCe(e,t,n,i){var r=[iSe(Math.round(e).toString(16)),iSe(Math.round(t).toString(16)),iSe(Math.round(n).toString(16))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function FCe(e,t,n,i){return[iSe(oSe(i)),iSe(Math.round(e).toString(16)),iSe(Math.round(t).toString(16)),iSe(Math.round(n).toString(16))].join("")}function BCe(e,t){t=0===t?0:t||10;var n=ACe(e).toHsl();return n.s-=t/100,n.s=tSe(n.s),ACe(n)}function HCe(e,t){t=0===t?0:t||10;var n=ACe(e).toHsl();return n.s+=t/100,n.s=tSe(n.s),ACe(n)}function zCe(e){return ACe(e).desaturate(100)}function jCe(e,t){t=0===t?0:t||10;var n=ACe(e).toHsl();return n.l+=t/100,n.l=tSe(n.l),ACe(n)}function VCe(e,t){t=0===t?0:t||10;var n=ACe(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),ACe(n)}function WCe(e,t){t=0===t?0:t||10;var n=ACe(e).toHsl();return n.l-=t/100,n.l=tSe(n.l),ACe(n)}function UCe(e,t){var n=ACe(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,ACe(n)}function GCe(e){var t=ACe(e).toHsl();return t.h=(t.h+180)%360,ACe(t)}function KCe(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=ACe(e).toHsl(),i=[ACe(e)],r=360/t,o=1;o<t;o++)i.push(ACe({h:(n.h+o*r)%360,s:n.s,l:n.l}));return i}function YCe(e){var t=ACe(e).toHsl(),n=t.h;return[ACe(e),ACe({h:(n+72)%360,s:t.s,l:t.l}),ACe({h:(n+216)%360,s:t.s,l:t.l})]}function qCe(e,t,n){t=t||6,n=n||30;var i=ACe(e).toHsl(),r=360/n,o=[ACe(e)];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,o.push(ACe(i));return o}function $Ce(e,t){t=t||6;for(var n=ACe(e).toHsv(),i=n.h,r=n.s,o=n.v,a=[],s=1/t;t--;)a.push(ACe({h:i,s:r,v:o})),o=(o+s)%1;return a}ACe.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,i=this.toRgb();return e=i.r/255,t=i.g/255,n=i.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=JCe(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=PCe(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=PCe(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=MCe(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=MCe(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return ZCe(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,i,r){var o=[iSe(Math.round(e).toString(16)),iSe(Math.round(t).toString(16)),iSe(Math.round(n).toString(16)),iSe(oSe(i))];if(r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*eSe(this._r,255))+"%",g:Math.round(100*eSe(this._g,255))+"%",b:Math.round(100*eSe(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*eSe(this._r,255))+"%, "+Math.round(100*eSe(this._g,255))+"%, "+Math.round(100*eSe(this._b,255))+"%)":"rgba("+Math.round(100*eSe(this._r,255))+"%, "+Math.round(100*eSe(this._g,255))+"%, "+Math.round(100*eSe(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(QCe[ZCe(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+FCe(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var r=ACe(e);n="#"+FCe(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,i=this._a<1&&this._a>=0;return t||!i||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return ACe(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(jCe,arguments)},brighten:function(){return this._applyModification(VCe,arguments)},darken:function(){return this._applyModification(WCe,arguments)},desaturate:function(){return this._applyModification(BCe,arguments)},saturate:function(){return this._applyModification(HCe,arguments)},greyscale:function(){return this._applyModification(zCe,arguments)},spin:function(){return this._applyModification(UCe,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(qCe,arguments)},complement:function(){return this._applyCombination(GCe,arguments)},monochromatic:function(){return this._applyCombination($Ce,arguments)},splitcomplement:function(){return this._applyCombination(YCe,arguments)},triad:function(){return this._applyCombination(KCe,[3])},tetrad:function(){return this._applyCombination(KCe,[4])}},ACe.fromRatio=function(e,t){if("object"==LCe(e)){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]="a"===i?e[i]:rSe(e[i]));e=n}return ACe(e,t)},ACe.equals=function(e,t){return!(!e||!t)&&ACe(e).toRgbString()==ACe(t).toRgbString()},ACe.random=function(){return ACe.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},ACe.mix=function(e,t,n){n=0===n?0:n||50;var i=ACe(e).toRgb(),r=ACe(t).toRgb(),o=n/100;return ACe({r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a})},ACe.readability=function(e,t){var n=ACe(e),i=ACe(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},ACe.isReadable=function(e,t,n){var i,r,o=ACe.readability(e,t);switch(r=!1,i=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n),i.level+i.size){case"AAsmall":case"AAAlarge":r=o>=4.5;break;case"AAlarge":r=o>=3;break;case"AAAsmall":r=o>=7}return r},ACe.mostReadable=function(e,t,n){var i,r,o,a,s=null,l=0;r=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;c<t.length;c++)(i=ACe.readability(e,t[c]))>l&&(l=i,s=ACe(t[c]));return ACe.isReadable(e,s,{level:o,size:a})||!r?s:(n.includeFallbackColors=!1,ACe.mostReadable(e,["#fff","#000"],n))};var XCe=ACe.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},QCe=ACe.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(XCe);function JCe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function eSe(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function tSe(e){return Math.min(1,Math.max(0,e))}function nSe(e){return parseInt(e,16)}function iSe(e){return 1==e.length?"0"+e:""+e}function rSe(e){return e<=1&&(e=100*e+"%"),e}function oSe(e){return Math.round(255*parseFloat(e)).toString(16)}function aSe(e){return nSe(e)/255}var sSe=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function lSe(e){return!!sSe.CSS_UNIT.exec(e)}var cSe=function(e){var t=0,n=0;return DCe()(["r","g","b","a","h","s","l","v"],(function(i){if(e[i]&&(t+=1,isNaN(e[i])||(n+=1),"s"===i||"l"===i)){/^\d+%$/.test(e[i])&&(n+=1)}})),t===n&&e},uSe=function(e,t){var n=e.hex?ACe(e.hex):ACe(e),i=n.toHsl(),r=n.toHsv(),o=n.toRgb(),a=n.toHex();return 0===i.s&&(i.h=t||0,r.h=t||0),{hsl:i,hex:"000000"===a&&0===o.a?"transparent":"#".concat(a),rgb:o,hsv:r,oldHue:e.h||t||i.h,source:e.source}};function dSe(e){return dSe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dSe(e)}function hSe(){return hSe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},hSe.apply(this,arguments)}function fSe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function pSe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fSe(Object(n),!0).forEach((function(t){gSe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fSe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gSe(e,t,n){return(t=mSe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vSe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,mSe(i.key),i)}}function mSe(e){var t=function(e,t){if("object"!==dSe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==dSe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dSe(t)?t:String(t)}function ySe(e,t){return ySe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ySe(e,t)}function _Se(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Fc){return!1}}();return function(){var n,i=CSe(e);if(t){var r=CSe(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return bSe(this,n)}}function bSe(e,t){if(t&&("object"===dSe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function CSe(e){return CSe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CSe(e)}var SSe=function(e){var t=function(t){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ySe(e,t)}(a,t);var n,i,r,o=_Se(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this)).handleChange=function(e,n){if(cSe(e)){var i=uSe(e,e.h||t.state.oldHue);t.setState(i),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,i,n),t.props.onChange&&t.props.onChange(i,n)}},t.handleSwatchHover=function(e,n){if(cSe(e)){var i=uSe(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(i,n)}},t.state=pSe({},uSe(e.color,0)),t.debounce=ts()((function(e,t,n){e(t,n)}),100),t}return n=a,r=[{key:"getDerivedStateFromProps",value:function(e,t){return pSe({},uSe(e.color,t.oldHue))}}],(i=[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),v.createElement(e,hSe({},this.props,this.state,{onChange:this.handleChange},t))}}])&&vSe(n.prototype,i),r&&vSe(n,r),Object.defineProperty(n,"prototype",{writable:!1}),a}(v.PureComponent||v.Component);return t.propTypes=pSe({},e.propTypes),t.defaultProps=pSe(pSe({},e.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),t};function wSe(e){return wSe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wSe(e)}function kSe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,xSe(i.key),i)}}function xSe(e){var t=function(e,t){if("object"!==wSe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==wSe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wSe(t)?t:String(t)}function ESe(e,t){return ESe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ESe(e,t)}function TSe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Fc){return!1}}();return function(){var n,i=ISe(e);if(t){var r=ISe(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return NSe(this,n)}}function NSe(e,t){if(t&&("object"===wSe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ISe(e){return ISe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ISe(e)}var DSe=[38,40],LSe=1,OSe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ESe(e,t)}(o,e);var t,n,i,r=TSe(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this)).handleBlur=function(){t.state.blurValue&&t.setState({value:t.state.blurValue,blurValue:null})},t.handleChange=function(e){t.setUpdatedValue(e.target.value,e)},t.handleKeyDown=function(e){var n,i=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(i)&&(n=e.keyCode,DSe.indexOf(n)>-1)){var r=t.getArrowOffset(),o=38===e.keyCode?i+r:i-r;t.setUpdatedValue(o,e)}},t.handleDrag=function(e){if(t.props.dragLabel){var n=Math.round(t.props.value+e.movementX);n>=0&&n<=t.props.dragMax&&t.props.onChange&&t.props.onChange(t.getValueObjectWithLabel(n),e)}},t.handleMouseDown=function(e){t.props.dragLabel&&(e.preventDefault(),t.handleDrag(e),window.addEventListener("mousemove",t.handleDrag),window.addEventListener("mouseup",t.handleMouseUp))},t.handleMouseUp=function(){t.unbindEventListeners()},t.unbindEventListeners=function(){window.removeEventListener("mousemove",t.handleDrag),window.removeEventListener("mouseup",t.handleMouseUp)},t.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},t.inputId="rc-editable-input-".concat(LSe++),t}return t=o,n=[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return(t=xSe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,Pbe.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return v.createElement("div",{style:t.wrap},v.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?v.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}],n&&kSe(t.prototype,n),i&&kSe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(v.PureComponent||v.Component),RSe=OSe;function ASe(e){return ASe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ASe(e)}function MSe(){return MSe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},MSe.apply(this,arguments)}function PSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZSe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,BSe(i.key),i)}}function FSe(e,t,n){return t&&ZSe(e.prototype,t),n&&ZSe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function BSe(e){var t=function(e,t){if("object"!==ASe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==ASe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ASe(t)?t:String(t)}function HSe(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zSe(e,t)}function zSe(e,t){return zSe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zSe(e,t)}function jSe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Fc){return!1}}();return function(){var n,i=WSe(e);if(t){var r=WSe(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return VSe(this,n)}}function VSe(e,t){if(t&&("object"===ASe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function WSe(e){return WSe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WSe(e)}function USe(e){return USe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},USe(e)}function GSe(){return GSe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},GSe.apply(this,arguments)}function KSe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function YSe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KSe(Object(n),!0).forEach((function(t){qSe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KSe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qSe(e,t,n){return t=function(e){var t=function(e,t){if("object"!==USe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==USe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===USe(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $Se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){HSe(r,n);var i=jSe(r);function r(){var e;PSe(this,r);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=i.call.apply(i,[this].concat(n))).state={focus:!1},e.handleFocus=function(){return e.setState({focus:!0})},e.handleBlur=function(){return e.setState({focus:!1})},e}return FSe(r,[{key:"render",value:function(){return v.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},v.createElement(e,MSe({},this.props,this.state)))}}]),r}(v.Component)}((function(e){var t=e.color,n=e.style,i=e.onClick,r=void 0===i?function(){}:i,o=e.onHover,a=e.title,s=void 0===a?t:a,l=e.children,c=e.focus,u=e.focusStyle,d=void 0===u?{}:u,h="transparent"===t,f=(0,Pbe.ZP)({default:{swatch:YSe(YSe({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n),c?d:{})}}),p={};return o&&(p.onMouseOver=function(e){return o(t,e)}),v.createElement("div",GSe({style:f.swatch,onClick:function(e){return r(t,e)},title:s,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&r(t,e)}},p),l,h&&v.createElement(Kbe,{borderRadius:f.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))})),XSe=function(e){var t=e.onChange,n=e.rgb,i=e.hsl,r=e.hex,o=e.disableAlpha,a=(0,Pbe.ZP)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),s=function(e,r){e.hex?function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&ACe(e).isValid()}(e.hex)&&(null===t||void 0===t||t({hex:e.hex,source:"hex"},r)):e.r||e.g||e.b?null===t||void 0===t||t({r:e.r||(null===n||void 0===n?void 0:n.r),g:e.g||(null===n||void 0===n?void 0:n.g),b:e.b||(null===n||void 0===n?void 0:n.b),a:null===n||void 0===n?void 0:n.a,source:"rgb"},r):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,null===t||void 0===t||t({h:null===i||void 0===i?void 0:i.h,s:null===i||void 0===i?void 0:i.s,l:null===i||void 0===i?void 0:i.l,a:e.a,source:"rgb"},r))};return v.createElement("div",{style:a.fields,className:"flexbox-fix"},v.createElement("div",{style:a.double},v.createElement(RSe,{style:{input:a.input,label:a.label},label:"hex",value:null===r||void 0===r?void 0:r.replace("#",""),onChange:s})),v.createElement("div",{style:a.single},v.createElement(RSe,{style:{input:a.input,label:a.label},label:"r",value:null===n||void 0===n?void 0:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:a.single},v.createElement(RSe,{style:{input:a.input,label:a.label},label:"g",value:null===n||void 0===n?void 0:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:a.single},v.createElement(RSe,{style:{input:a.input,label:a.label},label:"b",value:null===n||void 0===n?void 0:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:a.alpha},v.createElement(RSe,{style:{input:a.input,label:a.label},label:"a",value:Math.round(100*((null===n||void 0===n?void 0:n.a)||0)),onChange:s,dragLabel:"true",dragMax:"100"})))};function QSe(e){return QSe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QSe(e)}function JSe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ewe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JSe(Object(n),!0).forEach((function(t){twe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JSe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function twe(e,t,n){return t=function(e){var t=function(e,t){if("object"!==QSe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==QSe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QSe(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nwe=function(e){var t=e.colors,n=e.onClick,i=void 0===n?function(){}:n,r=e.onSwatchHover,o={colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{msBorderRadius:"3px",MozBorderRadius:"3px",OBorderRadius:"3px",WebkitBorderRadius:"3px",borderRadius:"3px",msBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",MozBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",OBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",WebkitBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},a=function(e,t){null===i||void 0===i||i({hex:e,source:"hex"},t)};return v.createElement("div",{style:o.colors,className:"flexbox-fix"},null===t||void 0===t?void 0:t.map((function(e){var t="string"===typeof e?{color:e,title:void 0}:e,n="".concat(t.color).concat((null===t||void 0===t?void 0:t.title)||"");return v.createElement("div",{key:n,style:o.swatchWrap},v.createElement($Se,ewe(ewe({},t),{},{style:o.swatch,onClick:a,onHover:r,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ".concat(t.color)}})))})))};function iwe(e){return iwe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iwe(e)}function rwe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function owe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rwe(Object(n),!0).forEach((function(t){awe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rwe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function awe(e,t,n){return t=function(e){var t=function(e,t){if("object"!==iwe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==iwe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===iwe(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var swe=function(e){var t=e.width,n=e.rgb,i=e.hex,r=e.hsv,o=e.hsl,a=e.onChange,s=e.onSwatchHover,l=e.disableAlpha,c=e.presetColors,u=e.renderers,d=e.styles,h=void 0===d?{}:d,f=e.className,p=void 0===f?"":f,g=(0,Pbe.ZP)(Fbe()({default:owe({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba(".concat(n.r,",").concat(n.g,",").concat(n.b,",").concat(n.a,")"),boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:l});return v.createElement("div",{style:g.picker,className:"sketch-picker ".concat(p)},v.createElement("div",{style:g.saturation},v.createElement(NCe,{style:g.Saturation,hsl:o,hsv:r,onChange:a})),v.createElement("div",{style:g.controls,className:"flexbox-fix"},v.createElement("div",{style:g.sliders},v.createElement("div",{style:g.hue},v.createElement(mCe,{style:g.Hue,hsl:o,onChange:a})),v.createElement("div",{style:g.alpha},v.createElement(aCe,{style:g.Alpha,rgb:n,hsl:o,renderers:u,onChange:a}))),v.createElement("div",{style:g.color},v.createElement(Kbe,null),v.createElement("div",{style:g.activeColor}))),v.createElement(XSe,{rgb:n,hsl:o,hex:i,onChange:a,disableAlpha:l}),v.createElement(nwe,{colors:c,onClick:a,onSwatchHover:s}))};swe.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var lwe=SSe(swe),cwe=["mode","popoverProps"],uwe=["#FF9D4E","#5BD8A6","#5B8FF9","#F7664E","#FF86B7","#2B9E9D","#9270CA","#6DC8EC","#667796","#F6BD16"],dwe=v.forwardRef((function(e,t){var n=e.mode,i=e.popoverProps,r=Ai(e,cwe),o=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-field-color-picker"),a=Sf("#1890ff",{value:r.value,onChange:r.onChange}),s=(0,k.Z)(a,2),l=s[0],c=s[1],u=(0,ES.jsx)("div",{className:o,style:{padding:5,width:48,border:"1px solid #ddd",borderRadius:"2px",cursor:"pointer"},children:(0,ES.jsx)("div",{style:{backgroundColor:l,width:36,height:14,borderRadius:"2px"}})});return(0,v.useImperativeHandle)(t,(function(){})),"read"===n?u:(0,ES.jsx)(uS,(0,Ft.Z)((0,Ft.Z)({trigger:"click",placement:"right"},i),{},{content:(0,ES.jsx)("div",{style:{margin:"-12px -16px"},children:(0,ES.jsx)(lwe,(0,Ft.Z)((0,Ft.Z)({},r),{},{presetColors:r.colors||r.presetColors||uwe,color:l,onChange:function(e){var t=e.hex,n=e.rgb,i=n.r,r=n.g,o=n.b,a=n.a;c(a&&a<1?"rgba(".concat(i,", ").concat(r,", ").concat(o,", ").concat(a,")"):t)}}))}),children:u}))})),hwe=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.renderFormItem,a=e.fieldProps;if("read"===i){var s=(0,ES.jsx)(dwe,{value:n,mode:"read",ref:t});return r?r(n,(0,Ft.Z)({mode:i},a),s):s}if("edit"===i||"update"===i){var l=(0,ES.jsx)(dwe,(0,Ft.Z)({ref:t},a));return o?o(n,(0,Ft.Z)({mode:i},a),l):l}return null},fwe=v.forwardRef(hwe);ux().extend(BH());var pwe=function(e){return!(null===e||void 0===e||!e._isAMomentObject)},gwe=function e(t,n){return Qve(t)||ux().isDayjs(t)||pwe(t)?pwe(t)?ux()(t):t:Array.isArray(t)?t.map((function(t){return e(t,n)})):"number"===typeof t?ux()(t):ux()(t,n)};ux().extend(RH());var vwe=function(e,t){var n=e.text,i=e.mode,r=e.format,o=e.label,a=e.light,s=e.render,l=e.renderFormItem,c=e.plain,u=e.showTime,d=e.fieldProps,h=e.picker,f=e.bordered,p=e.lightLabel,g=zve(),m=(0,v.useState)(!1),y=(0,k.Z)(m,2),_=y[0],b=y[1];if("read"===i){var C=function(e,t){return e?"function"===typeof t?t(ux()(e)):ux()(e).format(t||"YYYY-MM-DD"):"-"}(n,d.format||r);return s?s(n,(0,Ft.Z)({mode:i},d),(0,ES.jsx)(ES.Fragment,{children:C})):(0,ES.jsx)(ES.Fragment,{children:C})}if("edit"===i||"update"===i){var S,w=d.disabled,x=d.value,E=d.placeholder,T=void 0===E?g.getMessage("tableForm.selectPlaceholder","\u8bf7\u9009\u62e9"):E,N=gwe(x);return S=a?(0,ES.jsx)(w_e,{label:o,onClick:function(){var e;null===d||void 0===d||null===(e=d.onOpenChange)||void 0===e||e.call(d,!0),b(!0)},style:N?{paddingInlineEnd:0}:void 0,disabled:w,value:N||_?(0,ES.jsx)(Gj,(0,Ft.Z)((0,Ft.Z)({picker:h,showTime:u,format:r,ref:t},d),{},{value:N,onOpenChange:function(e){var t;b(e),null===d||void 0===d||null===(t=d.onOpenChange)||void 0===t||t.call(d,e)},bordered:!1,open:_})):void 0,allowClear:!1,downIcon:!N&&!_&&void 0,bordered:f,ref:p}):(0,ES.jsx)(Gj,(0,Ft.Z)((0,Ft.Z)({picker:h,showTime:u,format:r,placeholder:T,bordered:void 0===c||!c,ref:t},d),{},{value:N})),l?l(n,(0,Ft.Z)({mode:i},d),S):S}return null},mwe=v.forwardRef(vwe),ywe=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.placeholder,a=e.renderFormItem,s=e.fieldProps,l=zve(),c=o||l.getMessage("tableForm.inputPlaceholder","\u8bf7\u8f93\u5165"),u=(0,v.useCallback)((function(e){var t,n=null!==e&&void 0!==e?e:void 0;return s.stringMode||"string"!==typeof n||(n=Number(n)),"number"!==typeof n||Qve(n)||Qve(s.precision)||(n=Number(n.toFixed(s.precision))),null===s||void 0===s||null===(t=s.onChange)||void 0===t?void 0:t.call(s,n)}),[s]);if("read"===i){var d,h={};null!==s&&void 0!==s&&s.precision&&(h={minimumFractionDigits:Number(s.precision),maximumFractionDigits:Number(s.precision)});var f=new Intl.NumberFormat(void 0,(0,Ft.Z)((0,Ft.Z)({},h),(null===s||void 0===s?void 0:s.intlProps)||{})).format(Number(n)),p=(0,ES.jsx)("span",{ref:t,children:(null===s||void 0===s||null===(d=s.formatter)||void 0===d?void 0:d.call(s,f))||f});return r?r(n,(0,Ft.Z)({mode:i},s),p):p}if("edit"===i||"update"===i){var g=(0,ES.jsx)(vZ,(0,Ft.Z)((0,Ft.Z)({ref:t,min:0,placeholder:c},hme(s,["onChange"])),{},{onChange:u}));return a?a(n,(0,Ft.Z)({mode:i},s),g):g}return null},_we=v.forwardRef(ywe),bwe=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.placeholder,a=e.renderFormItem,s=e.fieldProps,l=e.separator,c=void 0===l?"~":l,u=e.separatorWidth,d=void 0===u?30:u,h=s.value,f=s.defaultValue,p=s.onChange,g=s.id,v=zve(),m=Sf((function(){return f}),{value:h,onChange:p}),y=(0,k.Z)(m,2),b=y[0],C=y[1];if("read"===i){var S=function(e){var t,n=new Intl.NumberFormat(void 0,(0,Ft.Z)({minimumSignificantDigits:2},(null===s||void 0===s?void 0:s.intlProps)||{})).format(Number(e));return(null===s||void 0===s||null===(t=s.formatter)||void 0===t?void 0:t.call(s,n))||n},w=(0,ES.jsxs)("span",{ref:t,children:[S(n[0])," ",c," ",S(n[1])]});return r?r(n,(0,Ft.Z)({mode:i},s),w):w}if("edit"===i||"update"===i){var x=function(e,t){var n=(0,_.Z)(b||[]);n[e]=null===t?void 0:t,C(n)},E=(null===s||void 0===s?void 0:s.placeholder)||o||[v.getMessage("tableForm.inputPlaceholder","\u8bf7\u8f93\u5165"),v.getMessage("tableForm.inputPlaceholder","\u8bf7\u8f93\u5165")],T=function(e){return Array.isArray(E)?E[e]:E},N=(0,ES.jsxs)(Zy.Group,{compact:!0,onBlur:function(){if(Array.isArray(b)){var e=(0,k.Z)(b,2),t=e[0],n=e[1];"number"===typeof t&&"number"===typeof n&&t>n?C([n,t]):void 0===t&&void 0===n&&C(void 0)}},children:[(0,ES.jsx)(vZ,(0,Ft.Z)((0,Ft.Z)({},s),{},{placeholder:T(0),id:null!==g&&void 0!==g?g:"".concat(g,"-0"),style:{width:"calc((100% - ".concat(d,"px) / 2)")},value:null===b||void 0===b?void 0:b[0],defaultValue:null===f||void 0===f?void 0:f[0],onChange:function(e){return x(0,e)}})),(0,ES.jsx)(Zy,{style:{width:d,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:"#FFF"},placeholder:c,disabled:!0}),(0,ES.jsx)(vZ,(0,Ft.Z)((0,Ft.Z)({},s),{},{placeholder:T(1),id:null!==g&&void 0!==g?g:"".concat(g,"-1"),style:{width:"calc((100% - ".concat(d,"px) / 2)"),borderInlineStart:0},value:null===b||void 0===b?void 0:b[1],defaultValue:null===f||void 0===f?void 0:f[1],onChange:function(e){return x(1,e)}}))]});return a?a(n,(0,Ft.Z)({mode:i},s),N):N}return null},Cwe=v.forwardRef(bwe),Swe=n(40130),wwe=n.n(Swe);ux().extend(wwe());var kwe=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.renderFormItem,a=e.format,s=e.fieldProps,l=zve();if("read"===i){var c=(0,ES.jsx)(Vf,{title:ux()(n).format((null===s||void 0===s?void 0:s.format)||a||"YYYY-MM-DD HH:mm:ss"),children:ux()(n).fromNow()});return r?r(n,(0,Ft.Z)({mode:i},s),(0,ES.jsx)(ES.Fragment,{children:c})):(0,ES.jsx)(ES.Fragment,{children:c})}if("edit"===i||"update"===i){var u=l.getMessage("tableForm.selectPlaceholder","\u8bf7\u9009\u62e9"),d=gwe(s.value),h=(0,ES.jsx)(Gj,(0,Ft.Z)((0,Ft.Z)({ref:t,placeholder:u,showTime:!0},s),{},{value:d}));return o?o(n,(0,Ft.Z)({mode:i},s),h):h}return null},xwe=v.forwardRef(kwe);function Ewe(e,t,n,i){var r=t+n,o=(n-i)/2;if(n>i){if(t>0)return(0,N.Z)({},e,o);if(t<0&&r<i)return(0,N.Z)({},e,-o)}else if(t<0||r>i)return(0,N.Z)({},e,t<0?o:-o);return{}}function Twe(e,t,n,i){var r={width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight},o=r.width,a=r.height,s=null;return e<=o&&t<=a?s={x:0,y:0}:(e>o||t>a)&&(s=(0,Ft.Z)((0,Ft.Z)({},Ewe("x",n,e,o)),Ewe("y",i,t,a))),s}var Nwe=["visible","onVisibleChange","getContainer","current","countRender"],Iwe=v.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),Dwe=Iwe.Provider,Lwe=function(e){var t=e.previewPrefixCls,n=void 0===t?"rc-image-preview":t,i=e.children,r=e.icons,o=void 0===r?{}:r,a=e.preview,s="object"===(0,Bt.Z)(a)?a:{},l=s.visible,c=void 0===l?void 0:l,u=s.onVisibleChange,d=void 0===u?void 0:u,h=s.getContainer,f=void 0===h?void 0:h,p=s.current,g=void 0===p?0:p,m=s.countRender,y=void 0===m?void 0:m,_=Ai(s,Nwe),b=(0,v.useState)(new Map),C=(0,k.Z)(b,2),S=C[0],w=C[1],x=(0,v.useState)(),E=(0,k.Z)(x,2),T=E[0],N=E[1],I=Sf(!!c,{value:c,onChange:d}),D=(0,k.Z)(I,2),L=D[0],O=D[1],R=(0,v.useState)(null),A=(0,k.Z)(R,2),M=A[0],P=A[1],Z=void 0!==c,F=Array.from(S.keys())[g],B=new Map(Array.from(S).filter((function(e){return!!(0,k.Z)(e,2)[1].canPreview})).map((function(e){var t=(0,k.Z)(e,2);return[t[0],t[1].url]})));return v.useEffect((function(){N(F)}),[F]),v.useEffect((function(){!L&&Z&&N(F)}),[F,Z,L]),v.createElement(Dwe,{value:{isPreviewGroup:!0,previewUrls:B,setPreviewUrls:w,current:T,setCurrent:N,setShowPreview:O,setMousePosition:P,registerImage:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=function(){w((function(t){var n=new Map(t);return n.delete(e)?n:t}))};return w((function(i){return new Map(i).set(e,{url:t,canPreview:n})})),i}}},i,v.createElement(Bwe,Zt({"aria-hidden":!L,visible:L,prefixCls:n,onClose:function(e){e.stopPropagation(),O(!1),P(null)},mousePosition:M,src:B.get(T),icons:o,getContainer:f,countRender:y},_)))},Owe=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","getContainer","countRender","scaleStep","transitionName","maskTransitionName"],Rwe=v.useState,Awe=v.useEffect,Mwe=v.useCallback,Pwe=v.useRef,Zwe=v.useContext,Fwe={x:0,y:0},Bwe=function(e){var t,n=e.prefixCls,i=e.src,r=e.alt,o=e.onClose,a=(e.afterClose,e.visible),s=e.icons,l=void 0===s?{}:s,c=e.rootClassName,u=e.getContainer,d=e.countRender,h=e.scaleStep,f=void 0===h?.5:h,p=e.transitionName,g=void 0===p?"zoom":p,m=e.maskTransitionName,y=void 0===m?"fade":m,_=Ai(e,Owe),b=l.rotateLeft,C=l.rotateRight,S=l.zoomIn,w=l.zoomOut,x=l.close,E=l.left,T=l.right,I=Rwe(1),D=(0,k.Z)(I,2),L=D[0],O=D[1],R=Rwe(0),A=(0,k.Z)(R,2),M=A[0],P=A[1],Z=function(e){var t=v.useRef(null),n=v.useState(e),i=(0,k.Z)(n,2),r=i[0],o=i[1],a=v.useRef([]);return v.useEffect((function(){return function(){return t.current&&oc.cancel(t.current)}}),[]),[r,function(e){null===t.current&&(a.current=[],t.current=oc((function(){o((function(e){var n=e;return a.current.forEach((function(e){n=(0,Ft.Z)((0,Ft.Z)({},n),e)})),t.current=null,n}))}))),a.current.push(e)}]}(Fwe),F=(0,k.Z)(Z,2),B=F[0],H=F[1],z=Pwe(),j=Pwe({originX:0,originY:0,deltaX:0,deltaY:0}),V=Rwe(!1),W=(0,k.Z)(V,2),U=W[0],G=W[1],K=Zwe(Iwe),Y=K.previewUrls,q=K.current,$=K.isPreviewGroup,X=K.setCurrent,Q=Y.size,J=Array.from(Y.keys()),ee=J.indexOf(q),te=$?Y.get(q):i,ne=$&&Q>1,ie=$&&Q>=1,re=Rwe({wheelDirection:0}),oe=(0,k.Z)(re,2),ae=oe[0],se=oe[1],le=function(){O((function(e){return e+f})),H(Fwe)},ce=function(){L>1&&O((function(e){return e-f})),H(Fwe)},ue=Ja()((0,N.Z)({},"".concat(n,"-moving"),U)),de="".concat(n,"-operations-operation"),he="".concat(n,"-operations-icon"),fe=[{icon:x,onClick:o,type:"close"},{icon:S,onClick:le,type:"zoomIn"},{icon:w,onClick:ce,type:"zoomOut",disabled:1===L},{icon:C,onClick:function(){P((function(e){return e+90}))},type:"rotateRight"},{icon:b,onClick:function(){P((function(e){return e-90}))},type:"rotateLeft"}],pe=function(){if(a&&U){var e=z.current.offsetWidth*L,t=z.current.offsetHeight*L,n=z.current.getBoundingClientRect(),i=n.left,r=n.top,o=M%180!==0;G(!1);var s=Twe(o?t:e,o?e:t,i,r);s&&H((0,Ft.Z)({},s))}},ge=function(e){a&&U&&H({x:e.pageX-j.current.deltaX,y:e.pageY-j.current.deltaY})},ve=function(e){if(a){e.preventDefault();var t=e.deltaY;se({wheelDirection:t})}},me=Mwe((function(e){a&&ne&&(e.keyCode===vv.LEFT?ee>0&&X(J[ee-1]):e.keyCode===vv.RIGHT&&ee<Q-1&&X(J[ee+1]))}),[ee,Q,J,X,ne,a]);Awe((function(){var e=ae.wheelDirection;e>0?ce():e<0&&le()}),[ae]),Awe((function(){var e,t,n=gd(window,"mouseup",pe,!1),i=gd(window,"mousemove",ge,!1),r=gd(window,"wheel",ve,{passive:!1}),o=gd(window,"keydown",me,!1);try{window.top!==window.self&&(e=gd(window.top,"mouseup",pe,!1),t=gd(window.top,"mousemove",ge,!1))}catch(a){"[rc-image] ".concat(a)}return function(){var a,s;n.remove(),i.remove(),r.remove(),o.remove(),null===(a=e)||void 0===a||a.remove(),null===(s=t)||void 0===s||s.remove()}}),[a,U,me]);var ye=v.createElement(v.Fragment,null,ne&&v.createElement("div",{className:Ja()("".concat(n,"-switch-left"),(0,N.Z)({},"".concat(n,"-switch-left-disabled"),0===ee)),onClick:function(e){e.preventDefault(),e.stopPropagation(),ee>0&&X(J[ee-1])}},E),ne&&v.createElement("div",{className:Ja()("".concat(n,"-switch-right"),(0,N.Z)({},"".concat(n,"-switch-right-disabled"),ee===Q-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),ee<Q-1&&X(J[ee+1])}},T),v.createElement("ul",{className:"".concat(n,"-operations")},ie&&v.createElement("li",{className:"".concat(n,"-operations-progress")},null!==(t=null===d||void 0===d?void 0:d(ee+1,Q))&&void 0!==t?t:"".concat(ee+1," / ").concat(Q)),fe.map((function(e){var t,i=e.icon,r=e.onClick,o=e.type,a=e.disabled;return v.createElement("li",{className:Ja()(de,(t={},(0,N.Z)(t,"".concat(n,"-operations-operation-").concat(o),!0),(0,N.Z)(t,"".concat(n,"-operations-operation-disabled"),!!a),t)),onClick:r,key:o},v.isValidElement(i)?v.cloneElement(i,{className:he}):i)}))));return v.createElement(v.Fragment,null,v.createElement(Mv,Zt({transitionName:g,maskTransitionName:y,closable:!1,keyboard:!0,prefixCls:n,onClose:o,afterClose:function(){O(1),P(0),H(Fwe)},visible:a,wrapClassName:ue,rootClassName:c,getContainer:u},_),v.createElement("div",{className:"".concat(n,"-img-wrapper"),style:{transform:"translate3d(".concat(B.x,"px, ").concat(B.y,"px, 0)")}},v.createElement("img",{width:e.width,height:e.height,onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),j.current.deltaX=e.pageX-B.x,j.current.deltaY=e.pageY-B.y,j.current.originX=B.x,j.current.originY=B.y,G(!0))},onDoubleClick:function(){a&&(1!==L&&O(1),B.x===Fwe.x&&B.y===Fwe.y||H(Fwe))},ref:z,className:"".concat(n,"-img"),src:te,alt:r,style:{transform:"scale3d(".concat(L,", ").concat(L,", 1) rotate(").concat(M,"deg)")}}))),v.createElement(xc,{visible:a,motionName:y},(function(e){var t=e.className,i=e.style;return v.createElement(pv,{open:!0,getContainer:u},v.createElement("div",{className:Ja()("".concat(n,"-operations-wrapper"),t,c),style:i},ye))})))},Hwe=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap","draggable"],zwe=["src","visible","onVisibleChange","getContainer","mask","maskClassName","icons","scaleStep"],jwe=0,Vwe=function(e){var t,n=e.src,i=e.alt,r=e.onPreviewClose,o=e.prefixCls,a=void 0===o?"rc-image":o,s=e.previewPrefixCls,l=void 0===s?"".concat(a,"-preview"):s,c=e.placeholder,u=e.fallback,d=e.width,h=e.height,f=e.style,p=e.preview,g=void 0===p||p,m=e.className,y=e.onClick,_=e.onError,b=e.wrapperClassName,C=e.wrapperStyle,S=e.rootClassName,w=e.crossOrigin,x=e.decoding,E=e.loading,T=e.referrerPolicy,I=e.sizes,D=e.srcSet,L=e.useMap,O=e.draggable,R=Ai(e,Hwe),A=c&&!0!==c,M="object"===(0,Bt.Z)(g)?g:{},P=M.src,Z=M.visible,F=void 0===Z?void 0:Z,B=M.onVisibleChange,H=void 0===B?r:B,z=M.getContainer,j=void 0===z?void 0:z,V=M.mask,W=M.maskClassName,U=M.icons,G=M.scaleStep,K=Ai(M,zwe),Y=null!==P&&void 0!==P?P:n,q=void 0!==F,$=Sf(!!F,{value:F,onChange:H}),X=(0,k.Z)($,2),Q=X[0],J=X[1],ee=(0,v.useState)(A?"loading":"normal"),te=(0,k.Z)(ee,2),ne=te[0],ie=te[1],re=(0,v.useState)(null),oe=(0,k.Z)(re,2),ae=oe[0],se=oe[1],le="error"===ne,ce=v.useContext(Iwe),ue=ce.isPreviewGroup,de=ce.setCurrent,he=ce.setShowPreview,fe=ce.setMousePosition,pe=ce.registerImage,ge=v.useState((function(){return jwe+=1})),ve=(0,k.Z)(ge,1)[0],me=!!g,ye=v.useRef(!1),_e=function(){ie("normal")};v.useEffect((function(){return pe(ve,Y)}),[]),v.useEffect((function(){pe(ve,Y,me)}),[Y,me]),v.useEffect((function(){le&&ie("normal"),A&&!ye.current&&ie("loading")}),[n]);var be=Ja()(a,b,S,(0,N.Z)({},"".concat(a,"-error"),le)),Ce=le&&u?u:Y,Se={crossOrigin:w,decoding:x,draggable:O,loading:E,referrerPolicy:T,sizes:I,srcSet:D,useMap:L,alt:i,className:Ja()("".concat(a,"-img"),(0,N.Z)({},"".concat(a,"-img-placeholder"),!0===c),m),style:(0,Ft.Z)({height:h},f)};return v.createElement(v.Fragment,null,v.createElement("div",Zt({},R,{className:be,onClick:me?function(e){if(!q){var t=DD(e.target),n=t.left,i=t.top;ue?(de(ve),fe({x:n,y:i})):se({x:n,y:i})}ue?he(!0):J(!0),y&&y(e)}:y,style:(0,Ft.Z)({width:d,height:h},C)}),v.createElement("img",Zt({},Se,{ref:function(e){ye.current=!1,"loading"===ne&&null!==e&&void 0!==e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(ye.current=!0,_e())}},le&&u?{src:u}:{onLoad:_e,onError:function(e){_&&_(e),ie("error")},src:n},{width:d,height:h})),"loading"===ne&&v.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),V&&me&&v.createElement("div",{className:Ja()("".concat(a,"-mask"),W),style:{display:"none"===(null===(t=Se.style)||void 0===t?void 0:t.display)?"none":void 0}},V)),!ue&&me&&v.createElement(Bwe,Zt({"aria-hidden":!Q,visible:Q,prefixCls:l,onClose:function(e){e.stopPropagation(),J(!1),q||se(null)},mousePosition:ae,src:Ce,alt:i,getContainer:j,icons:U,scaleStep:G,rootClassName:S},K)))};Vwe.PreviewGroup=Lwe,Vwe.displayName="Image";var Wwe=Vwe,Uwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Gwe=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Uwe}))};Gwe.displayName="RotateLeftOutlined";var Kwe=v.forwardRef(Gwe),Ywe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},qwe=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Ywe}))};qwe.displayName="RotateRightOutlined";var $we=v.forwardRef(qwe),Xwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Qwe=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Xwe}))};Qwe.displayName="ZoomInOutlined";var Jwe=v.forwardRef(Qwe),eke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},tke=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:eke}))};tke.displayName="ZoomOutOutlined";var nke=v.forwardRef(tke),ike=function(e){return{position:e||"absolute",inset:0}},rke=function(e){var t=e.previewCls,n=e.modalMaskBg,i=e.paddingSM,r=e.imagePreviewOperationDisabledColor,o=e.zIndexPopup,a=e.motionDurationSlow,s=new oa(n).setAlpha(.1),l=s.clone().setAlpha(.2);return(0,N.Z)({},t+"-operations",Zt(Zt({},Fa(e)),{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:o+1,display:"flex",flexDirection:"row-reverse",alignItems:"center",width:"100%",color:e.imagePreviewOperationColor,listStyle:"none",background:s.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:i,padding:i,cursor:"pointer",transition:"all "+a,"&:hover":{background:l.toRgbString()},"&-disabled":{color:r,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.imagePreviewOperationSize}}))},oke=function(e){var t,n,i=e.modalMaskBg,r=e.iconCls,o=e.imagePreviewOperationDisabledColor,a=e.previewCls,s=e.zIndexPopup,l=e.motionDurationSlow,c=new oa(i).setAlpha(.1),u=c.clone().setAlpha(.2);return n={},(0,N.Z)(n,a+"-switch-left, "+a+"-switch-right",(t={position:"fixed",insetBlockStart:"50%",zIndex:s+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.imagePreviewOperationColor,background:c.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:"all "+l,pointerEvents:"auto","&:hover":{background:u.toRgbString()}},(0,N.Z)(t,"&-disabled",{"&, &:hover":(0,N.Z)({color:o,background:"transparent",cursor:"not-allowed"},"> "+r,{cursor:"not-allowed"})}),(0,N.Z)(t,"> "+r,{fontSize:e.imagePreviewOperationSize}),t)),(0,N.Z)(n,a+"-switch-left",{insetInlineStart:e.marginSM}),(0,N.Z)(n,a+"-switch-right",{insetInlineEnd:e.marginSM}),n},ake=function(e){var t,n=e.motionEaseOut,i=e.previewCls,r=e.motionDurationSlow,o=e.componentCls;return[(0,N.Z)({},o+"-preview-root",(t={},(0,N.Z)(t,i,{height:"100%",textAlign:"center",pointerEvents:"none"}),(0,N.Z)(t,i+"-body",Zt(Zt({},ike()),{overflow:"hidden"})),(0,N.Z)(t,i+"-img",{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:"transform "+r+" "+n+" 0s",userSelect:"none",pointerEvents:"auto","&-wrapper":Zt(Zt({},ike()),{transition:"transform "+r+" "+n+" 0s","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})}),(0,N.Z)(t,i+"-moving",(0,N.Z)({},i+"-preview-img",{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}})),t)),(0,N.Z)({},o+"-preview-root",(0,N.Z)({},i+"-wrap",{zIndex:e.zIndexPopup})),{"&":[rke(e),oke(e)]}]},ske=function(e){var t,n=e.componentCls;return(0,N.Z)({},n,(t={position:"relative",display:"inline-block"},(0,N.Z)(t,n+"-img",{width:"100%",height:"auto",verticalAlign:"middle"}),(0,N.Z)(t,n+"-img-placeholder",{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"}),(0,N.Z)(t,n+"-mask",Zt({},function(e){var t=e.iconCls,n=e.motionDurationSlow,i=e.paddingXXS,r=e.marginXXS,o=e.prefixCls;return(0,N.Z)({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new oa("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:"opacity "+n},"."+o+"-mask-info",Zt(Zt({},Za),(0,N.Z)({padding:"0 "+i+"px"},t,{marginInlineEnd:r})))}(e))),(0,N.Z)(t,n+"-mask:hover",{opacity:1}),(0,N.Z)(t,n+"-placeholder",Zt({},ike())),t))},lke=function(e){var t,n=e.previewCls;return t={},(0,N.Z)(t,n+"-root",du(e,"zoom")),(0,N.Z)(t,"&",Fv(e,!0)),t},cke=hs("Image",(function(e){var t=new oa(e.colorTextLightSolid),n=e.componentCls+"-preview",i=cs(e,{previewCls:n,imagePreviewOperationColor:t.toRgbString(),imagePreviewOperationDisabledColor:new oa(t).setAlpha(.25).toRgbString(),modalMaskBg:new oa("#000").setAlpha(.45).toRgbString(),imagePreviewOperationSize:1.5*e.fontSizeIcon,imagePreviewSwitchSize:e.controlHeightLG});return[ske(i),ake(i),Hv(cs(i,{componentCls:n})),lke(i)]}),(function(e){return{zIndexPopup:e.zIndexPopupBase+80}})),uke=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},dke={rotateLeft:v.createElement(Kwe,null),rotateRight:v.createElement($we,null),zoomIn:v.createElement(Jwe,null),zoomOut:v.createElement(nke,null),close:v.createElement(Ap,null),left:v.createElement(al,null),right:v.createElement(cl,null)},hke=function(e){var t=e.previewPrefixCls,n=e.preview,i=uke(e,["previewPrefixCls","preview"]),r=v.useContext(wa).getPrefixCls,o=r("image",t),a=o+"-preview",s=r(),l=cke(o),c=(0,k.Z)(l,2),u=c[0],d=c[1],h=v.useMemo((function(){if(!1===n)return n;var e="object"===(0,Bt.Z)(n)?n:{};return Zt(Zt({},e),{transitionName:Lc(s,"zoom",e.transitionName),maskTransitionName:Lc(s,"fade",e.maskTransitionName),rootClassName:d})}),[n]);return u(v.createElement(Wwe.PreviewGroup,Zt({preview:h,previewPrefixCls:a,icons:dke},i)))},fke=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},pke=function(e){var t=e.prefixCls,n=e.preview,i=e.rootClassName,r=fke(e,["prefixCls","preview","rootClassName"]),o=(0,v.useContext)(wa),a=o.getPrefixCls,s=o.locale,l=void 0===s?vo:s,c=o.getPopupContainer,u=a("image",t),d=a(),h=l.Image||vo.Image,f=cke(u),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=Ja()(i,m),_=v.useMemo((function(){if(!1===n)return n;var e="object"===(0,Bt.Z)(n)?n:{},t=e.getContainer,i=fke(e,["getContainer"]);return Zt(Zt({mask:v.createElement("div",{className:u+"-mask-info"},v.createElement(Jm,null),null===h||void 0===h?void 0:h.preview),icons:dke},i),{getContainer:t||c,transitionName:Lc(d,"zoom",e.transitionName),maskTransitionName:Lc(d,"fade",e.maskTransitionName)})}),[n,h]);return g(v.createElement(Wwe,Zt({prefixCls:""+u,preview:_,rootClassName:y},r)))};pke.PreviewGroup=hke;var gke=pke,vke=v.forwardRef((function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.renderFormItem,a=e.fieldProps,s=e.placeholder,l=e.width,c=zve(),u=s||c.getMessage("tableForm.inputPlaceholder","\u8bf7\u8f93\u5165");if("read"===i){var d=(0,ES.jsx)(gke,(0,Ft.Z)({ref:t,width:l||32,src:n},a));return r?r(n,(0,Ft.Z)({mode:i},a),d):d}if("edit"===i||"update"===i){var h=(0,ES.jsx)(Zy,(0,Ft.Z)({ref:t,placeholder:u},a));return o?o(n,(0,Ft.Z)({mode:i},a),h):h}return null})),mke=vke,yke=function(e,t){var n,i=e.border,r=void 0!==i&&i,o=e.children,a=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-field-index-column"),s=Ove("IndexColumn",(function(){return(0,N.Z)({},".".concat(a),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})})),l=s.wrapSSR,c=s.hashId;return l((0,ES.jsx)("div",{ref:t,className:Ja()(a,c,(n={},(0,N.Z)(n,"".concat(a,"-border"),r),(0,N.Z)(n,"top-three",o>3),n)),children:o}))},_ke=v.forwardRef(yke),bke=["contentRender","numberFormatOptions","numberPopoverRender","open"],Cke=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],Ske={default:new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":{style:"currency",currency:"USD"},"ru-RU":{style:"currency",currency:"RUB"},"ms-MY":{style:"currency",currency:"MYR"},"sr-RS":{style:"currency",currency:"RSD"},"pt-BR":{style:"currency",currency:"BRL"}},wke=function(e,t,n,i){var r=null===t||void 0===t?void 0:t.toString().replaceAll(",","");if("string"===typeof r){var o=Number(r);if(Number.isNaN(o))return r;r=o}if(!r&&0!==r)return"";try{var a=new Intl.NumberFormat(e||"zh-Hans-CN",(0,Ft.Z)((0,Ft.Z)({},Ske[e||"zh-Hans-CN"]||Ske["zh-Hans-CN"]),{},{maximumFractionDigits:n},i)).format(r),s=!1===e,l=a||"",c=(0,k.Z)(l,1)[0];return["+","-"].includes(c)?"".concat(c).concat(a.substring(s?2:1)):a.substring(s?1:0)}catch(u){return r}},kke=v.forwardRef((function(e,t){var n=e.contentRender,i=(e.numberFormatOptions,e.numberPopoverRender,e.open),r=Ai(e,bke),o=Sf((function(){return r.defaultValue}),{value:r.value,onChange:r.onChange}),a=(0,k.Z)(o,2),s=a[0],l=a[1],c=null===n||void 0===n?void 0:n((0,Ft.Z)((0,Ft.Z)({},r),{},{value:s})),u=Qfe(!!c&&i);return(0,ES.jsx)(uS,(0,Ft.Z)((0,Ft.Z)({placement:"topLeft"},u),{},{trigger:["focus","click"],content:c,getPopupContainer:function(e){return(null===e||void 0===e?void 0:e.parentElement)||document.body},children:(0,ES.jsx)(vZ,(0,Ft.Z)((0,Ft.Z)({ref:t},r),{},{value:s,onChange:l}))}))})),xke=function(e,t){var n,i,r=e.text,o=e.mode,a=e.render,s=e.renderFormItem,l=e.fieldProps,c=(e.proFieldKey,e.plain,e.valueEnum,e.placeholder),u=e.locale,d=void 0===u?null!==(n=l.customSymbol)&&void 0!==n?n:"zh-Hans-CN":u,h=e.customSymbol,f=void 0===h?l.customSymbol:h,p=e.numberFormatOptions,g=void 0===p?null===l||void 0===l?void 0:l.numberFormatOptions:p,m=e.numberPopoverRender,y=void 0===m?(null===l||void 0===l?void 0:l.numberPopoverRender)||!1:m,_=Ai(e,Cke),b=null!==(i=null===l||void 0===l?void 0:l.precision)&&void 0!==i?i:2,C=zve();d&&fve[d]&&(C=fve[d]);var S=c||C.getMessage("tableForm.inputPlaceholder","\u8bf7\u8f93\u5165"),w=(0,v.useMemo)((function(){return f||(!1!==_.moneySymbol&&!1!==l.moneySymbol?C.getMessage("moneySymbol","\uffe5"):void 0)}),[f,l.moneySymbol,C,_.moneySymbol]),x=(0,v.useCallback)((function(e){var t=new RegExp("\\B(?=(\\d{".concat(3+Math.max(b-2,0),"})+(?!\\d))"),"g"),n=String(e).split("."),i=(0,k.Z)(n,2),r=i[0],o=i[1],a=r.replace(t,","),s="";return o&&b>0&&(s=".".concat(o.slice(0,void 0===b?2:b))),"".concat(a).concat(s)}),[b]);if("read"===o){var E=(0,ES.jsx)("span",{ref:t,children:wke(!!w&&d,r,b,null!==g&&void 0!==g?g:l.numberFormatOptions)});return a?a(r,(0,Ft.Z)({mode:o},l),E):E}if("edit"===o||"update"===o){var T=(0,ES.jsx)(kke,(0,Ft.Z)({contentRender:function(e){if(!1===y)return null;if(!e.value)return null;var t=wke(!!w&&d,"".concat(x(e.value)),b,(0,Ft.Z)((0,Ft.Z)({},g),{},{notation:"compact"}));return"function"===typeof y?null===y||void 0===y?void 0:y(e,t):t},ref:t,precision:b,formatter:function(e){return e&&w?"".concat(w," ").concat(x(e)):null===e||void 0===e?void 0:e.toString()},parser:function(e){return w&&e?e.replace(new RegExp("\\".concat(w,"\\s?|(,*)"),"g"),""):e},placeholder:S},hme(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])));return s?s(r,(0,Ft.Z)({mode:o},l),T):T}return null},Eke=v.forwardRef(xke),Tke=function(e){return e.map((function(e,t){var n;return v.isValidElement(e)?v.cloneElement(e,(0,Ft.Z)((0,Ft.Z)({key:t},null===e||void 0===e?void 0:e.props),{},{style:(0,Ft.Z)({flex:1},null===e||void 0===e||null===(n=e.props)||void 0===n?void 0:n.style)})):(0,ES.jsx)(v.Fragment,{children:e},t)}))},Nke=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.fieldProps,a=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-field-option");if((0,v.useImperativeHandle)(t,(function(){return{}})),r){var s=r(n,(0,Ft.Z)({mode:i},o),(0,ES.jsx)(ES.Fragment,{}));return!s||(null===s||void 0===s?void 0:s.length)<1||!Array.isArray(s)?null:(0,ES.jsx)("div",{style:{display:"flex",gap:16,alignItems:"center"},className:a,children:Tke(s)})}return n&&Array.isArray(n)?(0,ES.jsx)("div",{style:{display:"flex",gap:16,alignItems:"center"},className:a,children:Tke(n)}):v.isValidElement(n)?n:null},Ike=v.forwardRef(Nke),Dke=function(e,t){return v.createElement(jye,Zt({},e,{ref:t,icon:Xm}))};var Lke=v.forwardRef(Dke),Oke=function(e,t){return v.createElement(jye,Zt({},e,{ref:t,icon:Ym}))};var Rke=v.forwardRef(Oke),Ake=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],Mke=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.renderFormItem,a=e.fieldProps,s=(e.proFieldKey,Ai(e,Ake)),l=zve(),c=Sf((function(){return s.open||s.visible||!1}),{value:s.open||s.visible,onChange:s.onOpenChange||s.onVisible}),u=(0,k.Z)(c,2),d=u[0],h=u[1];if("read"===i){var f=(0,ES.jsx)(ES.Fragment,{children:"-"});return n&&(f=(0,ES.jsxs)(Vy,{children:[(0,ES.jsx)("span",{ref:t,children:d?n:"\uff0a \uff0a \uff0a \uff0a \uff0a"}),(0,ES.jsx)("a",{onClick:function(){return h(!d)},children:d?(0,ES.jsx)(Lke,{}):(0,ES.jsx)(Rke,{})})]})),r?r(n,(0,Ft.Z)({mode:i},a),f):f}if("edit"===i||"update"===i){var p=(0,ES.jsx)(Zy.Password,(0,Ft.Z)({placeholder:l.getMessage("tableForm.inputPlaceholder","\u8bf7\u8f93\u5165"),ref:t},a));return o?o(n,(0,Ft.Z)({mode:i},a),p):p}return null},Pke=v.forwardRef(Mke),Zke=n(62232),Fke=n.n(Zke);function Bke(e){return 0===e?null:e>0?"+":"-"}function Hke(e){return 0===e?"#595959":e>0?"#ff4d4f":"#52c41a"}function zke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return t>=0?null===e||void 0===e?void 0:e.toFixed(t):e}var jke=function(e,t){var n=e.text,i=e.prefix,r=e.precision,o=e.suffix,a=void 0===o?"%":o,s=e.mode,l=e.showColor,c=void 0!==l&&l,u=e.render,d=e.renderFormItem,h=e.fieldProps,f=e.placeholder,p=e.showSymbol,g=zve(),m=f||g.getMessage("tableForm.inputPlaceholder","\u8bf7\u8f93\u5165"),y=(0,v.useMemo)((function(){return"string"===typeof n&&n.includes("%")?Fke()(n.replace("%","")):Fke()(n)}),[n]),_=(0,v.useMemo)((function(){return"function"===typeof p?null===p||void 0===p?void 0:p(n):p}),[p,n]);if("read"===s){var b=c?{color:Hke(y)}:{},C=(0,ES.jsxs)("span",{style:b,ref:t,children:[i&&(0,ES.jsx)("span",{children:i}),_&&(0,ES.jsxs)(v.Fragment,{children:[Bke(y)," "]}),zke(Math.abs(y),r),a&&a]});return u?u(n,(0,Ft.Z)((0,Ft.Z)({mode:s},h),{},{prefix:i,precision:r,showSymbol:_,suffix:a}),C):C}if("edit"===s||"update"===s){var S=(0,ES.jsx)(vZ,(0,Ft.Z)({ref:t,formatter:function(e){return e&&i?"".concat(i," ").concat(e).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):e},parser:function(e){return e?e.replace(/.*\s|,/g,""):""},placeholder:m},h));return d?d(n,(0,Ft.Z)({mode:s},h),S):S}return null},Vke=v.forwardRef(jke);function Wke(e){return 100===e?"success":e<0?"exception":e<100?"active":"normal"}var Uke=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.plain,a=e.renderFormItem,s=e.fieldProps,l=e.placeholder,c=zve(),u=l||c.getMessage("tableForm.inputPlaceholder","\u8bf7\u8f93\u5165"),d=(0,v.useMemo)((function(){return"string"===typeof n&&n.includes("%")?Fke()(n.replace("%","")):Fke()(n)}),[n]);if("read"===i){var h=(0,ES.jsx)(EB,(0,Ft.Z)({ref:t,size:"small",style:{minWidth:100,maxWidth:320},percent:d,steps:o?10:void 0,status:Wke(d)},s));return r?r(d,(0,Ft.Z)({mode:i},s),h):h}if("edit"===i||"update"===i){var f=(0,ES.jsx)(vZ,(0,Ft.Z)({ref:t,placeholder:u},s));return a?a(n,(0,Ft.Z)({mode:i},s),f):f}return null},Gke=v.forwardRef(Uke),Kke=["radioType","renderFormItem","mode","render"],Yke=function(e,t){var n=e.radioType,i=e.renderFormItem,r=e.mode,o=e.render,a=Ai(e,Kke),s=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-field-radio"),l=xbe(a),c=(0,k.Z)(l,3),u=c[0],d=c[1],h=c[2],f=(0,v.useRef)();(0,v.useImperativeHandle)(t,(function(){return(0,Ft.Z)((0,Ft.Z)({},f.current||{}),{},{fetchData:function(e){return h(e)}})}));var p=Ove("FieldRadioRadio",(function(e){return(0,N.Z)({},".".concat(s,"-vertical"),(0,N.Z)({},"".concat(e.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))})),g=p.wrapSSR,m=p.hashId;if(u)return(0,ES.jsx)(Cs,{size:"small"});if("read"===r){var y,_=null!==d&&void 0!==d&&d.length?null===d||void 0===d?void 0:d.reduce((function(e,t){var n;return(0,Ft.Z)((0,Ft.Z)({},e),{},(0,N.Z)({},null!==(n=t.value)&&void 0!==n?n:"",t.label))}),{}):void 0,b=(0,ES.jsx)(ES.Fragment,{children:Sbe(a.text,Cbe(a.valueEnum||_))});return o?null!==(y=o(a.text,(0,Ft.Z)({mode:r},a.fieldProps),b))&&void 0!==y?y:null:b}if("edit"===r){var C,S,w=g((0,ES.jsx)(cO.Group,(0,Ft.Z)((0,Ft.Z)({ref:f,optionType:n},a.fieldProps),{},{className:Ja()(null===(C=a.fieldProps)||void 0===C?void 0:C.className,m,"".concat(s,"-").concat(a.fieldProps.layout||"horizontal")),options:d})));return i?null!==(S=i(a.text,(0,Ft.Z)({mode:r},a.fieldProps),w))&&void 0!==S?S:null:w}return null},qke=v.forwardRef(Yke),$ke=function(e,t){var n=e.text,i=e.mode,r=e.light,o=e.label,a=e.format,s=e.render,l=e.picker,c=e.renderFormItem,u=e.plain,d=e.showTime,h=e.lightLabel,f=e.bordered,p=e.fieldProps,g=zve(),m=Array.isArray(n)?n:[],y=(0,k.Z)(m,2),_=y[0],b=y[1],C=v.useState(!1),S=(0,k.Z)(C,2),w=S[0],x=S[1],E=(0,v.useCallback)((function(e){var t;return"function"===typeof(null===p||void 0===p?void 0:p.format)?null===p||void 0===p||null===(t=p.format)||void 0===t?void 0:t.call(p,e):(null===p||void 0===p?void 0:p.format)||a||"YYYY-MM-DD"}),[p,a]),T=_?ux()(_).format(E(ux()(_))):"",N=b?ux()(b).format(E(ux()(b))):"";if("read"===i){var I=(0,ES.jsxs)("div",{ref:t,children:[(0,ES.jsx)("div",{children:T||"-"}),(0,ES.jsx)("div",{children:N||"-"})]});return s?s(n,(0,Ft.Z)({mode:i},p),(0,ES.jsx)("span",{children:I})):I}if("edit"===i||"update"===i){var D,L,O=gwe(p.value);if(r)D=(0,ES.jsx)(w_e,{label:o,onClick:function(){var e;null===p||void 0===p||null===(e=p.onOpenChange)||void 0===e||e.call(p,!0),x(!0)},style:O?{paddingInlineEnd:0}:void 0,disabled:p.disabled,value:O||w?(0,ES.jsx)(Gj.RangePicker,(0,Ft.Z)((0,Ft.Z)({picker:l,showTime:d,format:a,bordered:!1},p),{},{placeholder:null!==(L=p.placeholder)&&void 0!==L?L:[g.getMessage("tableForm.selectPlaceholder","\u8bf7\u9009\u62e9"),g.getMessage("tableForm.selectPlaceholder","\u8bf7\u9009\u62e9")],onClear:function(){var e;x(!1),null===p||void 0===p||null===(e=p.onClear)||void 0===e||e.call(p)},value:O,onOpenChange:function(e){var t;O&&x(e),null===p||void 0===p||null===(t=p.onOpenChange)||void 0===t||t.call(p,e)}})):null,allowClear:!1,bordered:f,ref:h,downIcon:!O&&!w&&void 0});else D=(0,ES.jsx)(Gj.RangePicker,(0,Ft.Z)((0,Ft.Z)({ref:t,format:a,showTime:d,placeholder:[g.getMessage("tableForm.selectPlaceholder","\u8bf7\u9009\u62e9"),g.getMessage("tableForm.selectPlaceholder","\u8bf7\u9009\u62e9")],bordered:void 0===u},p),{},{value:O}));return c?c(n,(0,Ft.Z)({mode:i},p),D):D}return null},Xke=v.forwardRef($ke),Qke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Jke=function(e,t){return v.createElement(Ps,(0,Ft.Z)((0,Ft.Z)({},e),{},{ref:t,icon:Qke}))};Jke.displayName="StarFilled";var exe=v.forwardRef(Jke);var txe=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(){var e;(0,b.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).onHover=function(t){var n=e.props;(0,n.onHover)(t,n.index)},e.onClick=function(t){var n=e.props;(0,n.onClick)(t,n.index)},e.onKeyDown=function(t){var n=e.props,i=n.onClick,r=n.index;13===t.keyCode&&i(t,r)},e}return(0,C.Z)(n,[{key:"getClassName",value:function(){var e=this.props,t=e.prefixCls,n=e.index,i=e.value,r=e.allowHalf,o=e.focused,a=n+1,s=t;return 0===i&&0===n&&o?s+=" ".concat(t,"-focused"):r&&i+.5>=a&&i<a?(s+=" ".concat(t,"-half ").concat(t,"-active"),o&&(s+=" ".concat(t,"-focused"))):(s+=" ".concat(t,a<=i?"-full":"-zero"),a===i&&o&&(s+=" ".concat(t,"-focused"))),s}},{key:"render",value:function(){var e=this.onHover,t=this.onClick,n=this.onKeyDown,i=this.props,r=i.disabled,o=i.prefixCls,a=i.character,s=i.characterRender,l=i.index,c=i.count,u=i.value,d="function"===typeof a?a(this.props):a,h=v.createElement("li",{className:this.getClassName()},v.createElement("div",{onClick:r?null:t,onKeyDown:r?null:n,onMouseMove:r?null:e,role:"radio","aria-checked":u>l?"true":"false","aria-posinset":l+1,"aria-setsize":c,tabIndex:r?-1:0},v.createElement("div",{className:"".concat(o,"-first")},d),v.createElement("div",{className:"".concat(o,"-second")},d)));return s&&(h=s(h,this.props)),h}}]),n}(v.Component);function nxe(){}var ixe=function(e){(0,S.Z)(n,e);var t=(0,w.Z)(n);function n(e){var i;(0,b.Z)(this,n),(i=t.call(this,e)).stars=void 0,i.rate=void 0,i.onHover=function(e,t){var n=i.props.onHoverChange,r=i.getStarValue(t,e.pageX);r!==i.state.cleanedValue&&i.setState({hoverValue:r,cleanedValue:null}),n(r)},i.onMouseLeave=function(){var e=i.props.onHoverChange;i.setState({hoverValue:void 0,cleanedValue:null}),e(void 0)},i.onClick=function(e,t){var n=i.props.allowClear,r=i.state.value,o=i.getStarValue(t,e.pageX),a=!1;n&&(a=o===r),i.onMouseLeave(),i.changeValue(a?0:o),i.setState({cleanedValue:a?o:null})},i.onFocus=function(){var e=i.props.onFocus;i.setState({focused:!0}),e&&e()},i.onBlur=function(){var e=i.props.onBlur;i.setState({focused:!1}),e&&e()},i.onKeyDown=function(e){var t=e.keyCode,n=i.props,r=n.count,o=n.allowHalf,a=n.onKeyDown,s="rtl"===n.direction,l=i.state.value;t===vv.RIGHT&&l<r&&!s?(l+=o?.5:1,i.changeValue(l),e.preventDefault()):t===vv.LEFT&&l>0&&!s||t===vv.RIGHT&&l>0&&s?(l-=o?.5:1,i.changeValue(l),e.preventDefault()):t===vv.LEFT&&l<r&&s&&(l+=o?.5:1,i.changeValue(l),e.preventDefault()),a&&a(e)},i.saveRef=function(e){return function(t){i.stars[e]=t}},i.saveRate=function(e){i.rate=e};var r=e.value;return void 0===r&&(r=e.defaultValue),i.stars={},i.state={value:r,focused:!1,cleanedValue:null},i}return(0,C.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"getStarDOM",value:function(e){return El(this.stars[e])}},{key:"getStarValue",value:function(e,t){var n=this.props,i=n.allowHalf,r="rtl"===n.direction,o=e+1;if(i){var a=this.getStarDOM(e),s=function(e){var t=function(e){var t,n,i=e.ownerDocument,r=i.body,o=i&&i.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,{left:t-=o.clientLeft||r.clientLeft||0,top:n-=o.clientTop||r.clientTop||0}}(e),n=e.ownerDocument,i=n.defaultView||n.parentWindow;return t.left+=function(e){var t=e.pageXOffset,n="scrollLeft";if("number"!==typeof t){var i=e.document;"number"!==typeof(t=i.documentElement[n])&&(t=i.body[n])}return t}(i),t.left}(a),l=a.clientWidth;(r&&t-s>l/2||!r&&t-s<l/2)&&(o-=.5)}return o}},{key:"focus",value:function(){this.props.disabled||this.rate.focus()}},{key:"blur",value:function(){this.props.disabled||this.rate.blur()}},{key:"changeValue",value:function(e){var t=this.props.onChange;"value"in this.props||this.setState({value:e}),t(e)}},{key:"render",value:function(){for(var e=this.props,t=e.count,n=e.allowHalf,i=e.style,r=e.prefixCls,o=e.disabled,a=e.className,s=e.character,l=e.characterRender,c=e.tabIndex,u=e.direction,d=this.state,h=d.value,f=d.hoverValue,p=d.focused,g=[],m=o?"".concat(r,"-disabled"):"",y=0;y<t;y+=1)g.push(v.createElement(txe,{ref:this.saveRef(y),index:y,count:t,disabled:o,prefixCls:"".concat(r,"-star"),allowHalf:n,value:void 0===f?h:f,onClick:this.onClick,onHover:this.onHover,key:y,character:s,characterRender:l,focused:p}));var _=Ja()(r,m,a,(0,N.Z)({},"".concat(r,"-rtl"),"rtl"===u));return v.createElement("ul",{className:_,style:i,onMouseLeave:o?null:this.onMouseLeave,tabIndex:o?-1:c,onFocus:o?null:this.onFocus,onBlur:o?null:this.onBlur,onKeyDown:o?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},g)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"value"in e&&void 0!==e.value?(0,Ft.Z)((0,Ft.Z)({},t),{},{value:e.value}):t}}]),n}(v.Component);ixe.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:nxe,character:"\u2605",onHoverChange:nxe,tabIndex:0,direction:"ltr"};var rxe=ixe,oxe=function(e){var t=e.componentCls;return(0,N.Z)({},t,Zt(Zt(Zt(Zt(Zt({},Fa(e)),(0,N.Z)({display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none"},"&-disabled"+t+" "+t+"-star",{cursor:"default","&:hover":{transform:"scale(1)"}})),function(e){var t,n=e.componentCls;return(0,N.Z)({},n+"-star",(t={position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:"all "+e.motionDurationMid+", outline 0s","&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:e.lineWidth+"px dashed "+e.rateStarColor,transform:e.rateStarHoverScale}},"&-first, &-second":(0,N.Z)({color:e.defaultColor,transition:"all "+e.motionDurationMid,userSelect:"none"},e.iconCls,{verticalAlign:"middle"}),"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0}},(0,N.Z)(t,"&-half "+n+"-star-first, &-half "+n+"-star-second",{opacity:1}),(0,N.Z)(t,"&-half "+n+"-star-first, &-full "+n+"-star-second",{color:"inherit"}),t))}(e)),(0,N.Z)({},"+ "+t+"-text",{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize})),function(e){return(0,N.Z)({},"&-rtl"+e.componentCls,{direction:"rtl"})}(e)))},axe=hs("Rate",(function(e){var t=e.colorFillContent,n=cs(e,{rateStarColor:e["yellow-6"],rateStarSize:.5*e.controlHeightLG,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[oxe(n)]})),sxe=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},lxe=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.tooltips,r=e.character,o=void 0===r?v.createElement(exe,null):r,a=sxe(e,["prefixCls","tooltips","character"]),s=v.useContext(wa),l=s.getPrefixCls,c=s.direction,u=l("rate",n),d=axe(u),h=(0,k.Z)(d,2),f=h[0],p=h[1];return f(v.createElement(rxe,Zt({ref:t,character:o,characterRender:function(e,t){var n=t.index;return i?v.createElement(Vf,{title:i[n]},e):e}},a,{className:Ja()(e.className,p),prefixCls:u,direction:c})))}));var cxe=lxe,uxe=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.renderFormItem,a=e.fieldProps;if("read"===i){var s=(0,ES.jsx)(cxe,(0,Ft.Z)((0,Ft.Z)({allowHalf:!0,disabled:!0,ref:t},a),{},{value:n}));return r?r(n,(0,Ft.Z)({mode:i},a),(0,ES.jsx)(ES.Fragment,{children:s})):s}if("edit"===i||"update"===i){var l=(0,ES.jsx)(cxe,(0,Ft.Z)({allowHalf:!0,ref:t},a));return o?o(n,(0,Ft.Z)({mode:i},a),l):l}return null},dxe=v.forwardRef(uxe);var hxe=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.renderFormItem,a=e.fieldProps,s=e.placeholder,l=zve(),c=s||l.getMessage("tableForm.inputPlaceholder","\u8bf7\u8f93\u5165");if("read"===i){var u=function(e){var t="",n=Math.floor(e/86400),i=Math.floor(e/3600),r=Math.floor(e/60%60),o=Math.floor(e%60);return t="".concat(o,"\u79d2"),r>0&&(t="".concat(r,"\u5206\u949f").concat(t)),i>0&&(t="".concat(i,"\u5c0f\u65f6").concat(t)),n>0&&(t="".concat(n,"\u5929").concat(t)),t}(Number(n)),d=(0,ES.jsx)("span",{ref:t,children:u});return r?r(n,(0,Ft.Z)({mode:i},a),d):d}if("edit"===i||"update"===i){var h=(0,ES.jsx)(vZ,(0,Ft.Z)({ref:t,min:0,style:{width:"100%"},placeholder:c},a));return o?o(n,(0,Ft.Z)({mode:i},a),h):h}return null},fxe=v.forwardRef(hxe),pxe=function(e){return e?{left:e.offsetLeft,width:e.clientWidth}:null},gxe=function(e){return void 0!==e?"".concat(e,"px"):void 0};function vxe(e){var t=e.prefixCls,n=e.containerRef,i=e.value,r=e.getValueIndex,o=e.motionName,a=e.onMotionStart,s=e.onMotionEnd,l=v.useRef(null),c=v.useState(i),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=function(e){var i,o=r(e);return null===(i=n.current)||void 0===i?void 0:i.querySelectorAll(".".concat(t,"-item"))[o]},p=v.useState(null),g=(0,k.Z)(p,2),m=g[0],y=g[1],_=v.useState(null),b=(0,k.Z)(_,2),C=b[0],S=b[1];ju((function(){if(d!==i){var e=f(d),t=f(i),n=pxe(e),r=pxe(t);h(i),y(n),S(r),e&&t?a():s()}}),[i]);return m&&C?v.createElement(xc,{visible:!0,motionName:o,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onAppearEnd:function(){y(null),S(null),s()}},(function(e,n){var i=e.className,r=e.style,o=(0,Ft.Z)((0,Ft.Z)({},r),{},{"--thumb-start-left":gxe(null===m||void 0===m?void 0:m.left),"--thumb-start-width":gxe(null===m||void 0===m?void 0:m.width),"--thumb-active-left":gxe(null===C||void 0===C?void 0:C.left),"--thumb-active-width":gxe(null===C||void 0===C?void 0:C.width)}),a={ref:Nl(l,n),style:o,className:Ja()("".concat(t,"-thumb"),i)};return v.createElement("div",(0,Ft.Z)({},a))})):null}var mxe=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function yxe(e){return e.map((function(e){if("object"===(0,Bt.Z)(e)&&null!==e){var t=function(e){return"undefined"!==typeof e.title?e.title:"object"!==(0,Bt.Z)(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return(0,Ft.Z)((0,Ft.Z)({},e),{},{title:t})}return{label:null===e||void 0===e?void 0:e.toString(),title:null===e||void 0===e?void 0:e.toString(),value:e}}))}var _xe=function(e){var t=e.prefixCls,n=e.className,i=e.disabled,r=e.checked,o=e.label,a=e.title,s=e.value,l=e.onChange;return v.createElement("label",{className:Ja()(n,(0,N.Z)({},"".concat(t,"-item-disabled"),i))},v.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:i,checked:r,onChange:function(e){i||l(e,s)}}),v.createElement("div",{className:"".concat(t,"-item-label"),title:a},o))},bxe=v.forwardRef((function(e,t){var n,i,r=e.prefixCls,o=void 0===r?"rc-segmented":r,a=e.direction,s=e.options,l=e.disabled,c=e.defaultValue,u=e.value,d=e.onChange,h=e.className,f=void 0===h?"":h,p=e.motionName,g=void 0===p?"thumb-motion":p,m=Ai(e,mxe),y=v.useRef(null),_=v.useMemo((function(){return Nl(y,t)}),[y,t]),b=v.useMemo((function(){return yxe(s)}),[s]),C=Sf(null===(n=b[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),S=(0,k.Z)(C,2),w=S[0],x=S[1],E=v.useState(!1),T=(0,k.Z)(E,2),I=T[0],D=T[1],L=function(e,t){l||(x(t),null===d||void 0===d||d(t))},O=ns(m,["children"]);return v.createElement("div",(0,Ft.Z)((0,Ft.Z)({},O),{},{className:Ja()(o,(i={},(0,N.Z)(i,"".concat(o,"-rtl"),"rtl"===a),(0,N.Z)(i,"".concat(o,"-disabled"),l),i),f),ref:_}),v.createElement("div",{className:"".concat(o,"-group")},v.createElement(vxe,{prefixCls:o,value:w,containerRef:y,motionName:"".concat(o,"-").concat(g),getValueIndex:function(e){return b.findIndex((function(t){return t.value===e}))},onMotionStart:function(){D(!0)},onMotionEnd:function(){D(!1)}}),b.map((function(e){return v.createElement(_xe,(0,Ft.Z)((0,Ft.Z)({key:e.value,prefixCls:o,className:Ja()(e.className,"".concat(o,"-item"),(0,N.Z)({},"".concat(o,"-item-selected"),e.value===w&&!I)),checked:e.value===w,onChange:L},e),{},{disabled:!!l||!!e.disabled}))}))))}));bxe.displayName="Segmented",bxe.defaultProps={options:[]};var Cxe=bxe;function Sxe(e,t){return(0,N.Z)({},e+", "+e+":hover, "+e+":focus",{color:t.colorTextDisabled,cursor:"not-allowed"})}function wxe(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}var kxe=Zt({overflow:"hidden"},Za),xxe=function(e){var t,n,i,r,o,a=e.componentCls;return(0,N.Z)({},a,Zt(Zt(Zt(Zt(Zt({},Fa(e)),(r={display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:"all "+e.motionDurationMid+" "+e.motionEaseInOut},(0,N.Z)(r,a+"-group",{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"}),(0,N.Z)(r,"&&-rtl",{direction:"rtl"}),(0,N.Z)(r,"&&-block",{display:"flex"}),(0,N.Z)(r,"&&-block "+a+"-item",{flex:1,minWidth:0}),(0,N.Z)(r,a+"-item",(t={position:"relative",textAlign:"center",cursor:"pointer",transition:"color "+e.motionDurationMid+" "+e.motionEaseInOut,borderRadius:e.borderRadiusSM,"&-selected":Zt(Zt({},wxe(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:e.borderRadiusSM,transition:"background-color "+e.motionDurationMid}},(0,N.Z)(t,"&:hover:not("+a+"-item-selected):not("+a+"-item-disabled)",{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}}),(0,N.Z)(t,"&-label",Zt({minHeight:e.controlHeight-2*e.segmentedContainerPadding,lineHeight:e.controlHeight-2*e.segmentedContainerPadding+"px",padding:"0 "+e.segmentedPaddingHorizontal+"px"},kxe)),(0,N.Z)(t,"&-icon + *",{marginInlineEnd:e.marginSM/2}),(0,N.Z)(t,"&-input",{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}),t)),(0,N.Z)(r,"&&-lg",(n={borderRadius:e.borderRadiusLG},(0,N.Z)(n,a+"-item-label",{minHeight:e.controlHeightLG-2*e.segmentedContainerPadding,lineHeight:e.controlHeightLG-2*e.segmentedContainerPadding+"px",padding:"0 "+e.segmentedPaddingHorizontal+"px",fontSize:e.fontSizeLG}),(0,N.Z)(n,a+"-item-selected",{borderRadius:e.borderRadius}),n)),(0,N.Z)(r,"&&-sm",(i={borderRadius:e.borderRadiusSM},(0,N.Z)(i,a+"-item-label",{minHeight:e.controlHeightSM-2*e.segmentedContainerPadding,lineHeight:e.controlHeightSM-2*e.segmentedContainerPadding+"px",padding:"0 "+e.segmentedPaddingHorizontalSM+"px"}),(0,N.Z)(i,a+"-item-selected",{borderRadius:e.borderRadiusXS}),i)),r)),Sxe("&-disabled "+a+"-item",e)),Sxe(a+"-item-disabled",e)),(o={},(0,N.Z)(o,a+"-thumb",Zt(Zt({},wxe(e)),(0,N.Z)({position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:e.paddingXXS+"px 0",borderRadius:e.borderRadiusSM},"& ~ "+a+"-item:not("+a+"-item-selected):not("+a+"-item-disabled)::after",{backgroundColor:"transparent"}))),(0,N.Z)(o,a+"-thumb-motion-appear-active",{transition:"transform "+e.motionDurationSlow+" "+e.motionEaseInOut+", width "+e.motionDurationSlow+" "+e.motionEaseInOut,willChange:"transform, width"}),o)))},Exe=hs("Segmented",(function(e){var t=e.lineWidthBold,n=e.lineWidth,i=e.colorTextLabel,r=e.colorText,o=e.colorFillSecondary,a=e.colorBgLayout,s=e.colorBgElevated,l=cs(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:i,labelColorHover:r,bgColor:a,bgColorHover:o,bgColorSelected:s});return[xxe(l)]})),Txe=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};var Nxe=v.forwardRef((function(e,t){var n,i=e.prefixCls,r=e.className,o=e.block,a=e.options,s=void 0===a?[]:a,l=e.size,c=void 0===l?"middle":l,u=Txe(e,["prefixCls","className","block","options","size"]),d=v.useContext(wa),h=d.getPrefixCls,f=d.direction,p=h("segmented",i),g=Exe(p),m=(0,k.Z)(g,2),y=m[0],_=m[1],b=v.useContext(Pa),C=c||b,S=v.useMemo((function(){return s.map((function(e){if(function(e){return"object"===(0,Bt.Z)(e)&&!!(null===e||void 0===e?void 0:e.icon)}(e)){var t=e.icon,n=e.label;return Zt(Zt({},Txe(e,["icon","label"])),{label:v.createElement(v.Fragment,null,v.createElement("span",{className:p+"-item-icon"},t),n&&v.createElement("span",null,n))})}return e}))}),[s,p]);return y(v.createElement(Cxe,Zt({},u,{className:Ja()(r,(n={},(0,N.Z)(n,p+"-block",o),(0,N.Z)(n,p+"-sm","small"===C),(0,N.Z)(n,p+"-lg","large"===C),n),_),options:S,ref:t,prefixCls:p,direction:f})))}));var Ixe=Nxe,Dxe=["mode","render","renderFormItem","fieldProps","emptyText"],Lxe=function(e,t){var n=e.mode,i=e.render,r=e.renderFormItem,o=e.fieldProps,a=e.emptyText,s=void 0===a?"-":a,l=Ai(e,Dxe),c=(0,v.useRef)(),u=xbe(l),d=(0,k.Z)(u,3),h=d[0],f=d[1],p=d[2];if((0,v.useImperativeHandle)(t,(function(){return(0,Ft.Z)((0,Ft.Z)({},c.current||{}),{},{fetchData:function(e){return p(e)}})})),h)return(0,ES.jsx)(Cs,{size:"small"});if("read"===n){var g,m=null!==f&&void 0!==f&&f.length?null===f||void 0===f?void 0:f.reduce((function(e,t){var n;return(0,Ft.Z)((0,Ft.Z)({},e),{},(0,N.Z)({},null!==(n=t.value)&&void 0!==n?n:"",t.label))}),{}):void 0,y=(0,ES.jsx)(ES.Fragment,{children:Sbe(l.text,Cbe(l.valueEnum||m))});return i?null!==(g=i(l.text,(0,Ft.Z)({mode:n},o),(0,ES.jsx)(ES.Fragment,{children:y})))&&void 0!==g?g:s:y}if("edit"===n||"update"===n){var _=(0,ES.jsx)(Ixe,(0,Ft.Z)((0,Ft.Z)({ref:c},hme(o||{},["allowClear"])),{},{options:f}));return r?r(l.text,(0,Ft.Z)((0,Ft.Z)({mode:n},o),{},{options:f}),_):_}return null},Oxe=v.forwardRef(Lxe),Rxe=v.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0});function Axe(e,t,n){return(e-t)/(n-t)}function Mxe(e,t,n,i){var r=Axe(t,n,i),o={};switch(e){case"rtl":o.right="".concat(100*r,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(100*r,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(100*r,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(100*r,"%"),o.transform="translateX(-50%)"}return o}function Pxe(e,t){return Array.isArray(e)?e[t]:e}var Zxe=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],Fxe=v.forwardRef((function(e,t){var n,i,r=e.prefixCls,o=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,h=Ai(e,Zxe),f=v.useContext(Rxe),p=f.min,g=f.max,m=f.direction,y=f.disabled,_=f.range,b=f.tabIndex,C=f.ariaLabelForHandle,S=f.ariaLabelledByForHandle,w=f.ariaValueTextFormatterForHandle,k="".concat(r,"-handle"),x=function(e){y||s(e,a)},E=Mxe(m,o,p,g),T=v.createElement("div",Zt({ref:t,className:Ja()(k,(n={},(0,N.Z)(n,"".concat(k,"-").concat(a+1),_),(0,N.Z)(n,"".concat(k,"-dragging"),u),n)),style:(0,Ft.Z)((0,Ft.Z)({},E),l),onMouseDown:x,onTouchStart:x,onKeyDown:function(e){if(!y){var t=null;switch(e.which||e.keyCode){case vv.LEFT:t="ltr"===m||"btt"===m?-1:1;break;case vv.RIGHT:t="ltr"===m||"btt"===m?1:-1;break;case vv.UP:t="ttb"!==m?1:-1;break;case vv.DOWN:t="ttb"!==m?-1:1;break;case vv.HOME:t="min";break;case vv.END:t="max";break;case vv.PAGE_UP:t=2;break;case vv.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,a))}},tabIndex:y?null:Pxe(b,a),role:"slider","aria-valuemin":p,"aria-valuemax":g,"aria-valuenow":o,"aria-disabled":y,"aria-label":Pxe(C,a),"aria-labelledby":Pxe(S,a),"aria-valuetext":null===(i=Pxe(w,a))||void 0===i?void 0:i(o)},h));return c&&(T=c(T,{index:a,prefixCls:r,value:o,dragging:u})),T}));var Bxe=Fxe,Hxe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],zxe=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.style,r=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=Ai(e,Hxe),u=v.useRef({});return v.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=u.current[e])||void 0===t||t.focus()}}})),v.createElement(v.Fragment,null,a.map((function(e,t){return v.createElement(Bxe,Zt({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:l===t,prefixCls:n,style:Pxe(i,t),key:t,value:e,valueIndex:t,onStartMove:r,onOffsetChange:o,render:s},c))})))}));var jxe=zxe;function Vxe(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function Wxe(e){var t=e.prefixCls,n=e.style,i=e.start,r=e.end,o=e.index,a=e.onStartMove,s=v.useContext(Rxe),l=s.direction,c=s.min,u=s.max,d=s.disabled,h=s.range,f="".concat(t,"-track"),p=Axe(i,c,u),g=Axe(r,c,u),m=function(e){!d&&a&&a(e,-1)},y={};switch(l){case"rtl":y.right="".concat(100*p,"%"),y.width="".concat(100*g-100*p,"%");break;case"btt":y.bottom="".concat(100*p,"%"),y.height="".concat(100*g-100*p,"%");break;case"ttb":y.top="".concat(100*p,"%"),y.height="".concat(100*g-100*p,"%");break;default:y.left="".concat(100*p,"%"),y.width="".concat(100*g-100*p,"%")}return v.createElement("div",{className:Ja()(f,h&&"".concat(f,"-").concat(o+1)),style:(0,Ft.Z)((0,Ft.Z)({},y),n),onMouseDown:m,onTouchStart:m})}function Uxe(e){var t=e.prefixCls,n=e.style,i=e.values,r=e.startPoint,o=e.onStartMove,a=v.useContext(Rxe),s=a.included,l=a.range,c=a.min,u=v.useMemo((function(){if(!l){if(0===i.length)return[];var e=null!==r&&void 0!==r?r:c,t=i[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],o=0;o<i.length-1;o+=1)n.push({start:i[o],end:i[o+1]});return n}),[i,l,r,c]);return s?u.map((function(e,i){var r=e.start,a=e.end;return v.createElement(Wxe,{index:i,prefixCls:t,style:Pxe(n,i),start:r,end:a,key:i,onStartMove:o})})):null}function Gxe(e){var t=e.prefixCls,n=e.style,i=e.children,r=e.value,o=e.onClick,a=v.useContext(Rxe),s=a.min,l=a.max,c=a.direction,u=a.includedStart,d=a.includedEnd,h=a.included,f="".concat(t,"-text"),p=Mxe(c,r,s,l);return v.createElement("span",{className:Ja()(f,(0,N.Z)({},"".concat(f,"-active"),h&&u<=r&&r<=d)),style:(0,Ft.Z)((0,Ft.Z)({},p),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){o(r)}},i)}function Kxe(e){var t=e.prefixCls,n=e.marks,i=e.onClick,r="".concat(t,"-mark");return n.length?v.createElement("div",{className:r},n.map((function(e){var t=e.value,n=e.style,o=e.label;return v.createElement(Gxe,{key:t,prefixCls:r,style:n,value:t,onClick:i},o)}))):null}function Yxe(e){var t=e.prefixCls,n=e.value,i=e.style,r=e.activeStyle,o=v.useContext(Rxe),a=o.min,s=o.max,l=o.direction,c=o.included,u=o.includedStart,d=o.includedEnd,h="".concat(t,"-dot"),f=c&&u<=n&&n<=d,p=(0,Ft.Z)((0,Ft.Z)({},Mxe(l,n,a,s)),"function"===typeof i?i(n):i);return f&&(p=(0,Ft.Z)((0,Ft.Z)({},p),"function"===typeof r?r(n):r)),v.createElement("span",{className:Ja()(h,(0,N.Z)({},"".concat(h,"-active"),f)),style:p})}function qxe(e){var t=e.prefixCls,n=e.marks,i=e.dots,r=e.style,o=e.activeStyle,a=v.useContext(Rxe),s=a.min,l=a.max,c=a.step,u=v.useMemo((function(){var e=new Set;if(n.forEach((function(t){e.add(t.value)})),i&&null!==c)for(var t=s;t<=l;)e.add(t),t+=c;return Array.from(e)}),[s,l,c,i,n]);return v.createElement("div",{className:"".concat(t,"-step")},u.map((function(e){return v.createElement(Yxe,{prefixCls:t,key:e,value:e,style:r,activeStyle:o})})))}var $xe=v.forwardRef((function(e,t){var n,i=e.prefixCls,r=void 0===i?"rc-slider":i,o=e.className,a=e.style,s=e.disabled,l=void 0!==s&&s,c=e.autoFocus,u=e.onFocus,d=e.onBlur,h=e.min,f=void 0===h?0:h,p=e.max,g=void 0===p?100:p,m=e.step,y=void 0===m?1:m,b=e.value,C=e.defaultValue,S=e.range,w=e.count,x=e.onChange,E=e.onBeforeChange,T=e.onAfterChange,I=e.allowCross,D=void 0===I||I,L=e.pushable,O=void 0!==L&&L,R=e.draggableTrack,A=e.reverse,M=e.vertical,P=e.included,Z=void 0===P||P,F=e.startPoint,B=e.trackStyle,H=e.handleStyle,z=e.railStyle,j=e.dotStyle,V=e.activeDotStyle,W=e.marks,U=e.dots,G=e.handleRender,K=e.tabIndex,Y=void 0===K?0:K,q=e.ariaLabelForHandle,$=e.ariaLabelledByForHandle,X=e.ariaValueTextFormatterForHandle,Q=v.useRef(),J=v.useRef(),ee=v.useMemo((function(){return M?A?"ttb":"btt":A?"rtl":"ltr"}),[A,M]),te=v.useMemo((function(){return isFinite(f)?f:0}),[f]),ne=v.useMemo((function(){return isFinite(g)?g:100}),[g]),ie=v.useMemo((function(){return null!==y&&y<=0?1:y}),[y]),re=v.useMemo((function(){return!0===O?ie:O>=0&&O}),[O,ie]),oe=v.useMemo((function(){return Object.keys(W||{}).map((function(e){var t=W[e],n={value:Number(e)};return t&&"object"===(0,Bt.Z)(t)&&!v.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"===typeof t})).sort((function(e,t){return e.value-t.value}))}),[W]),ae=function(e,t,n,i,r,o){var a=v.useCallback((function(n){var i=isFinite(n)?n:e;return i=Math.min(t,n),Math.max(e,i)}),[e,t]),s=v.useCallback((function(i){if(null!==n){var r=e+Math.round((a(i)-e)/n)*n,o=function(e){return(String(e).split(".")[1]||"").length},s=Math.max(o(n),o(t),o(e)),l=Number(r.toFixed(s));return e<=l&&l<=t?l:null}return null}),[n,e,t,a]),l=v.useCallback((function(r){var o=a(r),l=i.map((function(e){return e.value}));null!==n&&l.push(s(r)),l.push(e,t);var c=l[0],u=t-e;return l.forEach((function(e){var t=Math.abs(o-e);t<=u&&(c=e,u=t)})),c}),[e,t,i,n,a,s]),c=function r(o,a,l){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"===typeof a){var u,d=o[l],h=d+a,f=[];i.forEach((function(e){f.push(e.value)})),f.push(e,t),f.push(s(d));var p=a>0?1:-1;"unit"===c?f.push(s(d+p*n)):f.push(s(h)),f=f.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=d:e>=d})),"unit"===c&&(f=f.filter((function(e){return e!==d})));var g="unit"===c?d:h;u=f[0];var v=Math.abs(u-g);if(f.forEach((function(e){var t=Math.abs(e-g);t<v&&(u=e,v=t)})),void 0===u)return a<0?e:t;if("dist"===c)return u;if(Math.abs(a)>1){var m=(0,_.Z)(o);return m[l]=u,r(m,a-p,l,c)}return u}return"min"===a?e:"max"===a?t:void 0},u=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",r=e[n],o=c(e,t,n,i);return{value:o,changed:o!==r}},d=function(e){return null===o&&0===e||"number"===typeof o&&e<o};return[l,function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",a=e.map(l),s=a[n],h=c(a,t,n,i);if(a[n]=h,!1===r){var f=o||0;n>0&&a[n-1]!==s&&(a[n]=Math.max(a[n],a[n-1]+f)),n<a.length-1&&a[n+1]!==s&&(a[n]=Math.min(a[n],a[n+1]-f))}else if("number"===typeof o||null===o){for(var p=n+1;p<a.length;p+=1)for(var g=!0;d(a[p]-a[p-1])&&g;){var v=u(a,1,p);a[p]=v.value,g=v.changed}for(var m=n;m>0;m-=1)for(var y=!0;d(a[m]-a[m-1])&&y;){var _=u(a,-1,m-1);a[m-1]=_.value,y=_.changed}for(var b=a.length-1;b>0;b-=1)for(var C=!0;d(a[b]-a[b-1])&&C;){var S=u(a,-1,b-1);a[b-1]=S.value,C=S.changed}for(var w=0;w<a.length-1;w+=1)for(var k=!0;d(a[w+1]-a[w])&&k;){var x=u(a,1,w+1);a[w+1]=x.value,k=x.changed}}return{value:a[n],values:a}}]}(te,ne,ie,oe,D,re),se=(0,k.Z)(ae,2),le=se[0],ce=se[1],ue=Sf(C,{value:b}),de=(0,k.Z)(ue,2),he=de[0],fe=de[1],pe=v.useMemo((function(){var e=null===he||void 0===he?[]:Array.isArray(he)?he:[he],t=(0,k.Z)(e,1)[0],n=null===he?[]:[void 0===t?te:t];if(S){if(n=(0,_.Z)(e),w||void 0===he){var i=w>=0?w+1:2;for(n=n.slice(0,i);n.length<i;){var r;n.push(null!==(r=n[n.length-1])&&void 0!==r?r:te)}}n.sort((function(e,t){return e-t}))}return n.forEach((function(e,t){n[t]=le(e)})),n}),[he,S,te,w,le]),ge=v.useRef(pe);ge.current=pe;var ve=function(e){return S?e:e[0]},me=function(e){var t=(0,_.Z)(e).sort((function(e,t){return e-t}));x&&!La()(t,ge.current)&&x(ve(t)),fe(t)},ye=function(e){if(!l){var t=0,n=ne-te;pe.forEach((function(i,r){var o=Math.abs(e-i);o<=n&&(n=o,t=r)}));var i=(0,_.Z)(pe);i[t]=e,S&&!pe.length&&void 0===w&&i.push(e),null===E||void 0===E||E(ve(i)),me(i),null===T||void 0===T||T(ve(i))}},_e=v.useState(null),be=(0,k.Z)(_e,2),Ce=be[0],Se=be[1];v.useEffect((function(){if(null!==Ce){var e=pe.indexOf(Ce);e>=0&&Q.current.focus(e)}Se(null)}),[Ce]);var we=v.useMemo((function(){return(!R||null!==ie)&&R}),[R,ie]),ke=function(e,t,n,i,r,o,a,s,l){var c=v.useState(null),u=(0,k.Z)(c,2),d=u[0],h=u[1],f=v.useState(-1),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=v.useState(n),b=(0,k.Z)(y,2),C=b[0],S=b[1],w=v.useState(n),x=(0,k.Z)(w,2),E=x[0],T=x[1],N=v.useRef(null),I=v.useRef(null);v.useEffect((function(){-1===g&&S(n)}),[n,g]),v.useEffect((function(){return function(){document.removeEventListener("mousemove",N.current),document.removeEventListener("mouseup",I.current),document.removeEventListener("touchmove",N.current),document.removeEventListener("touchend",I.current)}}),[]);var D=function(e,t){C.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&h(t),S(e),a(e))},L=function(e,t){if(-1===e){var n=E[0],a=E[E.length-1],s=i-n,c=r-a,u=t*(r-i);u=Math.max(u,s),u=Math.min(u,c);var d=o(n+u);u=d-n;var h=E.map((function(e){return e+u}));D(h)}else{var f=(r-i)*t,p=(0,_.Z)(C);p[e]=E[e];var g=l(p,f,e,"dist");D(g.values,g.value)}},O=v.useRef(L);O.current=L;var R=v.useMemo((function(){var e=(0,_.Z)(n).sort((function(e,t){return e-t})),t=(0,_.Z)(C).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?C:n}),[n,C]);return[g,d,R,function(i,r){i.stopPropagation();var o=n[r];m(r),h(o),T(n);var a=Vxe(i),l=a.pageX,c=a.pageY,u=function(n){n.preventDefault();var i,o=Vxe(n),a=o.pageX,s=o.pageY,u=a-l,d=s-c,h=e.current.getBoundingClientRect(),f=h.width,p=h.height;switch(t){case"btt":i=-d/p;break;case"ttb":i=d/p;break;case"rtl":i=-u/f;break;default:i=u/f}O.current(r,i)},d=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",u),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",u),N.current=null,I.current=null,m(-1),s()};document.addEventListener("mouseup",d),document.addEventListener("mousemove",u),document.addEventListener("touchend",d),document.addEventListener("touchmove",u),N.current=u,I.current=d}]}(J,ee,pe,te,ne,le,me,(function(){null===T||void 0===T||T(ve(ge.current))}),ce),xe=(0,k.Z)(ke,4),Ee=xe[0],Te=xe[1],Ne=xe[2],Ie=xe[3],De=function(e,t){Ie(e,t),null===E||void 0===E||E(ve(ge.current))},Le=-1!==Ee;v.useEffect((function(){if(!Le){var e=pe.lastIndexOf(Te);Q.current.focus(e)}}),[Le]);var Oe=v.useMemo((function(){return(0,_.Z)(Ne).sort((function(e,t){return e-t}))}),[Ne]),Re=v.useMemo((function(){return S?[Oe[0],Oe[Oe.length-1]]:[te,Oe[0]]}),[Oe,S,te]),Ae=(0,k.Z)(Re,2),Me=Ae[0],Pe=Ae[1];v.useImperativeHandle(t,(function(){return{focus:function(){Q.current.focus(0)},blur:function(){var e=document.activeElement;J.current.contains(e)&&(null===e||void 0===e||e.blur())}}})),v.useEffect((function(){c&&Q.current.focus(0)}),[]);var Ze=v.useMemo((function(){return{min:te,max:ne,direction:ee,disabled:l,step:ie,included:Z,includedStart:Me,includedEnd:Pe,range:S,tabIndex:Y,ariaLabelForHandle:q,ariaLabelledByForHandle:$,ariaValueTextFormatterForHandle:X}}),[te,ne,ee,l,ie,Z,Me,Pe,S,Y,q,$,X]);return v.createElement(Rxe.Provider,{value:Ze},v.createElement("div",{ref:J,className:Ja()(r,o,(n={},(0,N.Z)(n,"".concat(r,"-disabled"),l),(0,N.Z)(n,"".concat(r,"-vertical"),M),(0,N.Z)(n,"".concat(r,"-horizontal"),!M),(0,N.Z)(n,"".concat(r,"-with-marks"),oe.length),n)),style:a,onMouseDown:function(e){e.preventDefault();var t,n=J.current.getBoundingClientRect(),i=n.width,r=n.height,o=n.left,a=n.top,s=n.bottom,l=n.right,c=e.clientX,u=e.clientY;switch(ee){case"btt":t=(s-u)/r;break;case"ttb":t=(u-a)/r;break;case"rtl":t=(l-c)/i;break;default:t=(c-o)/i}ye(le(te+t*(ne-te)))}},v.createElement("div",{className:"".concat(r,"-rail"),style:z}),v.createElement(Uxe,{prefixCls:r,style:B,values:Oe,startPoint:F,onStartMove:we?De:null}),v.createElement(qxe,{prefixCls:r,marks:oe,dots:U,style:j,activeStyle:V}),v.createElement(jxe,{ref:Q,prefixCls:r,style:H,values:Ne,draggingIndex:Ee,onStartMove:De,onOffsetChange:function(e,t){if(!l){var n=ce(pe,e,t);null===E||void 0===E||E(ve(pe)),me(n.values),null===T||void 0===T||T(ve(n.values)),Se(n.value)}},onFocus:u,onBlur:d,handleRender:G}),v.createElement(Kxe,{prefixCls:r,marks:oe,onClick:ye})))}));var Xxe=$xe,Qxe=v.forwardRef((function(e,t){var n=e.open,i=(0,v.useRef)(null),r=(0,v.useRef)(null);function o(){oc.cancel(r.current),r.current=null}return v.useEffect((function(){return n?r.current=oc((function(){var e;null===(e=i.current)||void 0===e||e.forcePopupAlign(),r.current=null})):o(),o}),[n,e.title]),v.createElement(Vf,Zt({ref:Nl(i,t)},e))})),Jxe=Qxe,eEe=function(e){var t,n,i,r,o=e.componentCls,a=e.controlSize,s=e.dotSize,l=e.marginFull,c=e.marginPart,u=e.colorFillContentHover;return(0,N.Z)({},o,Zt(Zt({},Fa(e)),(r={position:"relative",height:a,margin:c+"px "+l+"px",padding:0,cursor:"pointer",touchAction:"none"},(0,N.Z)(r,"&-vertical",{margin:l+"px "+c+"px"}),(0,N.Z)(r,o+"-rail",{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:"background-color "+e.motionDurationMid}),(0,N.Z)(r,o+"-track",{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:"background-color "+e.motionDurationMid}),(0,N.Z)(r,"&:hover",(t={},(0,N.Z)(t,o+"-rail",{backgroundColor:e.colorFillSecondary}),(0,N.Z)(t,o+"-track",{backgroundColor:e.colorPrimaryBorderHover}),(0,N.Z)(t,o+"-dot",{borderColor:u}),(0,N.Z)(t,o+"-handle::after",{boxShadow:"0 0 0 "+e.handleLineWidth+"px "+e.colorPrimaryBorderHover}),(0,N.Z)(t,o+"-dot-active",{borderColor:e.colorPrimary}),t)),(0,N.Z)(r,o+"-handle",(n={position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none"},(0,N.Z)(n,o+"-dragging",{zIndex:1}),(0,N.Z)(n,"&::before",{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"}),(0,N.Z)(n,"&::after",{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgContainer,boxShadow:"0 0 0 "+e.handleLineWidth+"px "+e.colorPrimaryBorder,borderRadius:"50%",cursor:"pointer",transition:"\n inset-inline-start "+e.motionDurationMid+",\n inset-block-start "+e.motionDurationMid+",\n width "+e.motionDurationMid+",\n height "+e.motionDurationMid+",\n box-shadow "+e.motionDurationMid+"\n "}),(0,N.Z)(n,"&:hover, &:active, &:focus",{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:"0 0 0 "+e.handleLineWidthHover+"px "+e.colorPrimary,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}),n)),(0,N.Z)(r,o+"-mark",{position:"absolute",fontSize:e.fontSize}),(0,N.Z)(r,o+"-mark-text",{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}}),(0,N.Z)(r,o+"-step",{position:"absolute",background:"transparent",pointerEvents:"none"}),(0,N.Z)(r,o+"-dot",{position:"absolute",width:s,height:s,backgroundColor:e.colorBgContainer,border:e.handleLineWidth+"px solid "+e.colorSplit,borderRadius:"50%",cursor:"pointer",transition:"border-color "+e.motionDurationSlow,"&-active":{borderColor:e.colorPrimaryBorder}}),(0,N.Z)(r,"&&-disabled",(i={cursor:"not-allowed"},(0,N.Z)(i,o+"-rail",{backgroundColor:e.colorFillSecondary+" !important"}),(0,N.Z)(i,o+"-track",{backgroundColor:e.colorTextDisabled+" !important"}),(0,N.Z)(i,"\n "+o+"-dot\n ",{backgroundColor:e.colorBgContainer,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"}),(0,N.Z)(i,o+"-handle::after",{backgroundColor:e.colorBgContainer,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:"0 0 0 "+e.handleLineWidth+"px "+new oa(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),insetInlineStart:0,insetBlockStart:0}),(0,N.Z)(i,"\n "+o+"-mark-text,\n "+o+"-dot\n ",{cursor:"not-allowed !important"}),i)),r)))},tEe=function(e,t){var n,i,r,o,a=e.componentCls,s=e.railSize,l=e.handleSize,c=e.dotSize,u=t?"paddingBlock":"paddingInline",d=t?"width":"height",h=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart";return o={},(0,N.Z)(o,u,s),(0,N.Z)(o,h,3*s),(0,N.Z)(o,a+"-rail",(n={},(0,N.Z)(n,d,"100%"),(0,N.Z)(n,h,s),n)),(0,N.Z)(o,a+"-track",(0,N.Z)({},h,s)),(0,N.Z)(o,a+"-handle",(0,N.Z)({},f,(3*s-l)/2)),(0,N.Z)(o,a+"-mark",(i={insetInlineStart:0,top:0},(0,N.Z)(i,p,l),(0,N.Z)(i,d,"100%"),i)),(0,N.Z)(o,a+"-step",(r={insetInlineStart:0,top:0},(0,N.Z)(r,p,s),(0,N.Z)(r,d,"100%"),(0,N.Z)(r,h,s),r)),(0,N.Z)(o,a+"-dot",(0,N.Z)({position:"absolute"},f,(s-c)/2)),o},nEe=function(e){var t=e.componentCls,n=e.marginPartWithMark;return(0,N.Z)({},t+"-horizontal",Zt(Zt({},tEe(e,!0)),(0,N.Z)({},"&"+t+"-with-marks",{marginBottom:n})))},iEe=function(e){var t=e.componentCls;return(0,N.Z)({},t+"-vertical",Zt(Zt({},tEe(e,!1)),{height:"100%"}))},rEe=hs("Slider",(function(e){var t=cs(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[eEe(t),nEe(t),iEe(t)]}),(function(e){var t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:t/3*2,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3}})),oEe=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},aEe=function(e){return"number"===typeof e?e.toString():""},sEe=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.range,r=e.className,o=e.tooltipPrefixCls,a=e.tipFormatter,s=e.tooltipVisible,l=e.getTooltipPopupContainer,c=e.tooltipPlacement,u=oEe(e,["prefixCls","range","className","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),d=v.useContext(wa),h=d.getPrefixCls,f=d.direction,p=d.getPopupContainer,g=v.useState({}),m=(0,k.Z)(g,2),y=m[0],_=m[1],b=function(e,t){_((function(n){return Zt(Zt({},n),(0,N.Z)({},e,t))}))},C=function(e,t){return e||(t?"rtl"===f?"left":"right":"top")},S=h("slider",n),w=rEe(S),x=(0,k.Z)(w,2),E=x[0],T=x[1],I=Ja()(r,(0,N.Z)({},S+"-rtl","rtl"===f),T);"rtl"!==f||u.vertical||(u.reverse=!u.reverse);var D=v.useMemo((function(){return i?"object"===(0,Bt.Z)(i)?[!0,i.draggableTrack]:[!0,!1]:[!1]}),[i]),L=(0,k.Z)(D,2),O=L[0],R=L[1];return E(v.createElement(Xxe,Zt({},u,{step:u.step,range:O,draggableTrack:R,className:I,ref:t,prefixCls:S,handleRender:function(t,n){var i,r=n.index,u=n.dragging,d=h(),f=e.tooltip,g=void 0===f?{}:f,m=e.vertical,_=Zt({},g),w=_.open,k=_.placement,x=_.getPopupContainer,E=_.prefixCls,T=_.formatter,N=T,I=!!(N=T||null===T?T:a||null===a?a:aEe)&&(y[r]||u),D=null!==(i=null!==w&&void 0!==w?w:s)&&void 0!==i?i:void 0===w&&I,L=Zt(Zt({},t.props),{onMouseEnter:function(){return b(r,!0)},onMouseLeave:function(){return b(r,!1)}}),O=h("tooltip",null!==E&&void 0!==E?E:o);return v.createElement(Jxe,{prefixCls:O,title:N?N(n.value):"",open:D,placement:C(null!==k&&void 0!==k?k:c,m),transitionName:d+"-zoom-down",key:r,overlayClassName:S+"-tooltip",getPopupContainer:x||l||p},v.cloneElement(t,L))}})))}));var lEe=sEe,cEe=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.renderFormItem,a=e.fieldProps;if("read"===i){var s=n;return r?r(n,(0,Ft.Z)({mode:i},a),(0,ES.jsx)(ES.Fragment,{children:s})):(0,ES.jsx)(ES.Fragment,{children:s})}if("edit"===i||"update"===i){var l=(0,ES.jsx)(lEe,(0,Ft.Z)((0,Ft.Z)({ref:t},a),{},{style:(0,Ft.Z)({minWidth:120},null===a||void 0===a?void 0:a.style)}));return o?o(n,(0,Ft.Z)({mode:i},a),l):l}return null},uEe=v.forwardRef(cEe),dEe=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.renderFormItem,a=e.fieldProps,s=zve(),l=(0,v.useMemo)((function(){var e,t;return void 0===n||null===n||"".concat(n).length<1?"-":n?null!==(e=null===a||void 0===a?void 0:a.checkedChildren)&&void 0!==e?e:s.getMessage("switch.open","\u6253\u5f00"):null!==(t=null===a||void 0===a?void 0:a.unCheckedChildren)&&void 0!==t?t:s.getMessage("switch.close","\u5173\u95ed")}),[null===a||void 0===a?void 0:a.checkedChildren,null===a||void 0===a?void 0:a.unCheckedChildren,n]);if("read"===i)return r?r(n,(0,Ft.Z)({mode:i},a),(0,ES.jsx)(ES.Fragment,{children:l})):null!==l&&void 0!==l?l:"-";if("edit"===i||"update"===i){var c,u=(0,ES.jsx)(bH,(0,Ft.Z)((0,Ft.Z)({ref:t},hme(a,["value"])),{},{checked:null!==(c=null===a||void 0===a?void 0:a.checked)&&void 0!==c?c:null===a||void 0===a?void 0:a.value}));return o?o(n,(0,Ft.Z)({mode:i},a),u):u}return null},hEe=v.forwardRef(dEe),fEe=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.renderFormItem,a=e.fieldProps,s=e.emptyText,l=void 0===s?"-":s,c=a||{},u=c.autoFocus,d=c.prefix,h=void 0===d?"":d,f=c.suffix,p=void 0===f?"":f,g=zve(),m=(0,v.useRef)();if((0,v.useImperativeHandle)(t,(function(){return m.current})),(0,v.useEffect)((function(){var e;u&&(null===(e=m.current)||void 0===e||e.focus())}),[u]),"read"===i){var y,_=(0,ES.jsxs)(ES.Fragment,{children:[h,null!==n&&void 0!==n?n:l,p]});return r?null!==(y=r(n,(0,Ft.Z)({mode:i},a),_))&&void 0!==y?y:l:_}if("edit"===i||"update"===i){var b=g.getMessage("tableForm.inputPlaceholder","\u8bf7\u8f93\u5165"),C=(0,ES.jsx)(Zy,(0,Ft.Z)({ref:m,placeholder:b,allowClear:!0},a));return o?o(n,(0,Ft.Z)({mode:i},a),C):C}return null},pEe=v.forwardRef(fEe),gEe=function(e,t){var n=e.text,i=e.mode,r=e.render,o=e.renderFormItem,a=e.fieldProps,s=zve();if("read"===i){var l=(0,ES.jsx)("span",{ref:t,style:{display:"inline-block",padding:"4px 11px",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"},children:null!==n&&void 0!==n?n:"-"});return r?r(n,(0,Ft.Z)({mode:i},a),l):l}if("edit"===i||"update"===i){var c=(0,ES.jsx)(Zy.TextArea,(0,Ft.Z)({ref:t,rows:3,onKeyPress:function(e){"Enter"===e.key&&e.stopPropagation()},placeholder:s.getMessage("tableForm.inputPlaceholder","\u8bf7\u8f93\u5165")},a));return o?o(n,(0,Ft.Z)({mode:i},a),c):c}return null},vEe=v.forwardRef(gEe),mEe=function(e,t){var n=e.text,i=e.mode,r=e.light,o=e.label,a=e.format,s=e.render,l=e.renderFormItem,c=e.plain,u=e.fieldProps,d=e.lightLabel,h=(0,v.useState)(!1),f=(0,k.Z)(h,2),p=f[0],g=f[1],m=zve(),y=(null===u||void 0===u?void 0:u.format)||a||"HH:mm:ss",_=ux().isDayjs(n)||"number"===typeof n;if("read"===i){var b=(0,ES.jsx)("span",{ref:t,children:n?ux()(n,_?void 0:y).format(y):"-"});return s?s(n,(0,Ft.Z)({mode:i},u),(0,ES.jsx)("span",{children:b})):b}if("edit"===i||"update"===i){var C,S,w=u.disabled,x=u.value,E=gwe(x,y);if(r)C=(0,ES.jsx)(w_e,{onClick:function(){var e;null===u||void 0===u||null===(e=u.onOpenChange)||void 0===e||e.call(u,!0),g(!0)},style:E?{paddingInlineEnd:0}:void 0,label:o,disabled:w,value:E||p?(0,ES.jsx)(Zde,(0,Ft.Z)((0,Ft.Z)({bordered:!1,format:a,ref:t},u),{},{placeholder:null!==(S=u.placeholder)&&void 0!==S?S:m.getMessage("tableForm.selectPlaceholder","\u8bf7\u9009\u62e9"),value:E,onOpenChange:function(e){var t;g(e),null===u||void 0===u||null===(t=u.onOpenChange)||void 0===t||t.call(u,e)},open:p})):null,downIcon:!E&&!p&&void 0,allowClear:!1,ref:d});else C=(0,ES.jsx)(Gj.TimePicker,(0,Ft.Z)((0,Ft.Z)({ref:t,format:a,bordered:void 0===c||!c},u),{},{value:E}));return l?l(n,(0,Ft.Z)({mode:i},u),C):C}return null},yEe=function(e,t){var n=e.text,i=e.light,r=e.label,o=e.mode,a=e.lightLabel,s=e.format,l=e.render,c=e.renderFormItem,u=e.plain,d=e.fieldProps,h=zve(),f=(0,v.useState)(!1),p=(0,k.Z)(f,2),g=p[0],m=p[1],y=(null===d||void 0===d?void 0:d.format)||s||"HH:mm:ss",_=Array.isArray(n)?n:[],b=(0,k.Z)(_,2),C=b[0],S=b[1],w=ux().isDayjs(C)||"number"===typeof C,x=ux().isDayjs(S)||"number"===typeof S,E=C?ux()(C,w?void 0:y).format(y):"",T=S?ux()(S,x?void 0:y).format(y):"";if("read"===o){var N=(0,ES.jsxs)("div",{ref:t,children:[(0,ES.jsx)("div",{children:E||"-"}),(0,ES.jsx)("div",{children:T||"-"})]});return l?l(n,(0,Ft.Z)({mode:o},d),(0,ES.jsx)("span",{children:N})):N}if("edit"===o||"update"===o){var I,D=gwe(d.value,y);if(i){var L=d.disabled,O=d.placeholder,R=void 0===O?[h.getMessage("tableForm.selectPlaceholder","\u8bf7\u9009\u62e9"),h.getMessage("tableForm.selectPlaceholder","\u8bf7\u9009\u62e9")]:O;I=(0,ES.jsx)(w_e,{onClick:function(){var e;null===d||void 0===d||null===(e=d.onOpenChange)||void 0===e||e.call(d,!0),m(!0)},style:D?{paddingInlineEnd:0}:void 0,label:r,disabled:L,placeholder:R,value:D||g?(0,ES.jsx)(Zde.RangePicker,(0,Ft.Z)((0,Ft.Z)({bordered:!1,format:s,ref:t},d),{},{placeholder:R,value:D,onOpenChange:function(e){var t;m(e),null===d||void 0===d||null===(t=d.onOpenChange)||void 0===t||t.call(d,e)},open:g})):null,downIcon:!D&&!g&&void 0,allowClear:!1,ref:a})}else I=(0,ES.jsx)(Zde.RangePicker,(0,Ft.Z)((0,Ft.Z)({ref:t,format:s,bordered:void 0===u||!u},d),{},{value:D}));return c?c(n,(0,Ft.Z)({mode:o},d),I):I}return null},_Ee=v.forwardRef(yEe),bEe=v.forwardRef(mEe),CEe=v.createContext(null),SEe=v.createContext(null);function wEe(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable}function kEe(e){return null===e||void 0===e}var xEe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},EEe=function(e,t){var n=oN(),i=n.prefixCls,r=n.multiple,o=n.searchValue,a=n.toggleOpen,s=n.open,l=n.notFoundContent,c=v.useContext(SEe),u=c.virtual,d=c.listHeight,h=c.listItemHeight,f=c.treeData,p=c.fieldNames,g=c.onSelect,m=c.dropdownMatchSelectWidth,y=c.treeExpandAction,b=v.useContext(CEe),C=b.checkable,S=b.checkedKeys,w=b.halfCheckedKeys,x=b.treeExpandedKeys,E=b.treeDefaultExpandAll,T=b.treeDefaultExpandedKeys,N=b.onTreeExpand,I=b.treeIcon,D=b.showTreeIcon,L=b.switcherIcon,O=b.treeLine,R=b.treeNodeFilterProp,A=b.loadData,M=b.treeLoadedKeys,P=b.treeMotion,Z=b.onTreeLoad,F=b.keyEntities,B=v.useRef(),H=uo((function(){return f}),[s,f],(function(e,t){return t[0]&&e[1]!==t[1]})),z=v.useMemo((function(){return C?{checked:S,halfChecked:w}:null}),[C,S,w]);v.useEffect((function(){var e;s&&!r&&S.length&&(null===(e=B.current)||void 0===e||e.scrollTo({key:S[0]}))}),[s]);var j=String(o).toLowerCase(),V=v.useState(T),W=(0,k.Z)(V,2),U=W[0],G=W[1],K=v.useState(null),Y=(0,k.Z)(K,2),q=Y[0],$=Y[1],X=v.useMemo((function(){return x?(0,_.Z)(x):o?q:U}),[U,q,x,o]);v.useEffect((function(){o&&$(function(e,t){var n=[];return function e(i){i.forEach((function(i){var r=i[t.children];r&&(n.push(i[t.value]),e(r))}))}(e),n}(f,p))}),[o]);var Q=function(e){e.preventDefault()},J=function(e,t){var n=t.node;C&&wEe(n)||(g(n.key,{selected:!S.includes(n.key)}),r||a(!1))},ee=v.useState(null),te=(0,k.Z)(ee,2),ne=te[0],ie=te[1],re=F[ne];if(v.useImperativeHandle(t,(function(){var e;return{scrollTo:null===(e=B.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case vv.UP:case vv.DOWN:case vv.LEFT:case vv.RIGHT:null===(t=B.current)||void 0===t||t.onKeyDown(e);break;case vv.ENTER:if(re){var n=(null===re||void 0===re?void 0:re.node)||{},i=n.selectable,r=n.value;!1!==i&&J(0,{node:{key:ne},selected:!S.includes(r)})}break;case vv.ESC:a(!1)}},onKeyUp:function(){}}})),0===H.length)return v.createElement("div",{role:"listbox",className:"".concat(i,"-empty"),onMouseDown:Q},l);var oe={fieldNames:p};return M&&(oe.loadedKeys=M),X&&(oe.expandedKeys=X),v.createElement("div",{onMouseDown:Q},re&&s&&v.createElement("span",{style:xEe,"aria-live":"assertive"},re.node.value),v.createElement(iR,Zt({ref:B,focusable:!1,prefixCls:"".concat(i,"-tree"),treeData:H,height:d,itemHeight:h,virtual:!1!==u&&!1!==m,multiple:r,icon:I,showIcon:D,switcherIcon:L,showLine:O,loadData:o?null:A,motion:P,activeKey:ne,checkable:C,checkStrictly:!0,checkedKeys:z,selectedKeys:C?[]:S,defaultExpandAll:E},oe,{onActiveChange:ie,onSelect:J,onCheck:J,onExpand:function(e){G(e),$(e),N&&N(e)},onLoad:Z,filterTreeNode:function(e){return!!j&&String(e[R]).toLowerCase().includes(j)},expandAction:y})))},TEe=v.forwardRef(EEe);TEe.displayName="OptionList";var NEe=TEe,IEe=function(){return null},DEe="SHOW_ALL",LEe="SHOW_PARENT",OEe="SHOW_CHILD";function REe(e,t,n,i){var r=new Set(e);return t===OEe?e.filter((function(e){var t=n[e];return!(t&&t.children&&t.children.some((function(e){var t=e.node;return r.has(t[i.value])}))&&t.children.every((function(e){var t=e.node;return wEe(t)||r.has(t[i.value])})))})):t===LEe?e.filter((function(e){var t=n[e],i=t?t.parent:null;return!(i&&!wEe(i.node)&&r.has(i.key))})):e}var AEe=["children","value"];function MEe(e){return Zi(e).map((function(e){if(!v.isValidElement(e)||!e.type)return null;var t=e,n=t.key,i=t.props,r=i.children,o=i.value,a=Ai(i,AEe),s=(0,Ft.Z)({key:n,value:o},a),l=MEe(r);return l.length&&(s.children=l),s})).filter((function(e){return e}))}function PEe(e){if(!e)return e;var t=(0,Ft.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return li(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function ZEe(e,t,n){return v.useMemo((function(){return e?n?function(e,t){var n=t.id,i=t.pId,r=t.rootPId,o={},a=[],s=e.map((function(e){var t=(0,Ft.Z)({},e),i=t[n];return o[i]=t,t.key=t.key||i,t}));return s.forEach((function(e){var t=e[i],n=o[t];n&&(n.children=n.children||[],n.children.push(e)),(t===r||!n&&null===r)&&a.push(e)})),a}(e,(0,Ft.Z)({id:"id",pId:"pId",rootPId:null},!0!==n?n:{})):e:MEe(t)}),[t,n,e])}function FEe(e){var t=v.useRef();t.current=e;var n=v.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var BEe=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];var HEe=v.forwardRef((function(e,t){var n=e.id,i=e.prefixCls,r=void 0===i?"rc-tree-select":i,o=e.value,a=e.defaultValue,s=e.onChange,l=e.onSelect,c=e.onDeselect,u=e.searchValue,d=e.inputValue,h=e.onSearch,f=e.autoClearSearchValue,p=void 0===f||f,g=e.filterTreeNode,m=e.treeNodeFilterProp,y=void 0===m?"value":m,b=e.showCheckedStrategy,C=void 0===b?OEe:b,S=e.treeNodeLabelProp,w=e.multiple,x=e.treeCheckable,E=e.treeCheckStrictly,T=e.labelInValue,I=e.fieldNames,D=e.treeDataSimpleMode,L=e.treeData,O=e.children,R=e.loadData,A=e.treeLoadedKeys,M=e.onTreeLoad,P=e.treeDefaultExpandAll,Z=e.treeExpandedKeys,F=e.treeDefaultExpandedKeys,B=e.onTreeExpand,H=e.treeExpandAction,z=e.virtual,j=e.listHeight,V=void 0===j?200:j,W=e.listItemHeight,U=void 0===W?20:W,G=e.onDropdownVisibleChange,K=e.dropdownMatchSelectWidth,Y=void 0===K||K,q=e.treeLine,$=e.treeIcon,X=e.showTreeIcon,Q=e.switcherIcon,J=e.treeMotion,ee=Ai(e,BEe),te=pN(n),ne=x&&!E,ie=x||E,re=E||T,oe=ie||w,ae=Sf(a,{value:o}),se=(0,k.Z)(ae,2),le=se[0],ce=se[1];var ue=v.useMemo((function(){return function(e){var t=e||{},n=t.label,i=t.value||"value";return{_title:n?[n]:["title","label"],value:i,key:i,children:t.children||"children"}}(I)}),[JSON.stringify(I)]),de=Sf("",{value:void 0!==u?u:d,postState:function(e){return e||""}}),he=(0,k.Z)(de,2),fe=he[0],pe=he[1],ge=ZEe(L,O,D),ve=function(e,t){return v.useMemo((function(){return _O(e,{fieldNames:t,initWrapper:function(e){return(0,Ft.Z)((0,Ft.Z)({},e),{},{valueEntities:new Map})},processEntity:function(e,n){var i=e.node[t.value];n.valueEntities.set(i,e)}})}),[e,t])}(ge,ue),me=ve.keyEntities,ye=ve.valueEntities,_e=v.useCallback((function(e){var t=[],n=[];return e.forEach((function(e){ye.has(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}}),[ye]),be=function(e,t,n){var i=n.treeNodeFilterProp,r=n.filterTreeNode,o=n.fieldNames.children;return v.useMemo((function(){if(!t||!1===r)return e;var n;if("function"===typeof r)n=r;else{var a=t.toUpperCase();n=function(e,t){var n=t[i];return String(n).toUpperCase().includes(a)}}return function e(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.map((function(i){var a=i[o],s=r||n(t,PEe(i)),l=e(a||[],s);return s||l.length?(0,Ft.Z)((0,Ft.Z)({},i),{},(0,N.Z)({isLeaf:void 0},o,l)):null})).filter((function(e){return e}))}(e)}),[e,t,o,i,r])}(ge,fe,{fieldNames:ue,treeNodeFilterProp:y,filterTreeNode:g}),Ce=v.useCallback((function(e){if(e){if(S)return e[S];for(var t=ue._title,n=0;n<t.length;n+=1){var i=e[t[n]];if(void 0!==i)return i}}}),[ue,S]),Se=v.useCallback((function(e){var t=function(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}(e);return t.map((function(e){return function(e){return!e||"object"!==(0,Bt.Z)(e)}(e)?{value:e}:e}))}),[]),we=v.useCallback((function(e){return Se(e).map((function(e){var t,n,i=e.label,r=e.value,o=e.halfChecked,a=ye.get(r);if(a)i=null!==(n=i)&&void 0!==n?n:Ce(a.node),t=a.node.disabled;else if(void 0===i){i=Se(le).find((function(e){return e.value===r})).label}return{label:i,value:r,halfChecked:o,disabled:t}}))}),[ye,Ce,Se,le]),ke=v.useMemo((function(){return Se(le)}),[Se,le]),xe=v.useMemo((function(){var e=[],t=[];return ke.forEach((function(n){n.halfChecked?t.push(n):e.push(n)})),[e,t]}),[ke]),Ee=(0,k.Z)(xe,2),Te=Ee[0],Ne=Ee[1],Ie=v.useMemo((function(){return Te.map((function(e){return e.value}))}),[Te]),De=function(e,t,n,i){return v.useMemo((function(){var r=e.map((function(e){return e.value})),o=t.map((function(e){return e.value})),a=r.filter((function(e){return!i[e]}));if(n){var s=tR(r,!0,i);r=s.checkedKeys,o=s.halfCheckedKeys}return[Array.from(new Set([].concat((0,_.Z)(a),(0,_.Z)(r)))),o]}),[e,t,n,i])}(Te,Ne,ne,me),Le=(0,k.Z)(De,2),Oe=Le[0],Re=Le[1],Ae=function(e){var t=v.useRef({valueLabels:new Map});return v.useMemo((function(){var n=t.current.valueLabels,i=new Map,r=e.map((function(e){var t,r=e.value,o=null!==(t=e.label)&&void 0!==t?t:n.get(r);return i.set(r,o),(0,Ft.Z)((0,Ft.Z)({},e),{},{label:o})}));return t.current.valueLabels=i,[r]}),[e])}(v.useMemo((function(){var e=REe(Oe,C,me,ue).map((function(e){var t,n,i;return null!==(t=null===(n=me[e])||void 0===n||null===(i=n.node)||void 0===i?void 0:i[ue.value])&&void 0!==t?t:e})).map((function(e){var t=Te.find((function(t){return t.value===e}));return{value:e,label:null===t||void 0===t?void 0:t.label}})),t=we(e),n=t[0];return!oe&&n&&kEe(n.value)&&kEe(n.label)?[]:t.map((function(e){var t;return(0,Ft.Z)((0,Ft.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[ue,oe,Oe,Te,we,C,me])),Me=(0,k.Z)(Ae,1)[0],Pe=FEe((function(e,t,n){var i=we(e);if(ce(i),p&&pe(""),s){var r=e;if(ne){var o=REe(e,C,me,ue);r=o.map((function(e){var t=ye.get(e);return t?t.node[ue.value]:e}))}var a=t||{triggerValue:void 0,selected:void 0},l=a.triggerValue,c=a.selected,u=r;if(E){var d=Ne.filter((function(e){return!r.includes(e.value)}));u=[].concat((0,_.Z)(u),(0,_.Z)(d))}var h=we(u),f={preValue:Te,triggerValue:l},g=!0;(E||"selection"===n&&!c)&&(g=!1),function(e,t,n,i,r,o){var a=null,s=null;function l(){s||(s=[],function e(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return i.map((function(i,c){var u="".concat(r,"-").concat(c),d=i[o.value],h=n.includes(d),f=e(i[o.children]||[],u,h),p=v.createElement(IEe,i,f.map((function(e){return e.node})));if(t===d&&(a=p),h){var g={pos:u,node:p,children:f};return l||s.push(g),g}return null})).filter((function(e){return e}))}(i),s.sort((function(e,t){var i=e.node.props.value,r=t.node.props.value;return n.indexOf(i)-n.indexOf(r)})))}Object.defineProperty(e,"triggerNode",{get:function(){return li(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return li(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),r?s:s.map((function(e){return e.node}))}})}(f,l,e,ge,g,ue),ie?f.checked=c:f.selected=c;var m=re?h:h.map((function(e){return e.value}));s(oe?m:m[0],re?null:h.map((function(e){return e.label})),f)}})),Ze=v.useCallback((function(e,t){var n,i=t.selected,r=t.source,o=me[e],a=null===o||void 0===o?void 0:o.node,s=null!==(n=null===a||void 0===a?void 0:a[ue.value])&&void 0!==n?n:e;if(oe){var u=i?[].concat((0,_.Z)(Ie),[s]):Oe.filter((function(e){return e!==s}));if(ne){var d,h=_e(u),f=h.missingRawValues,p=h.existRawValues.map((function(e){return ye.get(e).key}));if(i)d=tR(p,!0,me).checkedKeys;else d=tR(p,{checked:!1,halfCheckedKeys:Re},me).checkedKeys;u=[].concat((0,_.Z)(f),(0,_.Z)(d.map((function(e){return me[e].node[ue.value]}))))}Pe(u,{selected:i,triggerValue:s},r||"option")}else Pe([s],{selected:!0,triggerValue:s},"option");i||!oe?null===l||void 0===l||l(s,PEe(a)):null===c||void 0===c||c(s,PEe(a))}),[_e,ye,me,ue,oe,Ie,Pe,ne,l,c,Oe,Re]),Fe=v.useCallback((function(e){if(G){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return li(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),G(e,t)}}),[G]),Be=FEe((function(e,t){var n=e.map((function(e){return e.value}));"clear"!==t.type?t.values.length&&Ze(t.values[0].value,{selected:!1,source:"selection"}):Pe(n,{},"selection")})),He=v.useMemo((function(){return{virtual:z,dropdownMatchSelectWidth:Y,listHeight:V,listItemHeight:U,treeData:be,fieldNames:ue,onSelect:Ze,treeExpandAction:H}}),[z,Y,V,U,be,ue,Ze,H]),ze=v.useMemo((function(){return{checkable:ie,loadData:R,treeLoadedKeys:A,onTreeLoad:M,checkedKeys:Oe,halfCheckedKeys:Re,treeDefaultExpandAll:P,treeExpandedKeys:Z,treeDefaultExpandedKeys:F,onTreeExpand:B,treeIcon:$,treeMotion:J,showTreeIcon:X,switcherIcon:Q,treeLine:q,treeNodeFilterProp:y,keyEntities:me}}),[ie,R,A,M,Oe,Re,P,Z,F,B,$,J,X,Q,q,y,me]);return v.createElement(SEe.Provider,{value:He},v.createElement(CEe.Provider,{value:ze},v.createElement(uN,Zt({ref:t},ee,{id:te,prefixCls:r,mode:oe?"multiple":void 0,displayValues:Me,onDisplayValuesChange:Be,searchValue:fe,onSearch:function(e){pe(e),null===h||void 0===h||h(e)},OptionList:NEe,emptyOptions:!ge.length,onDropdownVisibleChange:Fe,dropdownMatchSelectWidth:Y}))))}));var zEe=HEe;zEe.TreeNode=IEe,zEe.SHOW_ALL=DEe,zEe.SHOW_PARENT=LEe,zEe.SHOW_CHILD=OEe;var jEe=zEe,VEe=function(e){var t=e.componentCls,n=e.treePrefixCls,i=e.colorBgElevated,r="."+n;return[(0,N.Z)({},t+"-dropdown",[{padding:e.paddingXS+"px "+e.paddingXS/2+"px"},kR(n,cs(e,{colorBgContainer:i})),(0,N.Z)({},r,{borderRadius:0,"&-list-holder-inner":(0,N.Z)({alignItems:"stretch"},r+"-treenode",(0,N.Z)({},r+"-node-content-wrapper",{flex:"auto"}))}),OL(n+"-checkbox",e),{"&-rtl":(0,N.Z)({direction:"rtl"},r+"-switcher"+r+"-switcher_close",(0,N.Z)({},r+"-switcher-icon svg",{transform:"rotate(90deg)"}))}])]};var WEe=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},UEe=function(e,t){var n,i=e.prefixCls,r=e.size,o=e.disabled,a=e.bordered,s=void 0===a||a,l=e.className,c=e.treeCheckable,u=e.multiple,d=e.listHeight,h=void 0===d?256:d,f=e.listItemHeight,p=void 0===f?26:f,g=e.placement,m=e.notFoundContent,y=e.switcherIcon,_=e.treeLine,b=e.getPopupContainer,C=e.popupClassName,S=e.dropdownClassName,w=e.treeIcon,x=void 0!==w&&w,E=e.transitionName,T=e.choiceTransitionName,I=void 0===T?"":T,D=e.status,L=e.showArrow,O=e.treeExpandAction,R=WEe(e,["prefixCls","size","disabled","bordered","className","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","showArrow","treeExpandAction"]),A=v.useContext(wa),M=A.getPopupContainer,P=A.getPrefixCls,Z=A.renderEmpty,F=A.direction,B=A.virtual,H=A.dropdownMatchSelectWidth,z=v.useContext(Pa);var j,V=P(),W=P("select",i),U=P("select-tree",i),G=P("tree-select",i),K=tg(W,F),Y=K.compactSize,q=K.compactItemClassnames,$=SI(W),X=(0,k.Z)($,2),Q=X[0],J=X[1],ee=function(e,t){return hs("TreeSelect",(function(e){var n=cs(e,{treePrefixCls:t});return[VEe(n)]}))(e)}(G,U),te=(0,k.Z)(ee,1)[0],ne=Ja()(C||S,G+"-dropdown",(0,N.Z)({},G+"-dropdown-rtl","rtl"===F),J),ie=!(!c&&!u),re=void 0!==L?L:R.loading||!ie,oe=(0,v.useContext)(Sl),ae=oe.status,se=oe.hasFeedback,le=oe.isFormItemInput,ce=oe.feedbackIcon,ue=jm(ae,D),de=dI(Zt(Zt({},R),{multiple:ie,showArrow:re,hasFeedback:se,feedbackIcon:ce,prefixCls:W})),he=de.suffixIcon,fe=de.removeIcon,pe=de.clearIcon;j=void 0!==m?m:(Z||sI)("Select");var ge=ns(R,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),ve=Y||r||z,me=v.useContext(Ia),ye=null!==o&&void 0!==o?o:me,_e=Ja()(!i&&G,(n={},(0,N.Z)(n,W+"-lg","large"===ve),(0,N.Z)(n,W+"-sm","small"===ve),(0,N.Z)(n,W+"-rtl","rtl"===F),(0,N.Z)(n,W+"-borderless",!s),(0,N.Z)(n,W+"-in-form-item",le),n),zm(W,ue,se),q,l,J);return Q(te(v.createElement(jEe,Zt({virtual:B,dropdownMatchSelectWidth:H,disabled:ye},ge,{ref:t,prefixCls:W,className:_e,listHeight:h,listItemHeight:p,treeCheckable:c?v.createElement("span",{className:W+"-tree-checkbox-inner"}):c,treeLine:!!_,inputIcon:he,multiple:u,placement:void 0!==g?g:"rtl"===F?"bottomRight":"bottomLeft",removeIcon:fe,clearIcon:pe,switcherIcon:function(e){return bR(U,y,_,e)},showTreeIcon:x,notFoundContent:j,getPopupContainer:b||M,treeMotion:null,dropdownClassName:ne,choiceTransitionName:Lc(V,"",I),transitionName:Lc(V,Dc(g),E),showArrow:se||L,treeExpandAction:O}))))},GEe=v.forwardRef(UEe),KEe=SC(GEe);GEe.TreeNode=IEe,GEe.SHOW_ALL=DEe,GEe.SHOW_PARENT=LEe,GEe.SHOW_CHILD=OEe,GEe._InternalPanelDoNotUseOrYouWillBeFired=KEe;var YEe=GEe,qEe=["radioType","renderFormItem","mode","light","label","render","fetchDataOnSearch"],$Ee=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],XEe=function(e,t){e.radioType;var n=e.renderFormItem,i=e.mode,r=e.light,o=e.label,a=e.render,s=e.fetchDataOnSearch,l=void 0===s||s,c=Ai(e,qEe),u=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-field-tree-select"),d=(0,v.useRef)(null),h=(0,v.useState)(!1),f=(0,k.Z)(h,2),p=f[0],g=f[1],m=c.fieldProps,y=m.onSearch,_=m.onClear,b=m.onChange,C=m.onBlur,S=m.showSearch,w=m.autoClearSearchValue,x=(m.treeData,m.fetchDataOnSearch,m.searchValue),E=Ai(m,$Ee),T=zve(),N=xbe((0,Ft.Z)((0,Ft.Z)({},c),{},{defaultKeyWords:x})),I=(0,k.Z)(N,3),D=I[0],L=I[1],O=I[2],R=Sf(void 0,{onChange:y,value:x}),A=(0,k.Z)(R,2),M=A[0],P=A[1];(0,v.useImperativeHandle)(t,(function(){return(0,Ft.Z)((0,Ft.Z)({},d.current||{}),{},{fetchData:function(e){return O(e)}})}));var Z=(0,v.useMemo)((function(){if("read"===i){var e=(null===E||void 0===E?void 0:E.fieldNames)||{},t=e.value,n=void 0===t?"value":t,r=e.label,o=void 0===r?"label":r,a=e.children,s=void 0===a?"children":a,l=new Map;return function e(t){if(null===t||void 0===t||!t.length)return l;for(var i=t.length,r=0;r<i;){var a=t[r++];l.set(a[n],a[o]),e(a[s])}return l}(L)}}),[null===E||void 0===E?void 0:E.fieldNames,i,L]);if("read"===i){var F,B=(0,ES.jsx)(ES.Fragment,{children:Sbe(c.text,Cbe(c.valueEnum||Z))});return a?null!==(F=a(c.text,(0,Ft.Z)({mode:i},E),B))&&void 0!==F?F:null:B}if("edit"===i){var H,z,j=Array.isArray(null===E||void 0===E?void 0:E.value)?null===E||void 0===E||null===(H=E.value)||void 0===H?void 0:H.length:0,V=(0,ES.jsx)(Cs,{spinning:D,children:(0,ES.jsx)(YEe,(0,Ft.Z)((0,Ft.Z)({open:p,onDropdownVisibleChange:function(e){var t;null===E||void 0===E||null===(t=E.onDropdownVisibleChange)||void 0===t||t.call(E,e),g(e)},ref:d,popupMatchSelectWidth:!r,placeholder:T.getMessage("tableForm.selectPlaceholder","\u8bf7\u9009\u62e9"),tagRender:r?function(e){var t;if(j<2)return(0,ES.jsx)(ES.Fragment,{children:e.label});var n=null===E||void 0===E||null===(t=E.value)||void 0===t?void 0:t.findIndex((function(t){return t===e.value||t.value===e.value}));return(0,ES.jsxs)(ES.Fragment,{children:[e.label," ",n<j-1?",":""]})}:void 0},E),{},{bordered:!r,treeData:L,showSearch:S,style:(0,Ft.Z)({minWidth:60},E.style),allowClear:!1!==E.allowClear,searchValue:M,autoClearSearchValue:w,onClear:function(){null===_||void 0===_||_(),O(void 0),S&&P(void 0)},onChange:function(e,t,n){S&&w&&(O(void 0),P(void 0)),null===b||void 0===b||b(e,t,n)},onSearch:function(e){l&&O(e),P(e)},onBlur:function(e){P(void 0),O(void 0),null===C||void 0===C||C(e)},className:Ja()(null===E||void 0===E?void 0:E.className,u)}))});if(n)V=null!==(z=n(c.text,(0,Ft.Z)({mode:i},E),V))&&void 0!==z?z:null;if(r){var W,U=E.disabled,G=E.placeholder,K=!!E.value&&0!==(null===(W=E.value)||void 0===W?void 0:W.length);return(0,ES.jsx)(w_e,{label:o,disabled:U,placeholder:G,onClick:function(){var e;g(!0),null===E||void 0===E||null===(e=E.onDropdownVisibleChange)||void 0===e||e.call(E,!0)},bordered:c.bordered,value:K||p?V:null,style:K?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:!1})}return V}return null},QEe=v.forwardRef(XEe);var JEe=function(e){var t=(0,v.useState)(!1),n=(0,k.Z)(t,2),i=n[0],r=n[1],o=(0,v.useRef)(null),a=(0,v.useCallback)((function(e){var t,n,i,r,a,s,l=null===(t=o.current)||void 0===t||null===(n=t.labelRef)||void 0===n||null===(i=n.current)||void 0===i?void 0:i.contains(e.target),c=null===(r=o.current)||void 0===r||null===(a=r.clearRef)||void 0===a||null===(s=a.current)||void 0===s?void 0:s.contains(e.target);return l&&!c}),[o]);return e.isLight?(0,ES.jsx)("div",{onMouseDown:function(e){a(e)&&r(!0)},onMouseUp:function(){r(!1)},children:v.cloneElement(e.children,{labelTrigger:i,lightLabel:o})}):(0,ES.jsx)(ES.Fragment,{children:e.children})},eTe=n(86930),tTe=n.n(eTe),nTe=["fieldProps"],iTe=["fieldProps"],rTe=["fieldProps"],oTe=["fieldProps"],aTe=["text","valueType","mode","onChange","renderFormItem","value","readonly"],sTe=["placeholder"];ux().extend(IH()),ux().extend(LH()),ux().extend(ZH()),ux().extend(tTe()),ux().extend(RH());var lTe=["select","radio","radioButton","checkbook"],cTe=function(e,t,n,i){var r,o=n.mode,a=void 0===o?"read":o,s=n.emptyText,l=void 0===s?"-":s;if(!1!==l&&"read"===a&&"option"!==t&&"switch"!==t&&"boolean"!==typeof e&&"number"!==typeof e&&!e){var c=n.fieldProps,u=n.render;return u?u(e,(0,Ft.Z)({mode:a},c),(0,ES.jsx)(ES.Fragment,{children:l})):(0,ES.jsx)(ES.Fragment,{children:l})}if(delete n.emptyText,"object"===(0,Bt.Z)(t))return function(e,t,n){var i=vye(n.fieldProps);return"progress"===t.type?(0,ES.jsx)(Gke,(0,Ft.Z)((0,Ft.Z)({},n),{},{text:e,fieldProps:(0,Ft.Z)({status:t.status?t.status:void 0},i)})):"money"===t.type?(0,ES.jsx)(Eke,(0,Ft.Z)((0,Ft.Z)({locale:t.locale},n),{},{fieldProps:i,text:e,moneySymbol:t.moneySymbol})):"percent"===t.type?(0,ES.jsx)(Vke,(0,Ft.Z)((0,Ft.Z)({},n),{},{text:e,showSymbol:t.showSymbol,precision:t.precision,fieldProps:i,showColor:t.showColor})):"image"===t.type?(0,ES.jsx)(mke,(0,Ft.Z)((0,Ft.Z)({},n),{},{text:e,width:t.width})):e}(e,t,n);var d=i&&i[t];if(d){var h,f;if(delete n.ref,"read"===a)return null===(h=d.render)||void 0===h?void 0:h.call(d,e,(0,Ft.Z)((0,Ft.Z)({text:e},n),{},{mode:a||"read"}),(0,ES.jsx)(ES.Fragment,{children:e}));if("update"===a||"edit"===a)return null===(f=d.renderFormItem)||void 0===f?void 0:f.call(d,e,(0,Ft.Z)({text:e},n),(0,ES.jsx)(ES.Fragment,{children:e}))}var p=lTe.includes(t),g=!!(n.valueEnum||n.request||n.options||null!==(r=n.fieldProps)&&void 0!==r&&r.options);if(si(!p||g,"\u5982\u679c\u8bbe\u7f6e\u4e86 valueType \u4e3a ".concat(lTe.join(","),"\u4e2d\u4efb\u610f\u4e00\u4e2a\uff0c\u5219\u9700\u8981\u914d\u7f6eoptions\uff0crequest, valueEnum \u5176\u4e2d\u4e4b\u4e00\uff0c\u5426\u5219\u65e0\u6cd5\u751f\u6210\u9009\u9879\u3002")),si(!p||g,"If you set valueType to any of ".concat(lTe.join(","),", you need to configure options, request or valueEnum.")),"money"===t)return(0,ES.jsx)(Eke,(0,Ft.Z)((0,Ft.Z)({},n),{},{text:e}));if("date"===t)return(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(mwe,(0,Ft.Z)({text:e,format:"YYYY-MM-DD"},n))});if("dateWeek"===t)return(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(mwe,(0,Ft.Z)({text:e,format:"YYYY-wo",picker:"week"},n))});if("dateWeekRange"===t){var v=n.fieldProps,m=Ai(n,nTe);return(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(Xke,(0,Ft.Z)({text:e,format:"YYYY-W",showTime:!0,fieldProps:(0,Ft.Z)({picker:"week"},v)},m))})}if("dateMonthRange"===t){var y=n.fieldProps,_=Ai(n,iTe);return(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(Xke,(0,Ft.Z)({text:e,format:"YYYY-MM",showTime:!0,fieldProps:(0,Ft.Z)({picker:"month"},y)},_))})}if("dateQuarterRange"===t){var b=n.fieldProps,C=Ai(n,rTe);return(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(Xke,(0,Ft.Z)({text:e,format:"YYYY-Q",showTime:!0,fieldProps:(0,Ft.Z)({picker:"quarter"},b)},C))})}if("dateYearRange"===t){var S=n.fieldProps,w=Ai(n,oTe);return(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(Xke,(0,Ft.Z)({text:e,format:"YYYY",showTime:!0,fieldProps:(0,Ft.Z)({picker:"year"},S)},w))})}return"dateMonth"===t?(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(mwe,(0,Ft.Z)({text:e,format:"YYYY-MM",picker:"month"},n))}):"dateQuarter"===t?(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(mwe,(0,Ft.Z)({text:e,format:"YYYY-[Q]Q",picker:"quarter"},n))}):"dateYear"===t?(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(mwe,(0,Ft.Z)({text:e,format:"YYYY",picker:"year"},n))}):"dateRange"===t?(0,ES.jsx)(Xke,(0,Ft.Z)({text:e,format:"YYYY-MM-DD"},n)):"dateTime"===t?(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(mwe,(0,Ft.Z)({text:e,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},n))}):"dateTimeRange"===t?(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(Xke,(0,Ft.Z)({text:e,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},n))}):"time"===t?(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(bEe,(0,Ft.Z)({text:e,format:"HH:mm:ss"},n))}):"timeRange"===t?(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(_Ee,(0,Ft.Z)({text:e,format:"HH:mm:ss"},n))}):"fromNow"===t?(0,ES.jsx)(xwe,(0,Ft.Z)({text:e},n)):"index"===t?(0,ES.jsx)(_ke,{children:e+1}):"indexBorder"===t?(0,ES.jsx)(_ke,{border:!0,children:e+1}):"progress"===t?(0,ES.jsx)(Gke,(0,Ft.Z)((0,Ft.Z)({},n),{},{text:e})):"percent"===t?(0,ES.jsx)(Vke,(0,Ft.Z)({text:e},n)):"avatar"===t&&"string"===typeof e&&"read"===n.mode?(0,ES.jsx)(fS,{src:e,size:22,shape:"circle"}):"code"===t?(0,ES.jsx)(Mbe,(0,Ft.Z)({text:e},n)):"jsonCode"===t?(0,ES.jsx)(Mbe,(0,Ft.Z)({text:e,language:"json"},n)):"textarea"===t?(0,ES.jsx)(vEe,(0,Ft.Z)({text:e},n)):"digit"===t?(0,ES.jsx)(_we,(0,Ft.Z)({text:e},n)):"digitRange"===t?(0,ES.jsx)(Cwe,(0,Ft.Z)({text:e},n)):"second"===t?(0,ES.jsx)(fxe,(0,Ft.Z)({text:e},n)):"select"===t||"text"===t&&(n.valueEnum||n.request)?(0,ES.jsx)(JEe,{isLight:n.light,children:(0,ES.jsx)(Tbe,(0,Ft.Z)({text:e},n))}):"checkbox"===t?(0,ES.jsx)(Rbe,(0,Ft.Z)({text:e},n)):"radio"===t?(0,ES.jsx)(qke,(0,Ft.Z)({text:e},n)):"radioButton"===t?(0,ES.jsx)(qke,(0,Ft.Z)({radioType:"button",text:e},n)):"rate"===t?(0,ES.jsx)(dxe,(0,Ft.Z)({text:e},n)):"slider"===t?(0,ES.jsx)(uEe,(0,Ft.Z)({text:e},n)):"switch"===t?(0,ES.jsx)(hEe,(0,Ft.Z)({text:e},n)):"option"===t?(0,ES.jsx)(Ike,(0,Ft.Z)({text:e},n)):"password"===t?(0,ES.jsx)(Pke,(0,Ft.Z)({text:e},n)):"image"===t?(0,ES.jsx)(mke,(0,Ft.Z)({text:e},n)):"cascader"===t?(0,ES.jsx)(Dbe,(0,Ft.Z)({text:e},n)):"treeSelect"===t?(0,ES.jsx)(QEe,(0,Ft.Z)({text:e},n)):"color"===t?(0,ES.jsx)(fwe,(0,Ft.Z)({text:e},n)):"segmented"===t?(0,ES.jsx)(Oxe,(0,Ft.Z)({text:e},n)):(0,ES.jsx)(pEe,(0,Ft.Z)({text:e},n))},uTe=function(e,t){var n,i,r,o,a,s=e.text,l=e.valueType,c=void 0===l?"text":l,u=e.mode,d=void 0===u?"read":u,h=e.onChange,f=e.renderFormItem,p=e.value,g=e.readonly,m=Ai(e,aTe),y=(0,v.useContext)(Vve),_=(0,v.useMemo)((function(){return(void 0!==p||h||(null===m||void 0===m?void 0:m.fieldProps))&&(0,Ft.Z)((0,Ft.Z)({value:p},Ufe(null===m||void 0===m?void 0:m.fieldProps)),{},{onChange:function(){for(var e,t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];null===m||void 0===m||null===(e=m.fieldProps)||void 0===e||null===(t=e.onChange)||void 0===t||t.call.apply(t,[e].concat(i)),null===h||void 0===h||h.apply(void 0,i)}})}),[p,h,null===m||void 0===m?void 0:m.fieldProps]);return(0,ES.jsx)(v.Fragment,{children:cTe("edit"===d?null!==(n=null!==(i=null===_||void 0===_?void 0:_.value)&&void 0!==i?i:s)&&void 0!==n?n:"":null!==(r=null!==s&&void 0!==s?s:null===_||void 0===_?void 0:_.value)&&void 0!==r?r:"",c||"text",Ufe((0,Ft.Z)((0,Ft.Z)({ref:t},m),{},{mode:g?"read":d,renderFormItem:f?function(e,t,n){t.placeholder;var i=Ai(t,sTe),r=f(e,i,n);return v.isValidElement(r)?v.cloneElement(r,(0,Ft.Z)((0,Ft.Z)({},_),r.props||{})):r}:void 0,placeholder:f?void 0:null!==(o=null===m||void 0===m?void 0:m.placeholder)&&void 0!==o?o:null===_||void 0===_?void 0:_.placeholder,fieldProps:vye(Ufe((0,Ft.Z)((0,Ft.Z)({},_),{},{placeholder:f?void 0:null!==(a=null===m||void 0===m?void 0:m.placeholder)&&void 0!==a?a:null===_||void 0===_?void 0:_.placeholder})))})),y.valueTypeMap||{})})},dTe=v.forwardRef(uTe),hTe=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter"];function fTe(e){return fTe="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fTe(e)}var pTe=function(){var e=new WeakSet;return function(t,n){if("object"===fTe(n)&&null!==n){if(e.has(n))return;e.add(n)}return n}},gTe=function(e){return JSON.stringify(e,pTe())};var vTe=function(e,t){return"function"===typeof t?t(ux()(e)):ux()(e).format(t)},mTe=function(e){return(0,N.Z)({},e.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(e.colorSplit)})};var yTe=function(e){var t=zve(),n=e.onClear,i=e.onConfirm,r=e.disabled,o=e.footerRender,a=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-core-dropdown-footer"),s=function(e){return Ove("DropdownFooter",(function(t){var n=(0,Ft.Z)((0,Ft.Z)({},t),{},{componentCls:".".concat(e)});return[mTe(n)]}))}(a),l=s.wrapSSR,c=s.hashId,u=[(0,ES.jsx)(Jg,{style:{visibility:n?"visible":"hidden"},type:"link",size:"small",disabled:r,onClick:function(e){n&&n(e),e.stopPropagation()},children:t.getMessage("form.lightFilter.clear","\u6e05\u9664")},"clear"),(0,ES.jsx)(Jg,{"data-type":"confirm",type:"primary",size:"small",onClick:i,disabled:r,children:t.getMessage("form.lightFilter.confirm","\u786e\u8ba4")},"confirm")];if(!1===o||!1===(null===o||void 0===o?void 0:o(i,n)))return null;var d=(null===o||void 0===o?void 0:o(i,n))||u;return l((0,ES.jsx)("div",{className:Ja()(a,c),onClick:function(e){return"confirm"!==e.target.getAttribute("data-type")&&e.stopPropagation()},children:d}))},_Te=function(e){var t;return t={},(0,N.Z)(t,"".concat(e.componentCls,"-label"),{cursor:"pointer"}),(0,N.Z)(t,"".concat(e.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),(0,N.Z)(t,"".concat(e.componentCls,"-content"),{paddingBlock:16,paddingInline:16}),t};var bTe=function(e){var t,n=e.children,i=e.label,r=e.footer,o=e.open,a=e.onOpenChange,s=e.disabled,l=e.onVisibleChange,c=e.visible,u=e.footerRender,d=e.placement,h=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-core-field-dropdown"),f=function(e){return Ove("FilterDropdown",(function(t){var n=(0,Ft.Z)((0,Ft.Z)({},t),{},{componentCls:".".concat(e)});return[_Te(n)]}))}(h),p=f.wrapSSR,g=f.hashId,m=Qfe(o||c||!1,a||l),y=(0,v.useRef)(null);return p((0,ES.jsx)(uS,(0,Ft.Z)((0,Ft.Z)({placement:d,trigger:["click"]},m),{},{overlayInnerStyle:{padding:0},content:(0,ES.jsxs)("div",{ref:y,className:Ja()("".concat(h,"-overlay"),(t={},(0,N.Z)(t,"".concat(h,"-overlay-").concat(d),d),(0,N.Z)(t,"hashId",g),t)),children:[(0,ES.jsx)(Xa,{getPopupContainer:function(){return y.current||document.body},children:(0,ES.jsx)("div",{className:"".concat(h,"-content ").concat(g),children:n})}),r&&(0,ES.jsx)(yTe,(0,Ft.Z)({disabled:s,footerRender:u},r))]}),children:(0,ES.jsx)("span",{className:"".concat(h,"-label ").concat(g),children:i})})))},CTe=function(e){var t;return t={},(0,N.Z)(t,"".concat(e.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),(0,N.Z)(t,"".concat(e.componentCls,"-container"),(0,N.Z)({},"".concat(e.antCls,"-form-item"),{marginBlockEnd:0})),t};var STe=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],wTe=function(e){var t,n=e.label,i=e.size,r=e.disabled,o=e.onChange,a=e.className,s=e.style,l=e.children,c=e.valuePropName,u=e.placeholder,d=e.labelFormatter,h=e.bordered,f=e.footerRender,p=e.allowClear,g=e.otherFieldProps,m=e.valueType,y=e.placement,_=Ai(e,STe),b=(0,(0,v.useContext)(Xa.ConfigContext).getPrefixCls)("pro-field-light-wrapper"),C=function(e){return Ove("LightWrapper",(function(t){var n=(0,Ft.Z)((0,Ft.Z)({},t),{},{componentCls:".".concat(e)});return[CTe(n)]}))}(b),S=C.wrapSSR,w=C.hashId,x=(0,v.useState)(e[c]),E=(0,k.Z)(x,2),T=E[0],I=E[1],D=Sf(!1),L=(0,k.Z)(D,2),O=L[0],R=L[1],A=function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];null===g||void 0===g||null===(e=g.onChange)||void 0===e||e.call.apply(e,[g].concat(n)),null===o||void 0===o||o.apply(void 0,n)},M=e[c],P=(0,v.useMemo)((function(){var e;return null!==m&&void 0!==m&&null!==(e=m.toLowerCase())&&void 0!==e&&e.endsWith("range")&&"digitRange"!==m&&!d?function(e,t){var n,i,r=Array.isArray(e)?e:[],o=(0,k.Z)(r,2),a=o[0],s=o[1];Array.isArray(t)?(n=t[0],i=t[1]):(n=t,i=t);var l=a?vTe(a,n):"",c=s?vTe(s,i):"";return l&&c?"".concat(l," ~ ").concat(c):""}(M,rme[m]||"YYYY-MM-DD"):M}),[M,m,d]);return S((0,ES.jsx)(bTe,{disabled:r,open:O,onOpenChange:R,placement:y,label:(0,ES.jsx)(w_e,{ellipsis:!0,size:i,onClear:function(){null===A||void 0===A||A(),I("")},bordered:h,style:s,className:a,label:n,placeholder:u,value:P,disabled:r,formatter:d,allowClear:p}),footer:{onClear:function(){return I("")},onConfirm:function(){null===A||void 0===A||A(T),R(!1)}},footerRender:f,children:(0,ES.jsx)("div",{className:Ja()("".concat(b,"-container"),w,a),style:s,children:v.cloneElement(l,(0,Ft.Z)((0,Ft.Z)({},_),{},(t={},(0,N.Z)(t,c,T),(0,N.Z)(t,"onChange",(function(e){I(null!==e&&void 0!==e&&e.target?e.target.value:e)})),t),l.props))})}))},kTe=["children","onChange","onBlur","ignoreFormItem","valuePropName"],xTe=["children","addonAfter","addonBefore","valuePropName","convertValue"],ETe=["valueType","transform","dataFormat","ignoreFormItem","lightProps","children"],TTe=v.createContext({}),NTe=function(e){var t=e.children,n=e.onChange,i=e.onBlur,r=(e.ignoreFormItem,e.valuePropName),o=void 0===r?"value":r,a=Ai(e,kTe),s=(0,v.useCallback)((function(){for(var e,i,r,o,a,s,l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];null===n||void 0===n||n.apply(void 0,c),"ProFormComponent"===(null===t||void 0===t||null===(e=t.type)||void 0===e?void 0:e.displayName)&&v.isValidElement(t)&&(null===t||void 0===t||null===(i=t.props)||void 0===i||null===(r=i.onChange)||void 0===r||r.call.apply(r,[i].concat(c)),null===t||void 0===t||null===(o=t.props)||void 0===o||null===(a=o.fieldProps)||void 0===a||null===(s=a.onChange)||void 0===s||s.call.apply(s,[a].concat(c)))}),[t,n]),l=(0,v.useCallback)((function(){var e,n,r,o,a,s;if("ProFormComponent"===(null===t||void 0===t||null===(e=t.type)||void 0===e?void 0:e.displayName)&&v.isValidElement(t)){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];null===i||void 0===i||i.apply(void 0,c),null===t||void 0===t||null===(n=t.props)||void 0===n||null===(r=n.onBlur)||void 0===r||r.call.apply(r,[n].concat(c)),null===t||void 0===t||null===(o=t.props)||void 0===o||null===(a=o.fieldProps)||void 0===a||null===(s=a.onBlur)||void 0===s||s.call.apply(s,[a].concat(c))}}),[t,i]),c=(0,v.useMemo)((function(){var n,i;if("ProFormComponent"===(null===t||void 0===t||null===(n=t.type)||void 0===n?void 0:n.displayName)&&v.isValidElement(t))return Ufe((0,Ft.Z)((0,Ft.Z)((0,N.Z)({id:a.id},o,e[o]),(null===t||void 0===t||null===(i=t.props)||void 0===i?void 0:i.fieldProps)||{}),{},{onBlur:l,onChange:s}))}),[t,e,l,s,a.id,o]),u=(0,v.useMemo)((function(){if(!c&&v.isValidElement(t))return function(){for(var e,i,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];null===n||void 0===n||n.apply(void 0,o),null===t||void 0===t||null===(e=t.props)||void 0===e||null===(i=e.onChange)||void 0===i||i.call.apply(i,[e].concat(o))}}),[c,t,n]);return v.isValidElement(t)?v.cloneElement(t,Ufe((0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},a),{},(0,N.Z)({},o,e[o]),t.props),{},{onChange:u,fieldProps:c}))):(0,ES.jsx)(ES.Fragment,{children:t})},ITe=function(e){var t=e.children,n=e.addonAfter,i=e.addonBefore,r=e.valuePropName,o=e.convertValue,a=Ai(e,xTe),s=(0,v.useMemo)((function(){var e=function(e){var t,n=null!==(t=null===o||void 0===o?void 0:o(e,a.name))&&void 0!==t?t:e;return a.getValueProps?a.getValueProps(n):(0,N.Z)({},r||"value",n)};return o||a.getValueProps||(e=void 0),n||i?(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({_internalItemRender:{mark:"pro_table_render",render:function(e,t){return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[i?(0,ES.jsx)("div",{style:{marginInlineEnd:8},children:i}):null,t.input,n?(0,ES.jsx)("div",{style:{marginInlineStart:8},children:n}):null]}),t.extra,t.errorList]})}}},a),{},{getValueProps:e,children:t})):(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},a),{},{valuePropName:r,getValueProps:e,children:t}))}),[n,i,t,null===o||void 0===o?void 0:o.toString(),a]);return(0,ES.jsx)(TTe.Provider,{value:{name:a.name,label:a.label},children:s})},DTe=function(e){var t,n,i,r,o=((null===Xa||void 0===Xa||null===(t=Xa.useConfig)||void 0===t?void 0:t.call(Xa))||{componentSize:"middle"}).componentSize,a=e.valueType,s=e.transform,l=e.dataFormat,c=e.ignoreFormItem,u=e.lightProps,d=void 0===u?{}:u,h=(e.children,Ai(e,ETe)),f=(0,v.useContext)(iye),p=(0,v.useMemo)((function(){return void 0!==f.name?[f.name,e.name].flat(1):e.name}),[f.name,e.name]),g=v.useContext(oye),m=g.setFieldValueType,y=g.formItemProps;(0,v.useEffect)((function(){m&&e.name&&m([f.listName,e.name].flat(1).filter((function(e){return void 0!==e})),{valueType:a||"text",dateFormat:l,transform:s})}),[f.listName,p,l,e.name,m,s,a]);var _,b=v.isValidElement(e.children)&&function(e){var t=!1;return("string"===typeof e&&e.startsWith("date")&&!e.endsWith("Range")||"select"===e||"time"===e)&&(t=!0),t}(a||e.children.props.valueType),C=(0,v.useMemo)((function(){return!(d.light&&!d.customLightMode&&!b)}),[d.customLightMode,b,d.light]);if("function"===typeof e.children)return(0,v.createElement)(ITe,(0,Ft.Z)((0,Ft.Z)({},h),{},{name:p,key:h.proFormFieldKey||(null===(_=h.name)||void 0===_?void 0:_.toString())}),e.children);var S=(0,ES.jsx)(NTe,{valuePropName:e.valuePropName,children:e.children},h.proFormFieldKey||(null===(n=h.name)||void 0===n?void 0:n.toString())),w=C?S:(0,v.createElement)(wTe,(0,Ft.Z)((0,Ft.Z)({},d),{},{key:h.proFormFieldKey||(null===(i=h.name)||void 0===i?void 0:i.toString()),size:o}),S);return c?(0,ES.jsx)(ES.Fragment,{children:w}):(0,ES.jsx)(ITe,(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},y),h),{},{name:p,isListField:void 0!==f.name,children:w}),h.proFormFieldKey||(null===(r=h.name)||void 0===r?void 0:r.toString()))},LTe=["name","originDependencies","children","ignoreFormListField"],OTe=function(e){var t=e.name,n=e.originDependencies,i=void 0===n?t:n,r=e.children,o=e.ignoreFormListField,a=Ai(e,LTe),s=(0,v.useContext)(Kve),l=(0,v.useContext)(iye),c=(0,v.useMemo)((function(){return t.map((function(e){var t,n=[e];return!o&&void 0!==l.name&&null!==(t=l.listName)&&void 0!==t&&t.length&&n.unshift(l.listName),n.flat(1)}))}),[l.listName,l.name,o,null===t||void 0===t?void 0:t.toString()]);return(0,ES.jsx)(ip.Item,(0,Ft.Z)((0,Ft.Z)({},a),{},{noStyle:!0,shouldUpdate:function(e,t,n){return"boolean"===typeof a.shouldUpdate?a.shouldUpdate:"function"===typeof a.shouldUpdate?null===(i=a.shouldUpdate)||void 0===i?void 0:i.call(a,e,t,n):c.some((function(n){return!Gve(vr(e,n),vr(t,n))}));var i},children:function(e){for(var n={},o=0;o<t.length;o++){var a,l,u=c[o],d=[i[o]].flat(1),h=null===(a=s.getFieldFormatValueObject)||void 0===a?void 0:a.call(s,u);if(h&&Object.keys(h).length)n=Jve({},n,h),vr(h,u)&&(n=_r(n,d,vr(h,u),!1));else"undefined"!==typeof(h=null===(l=e.getFieldValue)||void 0===l?void 0:l.call(e,u))&&(n=_r(n,d,h,!1))}return null===r||void 0===r?void 0:r(n,(0,Ft.Z)((0,Ft.Z)({},e),s))}}))},RTe=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],ATe=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],MTe=(Symbol("ProFormComponent"),{xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552}),PTe=["switch","radioButton","radio","rate"];var ZTe=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],FTe=function(e){var t=e.fieldProps,n=e.children,i=(e.labelCol,e.label,e.autoFocus),r=(e.isDefaultDom,e.render),o=e.proFieldProps,a=e.renderFormItem,s=e.valueType,l=(e.initialValue,e.onChange),c=e.valueEnum,u=e.params,d=(e.name,e.dependenciesValues),h=e.cacheForSwr,f=void 0!==h&&h,p=e.valuePropName,g=void 0===p?"value":p,m=Ai(e,ZTe),y=(0,v.useContext)(aye),_=(0,v.useMemo)((function(){return d&&m.request?(0,Ft.Z)((0,Ft.Z)({},u),d||{}):u}),[d,u,m.request]),b=(0,v.useMemo)((function(){return(0,Ft.Z)((0,Ft.Z)({autoFocus:i},t),{},{onChange:function(){if(null!==t&&void 0!==t&&t.onChange){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];null===t||void 0===t||null===(e=t.onChange)||void 0===e||e.call.apply(e,[t].concat(i))}else;}})}),[i,t,null===t||void 0===t?void 0:t.onChange]),C=(0,v.useMemo)((function(){if(n)return v.isValidElement(n)?v.cloneElement(n,(0,Ft.Z)((0,Ft.Z)({},m),{},{onChange:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r;null!==t&&void 0!==t&&t.onChange?null===t||void 0===t||null===(r=t.onChange)||void 0===r||r.call.apply(r,[t].concat(n)):null===l||void 0===l||l.apply(void 0,n)}},n.props)):(0,ES.jsx)(ES.Fragment,{children:n})}),[n,null===t||void 0===t?void 0:t.onChange,l,m]);return C||(0,ES.jsx)(dTe,(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({text:null===t||void 0===t?void 0:t[g],render:r,renderFormItem:a,valueType:s||"text",cacheForSwr:f,fieldProps:b,valueEnum:Wve(c)},o),m),{},{mode:(null===o||void 0===o?void 0:o.mode)||y.mode||"edit",params:_}))},BTe=function(e,t){e.displayName="ProFormComponent";var n=function(n){var i=(0,Ft.Z)((0,Ft.Z)({},null===n||void 0===n?void 0:n.filedConfig),t)||{},r=i.valueType,o=i.customLightMode,a=i.lightFilterLabelFormatter,s=i.valuePropName,l=void 0===s?"value":s,c=i.ignoreWidth,u=i.defaultProps,d=Ai(i,RTe),h=(0,Ft.Z)((0,Ft.Z)({},u),n),f=h.label,p=h.tooltip,g=h.placeholder,m=h.width,y=h.bordered,_=h.messageVariables,b=h.ignoreFormItem,C=h.transform,S=h.convertValue,w=h.readonly,x=h.allowClear,E=(h.colSize,h.getFormItemProps),T=h.getFieldProps,I=(h.filedConfig,h.cacheForSwr),D=h.proFieldProps,L=Ai(h,ATe),O=r||L.valueType,R=(0,v.useMemo)((function(){return c||PTe.includes(O)}),[c,O]),A=(0,v.useState)(),M=(0,k.Z)(A,2)[1],P=(0,v.useState)(),Z=(0,k.Z)(P,2),F=Z[0],B=Z[1],H=v.useContext(oye),z=(0,v.useMemo)((function(){return{formItemProps:null===E||void 0===E?void 0:E(),fieldProps:null===T||void 0===T?void 0:T()}}),[T,E,L.dependenciesValues,F]),j=(0,v.useMemo)((function(){var e=(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},b?Ufe({value:L.value}):{}),{},{placeholder:g,disabled:n.disabled},H.fieldProps),z.fieldProps),L.fieldProps);return e.style=Ufe(null===e||void 0===e?void 0:e.style),e}),[b,L.value,L.fieldProps,g,n.disabled,H.fieldProps,z.fieldProps]),V=function(e){var t={};return hTe.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}(L),W=(0,v.useMemo)((function(){return(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},H.formItemProps),V),z.formItemProps),L.formItemProps)}),[z.formItemProps,H.formItemProps,L.formItemProps,V]),U=(0,v.useMemo)((function(){return(0,Ft.Z)((0,Ft.Z)({messageVariables:_},d),W)}),[d,W,_]);si(!L.defaultValue,"\u8bf7\u4e0d\u8981\u5728 Form \u4e2d\u4f7f\u7528 defaultXXX\u3002\u5982\u679c\u9700\u8981\u9ed8\u8ba4\u503c\u8bf7\u4f7f\u7528 initialValues \u548c initialValue\u3002");var G=(0,v.useContext)(Hi).prefixName,K=(0,v.useMemo)((function(){var e,t=null===U||void 0===U?void 0:U.name;return Array.isArray(t)&&(t=t.join("_")),Array.isArray(G)&&t&&(t="".concat(G.join("."),".").concat(t)),t&&"form-".concat(null!==(e=H.formKey)&&void 0!==e?e:"","-field-").concat(t)}),[gTe(null===U||void 0===U?void 0:U.name),G,H.formKey]),Y=Uve(L),q=(0,v.useCallback)((function(){var e;E||T?B([]):L.renderFormItem&&M([]);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];null===j||void 0===j||null===(e=j.onChange)||void 0===e||e.call.apply(e,[j].concat(n))}),[T,E,j,L.renderFormItem]),$=(0,v.useMemo)((function(){var e=(0,Ft.Z)({width:m&&!MTe[m]?m:H.grid?"100%":void 0},null===j||void 0===j?void 0:j.style);return R&&Reflect.deleteProperty(e,"width"),Ufe(e)}),[gTe(null===j||void 0===j?void 0:j.style),H.grid,R,m]),X=(0,v.useMemo)((function(){var e=m&&MTe[m];return Ja()(null===j||void 0===j?void 0:j.className,(0,N.Z)({"pro-field":e},"pro-field-".concat(m),e&&!R))||void 0}),[m,null===j||void 0===j?void 0:j.className,R]),Q=(0,v.useMemo)((function(){return Ufe((0,Ft.Z)((0,Ft.Z)({},H.proFieldProps),{},{mode:null===L||void 0===L?void 0:L.mode,readonly:w,params:L.params,proFieldKey:K,cacheForSwr:I},D))}),[null===L||void 0===L?void 0:L.mode,L.params,w,K,I,D]),J=(0,v.useMemo)((function(){return(0,Ft.Z)((0,Ft.Z)({onChange:q,allowClear:x},j),{},{style:$,className:X})}),[x,X,q,j,$]),ee=(0,v.useMemo)((function(){return(0,ES.jsx)(e,(0,Ft.Z)((0,Ft.Z)({},L),{},{fieldProps:J,proFieldProps:Q,ref:null===n||void 0===n?void 0:n.fieldRef}),n.proFormFieldKey||n.name)}),[Q,J,Gve(Y,L,["onChange","onBlur","onFocus","record"])?void 0:{}]),te=(0,v.useMemo)((function(){var e,t,i,r;return(0,ES.jsx)(DTe,(0,Ft.Z)((0,Ft.Z)({label:f&&!0!==(null===D||void 0===D?void 0:D.light)?f:void 0,tooltip:!0!==(null===D||void 0===D?void 0:D.light)&&p,valuePropName:l},U),{},{ignoreFormItem:b,transform:C,dataFormat:null===j||void 0===j?void 0:j.format,valueType:O,messageVariables:(0,Ft.Z)({label:f||""},null===U||void 0===U?void 0:U.messageVariables),convertValue:S,lightProps:Ufe((0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},j),{},{valueType:O,bordered:y,allowClear:null!==(t=null===ee||void 0===ee||null===(i=ee.props)||void 0===i?void 0:i.allowClear)&&void 0!==t?t:x,light:null===D||void 0===D?void 0:D.light,label:f,customLightMode:o,labelFormatter:a,valuePropName:l,footerRender:null===ee||void 0===ee||null===(r=ee.props)||void 0===r?void 0:r.footerRender},L.lightProps),U.lightProps)),children:ee}),n.proFormFieldKey||(null===(e=U.name)||void 0===e?void 0:e.toString()))}),[f,null===D||void 0===D?void 0:D.light,p,l,n.proFormFieldKey,U,b,C,j,O,S,y,ee,x,o,a,L.lightProps]),ne=qme(L).ColWrapper;return(0,ES.jsx)(ne,{children:te})};return function(e){var t=e.dependencies;return t?(0,ES.jsx)(OTe,{name:t,originDependencies:null===e||void 0===e?void 0:e.originDependencies,children:function(i){return(0,ES.jsx)(n,(0,Ft.Z)({dependenciesValues:i,dependencies:t},e))}}):(0,ES.jsx)(n,(0,Ft.Z)({dependencies:t},e))}}((0,v.memo)(FTe,(function(e,t){return Gve(t,e,["onChange","onBlur"])}))),HTe=BTe,zTe=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],jTe=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],VTe=v.forwardRef((function(e,t){var n=e.fieldProps,i=e.children,r=e.params,o=e.proFieldProps,a=e.mode,s=e.valueEnum,l=e.request,c=e.showSearch,u=e.options,d=Ai(e,zTe),h=(0,v.useContext)(oye);return(0,ES.jsx)(HTe,(0,Ft.Z)((0,Ft.Z)({valueEnum:Wve(s),request:l,params:r,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,Ft.Z)({options:u,mode:a,showSearch:c,getPopupContainer:h.getPopupContainer},n),ref:t,proFieldProps:o},d),{},{children:i}))})),WTe=v.forwardRef((function(e,t){var n=e.fieldProps,i=e.children,r=e.params,o=e.proFieldProps,a=e.mode,s=e.valueEnum,l=e.request,c=e.options,u=Ai(e,jTe),d=(0,Ft.Z)({options:c,mode:a||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},n),h=(0,v.useContext)(oye);return(0,ES.jsx)(HTe,(0,Ft.Z)((0,Ft.Z)({valueEnum:Wve(s),request:l,params:r,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,Ft.Z)({getPopupContainer:h.getPopupContainer},d),ref:t,proFieldProps:o},u),{},{children:i}))})),UTe=WTe,GTe=VTe;GTe.SearchSelect=UTe,GTe.displayName="ProFormComponent";var KTe=GTe,YTe=["fieldProps","proFieldProps"],qTe=["fieldProps","proFieldProps"],$Te="text",XTe=function(e){var t=e.fieldProps,n=e.proFieldProps,i=Ai(e,YTe);return(0,ES.jsx)(HTe,(0,Ft.Z)({valueType:$Te,fieldProps:t,filedConfig:{valueType:$Te},proFieldProps:n},i))};XTe.Password=function(e){var t=e.fieldProps,n=e.proFieldProps,i=Ai(e,qTe);return(0,ES.jsx)(HTe,(0,Ft.Z)({valueType:"password",fieldProps:t,proFieldProps:n,filedConfig:{valueType:$Te}},i))},XTe.displayName="ProFormComponent";var QTe=XTe,JTe=[{value:"0",label:"\u5468\u4e00"},{value:"1",label:"\u5468\u4e8c"},{value:"2",label:"\u5468\u4e09"},{value:"3",label:"\u5468\u56db"},{value:"4",label:"\u5468\u4e94"},{value:"5",label:"\u5468\u516d"},{value:"6",label:"\u5468\u65e5"}];function eNe(e){var t=e.value,n=void 0===t?"":t,i=e.onChange,r=e.buttonProps,o=e.style,a=(0,v.useState)(tNe(n)),s=(0,k.Z)(a,2),l=s[0],c=s[1];return(0,v.useEffect)((function(){console.log(n,tNe(n)),c(tNe(n))}),[n]),(0,v.useEffect)((function(){var e=function(e){var t=e.weekdays.join(","),n=e.mm?1===e.mm.length?"0".concat(e.mm):e.mm:"00",i=e.hh?1===e.hh.length?"0".concat(e.hh):e.hh:"00";return[n,i,e.dd||"*",e.MM||"*",t].join(" ")}(l);console.log("cronObj update",l,n,e),n!==e&&(null===i||void 0===i||i(e),console.log(e,l,ux()().minute(Number(l.mm)).hour(Number(l.hh))))}),[l,n]),(0,ES.jsxs)(Vy,{style:o,children:[(0,ES.jsx)(Zde,{format:"HH:mm",style:{width:"150px"},value:ux()().minute(Number(l.mm)).hour(Number(l.hh)),onChange:function(e){c((0,Ft.Z)((0,Ft.Z)({},l),{},{mm:String(null===e||void 0===e?void 0:e.minute()),hh:String(null===e||void 0===e?void 0:e.hour())}))}}),(0,ES.jsx)(Vy.Compact,{block:!0,children:JTe.map((function(e){var t=e.value,n=e.label;return(0,v.createElement)(Jg,(0,Ft.Z)((0,Ft.Z)({},r),{},{key:t,type:l.weekdays.includes(t)?"primary":"default",onClick:function(){var e=l.weekdays.indexOf(t);if(e>=0)l.weekdays.splice(e,1),c((0,Ft.Z)((0,Ft.Z)({},l),{},{weekdays:(0,_.Z)(l.weekdays)}));else{var n=[].concat((0,_.Z)(l.weekdays),[t]).sort((function(e,t){return Number(e)-Number(t)}));c((0,Ft.Z)((0,Ft.Z)({},l),{},{weekdays:n}))}}}),n)}))})]})}function tNe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.replace(" "," ").split(" "),n=(0,k.Z)(t,5),i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=void 0===s?"":s,c=l.split(",").filter(Boolean);return{mm:i||"00",hh:r||"00",dd:o||"*",MM:a||"*",weekdays:c}}function nNe(e){var t=e.record,n=e.onClose,i=e.onFinish,r=(0,v.useState)(!1),o=(0,k.Z)(r,2),a=o[0],s=o[1],l=(0,v.useState)([]),c=(0,k.Z)(l,2),u=c[0],d=c[1],h=(0,v.useState)([]),f=(0,k.Z)(h,2),p=f[0],g=f[1];(0,v.useEffect)((function(){var e,n,i,r,o,a,l,c,u=null===t||void 0===t||null===(e=t.conditions)||void 0===e?void 0:e[0];if(null!==u&&void 0!==u&&null!==(n=u.option)&&void 0!==n&&null!==(i=n.decide_condition)&&void 0!==i&&i.startsWith("= ")&&!["int","float"].includes(null===u||void 0===u||null===(r=u.option)||void 0===r?void 0:r.type))u.option.decide_condition=u.option.decide_condition.slice(2);else{var h,f,v=(null===u||void 0===u||null===(h=u.option)||void 0===h||null===(f=h.decide_condition)||void 0===f?void 0:f.split(" "))||[];l=v[0],c=v[1]}var y=((null===t||void 0===t?void 0:t.actions)||[]).map((function(e){return(0,Ft.Z)((0,Ft.Z)({},e),{},{type:"\u8bbe\u5907\u6267\u884c"})}));null===(o=m.current)||void 0===o||o.setFieldsValue((0,Ft.Z)((0,Ft.Z)({},t),{},{conditions:u,decide_condition_1:l,decide_condition_2:c,actions:y})),s(!0),Promise.all([(null===u||void 0===u||null===(a=u.option)||void 0===a?void 0:a.product_id)&&Ok(u.option.product_id).then((function(e){if(e.success){var t,n,i,r=((null===(t=e.result)||void 0===t?void 0:t.properties)||[]).find((function(e){return e.code===u.option.code}));null===(n=m.current)||void 0===n||n.setFieldValue(["conditions","option","type"],null===r||void 0===r?void 0:r.type_spec.type);try{var o,a=JSON.parse((null===r||void 0===r||null===(o=r.type_spec)||void 0===o?void 0:o.specs)||"{}");i=Object.entries(a).map((function(e){var t=(0,k.Z)(e,2);return{value:t[0],label:t[1]}}))}catch(l){var s;console.error(l,null===r||void 0===r||null===(s=r.type_spec)||void 0===s?void 0:s.specs),i=[]}d(i)}}))].concat((0,_.Z)(((null===t||void 0===t?void 0:t.actions)||[]).map((function(e,t){return Ok(e.product_id).then((function(n){if(n.success){var i,r,o,a=((null===(i=n.result)||void 0===i?void 0:i.properties)||[]).find((function(t){return t.code===e.code}));null===(r=m.current)||void 0===r||r.setFieldValue(["actions",t,"data_type"],null===a||void 0===a?void 0:a.type_spec.type);try{var s,l=JSON.parse((null===a||void 0===a||null===(s=a.type_spec)||void 0===s?void 0:s.specs)||"{}");o=Object.entries(l).map((function(e){var t=(0,k.Z)(e,2);return{value:t[0],label:t[1]}}))}catch(u){var c;console.error(u,null===a||void 0===a||null===(c=a.type_spec)||void 0===c?void 0:c.specs),o=[]}p[t]=o,g((0,_.Z)(p))}}))}))))).finally((function(){s(!1)}))}),[]);var m=(0,v.useRef)();return console.log("formRef",m),(0,ES.jsx)(gye,{open:!!t,title:"\u7f16\u8f91\u573a\u666f",loading:a,formRef:m,initialValues:{conditions:{condition_type:"notify",option:{trigger:"\u8bbe\u5907\u6570\u636e\u89e6\u53d1"}}},onOpenChange:function(e){return e||n()},onFinish:function(){var e=(0,T.Z)((0,E.Z)().mark((function e(r){var o,a,s;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,console.log("onFinish",r),o=r.decide_condition_1&&r.decide_condition_2?"".concat(r.decide_condition_1," ").concat(r.decide_condition_2):"= ".concat(r.conditions.option.decide_condition),a=(0,Ft.Z)((0,Ft.Z)({},r),{},{id:t.id,decide_condition_1:void 0,decide_condition_2:void 0,conditions:[(0,Ft.Z)((0,Ft.Z)({},r.conditions),{},{option:(0,Ft.Z)((0,Ft.Z)({},r.conditions.option),{},{decide_condition:o})})],actions:r.actions.map((function(e){return(0,Ft.Z)((0,Ft.Z)({},e),{},{type:void 0})}))}),e.next=6,Qk(a);case 6:if(!(s=e.sent).success){e.next=12;break}return qp.success("\u7f16\u8f91\u6210\u529f"),i(),n(),e.abrupt("return",!0);case 12:return qp.error(s.errorMsg),e.abrupt("return",!1);case 16:e.prev=16,e.t0=e.catch(0),console.log(e.t0);case 19:case"end":return e.stop()}}),e,null,[[0,16]])})));return function(t){return e.apply(this,arguments)}}(),drawerProps:{width:850},children:(0,ES.jsxs)(Cs,{spinning:a,children:[(0,ES.jsxs)("div",{style:{boxShadow:"0 0 6px 1px rgb(0 0 0 / 14%)",padding:"20px",borderRadius:"5px"},children:[(0,ES.jsx)("div",{style:{fontSize:14,fontWeight:600,marginBottom:20},children:"\u89e6\u53d1\u6761\u4ef6"}),(0,ES.jsxs)(mZ,{gutter:15,children:[(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(KTe,{label:"\u89e6\u53d1\u65b9\u5f0f",name:["conditions","condition_type"],placeholder:"\u9009\u62e9\u89e6\u53d1\u65b9\u5f0f",options:[{value:"notify",label:"\u8bbe\u5907\u89e6\u53d1"},{value:"timer",label:"\u5b9a\u65f6\u89e6\u53d1"}],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],fieldProps:{onChange:function(){var e,t,n,i,r,o,a,s,l,c,u,d;null===(e=m.current)||void 0===e||e.setFieldValue(["conditions","option","trigger"],void 0),null===(t=m.current)||void 0===t||t.setFieldValue(["conditions","option","product_id"],void 0),null===(n=m.current)||void 0===n||n.setFieldValue(["conditions","option","device_id"],void 0),null===(i=m.current)||void 0===i||i.setFieldValue(["conditions","option","code"],void 0),null===(r=m.current)||void 0===r||r.setFieldValue(["conditions","option","status"],void 0),null===(o=m.current)||void 0===o||o.setFieldValue(["conditions","option","type"],void 0),null===(a=m.current)||void 0===a||a.setFieldValue(["conditions","option","value_type"],void 0),null===(s=m.current)||void 0===s||s.setFieldValue(["conditions","option","value_cycle"],void 0),null===(l=m.current)||void 0===l||l.setFieldValue(["conditions","option","decide_condition"],void 0),null===(c=m.current)||void 0===c||c.setFieldValue("decide_condition_1",void 0),null===(u=m.current)||void 0===u||u.setFieldValue("decide_condition_2",void 0),null===(d=m.current)||void 0===d||d.setFieldValue(["conditions","option","cron_expression"],void 0)}}})}),(0,ES.jsx)(OTe,{name:["conditions","condition_type"],children:function(e){var t,n;return"notify"===(null===e||void 0===e||null===(t=e.conditions)||void 0===t?void 0:t.condition_type)?(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(KTe,{label:" ",required:!1,name:["conditions","option","trigger"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],options:[{value:"\u8bbe\u5907\u6570\u636e\u89e6\u53d1",label:"\u8bbe\u5907\u6570\u636e\u89e6\u53d1"},{value:"\u8bbe\u5907\u4e8b\u4ef6\u89e6\u53d1",label:"\u8bbe\u5907\u4e8b\u4ef6\u89e6\u53d1"},{value:"\u8bbe\u5907\u72b6\u6001\u89e6\u53d1",label:"\u8bbe\u5907\u72b6\u6001\u89e6\u53d1"}],fieldProps:{onChange:function(){var e,t,n,i,r,o,a,s;null===(e=m.current)||void 0===e||e.setFieldValue(["conditions","option","code"],void 0),null===(t=m.current)||void 0===t||t.setFieldValue(["conditions","option","status"],void 0),null===(n=m.current)||void 0===n||n.setFieldValue(["conditions","option","type"],void 0),null===(i=m.current)||void 0===i||i.setFieldValue(["conditions","option","value_type"],void 0),null===(r=m.current)||void 0===r||r.setFieldValue(["conditions","option","value_cycle"],void 0),null===(o=m.current)||void 0===o||o.setFieldValue(["conditions","option","decide_condition"],void 0),null===(a=m.current)||void 0===a||a.setFieldValue("decide_condition_1",void 0),null===(s=m.current)||void 0===s||s.setFieldValue("decide_condition_2",void 0)}}})}),(0,ES.jsxs)(yZ,{span:6,children:[(0,ES.jsx)(KTe,{label:"\u4ea7\u54c1",name:["conditions","option","product_id"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],showSearch:!0,placeholder:"\u9009\u62e9\u4ea7\u54c1",request:function(){var e=(0,T.Z)((0,E.Z)().mark((function e(t){var n,i,r;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.keyWords,e.next=3,Rk({name:n});case 3:return i=e.sent,console.log(i),r=(i.result.list||[]).map((function(e){return{label:e.name,value:e.id}})),e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fieldProps:{onChange:function(e,t){var n,i,r,o,a,s,l,c,u,d;null===(n=m.current)||void 0===n||n.setFieldValue(["conditions","option","device_id"],void 0),null===(i=m.current)||void 0===i||i.setFieldValue(["conditions","option","code"],void 0),null===(r=m.current)||void 0===r||r.setFieldValue(["conditions","option","status"],void 0),null===(o=m.current)||void 0===o||o.setFieldValue(["conditions","option","product_name"],null===t||void 0===t?void 0:t.label),null===(a=m.current)||void 0===a||a.setFieldValue(["conditions","option","type"],void 0),null===(s=m.current)||void 0===s||s.setFieldValue(["conditions","option","value_type"],void 0),null===(l=m.current)||void 0===l||l.setFieldValue(["conditions","option","value_cycle"],void 0),null===(c=m.current)||void 0===c||c.setFieldValue(["conditions","option","decide_condition"],void 0),null===(u=m.current)||void 0===u||u.setFieldValue("decide_condition_1",void 0),null===(d=m.current)||void 0===d||d.setFieldValue("decide_condition_2",void 0)}}}),(0,ES.jsx)(ip.Item,{name:["conditions","option","product_name"],noStyle:!0})]}),(0,ES.jsx)(OTe,{name:["conditions","option","product_id"],children:function(e){var t,n;return(null===e||void 0===e||null===(t=e.conditions)||void 0===t||null===(n=t.option)||void 0===n?void 0:n.product_id)&&(0,ES.jsxs)(yZ,{span:6,children:[(0,ES.jsx)(KTe,{rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],label:"\u8bbe\u5907",name:["conditions","option","device_id"],placeholder:"\u9009\u62e9\u8bbe\u5907",showSearch:!0,request:function(){var t=(0,T.Z)((0,E.Z)().mark((function t(n){var i,r;return(0,E.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.keyWords,t.next=3,Dk({product_id:e.conditions.option.product_id,name:i});case 3:return r=t.sent,t.abrupt("return",(r.result.list||[]).map((function(e){return{label:e.name,value:e.id}})));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),fieldProps:{onChange:function(e,t){var n;null===(n=m.current)||void 0===n||n.setFieldValue(["conditions","option","device_name"],null===t||void 0===t?void 0:t.label)}}},e.conditions.option.product_id),(0,ES.jsx)(ip.Item,{name:["conditions","option","device_name"],noStyle:!0})]})}}),(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(OTe,{name:["conditions","option",["trigger","product_id"]],children:function(e){var t,n,i,r;if(console.log("\u8bbe\u5907\u6570\u636e\u89e6\u53d1",e),"\u8bbe\u5907\u6570\u636e\u89e6\u53d1"===(null===e||void 0===e||null===(t=e.conditions)||void 0===t||null===(n=t.option)||void 0===n?void 0:n.trigger)&&null!==e&&void 0!==e&&null!==(i=e.conditions)&&void 0!==i&&null!==(r=i.option)&&void 0!==r&&r.product_id)return(0,ES.jsxs)(yZ,{span:6,children:[(0,ES.jsx)(KTe,{rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],label:"\u529f\u80fd",name:["conditions","option","code"],placeholder:"\u9009\u62e9\u529f\u80fd",request:(0,T.Z)((0,E.Z)().mark((function t(){var n,i;return(0,E.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ok(e.conditions.option.product_id);case 2:return i=t.sent,t.abrupt("return",((null===(n=i.result)||void 0===n?void 0:n.properties)||[]).filter((function(e){return["int","float","bool","text","enum"].includes(e.type_spec.type)})).map((function(e){var t,n=e.name,i=e.code,r=e.type_spec;try{var o=JSON.parse(r.specs);t=Object.entries(o).map((function(e){var t=(0,k.Z)(e,2);return{value:t[0],label:t[1]}}))}catch(a){console.error(a,r.specs),t=[]}return{label:n,value:i,type:r.type,specs:t}})));case 4:case"end":return t.stop()}}),t)}))),fieldProps:{onChange:function(e,t){var n,i,r,o,a,s;console.log("onChange",e,t),d(t.specs),null===(n=m.current)||void 0===n||n.setFieldValue(["conditions","option","type"],null===t||void 0===t?void 0:t.type),null===(i=m.current)||void 0===i||i.setFieldValue(["conditions","option","value_type"],void 0),null===(r=m.current)||void 0===r||r.setFieldValue(["conditions","option","value_cycle"],void 0),null===(o=m.current)||void 0===o||o.setFieldValue(["conditions","option","decide_condition"],void 0),null===(a=m.current)||void 0===a||a.setFieldValue("decide_condition_1",void 0),null===(s=m.current)||void 0===s||s.setFieldValue("decide_condition_2",void 0)}}},e.conditions.option.product_id),(0,ES.jsx)(ip.Item,{name:["conditions","option","type"],noStyle:!0})]})}}),(0,ES.jsx)(OTe,{name:["conditions","option",["trigger","product_id"]],children:function(e){var t,n,i,r;if(console.log("\u8bbe\u5907\u4e8b\u4ef6\u89e6\u53d1",e),"\u8bbe\u5907\u4e8b\u4ef6\u89e6\u53d1"===(null===e||void 0===e||null===(t=e.conditions)||void 0===t||null===(n=t.option)||void 0===n?void 0:n.trigger)&&null!==e&&void 0!==e&&null!==(i=e.conditions)&&void 0!==i&&null!==(r=i.option)&&void 0!==r&&r.product_id)return(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(KTe,{rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],label:"\u4e8b\u4ef6",name:["conditions","option","code"],placeholder:"\u8bf7\u9009\u62e9",request:(0,T.Z)((0,E.Z)().mark((function t(){var n,i;return(0,E.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ok(e.conditions.option.product_id);case 2:return i=t.sent,t.abrupt("return",((null===(n=i.result)||void 0===n?void 0:n.events)||[]).map((function(e){return{label:e.name,value:e.code}})));case 4:case"end":return t.stop()}}),t)})))},e.conditions.option.product_id)})}}),(0,ES.jsx)(OTe,{name:["conditions","option",["trigger","product_id"]],children:function(e){var t,n,i,r;if(console.log("\u8bbe\u5907\u72b6\u6001\u89e6\u53d1",e),"\u8bbe\u5907\u72b6\u6001\u89e6\u53d1"===(null===e||void 0===e||null===(t=e.conditions)||void 0===t||null===(n=t.option)||void 0===n?void 0:n.trigger)&&null!==e&&void 0!==e&&null!==(i=e.conditions)&&void 0!==i&&null!==(r=i.option)&&void 0!==r&&r.product_id)return(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(KTe,{rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],label:"\u8bbe\u5907\u72b6\u6001",name:["conditions","option","status"],placeholder:"\u8bf7\u9009\u62e9",options:[{label:"\u5728\u7ebf",value:"\u5728\u7ebf"},{label:"\u79bb\u7ebf",value:"\u79bb\u7ebf"}]})})}})]}),(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsx)(OTe,{name:["conditions","option",["type","code"]],children:function(e){var t,n,i,r,o,a,s,l;return console.log("\u53d6\u503c\u7c7b\u578b",e),["int","float"].includes(null===e||void 0===e||null===(t=e.conditions)||void 0===t||null===(n=t.option)||void 0===n?void 0:n.type)?(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(KTe,{label:"\u53d6\u503c\u7c7b\u578b",name:["conditions","option","value_type"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],placeholder:"\u8bf7\u9009\u62e9",options:[{value:"original",label:"\u539f\u59cb\u503c"},{value:"avg",label:"\u5e73\u5747\u503c"},{value:"max",label:"\u6700\u5927\u503c"},{value:"min",label:"\u6700\u5c0f\u503c"},{value:"sum",label:"\u6c42\u548c\u503c"}]})}),(0,ES.jsx)(ip.Item,{noStyle:!0,shouldUpdate:function(e,t){var n,i,r,o;return(null===e||void 0===e||null===(n=e.conditions)||void 0===n||null===(i=n.option)||void 0===i?void 0:i.value_type)!==(null===t||void 0===t||null===(r=t.conditions)||void 0===r||null===(o=r.option)||void 0===o?void 0:o.value_type)},children:function(e){return"original"!==(0,e.getFieldValue)(["conditions","option","value_type"])&&(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(KTe,{label:"\u53d6\u503c\u5468\u671f",name:["conditions","option","value_cycle"],placeholder:"\u8bf7\u9009\u62e9",rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],options:[{value:"1\u5206\u949f\u5468\u671f",label:"1\u5206\u949f\u5468\u671f"},{value:"5\u5206\u949f\u5468\u671f",label:"5\u5206\u949f\u5468\u671f"},{value:"15\u5206\u949f\u5468\u671f",label:"15\u5206\u949f\u5468\u671f"},{value:"30\u5206\u949f\u5468\u671f",label:"30\u5206\u949f\u5468\u671f"},{value:"60\u5206\u949f\u5468\u671f",label:"60\u5206\u949f\u5468\u671f"}]})})}}),(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsxs)(mZ,{children:[(0,ES.jsx)(yZ,{flex:"70px",children:(0,ES.jsx)(KTe,{label:"\u5224\u65ad\u6761\u4ef6",name:"decide_condition_1",width:80,rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],options:[{value:">",label:">"},{value:"<",label:"<"},{value:"=",label:"="},{value:">=",label:">="},{value:"<=",label:"<="},{value:"!=",label:"!="}]})}),(0,ES.jsx)(yZ,{flex:"auto",children:(0,ES.jsx)(QTe,{label:" ",required:!1,name:"decide_condition_2",rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],allowClear:!0,width:90,placeholder:"\u8bf7\u8f93\u5165"})})]})})]}):["bool"].includes(null===e||void 0===e||null===(i=e.conditions)||void 0===i||null===(r=i.option)||void 0===r?void 0:r.type)?(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(KTe,{rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],label:"\u5224\u65ad\u6761\u4ef6",name:["conditions","option","decide_condition"],placeholder:"\u8bf7\u9009\u62e9",options:[{value:"true",label:"True"},{value:"false",label:"False"}]})})}):["text"].includes(null===e||void 0===e||null===(o=e.conditions)||void 0===o||null===(a=o.option)||void 0===a?void 0:a.type)?(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(QTe,{rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],label:"\u5224\u65ad\u6761\u4ef6",name:["conditions","option","decide_condition"],allowClear:!0,placeholder:"\u8bf7\u8f93\u5165"})})}):["enum"].includes(null===e||void 0===e||null===(s=e.conditions)||void 0===s||null===(l=s.option)||void 0===l?void 0:l.type)?(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(KTe,{rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],label:"\u5224\u65ad\u6761\u4ef6",name:["conditions","option","decide_condition"],placeholder:"\u8bf7\u9009\u62e9",options:u})})}):void 0}})})]}):"timer"===(null===e||void 0===e||null===(n=e.conditions)||void 0===n?void 0:n.condition_type)?(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsx)(yZ,{span:18,children:(0,ES.jsx)(ip.Item,{name:["conditions","option","cron_expression"],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],children:(0,ES.jsx)(eNe,{style:{marginTop:"28px"}})})})}):void 0}})]})]}),(0,ES.jsxs)("div",{className:"mt20",style:{boxShadow:"0 0 6px 1px rgb(0 0 0 / 14%)",padding:"20px",borderRadius:"5px"},children:[(0,ES.jsx)("div",{style:{fontSize:14,fontWeight:600,marginBottom:20},children:"\u6267\u884c\u52a8\u4f5c"}),(0,ES.jsx)(rye,{name:"actions",deleteIconProps:{Icon:ahe},copyIconProps:!1,creatorButtonProps:{creatorButtonText:"\u6dfb\u52a0"},creatorRecord:{type:"\u8bbe\u5907\u6267\u884c"},onAfterRemove:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0],r=t[1];console.log(i,r);var o=p.filter((function(e,t){return i!==t}));g(o)},max:4,itemRender:function(e,t){return console.log("itemRender",e,t),(0,ES.jsxs)(mZ,{children:[(0,ES.jsx)(yZ,{flex:"auto",children:e.listDom}),(0,ES.jsx)(yZ,{flex:"30px",children:e.action})]})},rowProps:{gutter:15},children:function(e,t,n){return console.log(e,t,n),(0,ES.jsxs)("div",{children:[(0,ES.jsxs)("div",{className:"mb10",children:["\u52a8\u4f5c",t+1]}),(0,ES.jsxs)(mZ,{gutter:15,children:[(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(KTe,{name:"type",placeholder:"\u9009\u62e9\u52a8\u4f5c\u7c7b\u578b",colProps:{span:16},options:[{value:"\u8bbe\u5907\u6267\u884c",label:"\u8bbe\u5907\u6267\u884c"}],rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}]})}),(0,ES.jsx)(OTe,{name:["actions","type"],children:function(e){return(null===e||void 0===e?void 0:e.type)&&(0,ES.jsxs)(yZ,{span:6,children:[(0,ES.jsx)(KTe,{colProps:{span:6},name:["product_id"],placeholder:"\u9009\u62e9\u4ea7\u54c1",rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],showSearch:!0,request:function(){var e=(0,T.Z)((0,E.Z)().mark((function e(t){var n,i,r;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.keyWords,e.next=3,Rk({name:n});case 3:return i=e.sent,console.log(i),r=(i.result.list||[]).map((function(e){return{label:e.name,value:e.id}})),e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fieldProps:{onChange:function(e,n){var i,r,o,a,s;null===(i=m.current)||void 0===i||i.setFieldValue(["actions",t,"device_id"],void 0),null===(r=m.current)||void 0===r||r.setFieldValue(["actions",t,"code"],void 0),null===(o=m.current)||void 0===o||o.setFieldValue(["actions",t,"data_type"],void 0),null===(a=m.current)||void 0===a||a.setFieldValue(["actions",t,"value"],void 0),null===(s=m.current)||void 0===s||s.setFieldValue(["actions",t,"product_name"],null===n||void 0===n?void 0:n.label)}}}),(0,ES.jsx)(ip.Item,{name:["product_name"],noStyle:!0})]})}}),(0,ES.jsx)(OTe,{name:["actions","product_id"],children:function(e){return(null===e||void 0===e?void 0:e.product_id)&&(0,ES.jsxs)(yZ,{span:6,children:[(0,ES.jsx)(KTe,{colProps:{span:6},rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],name:["device_id"],placeholder:"\u9009\u62e9\u8bbe\u5907",showSearch:!0,params:{product_id:e.product_id},request:function(){var t=(0,T.Z)((0,E.Z)().mark((function t(n){var i,r;return(0,E.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.keyWords,t.next=3,Dk({product_id:e.product_id,name:i});case 3:return r=t.sent,t.abrupt("return",(r.result.list||[]).map((function(e){return{label:e.name,value:e.id}})));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),fieldProps:{onChange:function(e,n){var i;null===(i=m.current)||void 0===i||i.setFieldValue(["actions",t,"device_name"],null===n||void 0===n?void 0:n.label)}}},"".concat(t,"_").concat(e.product_id)),(0,ES.jsx)(ip.Item,{name:["device_name"],noStyle:!0})]},"".concat(t,"_").concat(e.product_id))}}),(0,ES.jsx)(OTe,{name:["device_id","product_id"],children:function(e){return(null===e||void 0===e?void 0:e.device_id)&&(0,ES.jsxs)(yZ,{span:6,children:[(0,ES.jsx)(KTe,{rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],name:["code"],placeholder:"\u9009\u62e9\u529f\u80fd",params:e.product_id,request:(0,T.Z)((0,E.Z)().mark((function t(){var n,i;return(0,E.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ok(e.product_id);case 2:return i=t.sent,t.abrupt("return",((null===(n=i.result)||void 0===n?void 0:n.properties)||[]).filter((function(e){return["int","float","bool","text","enum"].includes(e.type_spec.type)})).map((function(e){var t,n=e.name,i=e.code,r=e.type_spec;try{var o=JSON.parse(r.specs);t=Object.entries(o).map((function(e){var t=(0,k.Z)(e,2);return{value:t[0],label:t[1]}}))}catch(a){console.error(a,r.specs),t=[]}return{label:n,value:i,type:r.type,specs:t}})));case 4:case"end":return t.stop()}}),t)}))),fieldProps:{onChange:function(e,n){var i,r;p[t]=n.specs,g((0,_.Z)(p)),null===(i=m.current)||void 0===i||i.setFieldValue(["actions",t,"data_type"],null===n||void 0===n?void 0:n.type),null===(r=m.current)||void 0===r||r.setFieldValue(["actions",t,"value"],void 0)}}}),(0,ES.jsx)(ip.Item,{name:["data_type"],noStyle:!0})]})}}),(0,ES.jsx)(OTe,{name:["actions","data_type"],children:function(e){return["int","float","text"].includes(null===e||void 0===e?void 0:e.data_type)?(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(QTe,{rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],name:["value"],allowClear:!0,placeholder:"\u6570\u503c\uff1a"})})}):["bool"].includes(null===e||void 0===e?void 0:e.data_type)?(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(KTe,{rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],name:["value"],placeholder:"\u8bf7\u9009\u62e9",options:[{value:"true",label:"True"},{value:"false",label:"False"}]})})}):["enum"].includes(null===e||void 0===e?void 0:e.data_type)?(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsx)(yZ,{span:6,children:(0,ES.jsx)(KTe,{rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}],name:["value"],placeholder:"\u8bf7\u9009\u62e9",options:p[t]})})}):void 0}})]})]})}})]})]})})}var iNe,rNe=sE.Text,oNe=qp.useMessage,aNe=function(){var e=lt(),t=oNe(),i=(0,k.Z)(t,2),r=i[0],o=i[1],a=(0,v.useRef)(null),s=(0,v.useState)(),l=(0,k.Z)(s,2),c=l[0],u=l[1],d=TM({onRequest:function(e){return function(e){return kk({url:"/api/v1/scene",params:e})}((0,Ft.Z)({},e))}}),h=d.loading,f=d.dataSource,p=d.pagination,g=d.form,m=d.reload,y=d.search,_=d.reset;return(0,ES.jsxs)(ES.Fragment,{children:[o,(0,ES.jsx)(Vfe,{ref:a,onFinish:m}),(0,ES.jsx)(kM,{title:"\u573a\u666f\u8054\u52a8",describe:"\u573a\u666f\u8054\u52a8\u662f\u4e00\u79cd\u5f00\u53d1\u81ea\u52a8\u5316\u4e1a\u52a1\u903b\u8f91\u7684\u7f16\u7a0b\u65b9\u5f0f\uff0c\u76ee\u524d\u652f\u6301\u8bbe\u5907\u3001\u65f6\u95f4\u6761\u4ef6\u89e6\u53d1\uff0c\u60a8\u53ef\u4ee5\u81ea\u5b9a\u4e49\u8bbe\u5907\u4e4b\u95f4\u7684\u8054\u52a8\u89c4\u5219\uff0c\u7cfb\u7edf\u6267\u884c\u81ea\u5b9a\u4e49\u7684\u4e1a\u52a1\u903b\u8f91\uff0c\u6ee1\u8db3\u591a\u573a\u666f\u8054\u52a8\u9700\u6c42\u3002",background:n(64669)}),(0,ES.jsx)(AT,{className:"m20",size:"small",children:(0,ES.jsxs)(ip,{layout:"inline",form:g,children:[(0,ES.jsx)(ip.Item,{name:"status",children:(0,ES.jsx)(NI,{style:{width:120},placeholder:"\u542f\u7528\u72b6\u6001",options:[{label:"\u72b6\u6001 (\u5168\u90e8)",value:""},{label:"\u542f\u7528",value:"running"},{label:"\u7981\u7528",value:"stopped"}]})},"status"),(0,ES.jsx)(ip.Item,{name:"name",label:"\u573a\u666f\u540d\u79f0",children:(0,ES.jsx)(Zy,{style:{width:220},placeholder:"\u8bf7\u8f93\u5165",allowClear:!0})},"name"),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"primary",onClick:y,children:"\u67e5\u8be2"})}),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"default",onClick:_,children:"\u91cd\u7f6e"})})]})}),(0,ES.jsxs)(AT,{className:"m20",size:"small",children:[(0,ES.jsx)(Vy,{className:"mb15 justify-space-between",children:(0,ES.jsx)("div",{children:(0,ES.jsxs)(Jg,{type:"primary",onClick:function(){var e;null===(e=a.current)||void 0===e||e.open()},children:[(0,ES.jsx)(RE,{}),"\u65b0\u5efa\u573a\u666f"]})})}),c&&(0,ES.jsx)(nNe,{record:c,onClose:function(){return u(void 0)},onFinish:function(){return m()}}),(0,ES.jsx)(YA,{loading:h,dataSource:f,pagination:p,bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u573a\u666f\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u573a\u666f\u63cf\u8ff0",key:"description",dataIndex:"description"},{title:"\u521b\u5efa\u65f6\u95f4",key:"created",dataIndex:"created",render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u542f\u7528\u72b6\u6001",key:"status",dataIndex:"status",render:function(e,t){return(0,ES.jsx)(sNe,{status:e,id:t.id,onSuccess:function(){return m()}})}},{title:"\u64cd\u4f5c",key:"action",dataIndex:"action",render:function(t,n){return(0,ES.jsxs)(Vy,{split:(0,ES.jsx)(rNe,{type:"secondary",children:"/"}),children:[(0,ES.jsx)(sE.Link,{onClick:function(){u(n)},children:"\u7f16\u8f91\u573a\u666f"}),(0,ES.jsx)(sE.Link,{onClick:function(){e("/advanced/scene/log/".concat(null===n||void 0===n?void 0:n.id))},children:"\u67e5\u8be2\u65e5\u5fd7"}),(0,ES.jsx)(tM,{title:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6761\u573a\u666f\u5417\uff1f",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",placement:"topRight",onConfirm:function(){(function(e){return kk({url:"/api/v1/scene/".concat(e),method:"delete"})})(null===n||void 0===n?void 0:n.id).then((function(e){e.success?(r.open({type:"success",content:"\u5220\u9664\u6210\u529f"}),m()):r.open({type:"error",content:e.errorMsg})}))},children:(0,ES.jsx)(sE.Link,{children:"\u5220\u9664"})})]})}}]})]})]})};function sNe(e){var t=e.status,n=e.id,i=e.onSuccess,r=Wde(Jk,{manual:!0}),o=Wde(ex,{manual:!0});return console.log("status",t),(0,ES.jsx)(bH,{checked:t===iNe.running,checkedChildren:"\u5f00",unCheckedChildren:"\u5173",loading:o.loading,onChange:function(){var e=(0,T.Z)((0,E.Z)().mark((function e(t){return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(t),e.prev=1,!t){e.next=7;break}return e.next=5,r.run(n);case 5:e.next=9;break;case 7:return e.next=9,o.run(n);case 9:null===i||void 0===i||i(),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),console.log(e.t0);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t){return e.apply(this,arguments)}}()})}!function(e){e.stopped="stopped",e.running="running"}(iNe||(iNe={}));n(77490);var lNe=Gj.RangePicker,cNe=function(){var e=ut(),t=TM({onRequest:function(t){var n,i;return function(e,t){return kk({url:"/api/v1/scene/".concat(t,"/log"),params:e})}((0,Ft.Z)((0,Ft.Z)({},t),{},{start_time:null===(n=t.time)||void 0===n?void 0:n[0].valueOf(),end_time:null===(i=t.time)||void 0===i?void 0:i[1].valueOf(),time:void 0}),null===e||void 0===e?void 0:e.id)}}),i=t.loading,r=t.dataSource,o=t.pagination,a=t.form,s=t.search,l=t.reset;return(0,ES.jsxs)(ES.Fragment,{children:[(0,ES.jsx)(kM,{hasBack:!0,title:"\u8054\u52a8\u65e5\u5fd7",describe:"\u5e73\u53f0\u63d0\u4f9b\u573a\u666f\u65e5\u5fd7\u529f\u80fd\uff0c\u53ef\u4ee5\u901a\u8fc7\u573a\u666f\u8054\u52a8\u65e5\u5fd7\u67e5\u770b\u573a\u666f\u89e6\u53d1\u65f6\u95f4\u3001\u670d\u52a1\u8c03\u7528\u7ed3\u679c\u3002",breadcrumb:[{label:"\u573a\u666f\u8054\u52a8",to:"/advanced/scene/linkage"},{label:"\u8054\u52a8\u65e5\u5fd7",to:""}],background:n(64669)}),(0,ES.jsx)(AT,{className:"m20",size:"small",children:(0,ES.jsxs)(ip,{layout:"inline",form:a,children:[(0,ES.jsx)(ip.Item,{name:"time",label:"",children:(0,ES.jsx)(lNe,{style:{width:300},showTime:{format:"HH:mm:ss"},format:"YYYY-MM-DD HH:mm:ss",placeholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]})},"time"),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"primary",onClick:s,children:"\u67e5\u8be2"})}),(0,ES.jsx)(ip.Item,{children:(0,ES.jsx)(Jg,{type:"default",onClick:l,children:"\u91cd\u7f6e"})})]})}),(0,ES.jsx)(AT,{className:"m20",size:"small",children:(0,ES.jsx)(YA,{loading:i,dataSource:r,pagination:o,bordered:!0,rowKey:"id",size:"small",columns:[{title:"\u8054\u52a8\u89c4\u5219\u540d\u79f0",key:"name",dataIndex:"name"},{title:"\u6267\u884c\u7ed3\u679c",key:"exec_res",dataIndex:"exec_res"},{title:"\u89e6\u53d1\u65f6\u95f4",key:"created",dataIndex:"created",render:function(e){return ux()(e).format("YYYY-MM-DD HH:mm:ss")}}]})})]})},uNe=function(){var e,t,n,i,r,o,a=Wde(tx,{formatData:function(e){return e}});return(0,ES.jsx)(ES.Fragment,{children:(0,ES.jsx)("div",{className:"my-service p20",children:(0,ES.jsxs)(AT,{bordered:!0,children:[(0,ES.jsx)("div",{className:"mb20",style:{fontSize:"14px",fontWeight:"600"},children:"\u4ea7\u54c1\u6587\u6863"}),(0,ES.jsx)(mZ,{children:(0,ES.jsx)(yZ,{span:8,children:(0,ES.jsxs)(AT,{style:{cursor:"pointer"},onClick:function(){var e,t;window.open(null===(e=a.data)||void 0===e||null===(t=e.doc)||void 0===t?void 0:t.addr)},children:[(0,ES.jsx)("div",{style:{float:"left"},className:"mr20",children:(0,ES.jsx)("img",{style:{width:"40px",height:"40px"},src:null===(e=a.data)||void 0===e||null===(t=e.doc)||void 0===t?void 0:t.icon,alt:""})}),(0,ES.jsx)("div",{className:"mt10",children:null===(n=a.data)||void 0===n||null===(i=n.doc)||void 0===i?void 0:i.name})]})})}),(0,ES.jsx)("div",{className:"mb20 mt20",style:{fontSize:"14px",fontWeight:"600"},children:"\u8bbe\u5907\u63a5\u5165SDK"}),(0,ES.jsx)(mZ,{gutter:15,children:null===(r=a.data)||void 0===r||null===(o=r.sdk_language)||void 0===o?void 0:o.map((function(e){return(0,ES.jsx)(yZ,{span:8,children:(0,ES.jsxs)(AT,{children:[(0,ES.jsx)("div",{style:{float:"left"},className:"mr20",children:(0,ES.jsx)("img",{style:{width:"40px",height:"40px"},src:e.icon,alt:""})}),(0,ES.jsxs)("div",{style:{float:"left"},children:[(0,ES.jsx)("div",{children:e.name}),(0,ES.jsx)("div",{children:e.description}),(0,ES.jsx)(Jg,{type:"primary",className:"mt20",onClick:function(){window.open(e.addr)},children:"\u67e5\u770b\u5de5\u5177\u5305"})]})]})},e.name)}))})]})})})},dNe=function(e,t){var n;return he({basename:null==t?void 0:t.basename,history:R({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||(null==(n=window)?void 0:n.__staticRouterHydrationData),routes:Tt(e)}).initialize()}([{path:"/auth/login",element:(0,ES.jsx)(the,{})},{path:"/",element:(0,ES.jsx)(lx,{}),children:[{path:"/gateway/product/manage",element:(0,ES.jsx)(uP,{})},{path:"/gateway/product/detail/:id",element:(0,ES.jsx)(VZ,{})},{path:"/gateway/device/manage",element:(0,ES.jsx)(lH,{})},{path:"/gateway/device/manage/:id",element:(0,ES.jsx)(lH,{})},{path:"/gateway/device/detail/:id",element:(0,ES.jsx)(sV,{})},{path:"/gateway/drive/image",element:(0,ES.jsx)(vW,{})},{path:"/gateway/my/drive",element:(0,ES.jsx)(UV,{})},{path:"/home/dashboard",element:(0,ES.jsx)(cde,{})},{path:"/monitor/alarmCenter/list",element:(0,ES.jsx)(Nde,{})},{path:"/monitor/systemMonitor",element:(0,ES.jsx)(Dde,{})},{path:"/monitor/alarmCenter/detail/:id",element:(0,ES.jsx)(ehe,{})},{path:"/advanced/resource/manage",element:(0,ES.jsx)(Phe,{})},{path:"/advanced/rule/engine",element:(0,ES.jsx)(Bfe,{})},{path:"/advanced/scene/linkage",element:(0,ES.jsx)(aNe,{})},{path:"/advanced/scene/log/:id",element:(0,ES.jsx)(cNe,{})},{path:"/documents/documents",element:(0,ES.jsx)(uNe,{})}]},{path:"*",element:(0,ES.jsx)(aI,{description:"404 Not Found",style:{marginTop:"300px"}})}]),hNe=dNe;y.createRoot(document.getElementById("root")).render((0,ES.jsx)(bt,{router:hNe})),Nt()}()}();
|
|
//# sourceMappingURL=main.4ec9d86b.js.map |